]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
580c7c786e21777d313a6135d8212de487b0f32a
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties false
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30
31 % Improve line breaking
32 \tolerance 1414
33 \hbadness 1414
34 \emergencystretch 1.5em
35 \hfuzz 0.3pt
36
37 % additional setting for Japanese manual
38 \IfFileExists{pxjahyper.sty}
39 {\usepackage{pxjahyper}}
40
41 \usepackage{t1enc}
42 \end_preamble
43 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
44 \use_default_options false
45 \begin_modules
46 logicalmkup
47 theorems-ams
48 theorems-ams-extended
49 multicol
50 shapepar
51 \end_modules
52 \maintain_unincluded_children false
53 \begin_local_layout
54 Format 35
55 InsetLayout             Flex:MenuItem
56 LyxType         charstyle
57 LabelString           menu
58 LatexType             command
59 LatexName             menuitem
60 Font
61 Family              Sans
62 EndFont
63 Preamble
64 \newcommand*{\menuitem}[1]{{\sffamily #1}}
65 EndPreamble
66 End
67 InsetLayout             Flex:Ruby
68 LyxType         charstyle
69 LatexType               command
70 LatexName               ruby
71 BgColor         none
72 LabelString             "ルビ"
73 Decoration              Conglomerate
74 Argument post:1
75 LabelString     "ルビ文"
76 MenuString      "ルビ文(S)|S"
77 Decoration      Conglomerate
78 Font
79 Size            tiny
80 EndFont
81 LabelFont
82 Size            tiny
83 EndFont
84 Mandatory       1
85 EndArgument
86 Preamble
87 \IfFileExists{okumacro.sty}
88 {\usepackage{okumacro}}
89 {\newcommand{\ruby}[2]{#2}}
90 EndPreamble
91 End
92 \end_local_layout
93 \language japanese
94 \language_package default
95 \inputencoding auto
96 \fontencoding global
97 \font_roman "default" "default"
98 \font_sans "default" "default"
99 \font_typewriter "default" "default"
100 \font_math "auto" "auto"
101 \font_default_family default
102 \use_non_tex_fonts false
103 \font_sc false
104 \font_osf false
105 \font_sf_scale 100 100
106 \font_tt_scale 100 100
107 \use_microtype false
108 \use_dash_ligatures false
109 \graphics default
110 \default_output_format default
111 \output_sync 0
112 \bibtex_command default
113 \index_command default
114 \paperfontsize 12
115 \spacing single
116 \use_hyperref true
117 \pdf_title "LyX's Additional Features manual"
118 \pdf_author "LyX Team"
119 \pdf_subject "LyX's additional features documentation"
120 \pdf_keywords "LyX, Documentation, Additional"
121 \pdf_bookmarks false
122 \pdf_bookmarksnumbered true
123 \pdf_bookmarksopen false
124 \pdf_bookmarksopenlevel 1
125 \pdf_breaklinks false
126 \pdf_pdfborder false
127 \pdf_colorlinks true
128 \pdf_backref false
129 \pdf_pdfusetitle false
130 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
131 \papersize default
132 \use_geometry false
133 \use_package amsmath 1
134 \use_package amssymb 1
135 \use_package cancel 1
136 \use_package esint 1
137 \use_package mathdots 1
138 \use_package mathtools 1
139 \use_package mhchem 1
140 \use_package stackrel 1
141 \use_package stmaryrd 1
142 \use_package undertilde 1
143 \cite_engine basic
144 \cite_engine_type default
145 \biblio_style plain
146 \use_bibtopic false
147 \use_indices false
148 \paperorientation portrait
149 \suppress_date false
150 \justification true
151 \use_refstyle 0
152 \use_minted 0
153 \notefontcolor #0000ff
154 \index 索引
155 \shortcut idx
156 \color #008000
157 \end_index
158 \secnumdepth 3
159 \tocdepth 3
160 \paragraph_separation indent
161 \paragraph_indentation default
162 \is_math_indent 1
163 \math_indentation default
164 \math_numbering_side default
165 \quotes_style english
166 \dynamic_quotes 0
167 \papercolumns 1
168 \papersides 2
169 \paperpagestyle headings
170 \tracking_changes false
171 \output_changes false
172 \html_math_output 0
173 \html_css_as_file 0
174 \html_be_strict true
175 \end_header
176
177 \begin_body
178
179 \begin_layout Title
180 \SpecialChar LyX
181 の高度な機能
182 \begin_inset Newline newline
183 \end_inset
184
185
186 \size large
187 第2.3.x版
188 \end_layout
189
190 \begin_layout Author
191 \SpecialChar LyX
192 プロジェクトチーム
193 \begin_inset Foot
194 status collapsed
195
196 \begin_layout Plain Layout
197 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
198 文書化メーリングリスト
199 \begin_inset Flex Code
200 status open
201
202 \begin_layout Plain Layout
203 \noindent
204
205 \family typewriter
206 <lyx-docs@lists.lyx.org>
207 \end_layout
208
209 \end_inset
210
211 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
212 \end_layout
213
214 \end_inset
215
216  
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset CommandInset toc
221 LatexCommand tableofcontents
222
223 \end_inset
224
225
226 \end_layout
227
228 \begin_layout Chapter
229 はじめに
230 \end_layout
231
232 \begin_layout Standard
233 いまお読みの取扱説明書『
234 \emph on
235 \SpecialChar LyX
236 拡張機能篇
237 \emph default
238 』は,基本的には『
239 \emph on
240 ユーザーの手引き
241 \emph default
242 』の第二部です.これらの文書を別部とした理由は,単純に『
243 \emph on
244 ユーザーの手引き
245 \emph default
246 』がすでに大部となっていることと,『
247 \emph on
248 ユーザーの手引き
249 \emph default
250 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
251 プロジェクトチームは,\SpecialChar LyX
252 を各設定ファイルと外部パッケージによって拡張
253 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
254 パッケージをサポートしたい場合に,\SpecialChar LyX
255 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
256 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
257 な形での貢献を文書化する冊子として位置付けられています.
258 \end_layout
259
260 \begin_layout Standard
261 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
262 しています.さらに,\SpecialChar LaTeX
263 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
264 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
265 とはあくまでWYSIWYMた
266 ることを企図しているため,\SpecialChar LaTeX
267 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
268 \end_layout
269
270 \begin_layout Standard
271 もし,まだ『
272 \emph on
273 はじめの一歩
274 \emph default
275 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
276 \emph on
277 はじめの一歩
278 \emph default
279 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
280 \emph on
281 ユーザーの手引き
282 \emph default
283 』をよくお読みになって,\SpecialChar LyX
284 の全基本機能を習得してください.
285 \end_layout
286
287 \begin_layout Standard
288 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
289 が\SpecialChar LaTeX
290 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
291 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
292 コードを正
293 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
294 ユーザー向けの章となっています.
295 \end_layout
296
297 \begin_layout Chapter
298 \SpecialChar LyX
299 と\SpecialChar LaTeX
300
301 \end_layout
302
303 \begin_layout Section
304 \SpecialChar LyX
305 は\SpecialChar LaTeX
306 をどう使っているか
307 \end_layout
308
309 \begin_layout Standard
310 本章
311 \family roman
312 \series medium
313 \shape up
314 \size normal
315 \emph off
316 \bar no
317 \noun off
318 \color none
319 は,\SpecialChar TeX
320 熟練者と\SpecialChar LaTeX
321 に興味のある方向けの章です.ここでは,\SpecialChar LyX
322 と\SpecialChar LaTeX
323 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
324 のこと
325 を多少なりともご存知であることを前提とします.
326 \end_layout
327
328 \begin_layout Standard
329
330 \family roman
331 \series medium
332 \shape up
333 \size normal
334 \emph off
335 \bar no
336 \noun off
337 \color none
338 かつて\SpecialChar LyX
339 は,「\SpecialChar LaTeX
340
341 \family default
342 \series default
343 \shape default
344 \size default
345 \emph default
346 \bar default
347 \noun default
348 \color inherit
349 WYSIWYM
350 \family roman
351 \series medium
352 \shape up
353 \size normal
354 \emph off
355 \bar no
356 \noun off
357 \color none
358 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
359 のフロントエンドは,いくつも出回っています
360 \begin_inset Foot
361 status collapsed
362
363 \begin_layout Plain Layout
364
365 \family roman
366 \series medium
367 \shape up
368 \size normal
369 \emph off
370 \bar no
371 \noun off
372 \color none
373 有名なものとしては,Linux上の\SpecialChar TeX
374 makerとkile,OSX上の\SpecialChar TeX
375 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
376 モードも含まれます.
377 \end_layout
378
379 \end_inset
380
381 .これらは,基本的に\SpecialChar LaTeX
382 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
383 も,エディタであり,\SpecialChar LaTeX
384 を走らせる機能を有し,ファイル
385 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
386 \family default
387 \series default
388 \shape default
389 \size default
390 \emph default
391 \bar default
392 \noun default
393 \color inherit
394 ひとつには,
395 \family roman
396 \series medium
397 \shape up
398 \size normal
399 \emph off
400 \bar no
401 \noun off
402 \color none
403 \SpecialChar LyX
404 を効果的に使うのに,\SpecialChar LaTeX
405 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
406 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
407 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
408 てください.まず
409 \family sans
410 \series default
411 \shape default
412 \size default
413 \emph default
414 \bar default
415 \noun default
416 \color inherit
417
418 \begin_inset Flex MenuItem
419 status collapsed
420
421 \begin_layout Plain Layout
422
423 \family sans
424 ファイル
425 \end_layout
426
427 \end_inset
428
429
430 \family roman
431 \series medium
432 \shape up
433 \size normal
434 \emph off
435 \bar no
436 \noun off
437 \color none
438 メニューから
439 \family sans
440 \series default
441 \shape default
442 \size default
443 \emph default
444 \bar default
445 \noun default
446 \color inherit
447
448 \begin_inset Flex MenuItem
449 status collapsed
450
451 \begin_layout Plain Layout
452
453 \family sans
454 エクスポート\SpecialChar menuseparator
455 LaTeX
456 \end_layout
457
458 \end_inset
459
460
461 \family roman
462 \series medium
463 \shape up
464 \size normal
465 \emph off
466 \bar no
467 \noun off
468 \color none
469 (あるいは
470 \family sans
471 \series default
472 \shape default
473 \size default
474 \emph default
475 \bar default
476 \noun default
477 \color inherit
478
479 \begin_inset Flex MenuItem
480 status collapsed
481
482 \begin_layout Plain Layout
483
484 \family sans
485 表示\SpecialChar menuseparator
486 ソースを閲覧
487 \end_layout
488
489 \end_inset
490
491
492 \family roman
493 \series medium
494 \shape up
495 \size normal
496 \emph off
497 \bar no
498 \noun off
499 \color none
500 )を選択し,そこから出力される
501 \begin_inset Flex Code
502 status collapsed
503
504 \begin_layout Plain Layout
505
506 \family typewriter
507 .tex
508 \end_layout
509
510 \end_inset
511
512 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
513 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
514 \family default
515 \series default
516 \shape default
517 \size default
518 \emph default
519 \bar default
520 \noun default
521 \color inherit
522 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
523 \end_layout
524
525 \begin_layout Standard
526
527 \family roman
528 \series medium
529 \shape up
530 \size normal
531 \emph off
532 \bar no
533 \noun off
534 \color none
535 自動的に\SpecialChar LaTeX
536 を実行するコマンドが,以下のようにいくつかあります.
537 \end_layout
538
539 \begin_layout Itemize
540 \begin_inset Flex MenuItem
541 status collapsed
542
543 \begin_layout Plain Layout
544 表示\SpecialChar menuseparator
545 書式
546 \end_layout
547
548 \end_inset
549
550
551 \end_layout
552
553 \begin_layout Itemize
554
555 \family sans
556 \begin_inset Flex MenuItem
557 status collapsed
558
559 \begin_layout Plain Layout
560
561 \bar no
562 表示\SpecialChar menuseparator
563 更新\SpecialChar menuseparator
564
565 \bar default
566 書式
567 \end_layout
568
569 \end_inset
570
571
572 \end_layout
573
574 \begin_layout Standard
575
576 \family roman
577 \series medium
578 \shape up
579 \size normal
580 \emph off
581 \bar no
582 \noun off
583 \color none
584 これらは,最後に\SpecialChar LaTeX
585 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
586 を実行します.
587 \end_layout
588
589 \begin_layout Standard
590
591 \family roman
592 \series medium
593 \shape up
594 \size normal
595 \emph off
596 \bar no
597 \noun off
598 \color none
599 \SpecialChar LyX
600 が編集中のファイルを\SpecialChar LaTeX
601 にかけるとき,\SpecialChar LyX
602 は以下の段階をふみます.
603 \end_layout
604
605 \begin_layout Enumerate
606
607 \family roman
608 \series medium
609 \shape up
610 \size normal
611 \emph off
612 \bar no
613 \noun off
614 \color none
615 文書を\SpecialChar LaTeX
616 に変換し,ファイルの拡張子を
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621
622 \family roman
623 \series medium
624 \shape up
625 \size normal
626 \emph off
627 \bar no
628 \noun off
629 \color none
630 .lyx
631 \end_layout
632
633 \end_inset
634
635 から
636 \begin_inset Flex Code
637 status collapsed
638
639 \begin_layout Plain Layout
640
641 \family roman
642 \series medium
643 \shape up
644 \size normal
645 \emph off
646 \bar no
647 \noun off
648 \color none
649 .tex
650 \end_layout
651
652 \end_inset
653
654 に変えて保存.
655 \end_layout
656
657 \begin_layout Enumerate
658
659 \family roman
660 \series medium
661 \shape up
662 \size normal
663 \emph off
664 \bar no
665 \noun off
666 \color none
667 この
668 \begin_inset Flex Code
669 status collapsed
670
671 \begin_layout Plain Layout
672
673 \family roman
674 \series medium
675 \shape up
676 \size normal
677 \emph off
678 \bar no
679 \noun off
680 \color none
681 .tex
682 \end_layout
683
684 \end_inset
685
686 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
687 を実行し,\SpecialChar LaTeX
688 ファイルをコンパイルするのに必要な他のコマンド(
689 \begin_inset Flex Code
690 status collapsed
691
692 \begin_layout Plain Layout
693
694 \family roman
695 \series medium
696 \shape up
697 \size normal
698 \emph off
699 \bar no
700 \noun off
701 \color none
702 bibtex
703 \end_layout
704
705 \end_inset
706
707
708 \begin_inset Flex Code
709 status collapsed
710
711 \begin_layout Plain Layout
712
713 \family roman
714 \series medium
715 \shape up
716 \size normal
717 \emph off
718 \bar no
719 \noun off
720 \color none
721 makeindex
722 \end_layout
723
724 \end_inset
725
726 など)を実行..
727 \end_layout
728
729 \begin_layout Enumerate
730
731 \family roman
732 \series medium
733 \shape up
734 \size normal
735 \emph off
736 \bar no
737 \noun off
738 \color none
739 もしエラーがあれば,エラーログを表示.
740 \end_layout
741
742 \begin_layout Standard
743
744 \family roman
745 \series medium
746 \shape up
747 \size normal
748 \emph off
749 \bar no
750 \noun off
751 \color none
752 \SpecialChar LaTeX
753
754 \family sans
755 \series default
756 \shape default
757 \size default
758 \emph default
759 \bar default
760 \noun default
761 \color inherit
762
763 \begin_inset Flex MenuItem
764 status collapsed
765
766 \begin_layout Plain Layout
767
768 \family sans
769 表示\SpecialChar menuseparator
770 DVI
771 \end_layout
772
773 \end_inset
774
775
776 \family roman
777 \series medium
778 \shape up
779 \size normal
780 \emph off
781 \bar no
782 \noun off
783 \color none
784 を使用して実行した場合には,\SpecialChar LyX
785 はこの後,DVIビューアを実行してDVIファイルを表示します.
786 \begin_inset Flex MenuItem
787 status collapsed
788
789 \begin_layout Plain Layout
790
791 \family roman
792 \series medium
793 \shape up
794 \size normal
795 \emph off
796 \bar no
797 \noun off
798 \color none
799 表示\SpecialChar menuseparator
800 PostScript
801 \end_layout
802
803 \end_inset
804
805 を使用した場合には,\SpecialChar LyX
806 はさらに以下の段階をふみます.
807 \end_layout
808
809 \begin_layout Itemize
810
811 \family roman
812 \series medium
813 \shape up
814 \size normal
815 \emph off
816 \bar no
817 \noun off
818 \color none
819 \begin_inset Flex Code
820 status collapsed
821
822 \begin_layout Plain Layout
823
824 \family typewriter
825 dvips
826 \end_layout
827
828 \end_inset
829
830 を実行して,
831 \family default
832 \series default
833 \shape default
834 \size default
835 \emph default
836 \bar default
837 \noun default
838 \color inherit
839 DVI
840 \family roman
841 \series medium
842 \shape up
843 \size normal
844 \emph off
845 \bar no
846 \noun off
847 \color none
848 ファイルをPostScript
849 \family default
850 \series default
851 \shape default
852 \size default
853 \emph default
854 \bar default
855 \noun default
856 \color inherit
857 に変換.
858 \end_layout
859
860 \begin_layout Itemize
861
862 \family roman
863 \series medium
864 \shape up
865 \size normal
866 \emph off
867 \bar no
868 \noun off
869 \color none
870 \begin_inset Flex Code
871 status collapsed
872
873 \begin_layout Plain Layout
874
875 \family typewriter
876 ghostview
877 \end_layout
878
879 \end_inset
880
881 などのPostScriptビューアを実行して,PostScript
882 \family default
883 \series default
884 \shape default
885 \size default
886 \emph default
887 \bar default
888 \noun default
889 \color inherit
890 ファイルを表示.
891 \end_layout
892
893 \begin_layout Standard
894 \SpecialChar LyX
895 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
896 \end_layout
897
898 \begin_layout Section
899 \SpecialChar LaTeX
900 ファイルを\SpecialChar LyX
901 に読み込む
902 \end_layout
903
904 \begin_layout Standard
905 \SpecialChar LyX
906
907 \family sans
908
909 \begin_inset Flex MenuItem
910 status collapsed
911
912 \begin_layout Plain Layout
913
914 \family sans
915 ファイル\SpecialChar menuseparator
916 インポート\SpecialChar menuseparator
917 LaTeX
918 \end_layout
919
920 \end_inset
921
922
923 \family roman
924 \series medium
925 \shape up
926 \size normal
927 \emph off
928 \bar no
929 \noun off
930 \color none
931 コマンドを使用すると,\SpecialChar LaTeX
932 ファイルを
933 \family default
934 \series default
935 \shape default
936 \size default
937 \emph default
938 \bar default
939 \noun default
940  
941 \family roman
942 \series medium
943 \shape up
944 \size normal
945 \emph off
946 \bar no
947 \noun off
948 \SpecialChar LyX
949 にインポートすることができます.このコマンドは,
950 \family typewriter
951 \series default
952 \shape default
953 \size default
954 \emph default
955 \bar default
956 \noun default
957 \color inherit
958
959 \begin_inset Flex Code
960 status collapsed
961
962 \begin_layout Plain Layout
963
964 \family typewriter
965 tex2lyx
966 \end_layout
967
968 \end_inset
969
970
971 \family roman
972 \series medium
973 \shape up
974 \size normal
975 \emph off
976 \bar no
977 \noun off
978 \color none
979 というプログラムを呼び出し,
980 \family typewriter
981 \series default
982 \shape default
983 \size default
984 \emph default
985 \bar default
986 \noun default
987 \color inherit
988
989 \begin_inset Flex Code
990 status collapsed
991
992 \begin_layout Plain Layout
993
994 \family typewriter
995 foo.tex
996 \end_layout
997
998 \end_inset
999
1000
1001 \family default
1002 などというファイルから
1003 \begin_inset Flex Code
1004 status collapsed
1005
1006 \begin_layout Plain Layout
1007
1008 \family typewriter
1009 foo.lyx
1010 \end_layout
1011
1012 \end_inset
1013
1014 を生成します.\SpecialChar LyX
1015 は,この変換したファイルを開きます
1016 \begin_inset Foot
1017 status collapsed
1018
1019 \begin_layout Plain Layout
1020 \begin_inset Flex Code
1021 status collapsed
1022
1023 \begin_layout Plain Layout
1024 tex2lyx
1025 \end_layout
1026
1027 \end_inset
1028
1029 は,もちろんコマンドラインから実行することもできます.
1030 \end_layout
1031
1032 \end_inset
1033
1034
1035 \end_layout
1036
1037 \begin_layout Standard
1038
1039 \family typewriter
1040 \begin_inset Flex Code
1041 status collapsed
1042
1043 \begin_layout Plain Layout
1044
1045 \family typewriter
1046 tex2lyx
1047 \end_layout
1048
1049 \end_inset
1050
1051
1052 \family roman
1053 \series medium
1054 \shape up
1055 \size normal
1056 \emph off
1057 \bar no
1058 \noun off
1059 \color none
1060 は,文法的に正しい\SpecialChar LaTeX
1061 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1062 \family typewriter
1063 \series default
1064 \shape default
1065 \size default
1066 \emph default
1067 \bar default
1068 \noun default
1069 \color inherit
1070
1071 \begin_inset Flex Code
1072 status collapsed
1073
1074 \begin_layout Plain Layout
1075
1076 \family typewriter
1077 tex2lyx
1078 \end_layout
1079
1080 \end_inset
1081
1082
1083 \family roman
1084 \series medium
1085 \shape up
1086 \size normal
1087 \emph off
1088 \bar no
1089 \noun off
1090 \color none
1091 は,理解不能な部分は\SpecialChar TeX
1092 コードボックスの形で残しますので,ファイルを
1093 \family typewriter
1094 \series default
1095 \shape default
1096 \size default
1097 \emph default
1098 \bar default
1099 \noun default
1100 \color inherit
1101
1102 \begin_inset Flex Code
1103 status collapsed
1104
1105 \begin_layout Plain Layout
1106
1107 \family typewriter
1108 tex2lyx
1109 \end_layout
1110
1111 \end_inset
1112
1113
1114 \family roman
1115 \series medium
1116 \shape up
1117 \size normal
1118 \emph off
1119 \bar no
1120 \noun off
1121 \color none
1122 で変換したのち,\SpecialChar TeX
1123 コードボックスを探して,手動で正しく編集してください.
1124 \end_layout
1125
1126 \begin_layout Standard
1127
1128 \family roman
1129 \series medium
1130 \shape up
1131 \size normal
1132 \emph off
1133 \bar no
1134 \noun off
1135 \color none
1136 \SpecialChar TeX
1137 コードボックスがなにかご存じなければ,次節をお読みください.
1138 \end_layout
1139
1140 \begin_layout Section
1141 \SpecialChar LyX
1142 文書に\SpecialChar TeX
1143 コードを挿入する
1144 \begin_inset CommandInset label
1145 LatexCommand label
1146 name "sec:TeXコードを挿入する"
1147
1148 \end_inset
1149
1150
1151 \end_layout
1152
1153 \begin_layout Standard
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 LyX
1164 文書にもつねに\SpecialChar TeX
1165 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1166 にできることは,つねに\SpecialChar LyX
1167 でも行うことができます.一方,\SpecialChar LyX
1168 は,すべての\SpecialChar LaTeX
1169 構成物を\SpecialChar LyX
1170 内に
1171 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1172 コマンドを\SpecialChar LyX
1173 文書に挿入する必要が出てきた場合には,
1174 \begin_inset Flex Code
1175 status collapsed
1176
1177 \begin_layout Plain Layout
1178
1179 \family roman
1180 \series medium
1181 \shape up
1182 \size normal
1183 \emph off
1184 \bar no
1185 \noun off
1186 \color none
1187 \SpecialChar TeX
1188 コード
1189 \end_layout
1190
1191 \end_inset
1192
1193 ボックスを使用してください.これは,
1194 \family sans
1195 \series default
1196 \shape default
1197 \size default
1198 \emph default
1199 \bar default
1200 \noun default
1201 \color inherit
1202
1203 \begin_inset Flex MenuItem
1204 status collapsed
1205
1206 \begin_layout Plain Layout
1207
1208 \family sans
1209 挿入\SpecialChar menuseparator
1210 TeXコード
1211 \end_layout
1212
1213 \end_inset
1214
1215
1216 \family roman
1217 \series medium
1218 \shape up
1219 \size normal
1220 \emph off
1221 \bar no
1222 \noun off
1223 \color none
1224 若しくは
1225 \family default
1226 \series default
1227 \shape default
1228 \size default
1229 \emph default
1230 \bar default
1231 \noun default
1232 \color inherit
1233
1234 \begin_inset Flex Ruby
1235 status collapsed
1236
1237 \begin_layout Plain Layout
1238
1239 \family roman
1240 \series medium
1241 \shape up
1242 \size normal
1243 \emph off
1244 \bar no
1245 \noun off
1246 \color none
1247 捷径
1248 \family default
1249 \series default
1250 \shape default
1251 \size default
1252 \emph default
1253 \bar default
1254 \noun default
1255 \color inherit
1256
1257 \begin_inset Argument post:1
1258 status collapsed
1259
1260 \begin_layout Plain Layout
1261 ショートカット
1262 \end_layout
1263
1264 \end_inset
1265
1266
1267 \end_layout
1268
1269 \end_inset
1270
1271
1272 \begin_inset Flex Ruby
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276
1277 \family roman
1278 \series medium
1279 \shape up
1280 \size normal
1281 \emph off
1282 \bar no
1283 \noun off
1284 \color none
1285
1286 \begin_inset Argument post:1
1287 status collapsed
1288
1289 \begin_layout Plain Layout
1290 キー
1291 \end_layout
1292
1293 \end_inset
1294
1295
1296 \end_layout
1297
1298 \end_inset
1299
1300
1301 \begin_inset Info
1302 type  "shortcut"
1303 arg   "ert-insert"
1304 \end_inset
1305
1306
1307 \family roman
1308 \series medium
1309 \shape up
1310 \size normal
1311 \emph off
1312 \bar no
1313 \noun off
1314 \color none
1315 で,文書中に挿入することができます.
1316 \end_layout
1317
1318 \begin_layout Standard
1319 以下は,\SpecialChar LaTeX
1320 コマンドを\SpecialChar LyX
1321 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1322 \end_layout
1323
1324 \begin_layout LyX-Code
1325
1326 \backslash
1327 begin{tabular}{ll}
1328 \begin_inset Newline newline
1329 \end_inset
1330
1331
1332 \backslash
1333 begin{minipage}{5cm}
1334 \begin_inset Newline newline
1335 \end_inset
1336
1337 これは,ミニページ環境の例です.
1338 \begin_inset Newline newline
1339 \end_inset
1340
1341 これには,
1342 \begin_inset Newline newline
1343 \end_inset
1344
1345 (フロートでない)図表を
1346 \begin_inset Newline newline
1347 \end_inset
1348
1349 含め,ほとんど何でも
1350 \begin_inset Newline newline
1351 \end_inset
1352
1353 入れることができます. 
1354 \begin_inset Newline newline
1355 \end_inset
1356
1357
1358 \backslash
1359 end{minipage}
1360 \begin_inset Newline newline
1361 \end_inset
1362
1363 &
1364 \begin_inset Newline newline
1365 \end_inset
1366
1367
1368 \backslash
1369 begin{minipage}{5cm}
1370 \begin_inset Newline newline
1371 \end_inset
1372
1373
1374 \backslash
1375 begin{verbatim}
1376 \begin_inset Newline newline
1377 \end_inset
1378
1379
1380 \backslash
1381 begin{minipage}{5cm}
1382 \begin_inset Newline newline
1383 \end_inset
1384
1385 これは...
1386  
1387 \begin_inset Newline newline
1388 \end_inset
1389
1390
1391 \backslash
1392 end{minipage}
1393 \begin_inset Newline newline
1394 \end_inset
1395
1396
1397 \backslash
1398 end{verbatim}
1399 \begin_inset Newline newline
1400 \end_inset
1401
1402
1403 \backslash
1404 end{minipage}
1405 \begin_inset Newline newline
1406 \end_inset
1407
1408
1409 \backslash
1410 end{tabular}
1411 \end_layout
1412
1413 \begin_layout LyX-Code
1414
1415 \end_layout
1416
1417 \begin_layout Standard
1418 上記のテキストを含んだ
1419 \begin_inset Flex Code
1420 status collapsed
1421
1422 \begin_layout Plain Layout
1423 \SpecialChar TeX
1424 コード
1425 \end_layout
1426
1427 \end_inset
1428
1429 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1430 上でご覧になっていれば,\SpecialChar TeX
1431 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1432 れるはずです.
1433 \end_layout
1434
1435 \begin_layout Standard
1436 \begin_inset VSpace bigskip
1437 \end_inset
1438
1439
1440 \begin_inset ERT
1441 status open
1442
1443 \begin_layout Plain Layout
1444
1445
1446 \backslash
1447 begin{tabular}{ll}
1448 \end_layout
1449
1450 \begin_layout Plain Layout
1451
1452
1453 \backslash
1454 begin{minipage}{5cm}
1455 \end_layout
1456
1457 \begin_layout Plain Layout
1458
1459 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1460 \backslash
1461 end{minipage}
1462 \end_layout
1463
1464 \begin_layout Plain Layout
1465
1466 &
1467 \end_layout
1468
1469 \begin_layout Plain Layout
1470
1471
1472 \backslash
1473 begin{minipage}{5cm}
1474 \end_layout
1475
1476 \begin_layout Plain Layout
1477
1478
1479 \backslash
1480 begin{verbatim}
1481 \end_layout
1482
1483 \begin_layout Plain Layout
1484
1485
1486 \backslash
1487 begin{minipage}{5cm}
1488 \end_layout
1489
1490 \begin_layout Plain Layout
1491
1492 これは...
1493  
1494 \backslash
1495 end{minipage}
1496 \end_layout
1497
1498 \begin_layout Plain Layout
1499
1500
1501 \backslash
1502 end{verbatim}
1503 \end_layout
1504
1505 \begin_layout Plain Layout
1506
1507
1508 \backslash
1509 end{minipage}
1510 \end_layout
1511
1512 \begin_layout Plain Layout
1513
1514
1515 \backslash
1516 end{tabular}
1517 \end_layout
1518
1519 \end_inset
1520
1521
1522 \begin_inset VSpace bigskip
1523 \end_inset
1524
1525
1526 \end_layout
1527
1528 \begin_layout Standard
1529
1530 \family roman
1531 \series medium
1532 \shape up
1533 \size normal
1534 \emph off
1535 \bar no
1536 \noun off
1537 \color none
1538 \SpecialChar TeX
1539 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1540 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1541 \begin_inset Flex MenuItem
1542 status collapsed
1543
1544 \begin_layout Plain Layout
1545
1546 \family roman
1547 \series medium
1548 \shape up
1549 \size normal
1550 \emph off
1551 \bar no
1552 \noun off
1553 \color none
1554 挿入\SpecialChar menuseparator
1555 ファイル\SpecialChar menuseparator
1556 子文書
1557 \end_layout
1558
1559 \end_inset
1560
1561 を使用する方法もあります(取り込みの型として
1562 \begin_inset Flex Code
1563 status collapsed
1564
1565 \begin_layout Plain Layout
1566
1567 \family roman
1568 \series medium
1569 \shape up
1570 \size normal
1571 \emph off
1572 \bar no
1573 \noun off
1574 \color none
1575 Input
1576 \end_layout
1577
1578 \end_inset
1579
1580 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1581 \family default
1582 \series default
1583 \shape default
1584 \size default
1585 \emph on
1586 \bar default
1587 \noun default
1588 \color inherit
1589 確認できている
1590 \family roman
1591 \series medium
1592 \shape up
1593 \size normal
1594 \emph off
1595 \bar no
1596 \noun off
1597 \color none
1598 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1599 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1600 \end_layout
1601
1602 \begin_layout Standard
1603
1604 \family roman
1605 \series medium
1606 \shape up
1607 \size normal
1608 \emph off
1609 \bar no
1610 \noun off
1611 \color none
1612 最後に,いくつか強調しておくべきことがあります.
1613 \end_layout
1614
1615 \begin_layout Itemize
1616
1617 \family roman
1618 \series medium
1619 \shape up
1620 \size normal
1621 \emph off
1622 \bar no
1623 \noun off
1624 \color none
1625 \SpecialChar LyX
1626 は,あなたの\SpecialChar LaTeX
1627 コードが正しいかどうかを
1628 \family default
1629 \series default
1630 \shape default
1631 \size default
1632 \emph on
1633 \bar default
1634 \noun default
1635 \color inherit
1636 チェックしません
1637 \family roman
1638 \series medium
1639 \shape up
1640 \size normal
1641 \emph off
1642 \bar no
1643 \noun off
1644 \color none
1645
1646 \end_layout
1647
1648 \begin_layout Itemize
1649
1650 \family roman
1651 \series medium
1652 \shape up
1653 \size normal
1654 \emph off
1655 \bar no
1656 \noun off
1657 \color none
1658 車輪の再発明をしないようにご注意ください.
1659 \end_layout
1660
1661 \begin_layout Standard
1662
1663 \family roman
1664 \series medium
1665 \shape up
1666 \size normal
1667 \emph off
1668 \bar no
1669 \noun off
1670 \color none
1671 二番目の点に関して,\SpecialChar LyX
1672 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1673 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1674 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1675 う膨大な数の\SpecialChar LaTeX
1676 パッケージが存在します.
1677 \family default
1678 \series default
1679 \shape default
1680 \size default
1681 \emph default
1682 \bar default
1683 \noun default
1684 \color inherit
1685 詳細については,
1686 \begin_inset CommandInset href
1687 LatexCommand href
1688 name "CTAN"
1689 target "http://www.ctan.org/"
1690 literal "false"
1691
1692 \end_inset
1693
1694
1695 \family roman
1696 \series medium
1697 \shape up
1698 \size normal
1699 \emph off
1700 \bar no
1701 \noun off
1702 \color none
1703 と第
1704 \begin_inset CommandInset ref
1705 LatexCommand ref
1706 reference "chap:Special-features"
1707
1708 \end_inset
1709
1710 節をご覧ください.
1711 \end_layout
1712
1713 \begin_layout Standard
1714
1715 \family roman
1716 \series medium
1717 \shape up
1718 \size normal
1719 \emph off
1720 \bar no
1721 \noun off
1722 \color none
1723 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1724 関連書籍を参考とするようにしてください.『
1725 \family default
1726 \series default
1727 \shape default
1728 \size default
1729 \emph on
1730 \bar default
1731 \noun default
1732 \color inherit
1733 ユーザーの手引き
1734 \family roman
1735 \series medium
1736 \shape up
1737 \size normal
1738 \emph off
1739 \bar no
1740 \noun off
1741 \color none
1742 』の書誌情報に多くの\SpecialChar LaTeX
1743 関連書籍が引用されています.
1744 \end_layout
1745
1746 \begin_layout Section
1747 \SpecialChar LyX
1748 と\SpecialChar LaTeX
1749 プリアンブル
1750 \end_layout
1751
1752 \begin_layout Subsection
1753 \SpecialChar LaTeX
1754 プリアンブルについて
1755 \end_layout
1756
1757 \begin_layout Standard
1758
1759 \family roman
1760 \series medium
1761 \shape up
1762 \size normal
1763 \emph off
1764 \bar no
1765 \noun off
1766 \color none
1767 すでに\SpecialChar LaTeX
1768 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1769 ずです.詳しくは\SpecialChar LaTeX
1770 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1771 文書の\SpecialChar LaTeX
1772 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1773 みになった方が良いでしょう.
1774 \end_layout
1775
1776 \begin_layout Standard
1777
1778 \family roman
1779 \series medium
1780 \shape up
1781 \size normal
1782 \emph off
1783 \bar no
1784 \noun off
1785 \color none
1786 \SpecialChar LaTeX
1787 プリアンブルは,\SpecialChar LaTeX
1788 文書のいちばん始め,本文の
1789 \family default
1790 \series default
1791 \shape default
1792 \size default
1793 \emph on
1794 \bar default
1795 \noun default
1796 \color inherit
1797
1798 \family roman
1799 \series medium
1800 \shape up
1801 \size normal
1802 \emph off
1803 \bar no
1804 \noun off
1805 \color none
1806 の部分に来ます.ここでは以下のことを行います.
1807 \end_layout
1808
1809 \begin_layout Itemize
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 文書クラス(ドキュメントクラス)の宣言.
1820 \begin_inset Newline newline
1821 \end_inset
1822
1823 これは\SpecialChar LyX
1824 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1825 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1826 \family default
1827 \series default
1828 \shape default
1829 \size default
1830 \emph on
1831 \bar default
1832 \noun default
1833 \color inherit
1834 カスタマイズ篇
1835 \family roman
1836 \series medium
1837 \shape up
1838 \size normal
1839 \emph off
1840 \bar no
1841 \noun off
1842 \color none
1843 』をご覧になれば,\SpecialChar LyX
1844 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1845 \end_layout
1846
1847 \begin_layout Itemize
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 Newline newline
1859 \end_inset
1860
1861 \SpecialChar LaTeX
1862 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1863 提供されることに加え,文書に変更を加えることができます.例えば
1864 \family typewriter
1865 \series default
1866 \shape default
1867 \size default
1868 \emph default
1869 \bar default
1870 \noun default
1871 \color inherit
1872
1873 \family roman
1874 \series medium
1875 \shape up
1876 \size normal
1877 \emph off
1878 \bar no
1879 \noun off
1880 \color none
1881
1882 \begin_inset Flex Code
1883 status collapsed
1884
1885 \begin_layout Plain Layout
1886
1887 \family typewriter
1888 indentfirst
1889 \end_layout
1890
1891 \end_inset
1892
1893 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1894 \end_layout
1895
1896 \begin_layout Itemize
1897
1898 \family roman
1899 \series medium
1900 \shape up
1901 \size normal
1902 \emph off
1903 \bar no
1904 \noun off
1905 \color none
1906 カウンタ・変数・長さ・幅の設定.
1907 \begin_inset Newline newline
1908 \end_inset
1909
1910 \SpecialChar LaTeX
1911 のカウンタと変数の中には,プリアンブルでグローバルに
1912 \family default
1913 \series default
1914 \shape default
1915 \size default
1916 \emph default
1917 \bar default
1918 \noun default
1919 \color inherit
1920 設定
1921 \emph on
1922 しないかぎり
1923 \family roman
1924 \series medium
1925 \shape up
1926 \size normal
1927 \emph off
1928 \bar no
1929 \noun off
1930 \color none
1931 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1932 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1933 \end_layout
1934
1935 \begin_layout Itemize
1936
1937 \family roman
1938 \series medium
1939 \shape up
1940 \size normal
1941 \emph off
1942 \bar no
1943 \noun off
1944 \color none
1945 ユーザー定義コマンドの宣言(
1946 \begin_inset Flex Code
1947 status collapsed
1948
1949 \begin_layout Plain Layout
1950
1951 \family roman
1952 \series medium
1953 \shape up
1954 \size normal
1955 \emph off
1956 \bar no
1957 \noun off
1958 \color none
1959
1960 \backslash
1961 newcommand
1962 \end_layout
1963
1964 \end_inset
1965
1966 または
1967 \begin_inset Flex Code
1968 status collapsed
1969
1970 \begin_layout Plain Layout
1971
1972 \family roman
1973 \series medium
1974 \shape up
1975 \size normal
1976 \emph off
1977 \bar no
1978 \noun off
1979 \color none
1980
1981 \backslash
1982 renewcommand
1983 \end_layout
1984
1985 \end_inset
1986
1987 を使用).
1988 \begin_inset Newline newline
1989 \end_inset
1990
1991 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1992 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1993 \family default
1994 \series default
1995 \shape default
1996 \size default
1997 \emph on
1998 \bar default
1999 \noun default
2000 \color inherit
2001 可能
2002 \family roman
2003 \series medium
2004 \shape up
2005 \size normal
2006 \emph off
2007 \bar no
2008 \noun off
2009 \color none
2010 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2011 コードがあふれている場合には便利でしょう.
2012 \end_layout
2013
2014 \begin_layout Standard
2015
2016 \family roman
2017 \series medium
2018 \shape up
2019 \size normal
2020 \emph off
2021 \bar no
2022 \noun off
2023 \color none
2024 \SpecialChar LyX
2025 は,その生成する
2026 \begin_inset Flex Code
2027 status collapsed
2028
2029 \begin_layout Plain Layout
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 .tex
2040 \end_layout
2041
2042 \end_inset
2043
2044 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2045 の生成する\SpecialChar LaTeX
2046 ファイルの可搬性を高めています.
2047 \end_layout
2048
2049 \begin_layout Subsection
2050 プリアンブルの変更
2051 \end_layout
2052
2053 \begin_layout Standard
2054
2055 \family roman
2056 \series medium
2057 \shape up
2058 \size normal
2059 \emph off
2060 \bar no
2061 \noun off
2062 \color none
2063 \SpecialChar LyX
2064 が\SpecialChar LaTeX
2065 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2066 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2067 \begin_inset Flex MenuItem
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071
2072 \family roman
2073 \series medium
2074 \shape up
2075 \size normal
2076 \emph off
2077 \bar no
2078 \noun off
2079 \color none
2080 文書\SpecialChar menuseparator
2081 設定
2082 \end_layout
2083
2084 \end_inset
2085
2086 ダイアログの
2087 \begin_inset Flex MenuItem
2088 status collapsed
2089
2090 \begin_layout Plain Layout
2091
2092 \family roman
2093 \series medium
2094 \shape up
2095 \size normal
2096 \emph off
2097 \bar no
2098 \noun off
2099 \color none
2100 \SpecialChar LaTeX
2101 プリアンブル
2102 \end_layout
2103
2104 \end_inset
2105
2106 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2107 は,
2108 \family sans
2109 \series default
2110 \shape default
2111 \size default
2112 \emph default
2113 \bar default
2114 \noun default
2115 \color inherit
2116
2117 \begin_inset Flex MenuItem
2118 status collapsed
2119
2120 \begin_layout Plain Layout
2121
2122 \family sans
2123 プリアンブル
2124 \end_layout
2125
2126 \end_inset
2127
2128
2129 \family roman
2130 \series medium
2131 \shape up
2132 \size normal
2133 \emph off
2134 \bar no
2135 \noun off
2136 \color none
2137 ダイアログ内のすべてのものを,\SpecialChar LyX
2138 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2139 がすでにサポートしてい
2140 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2141 \family default
2142 \series default
2143 \shape default
2144 \size default
2145 \emph default
2146 \bar default
2147 \noun default
2148 \color inherit
2149 また,
2150 \emph on
2151 プリアンブルコードが正しいことを確認してください.
2152 \emph default
2153 \SpecialChar LyX
2154 は,プリアンブルをチェックしません.
2155 \family roman
2156 \series medium
2157 \shape up
2158 \size normal
2159 \emph off
2160 \bar no
2161 \noun off
2162 \color none
2163 もしエラーがあれば,「
2164 \begin_inset Flex Code
2165 status collapsed
2166
2167 \begin_layout Plain Layout
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 Missing 
2178 \backslash
2179 begin{document}
2180 \end_layout
2181
2182 \end_inset
2183
2184 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2185 \end_layout
2186
2187 \begin_layout Subsection
2188
2189 \end_layout
2190
2191 \begin_layout Standard
2192
2193 \family roman
2194 \series medium
2195 \shape up
2196 \size normal
2197 \emph off
2198 \bar no
2199 \noun off
2200 \color none
2201 以下は,プリアンブルに追加できるものとその効果を示す例です.
2202 \end_layout
2203
2204 \begin_layout Subsubsection
2205 例1:オフセット
2206 \end_layout
2207
2208 \begin_layout Standard
2209
2210 \family roman
2211 \series medium
2212 \shape up
2213 \size normal
2214 \emph off
2215 \bar no
2216 \noun off
2217 \color none
2218 \SpecialChar LaTeX
2219 には
2220 \family default
2221 \series default
2222 \shape default
2223 \size default
2224 \emph default
2225 \bar default
2226 \noun default
2227 \color inherit
2228
2229 \family roman
2230 \series medium
2231 \shape up
2232 \size normal
2233 \emph off
2234 \bar no
2235 \noun off
2236 \color none
2237
2238 \begin_inset Flex Code
2239 status collapsed
2240
2241 \begin_layout Plain Layout
2242
2243 \family typewriter
2244
2245 \backslash
2246 hoffset
2247 \end_layout
2248
2249 \end_inset
2250
2251
2252 \family typewriter
2253 \series default
2254 \shape default
2255 \size default
2256 \emph default
2257 \bar default
2258 \noun default
2259 \color inherit
2260
2261 \begin_inset Flex Code
2262 status collapsed
2263
2264 \begin_layout Plain Layout
2265
2266 \family typewriter
2267
2268 \backslash
2269 voffset
2270 \end_layout
2271
2272 \end_inset
2273
2274
2275 \family roman
2276 \series medium
2277 \shape up
2278 \size normal
2279 \emph off
2280 \bar no
2281 \noun off
2282 \color none
2283 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2284 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289
2290 \family typewriter
2291
2292 \backslash
2293 hoffset
2294 \end_layout
2295
2296 \end_inset
2297
2298
2299 \family typewriter
2300 \series default
2301 \shape default
2302 \size default
2303 \emph default
2304 \bar default
2305 \noun default
2306 \color inherit
2307
2308 \begin_inset Flex Code
2309 status collapsed
2310
2311 \begin_layout Plain Layout
2312
2313 \family typewriter
2314
2315 \backslash
2316 voffset
2317 \end_layout
2318
2319 \end_inset
2320
2321
2322 \family default
2323 が役立つわけです.
2324 \end_layout
2325
2326 \begin_layout Standard
2327
2328 \family roman
2329 \series medium
2330 \shape up
2331 \size normal
2332 \emph off
2333 \bar no
2334 \noun off
2335 \color none
2336 \begin_inset Flex Code
2337 status collapsed
2338
2339 \begin_layout Plain Layout
2340
2341 \family typewriter
2342
2343 \backslash
2344 hoffset
2345 \end_layout
2346
2347 \end_inset
2348
2349
2350 \family typewriter
2351 \series default
2352 \shape default
2353 \size default
2354 \emph default
2355 \bar default
2356 \noun default
2357 \color inherit
2358
2359 \begin_inset Flex Code
2360 status collapsed
2361
2362 \begin_layout Plain Layout
2363
2364 \family typewriter
2365
2366 \backslash
2367 voffset
2368 \end_layout
2369
2370 \end_inset
2371
2372
2373 \family roman
2374 \series medium
2375 \shape up
2376 \size normal
2377 \emph off
2378 \bar no
2379 \noun off
2380 \color none
2381 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2382 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2383 を使用していて,シスアドがお馬鹿さんである
2384 場合には,
2385 \begin_inset Flex Code
2386 status collapsed
2387
2388 \begin_layout Plain Layout
2389
2390 \family typewriter
2391
2392 \backslash
2393 hoffset
2394 \end_layout
2395
2396 \end_inset
2397
2398
2399 \family typewriter
2400 \series default
2401 \shape default
2402 \size default
2403 \emph default
2404 \bar default
2405 \noun default
2406 \color inherit
2407
2408 \begin_inset Flex Code
2409 status collapsed
2410
2411 \begin_layout Plain Layout
2412
2413 \family typewriter
2414
2415 \backslash
2416 voffset
2417 \end_layout
2418
2419 \end_inset
2420
2421
2422 \family roman
2423 \series medium
2424 \shape up
2425 \size normal
2426 \emph off
2427 \bar no
2428 \noun off
2429 \color none
2430 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2431 \end_layout
2432
2433 \begin_layout LyX-Code
2434
2435 \backslash
2436 setlength{
2437 \backslash
2438 hoffset}{-0.5 in}
2439 \end_layout
2440
2441 \begin_layout LyX-Code
2442
2443 \backslash
2444 setlength{
2445 \backslash
2446 voffset}{-0.5 in}
2447 \end_layout
2448
2449 \begin_layout Standard
2450
2451 \family roman
2452 \series medium
2453 \shape up
2454 \size normal
2455 \emph off
2456 \bar no
2457 \noun off
2458 \color none
2459 これで余白が修正されます.
2460 \end_layout
2461
2462 \begin_layout Subsubsection
2463 例2:ラベル
2464 \end_layout
2465
2466 \begin_layout Standard
2467
2468 \family roman
2469 \series medium
2470 \shape up
2471 \size normal
2472 \emph off
2473 \bar no
2474 \noun off
2475 \color none
2476 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2477 \begin_inset Flex Code
2478 status collapsed
2479
2480 \begin_layout Plain Layout
2481
2482 \family typewriter
2483 labels.sty
2484 \end_layout
2485
2486 \end_inset
2487
2488 という\SpecialChar LaTeX
2489 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2490 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2491 ることにします.
2492 \end_layout
2493
2494 \begin_layout Standard
2495
2496 \family roman
2497 \series medium
2498 \shape up
2499 \size normal
2500 \emph off
2501 \bar no
2502 \noun off
2503 \color none
2504 まず,
2505 \begin_inset Flex Code
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509
2510 \family sans
2511 article
2512 \end_layout
2513
2514 \end_inset
2515
2516 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2517 \end_layout
2518
2519 \begin_layout LyX-Code
2520
2521 \backslash
2522 usepackage{labels}
2523 \end_layout
2524
2525 \begin_layout LyX-Code
2526
2527 \backslash
2528 LabelCols=3
2529 \end_layout
2530
2531 \begin_layout LyX-Code
2532
2533 \backslash
2534 LabelRows=7
2535 \end_layout
2536
2537 \begin_layout LyX-Code
2538
2539 \backslash
2540 LeftBorder=8mm
2541 \end_layout
2542
2543 \begin_layout LyX-Code
2544
2545 \backslash
2546 RightBorder=8mm
2547 \end_layout
2548
2549 \begin_layout LyX-Code
2550
2551 \backslash
2552 TopBorder=9mm
2553 \end_layout
2554
2555 \begin_layout LyX-Code
2556
2557 \backslash
2558 BottomBorder=2mm
2559 \end_layout
2560
2561 \begin_layout Standard
2562
2563 \family roman
2564 \series medium
2565 \shape up
2566 \size normal
2567 \emph off
2568 \bar no
2569 \noun off
2570 \color none
2571 これは
2572 \family default
2573 \series default
2574 \shape default
2575 \size default
2576 \emph default
2577 \bar default
2578 \noun default
2579 \color inherit
2580 Averyラベルシートのストック5360
2581 \family roman
2582 \series medium
2583 \shape up
2584 \size normal
2585 \emph off
2586 \bar no
2587 \noun off
2588 \color none
2589 番を使用する場合の設定です.これで,各宛名を
2590 \begin_inset Flex Code
2591 status collapsed
2592
2593 \begin_layout Plain Layout
2594
2595 \family typewriter
2596
2597 \backslash
2598 begin{labels}
2599 \end_layout
2600
2601 \end_inset
2602
2603
2604 \family typewriter
2605 \series default
2606 \shape default
2607 \size default
2608 \emph default
2609 \bar default
2610 \noun default
2611 \color inherit
2612
2613 \begin_inset Flex Code
2614 status collapsed
2615
2616 \begin_layout Plain Layout
2617
2618 \family typewriter
2619
2620 \backslash
2621 end{labels}
2622 \end_layout
2623
2624 \end_inset
2625
2626
2627 \family roman
2628 \series medium
2629 \shape up
2630 \size normal
2631 \emph off
2632 \bar no
2633 \noun off
2634 \color none
2635 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2636 \begin_inset Flex Code
2637 status collapsed
2638
2639 \begin_layout Plain Layout
2640
2641 \family typewriter
2642 labels.sty
2643 \end_layout
2644
2645 \end_inset
2646
2647 の取扱説明書に説明されています.
2648 \end_layout
2649
2650 \begin_layout Standard
2651
2652 \family roman
2653 \series medium
2654 \shape up
2655 \size normal
2656 \emph off
2657 \bar no
2658 \noun off
2659 \color none
2660 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2661 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2662 \end_layout
2663
2664 \begin_layout Subsubsection
2665 例3: 段落の字下げ
2666 \end_layout
2667
2668 \begin_layout Standard
2669
2670 \family roman
2671 \series medium
2672 \shape up
2673 \size normal
2674 \emph off
2675 \bar no
2676 \noun off
2677 \color none
2678 アメリカ人は
2679 \family default
2680 \series default
2681 \shape default
2682 \size default
2683 \emph default
2684 \bar default
2685 \noun default
2686 \color inherit
2687
2688 \emph on
2689 すべての
2690 \family roman
2691 \series medium
2692 \shape up
2693 \size normal
2694 \emph off
2695 \bar no
2696 \noun off
2697 \color none
2698 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2699 ゃと文句を言いつづけるのです
2700 \family default
2701 \series default
2702 \shape default
2703 \size default
2704 \emph default
2705 \bar default
2706 \noun default
2707 \color inherit
2708 .(これはユーモアです.(ほんと?)
2709 \emph on
2710 ユーモアですってば
2711 \emph default
2712 .)
2713 \end_layout
2714
2715 \begin_layout Standard
2716
2717 \family roman
2718 \series medium
2719 \shape up
2720 \size normal
2721 \emph off
2722 \bar no
2723 \noun off
2724 \color none
2725 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2726 \family default
2727 \series default
2728 \shape default
2729 \size default
2730 \emph on
2731 \bar default
2732 \noun default
2733 \color inherit
2734 のみ
2735 \family roman
2736 \series medium
2737 \shape up
2738 \size normal
2739 \emph off
2740 \bar no
2741 \noun off
2742 \color none
2743 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2744 ,字下げをする必要はないのです.
2745 \end_layout
2746
2747 \begin_layout Standard
2748
2749 \family roman
2750 \series medium
2751 \shape up
2752 \size normal
2753 \emph off
2754 \bar no
2755 \noun off
2756 \color none
2757 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2758 ルに次の行を加えて下さい.
2759 \end_layout
2760
2761 \begin_layout LyX-Code
2762
2763 \backslash
2764 usepackage{indentfirst}
2765 \end_layout
2766
2767 \begin_layout Standard
2768
2769 \family roman
2770 \series medium
2771 \shape up
2772 \size normal
2773 \emph off
2774 \bar no
2775 \noun off
2776 \color none
2777 もしお使いの\SpecialChar TeX
2778 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2779 \end_layout
2780
2781 \begin_layout Subsubsection
2782 例4:この文書
2783 \end_layout
2784
2785 \begin_layout Standard
2786
2787 \family roman
2788 \series medium
2789 \shape up
2790 \size normal
2791 \emph off
2792 \bar no
2793 \noun off
2794 \color none
2795 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2796 \family default
2797 \series default
2798 \shape default
2799 \size default
2800 \emph default
2801 \bar default
2802 \noun default
2803 \color inherit
2804
2805 \begin_inset CommandInset ref
2806 LatexCommand ref
2807 reference "chap:Special-features"
2808
2809 \end_inset
2810
2811
2812 \family roman
2813 \series medium
2814 \shape up
2815 \size normal
2816 \emph off
2817 \bar no
2818 \noun off
2819 \color none
2820 章には,他の例や,\SpecialChar LaTeX
2821 の各種の「汚い技」があります.
2822 \end_layout
2823
2824 \begin_layout Section
2825 \SpecialChar LyX
2826 および\SpecialChar LaTeX
2827 のエラー
2828 \end_layout
2829
2830 \begin_layout Standard
2831
2832 \family roman
2833 \series medium
2834 \shape up
2835 \size normal
2836 \emph off
2837 \bar no
2838 \noun off
2839 \color none
2840 \SpecialChar LyX
2841 が\SpecialChar LaTeX
2842 を呼び出す際,\SpecialChar LyX
2843 は\SpecialChar LaTeX
2844 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2845 は,\SpecialChar LaTeX
2846 の実行ログファイルを事後処理用に使います.ログファイルを分
2847 析したのち,\SpecialChar LyX
2848 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2849 ファイル中,そのエラーの発生した場所に表示を移動します
2850 \begin_inset Foot
2851 status collapsed
2852
2853 \begin_layout Plain Layout
2854
2855 \family roman
2856 \series medium
2857 \shape up
2858 \size normal
2859 \emph off
2860 \bar no
2861 \noun off
2862 \color none
2863 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2864 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2865 がある行にエラーがあると報告し
2866 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2867 ーのある場所よりも後ろでエラーが報告されるのです.
2868 \end_layout
2869
2870 \end_inset
2871
2872
2873 \family default
2874 \series default
2875 \shape default
2876 \size default
2877 \emph default
2878 \bar default
2879 \noun default
2880 \color inherit
2881
2882 \end_layout
2883
2884 \begin_layout Standard
2885
2886 \family roman
2887 \series medium
2888 \shape up
2889 \size normal
2890 \emph off
2891 \bar no
2892 \noun off
2893 \color none
2894 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2895 \begin_inset Flex MenuItem
2896 status collapsed
2897
2898 \begin_layout Plain Layout
2899
2900 \family roman
2901 \series medium
2902 \shape up
2903 \size normal
2904 \emph off
2905 \bar no
2906 \noun off
2907 \color none
2908 文書\SpecialChar menuseparator
2909 LaTeXログ
2910 \end_layout
2911
2912 \end_inset
2913
2914 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2915
2916 関連の良書を参照してください.
2917 \end_layout
2918
2919 \begin_layout Itemize
2920
2921 \family typewriter
2922 \begin_inset Flex Code
2923 status collapsed
2924
2925 \begin_layout Plain Layout
2926
2927 \family typewriter
2928 LaTeX Warning
2929 \end_layout
2930
2931 \end_inset
2932
2933
2934 \family roman
2935 \series medium
2936 \shape up
2937 \size normal
2938 \emph off
2939 \bar no
2940 \noun off
2941 \color none
2942
2943 \begin_inset Newline newline
2944 \end_inset
2945
2946 これで始まるメッセージは,\SpecialChar LaTeX
2947 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2948 を実行する必要があることを
2949 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2950 \end_layout
2951
2952 \begin_layout Itemize
2953
2954 \family typewriter
2955 \begin_inset Flex Code
2956 status collapsed
2957
2958 \begin_layout Plain Layout
2959
2960 \family typewriter
2961 LaTeX Font Warning
2962 \end_layout
2963
2964 \end_inset
2965
2966
2967 \family roman
2968 \series medium
2969 \shape up
2970 \size normal
2971 \emph off
2972 \bar no
2973 \noun off
2974 \color none
2975
2976 \begin_inset Newline newline
2977 \end_inset
2978
2979 \SpecialChar LaTeX
2980 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2981 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2982
2983 \end_layout
2984
2985 \begin_layout Itemize
2986
2987 \family roman
2988 \series medium
2989 \shape up
2990 \size normal
2991 \emph off
2992 \bar no
2993 \noun off
2994 \color none
2995 \begin_inset Flex Code
2996 status collapsed
2997
2998 \begin_layout Plain Layout
2999
3000 \family typewriter
3001 Overfull 
3002 \backslash
3003 hbox
3004 \end_layout
3005
3006 \end_inset
3007
3008
3009 \begin_inset Newline newline
3010 \end_inset
3011
3012 \SpecialChar LaTeX
3013 は,
3014 \family default
3015 \series default
3016 \shape default
3017 \size default
3018 \emph on
3019 \bar default
3020 \noun default
3021 \color inherit
3022 ほぼどんなときでも
3023 \family roman
3024 \series medium
3025 \shape up
3026 \size normal
3027 \emph off
3028 \bar no
3029 \noun off
3030 \color none
3031 この警告を吐き出します.どんな文書を書いたとしても,このメッセージは,少なくとも1つは出てくるようです.これは,一行が長すぎて右余白にはみ出してしまったという警
3032 告であり,
3033 \family default
3034 \series default
3035 \shape default
3036 \size default
3037 \emph default
3038 \bar default
3039 \noun default
3040 \color inherit
3041 \SpecialChar LaTeX
3042
3043 \family roman
3044 \series medium
3045 \shape up
3046 \size normal
3047 \emph off
3048 \bar no
3049 \noun off
3050 \color none
3051 が適切な改行方法を見つけられなかった時に生じます(タイプライタ体では自動改行を許されないため頻発することが知られています).ほとんどの場合,最終出力を見ても判別
3052 できないくらい(せいぜい1ポイントか2ポイント)です.しかしながら,時には目に見えて余白にはみ出してしまうこともあるので,その場合には,最終出力では修正したいと
3053 思うことでしょう.
3054 \begin_inset Newline newline
3055 \end_inset
3056
3057 全体的にoverfull行の数をできるだけ少なくする方法はいくつかあります.
3058 \family sans
3059 \series default
3060 \shape default
3061 \size default
3062 \emph default
3063 \bar default
3064 \noun default
3065 \color inherit
3066 文書\SpecialChar menuseparator
3067 設定\SpecialChar menuseparator
3068 フォント
3069 \family roman
3070 \series medium
3071 \shape up
3072 \size normal
3073 \emph off
3074 \bar no
3075 \noun off
3076 \color none
3077
3078 \family sans
3079 \series default
3080 \shape default
3081 \size default
3082 \emph default
3083 \bar default
3084 \noun default
3085 \color inherit
3086 マイクロタイポグラフィ拡張を有効にする
3087 \family roman
3088 \series medium
3089 \shape up
3090 \size normal
3091 \emph off
3092 \bar no
3093 \noun off
3094 \color none
3095 をクリックすると,大幅な改善が見込めます.さらに,
3096 \family sans
3097 \series default
3098 \shape default
3099 \size default
3100 \emph default
3101 \bar default
3102 \noun default
3103 \color inherit
3104 文書\SpecialChar menuseparator
3105 設定\SpecialChar menuseparator
3106 プリアンブル
3107 \family roman
3108 \series medium
3109 \shape up
3110 \size normal
3111 \emph off
3112 \bar no
3113 \noun off
3114 \color none
3115 に以下のような
3116 \family default
3117 \series default
3118 \shape default
3119 \size default
3120 \emph default
3121 \bar default
3122 \noun default
3123 \color inherit
3124 \SpecialChar LaTeX
3125
3126 \family roman
3127 \series medium
3128 \shape up
3129 \size normal
3130 \emph off
3131 \bar no
3132 \noun off
3133 \color none
3134 コードを書いても,overfull行の数は,通常,大幅に減少します(この文書のプリアンブルにも使用しています).
3135 \end_layout
3136
3137 \begin_deeper
3138 \begin_layout LyX-Code
3139
3140 \backslash
3141 tolerance 1414
3142 \begin_inset Newline newline
3143 \end_inset
3144
3145
3146 \backslash
3147 hbadness 1414
3148 \begin_inset Newline newline
3149 \end_inset
3150
3151
3152 \backslash
3153 emergencystretch 1.5em
3154 \begin_inset Newline newline
3155 \end_inset
3156
3157
3158 \backslash
3159 hfuzz 0.3pt
3160 \end_layout
3161
3162 \begin_layout Standard
3163 しかしながら,場合によっては,改行が正しく行われるように,文章そのものを書き換えなくてはならない場合もあります
3164 \begin_inset Foot
3165 status collapsed
3166
3167 \begin_layout Plain Layout
3168 詳細は,
3169 \begin_inset Flex URL
3170 status open
3171
3172 \begin_layout Plain Layout
3173
3174 http://www.tex.ac.uk/FAQ-overfull.html
3175 \end_layout
3176
3177 \end_inset
3178
3179 を参照してください.
3180 \end_layout
3181
3182 \end_inset
3183
3184
3185 \end_layout
3186
3187 \begin_layout Standard
3188 何れにしても,少なくとも文書の完成版では,各行の確認を行うべきです.はみ出過ぎているものがあれば,目で見ればわかるでしょう
3189 \begin_inset Foot
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193
3194 \family sans
3195 文書\SpecialChar menuseparator
3196 設定
3197 \family default
3198 で「draft」オプションを有効にすることもできます.すると,overfull行の余白には,\SpecialChar LaTeX
3199 が黒い四角を描画してくれます.
3200 \end_layout
3201
3202 \end_inset
3203
3204
3205 \end_layout
3206
3207 \end_deeper
3208 \begin_layout Itemize
3209
3210 \family typewriter
3211 \begin_inset Flex Code
3212 status collapsed
3213
3214 \begin_layout Plain Layout
3215
3216 \family typewriter
3217 Underfull 
3218 \backslash
3219 hbox
3220 \end_layout
3221
3222 \end_inset
3223
3224
3225 \begin_inset Newline newline
3226 \end_inset
3227
3228
3229 \family roman
3230 \series medium
3231 \shape up
3232 \size normal
3233 \emph off
3234 \bar no
3235 \noun off
3236 \color none
3237 これは上の警告と違ってあまり出てきません.これも,
3238 \family default
3239 \series default
3240 \shape default
3241 \size default
3242 \emph default
3243 \bar default
3244 \noun default
3245 \color inherit
3246 \SpecialChar LaTeX
3247
3248 \family roman
3249 \series medium
3250 \shape up
3251 \size normal
3252 \emph off
3253 \bar no
3254 \noun off
3255 \color none
3256 が適切な改行方法を見つけられずに,間延びした行を生成せざるを得なかった時に起こります.overfull行と同様,外見上の問題がないかどうか確認してください.
3257 \end_layout
3258
3259 \begin_layout Itemize
3260 \begin_inset Flex Code
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264
3265 \family typewriter
3266 Overfull 
3267 \backslash
3268 vbox
3269 \end_layout
3270
3271 \end_inset
3272
3273
3274 \family typewriter
3275
3276 \begin_inset Flex Code
3277 status collapsed
3278
3279 \begin_layout Plain Layout
3280
3281 \family typewriter
3282 Underfull 
3283 \backslash
3284 vbox
3285 \end_layout
3286
3287 \end_inset
3288
3289
3290 \family default
3291
3292 \begin_inset Newline newline
3293 \end_inset
3294
3295
3296 \family roman
3297 \series medium
3298 \shape up
3299 \size normal
3300 \emph off
3301 \bar no
3302 \noun off
3303 \color none
3304 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3305 \end_layout
3306
3307 \begin_layout Itemize
3308
3309 \family typewriter
3310 \begin_inset Flex Code
3311 status collapsed
3312
3313 \begin_layout Plain Layout
3314
3315 \family typewriter
3316 LaTeX Error: File 
3317 \begin_inset Quotes els
3318 \end_inset
3319
3320 Xxxx
3321 \begin_inset Quotes ers
3322 \end_inset
3323
3324  not found
3325 \end_layout
3326
3327 \end_inset
3328
3329
3330 \family roman
3331 \series medium
3332 \shape up
3333 \size normal
3334 \emph off
3335 \bar no
3336 \noun off
3337 \color none
3338
3339 \begin_inset Newline newline
3340 \end_inset
3341
3342 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3343 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3344 えておらず,
3345 \begin_inset Flex Code
3346 status collapsed
3347
3348 \begin_layout Plain Layout
3349
3350 \family typewriter
3351
3352 \backslash
3353 usepackage{}
3354 \end_layout
3355
3356 \end_inset
3357
3358 コマンドも使用していないとすれば,\SpecialChar LyX
3359 が読み込もうしているパッケージに存在しないものがあるということです.
3360 \family default
3361 \series default
3362 \shape default
3363 \size default
3364 \emph default
3365 \bar default
3366 \noun default
3367 \color inherit
3368
3369 \begin_inset Flex MenuItem
3370 status collapsed
3371
3372 \begin_layout Plain Layout
3373 ヘルプ\SpecialChar menuseparator
3374 \SpecialChar LaTeX
3375 の設定
3376 \end_layout
3377
3378 \end_inset
3379
3380
3381 \family roman
3382 \series medium
3383 \shape up
3384 \size normal
3385 \emph off
3386 \bar no
3387 \noun off
3388 \color none
3389 を使用して,\SpecialChar LyX
3390 が認識しているパッケージの一覧を得てください.このファイルは,(
3391 \begin_inset Flex MenuItem
3392 status collapsed
3393
3394 \begin_layout Plain Layout
3395
3396 \family roman
3397 \series medium
3398 \shape up
3399 \size normal
3400 \emph off
3401 \bar no
3402 \noun off
3403 \color none
3404 ツール\SpecialChar menuseparator
3405 再設定
3406 \end_layout
3407
3408 \end_inset
3409
3410 を使用して)\SpecialChar LyX
3411 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3412 \begin_inset Newline newline
3413 \end_inset
3414
3415
3416 \family sans
3417 \series default
3418 \shape default
3419 \size default
3420 \emph default
3421 \bar default
3422 \noun default
3423 \color inherit
3424
3425 \begin_inset Flex Code
3426 status collapsed
3427
3428 \begin_layout Plain Layout
3429
3430 \family sans
3431
3432 \backslash
3433 usepackage{}
3434 \end_layout
3435
3436 \end_inset
3437
3438
3439 \family roman
3440 \series medium
3441 \shape up
3442 \size normal
3443 \emph off
3444 \bar no
3445 \noun off
3446 \color none
3447 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3448 \end_layout
3449
3450 \begin_layout Itemize
3451
3452 \family typewriter
3453 \begin_inset Flex Code
3454 status collapsed
3455
3456 \begin_layout Plain Layout
3457
3458 \family typewriter
3459 LaTeX Error: Unknown option
3460 \end_layout
3461
3462 \end_inset
3463
3464
3465 \family roman
3466 \series medium
3467 \shape up
3468 \size normal
3469 \emph off
3470 \bar no
3471 \noun off
3472 \color none
3473
3474 \begin_inset Newline newline
3475 \end_inset
3476
3477 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3478 さい.
3479 \end_layout
3480
3481 \begin_layout Itemize
3482
3483 \family typewriter
3484 \begin_inset Flex Code
3485 status collapsed
3486
3487 \begin_layout Plain Layout
3488
3489 \family typewriter
3490 Undefined control sequence
3491 \end_layout
3492
3493 \end_inset
3494
3495
3496 \family roman
3497 \series medium
3498 \shape up
3499 \size normal
3500 \emph off
3501 \bar no
3502 \noun off
3503 \color none
3504
3505 \begin_inset Newline newline
3506 \end_inset
3507
3508 お使いの文書に\SpecialChar LaTeX
3509 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3510 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3511 \end_layout
3512
3513 \begin_layout Standard
3514
3515 \family roman
3516 \series medium
3517 \shape up
3518 \size normal
3519 \emph off
3520 \bar no
3521 \noun off
3522 \color none
3523 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3524 のメッセージです.何を言っているのかさっぱりわからないものもあ
3525 りますが,通常これらは,\SpecialChar TeX
3526 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3527 \family default
3528 \series default
3529 \shape default
3530 \size default
3531 \emph on
3532 \bar default
3533 \noun default
3534 \color inherit
3535 まったく
3536 \family roman
3537 \series medium
3538 \shape up
3539 \size normal
3540 \emph off
3541 \bar no
3542 \noun off
3543 \color none
3544 手がかりがありません.誰もわからないのです.
3545 \end_layout
3546
3547 \begin_layout Standard
3548
3549 \family roman
3550 \series medium
3551 \shape up
3552 \size normal
3553 \emph off
3554 \bar no
3555 \noun off
3556 \color none
3557 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3558 \end_layout
3559
3560 \begin_layout Enumerate
3561
3562 \family roman
3563 \series medium
3564 \shape up
3565 \size normal
3566 \emph off
3567 \bar no
3568 \noun off
3569 \color none
3570 ご自分で挿入した\SpecialChar LaTeX
3571 コードに打ち間違いがないかどうか確かめる.
3572 \end_layout
3573
3574 \begin_layout Enumerate
3575
3576 \family roman
3577 \series medium
3578 \shape up
3579 \size normal
3580 \emph off
3581 \bar no
3582 \noun off
3583 \color none
3584 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3585 \end_layout
3586
3587 \begin_layout Enumerate
3588
3589 \family roman
3590 \series medium
3591 \shape up
3592 \size normal
3593 \emph off
3594 \bar no
3595 \noun off
3596 \color none
3597 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3598 \begin_inset Flex Code
3599 status collapsed
3600
3601 \begin_layout Plain Layout
3602
3603 \family roman
3604 \series medium
3605 \shape up
3606 \size normal
3607 \emph off
3608 \bar no
3609 \noun off
3610 \color none
3611 Missing 
3612 \backslash
3613 begin{document}
3614 \end_layout
3615
3616 \end_inset
3617
3618 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3619 \end_layout
3620
3621 \begin_layout Enumerate
3622
3623 \family roman
3624 \series medium
3625 \shape up
3626 \size normal
3627 \emph off
3628 \bar no
3629 \noun off
3630 \color none
3631 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3632 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3633 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3634 い.
3635 \end_layout
3636
3637 \begin_layout Enumerate
3638
3639 \family roman
3640 \series medium
3641 \shape up
3642 \size normal
3643 \emph off
3644 \bar no
3645 \noun off
3646 \color none
3647 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3648 を微調整するオプションを使用していますか.特に,手動で
3649 \begin_inset Flex Code
3650 status collapsed
3651
3652 \begin_layout Plain Layout
3653
3654 \family sans
3655 Protected
3656 \begin_inset space ~
3657 \end_inset
3658
3659 Blank
3660 \end_layout
3661
3662 \end_inset
3663
3664
3665 \begin_inset Flex Code
3666 status collapsed
3667
3668 \begin_layout Plain Layout
3669
3670 \family sans
3671 Linebreak
3672 \end_layout
3673
3674 \end_inset
3675
3676
3677 \family sans
3678 \series default
3679 \shape default
3680 \size default
3681 \emph default
3682 \bar default
3683 \noun default
3684 \color inherit
3685
3686 \begin_inset Flex Code
3687 status collapsed
3688
3689 \begin_layout Plain Layout
3690
3691 \family sans
3692 Pagebreak
3693 \end_layout
3694
3695 \end_inset
3696
3697
3698 \family roman
3699 \series medium
3700 \shape up
3701 \size normal
3702 \emph off
3703 \bar no
3704 \noun off
3705 \color none
3706 などをたくさん挿入するなど,微調整オプションを
3707 \family default
3708 \series default
3709 \shape default
3710 \size default
3711 \emph on
3712 \bar default
3713 \noun default
3714 \color inherit
3715 悪用
3716 \family roman
3717 \series medium
3718 \shape up
3719 \size normal
3720 \emph off
3721 \bar no
3722 \noun off
3723 \color none
3724 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3725 \end_layout
3726
3727 \begin_layout Enumerate
3728
3729 \family roman
3730 \series medium
3731 \shape up
3732 \size normal
3733 \emph off
3734 \bar no
3735 \noun off
3736 \color none
3737 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3738 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3739 \end_layout
3740
3741 \begin_layout Enumerate
3742 \SpecialChar LaTeX
3743 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3744 はかなり嫌います.可能であれば,問題が生じな
3745 いように段落を修正するのが望ましいでしょう.
3746 \end_layout
3747
3748 \begin_layout Enumerate
3749
3750 \family roman
3751 \series medium
3752 \shape up
3753 \size normal
3754 \emph off
3755 \bar no
3756 \noun off
3757 \color none
3758 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3759 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3760 が原因です(\SpecialChar LaTeX
3761 の上限は5段です).
3762 \end_layout
3763
3764 \begin_layout Enumerate
3765
3766 \family roman
3767 \series medium
3768 \shape up
3769 \size normal
3770 \emph off
3771 \bar no
3772 \noun off
3773 \color none
3774 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3775 \end_layout
3776
3777 \begin_deeper
3778 \begin_layout Enumerate
3779
3780 \family roman
3781 \series medium
3782 \shape up
3783 \size normal
3784 \emph off
3785 \bar no
3786 \noun off
3787 \color none
3788 図がページに合うように大きさを変える,
3789 \end_layout
3790
3791 \begin_layout Enumerate
3792
3793 \family roman
3794 \series medium
3795 \shape up
3796 \size normal
3797 \emph off
3798 \bar no
3799 \noun off
3800 \color none
3801 表がページに合うように削る,
3802 \end_layout
3803
3804 \begin_layout Standard
3805
3806 \family roman
3807 \series medium
3808 \shape up
3809 \size normal
3810 \emph off
3811 \bar no
3812 \noun off
3813 \color none
3814 などの手段を採る必要があります.
3815 \end_layout
3816
3817 \end_deeper
3818 \begin_layout Enumerate
3819 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3820 \end_layout
3821
3822 \begin_layout Standard
3823
3824 \family roman
3825 \series medium
3826 \shape up
3827 \size normal
3828 \emph off
3829 \bar no
3830 \noun off
3831 \color none
3832 これらすべてが役に立たないとすれば,
3833 \family default
3834 \series default
3835 \shape default
3836 \size default
3837 \emph on
3838 \bar default
3839 \noun default
3840 \color inherit
3841 ひょっとしたら
3842 \family roman
3843 \series medium
3844 \shape up
3845 \size normal
3846 \emph off
3847 \bar no
3848 \noun off
3849 \color none
3850 \SpecialChar LyX
3851 のバグを発見したのかもしれません‥‥.
3852 \end_layout
3853
3854 \begin_layout Chapter
3855 補完ツール
3856 \end_layout
3857
3858 \begin_layout Section
3859 Bib\SpecialChar TeX
3860 あるいはBiblatexによる書誌情報のカスタマイズ
3861 \end_layout
3862
3863 \begin_layout Standard
3864 Bib\SpecialChar TeX
3865 あるいは
3866 \family sans
3867 Biblatex
3868 \family default
3869 の基本的な使用法は,『
3870 \emph on
3871 ユーザーの手引き
3872 \emph default
3873 』の「
3874 \emph on
3875 文献データベース
3876 \emph default
3877 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3878 でサポートされている書誌情報の特別な機能について説明することとします.
3879 \end_layout
3880
3881 \begin_layout Subsection
3882 他の引用様式
3883 \end_layout
3884
3885 \begin_layout Standard
3886 標準のBib\SpecialChar TeX
3887 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3888 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3889 は,この様式を提供する3つのパッケージ
3890 \begin_inset Flex Code
3891 status collapsed
3892
3893 \begin_layout Plain Layout
3894 biblatex
3895 \end_layout
3896
3897 \end_inset
3898
3899
3900 \begin_inset Flex Code
3901 status collapsed
3902
3903 \begin_layout Plain Layout
3904 natbib
3905 \end_layout
3906
3907 \end_inset
3908
3909
3910 \begin_inset Flex Code
3911 status collapsed
3912
3913 \begin_layout Plain Layout
3914 jurabib
3915 \end_layout
3916
3917 \end_inset
3918
3919 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3920 様式が欲しい場合や,無数にある
3921 \begin_inset Flex Code
3922 status collapsed
3923
3924 \begin_layout Plain Layout
3925 natbib
3926 \end_layout
3927
3928 \end_inset
3929
3930 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3931 \begin_inset Flex Code
3932 status collapsed
3933
3934 \begin_layout Plain Layout
3935 natbib
3936 \end_layout
3937
3938 \end_inset
3939
3940 パッケージがおそらくよい選択でしょう.法学でよく用いられる引用様式を探している場合には,
3941 \begin_inset Flex Code
3942 status collapsed
3943
3944 \begin_layout Plain Layout
3945 jurabib
3946 \end_layout
3947
3948 \end_inset
3949
3950 パッケージの利用を考えるとよいかもしれません.整形を完全に制御したい場合や,ibidem・脚註引用・タイトル全引用・400 BCなどの)複雑な日時形式・英語以外
3951 への完全な現地語化のような複雑な機能を使用したい場合には,機能面で他のパッケージを凌駕している
3952 \begin_inset Flex Code
3953 status collapsed
3954
3955 \begin_layout Plain Layout
3956 biblatex
3957 \end_layout
3958
3959 \end_inset
3960
3961 をぜひとも考えるべきでしょう.ただし,同時に
3962 \begin_inset Flex Code
3963 status collapsed
3964
3965 \begin_layout Plain Layout
3966 biblatex
3967 \end_layout
3968
3969 \end_inset
3970
3971 はたいへん重く,リソース消費量も多いことに注意してください.
3972 \end_layout
3973
3974 \begin_layout Standard
3975 \SpecialChar LyX
3976 での各パッケージの取扱い方は,ほぼ同じです.
3977 \begin_inset Flex MenuItem
3978 status collapsed
3979
3980 \begin_layout Plain Layout
3981 文書\SpecialChar menuseparator
3982 設定
3983 \end_layout
3984
3985 \end_inset
3986
3987 メニューを開き,
3988 \begin_inset Flex MenuItem
3989 status collapsed
3990
3991 \begin_layout Plain Layout
3992 書誌情報
3993 \end_layout
3994
3995 \end_inset
3996
3997 項目から
3998 \begin_inset Flex Noun
3999 status collapsed
4000
4001 \begin_layout Plain Layout
4002 Biblatex
4003 \end_layout
4004
4005 \end_inset
4006
4007
4008 \begin_inset Flex Noun
4009 status collapsed
4010
4011 \begin_layout Plain Layout
4012 Biblatex (Natbibモード)
4013 \end_layout
4014
4015 \end_inset
4016
4017
4018 \begin_inset Flex Noun
4019 status collapsed
4020
4021 \begin_layout Plain Layout
4022 Natbib (BibTeX)
4023 \end_layout
4024
4025 \end_inset
4026
4027
4028 \begin_inset Flex Noun
4029 status collapsed
4030
4031 \begin_layout Plain Layout
4032 Jurabib (BibTeX)
4033 \end_layout
4034
4035 \end_inset
4036
4037 のいずれかを選択してください(各選択肢についての詳細は,ユーザーの手引きの第6.5.3節を参照のこと).これらのパッケージによって,引用ダイアログに機能が追加され,
4038 参照の様式が選択できるようになります(「Knuth 1984」,「Knuth (1984)」,「Knuth, 1984」,「1984」など).各パッケージは,専
4039 用にデザインされたスタイルファイルを必要とすることに注意してください.これらは全てそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加されたスタイ
4040 ルファイルがありますし,
4041 \begin_inset Flex Code
4042 status collapsed
4043
4044 \begin_layout Plain Layout
4045 natbib
4046 \end_layout
4047
4048 \end_inset
4049
4050 に至っては,対話的なスタイルファイルビルダーさえ存在します
4051 \begin_inset Foot
4052 status collapsed
4053
4054 \begin_layout Plain Layout
4055 \begin_inset Flex URL
4056 status open
4057
4058 \begin_layout Plain Layout
4059
4060 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4061 \end_layout
4062
4063 \end_inset
4064
4065 をご参照ください.
4066 \end_layout
4067
4068 \end_inset
4069
4070
4071 \end_layout
4072
4073 \begin_layout Subsection
4074 区分された書誌情報
4075 \end_layout
4076
4077 \begin_layout Standard
4078 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4079 でさえあります.残念ながら,Bib\SpecialChar TeX
4080 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4081 パッケージの助けを借りると,Bib\SpecialChar TeX
4082 をこのような必要性を満たすように拡張するこ
4083 とができます.
4084 \end_layout
4085
4086 \begin_layout Standard
4087 \SpecialChar LyX
4088 は,このようなパッケージの一つである
4089 \begin_inset Flex Code
4090 status collapsed
4091
4092 \begin_layout Plain Layout
4093 bibtopic
4094 \end_layout
4095
4096 \end_inset
4097
4098
4099 \begin_inset Foot
4100 status collapsed
4101
4102 \begin_layout Plain Layout
4103 \begin_inset Flex URL
4104 status open
4105
4106 \begin_layout Plain Layout
4107
4108 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4109 \end_layout
4110
4111 \end_inset
4112
4113 から入手可能です.
4114 \end_layout
4115
4116 \end_inset
4117
4118 をそのままでサポートします.このパッケージの長所は,(
4119 \begin_inset Flex Code
4120 status collapsed
4121
4122 \begin_layout Plain Layout
4123 multibib
4124 \end_layout
4125
4126 \end_inset
4127
4128 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4129 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4130 \begin_inset Flex Code
4131 status collapsed
4132
4133 \begin_layout Plain Layout
4134 souces.bib
4135 \end_layout
4136
4137 \end_inset
4138
4139
4140 \begin_inset Flex Code
4141 status collapsed
4142
4143 \begin_layout Plain Layout
4144 scientific.bib
4145 \end_layout
4146
4147 \end_inset
4148
4149 とを作成する必要があります.
4150 \end_layout
4151
4152 \begin_layout Standard
4153 \begin_inset Flex MenuItem
4154 status collapsed
4155
4156 \begin_layout Plain Layout
4157 文書\SpecialChar menuseparator
4158 設定
4159 \end_layout
4160
4161 \end_inset
4162
4163 を開いて
4164 \begin_inset Flex MenuItem
4165 status collapsed
4166
4167 \begin_layout Plain Layout
4168 書誌情報
4169 \end_layout
4170
4171 \end_inset
4172
4173 の下の
4174 \begin_inset Flex MenuItem
4175 status collapsed
4176
4177 \begin_layout Plain Layout
4178 区分された書誌情報
4179 \end_layout
4180
4181 \end_inset
4182
4183 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4184 書誌情報
4185 \begin_inset Flex Code
4186 status collapsed
4187
4188 \begin_layout Plain Layout
4189 sources.bib
4190 \end_layout
4191
4192 \end_inset
4193
4194 と二つめの文献データベース
4195 \begin_inset Flex Code
4196 status collapsed
4197
4198 \begin_layout Plain Layout
4199 scientific.bib
4200 \end_layout
4201
4202 \end_inset
4203
4204 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4205 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4206 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4207 ます.
4208 \begin_inset Flex Code
4209 status collapsed
4210
4211 \begin_layout Plain Layout
4212 bibtopic
4213 \end_layout
4214
4215 \end_inset
4216
4217 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4218 \end_layout
4219
4220 \begin_layout Standard
4221
4222 \family sans
4223 Biblatex
4224 \family default
4225 の場合には,手順が多少異なります.
4226 \family typewriter
4227 bibtopic
4228 \family default
4229
4230 \family sans
4231 Biblatex
4232 \family default
4233 では動作しませんので,
4234 \family sans
4235 Biblatex
4236 \family default
4237 使用中は前述の
4238 \begin_inset Flex Noun
4239 status collapsed
4240
4241 \begin_layout Plain Layout
4242 区分された書誌情報
4243 \end_layout
4244
4245 \end_inset
4246
4247 オプションは無効になります.しかしながら,
4248 \family sans
4249 Biblatex
4250 \family default
4251 は区分された書誌情報を生成する独自の方法を提供しています.書誌情報項目の
4252 \begin_inset Flex Code
4253 status collapsed
4254
4255 \begin_layout Plain Layout
4256 keywords
4257 \end_layout
4258
4259 \end_inset
4260
4261 項目オプションにキーワードを書き込み,書誌情報セクションをキーワードでフィルターに掛けることもできますし(
4262 \begin_inset Flex Noun
4263 status collapsed
4264
4265 \begin_layout Plain Layout
4266 Biblatexが生成した書誌情報
4267 \end_layout
4268
4269 \end_inset
4270
4271 ボタンを右クリックすると開くダイアログで,
4272 \begin_inset Flex Noun
4273 status collapsed
4274
4275 \begin_layout Plain Layout
4276 オプション
4277 \end_layout
4278
4279 \end_inset
4280
4281 フィールドに
4282 \begin_inset Flex Code
4283 status collapsed
4284
4285 \begin_layout Plain Layout
4286 keyword=指定キーワード
4287 \end_layout
4288
4289 \end_inset
4290
4291 と書き込みます),あるいは,上述の
4292 \begin_inset Flex Noun
4293 status collapsed
4294
4295 \begin_layout Plain Layout
4296 オプション
4297 \end_layout
4298
4299 \end_inset
4300
4301 フィールドに,例えば
4302 \begin_inset Flex Code
4303 status collapsed
4304
4305 \begin_layout Plain Layout
4306 type=book
4307 \end_layout
4308
4309 \end_inset
4310
4311
4312 \begin_inset Flex Code
4313 status collapsed
4314
4315 \begin_layout Plain Layout
4316 nottype=collection
4317 \end_layout
4318
4319 \end_inset
4320
4321 と入力することで,(
4322 \emph on
4323 book
4324 \emph default
4325
4326 \emph on
4327 article
4328 \emph default
4329 などの)項目型によりフィルターを掛けることもできます.あるいは,各項目を割り当てるための,いわゆる「書誌情報カテゴリ」を作ることもできます.詳細については,Bi
4330 blatex取扱説明書の
4331 \emph on
4332 区分された書誌情報
4333 \emph default
4334 の節をご参照ください.
4335 \end_layout
4336
4337 \begin_layout Subsection
4338 複数の書誌情報
4339 \begin_inset CommandInset label
4340 LatexCommand label
4341 name "subsec:複数の書誌情報"
4342
4343 \end_inset
4344
4345
4346 \end_layout
4347
4348 \begin_layout Standard
4349 各部・章・節・小節・子文書ごとの書誌情報など,複数の書誌情報も\SpecialChar LyX
4350 ではサポートされています.これを有効にするためには,
4351 \begin_inset Flex Noun
4352 status collapsed
4353
4354 \begin_layout Plain Layout
4355 文書\SpecialChar menuseparator
4356 設定\SpecialChar menuseparator
4357 書誌情報
4358 \end_layout
4359
4360 \end_inset
4361
4362 を開き,
4363 \begin_inset Flex Noun
4364 status collapsed
4365
4366 \begin_layout Plain Layout
4367 複数の書誌情報
4368 \end_layout
4369
4370 \end_inset
4371
4372 コンボボックスで必要な単位(「節毎」など)を選択してください.それから,執筆中文書の(節などの)各単位に,Bib(la)\SpecialChar TeX
4373 書誌情報を加えてください.出力時に,現在
4374 の単位に含まれる文献参照のみが含まれた,分割された書誌情報が生成されます.
4375 \end_layout
4376
4377 \begin_layout Standard
4378 Bib\SpecialChar TeX
4379 を使用する場合には,複数の書誌情報を生成するのに,
4380 \begin_inset Flex Code
4381 status collapsed
4382
4383 \begin_layout Plain Layout
4384 chapterbib
4385 \end_layout
4386
4387 \end_inset
4388
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 Flex Noun
4401 status collapsed
4402
4403 \begin_layout Plain Layout
4404 区分された書誌情報
4405 \end_layout
4406
4407 \end_inset
4408
4409 にチェックを入れ
4410 \emph on
4411 ない
4412 \emph default
4413 場合には,前者のパッケージが使用されますが,その他の場合には,すべて
4414 \begin_inset Flex Code
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 bibtopic
4419 \end_layout
4420
4421 \end_inset
4422
4423 パッケージが使用されます
4424 \begin_inset Foot
4425 status collapsed
4426
4427 \begin_layout Plain Layout
4428 別のアプローチとして,もし
4429 \begin_inset Flex Noun
4430 status collapsed
4431
4432 \begin_layout Plain Layout
4433 \SpecialChar TeX
4434 コード
4435 \end_layout
4436
4437 \end_inset
4438
4439 を使っても良いという気があるならば(第
4440 \begin_inset CommandInset ref
4441 LatexCommand ref
4442 reference "sec:TeXコードを挿入する"
4443 plural "false"
4444 caps "false"
4445 noprefix "false"
4446
4447 \end_inset
4448
4449 節参照),
4450 \begin_inset Flex Code
4451 status collapsed
4452
4453 \begin_layout Plain Layout
4454 bibunits
4455 \end_layout
4456
4457 \end_inset
4458
4459 パッケージを使用する方法があります.
4460 \end_layout
4461
4462 \end_inset
4463
4464
4465 \begin_inset Flex Code
4466 status collapsed
4467
4468 \begin_layout Plain Layout
4469 bibtopic
4470 \end_layout
4471
4472 \end_inset
4473
4474 パッケージが使用される場合,\SpecialChar LyX
4475 は特定の単位を生成するために,その単位を
4476 \begin_inset Flex Code
4477 status collapsed
4478
4479 \begin_layout Plain Layout
4480 bibtopic
4481 \end_layout
4482
4483 \end_inset
4484
4485
4486 \begin_inset Flex Code
4487 status collapsed
4488
4489 \begin_layout Plain Layout
4490
4491 \backslash
4492 begin{btUnit}
4493 \end_layout
4494
4495 \end_inset
4496
4497
4498 \begin_inset Flex Code
4499 status collapsed
4500
4501 \begin_layout Plain Layout
4502
4503 \backslash
4504 end{btUnit}
4505 \end_layout
4506
4507 \end_inset
4508
4509 で囲みます.このアプローチには,いくつかの制限があることに注意してください.まず,全ての文献参照はいずれかの
4510 \begin_inset Flex Code
4511 status collapsed
4512
4513 \begin_layout Plain Layout
4514 btUnit
4515 \end_layout
4516
4517 \end_inset
4518
4519 の中になくてはなりません.そのため,定義された単位の外にある引用(たとえば「節毎」を使用した場合の,第1節の前)は,「???」と表示されてしまいます.(このよう
4520 な制限を回避するなどのため)
4521 \begin_inset Flex Code
4522 status collapsed
4523
4524 \begin_layout Plain Layout
4525
4526 \backslash
4527 begin{btUnit}
4528 \end_layout
4529
4530 \end_inset
4531
4532
4533 \begin_inset Flex Code
4534 status collapsed
4535
4536 \begin_layout Plain Layout
4537
4538 \backslash
4539 end{btUnit}
4540 \end_layout
4541
4542 \end_inset
4543
4544 を\SpecialChar TeX
4545 コードで入力して,自前の単位を生成することもできます.ただし,
4546 \begin_inset Flex Code
4547 status collapsed
4548
4549 \begin_layout Plain Layout
4550 btUnit
4551 \end_layout
4552
4553 \end_inset
4554
4555 は入れ子にすることができないことに注意してください.第二の制限は,
4556 \begin_inset Flex Code
4557 status collapsed
4558
4559 \begin_layout Plain Layout
4560 bibtopic
4561 \end_layout
4562
4563 \end_inset
4564
4565 は,引用のないものも含めて,つねに書誌情報データベースの参照すべてを保持してしまうということです.これにより奇妙なラベルが付されることがあります(例えば,データ
4566 ベース中にMillerという著者の2014年の著作が2つあり,その1つだけが引用されている場合,ラベルは「Miller 2014b」などとなってしまいます).
4567 \end_layout
4568
4569 \begin_layout Standard
4570
4571 \family sans
4572 Biblatex
4573 \family default
4574 を使用する場合には,
4575 \begin_inset Flex Code
4576 status collapsed
4577
4578 \begin_layout Plain Layout
4579 refsection
4580 \end_layout
4581
4582 \end_inset
4583
4584 オプションが代わりに使用されます.特定の単位が必要な時には,それらの開始時に\SpecialChar TeX
4585 コードで
4586 \begin_inset Flex Code
4587 status collapsed
4588
4589 \begin_layout Plain Layout
4590
4591 \backslash
4592 newrefsection
4593 \end_layout
4594
4595 \end_inset
4596
4597 または
4598 \begin_inset Flex Code
4599 status collapsed
4600
4601 \begin_layout Plain Layout
4602
4603 \backslash
4604 newrefsegment
4605 \end_layout
4606
4607 \end_inset
4608
4609 と書きます.単位の終了箇所も制御したい場合には,代わりに
4610 \begin_inset Flex Code
4611 status collapsed
4612
4613 \begin_layout Plain Layout
4614
4615 \backslash
4616 begin{refsection}
4617 \end_layout
4618
4619 \end_inset
4620
4621  \SpecialChar ldots
4622  
4623 \begin_inset Flex Code
4624 status collapsed
4625
4626 \begin_layout Plain Layout
4627
4628 \backslash
4629 end{refsection}
4630 \end_layout
4631
4632 \end_inset
4633
4634 環境を使ってください.ただし,
4635 \begin_inset Flex Code
4636 status collapsed
4637
4638 \begin_layout Plain Layout
4639 refsection
4640 \end_layout
4641
4642 \end_inset
4643
4644 関連は入れ子にできないことに注意してください.現行単位毎の書誌情報に加えて,
4645 \family sans
4646 Biblatex
4647 \family default
4648 はすべての書誌情報を,後で一箇所(例えば文末)に出力する簡単な方法も提供しています.そのためには,Bib(la)TeX差込枠ダイアログの内容コンボボックスで「文
4649 献参照単位全て」を選択してください.この話題についての詳細は,
4650 \family sans
4651 Biblatex
4652 \family default
4653 の取扱説明書を参照してください.
4654 \end_layout
4655
4656 \begin_layout Section
4657 複合文書
4658 \end_layout
4659
4660 \begin_layout Subsection
4661 一般的な操作
4662 \end_layout
4663
4664 \begin_layout Standard
4665 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4666 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4667 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4668 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4669 \begin_inset Foot
4670 status collapsed
4671
4672 \begin_layout Plain Layout
4673
4674 \series bold
4675 (訳註)
4676 \series default
4677 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4678 ま使用します.
4679 \end_layout
4680
4681 \end_inset
4682
4683 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4684 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4685 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4686 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4687 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4688 はなりません(
4689 \begin_inset Flex Code
4690 status collapsed
4691
4692 \begin_layout Plain Layout
4693
4694 \backslash
4695 begin{document}
4696 \end_layout
4697
4698 \end_inset
4699
4700 行とその前のすべて,および
4701 \begin_inset Flex Code
4702 status collapsed
4703
4704 \begin_layout Plain Layout
4705
4706 \backslash
4707 end{document}行
4708 \end_layout
4709
4710 \end_inset
4711
4712 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4713 \end_layout
4714
4715 \begin_layout Standard
4716 \SpecialChar LyX
4717 では,
4718 \family sans
4719 挿入\SpecialChar menuseparator
4720 ファイル\SpecialChar menuseparator
4721 子文書
4722 \family default
4723 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4724 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4725 \end_layout
4726
4727 \begin_layout Standard
4728 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4729 「input」は多くの点で類似していますが,いくつかの大きな違いがあります.
4730 \end_layout
4731
4732 \begin_layout Enumerate
4733 「include」されたファイルは新規頁から組版されるのに対し,「input」されたファイルは現在のページから組版されます.
4734 \end_layout
4735
4736 \begin_layout Enumerate
4737 「include」されたファイルは,それら自身がさらに他のファイル(「孫ファイル」)を「include」することはできません.一方で,「input」は無限に下層
4738 inputを持つことができます.
4739 \end_layout
4740
4741 \begin_layout Enumerate
4742 「include」は選ばれた「include」ファイルの出力しか許しませんが,実際の(ページ割りなどの)カウンタや参照は保持されます(詳細については埋込オブジェ
4743 クト説明書の子文書の節を参照のこと).したがって,子文書にアウトソースされた章については「include」が好まれる方式ですが,任意のファイル継承がある場合には
4744 「input」の方が良いでしょう.
4745 \end_layout
4746
4747 \begin_layout Standard
4748 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4749 \begin_inset Flex Code
4750 status collapsed
4751
4752 \begin_layout Plain Layout
4753 verbatim
4754 \end_layout
4755
4756 \end_inset
4757
4758 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4759 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4760 ,単なる見えない空白です.ただし,
4761 \family sans
4762
4763 \begin_inset Flex MenuItem
4764 status collapsed
4765
4766 \begin_layout Plain Layout
4767
4768 \family sans
4769 出力の空白に印付けをする
4770 \end_layout
4771
4772 \end_inset
4773
4774
4775 \family default
4776 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4777 \end_layout
4778
4779 \begin_layout Standard
4780 一般的に,親ファイルは,組版前に完全な\SpecialChar LaTeX
4781 ファイルに変換されますが,インクルードされるファイルはプリアンブル情報を全く持たない\SpecialChar LaTeX
4782 ファイルに変換されます.
4783 \end_layout
4784
4785 \begin_layout Subsection
4786 ファイル間の相互参照
4787 \end_layout
4788
4789 \begin_layout Standard
4790 \begin_inset Box Shadowbox
4791 position "t"
4792 hor_pos "c"
4793 has_inner_box 1
4794 inner_pos "t"
4795 use_parbox 0
4796 use_makebox 0
4797 width "100col%"
4798 special "none"
4799 height "1in"
4800 height_special "totalheight"
4801 thickness "0.4pt"
4802 separation "3pt"
4803 shadowsize "4pt"
4804 framecolor "black"
4805 backgroundcolor "none"
4806 status open
4807
4808 \begin_layout Plain Layout
4809 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4810 \end_layout
4811
4812 \end_inset
4813
4814
4815 \end_layout
4816
4817 \begin_layout Standard
4818 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4819 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4820 」を選んでください.
4821 \end_layout
4822
4823 \begin_layout Subsection
4824 すべての子文書での書誌情報
4825 \end_layout
4826
4827 \begin_layout Standard
4828 子文書を使って作業する場合,全体の書誌情報を文末に一つだけ置きたいのだけれども,子文書単独で出力する時に限り,子文書分を抽出した書誌情報が付けられるようにしたい
4829 ことがあります.以下にその方法を説明します.
4830 \end_layout
4831
4832 \begin_layout Standard
4833 親文書には,全体の書誌情報が出力されるべき場所(親ファイルでも子ファイルでも)に,書誌情報差込枠を挿入するだけです.書誌情報差込枠を親ファイルに置いた場合,文献
4834 参照はすべての子文書に継承されるので,各子文書の引用ダイアログで使用できるようになります.
4835 \end_layout
4836
4837 \begin_layout Standard
4838 子文書限定の書誌情報については,子文書内の,子文書が独立にコンパイルされた時に書誌情報が出力されるべき場所に,書誌情報差込枠を挿入します.その際,この差込枠を,
4839 たとえば「子文書のみ」などと名付けた派生枝の中に置く(
4840 \family sans
4841 挿入\SpecialChar menuseparator
4842 派生枝\SpecialChar menuseparator
4843 新規派生枝を挿入...
4844 \family default
4845 )のが肝要です.そして,子文書の中でこの派生枝を有効にし(
4846 \family sans
4847 文書\SpecialChar menuseparator
4848 設定...\SpecialChar menuseparator
4849 派生枝
4850 \family default
4851 ),親文書で無効にします(
4852 \family sans
4853 文書\SpecialChar menuseparator
4854 設定...\SpecialChar menuseparator
4855 派生枝
4856 \family default
4857 ).こうすることで,子文書中の書誌情報は,親文書中では無視され,子文書中では有効になります.
4858 \end_layout
4859
4860 \begin_layout Standard
4861 複数の書誌情報が必要な場合(親文書中でも子文書ごとに書誌情報を出力するなど)は,第
4862 \begin_inset CommandInset ref
4863 LatexCommand ref
4864 reference "subsec:複数の書誌情報"
4865 plural "false"
4866 caps "false"
4867 noprefix "false"
4868
4869 \end_inset
4870
4871 節を参照してください.
4872 \end_layout
4873
4874 \begin_layout Section
4875 \SpecialChar LyX
4876 書庫
4877 \end_layout
4878
4879 \begin_layout Standard
4880 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4881 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4882
4883 には,この過程を自動化するPythonスクリプト(
4884 \begin_inset Flex Code
4885 status collapsed
4886
4887 \begin_layout Plain Layout
4888 lyxpak.py
4889 \end_layout
4890
4891 \end_inset
4892
4893 )が含まれています.これを使うには,
4894 \begin_inset Flex Code
4895 status collapsed
4896
4897 \begin_layout Plain Layout
4898 zipfile
4899 \end_layout
4900
4901 \end_inset
4902
4903  pythonモジュールまたは
4904 \begin_inset Flex Code
4905 status collapsed
4906
4907 \begin_layout Plain Layout
4908 tarfile
4909 \end_layout
4910
4911 \end_inset
4912
4913  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4914 \begin_inset Flex Code
4915 status collapsed
4916
4917 \begin_layout Plain Layout
4918 gzip
4919 \end_layout
4920
4921 \end_inset
4922
4923 圧縮
4924 \begin_inset Flex Code
4925 status collapsed
4926
4927 \begin_layout Plain Layout
4928 tar
4929 \end_layout
4930
4931 \end_inset
4932
4933 ファイル形式が優先され,Windowsでは
4934 \begin_inset Flex Code
4935 status collapsed
4936
4937 \begin_layout Plain Layout
4938 zip
4939 \end_layout
4940
4941 \end_inset
4942
4943 形式が優先されます.
4944 \end_layout
4945
4946 \begin_layout Standard
4947 \SpecialChar LyX
4948 の環境構成時には,「\SpecialChar LyX
4949 書庫」を書き出すことができるようにスクリプトが準備され,
4950 \begin_inset Flex MenuItem
4951 status collapsed
4952
4953 \begin_layout Plain Layout
4954 ファイル\SpecialChar menuseparator
4955 書き出し
4956 \end_layout
4957
4958 \end_inset
4959
4960 の下で利用可能となります.
4961 \end_layout
4962
4963 \begin_layout Standard
4964 \begin_inset Flex MenuItem
4965 status collapsed
4966
4967 \begin_layout Plain Layout
4968 ツール\SpecialChar menuseparator
4969 設定\SpecialChar menuseparator
4970 ファイル処理\SpecialChar menuseparator
4971 変換子
4972 \end_layout
4973
4974 \end_inset
4975
4976
4977 \begin_inset Flex MenuItem
4978 status collapsed
4979
4980 \begin_layout Plain Layout
4981 \SpecialChar LyX
4982 \SpecialChar menuseparator
4983 \SpecialChar LyX
4984 書庫
4985 \end_layout
4986
4987 \end_inset
4988
4989 変換子に,
4990 \begin_inset Flex Code
4991 status collapsed
4992
4993 \begin_layout Plain Layout
4994 -t
4995 \end_layout
4996
4997 \end_inset
4998
4999 スイッチや
5000 \begin_inset Flex Code
5001 status collapsed
5002
5003 \begin_layout Plain Layout
5004 -z
5005 \end_layout
5006
5007 \end_inset
5008
5009 スイッチを加えることで,プラットホームとは独立に,
5010 \begin_inset Flex Code
5011 status collapsed
5012
5013 \begin_layout Plain Layout
5014 tar
5015 \end_layout
5016
5017 \end_inset
5018
5019 形式や
5020 \begin_inset Flex Code
5021 status collapsed
5022
5023 \begin_layout Plain Layout
5024 zip
5025 \end_layout
5026
5027 \end_inset
5028
5029 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5030 \end_layout
5031
5032 \begin_layout Section
5033 装飾的なヘッダ・フッタ
5034 \end_layout
5035
5036 \begin_layout Standard
5037 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5038 \begin_inset Flex Code
5039 status collapsed
5040
5041 \begin_layout Plain Layout
5042 article
5043 \end_layout
5044
5045 \end_inset
5046
5047 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5048 に着飾るには,『
5049 \emph on
5050 ユーザーの手引き
5051 \emph default
5052 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5053 プリアンブルに挿入す
5054 る必要のある\SpecialChar LaTeX
5055 コードについて解説します.
5056 \end_layout
5057
5058 \begin_layout Standard
5059 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5060 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5061 コマンドには,
5062 \family typewriter
5063
5064 \begin_inset Flex Code
5065 status collapsed
5066
5067 \begin_layout Plain Layout
5068
5069 \family typewriter
5070
5071 \backslash
5072 lhead
5073 \end_layout
5074
5075 \end_inset
5076
5077
5078 \family default
5079
5080 \family typewriter
5081
5082 \begin_inset Flex Code
5083 status collapsed
5084
5085 \begin_layout Plain Layout
5086
5087 \family typewriter
5088
5089 \backslash
5090 chead
5091 \end_layout
5092
5093 \end_inset
5094
5095
5096 \family default
5097
5098 \family typewriter
5099
5100 \begin_inset Flex Code
5101 status collapsed
5102
5103 \begin_layout Plain Layout
5104
5105 \family typewriter
5106
5107 \backslash
5108 rhead
5109 \end_layout
5110
5111 \end_inset
5112
5113
5114 \family default
5115
5116 \begin_inset Flex Code
5117 status collapsed
5118
5119 \begin_layout Plain Layout
5120
5121 \backslash
5122 lfoot
5123 \end_layout
5124
5125 \end_inset
5126
5127 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5128 \end_layout
5129
5130 \begin_layout Standard
5131
5132 \family typewriter
5133
5134 \backslash
5135 lhead{物書 はじめ}
5136 \end_layout
5137
5138 \begin_layout Standard
5139 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5140 れるだけです.すなわち,
5141 \end_layout
5142
5143 \begin_layout Standard
5144
5145 \family typewriter
5146
5147 \backslash
5148 cfoot{}
5149 \begin_inset Newline newline
5150 \end_inset
5151
5152
5153 \family default
5154 とします.
5155 \end_layout
5156
5157 \begin_layout Standard
5158 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5159 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5160 \end_layout
5161
5162 \begin_layout Standard
5163
5164 \family typewriter
5165
5166 \backslash
5167 lhead{第
5168 \backslash
5169 thesection 節}
5170 \end_layout
5171
5172 \begin_layout Standard
5173
5174 \family typewriter
5175
5176 \backslash
5177 chead{}
5178 \end_layout
5179
5180 \begin_layout Standard
5181
5182 \family typewriter
5183
5184 \backslash
5185 rhead{
5186 \backslash
5187 thepage ページ}
5188 \end_layout
5189
5190 \begin_layout Standard
5191
5192 \family typewriter
5193
5194 \backslash
5195 lfoot{物書 はじめ}
5196 \end_layout
5197
5198 \begin_layout Standard
5199
5200 \family typewriter
5201
5202 \backslash
5203 cfoot{}
5204 \end_layout
5205
5206 \begin_layout Standard
5207
5208 \family typewriter
5209
5210 \backslash
5211 rfoot{
5212 \backslash
5213 today}
5214 \end_layout
5215
5216 \begin_layout Standard
5217 コマンド
5218 \family typewriter
5219
5220 \begin_inset Flex Code
5221 status collapsed
5222
5223 \begin_layout Plain Layout
5224
5225 \family typewriter
5226
5227 \backslash
5228 thesecti
5229 \family default
5230 o
5231 \family typewriter
5232 n
5233 \end_layout
5234
5235 \end_inset
5236
5237
5238 \family default
5239
5240 \begin_inset Flex Code
5241 status collapsed
5242
5243 \begin_layout Plain Layout
5244
5245 \family typewriter
5246
5247 \backslash
5248 thepa
5249 \family default
5250 ge
5251 \end_layout
5252
5253 \end_inset
5254
5255 は,それぞれ\SpecialChar LaTeX
5256 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5257 \begin_inset Flex Code
5258 status collapsed
5259
5260 \begin_layout Plain Layout
5261
5262 \family typewriter
5263
5264 \backslash
5265 tod
5266 \family default
5267 ay
5268 \end_layout
5269
5270 \end_inset
5271
5272 は,今日の日付を印字するものです.
5273 \end_layout
5274
5275 \begin_layout Standard
5276 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5277 フッタ罫線は0ptです.太さを変更するには,
5278 \family typewriter
5279
5280 \begin_inset Flex Code
5281 status collapsed
5282
5283 \begin_layout Plain Layout
5284
5285 \family typewriter
5286
5287 \backslash
5288 renewcommand{
5289 \backslash
5290 headrulewidth}{0.4pt}
5291 \end_layout
5292
5293 \end_inset
5294
5295
5296 \family default
5297
5298 \family typewriter
5299
5300 \begin_inset Flex Code
5301 status collapsed
5302
5303 \begin_layout Plain Layout
5304
5305 \family typewriter
5306
5307 \backslash
5308 renewcommand{
5309 \backslash
5310 footrulewidth}{0.4pt}
5311 \end_layout
5312
5313 \end_inset
5314
5315
5316 \family default
5317 のようなコマンドを使用してください.
5318 \end_layout
5319
5320 \begin_layout Standard
5321 \begin_inset Flex Code
5322 status collapsed
5323
5324 \begin_layout Plain Layout
5325
5326 \family typewriter
5327
5328 \backslash
5329 thispagestyle{empty}
5330 \end_layout
5331
5332 \end_inset
5333
5334
5335 \begin_inset Flex Code
5336 status collapsed
5337
5338 \begin_layout Plain Layout
5339
5340 \family typewriter
5341
5342 \backslash
5343 thispagestyle{plain}
5344 \end_layout
5345
5346 \end_inset
5347
5348
5349 \begin_inset Flex Code
5350 status collapsed
5351
5352 \begin_layout Plain Layout
5353
5354 \family typewriter
5355
5356 \backslash
5357 thispagestyle{fancy}
5358 \end_layout
5359
5360 \end_inset
5361
5362 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5363 コードとして
5364 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5365 (plain)になるように設定されているのです.
5366 \end_layout
5367
5368 \begin_layout Standard
5369 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5370 \begin_inset Flex Code
5371 status collapsed
5372
5373 \begin_layout Plain Layout
5374
5375 \family typewriter
5376 fancyhdr
5377 \end_layout
5378
5379 \end_inset
5380
5381 パッケージの取扱説明書をご参照ください(
5382 \begin_inset Flex Code
5383 status collapsed
5384
5385 \begin_layout Plain Layout
5386 fancyhdr.dvi
5387 \end_layout
5388
5389 \end_inset
5390
5391 を探してください).
5392 \end_layout
5393
5394 \begin_layout Standard
5395 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5396 \end_layout
5397
5398 \begin_layout Standard
5399
5400 \family typewriter
5401
5402 \backslash
5403 lhead{
5404 \backslash
5405 resizebox{1in}{!}{
5406 \backslash
5407 includegraphics{logo.eps}}}
5408 \end_layout
5409
5410 \begin_layout Standard
5411 \noindent
5412 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5413 \begin_inset Newline newline
5414 \end_inset
5415
5416
5417 \begin_inset Flex Code
5418 status collapsed
5419
5420 \begin_layout Plain Layout
5421 \noindent
5422
5423 \family typewriter
5424
5425 \backslash
5426 usepackage{graphics}
5427 \end_layout
5428
5429 \end_inset
5430
5431 をプリアンブルに宣言する必要があります).
5432 \end_layout
5433
5434 \begin_layout Section
5435 箇条書き(記号)ブリットの指定
5436 \begin_inset CommandInset label
5437 LatexCommand label
5438 name "sec:ブリット"
5439
5440 \end_inset
5441
5442
5443 \end_layout
5444
5445 \begin_layout Standard
5446
5447 \noun on
5448 Allan Rae文
5449 \end_layout
5450
5451 \begin_layout Subsection
5452 はじめに
5453 \end_layout
5454
5455 \begin_layout Standard
5456 \SpecialChar LyX
5457 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5458 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5459 \begin_inset Foot
5460 status collapsed
5461
5462 \begin_layout Plain Layout
5463 正確には可能ですが,手動で行う必要があります.
5464 \end_layout
5465
5466 \end_inset
5467
5468
5469 \end_layout
5470
5471 \begin_layout Subsection
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 文書\SpecialChar menuseparator
5482 設定
5483 \end_layout
5484
5485 \end_inset
5486
5487 を選択してダイアログを開き,
5488 \begin_inset Flex MenuItem
5489 status collapsed
5490
5491 \begin_layout Plain Layout
5492 ブリット
5493 \end_layout
5494
5495 \end_inset
5496
5497 タブを選択してください.
5498 \end_layout
5499
5500 \begin_layout Standard
5501 このダイアログは,ブリット形の一覧表を提示します.
5502 \begin_inset Flex MenuItem
5503 status collapsed
5504
5505 \begin_layout Plain Layout
5506 フォント
5507 \end_layout
5508
5509 \end_inset
5510
5511 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5512 \begin_inset Flex MenuItem
5513 status collapsed
5514
5515 \begin_layout Plain Layout
5516 階層
5517 \end_layout
5518
5519 \end_inset
5520
5521 パネルは,変更したい階層を選択するものです.
5522 \begin_inset Flex MenuItem
5523 status collapsed
5524
5525 \begin_layout Plain Layout
5526 任意のブリット
5527 \end_layout
5528
5529 \end_inset
5530
5531 では,指定したい\SpecialChar LaTeX
5532 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5533 プリアンブルで指定する必要があります.
5534 \end_layout
5535
5536 \begin_layout Standard
5537 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5538 パッケージの対応表です.
5539 \end_layout
5540
5541 \begin_layout Standard
5542 \align center
5543 \begin_inset Tabular
5544 <lyxtabular version="3" rows="7" columns="2">
5545 <features tabularvalignment="middle">
5546 <column alignment="center" valignment="top" width="0pt">
5547 <column alignment="center" valignment="top" width="0pt">
5548 <row>
5549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5550 \begin_inset Text
5551
5552 \begin_layout Plain Layout
5553 フォント
5554 \end_layout
5555
5556 \end_inset
5557 </cell>
5558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5559 \begin_inset Text
5560
5561 \begin_layout Plain Layout
5562
5563 \family roman
5564 \series medium
5565 \shape up
5566 \size normal
5567 \emph off
5568 \bar no
5569 \noun off
5570 \color none
5571 必要とするパッケージ
5572 \end_layout
5573
5574 \end_inset
5575 </cell>
5576 </row>
5577 <row>
5578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5579 \begin_inset Text
5580
5581 \begin_layout Plain Layout
5582
5583 \family sans
5584 標準
5585 \end_layout
5586
5587 \end_inset
5588 </cell>
5589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5590 \begin_inset Text
5591
5592 \begin_layout Plain Layout
5593
5594 \series medium
5595 \shape up
5596 \size normal
5597 \emph off
5598 \bar no
5599 \noun off
5600 \color none
5601 \SpecialChar LaTeX
5602
5603 \family roman
5604 本体
5605 \end_layout
5606
5607 \end_inset
5608 </cell>
5609 </row>
5610 <row>
5611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5612 \begin_inset Text
5613
5614 \begin_layout Plain Layout
5615
5616 \family sans
5617 \series medium
5618 \shape up
5619 \size normal
5620 \emph off
5621 \bar no
5622 \noun off
5623 \color none
5624 数式
5625 \end_layout
5626
5627 \end_inset
5628 </cell>
5629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5630 \begin_inset Text
5631
5632 \begin_layout Plain Layout
5633
5634 \family typewriter
5635 \series medium
5636 \shape up
5637 \size normal
5638 \emph off
5639 \bar no
5640 \noun off
5641 \color none
5642 amssymb.sty
5643 \end_layout
5644
5645 \end_inset
5646 </cell>
5647 </row>
5648 <row>
5649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5650 \begin_inset Text
5651
5652 \begin_layout Plain Layout
5653
5654 \family sans
5655 \series medium
5656 \shape up
5657 \size normal
5658 \emph off
5659 \bar no
5660 \noun off
5661 \color none
5662 絵文字1
5663 \end_layout
5664
5665 \end_inset
5666 </cell>
5667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5668 \begin_inset Text
5669
5670 \begin_layout Plain Layout
5671
5672 \family typewriter
5673 \series medium
5674 \shape up
5675 \size normal
5676 \emph off
5677 \bar no
5678 \noun off
5679 \color none
5680 pifont.sty
5681 \end_layout
5682
5683 \end_inset
5684 </cell>
5685 </row>
5686 <row>
5687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5688 \begin_inset Text
5689
5690 \begin_layout Plain Layout
5691
5692 \family sans
5693 \series medium
5694 \shape up
5695 \size normal
5696 \emph off
5697 \bar no
5698 \noun off
5699 \color none
5700 絵文字2
5701 \end_layout
5702
5703 \end_inset
5704 </cell>
5705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5706 \begin_inset Text
5707
5708 \begin_layout Plain Layout
5709
5710 \family typewriter
5711 \series medium
5712 \shape up
5713 \size normal
5714 \emph off
5715 \bar no
5716 \noun off
5717 \color none
5718 pifont.sty
5719 \end_layout
5720
5721 \end_inset
5722 </cell>
5723 </row>
5724 <row>
5725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5726 \begin_inset Text
5727
5728 \begin_layout Plain Layout
5729
5730 \family sans
5731 \series medium
5732 \shape up
5733 \size normal
5734 \emph off
5735 \bar no
5736 \noun off
5737 \color none
5738 絵文字3
5739 \end_layout
5740
5741 \end_inset
5742 </cell>
5743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5744 \begin_inset Text
5745
5746 \begin_layout Plain Layout
5747
5748 \family typewriter
5749 \series medium
5750 \shape up
5751 \size normal
5752 \emph off
5753 \bar no
5754 \noun off
5755 \color none
5756 pifont.sty
5757 \end_layout
5758
5759 \end_inset
5760 </cell>
5761 </row>
5762 <row>
5763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5764 \begin_inset Text
5765
5766 \begin_layout Plain Layout
5767
5768 \family sans
5769 \series medium
5770 \shape up
5771 \size normal
5772 \emph off
5773 \bar no
5774 \noun off
5775 \color none
5776 絵文字4
5777 \end_layout
5778
5779 \end_inset
5780 </cell>
5781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5782 \begin_inset Text
5783
5784 \begin_layout Plain Layout
5785
5786 \family typewriter
5787 \series medium
5788 \shape up
5789 \size normal
5790 \emph off
5791 \bar no
5792 \noun off
5793 \color none
5794 pifont.sty
5795 \end_layout
5796
5797 \end_inset
5798 </cell>
5799 </row>
5800 </lyxtabular>
5801
5802 \end_inset
5803
5804
5805 \end_layout
5806
5807 \begin_layout Standard
5808 \SpecialChar LyX
5809 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5810 エラーが出るようならば,
5811 パッケージが導入されていない可能性が大です
5812 \begin_inset Foot
5813 status collapsed
5814
5815 \begin_layout Plain Layout
5816 \SpecialChar LyX
5817 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5818 \end_layout
5819
5820 \end_inset
5821
5822
5823 \end_layout
5824
5825 \begin_layout Subsection
5826 使用法
5827 \end_layout
5828
5829 \begin_layout Standard
5830 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5831 上には反映されませんが,文書の表示を行えば確認されます.
5832 \end_layout
5833
5834 \begin_layout Standard
5835 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5836 \begin_inset Foot
5837 status open
5838
5839 \begin_layout Plain Layout
5840 もし
5841 \emph on
5842 本当に
5843 \emph default
5844 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5845 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5846 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5847 \end_layout
5848
5849 \begin_layout Plain Layout
5850 \begin_inset ERT
5851 status open
5852
5853 \begin_layout Plain Layout
5854
5855
5856 \backslash
5857 let
5858 \backslash
5859 savelabelitemi=
5860 \backslash
5861 labelitemi
5862 \end_layout
5863
5864 \end_inset
5865
5866
5867 \end_layout
5868
5869 \begin_layout Plain Layout
5870 \begin_inset ERT
5871 status open
5872
5873 \begin_layout Plain Layout
5874
5875
5876 \backslash
5877 renewcommand
5878 \backslash
5879 labelitemi[0]{
5880 \backslash
5881 small
5882 \backslash
5883 (
5884 \backslash
5885 sharp
5886 \backslash
5887 )}
5888 \end_layout
5889
5890 \end_inset
5891
5892
5893 \end_layout
5894
5895 \begin_layout Itemize
5896 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5897 コマンド
5898 \begin_inset Flex Code
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902
5903 \family typewriter
5904
5905 \backslash
5906 renewcommand{}{}
5907 \end_layout
5908
5909 \end_inset
5910
5911 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5912 更するために,以下の\SpecialChar LaTeX
5913 コードが使用されています.
5914 \end_layout
5915
5916 \begin_deeper
5917 \begin_layout LyX-Code
5918
5919 \family typewriter
5920
5921 \backslash
5922 let
5923 \backslash
5924 savelabelitemi=
5925 \backslash
5926 labelitemi
5927 \end_layout
5928
5929 \begin_layout LyX-Code
5930
5931 \family typewriter
5932
5933 \backslash
5934 renewcommand
5935 \backslash
5936 labelitemi[0]{
5937 \backslash
5938 small
5939 \backslash
5940 (
5941 \backslash
5942 sharp
5943 \backslash
5944 )}
5945 \end_layout
5946
5947 \end_deeper
5948 \begin_layout Itemize
5949 箇条書き(記号)の階層は,
5950 \begin_inset Flex Code
5951 status collapsed
5952
5953 \begin_layout Plain Layout
5954
5955 \backslash
5956 labelitem
5957 \end_layout
5958
5959 \end_inset
5960
5961 コマンドの一部にローマ数字で指定されていることに注意してください.
5962 \end_layout
5963
5964 \begin_layout Itemize
5965 \begin_inset Argument item:1
5966 status open
5967
5968 \begin_layout Plain Layout
5969 \begin_inset ERT
5970 status open
5971
5972 \begin_layout Plain Layout
5973
5974
5975 \backslash
5976 (
5977 \backslash
5978 star
5979 \backslash
5980 )
5981 \end_layout
5982
5983 \end_inset
5984
5985
5986 \end_layout
5987
5988 \end_inset
5989
5990 各項目のブリットを指定するには,
5991 \begin_inset Flex Code
5992 status collapsed
5993
5994 \begin_layout Plain Layout
5995 \SpecialChar TeX
5996 コード
5997 \end_layout
5998
5999 \end_inset
6000
6001 として入力したブリット形を,行頭に「ユーザ設定」項目差込枠(挿入\SpecialChar menuseparator
6002 ユーザ設定項目)に入れて挿入してください.たとえば,この項目の行頭には
6003 \family typewriter
6004
6005 \begin_inset Flex Code
6006 status collapsed
6007
6008 \begin_layout Plain Layout
6009
6010 \family typewriter
6011
6012 \backslash
6013 (
6014 \backslash
6015 star
6016 \backslash
6017 )
6018 \end_layout
6019
6020 \end_inset
6021
6022
6023 \family default
6024 が指定されています.
6025 \end_layout
6026
6027 \begin_layout Plain Layout
6028 \begin_inset ERT
6029 status open
6030
6031 \begin_layout Plain Layout
6032
6033
6034 \backslash
6035 renewcommand
6036 \backslash
6037 labelitemi[0]{
6038 \backslash
6039 savelabelitemi}
6040 \end_layout
6041
6042 \end_inset
6043
6044
6045 \end_layout
6046
6047 \begin_layout Plain Layout
6048 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6049 \end_layout
6050
6051 \begin_layout LyX-Code
6052
6053 \family typewriter
6054
6055 \backslash
6056 renewcommand
6057 \backslash
6058 labelitemi[0]{
6059 \backslash
6060 savelabelitemi}
6061 \end_layout
6062
6063 \end_inset
6064
6065
6066 \end_layout
6067
6068 \begin_layout Chapter
6069 \SpecialChar LyX
6070 とインターネット網
6071 \end_layout
6072
6073 \begin_layout Standard
6074 \SpecialChar LyX
6075 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6076 は,常に外部変換子を用いることで実現されていました
6077 \begin_inset Foot
6078 status collapsed
6079
6080 \begin_layout Plain Layout
6081 \SpecialChar LyX
6082 で外部変換子を使うことについての詳細は,取扱説明書『
6083 \emph on
6084 カスタマイズ篇
6085 \emph default
6086 』の「
6087 \emph on
6088 変換子
6089 \emph default
6090 」の節をご覧ください.
6091 \end_layout
6092
6093 \end_inset
6094
6095 .これらは2つのグループに大別できます.1つは,
6096 \begin_inset Flex Code
6097 status collapsed
6098
6099 \begin_layout Plain Layout
6100 htlatex
6101 \end_layout
6102
6103 \end_inset
6104
6105
6106 \begin_inset Flex Code
6107 status collapsed
6108
6109 \begin_layout Plain Layout
6110 html2latex
6111 \end_layout
6112
6113 \end_inset
6114
6115
6116 \begin_inset Flex Code
6117 status collapsed
6118
6119 \begin_layout Plain Layout
6120 plastex
6121 \end_layout
6122
6123 \end_inset
6124
6125 のように,\SpecialChar LaTeX
6126 を中間形式として用い,その\SpecialChar LaTeX
6127 を生成するのに\SpecialChar LyX
6128 を用いるもの.2つめは,
6129 \begin_inset Flex Code
6130 status collapsed
6131
6132 \begin_layout Plain Layout
6133 e\SpecialChar LyX
6134 er
6135 \end_layout
6136
6137 \end_inset
6138
6139 のように,直接\SpecialChar LyX
6140 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6141 \end_layout
6142
6143 \begin_layout Standard
6144 \SpecialChar LaTeX
6145 ベースの変換子は,原則として,\SpecialChar LaTeX
6146 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6147 によって生成され
6148 たのか,\SpecialChar TeX
6149 コードで書かれたのかについては気にしません.これらの変換子は,
6150 \begin_inset Flex Code
6151 status collapsed
6152
6153 \begin_layout Plain Layout
6154 aux
6155 \end_layout
6156
6157 \end_inset
6158
6159 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6160 が生成する
6161 \begin_inset Flex Code
6162 status collapsed
6163
6164 \begin_layout Plain Layout
6165 bbl
6166 \end_layout
6167
6168 \end_inset
6169
6170 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6171 は解析の非常に難しい言語であり—\SpecialChar TeX
6172 自身だけが\SpecialChar TeX
6173 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6174 ベースの変換子は
6175 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6176 \emph on
6177 埋込オブジェクト篇
6178 \emph default
6179 』は,他の変換子では書き出しができるのに,
6180 \begin_inset Flex Code
6181 status collapsed
6182
6183 \begin_layout Plain Layout
6184 htlatex
6185 \end_layout
6186
6187 \end_inset
6188
6189 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6190 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6191 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6192 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6193 \end_layout
6194
6195 \begin_layout Standard
6196 Alex Fernandezの
6197 \begin_inset Flex Code
6198 status collapsed
6199
6200 \begin_layout Plain Layout
6201 e\SpecialChar LyX
6202 er
6203 \end_layout
6204
6205 \end_inset
6206
6207
6208 \begin_inset CommandInset href
6209 LatexCommand href
6210 name "http://pinchito.es/elyxer/"
6211 target "http://pinchito.es/elyxer/"
6212 literal "false"
6213
6214 \end_inset
6215
6216 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6217 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6218 \begin_inset Flex Code
6219 status collapsed
6220
6221 \begin_layout Plain Layout
6222 htlatex
6223 \end_layout
6224
6225 \end_inset
6226
6227 よりも質が落ちます.これはHTMLの限界を示しています
6228 \begin_inset Foot
6229 status collapsed
6230
6231 \begin_layout Plain Layout
6232 とはいえ,
6233 \begin_inset Flex Code
6234 status collapsed
6235
6236 \begin_layout Plain Layout
6237 e\SpecialChar LyX
6238 er
6239 \end_layout
6240
6241 \end_inset
6242
6243 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6244 クセスが利用できる必要があります.
6245 \end_layout
6246
6247 \end_inset
6248
6249 .さらに重要なことは(少なくとも第1.1.1版においては),
6250 \begin_inset Flex Code
6251 status collapsed
6252
6253 \begin_layout Plain Layout
6254 e\SpecialChar LyX
6255 er
6256 \end_layout
6257
6258 \end_inset
6259
6260 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6261 ユーザが生成する文書の多くにとっては,
6262 \begin_inset Flex Code
6263 status collapsed
6264
6265 \begin_layout Plain Layout
6266 e\SpecialChar LyX
6267 er
6268 \end_layout
6269
6270 \end_inset
6271
6272 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6273 開発陣は別の方法を採ることとし,\SpecialChar LyX
6274 が\SpecialChar LaTeX
6275 やDocBook,平文を書き出す
6276 ことができるのと同様に,\SpecialChar LyX
6277 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6278 \end_layout
6279
6280 \begin_layout Standard
6281 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6282 \begin_inset Foot
6283 status open
6284
6285 \begin_layout Plain Layout
6286 \SpecialChar LyX
6287 ソースツリーもしくは
6288 \begin_inset CommandInset href
6289 LatexCommand href
6290 name "オンラインでのアクセス"
6291 target "https://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6292 literal "false"
6293
6294 \end_inset
6295
6296 にある
6297 \begin_inset Flex Code
6298 status collapsed
6299
6300 \begin_layout Plain Layout
6301 development/HTML/HTML.notes
6302 \end_layout
6303
6304 \end_inset
6305
6306 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6307 \begin_inset CommandInset href
6308 LatexCommand href
6309 name "バグ追跡ページ"
6310 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"
6311 literal "false"
6312
6313 \end_inset
6314
6315 にあるXHTML関連バグ一覧も参照のこと.
6316 \end_layout
6317
6318 \end_inset
6319
6320 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6321 \end_layout
6322
6323 \begin_layout Standard
6324 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6325 の一部となっているため,\SpecialChar LyX
6326 が出力する文書について\SpecialChar LyX
6327 が関知しているところのものは,すべて知り得るというところから来ていま
6328
6329 \begin_inset Foot
6330 status collapsed
6331
6332 \begin_layout Plain Layout
6333 他には,これらのルーチンが\SpecialChar LyX
6334 内部にあるため,\SpecialChar LyX
6335 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6336 \end_layout
6337
6338 \end_inset
6339
6340 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6341 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6342 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6343  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6344 \end_layout
6345
6346 \begin_layout Standard
6347 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6348 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6349 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6350 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6351 \emph on
6352 自動的に
6353 \emph default
6354 生成します.もし節見出しが,\SpecialChar LyX
6355 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6356 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6357 自身の定義済み様
6358 式とを区別しません.どちらの場合も,\SpecialChar LyX
6359 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6360 ユーザ設定差込枠でもそうです.
6361 \end_layout
6362
6363 \begin_layout Standard
6364 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6365 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6366 取扱説明書『
6367 \emph on
6368 カスタマイズ篇
6369 \emph default
6370 』の第5章をごらんください.
6371 \end_layout
6372
6373 \begin_layout Standard
6374 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6375 \end_layout
6376
6377 \begin_layout Section
6378 XHTMLにおける数式出力
6379 \end_layout
6380
6381 \begin_layout Standard
6382 \SpecialChar LyX
6383 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
6384 \end_layout
6385
6386 \begin_layout Itemize
6387 MathML
6388 \begin_inset Newline newline
6389 \end_inset
6390
6391 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
6392 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
6393 す.
6394 \begin_inset Newline newline
6395 \end_inset
6396
6397 例えば,数式が
6398 \begin_inset Flex Code
6399 status collapsed
6400
6401 \begin_layout Plain Layout
6402 xymatrix
6403 \end_layout
6404
6405 \end_inset
6406
6407 パッケージを使用していたり,\SpecialChar TeX
6408 コードを使用しているなどで,もし\SpecialChar LyX
6409 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6410 は数式を代わりに画像として出力します.
6411  
6412 \end_layout
6413
6414 \begin_layout Itemize
6415 HTML
6416 \begin_inset Newline newline
6417 \end_inset
6418
6419 前述のとおり,
6420 \begin_inset Flex Code
6421 status collapsed
6422
6423 \begin_layout Plain Layout
6424 elyxer
6425 \end_layout
6426
6427 \end_inset
6428
6429 は,数式をCSSで装飾したHTMLとして出力します
6430 \begin_inset Foot
6431 status collapsed
6432
6433 \begin_layout Plain Layout
6434 \SpecialChar LyX
6435 は,
6436 \begin_inset Flex Code
6437 status collapsed
6438
6439 \begin_layout Plain Layout
6440 elyxer
6441 \end_layout
6442
6443 \end_inset
6444
6445 からのHTML出力のために,CSSの一部を拝借しています.
6446 \end_layout
6447
6448 \end_inset
6449
6450 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6451 \begin_inset Flex Code
6452 status collapsed
6453
6454 \begin_layout Plain Layout
6455 elyxer
6456 \end_layout
6457
6458 \end_inset
6459
6460 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6461 \begin_inset Newline newline
6462 \end_inset
6463
6464 例えば,数式が
6465 \begin_inset Flex Code
6466 status collapsed
6467
6468 \begin_layout Plain Layout
6469 xymatrix
6470 \end_layout
6471
6472 \end_inset
6473
6474 パッケージを使用していたり,\SpecialChar TeX
6475 コードを使用しているなどで,もし\SpecialChar LyX
6476 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6477 は数式を代わりに画像として出力します.
6478  
6479 \end_layout
6480
6481 \begin_layout Itemize
6482 画像
6483 \begin_inset Newline newline
6484 \end_inset
6485
6486
6487 \begin_inset Flex Code
6488 status collapsed
6489
6490 \begin_layout Plain Layout
6491 htlatex
6492 \end_layout
6493
6494 \end_inset
6495
6496 のように,\SpecialChar LyX
6497 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6498 \begin_inset Foot
6499 status collapsed
6500
6501 \begin_layout Plain Layout
6502 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6503 \emph on
6504 ありません
6505 \emph default
6506
6507 \end_layout
6508
6509 \end_inset
6510
6511 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6512 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6513 かったり,コピーが出来なかったりといったことがあります.
6514 \begin_inset Newline newline
6515 \end_inset
6516
6517 画像の寸法は,
6518 \begin_inset Flex MenuItem
6519 status collapsed
6520
6521 \begin_layout Plain Layout
6522 文書\SpecialChar menuseparator
6523 設定\SpecialChar menuseparator
6524 形式
6525 \end_layout
6526
6527 \end_inset
6528
6529 の「数式画像の伸縮」パラメータを変更することで制御できます
6530 \begin_inset Foot
6531 status collapsed
6532
6533 \begin_layout Plain Layout
6534 必要な方のために述べておくと,これは,画像の解像度をdpi(1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6535 \end_layout
6536
6537 \end_inset
6538
6539
6540 \begin_inset Newline newline
6541 \end_inset
6542
6543 もし\SpecialChar LyX
6544 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6545 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6546 を出力します.
6547 \end_layout
6548
6549 \begin_layout Itemize
6550 \SpecialChar LaTeX
6551
6552 \begin_inset Newline newline
6553 \end_inset
6554
6555 最後に,\SpecialChar LyX
6556 は,数式を\SpecialChar LaTeX
6557 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6558 を描画するのにJavaScript
6559 を使用する,
6560 \begin_inset CommandInset href
6561 LatexCommand href
6562 name "jsMath"
6563 target "http://www.math.union.edu/~dpvc/jsMath/"
6564 literal "false"
6565
6566 \end_inset
6567
6568 のようなツールとともに使用することもできます.\SpecialChar LyX
6569 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6570 部分を,
6571 \begin_inset Flex Code
6572 status collapsed
6573
6574 \begin_layout Plain Layout
6575 span
6576 \end_layout
6577
6578 \end_inset
6579
6580 (行内数式用)または
6581 \begin_inset Flex Code
6582 status collapsed
6583
6584 \begin_layout Plain Layout
6585 div
6586 \end_layout
6587
6588 \end_inset
6589
6590 (別行立て数式用)に
6591 \begin_inset Flex Code
6592 status collapsed
6593
6594 \begin_layout Plain Layout
6595 class='math'
6596 \end_layout
6597
6598 \end_inset
6599
6600 を指定したもので,包んで出力します.
6601 \end_layout
6602
6603 \begin_layout Standard
6604 これらの出力方法のいずれかを
6605 \begin_inset Flex MenuItem
6606 status collapsed
6607
6608 \begin_layout Plain Layout
6609 文書\SpecialChar menuseparator
6610 設定\SpecialChar menuseparator
6611 形式
6612 \end_layout
6613
6614 \end_inset
6615
6616 で選択しなくてはなりません.既定では,\SpecialChar LyX
6617 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6618 \end_layout
6619
6620 \begin_layout Standard
6621 最後に,\SpecialChar LyX
6622 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6623 \begin_inset Foot
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 その他にも,\SpecialChar LyX
6628 は,差込枠に\SpecialChar TeX
6629 コードが含まれていると画像出力に回帰するので,数式中に
6630 \begin_inset Formula $a=b\relax$
6631 \end_inset
6632
6633 のような無害な\SpecialChar TeX
6634 コードを挿入することによって,画像出力を強制することができます.
6635 \end_layout
6636
6637 \end_inset
6638
6639
6640 \end_layout
6641
6642 \begin_layout Section
6643 書誌情報と引用
6644 \end_layout
6645
6646 \begin_layout Standard
6647 XHTML出力は,書誌情報と引用を完全にサポートしています.
6648 \end_layout
6649
6650 \begin_layout Standard
6651 引用ラベルは,\SpecialChar LyX
6652 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6653 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6654 使用している場合には,\SpecialChar LyX
6655 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6656 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6657 は,Bib\SpecialChar TeX
6658 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6659 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6660 \end_layout
6661
6662 \begin_layout Standard
6663 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6664 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6665 ください.
6666 \end_layout
6667
6668 \begin_layout Standard
6669 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6670 \end_layout
6671
6672 \begin_layout Quote
6673 Jason Stanley, 
6674 \begin_inset Quotes eld
6675 \end_inset
6676
6677 Context and Logical Form
6678 \begin_inset Quotes erd
6679 \end_inset
6680
6681 , in 
6682 \emph on
6683 Language in Context: Selected Essays
6684 \emph default
6685  (Oxford: Oxford University Press, 2007), pp.
6686  30–68.
6687 \end_layout
6688
6689 \begin_layout Quote
6690 Jason Stanley, 
6691 \begin_inset Quotes eld
6692 \end_inset
6693
6694 Semantics in Context
6695 \begin_inset Quotes erd
6696 \end_inset
6697
6698 , in 
6699 \emph on
6700 Language in Context: Selected Essays
6701 \emph default
6702  (Oxford: Oxford University Press, 2007), pp.
6703  201–30.
6704 \end_layout
6705
6706 \begin_layout Standard
6707 これは,遠くないうちに修正されるでしょう.
6708 \end_layout
6709
6710 \begin_layout Standard
6711 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6712 は同じ情報を繰り返し出力してしまいます.
6713 \end_layout
6714
6715 \begin_layout Section
6716 索引
6717 \end_layout
6718
6719 \begin_layout Standard
6720 \SpecialChar LyX
6721 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6722 \end_layout
6723
6724 \begin_layout Standard
6725 索引の書き出しは,
6726 \emph on
6727 ユーザーの手引き
6728 \emph default
6729 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6730 \begin_inset Foot
6731 status collapsed
6732
6733 \begin_layout Plain Layout
6734 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6735 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6736 で入力しなくてはならないようなものをそのまま入力しているのです.
6737 \end_layout
6738
6739 \end_inset
6740
6741 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6742 \end_layout
6743
6744 \begin_layout Itemize
6745 索引項目のグループ化(下層項目): \SpecialChar LyX
6746 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6747 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6748 \end_layout
6749
6750 \begin_layout Itemize
6751 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6752 得られるだけです.
6753 \end_layout
6754
6755 \begin_layout Itemize
6756 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6757 が「|see\SpecialChar ldots
6758 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6759 す.
6760 \end_layout
6761
6762 \begin_layout Itemize
6763 索引項目の整序: \SpecialChar LyX
6764 は整序順の変更をサポートします.\SpecialChar LyX
6765 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6766 出します.現在のところ,\SpecialChar LyX
6767 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6768 \end_layout
6769
6770 \begin_layout Itemize
6771 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6772 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6773 うな文法はサポートされません.\SpecialChar LyX
6774 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6775 \end_layout
6776
6777 \begin_layout Itemize
6778 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6779 を印字しますので,その索引は必ず置くようにしてください.
6780 \end_layout
6781
6782 \begin_layout Section
6783 記号一覧および用語集
6784 \end_layout
6785
6786 \begin_layout Standard
6787 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6788 \end_layout
6789
6790 \begin_layout Chapter
6791 \SpecialChar LyX
6792 サーバー
6793 \end_layout
6794
6795 \begin_layout Section
6796 はじめに
6797 \end_layout
6798
6799 \begin_layout Standard
6800 「\SpecialChar LyX
6801 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6802 と通信したり,\SpecialChar LyX
6803 コマンドを実行させたり,\SpecialChar LyX
6804 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6805 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6806 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6807 とが可能となります.
6808 \end_layout
6809
6810 \begin_layout Section
6811 \SpecialChar LyX
6812 サーバーを開始するには
6813 \begin_inset CommandInset label
6814 LatexCommand label
6815 name "sec:サーバーを開始するには"
6816
6817 \end_inset
6818
6819
6820 \end_layout
6821
6822 \begin_layout Standard
6823 \SpecialChar LyX
6824 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6825 \begin_inset Flex Code
6826 status collapsed
6827
6828 \begin_layout Plain Layout
6829 UserDir
6830 \end_layout
6831
6832 \end_inset
6833
6834 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6835 \emph on
6836 ローカルの
6837 \emph default
6838 パイプは
6839 \begin_inset Flex Code
6840 status collapsed
6841
6842 \begin_layout Plain Layout
6843
6844 \backslash
6845
6846 \backslash
6847 .
6848 \backslash
6849 pipe
6850 \end_layout
6851
6852 \end_inset
6853
6854 に特別なオブジェクトとして置かれます),「
6855 \begin_inset Flex Code
6856 status collapsed
6857
6858 \begin_layout Plain Layout
6859 .lyxpipe.in
6860 \end_layout
6861
6862 \end_inset
6863
6864 」および「
6865 \begin_inset Flex Code
6866 status collapsed
6867
6868 \begin_layout Plain Layout
6869 .lyxpipe.out
6870 \end_layout
6871
6872 \end_inset
6873
6874 」という名前がついています.外部プログラムは,
6875 \begin_inset Flex Code
6876 status collapsed
6877
6878 \begin_layout Plain Layout
6879 .lyxpipe.in
6880 \end_layout
6881
6882 \end_inset
6883
6884 に書き込みを行い,戻りデータを
6885 \begin_inset Flex Code
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 .lyxpipe.out
6890 \end_layout
6891
6892 \end_inset
6893
6894 から読み出します.パイプ名の語幹は,
6895 \begin_inset Flex MenuItem
6896 status collapsed
6897
6898 \begin_layout Plain Layout
6899 ツール\SpecialChar menuseparator
6900 設定
6901 \end_layout
6902
6903 \end_inset
6904
6905 から,たとえば「
6906 \begin_inset Flex Code
6907 status collapsed
6908
6909 \begin_layout Plain Layout
6910 /home/myhome/lyxpipe
6911 \end_layout
6912
6913 \end_inset
6914
6915 」あるいはWindowsでは「
6916 \begin_inset Flex Code
6917 status collapsed
6918
6919 \begin_layout Plain Layout
6920
6921 \backslash
6922
6923 \backslash
6924 .
6925 \backslash
6926 pipe
6927 \backslash
6928 lyxpipe
6929 \end_layout
6930
6931 \end_inset
6932
6933 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6934 \begin_inset Flex Code
6935 status collapsed
6936
6937 \begin_layout Plain Layout
6938 "
6939 \backslash
6940
6941 \backslash
6942 .
6943 \backslash
6944 pipe
6945 \backslash
6946 my
6947 \backslash
6948 lyx
6949 \backslash
6950 pipe"
6951 \end_layout
6952
6953 \end_inset
6954
6955 なども使用できます).サーバーを開始するためには,これを
6956 \emph on
6957 手動で設定しなくてはなりません
6958 \emph default
6959
6960 \end_layout
6961
6962 \begin_layout Standard
6963 \SpecialChar LyX
6964 は,パイプを生成するに際して,「
6965 \begin_inset Flex Code
6966 status collapsed
6967
6968 \begin_layout Plain Layout
6969 .in
6970 \end_layout
6971
6972 \end_inset
6973
6974 」および「
6975 \begin_inset Flex Code
6976 status collapsed
6977
6978 \begin_layout Plain Layout
6979 .out
6980 \end_layout
6981
6982 \end_inset
6983
6984 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6985 は他の\SpecialChar LyX
6986 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6987 らかの理由で,\SpecialChar LyX
6988 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6989 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6990 プを削除したのちに,\SpecialChar LyX
6991 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
6992 ることはありません.
6993 \end_layout
6994
6995 \begin_layout Standard
6996 サーバーを使用する\SpecialChar LyX
6997 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
6998 \begin_inset Flex Code
6999 status collapsed
7000
7001 \begin_layout Plain Layout
7002 preferences
7003 \end_layout
7004
7005 \end_inset
7006
7007 ファイルを使用させるなど,別々の設定を使用する必要があります.
7008 \end_layout
7009
7010 \begin_layout Standard
7011 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7012 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7013 \begin_inset Flex Code
7014 status collapsed
7015
7016 \begin_layout Plain Layout
7017 lyx -dbg lyxserver
7018 \end_layout
7019
7020 \end_inset
7021
7022 として起動してください.
7023 \end_layout
7024
7025 \begin_layout Standard
7026 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7027 \begin_inset Newline newline
7028 \end_inset
7029
7030
7031 \begin_inset Flex Code
7032 status collapsed
7033
7034 \begin_layout Plain Layout
7035 development/lyxserver/server_monitor.cpp
7036 \end_layout
7037
7038 \end_inset
7039
7040 にあります.
7041 \end_layout
7042
7043 \begin_layout Standard
7044 もう一つの便利なツールとして,
7045 \begin_inset Flex Code
7046 status collapsed
7047
7048 \begin_layout Plain Layout
7049 src/client/lyxclient
7050 \end_layout
7051
7052 \end_inset
7053
7054 にあるコマンドラインベースのクライアントがあります.
7055 \end_layout
7056
7057 \begin_layout Section
7058 通常の通信
7059 \end_layout
7060
7061 \begin_layout Standard
7062 \SpecialChar LyX
7063 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7064 \end_layout
7065
7066 \begin_layout Quote
7067 LYXCMD:
7068 \emph on
7069 クライアント名
7070 \emph default
7071 :
7072 \emph on
7073 関数
7074 \emph default
7075 :
7076 \emph on
7077 引数
7078 \end_layout
7079
7080 \begin_layout Description
7081 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7082 が返答をす
7083 る際,クライアント名をエコーするときだけです.
7084 \end_layout
7085
7086 \begin_layout Description
7087 関数 は,\SpecialChar LyX
7088 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7089 \end_layout
7090
7091 \begin_layout Description
7092 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7093 \end_layout
7094
7095 \begin_layout Standard
7096 \SpecialChar LyX
7097 からの返答は,出力パイプに送り出され,
7098 \end_layout
7099
7100 \begin_layout Quote
7101 INFO:
7102 \emph on
7103 クライアント名
7104 \emph default
7105 :
7106 \emph on
7107 関数
7108 \emph default
7109 :
7110 \emph on
7111 データ
7112 \end_layout
7113
7114 \begin_layout Standard
7115 の書式をしています.ここで
7116 \emph on
7117 クライアント名
7118 \emph default
7119
7120 \emph on
7121 関数
7122 \emph default
7123 は,コマンド要求からそのままエコーされますが,
7124 \emph on
7125 データ
7126 \emph default
7127 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7128 の内部状態に関する情報を返しますが,空のデータ応答
7129 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7130 \end_layout
7131
7132 \begin_layout Standard
7133 エラーが発生した場合の\SpecialChar LyX
7134 の返答は
7135 \end_layout
7136
7137 \begin_layout Quote
7138 ERROR:
7139 \emph on
7140 クライアント名
7141 \emph default
7142 :
7143 \emph on
7144 関数
7145 \emph default
7146 :
7147 \emph on
7148 エラーメッセージ
7149 \end_layout
7150
7151 \begin_layout Standard
7152 の書式をしており,
7153 \emph on
7154 エラーメッセージ
7155 \emph default
7156 には,なぜコマンドが失敗したかの説明が入っているはずです.
7157 \end_layout
7158
7159 \begin_layout Standard
7160 (例)
7161 \end_layout
7162
7163 \begin_layout LyX-Code
7164 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7165 \begin_inset Newline newline
7166 \end_inset
7167
7168 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7169 \begin_inset Newline newline
7170 \end_inset
7171
7172 read a <~/.lyxpipe.out
7173 \begin_inset Newline newline
7174 \end_inset
7175
7176 echo $a
7177 \end_layout
7178
7179 \begin_layout Section
7180 通知
7181 \end_layout
7182
7183 \begin_layout Standard
7184 \SpecialChar LyX
7185 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7186 \begin_inset Flex Ruby
7187 status collapsed
7188
7189 \begin_layout Plain Layout
7190
7191 \begin_inset Argument post:1
7192 status collapsed
7193
7194 \begin_layout Plain Layout
7195 キー
7196 \end_layout
7197
7198 \end_inset
7199
7200
7201 \end_layout
7202
7203 \end_inset
7204
7205 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7206 はこの通知を行います.\SpecialChar LyX
7207 が送る文字列の書式は
7208 \end_layout
7209
7210 \begin_layout Quote
7211 \begin_inset Flex Code
7212 status collapsed
7213
7214 \begin_layout Plain Layout
7215 NOTIFY:
7216 \end_layout
7217
7218 \end_inset
7219
7220
7221 \emph on
7222 鍵列
7223 \end_layout
7224
7225 \begin_layout Standard
7226 となっていて,
7227 \emph on
7228 鍵列
7229 \emph default
7230 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7231 \end_layout
7232
7233 \begin_layout Standard
7234 この機構は,\SpecialChar LyX
7235 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7236 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7237 コマンドを発行する\SpecialChar LyX
7238 要求と\SpecialChar LyX
7239 コールを使用する関数を開始するのです.
7240 \end_layout
7241
7242 \begin_layout Section
7243 単純な\SpecialChar LyX
7244 サーバープロトコル
7245 \end_layout
7246
7247 \begin_layout Standard
7248 \SpecialChar LyX
7249 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7250 \end_layout
7251
7252 \begin_layout Quote
7253 LYXSRV:
7254 \emph on
7255 クライアント名
7256 \emph default
7257 :
7258 \emph on
7259 プロトコルメッセージ
7260 \end_layout
7261
7262 \begin_layout Standard
7263 の書式をしており,
7264 \emph on
7265 プロトコルメッセージ
7266 \emph default
7267 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7268 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7269 が終了するこ
7270 とをクライアントに伝えるのには,\SpecialChar LyX
7271 が「bye」を送信します.
7272 \end_layout
7273
7274 \begin_layout Section
7275 DVIとPDFの遡及検索
7276 \end_layout
7277
7278 \begin_layout Standard
7279 DVI/PDFビューア
7280 \begin_inset Foot
7281 status collapsed
7282
7283 \begin_layout Plain Layout
7284 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7285 \lang english
7286 Qpdfview on Unix
7287 \lang japanese
7288 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7289 \end_layout
7290
7291 \end_inset
7292
7293 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7294 特定の場所をクリックすることによって,\SpecialChar LyX
7295 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7296 と情報交換を行う必要があります
7297 .これは,命名パイプ(
7298 \emph on
7299 lyxpipe
7300 \emph default
7301 )を使用するか,\SpecialChar LyX
7302 が作業ディレクトリに生成するUNIXドメインソケット(
7303 \emph on
7304 lyxsocket
7305 \emph default
7306 )を使用する(これは
7307 \begin_inset Flex Code
7308 status collapsed
7309
7310 \begin_layout Plain Layout
7311 lyxclient
7312 \end_layout
7313
7314 \end_inset
7315
7316 プログラムが\SpecialChar LyX
7317 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7318 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7319 を橋渡しする補助スクリプトを必要とする
7320 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7321 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7322 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7323 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7324 \end_layout
7325
7326 \begin_layout Subsection
7327 \begin_inset CommandInset label
7328 LatexCommand label
7329 name "subsec:遡及検索"
7330
7331 \end_inset
7332
7333 自動有効化
7334 \end_layout
7335
7336 \begin_layout Standard
7337 ツールバーで
7338 \begin_inset Info
7339 type  "icon"
7340 arg   "buffer-toggle-output-sync"
7341 \end_inset
7342
7343 ボタンを押せば,ほとんどの場合,\SpecialChar LyX
7344 がすべてをうまくこなしてくれます.あるいは,
7345 \begin_inset Flex MenuItem
7346 status collapsed
7347
7348 \begin_layout Plain Layout
7349 文書\SpecialChar menuseparator
7350 設定\SpecialChar menuseparator
7351 形式
7352 \end_layout
7353
7354 \end_inset
7355
7356 メニューで
7357 \begin_inset Flex MenuItem
7358 status collapsed
7359
7360 \begin_layout Plain Layout
7361 出力と同期
7362 \end_layout
7363
7364 \end_inset
7365
7366 にチェックを入れることで有効にすることもできます.その場合,\SpecialChar LyX
7367 は,自動的に,必要なSync\SpecialChar TeX
7368 マクロ(PDFの場合)や,srcltxパッケージ(DVIの場合)を挿入し
7369 てくれます.このオプションは,
7370 \begin_inset Flex MenuItem
7371 status collapsed
7372
7373 \begin_layout Plain Layout
7374 表示/更新
7375 \end_layout
7376
7377 \end_inset
7378
7379 ツールバーからも容易にアクセスすることができます.
7380 \end_layout
7381
7382 \begin_layout Standard
7383 もし,これとは別の設定が必要な場合には,
7384 \begin_inset Flex MenuItem
7385 status collapsed
7386
7387 \begin_layout Plain Layout
7388 文書\SpecialChar menuseparator
7389 設定\SpecialChar menuseparator
7390 出力\SpecialChar menuseparator
7391 出力と同期
7392 \end_layout
7393
7394 \end_inset
7395
7396 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
7397 \end_layout
7398
7399 \begin_layout Standard
7400 方式として
7401 \begin_inset Flex Code
7402 status collapsed
7403
7404 \begin_layout Plain Layout
7405
7406 \backslash
7407 synctex=1
7408 \end_layout
7409
7410 \end_inset
7411
7412 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7413 \begin_inset Flex Code
7414 status collapsed
7415
7416 \begin_layout Plain Layout
7417
7418 \backslash
7419 synctex=-1
7420 \end_layout
7421
7422 \end_inset
7423
7424 を指定してください.
7425 \end_layout
7426
7427 \begin_layout Standard
7428 また,
7429 \begin_inset Flex Code
7430 status collapsed
7431
7432 \begin_layout Plain Layout
7433 srcltx
7434 \end_layout
7435
7436 \end_inset
7437
7438 パッケージや
7439 \begin_inset Flex Code
7440 status collapsed
7441
7442 \begin_layout Plain Layout
7443 src-specials
7444 \end_layout
7445
7446 \end_inset
7447
7448 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7449 \begin_inset Flex Code
7450 status collapsed
7451
7452 \begin_layout Plain Layout
7453 srcltx
7454 \end_layout
7455
7456 \end_inset
7457
7458 パッケージや
7459 \begin_inset Flex Code
7460 status collapsed
7461
7462 \begin_layout Plain Layout
7463 src-specials
7464 \end_layout
7465
7466 \end_inset
7467
7468 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7469 \end_layout
7470
7471 \begin_layout Standard
7472 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7473 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7474 \begin_inset CommandInset ref
7475 LatexCommand ref
7476 reference "subsec:特定のビューアを設定して使うには"
7477
7478 \end_inset
7479
7480 節に進むことができます.
7481 \end_layout
7482
7483 \begin_layout Subsection
7484 手動有効化
7485 \end_layout
7486
7487 \begin_layout Standard
7488 \SpecialChar LaTeX
7489 は,遡及検索のために複数の方法を提供しています.ある方法は
7490 \begin_inset Flex Code
7491 status collapsed
7492
7493 \begin_layout Plain Layout
7494 latex/pdflatex
7495 \end_layout
7496
7497 \end_inset
7498
7499 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7500 頒布版が既に特定の方法を提供しているか(組み込みによ
7501 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7502 \end_layout
7503
7504 \begin_layout Subsubsection*
7505 src-special経由のDVI組み込み検索(DVIのみ)
7506 \end_layout
7507
7508 \begin_layout Standard
7509 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7510 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7511 頒布版はすべて対応しています),安定
7512 して動作します.これを有効にするには,
7513 \begin_inset Flex MenuItem
7514 status collapsed
7515
7516 \begin_layout Plain Layout
7517 設定\SpecialChar menuseparator
7518 ファイル処理\SpecialChar menuseparator
7519 変換子
7520 \end_layout
7521
7522 \end_inset
7523
7524
7525 \begin_inset Flex MenuItem
7526 status collapsed
7527
7528 \begin_layout Plain Layout
7529 LaTeX (plain)->DVI
7530 \end_layout
7531
7532 \end_inset
7533
7534 ないし
7535 \begin_inset Flex MenuItem
7536 status collapsed
7537
7538 \begin_layout Plain Layout
7539 LaTeX (plain)->DraftDVI
7540 \end_layout
7541
7542 \end_inset
7543
7544 変換子を
7545 \begin_inset Flex Code
7546 status collapsed
7547
7548 \begin_layout Plain Layout
7549 latex -src-specials $$i
7550 \end_layout
7551
7552 \end_inset
7553
7554 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7555 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7556 \end_layout
7557
7558 \begin_layout Subsubsection*
7559 外部パッケージ(PDFSyncおよびsrcltx)
7560 \end_layout
7561
7562 \begin_layout Standard
7563
7564 \emph on
7565 pdfsync
7566 \emph default
7567 および
7568 \emph on
7569 srcltx
7570 \emph default
7571 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7572 プリアンブルで以下のようにパッケージを読み込んで
7573 ください.
7574 \end_layout
7575
7576 \begin_layout Itemize
7577 PDFの遡及検索には
7578 \begin_inset Flex Code
7579 status collapsed
7580
7581 \begin_layout Plain Layout
7582
7583 \backslash
7584 usepackage{pdfsync}
7585 \end_layout
7586
7587 \end_inset
7588
7589
7590 \end_layout
7591
7592 \begin_layout Itemize
7593 DVIの遡及検索には
7594 \begin_inset Flex Code
7595 status collapsed
7596
7597 \begin_layout Plain Layout
7598
7599 \backslash
7600 usepackage[active]{srcltx}
7601 \end_layout
7602
7603 \end_inset
7604
7605
7606 \end_layout
7607
7608 \begin_layout Standard
7609 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7610 \end_layout
7611
7612 \begin_layout LyX-Code
7613
7614 \backslash
7615 usepackage{ifpdf}
7616 \begin_inset Newline newline
7617 \end_inset
7618
7619
7620 \backslash
7621 ifpdf
7622 \begin_inset Newline newline
7623 \end_inset
7624
7625   
7626 \backslash
7627 usepackage{pdfsync}
7628 \begin_inset Newline newline
7629 \end_inset
7630
7631
7632 \backslash
7633 else
7634 \begin_inset Newline newline
7635 \end_inset
7636
7637   
7638 \backslash
7639 usepackage[active]{srcltx}
7640 \begin_inset Newline newline
7641 \end_inset
7642
7643
7644 \backslash
7645 fi
7646 \end_layout
7647
7648 \begin_layout Standard
7649 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7650 \end_layout
7651
7652 \begin_layout Standard
7653 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7654
7655 \end_layout
7656
7657 \begin_layout Subsubsection*
7658 Sync\SpecialChar TeX
7659 を使った組み込み遡及検索(DVIおよびPDF)
7660 \end_layout
7661
7662 \begin_layout Standard
7663 \begin_inset Flex Code
7664 status collapsed
7665
7666 \begin_layout Plain Layout
7667 (pdf)latex
7668 \end_layout
7669
7670 \end_inset
7671
7672 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7673 \emph on
7674 Sync\SpecialChar TeX
7675
7676 \emph default
7677 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7678 るためには,少なくとも\SpecialChar TeX
7679 Live 2008か最近のMik\SpecialChar TeX
7680 頒布版が必要です.また,既にSync\SpecialChar TeX
7681 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7682 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDFなど.詳細は次節を参照のこと).
7683 \end_layout
7684
7685 \begin_layout Standard
7686 DVI出力でSync\SpecialChar TeX
7687 を有効にするには,
7688 \begin_inset Flex MenuItem
7689 status collapsed
7690
7691 \begin_layout Plain Layout
7692 設定\SpecialChar menuseparator
7693 ファイル処理\SpecialChar menuseparator
7694 変換子
7695 \end_layout
7696
7697 \end_inset
7698
7699
7700 \begin_inset Flex Noun
7701 status collapsed
7702
7703 \begin_layout Plain Layout
7704 LaTeX (plain) -> DVI
7705 \end_layout
7706
7707 \end_inset
7708
7709 ないし
7710 \begin_inset Flex Noun
7711 status collapsed
7712
7713 \begin_layout Plain Layout
7714 LaTeX (plain) -> DraftDVI
7715 \end_layout
7716
7717 \end_inset
7718
7719 変換子を
7720 \begin_inset Flex Code
7721 status collapsed
7722
7723 \begin_layout Plain Layout
7724 latex -synctex=1 $$i
7725 \end_layout
7726
7727 \end_inset
7728
7729 に変更します.PDF出力用には,
7730 \begin_inset Flex Noun
7731 status collapsed
7732
7733 \begin_layout Plain Layout
7734 LaTeX (pdflatex) -> PDF (pdflatex)
7735 \end_layout
7736
7737 \end_inset
7738
7739 変換子を
7740 \begin_inset Flex Code
7741 status collapsed
7742
7743 \begin_layout Plain Layout
7744 pdflatex -synctex=1 $$i
7745 \end_layout
7746
7747 \end_inset
7748
7749 に変更してください.お使いのビューアが下記に記述されていない場合や,万一うまくいかない場合にはまた,ビューアをSync\SpecialChar TeX
7750 で使うのに設定を行う必要があるかどうか,お
7751 使いのビューアの取扱説明書をご確認ください.
7752 \begin_inset Foot
7753 status collapsed
7754
7755 \begin_layout Plain Layout
7756 \begin_inset Flex Code
7757 status collapsed
7758
7759 \begin_layout Plain Layout
7760 -synctex=1
7761 \end_layout
7762
7763 \end_inset
7764
7765 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7766 \begin_inset Flex Code
7767 status collapsed
7768
7769 \begin_layout Plain Layout
7770 -synctex=-1
7771 \end_layout
7772
7773 \end_inset
7774
7775 を使用してください.
7776 \end_layout
7777
7778 \end_inset
7779
7780
7781 \end_layout
7782
7783 \begin_layout Subsection
7784 特定のビューアを設定して使うには
7785 \begin_inset CommandInset label
7786 LatexCommand label
7787 name "subsec:特定のビューアを設定して使うには"
7788
7789 \end_inset
7790
7791
7792 \end_layout
7793
7794 \begin_layout Subsubsection*
7795 Xdvi(全プラットフォーム)
7796 \end_layout
7797
7798 \begin_layout Standard
7799 \SpecialChar LyX
7800 は,
7801 \begin_inset Flex Code
7802 status collapsed
7803
7804 \begin_layout Plain Layout
7805 lyxclient
7806 \end_layout
7807
7808 \end_inset
7809
7810 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7811 \begin_inset Flex Code
7812 status collapsed
7813
7814 \begin_layout Plain Layout
7815 xdvi
7816 \end_layout
7817
7818 \end_inset
7819
7820 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7821 ,Mac OS X上ではAlt-クリックで始動します).
7822 \end_layout
7823
7824 \begin_layout Standard
7825 しかし,何らかの理由で,\SpecialChar LyX
7826 と通信するのにソケットではなく命名パイプを使用したい場合には,
7827 \begin_inset Flex MenuItem
7828 status collapsed
7829
7830 \begin_layout Plain Layout
7831 設定\SpecialChar menuseparator
7832 ファイル処理\SpecialChar menuseparator
7833 ファイル書式
7834 \end_layout
7835
7836 \end_inset
7837
7838 のDVIビューアを
7839 \begin_inset Flex Code
7840 status collapsed
7841
7842 \begin_layout Plain Layout
7843 xdvi -editor "lyxeditor.sh %f %l"
7844 \end_layout
7845
7846 \end_inset
7847
7848
7849 \begin_inset Flex Code
7850 status collapsed
7851
7852 \begin_layout Plain Layout
7853 lyxeditor.sh
7854 \end_layout
7855
7856 \end_inset
7857
7858 は適切なスクリプト名)に変更してください
7859 \begin_inset Foot
7860 status collapsed
7861
7862 \begin_layout Plain Layout
7863 Mac OS X上では,
7864 \begin_inset Flex Code
7865 status collapsed
7866
7867 \begin_layout Plain Layout
7868 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7869 \end_layout
7870
7871 \end_inset
7872
7873 としなくてはなりません.
7874 \end_layout
7875
7876 \end_inset
7877
7878 .たとえば,最低限のシェルスクリプトは
7879 \end_layout
7880
7881 \begin_layout LyX-Code
7882 #!/bin/sh
7883 \begin_inset Newline newline
7884 \end_inset
7885
7886 LYXPIPE="/path/to/lyxpipe"
7887 \begin_inset Newline newline
7888 \end_inset
7889
7890 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7891 \begin_inset Newline newline
7892 \end_inset
7893
7894 echo "$COMMAND" > "${LYXPIPE}".in || exit
7895 \begin_inset Newline newline
7896 \end_inset
7897
7898 read TMP < "${LYXPIPE}".out || exit
7899 \end_layout
7900
7901 \begin_layout Standard
7902 のようになります.ここで
7903 \begin_inset Flex Code
7904 status collapsed
7905
7906 \begin_layout Plain Layout
7907 /path/to/lyxpipe
7908 \end_layout
7909
7910 \end_inset
7911
7912 は,
7913 \begin_inset Flex MenuItem
7914 status collapsed
7915
7916 \begin_layout Plain Layout
7917 設定\SpecialChar menuseparator
7918 パス
7919 \end_layout
7920
7921 \end_inset
7922
7923 で指定したLyXServerパイプのパスを指定してください.
7924 \begin_inset Foot
7925 status collapsed
7926
7927 \begin_layout Plain Layout
7928 ソース頒布版の
7929 \begin_inset Flex Code
7930 status collapsed
7931
7932 \begin_layout Plain Layout
7933 development/tools
7934 \end_layout
7935
7936 \end_inset
7937
7938 フォルダには,ユーザが設定した
7939 \emph on
7940 lyxpipe
7941 \emph default
7942 を探し出す
7943 \begin_inset Flex Code
7944 status collapsed
7945
7946 \begin_layout Plain Layout
7947 lyxeditor
7948 \end_layout
7949
7950 \end_inset
7951
7952 スクリプトがあります.
7953 \end_layout
7954
7955 \end_inset
7956
7957
7958 \end_layout
7959
7960 \begin_layout Subsubsection*
7961 MacDviX(Mac OS X)
7962 \end_layout
7963
7964 \begin_layout Standard
7965 \begin_inset Flex Code
7966 status collapsed
7967
7968 \begin_layout Plain Layout
7969 /Applications/MacDviX_Folder/calleditor.script
7970 \end_layout
7971
7972 \end_inset
7973
7974 の終わりに
7975 \end_layout
7976
7977 \begin_layout LyX-Code
7978 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7979 \begin_inset Newline newline
7980 \end_inset
7981
7982 exit 1
7983 \end_layout
7984
7985 \begin_layout Standard
7986 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7987 を導入した場合には,それに従って上記の行を修正してください.
7988 \end_layout
7989
7990 \begin_layout Standard
7991 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
7992 \end_layout
7993
7994 \begin_layout Subsubsection*
7995 Skim(Mac OS X)
7996 \end_layout
7997
7998 \begin_layout Standard
7999 \begin_inset Flex MenuItem
8000 status collapsed
8001
8002 \begin_layout Plain Layout
8003 設定\SpecialChar menuseparator
8004 ファイル処理\SpecialChar menuseparator
8005 ファイル書式\SpecialChar menuseparator
8006 PDF (pdflatex)
8007 \end_layout
8008
8009 \end_inset
8010
8011 のビューア設定に
8012 \begin_inset Flex Code
8013 status collapsed
8014
8015 \begin_layout Plain Layout
8016 open -a Skim.app $$i
8017 \end_layout
8018
8019 \end_inset
8020
8021 と入力し,
8022 \begin_inset Flex MenuItem
8023 status collapsed
8024
8025 \begin_layout Plain Layout
8026 Skim\SpecialChar menuseparator
8027 設定\SpecialChar menuseparator
8028 Sync
8029 \end_layout
8030
8031 \end_inset
8032
8033 でLyXを選択してください.
8034 \end_layout
8035
8036 \begin_layout Standard
8037 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8038 \end_layout
8039
8040 \begin_layout Subsubsection*
8041 Evince(GNOME)
8042 \end_layout
8043
8044 \begin_layout Standard
8045 Evinceでは遡及検索はそのままでは動きませんが,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8046 \begin_inset CommandInset href
8047 LatexCommand href
8048 target "https://wiki.lyx.org/LyX/SyncTeX"
8049 literal "false"
8050
8051 \end_inset
8052
8053 を参照してください.
8054 \end_layout
8055
8056 \begin_layout Subsubsection*
8057 Okular(KDE)
8058 \end_layout
8059
8060 \begin_layout Standard
8061 \begin_inset Flex Noun
8062 status collapsed
8063
8064 \begin_layout Plain Layout
8065 設定\SpecialChar menuseparator
8066 Okularを設定\SpecialChar menuseparator
8067 エディタ
8068 \end_layout
8069
8070 \end_inset
8071
8072 で「Lyxクライアント」をエディタとして選択してください.これによって適切なコマンド(
8073 \begin_inset Flex Code
8074 status collapsed
8075
8076 \begin_layout Plain Layout
8077 lyxclient -g %f %l
8078 \end_layout
8079
8080 \end_inset
8081
8082 )が挿入されます.
8083 \end_layout
8084
8085 \begin_layout Standard
8086 遡及検索は,SHIFT-クリックで始動します.
8087 \end_layout
8088
8089 \begin_layout Subsubsection*
8090 Qpdfview(UNIX)
8091 \end_layout
8092
8093 \begin_layout Standard
8094 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8095 をサポートしています.
8096 \begin_inset Flex MenuItem
8097 status collapsed
8098
8099 \begin_layout Plain Layout
8100 Edit\SpecialChar menuseparator
8101 Settings\SpecialChar menuseparator
8102 Behavior
8103 \end_layout
8104
8105 \end_inset
8106
8107 を開いて「Source editor」項目の入力フィールドをクリックし,
8108 \begin_inset Flex Code
8109 status collapsed
8110
8111 \begin_layout Plain Layout
8112 lyxclient -g %1 %2
8113 \end_layout
8114
8115 \end_inset
8116
8117 というコマンドを入力してください.
8118 \end_layout
8119
8120 \begin_layout Standard
8121 遡及検索は,ダブルクリックで始動します.
8122 \end_layout
8123
8124 \begin_layout Subsubsection*
8125 YAP(Windows)
8126 \end_layout
8127
8128 \begin_layout Standard
8129 yapを起動し,
8130 \begin_inset Flex MenuItem
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134 View\SpecialChar menuseparator
8135 Options
8136 \end_layout
8137
8138 \end_inset
8139
8140 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8141 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8142
8143  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8144 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8145 \begin_inset Flex Code
8146 status collapsed
8147
8148 \begin_layout Plain Layout
8149 lyxeditor.bat
8150 \end_layout
8151
8152 \end_inset
8153
8154 (以下参照)のあるディレクトリを見つけます.
8155 \begin_inset Flex Code
8156 status collapsed
8157
8158 \begin_layout Plain Layout
8159 lyxeditor.bat
8160 \end_layout
8161
8162 \end_inset
8163
8164 を選択してプログラムの引数を
8165 \begin_inset Flex Code
8166 status collapsed
8167
8168 \begin_layout Plain Layout
8169 %f %l
8170 \end_layout
8171
8172 \end_inset
8173
8174 と指定してください.
8175 \begin_inset Flex Code
8176 status collapsed
8177
8178 \begin_layout Plain Layout
8179 lyxeditor.bat
8180 \end_layout
8181
8182 \end_inset
8183
8184 は,
8185 \emph on
8186 lyxpipe
8187 \emph default
8188 を通じて\SpecialChar LyX
8189 と通信するためのラッパとして使用され,以下のようになっています.
8190 \end_layout
8191
8192 \begin_layout LyX-Code
8193 @echo off
8194 \begin_inset Newline newline
8195 \end_inset
8196
8197 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8198 \backslash
8199
8200 \backslash
8201 .
8202 \backslash
8203 pipe
8204 \backslash
8205 lyxpipe.in
8206 \begin_inset Newline newline
8207 \end_inset
8208
8209 type 
8210 \backslash
8211
8212 \backslash
8213 .
8214 \backslash
8215 pipe
8216 \backslash
8217 lyxpipe.out
8218 \end_layout
8219
8220 \begin_layout Standard
8221 \SpecialChar LyX
8222 で指定した\SpecialChar LyX
8223 Serverパイプパスが,
8224 \begin_inset Flex Code
8225 status collapsed
8226
8227 \begin_layout Plain Layout
8228
8229 \backslash
8230
8231 \backslash
8232 .
8233 \backslash
8234 pipe
8235 \backslash
8236 lyxpipe
8237 \end_layout
8238
8239 \end_inset
8240
8241 となっていることを確認するか,
8242 \begin_inset Flex Code
8243 status collapsed
8244
8245 \begin_layout Plain Layout
8246 lyxeditor.bat
8247 \end_layout
8248
8249 \end_inset
8250
8251 ラッパの方を適切に修正してください.
8252 \end_layout
8253
8254 \begin_layout Standard
8255 yapでは,遡及検索はダブルクリックで始動します.
8256 \end_layout
8257
8258 \begin_layout Subsubsection*
8259 SumatraPDF(Windows)
8260 \end_layout
8261
8262 \begin_layout Standard
8263 SumatraPDFを遡及検索で使用するためには,
8264 \begin_inset Flex MenuItem
8265 status collapsed
8266
8267 \begin_layout Plain Layout
8268 設定\SpecialChar menuseparator
8269 ファイル処理\SpecialChar menuseparator
8270 ファイル書式\SpecialChar menuseparator
8271 PDF (pdflatex)
8272 \end_layout
8273
8274 \end_inset
8275
8276 のビューア設定で
8277 \begin_inset Flex Code
8278 status collapsed
8279
8280 \begin_layout Plain Layout
8281 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8282 \end_layout
8283
8284 \end_inset
8285
8286
8287 \begin_inset Flex Code
8288 status collapsed
8289
8290 \begin_layout Plain Layout
8291 lyxeditor.bat
8292 \end_layout
8293
8294 \end_inset
8295
8296 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8297 \end_layout
8298
8299 \begin_layout Standard
8300 遡及検索はダブルクリックで始動します.
8301 \end_layout
8302
8303 \begin_layout Subsubsection*
8304 YAP(Cygwin)
8305 \end_layout
8306
8307 \begin_layout Standard
8308 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8309 \begin_inset Flex MenuItem
8310 status collapsed
8311
8312 \begin_layout Plain Layout
8313 View\SpecialChar menuseparator
8314 Options
8315 \end_layout
8316
8317 \end_inset
8318
8319 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8320 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8321
8322  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8323 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8324 \begin_inset Flex Code
8325 status collapsed
8326
8327 \begin_layout Plain Layout
8328 lyxeditor.exe
8329 \end_layout
8330
8331 \end_inset
8332
8333 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8334 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8335 \begin_inset Flex Code
8336 status collapsed
8337
8338 \begin_layout Plain Layout
8339 lyxeditor.exe
8340 \end_layout
8341
8342 \end_inset
8343
8344 を選択してプログラムの引数を
8345 \begin_inset Flex Code
8346 status collapsed
8347
8348 \begin_layout Plain Layout
8349 -g %f %l
8350 \end_layout
8351
8352 \end_inset
8353
8354 と指定してください.これによって,\SpecialChar LyX
8355 との通信に
8356 \emph on
8357 lyxsocket
8358 \emph default
8359 が使用されるようになります.何らかの理由で
8360 \emph on
8361 lyxpipe
8362 \emph default
8363 を使用したい場合には,
8364 \begin_inset Flex Code
8365 status collapsed
8366
8367 \begin_layout Plain Layout
8368 -g
8369 \end_layout
8370
8371 \end_inset
8372
8373 オプションを削除して,\SpecialChar LyX
8374 設定で\SpecialChar LyX
8375 Serverパイプパスを指定することを忘れないでください.
8376 \end_layout
8377
8378 \begin_layout Standard
8379 yapでは,遡及検索はダブルクリックで始動します.
8380 \end_layout
8381
8382 \begin_layout Subsubsection*
8383 SumatraPDF(Cygwin)
8384 \end_layout
8385
8386 \begin_layout Standard
8387 SumatraPDFを遡及検索で使用するためには,
8388 \begin_inset Flex MenuItem
8389 status collapsed
8390
8391 \begin_layout Plain Layout
8392 設定\SpecialChar menuseparator
8393 ファイル処理\SpecialChar menuseparator
8394 ファイル書式\SpecialChar menuseparator
8395 PDF (pdflatex)
8396 \end_layout
8397
8398 \end_inset
8399
8400 のビューア設定で
8401 \begin_inset Flex Code
8402 status collapsed
8403
8404 \begin_layout Plain Layout
8405 SumatraPDF.sh
8406 \end_layout
8407
8408 \end_inset
8409
8410 と入力してください.ここで
8411 \begin_inset Flex Code
8412 status collapsed
8413
8414 \begin_layout Plain Layout
8415 SumatraPDF.sh
8416 \end_layout
8417
8418 \end_inset
8419
8420 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8421 \begin_inset Flex Code
8422 status collapsed
8423
8424 \begin_layout Plain Layout
8425 /usr/local/bin
8426 \end_layout
8427
8428 \end_inset
8429
8430 がもっとも良い選択肢でしょう).
8431 \end_layout
8432
8433 \begin_layout LyX-Code
8434 #!/bin/bash
8435 \begin_inset Newline newline
8436 \end_inset
8437
8438 cd $(dirname $1)
8439 \begin_inset Newline newline
8440 \end_inset
8441
8442 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8443 \end_layout
8444
8445 \begin_layout Standard
8446 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8447 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8448 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8449 \begin_inset Flex Code
8450 status collapsed
8451
8452 \begin_layout Plain Layout
8453 -g
8454 \end_layout
8455
8456 \end_inset
8457
8458
8459 \emph on
8460 lyxsocket
8461 \emph default
8462 経由の通信を有効にします.ここでも,
8463 \emph on
8464 lyxpipe
8465 \emph default
8466 を使用したい場合には,
8467 \begin_inset Flex Code
8468 status collapsed
8469
8470 \begin_layout Plain Layout
8471 -g
8472 \end_layout
8473
8474 \end_inset
8475
8476 オプションを削除して,\SpecialChar LyX
8477 設定で\SpecialChar LyX
8478 Serverパイプパスを指定することを忘れないでください.
8479 \end_layout
8480
8481 \begin_layout Standard
8482 遡及検索はダブルクリックで始動します.
8483 \end_layout
8484
8485 \begin_layout Section
8486 順検索
8487 \end_layout
8488
8489 \begin_layout Standard
8490 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
8491 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8492 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8493 文書の好きなところに置いて,
8494 \begin_inset Flex MenuItem
8495 status collapsed
8496
8497 \begin_layout Plain Layout
8498 移動\SpecialChar menuseparator
8499 順検索
8500 \end_layout
8501
8502 \end_inset
8503
8504 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8505 \begin_inset Flex MenuItem
8506 status collapsed
8507
8508 \begin_layout Plain Layout
8509 順検索
8510 \end_layout
8511
8512 \end_inset
8513
8514 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8515 \end_layout
8516
8517 \begin_layout Standard
8518 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8519 ソースに関する情報を追加する必要があります.これは,第
8520 \begin_inset CommandInset ref
8521 LatexCommand ref
8522 reference "subsec:遡及検索"
8523
8524 \end_inset
8525
8526 節に述べられている方法で実行することができます.
8527 \end_layout
8528
8529 \begin_layout Standard
8530 次に,
8531 \begin_inset Flex MenuItem
8532 status collapsed
8533
8534 \begin_layout Plain Layout
8535 ツール\SpecialChar menuseparator
8536 設定\SpecialChar menuseparator
8537 出力\SpecialChar menuseparator
8538 一般
8539 \end_layout
8540
8541 \end_inset
8542
8543 で自分の使うビューアを利用するように,\SpecialChar LyX
8544 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8545 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8546 \end_layout
8547
8548 \begin_layout Itemize
8549 \begin_inset Flex Code
8550 status collapsed
8551
8552 \begin_layout Plain Layout
8553 $$n
8554 \end_layout
8555
8556 \end_inset
8557
8558 :行番号
8559 \end_layout
8560
8561 \begin_layout Itemize
8562 \begin_inset Flex Code
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566 $$t
8567 \end_layout
8568
8569 \end_inset
8570
8571 :書き出された(一時).texファイル名(パスを除く)
8572 \end_layout
8573
8574 \begin_layout Itemize
8575 \begin_inset Flex Code
8576 status collapsed
8577
8578 \begin_layout Plain Layout
8579 $$f
8580 \end_layout
8581
8582 \end_inset
8583
8584 :書き出された(一時).texファイル名(パスを含む)
8585 \end_layout
8586
8587 \begin_layout Itemize
8588 \begin_inset Flex Code
8589 status collapsed
8590
8591 \begin_layout Plain Layout
8592 $$o
8593 \end_layout
8594
8595 \end_inset
8596
8597 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8598 \end_layout
8599
8600 \begin_layout Standard
8601 yap・xdvi・okular
8602 \begin_inset Foot
8603 status collapsed
8604
8605 \begin_layout Plain Layout
8606 \begin_inset Flex Noun
8607 status collapsed
8608
8609 \begin_layout Plain Layout
8610 ツール\SpecialChar menuseparator
8611 設定\SpecialChar menuseparator
8612 ファイル処理\SpecialChar menuseparator
8613 ファイル形式
8614 \end_layout
8615
8616 \end_inset
8617
8618
8619 \begin_inset Flex Code
8620 status collapsed
8621
8622 \begin_layout Plain Layout
8623 okular --unique
8624 \end_layout
8625
8626 \end_inset
8627
8628 と設定すると良いでしょう.
8629 \end_layout
8630
8631 \end_inset
8632
8633 ・qpdfview・Sumatra PDF
8634 \begin_inset Foot
8635 status collapsed
8636
8637 \begin_layout Plain Layout
8638 SumatraPDFは,外部プログラムCMCDDE(
8639 \begin_inset CommandInset href
8640 LatexCommand href
8641 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8642 literal "false"
8643
8644 \end_inset
8645
8646 からダウンロード可能)を通じてDDEコマンドを使用することもできます.
8647 \end_layout
8648
8649 \end_inset
8650
8651 など,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8652 \begin_inset Foot
8653 status collapsed
8654
8655 \begin_layout Plain Layout
8656 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8657 \begin_inset CommandInset href
8658 LatexCommand href
8659 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8660 literal "false"
8661
8662 \end_inset
8663
8664 からダウンロードすることができます.
8665 \end_layout
8666
8667 \end_inset
8668
8669 .Evince
8670 \begin_inset Foot
8671 status collapsed
8672
8673 \begin_layout Plain Layout
8674 Evinceでの順検索は,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8675 \begin_inset CommandInset href
8676 LatexCommand href
8677 target "https://wiki.lyx.org/LyX/SyncTeX"
8678 literal "false"
8679
8680 \end_inset
8681
8682 を参照してください.
8683 \end_layout
8684
8685 \end_inset
8686
8687 など他のビューアには,順検索を使用するのに,追加のツールを必要とするものもあります.広く使われているPDFビューアの多く(特にAdobe Reader)は,順検
8688 索を全く提供していませんが,他の一部のビューア(たとえばxpdf)では,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少
8689 なくとも「近く」には移動することができます.この後者の機能は,synctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8690 \end_layout
8691
8692 \begin_layout Standard
8693 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8694 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8695 チェックして),その形式に適切な設定を選択します.
8696 \end_layout
8697
8698 \begin_layout Chapter
8699 特別な文書クラス
8700 \end_layout
8701
8702 \begin_layout Section
8703 A&Aの論文
8704 \end_layout
8705
8706 \begin_layout Standard
8707
8708 \noun on
8709 Peter Sütterlin文
8710 \end_layout
8711
8712 \begin_layout Subsection
8713 はじめに
8714 \end_layout
8715
8716 \begin_layout Standard
8717 この節では,文書クラス
8718 \family typewriter
8719 aa.cls
8720 \family default
8721 第5.01版を使用して科学雑誌
8722 \emph on
8723 Astronomy and Astrophysics
8724 \emph default
8725 (『天文学と宇宙物理学』: 
8726 \begin_inset Flex URL
8727 status collapsed
8728
8729 \begin_layout Plain Layout
8730
8731 https://www.aanda.org/
8732 \end_layout
8733
8734 \end_inset
8735
8736 )に投稿する論文を執筆するための\SpecialChar LyX
8737 の使用法を説明します.このパッケージは,FTPサイト
8738 \end_layout
8739
8740 \begin_layout Standard
8741 \align center
8742 \begin_inset VSpace medskip
8743 \end_inset
8744
8745
8746 \begin_inset Flex URL
8747 status collapsed
8748
8749 \begin_layout Plain Layout
8750
8751 ftp://ftp.edpsciences.org/pub/aa/readme.html
8752 \end_layout
8753
8754 \end_inset
8755
8756
8757 \begin_inset VSpace medskip
8758 \end_inset
8759
8760
8761 \end_layout
8762
8763 \begin_layout Standard
8764 \noindent
8765 からダウンロードすることができます.
8766 \end_layout
8767
8768 \begin_layout Standard
8769 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8770 書であるに過ぎません.
8771 \end_layout
8772
8773 \begin_layout Standard
8774 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8775 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8776 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8777 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8778 \family sans
8779 article (A&A V4)
8780 \family default
8781 として残してあります.
8782 \family typewriter
8783 $\SpecialChar LyX
8784 Dir/layouts/aapaper.layout
8785 \family default
8786 のコメントをご参照ください.
8787 \end_layout
8788
8789 \begin_layout Subsection
8790 最初の一歩
8791 \end_layout
8792
8793 \begin_layout Standard
8794 \SpecialChar LyX
8795 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8796 \end_layout
8797
8798 \begin_layout Itemize
8799
8800 \family sans
8801 文書\SpecialChar menuseparator
8802 設定
8803 \family default
8804 ダイアログで
8805 \family sans
8806 article (A&A)
8807 \family default
8808 を選択してください(まぁ,これは自明ですね).
8809 \end_layout
8810
8811 \begin_layout Itemize
8812
8813 \family sans
8814 ページレイアウト
8815 \family default
8816 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8817 \end_layout
8818
8819 \begin_layout Subsection
8820 へッダ部
8821 \end_layout
8822
8823 \begin_layout Standard
8824 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8825 \end_layout
8826
8827 \begin_layout Itemize
8828
8829 \family sans
8830 タイトル
8831 \family default
8832 :[必須]
8833 \end_layout
8834
8835 \begin_layout Itemize
8836
8837 \family sans
8838 サブタイトル
8839 \family default
8840 :[非必須]
8841 \end_layout
8842
8843 \begin_layout Itemize
8844
8845 \family sans
8846 著者
8847 \family default
8848 :[必須]
8849 \end_layout
8850
8851 \begin_layout Itemize
8852
8853 \family sans
8854 住所
8855 \family default
8856 :[必須]
8857 \end_layout
8858
8859 \begin_layout Itemize
8860
8861 \family sans
8862 抜き刷り
8863 \family default
8864 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8865 \end_layout
8866
8867 \begin_layout Itemize
8868
8869 \family sans
8870 メール
8871 \family default
8872 :[非必須]連絡用の電子メールアドレス.
8873 \end_layout
8874
8875 \begin_layout Itemize
8876
8877 \family sans
8878 日付
8879 \family default
8880 :[必須]推奨されるフォーマットは,
8881 \family typewriter
8882 Received: <日付>; Accepted <日付>
8883 \family default
8884 です.
8885 \end_layout
8886
8887 \begin_layout Standard
8888
8889 \family typewriter
8890
8891 \backslash
8892 maketitle
8893 \family default
8894 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8895 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8896 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8897 \end_layout
8898
8899 \begin_layout Standard
8900 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8901 \family sans
8902 挿入\SpecialChar menuseparator
8903 脚注
8904 \family default
8905 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8906 は自動的に
8907 \family typewriter
8908
8909 \backslash
8910 thanks{}
8911 \family default
8912 を使用します.
8913 \end_layout
8914
8915 \begin_layout Standard
8916
8917 \family sans
8918 編集\SpecialChar menuseparator
8919 文字様式
8920 \family default
8921 の下に,タイトル関連の2つの差込枠があります.
8922 \end_layout
8923
8924 \begin_layout Itemize
8925
8926 \family sans
8927 所属機関
8928 \family default
8929 は,対応する著者・所属機関の対を標識するためのものです.所属機関には,
8930 \family sans
8931 住所
8932 \family default
8933 フィールドに現れるのと同じ順序で連番が振られますので,各著者に標識を付けてください.
8934 \end_layout
8935
8936 \begin_layout Itemize
8937
8938 \family sans
8939 電子メール
8940 \family default
8941 は,至急連絡用に電子メールアドレスを付するものです.
8942 \end_layout
8943
8944 \begin_layout Standard
8945 これらのトピックの他に,このマクロは,\SpecialChar LyX
8946 が対応していない,以下のもう一つの\SpecialChar LaTeX
8947 コマンドを使用します.
8948 \end_layout
8949
8950 \begin_layout Itemize
8951 複数の著者名あるいは所属名を区切るための
8952 \family typewriter
8953
8954 \backslash
8955 and
8956 \end_layout
8957
8958 \begin_layout Standard
8959 \SpecialChar LyX
8960 中に対応したコマンドを入力し,\SpecialChar LaTeX
8961 コードとしてマークしてください.用例を参照のこと.
8962 \end_layout
8963
8964 \begin_layout Subsection
8965 概要
8966 \end_layout
8967
8968 \begin_layout Standard
8969 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8970 れなくてはなりません.これには,キーワード段落様式を使用してください.用例にある論文を参照してください.
8971 \end_layout
8972
8973 \begin_layout Subsection
8974 サポートされる環境
8975 \end_layout
8976
8977 \begin_layout Standard
8978 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8979 \end_layout
8980
8981 \begin_layout Itemize
8982
8983 \family sans
8984 標準
8985 \end_layout
8986
8987 \begin_layout Itemize
8988
8989 \family sans
8990
8991 \end_layout
8992
8993 \begin_layout Itemize
8994
8995 \family sans
8996 小節
8997 \end_layout
8998
8999 \begin_layout Itemize
9000
9001 \family sans
9002 小々節
9003 \end_layout
9004
9005 \begin_layout Itemize
9006
9007 \family sans
9008 箇条書き(記号)
9009 \end_layout
9010
9011 \begin_layout Itemize
9012
9013 \family sans
9014 箇条書き(連番)
9015 \end_layout
9016
9017 \begin_layout Itemize
9018
9019 \family sans
9020 箇条書き(記述)
9021 \end_layout
9022
9023 \begin_layout Itemize
9024
9025 \family sans
9026 キャプション
9027 \end_layout
9028
9029 \begin_layout Itemize
9030
9031 \family sans
9032 概要
9033 \end_layout
9034
9035 \begin_layout Itemize
9036
9037 \family sans
9038 謝辞(Acknowledgment)
9039 \end_layout
9040
9041 \begin_layout Itemize
9042
9043 \family sans
9044 書誌情報
9045 \end_layout
9046
9047 \begin_layout Itemize
9048
9049 \family sans
9050 \SpecialChar LaTeX
9051
9052 \end_layout
9053
9054 \begin_layout Subsection
9055 \SpecialChar LyX
9056 でサポートされていないコマンド
9057 \end_layout
9058
9059 \begin_layout Standard
9060 \SpecialChar LyX
9061
9062 \family sans
9063 articleA&A)
9064 \family default
9065 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9066 \end_layout
9067
9068 \begin_layout Itemize
9069
9070 \family typewriter
9071
9072 \backslash
9073 and
9074 \end_layout
9075
9076 \begin_layout Itemize
9077
9078 \family typewriter
9079
9080 \backslash
9081 authorrunning
9082 \end_layout
9083
9084 \begin_layout Itemize
9085
9086 \family typewriter
9087
9088 \backslash
9089 object{}
9090 \end_layout
9091
9092 \begin_layout Itemize
9093
9094 \family typewriter
9095
9096 \backslash
9097 titlerunning{}
9098 \end_layout
9099
9100 \begin_layout Standard
9101 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9102 \series bold
9103 これを\SpecialChar LaTeX
9104 コマンドとしてマークすることを忘れないで下さい.
9105 \end_layout
9106
9107 \begin_layout Subsection
9108 図フロートおよび表フロート
9109 \end_layout
9110
9111 \begin_layout Standard
9112 \SpecialChar LyX
9113 は,必要なフロート環境
9114 \family sans
9115 figure
9116 \family default
9117
9118 \family sans
9119 figure*
9120 \family default
9121
9122 \family sans
9123 table
9124 \family default
9125
9126 \family sans
9127 table*
9128 \family default
9129 をサポートしていますので,ここでは詳しい説明はしません.
9130 \emph on
9131 ユーザーの手引き
9132 \emph default
9133 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9134 \family sans
9135 編集\SpecialChar menuseparator
9136 段落設定
9137 \family default
9138 で配置を変更してください.
9139 \end_layout
9140
9141 \begin_layout Standard
9142 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9143 \end_layout
9144
9145 \begin_layout Enumerate
9146
9147 \family sans
9148 挿入\SpecialChar menuseparator
9149 フロート\SpecialChar menuseparator
9150
9151 \family default
9152 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9153 \begin_inset Flex MenuItem
9154 status collapsed
9155
9156 \begin_layout Plain Layout
9157 設定\SpecialChar ldots
9158
9159 \end_layout
9160
9161 \end_inset
9162
9163 を選択し,それで開かれる
9164 \family sans
9165 フロートの設定
9166 \family default
9167 ダイアログで
9168 \family sans
9169 段をまたぐ
9170 \family default
9171 を有効にして,
9172 \family sans
9173 OK
9174 \family default
9175 ボタンを押します.
9176 \end_layout
9177
9178 \begin_layout Enumerate
9179 キャプション文を入力します.
9180 \end_layout
9181
9182 \begin_layout Enumerate
9183 キャプションの前にカーソルを移動し,
9184 \family sans
9185 Return
9186 \family default
9187 を押して,カーソルをキャプションの上に移動します.
9188 \end_layout
9189
9190 \begin_layout Enumerate
9191 図を挿入します.
9192 \end_layout
9193
9194 \begin_layout Enumerate
9195 カーソルを図の後ろに置いて,
9196 \family sans
9197 挿入\SpecialChar menuseparator
9198 整形\SpecialChar menuseparator
9199 水平方向の空白
9200 \family default
9201 を選択して
9202 \family sans
9203 水平方向の空白の設定
9204 \family default
9205 ダイアログを開き,
9206 \family sans
9207 空白
9208 \family default
9209 ドロップダウンから
9210 \family sans
9211 水平フィル
9212 \family default
9213 を選択して,水平フィルを挿入します.
9214 \end_layout
9215
9216 \begin_layout Enumerate
9217
9218 \family sans
9219 挿入\SpecialChar menuseparator
9220 TeXコード
9221 \family default
9222 を選択して,\SpecialChar TeX
9223 差込枠を挿入します.
9224 \end_layout
9225
9226 \begin_layout Enumerate
9227 \SpecialChar TeX
9228 差込枠中に
9229 \family typewriter
9230
9231 \backslash
9232 parbox[b]{55mm}{
9233 \family default
9234 と入力します.
9235 \series bold
9236 ここでは波括弧を閉じないでください.
9237 \end_layout
9238
9239 \begin_layout Enumerate
9240 カーソルをキャプション文の後ろに移動し,
9241 \family sans
9242 挿入\SpecialChar menuseparator
9243 TeXコード
9244 \family default
9245 を選択して,別の\SpecialChar TeX
9246 差込枠を挿入し,その中に閉じ括弧を入力します .
9247 \end_layout
9248
9249 \begin_layout Standard
9250 例示用論文中の図もご参照ください.
9251 \end_layout
9252
9253 \begin_layout Subsection
9254 Refereeレイアウト
9255 \end_layout
9256
9257 \begin_layout Standard
9258 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9259 \family typewriter
9260 referee
9261 \family default
9262 オプションを与える必要があります.これは,
9263 \family sans
9264 文書\SpecialChar menuseparator
9265 設定
9266 \family default
9267 ダイアログの
9268 \family sans
9269 任意設定
9270 \family default
9271 クラスオプションフィールドを使って行うことができます.この欄に
9272 \family typewriter
9273 referee
9274 \family default
9275 と云う文字列を入力してください.
9276 \end_layout
9277
9278 \begin_layout Subsection
9279 例示用論文
9280 \end_layout
9281
9282 \begin_layout Standard
9283
9284 \family sans
9285 Examples
9286 \family default
9287 ディレクトリには,\SpecialChar LyX
9288 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9289 用に直したものです.これはヒントを得るために使用したり,元の
9290  \SpecialChar LaTeX
9291 コードと\SpecialChar LyX
9292 での書き方の比較に使ったりしてください.
9293 \end_layout
9294
9295 \begin_layout Section
9296 AAS\SpecialChar TeX
9297
9298 \end_layout
9299
9300 \begin_layout Standard
9301
9302 \noun on
9303 Mike Ressler
9304 \noun default
9305
9306 \end_layout
9307
9308 \begin_layout Subsection
9309 はじめに
9310 \end_layout
9311
9312 \begin_layout Standard
9313 AAS\SpecialChar TeX
9314 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9315 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9316  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9317
9318 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
9319 は,同マクロ第5.0版以降を必要としており,でき
9320 ればここで説明されている第6.0版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9321 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
9322 とは互換性がありません.AAS\SpecialChar TeX
9323 パッケージは
9324 ,以下のAAS\SpecialChar TeX
9325 ウェブサイトからダウンロードできるでしょう.
9326 \end_layout
9327
9328 \begin_layout Standard
9329 \align center
9330 \begin_inset VSpace medskip
9331 \end_inset
9332
9333
9334 \begin_inset Flex URL
9335 status collapsed
9336
9337 \begin_layout Plain Layout
9338
9339 https://aas.org/aastex/aastex-downloads
9340 \end_layout
9341
9342 \end_inset
9343
9344
9345 \begin_inset VSpace medskip
9346 \end_inset
9347
9348
9349 \end_layout
9350
9351 \begin_layout Standard
9352 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9353 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9354 は,AASTeXの全コマン
9355 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9356 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9357 いることを確認するのは,あなたの責任です.
9358 \end_layout
9359
9360 \begin_layout Subsection
9361 新しい論文を書き始める
9362 \end_layout
9363
9364 \begin_layout Standard
9365 論文を書き始めるには,AAS\SpecialChar TeX
9366 ひな型ファイルを土台に始めることを強くお勧めします.
9367 \begin_inset Flex MenuItem
9368 status collapsed
9369
9370 \begin_layout Plain Layout
9371 ファイル\SpecialChar menuseparator
9372 新規(ひな型使用)
9373 \end_layout
9374
9375 \end_inset
9376
9377 をクリックして,新しいファイル名を入力し,ひな型
9378 \family typewriter
9379 aastex6.lyx
9380 \family default
9381 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
9382 \family typewriter
9383 <>
9384 \family default
9385 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
9386 コマンド・AAS\SpecialChar TeX
9387 環境の多くは,\SpecialChar LyX
9388 中で直接実行することができますが,できないものもあります.このようなコマンドは,直
9389 接La\SpecialChar TeX
9390 コードを入力して,それを\SpecialChar TeX
9391 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
9392 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます
9393 .AAS\SpecialChar TeX
9394 文書に必要とされる \SpecialChar TeX
9395 コードを最小にするようには努力しました.
9396 \end_layout
9397
9398 \begin_layout Subsection
9399 論文を書き終わったら
9400 \end_layout
9401
9402 \begin_layout Standard
9403 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
9404 \end_layout
9405
9406 \begin_layout Enumerate
9407 論文を \SpecialChar LaTeX
9408 ファイルとして書き出します(
9409 \family sans
9410 ファイル\SpecialChar menuseparator
9411 書き出し\SpecialChar menuseparator
9412 LaTeX
9413 \family default
9414 ).
9415 \end_layout
9416
9417 \begin_layout Enumerate
9418 出力した
9419 \family typewriter
9420 .tex
9421 \family default
9422 ファイルを好きなエディタで編集します.
9423 \end_layout
9424
9425 \begin_deeper
9426 \begin_layout Enumerate
9427
9428 \family typewriter
9429
9430 \backslash
9431 documentclass
9432 \family default
9433 コマンドよりも前のコメント行を削除します.
9434 \end_layout
9435
9436 \begin_layout Enumerate
9437
9438 \family typewriter
9439
9440 \backslash
9441 usepackage...{fontenc}
9442 \family default
9443 という行があれば(通常は
9444 \family typewriter
9445
9446 \backslash
9447 documentclass
9448 \family default
9449 の直後にあります)削除します.また,
9450 \family typewriter
9451
9452 \backslash
9453 secnumdepth
9454 \family default
9455 行があれば,これも削除します.
9456 \end_layout
9457
9458 \begin_layout Enumerate
9459 \SpecialChar LaTeX
9460 プリアンブル中に意図的に置いたコマンド(
9461 \family typewriter
9462 .tex
9463 \family default
9464 ファイル中,「User specified \SpecialChar LaTeX
9465  commands」というコメントの直後にあります)を除いて,
9466 \family typewriter
9467
9468 \backslash
9469 makeatletter
9470 \family default
9471
9472 \family typewriter
9473
9474 \backslash
9475 makeatother
9476 \family default
9477 の間のもの(これらのコマンドを含む)をすべて削除します.
9478 \end_layout
9479
9480 \end_deeper
9481 \begin_layout Enumerate
9482 編集後のファイルを \SpecialChar LaTeX
9483 にかけて,正しく処理されることを確認します.
9484 \end_layout
9485
9486 \begin_layout Enumerate
9487 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9488 \end_layout
9489
9490 \begin_layout Enumerate
9491 投稿してください.
9492 \end_layout
9493
9494 \begin_layout Subsection
9495 特定のコマンドに関するコメント
9496 \end_layout
9497
9498 \begin_layout Standard
9499 AAS\SpecialChar TeX
9500 ユーザーの手引き(
9501 \family typewriter
9502 aasguide.tex
9503 \family default
9504 )に,各AAS\SpecialChar TeX
9505 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9506 て,必要なところだけコメントを加えることにしましょう.
9507 \end_layout
9508
9509 \begin_layout Subsubsection
9510 期待通りに動作するもの
9511 \end_layout
9512
9513 \begin_layout Standard
9514 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9515 \family typewriter
9516
9517 \backslash
9518 documentclass
9519 \family default
9520  (2.1.1)・
9521 \family typewriter
9522
9523 \backslash
9524 begin{document}
9525 \family default
9526  (2.2)・
9527 \family typewriter
9528
9529 \backslash
9530 title
9531 \family default
9532  (2.3)・
9533 \family typewriter
9534
9535 \backslash
9536 author
9537 \family default
9538  (2.3)・
9539 \family typewriter
9540
9541 \backslash
9542 affil
9543 \family default
9544  (2.3)・
9545 \family typewriter
9546
9547 \backslash
9548 abstract
9549 \family default
9550  (2.4)・
9551 \family typewriter
9552
9553 \backslash
9554 keywords
9555 \family default
9556  (2.5)・
9557 \family typewriter
9558
9559 \backslash
9560 section
9561 \family default
9562  (2.7)・
9563 \family typewriter
9564
9565 \backslash
9566 subsection
9567 \family default
9568  (2.7)・
9569 \family typewriter
9570
9571 \backslash
9572 subsubsection
9573 \family default
9574  (2.7)・
9575 \family typewriter
9576
9577 \backslash
9578 paragraph
9579 \family default
9580  (2.7)・
9581 \family typewriter
9582
9583 \backslash
9584 facility
9585 \family default
9586  (2.10)・
9587 \family typewriter
9588
9589 \backslash
9590 begin{displaymath}
9591 \family default
9592  (2.12)・
9593 \family typewriter
9594
9595 \backslash
9596 begin{equation}
9597 \family default
9598  (2.12)・
9599 \family typewriter
9600
9601 \backslash
9602 begin{eqnarray}
9603 \family default
9604  (2.12)・
9605 \family typewriter
9606
9607 \backslash
9608 begin{mathletters}
9609 \family default
9610  (2.12)・
9611 \family typewriter
9612
9613 \backslash
9614 begin{thebibliography}
9615 \family default
9616  (2.13.1)・
9617 \family typewriter
9618
9619 \backslash
9620 bibitem
9621 \family default
9622  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9623 \family typewriter
9624
9625 \backslash
9626 begin{table}
9627 \family default
9628  (2.15.4)・
9629 \family typewriter
9630
9631 \backslash
9632 begin{tabular}
9633 \family default
9634  (2.15.4)・
9635 \family typewriter
9636
9637 \backslash
9638 caption
9639 \family default
9640  (2.15.4)・
9641 \family typewriter
9642
9643 \backslash
9644 label
9645 \family default
9646  (他にもあるが特に2.15.4)・
9647 \family typewriter
9648
9649 \backslash
9650 tablerefs
9651 \family default
9652  (2.15.5)・
9653 \family typewriter
9654
9655 \backslash
9656 tablecomments
9657 \family default
9658  (2.15.5)・
9659 \family typewriter
9660
9661 \backslash
9662 url
9663 \family default
9664  (2.17.4)・
9665 \family typewriter
9666
9667 \backslash
9668 end{document}
9669 \family default
9670  (2.18).
9671 \end_layout
9672
9673 \begin_layout Standard
9674 以下のスタイルオプションも正しく動作します.
9675 \family typewriter
9676 longabstract
9677 \family default
9678  (2.4)・
9679 \family typewriter
9680 preprint
9681 \family default
9682  (3.2.1)・
9683 \family typewriter
9684 preprint2
9685 \family default
9686  (3.2.2)・
9687 \family typewriter
9688 eqsecnum
9689 \family default
9690  (3.3)・
9691 \family typewriter
9692 flushrt
9693 \family default
9694  (3.4).これらは,
9695 \begin_inset Flex MenuItem
9696 status collapsed
9697
9698 \begin_layout Plain Layout
9699 文書\SpecialChar menuseparator
9700 設定
9701 \end_layout
9702
9703 \end_inset
9704
9705 にある,
9706 \family sans
9707 クラスオプション
9708 \family default
9709
9710 \family sans
9711 任意設定
9712 \family default
9713 ボックスに入力してください.
9714 \end_layout
9715
9716 \begin_layout Subsubsection
9717 動作するが,若干説明が必要なもの
9718 \end_layout
9719
9720 \begin_layout Standard
9721 以下のコマンドは動作しますが,若干の説明が必要です.
9722 \end_layout
9723
9724 \begin_layout Itemize
9725 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9726 プリアンブルに入れることができます.
9727 \family typewriter
9728
9729 \backslash
9730 received
9731 \family default
9732
9733 \family typewriter
9734
9735 \backslash
9736 revised
9737 \family default
9738
9739 \family typewriter
9740
9741 \backslash
9742 accepted
9743 \family default
9744
9745 \family typewriter
9746
9747 \backslash
9748 ccc
9749 \family default
9750
9751 \family typewriter
9752 cpright
9753 \family default
9754 (すべて 2.1.3).
9755 \end_layout
9756
9757 \begin_layout Itemize
9758 以下の項目は,\SpecialChar LaTeX
9759 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9760 \family typewriter
9761
9762 \backslash
9763 slugcomment
9764 \family default
9765 (2.1.4)・
9766 \family typewriter
9767
9768 \backslash
9769 shorttitle
9770 \family default
9771 (2.1.5)・
9772 \family typewriter
9773
9774 \backslash
9775 shortauthors
9776 \family default
9777 (2.1.5).
9778 \end_layout
9779
9780 \begin_layout Itemize
9781
9782 \family typewriter
9783
9784 \backslash
9785 email
9786 \family default
9787 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9788 コードを使用してください.
9789 \end_layout
9790
9791 \begin_layout Itemize
9792
9793 \family typewriter
9794
9795 \backslash
9796 and
9797 \family default
9798 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9799 \end_layout
9800
9801 \begin_layout Itemize
9802
9803 \family typewriter
9804
9805 \backslash
9806 notetoeditor
9807 \family default
9808 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9809 コードを使用してください.
9810 \end_layout
9811
9812 \begin_layout Itemize
9813
9814 \family typewriter
9815
9816 \backslash
9817 placetable
9818 \family default
9819 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9820 \end_layout
9821
9822 \begin_layout Itemize
9823
9824 \family typewriter
9825
9826 \backslash
9827 placefigure
9828 \family default
9829 (2.8)—
9830 \family typewriter
9831
9832 \backslash
9833 placetable
9834 \family default
9835 と同様.
9836 \end_layout
9837
9838 \begin_layout Itemize
9839
9840 \family typewriter
9841
9842 \backslash
9843 acknowledgements
9844 \family default
9845 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9846 \end_layout
9847
9848 \begin_layout Itemize
9849
9850 \family typewriter
9851
9852 \backslash
9853 appendix
9854 \family default
9855 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9856 \end_layout
9857
9858 \begin_layout Itemize
9859
9860 \family typewriter
9861
9862 \backslash
9863 figcaption
9864 \family default
9865 (2.14.2)―文章のはじめにカーソルを置いて
9866 \begin_inset Flex MenuItem
9867 status collapsed
9868
9869 \begin_layout Plain Layout
9870 挿入\SpecialChar menuseparator
9871 短縮タイトル
9872 \end_layout
9873
9874 \end_inset
9875
9876 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9877 \family typewriter
9878
9879 \backslash
9880 figcaption
9881 \family default
9882 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9883 \end_layout
9884
9885 \begin_layout Itemize
9886
9887 \family typewriter
9888
9889 \backslash
9890 objectname
9891 \family default
9892 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9893 \family typewriter
9894
9895 \backslash
9896 figcaption
9897 \family default
9898 と同様.
9899 \end_layout
9900
9901 \begin_layout Itemize
9902
9903 \family typewriter
9904
9905 \backslash
9906 dataset
9907 \family default
9908 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9909 \family typewriter
9910
9911 \backslash
9912 figcaption
9913 \family default
9914 と同様.
9915 \end_layout
9916
9917 \begin_layout Subsubsection
9918 実装されていないため,\SpecialChar TeX
9919 コードを使用するもの
9920 \end_layout
9921
9922 \begin_layout Standard
9923
9924 \family typewriter
9925
9926 \backslash
9927 eqnum
9928 \family default
9929 (2.12)・
9930 \family typewriter
9931
9932 \backslash
9933 setcounter{equation}
9934 \family default
9935 (2.12)・学術誌名略語(2.12.4)・
9936 \family typewriter
9937
9938 \backslash
9939 figurenum
9940 \family default
9941 (2.14.1)・
9942 \family typewriter
9943
9944 \backslash
9945 epsscale
9946 \family default
9947 (2.14.1)・
9948 \family typewriter
9949
9950 \backslash
9951 plotone
9952 \family default
9953 (2.14.1)・
9954 \family typewriter
9955
9956 \backslash
9957 plottwo
9958 \family default
9959 (2.14.1)・
9960 \family typewriter
9961
9962 \backslash
9963 tablenum
9964 \family default
9965 (2.15.4)・
9966 \family typewriter
9967
9968 \backslash
9969 tableline
9970 \family default
9971 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9972 の方法は使わないでください)・
9973 \family typewriter
9974
9975 \backslash
9976 tablenotemark
9977 \family default
9978 (2.15.5)・
9979 \family typewriter
9980
9981 \backslash
9982 tablenotetext
9983 \family default
9984 (2.15.5)・補遺(2.17)の大半
9985 \family typewriter
9986
9987 \backslash
9988 objectname
9989 \family default
9990
9991 \family typewriter
9992
9993 \backslash
9994 dataset
9995 \family default
9996
9997 \family typewriter
9998
9999 \backslash
10000 url
10001 \family default
10002
10003 \family typewriter
10004
10005 \backslash
10006 email
10007 \family default
10008 を除く.上記参照)・
10009 \family typewriter
10010
10011 \backslash
10012 singlespace
10013 \family default
10014 (3.1)・
10015 \family typewriter
10016
10017 \backslash
10018 doublespace
10019 \family default
10020 (3.1)・
10021 \family typewriter
10022
10023 \backslash
10024 onecolumn
10025 \family default
10026 (3.2)・
10027 \family typewriter
10028
10029 \backslash
10030 twocolumn
10031 \family default
10032 (3.2)
10033 \end_layout
10034
10035 \begin_layout Subsubsection
10036 実装できないもの
10037 \end_layout
10038
10039 \begin_layout Standard
10040 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10041 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10042 \begin_inset Flex MenuItem
10043 status collapsed
10044
10045 \begin_layout Plain Layout
10046 挿入\SpecialChar menuseparator
10047 ファイル
10048 \begin_inset Formula $\text{\textipa{}}$
10049 \end_inset
10050
10051 \SpecialChar menuseparator
10052 子文書
10053 \end_layout
10054
10055 \end_inset
10056
10057 を使用して,\SpecialChar LyX
10058 ファイルに読み込むことを推奨します.この実例は,
10059 \family typewriter
10060 aas_sample.lyx
10061 \family default
10062 ファイルをご参照ください.
10063 \end_layout
10064
10065 \begin_layout Subsection
10066 FAQとヒントと技とその他の考察
10067 \end_layout
10068
10069 \begin_layout Subsubsection
10070 \SpecialChar LyX
10071 をAAS\SpecialChar TeX
10072 と協調させる
10073 \end_layout
10074
10075 \begin_layout Standard
10076 \SpecialChar LyX
10077 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10078 \end_layout
10079
10080 \begin_layout Enumerate
10081 \SpecialChar LaTeX
10082 が,AAS\SpecialChar TeX
10083 を検出できることを確認してください.AAS\SpecialChar TeX
10084 頒布版に含まれる
10085 \family typewriter
10086 sample.tex
10087 \family default
10088 (あるいは
10089 \family typewriter
10090 table.tex
10091 \family default
10092 でも可)を,\SpecialChar LaTeX
10093 やAAS\SpecialChar TeX
10094 とまったく関係のないディレクトリにコピーして,
10095 \family typewriter
10096 sample.tex
10097 \family default
10098 を\SpecialChar LaTeX
10099 にかけてください.
10100 \end_layout
10101
10102 \begin_layout Enumerate
10103
10104 \family typewriter
10105 aastex.layout
10106 \family default
10107 が,\SpecialChar LyX
10108
10109 \family typewriter
10110 layouts
10111 \family default
10112 フォルダにあることを確認してください.
10113 \end_layout
10114
10115 \begin_layout Enumerate
10116 \SpecialChar LyX
10117 中から
10118 \family sans
10119 ツール\SpecialChar menuseparator
10120 環境構成
10121 \family default
10122 を再度実行し,\SpecialChar LyX
10123 を再起動してください.
10124 \end_layout
10125
10126 \begin_layout Enumerate
10127 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10128 が,
10129 \family sans
10130 文書\SpecialChar menuseparator
10131 設定
10132 \family default
10133 のクラス一覧に表示されていますか?
10134 \end_layout
10135
10136 \begin_layout Standard
10137 既存のAAS\SpecialChar TeX
10138 文書を処理する際に,AAS\SpecialChar TeX
10139 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10140 れば,正しい導入が行われていません.
10141 \end_layout
10142
10143 \begin_layout Subsubsection
10144 表を処理する際の\SpecialChar LaTeX
10145 エラー
10146 \end_layout
10147
10148 \begin_layout Standard
10149 既定では,\SpecialChar LyX
10150 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10151 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10152 クして,
10153 \family sans
10154 編集\SpecialChar menuseparator
10155 段落設定
10156 \family default
10157 を選択し,
10158 \family sans
10159 配置
10160 \family default
10161
10162 \family sans
10163 両端揃え
10164 \family default
10165 に設定してください.私のところではこれで解決しました.
10166 \end_layout
10167
10168 \begin_layout Subsubsection
10169 書誌情報
10170 \end_layout
10171
10172 \begin_layout Standard
10173 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10174 ースを
10175 \emph on
10176 入れない
10177 \emph default
10178 ようにしてください.たとえば,
10179 \family typewriter
10180 Ressler(1992)
10181 \family default
10182 はいいですが,
10183 \family typewriter
10184 Ressler (1992)
10185 \family default
10186 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10187 \family sans
10188 書誌情報
10189 \family default
10190 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10191 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10192 \end_layout
10193
10194 \begin_layout Subsubsection
10195 EPSファイルの読み込み
10196 \end_layout
10197
10198 \begin_layout Standard
10199 AAS\SpecialChar TeX
10200 には,自前の図関連コマンド(たとえば
10201 \family typewriter
10202
10203 \backslash
10204 plotone
10205 \family default
10206 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10207 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10208 コードで
10209 \family typewriter
10210
10211 \backslash
10212 plotone
10213 \family default
10214 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10215 は,
10216 \family typewriter
10217
10218 \backslash
10219 usepackage{graphics}
10220 \family default
10221 コマンドを\SpecialChar LaTeX
10222 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10223 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10224 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10225 \end_layout
10226
10227 \begin_layout Subsubsection
10228 可能だったが,実装しなかったもの
10229 \end_layout
10230
10231 \begin_layout Standard
10232 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10233 ウィンドウ中
10234 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10235 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10236 \end_layout
10237
10238 \begin_layout Subsection
10239 最後に
10240 \end_layout
10241
10242 \begin_layout Standard
10243 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10244 \begin_inset space \thinspace{}
10245 \end_inset
10246
10247 %は\SpecialChar LyX
10248 上で為されました.残りの2
10249 \begin_inset space \thinspace{}
10250 \end_inset
10251
10252 %が,\SpecialChar LaTeX
10253 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10254 て発表してください!
10255 \end_layout
10256
10257 \begin_layout Section
10258 AMS \SpecialChar LaTeX
10259
10260 \end_layout
10261
10262 \begin_layout Standard
10263
10264 \noun on
10265 David Johnson
10266 \noun default
10267 文 
10268 \noun on
10269 Richard Heck
10270 \noun default
10271 改訂
10272 \begin_inset VSpace bigskip
10273 \end_inset
10274
10275
10276 \end_layout
10277
10278 \begin_layout Standard
10279 AMS \SpecialChar LaTeX
10280 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10281 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10282 出力中の一行を変更する
10283 必要があるだけです).AMSの説明書は,ウェブWeb上の
10284 \begin_inset Flex URL
10285 status open
10286
10287 \begin_layout Plain Layout
10288
10289 http://www.ams.org
10290 \end_layout
10291
10292 \end_inset
10293
10294 か,FTPで
10295 \begin_inset Flex URL
10296 status open
10297
10298 \begin_layout Plain Layout
10299
10300 ftp://ftp.ams.org/pub/tex/amslatex/
10301 \end_layout
10302
10303 \end_inset
10304
10305 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10306 \end_layout
10307
10308 \begin_layout Standard
10309 基本となるAMS \SpecialChar LaTeX
10310 レイアウトには,以下の二つがあります.
10311 \end_layout
10312
10313 \begin_layout Itemize
10314 amsart:標準のAMS article書式.
10315 \end_layout
10316
10317 \begin_layout Itemize
10318 amsbook:標準のAMS book(実際はモノグラフ)書式.
10319 \end_layout
10320
10321 \begin_layout Standard
10322 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10323 m」環境は,何一つ含まれていません.これらは,代わりに
10324 \begin_inset Flex Code
10325 status collapsed
10326
10327 \begin_layout Plain Layout
10328 定理(AMS)
10329 \end_layout
10330
10331 \end_inset
10332
10333 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10334 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10335 \begin_inset Flex Code
10336 status collapsed
10337
10338 \begin_layout Plain Layout
10339 定理(AMS拡張)
10340 \end_layout
10341
10342 \end_inset
10343
10344 モジュールがあり,これは手動で読み込む必要があります.
10345 \end_layout
10346
10347 \begin_layout Standard
10348 既定では,定理類は,文書を通して連番が振られますが,これは
10349 \begin_inset Flex Code
10350 status collapsed
10351
10352 \begin_layout Plain Layout
10353 定理(節毎連番)
10354 \end_layout
10355
10356 \end_inset
10357
10358 モジュールを読み込めば変更することができ,
10359 \begin_inset Flex Code
10360 status collapsed
10361
10362 \begin_layout Plain Layout
10363 book (AMS)
10364 \end_layout
10365
10366 \end_inset
10367
10368 を使用している場合には
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373 定理(章毎連番)
10374 \end_layout
10375
10376 \end_inset
10377
10378 を用いても変更することができます.これらを用いると,出力は
10379 \begin_inset Formula $n.m$
10380 \end_inset
10381
10382 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
10383 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
10384 \emph on
10385 のみ
10386 \emph default
10387 が欲しい場合には,
10388 \begin_inset Flex Code
10389 status collapsed
10390
10391 \begin_layout Plain Layout
10392 定理(連番なし)
10393 \end_layout
10394
10395 \end_inset
10396
10397 モジュールを用います.
10398 \end_layout
10399
10400 \begin_layout Standard
10401 これらのモジュールは,AMSクラスで使用する
10402 \emph on
10403 必要はない
10404 \emph default
10405 ことに注意してください.
10406 \begin_inset Flex Code
10407 status collapsed
10408
10409 \begin_layout Plain Layout
10410 定理(AMS)
10411 \end_layout
10412
10413 \end_inset
10414
10415 モジュールや上述の他のモジュールは,他のクラス,たとえば
10416 \begin_inset Flex Code
10417 status collapsed
10418
10419 \begin_layout Plain Layout
10420 article
10421 \end_layout
10422
10423 \end_inset
10424
10425
10426 \begin_inset Flex Code
10427 status collapsed
10428
10429 \begin_layout Plain Layout
10430 report
10431 \end_layout
10432
10433 \end_inset
10434
10435
10436 \begin_inset Flex Code
10437 status collapsed
10438
10439 \begin_layout Plain Layout
10440 book (KOMA-script)
10441 \end_layout
10442
10443 \end_inset
10444
10445 などで問題なく使用することができます.
10446 \end_layout
10447
10448 \begin_layout Subsection
10449 これらのレイアウトが提供するもの
10450 \end_layout
10451
10452 \begin_layout Standard
10453 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
10454 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
10455 す.しかし,AMSは,\SpecialChar LyX
10456 で利用可能になっている環境のみを使用することを推奨しています.
10457 \end_layout
10458
10459 \begin_layout Standard
10460 \begin_inset Flex Code
10461 status collapsed
10462
10463 \begin_layout Plain Layout
10464 article (AMS)
10465 \end_layout
10466
10467 \end_inset
10468
10469
10470 \begin_inset Flex Code
10471 status collapsed
10472
10473 \begin_layout Plain Layout
10474 book (AMS)
10475 \end_layout
10476
10477 \end_inset
10478
10479 には,——
10480 \begin_inset space ~
10481 \end_inset
10482
10483
10484 \begin_inset Flex Noun
10485 status collapsed
10486
10487 \begin_layout Plain Layout
10488
10489 \end_layout
10490
10491 \end_inset
10492
10493
10494 \begin_inset Flex Noun
10495 status collapsed
10496
10497 \begin_layout Plain Layout
10498 書誌情報
10499 \end_layout
10500
10501 \end_inset
10502
10503
10504 \begin_inset Flex Noun
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 タイトル
10509 \end_layout
10510
10511 \end_inset
10512
10513
10514 \begin_inset Flex Noun
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 著者
10519 \end_layout
10520
10521 \end_inset
10522
10523
10524 \begin_inset Flex Noun
10525 status collapsed
10526
10527 \begin_layout Plain Layout
10528 日付
10529 \end_layout
10530
10531 \end_inset
10532
10533 のような標準環境の他に
10534 \begin_inset space ~
10535 \end_inset
10536
10537 ——
10538 \begin_inset space ~
10539 \end_inset
10540
10541 以下の環境があります.
10542 \end_layout
10543
10544 \begin_layout Description
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 URL 著者のウェブアドレス.任意.
10558 \end_layout
10559
10560 \begin_layout Description
10561 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10562 \end_layout
10563
10564 \begin_layout Description
10565 分野分類 
10566 \emph on
10567 Mathematical Reviews
10568 \emph default
10569 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10570 す.
10571 \end_layout
10572
10573 \begin_layout Description
10574 謝辞
10575 \end_layout
10576
10577 \begin_layout Description
10578 献呈
10579 \end_layout
10580
10581 \begin_layout Description
10582 翻訳者
10583 \end_layout
10584
10585 \begin_layout Standard
10586 以下の環境は,
10587 \begin_inset Flex Code
10588 status collapsed
10589
10590 \begin_layout Plain Layout
10591 定理
10592 \end_layout
10593
10594 \end_inset
10595
10596 モジュールと
10597 \begin_inset Flex Code
10598 status collapsed
10599
10600 \begin_layout Plain Layout
10601 定理(AMS)
10602 \end_layout
10603
10604 \end_inset
10605
10606 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10607 \begin_inset Flex Code
10608 status collapsed
10609
10610 \begin_layout Plain Layout
10611 定理(連番なし)
10612 \end_layout
10613
10614 \end_inset
10615
10616 モジュールでは,同環境の星付き版だけが提供されます.
10617 \end_layout
10618
10619 \begin_layout Theorem
10620 これは,通常,得られた主要な結果を叙述するのに使用されます.
10621 \end_layout
10622
10623 \begin_layout Corollary*
10624 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10625 \end_layout
10626
10627 \begin_layout Lemma
10628 他の叙述を証明するために必要とされる,比較的小さな結果です.
10629 \end_layout
10630
10631 \begin_layout Proposition
10632 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10633 \end_layout
10634
10635 \begin_layout Conjecture
10636 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10637 \end_layout
10638
10639 \begin_layout Definition*
10640 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10641 \end_layout
10642
10643 \begin_layout Problem
10644 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10645 \end_layout
10646
10647 \begin_layout Exercise*
10648 この環境の説明を記述せよ.
10649 \end_layout
10650
10651 \begin_layout Note
10652 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10653 \end_layout
10654
10655 \begin_layout Claim*
10656 より大きな結果の証明を与える途中で,しばしば用いられます.
10657 \end_layout
10658
10659 \begin_layout Case
10660 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10661 \end_layout
10662
10663 \begin_layout Case
10664 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10665 \end_layout
10666
10667 \begin_layout Proof
10668 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10669 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10670 \emph on
10671 ユーザーの手引き
10672 \emph default
10673
10674 \emph on
10675 環境を入れ子にする
10676 \emph default
10677 の節をご覧ください.
10678 \end_layout
10679
10680 \begin_layout Standard
10681 そして,以下は
10682 \begin_inset Flex Code
10683 status collapsed
10684
10685 \begin_layout Plain Layout
10686 定理(AMS拡張)
10687 \end_layout
10688
10689 \end_inset
10690
10691 で提供されるものです.
10692 \end_layout
10693
10694 \begin_layout Criterion*
10695 必要とされる条件です.
10696 \end_layout
10697
10698 \begin_layout Algorithm*
10699 使用する一般的手順です.
10700 \end_layout
10701
10702 \begin_layout Axiom*
10703 議論されている系内部で真と仮定される性質や命題です.
10704 \end_layout
10705
10706 \begin_layout Condition*
10707 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10708 \end_layout
10709
10710 \begin_layout Note*
10711 注記と同様です.
10712 \end_layout
10713
10714 \begin_layout Notation*
10715 表記法の説明に用いられます.
10716 \end_layout
10717
10718 \begin_layout Summary
10719 本当に説明する必要がありますか?
10720 \end_layout
10721
10722 \begin_layout Acknowledgement*
10723 謝辞(acknowledgement)です.
10724 \end_layout
10725
10726 \begin_layout Conclusion*
10727 長い議論の終わりに時々用いられます.
10728 \end_layout
10729
10730 \begin_layout Fact
10731 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10732 \end_layout
10733
10734 \begin_layout Standard
10735 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10736 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10737 る必要があります.
10738 \end_layout
10739
10740 \begin_layout Section
10741 AGU各誌(
10742 \family sans
10743 aguplus)
10744 \end_layout
10745
10746 \begin_layout Standard
10747
10748 \noun on
10749 Martin Vermeer
10750 \noun default
10751
10752 \end_layout
10753
10754 \begin_layout Subsection
10755 概要
10756 \end_layout
10757
10758 \begin_layout Standard
10759 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
10760 AGUplusの両方(これらは
10761 \begin_inset Flex URL
10762 status collapsed
10763
10764 \begin_layout Plain Layout
10765
10766 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10767 \end_layout
10768
10769 \end_inset
10770
10771 にあります)が導入されていることが必要です.
10772 \end_layout
10773
10774 \begin_layout Subsection
10775 新しいスタイル
10776 \end_layout
10777
10778 \begin_layout Standard
10779
10780 \family sans
10781 段落
10782 \family default
10783 および
10784 \family sans
10785 段落*
10786 \family default
10787 は,定義し直されています.\SpecialChar LyX
10788 の画面では,依然として
10789 \family sans
10790 段落
10791 \family default
10792
10793 \family sans
10794 段落*
10795 \family default
10796 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
10797 の対応物は,
10798 \family sans
10799 Subsubsubsection
10800 \family default
10801
10802 \family sans
10803 Subsubsubsection*
10804 \family default
10805 です.
10806 \end_layout
10807
10808 \begin_layout Standard
10809 新しく定義されたスタイルには,
10810 \family sans
10811 左ヘッダ
10812 \family default
10813
10814 \family sans
10815 右ヘッダ
10816 \family default
10817
10818 \family sans
10819 受理日
10820 \family default
10821
10822 \family sans
10823 改訂
10824 \family default
10825
10826 \family sans
10827 採択日
10828 \family default
10829
10830 \family sans
10831 CCC
10832 \family default
10833
10834 \family sans
10835 論文ID
10836 \family default
10837
10838 \family sans
10839 著者住所
10840 \family default
10841
10842 \family sans
10843 廃棄用コメント
10844 \family default
10845 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
10846 \end_layout
10847
10848 \begin_layout Standard
10849 おそらく,これはまだ恐ろしく不完全です.
10850 \end_layout
10851
10852 \begin_layout Subsection
10853 新しいフロート
10854 \end_layout
10855
10856 \begin_layout Standard
10857
10858 \family sans
10859 平面表(Planotable
10860 \family default
10861 )と
10862 \family sans
10863 挿絵
10864 \family default
10865 (Plate)が新しいフロートです.また,
10866 \family sans
10867 表キャプション
10868 \family default
10869 も付け加えられています.
10870 \end_layout
10871
10872 \begin_layout Subsection
10873 サポートされている学術誌
10874 \end_layout
10875
10876 \begin_layout Itemize
10877
10878 \emph on
10879 Journal of Geophysical Research
10880 \emph default
10881
10882 \family typewriter
10883 jgrga.layout
10884 \family default
10885  — Martin Vermeer
10886 \end_layout
10887
10888 \begin_layout Standard
10889 ここにあなたの作ったものを加えてください.難しくはありません.
10890 \family typewriter
10891 jgrga.layout
10892 \family default
10893 と 
10894 \family typewriter
10895 aguplus.inc
10896 \family default
10897 を用例として見てください.
10898 \end_layout
10899
10900 \begin_layout Subsection
10901 バグと注意すべきこと
10902 \end_layout
10903
10904 \begin_layout Standard
10905 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
10906 \end_layout
10907
10908 \begin_layout Enumerate
10909
10910 \emph on
10911 babelを無効にしてください.
10912 \emph default
10913 これは,
10914 \family sans
10915 ツール\SpecialChar menuseparator
10916 設定
10917 \family default
10918 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
10919 \emph on
10920 選ばないで下さい
10921 \emph default
10922 ).
10923 \end_layout
10924
10925 \begin_layout Enumerate
10926 使用文書の追加オプションフィールドに
10927 \family typewriter
10928 jgrga
10929 \family default
10930 と入力してください(すみません,これはバグです).
10931 \end_layout
10932
10933 \begin_layout Enumerate
10934 Bib\SpecialChar TeX
10935 差込枠の2番目のフィールドに
10936 \family sans
10937 agu
10938 \family default
10939 と入力して,書誌情報のスタイルに
10940 \family typewriter
10941 agu.bst
10942 \family default
10943 を使用していることを確認してください.標準スタイルはうまく動作しません.
10944 \end_layout
10945
10946 \begin_layout Section
10947 Broadway
10948 \end_layout
10949
10950 \begin_layout Standard
10951
10952 \noun on
10953 Garst Reese
10954 \noun default
10955
10956 \end_layout
10957
10958 \begin_layout Subsection
10959 はじめに
10960 \end_layout
10961
10962 \begin_layout Standard
10963 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10964 \end_layout
10965
10966 \begin_layout Subsection
10967 特別な問題
10968 \end_layout
10969
10970 \begin_layout Standard
10971 Hollywoodと同様です.
10972 \end_layout
10973
10974 \begin_layout Subsection
10975 特別の機能
10976 \end_layout
10977
10978 \begin_layout Standard
10979
10980 \family sans
10981 話者
10982 \family default
10983 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10984 \end_layout
10985
10986 \begin_layout Subsection
10987 用紙寸法と余白
10988 \end_layout
10989
10990 \begin_layout Standard
10991 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10992 \end_layout
10993
10994 \begin_layout Subsection
10995 環境
10996 \end_layout
10997
10998 \begin_layout Standard
10999 以下の環境を使うことができます.右に記してある
11000 \begin_inset Flex Ruby
11001 status collapsed
11002
11003 \begin_layout Plain Layout
11004
11005 \begin_inset Argument post:1
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 キー
11010 \end_layout
11011
11012 \end_inset
11013
11014
11015 \end_layout
11016
11017 \end_inset
11018
11019 割当ては,broadway.bindを使った場合のものです.
11020 \end_layout
11021
11022 \begin_layout Itemize
11023
11024 \family sans
11025 標準
11026 \begin_inset Newline newline
11027 \end_inset
11028
11029
11030 \family default
11031 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
11032 \end_layout
11033
11034 \begin_layout Itemize
11035
11036 \family sans
11037 ト書き
11038 \begin_inset space \hfill{}
11039 \end_inset
11040
11041 M-z n
11042 \begin_inset Newline newline
11043 \end_inset
11044
11045
11046 \family default
11047 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
11048 \end_layout
11049
11050 \begin_layout Itemize
11051
11052 \family sans
11053
11054 \begin_inset space \hfill{}
11055 \end_inset
11056
11057 M-z a
11058 \begin_inset Newline newline
11059 \end_inset
11060
11061
11062 \family default
11063 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
11064 \end_layout
11065
11066 \begin_layout Itemize
11067
11068 \family sans
11069 幕*
11070 \begin_inset space \hfill{}
11071 \end_inset
11072
11073 M-z S at
11074 \begin_inset Newline newline
11075 \end_inset
11076
11077
11078 \family default
11079 幕の副題です.単に中央揃えの文になります.
11080 \end_layout
11081
11082 \begin_layout Itemize
11083
11084 \family sans
11085 場面
11086 \begin_inset space \hfill{}
11087 \end_inset
11088
11089 M-z S-S
11090 \begin_inset Newline newline
11091 \end_inset
11092
11093
11094 \family default
11095 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
11096 \end_layout
11097
11098 \begin_layout Itemize
11099
11100 \family sans
11101 幕開きに:
11102 \begin_inset space \hfill{}
11103 \end_inset
11104
11105 M-z S-R
11106 \begin_inset Newline newline
11107 \end_inset
11108
11109
11110 \family default
11111 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
11112 \end_layout
11113
11114 \begin_layout Itemize
11115
11116 \family sans
11117 話者
11118 \begin_inset space \hfill{}
11119 \end_inset
11120
11121 M-z s
11122 \begin_inset Newline newline
11123 \end_inset
11124
11125
11126 \family default
11127 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
11128 \end_layout
11129
11130 \begin_layout Itemize
11131
11132 \family sans
11133 括弧付き
11134 \begin_inset space \hfill{}
11135 \end_inset
11136
11137 M-z p
11138 \begin_inset Newline newline
11139 \end_inset
11140
11141
11142 \family default
11143 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
11144 \family sans
11145 対話
11146 \family default
11147 の中だけで使用されます. 
11148 \end_layout
11149
11150 \begin_layout Itemize
11151
11152 \family sans
11153 対話
11154 \begin_inset space \hfill{}
11155 \end_inset
11156
11157 M-z d
11158 \begin_inset Newline newline
11159 \end_inset
11160
11161
11162 \family default
11163 話者の言う内容.
11164 \end_layout
11165
11166 \begin_layout Itemize
11167
11168 \family sans
11169 幕切れ
11170 \begin_inset space \hfill{}
11171 \end_inset
11172
11173 M-z S-C
11174 \begin_inset Newline newline
11175 \end_inset
11176
11177
11178 \family default
11179 幕が降ります.
11180 \end_layout
11181
11182 \begin_layout Itemize
11183
11184 \family sans
11185 タイトル
11186 \begin_inset space \hfill{}
11187 \end_inset
11188
11189 M-z S-T
11190 \end_layout
11191
11192 \begin_layout Itemize
11193
11194 \family sans
11195 著者
11196 \begin_inset space \hfill{}
11197 \end_inset
11198
11199 M-z S-A
11200 \end_layout
11201
11202 \begin_layout Itemize
11203
11204 \family sans
11205 右寄せ住所
11206 \begin_inset space \hfill{}
11207 \end_inset
11208
11209 M-z r
11210 \end_layout
11211
11212 \begin_layout Section
11213 Dinbrief
11214 \end_layout
11215
11216 \begin_layout Standard
11217 文書クラス
11218 \family sans
11219 dinbrief
11220 \family default
11221 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
11222 \family typewriter
11223 .../lyx/share/templates
11224 \family default
11225 にあるので,それを土台として使用してください.
11226 \end_layout
11227
11228 \begin_layout Section
11229 EGS各誌
11230 \family sans
11231 (egs)
11232 \end_layout
11233
11234 \begin_layout Standard
11235
11236 \noun on
11237 Martin Vermeer
11238 \noun default
11239
11240 \end_layout
11241
11242 \begin_layout Subsection
11243 概要
11244 \end_layout
11245
11246 \begin_layout Standard
11247 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
11248 \family typewriter
11249 egs.cls
11250 \family default
11251 は,EGSのウェブサイト
11252 \begin_inset Flex URL
11253 status collapsed
11254
11255 \begin_layout Plain Layout
11256
11257 http://www.copernicus.org/
11258 \end_layout
11259
11260 \end_inset
11261
11262 からダウンロードできます.
11263 \end_layout
11264
11265 \begin_layout Subsection
11266 新しいスタイル
11267 \end_layout
11268
11269 \begin_layout Standard
11270 新しいスタイルとして,
11271 \family sans
11272 右寄せ住所
11273 \family default
11274
11275 \family sans
11276 \SpecialChar LaTeX
11277 タイトル
11278 \family default
11279
11280 \family sans
11281 所属
11282 \family default
11283
11284 \family sans
11285 学術誌名
11286 \family default
11287
11288 \family sans
11289 原稿番号
11290 \family default
11291
11292 \family sans
11293 筆頭著者
11294 \family default
11295
11296 \family sans
11297 受理日
11298 \family default
11299
11300 \family sans
11301 採択日
11302 \family default
11303
11304 \family sans
11305 オフセット
11306 \family default
11307 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
11308 \family typewriter
11309 std*.inc
11310 \family default
11311 ファイルを読み込む形に変えた方が便利になると思われます.
11312 \end_layout
11313
11314 \begin_layout Section
11315 Elsevier各誌
11316 \end_layout
11317
11318 \begin_layout Standard
11319 \SpecialChar LyX
11320 ひな型ファイルの
11321 \family typewriter
11322 elsarticle.lyx
11323 \family default
11324 を参照してください.必要な情報は全てそこにあります.
11325 \end_layout
11326
11327 \begin_layout Section
11328 Foils別名Foil\SpecialChar TeX
11329
11330 \begin_inset CommandInset label
11331 LatexCommand label
11332 name "sec:foiltex"
11333
11334 \end_inset
11335
11336
11337 \end_layout
11338
11339 \begin_layout Standard
11340
11341 \noun on
11342 Allan Rae
11343 \noun default
11344
11345 \end_layout
11346
11347 \begin_layout Subsection
11348 はじめに
11349 \end_layout
11350
11351 \begin_layout Standard
11352 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11353 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11354 ・seminar・b
11355 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11356 \end_layout
11357
11358 \begin_layout Standard
11359 誤解のないように,わかりやすく明確に,もう一度言っておきます.
11360 \end_layout
11361
11362 \begin_layout Standard
11363 \begin_inset VSpace bigskip
11364 \end_inset
11365
11366
11367 \end_layout
11368
11369 \begin_layout Standard
11370 \align center
11371
11372 \size large
11373 本節は「
11374 \family sans
11375 FoilTeX
11376 \family default
11377 」クラス
11378 \emph on
11379 のみの
11380 \emph default
11381 解説を行います.
11382 \end_layout
11383
11384 \begin_layout Standard
11385 \begin_inset VSpace bigskip
11386 \end_inset
11387
11388
11389 \end_layout
11390
11391 \begin_layout Standard
11392
11393 \family sans
11394 transparencies (slides)
11395 \family default
11396 」の解説をお探しであれば,第
11397 \begin_inset CommandInset ref
11398 LatexCommand ref
11399 reference "sec:slitex"
11400
11401 \end_inset
11402
11403 節をご覧ください.お使いのコンピュータに
11404 \family sans
11405 foils
11406 \family default
11407 クラス
11408 \family sans
11409 FoilTeX
11410 \family default
11411 が導入されていなければ,
11412 \family sans
11413 foils
11414 \family default
11415 ほど良くはありませんが,おそらく
11416 \family sans
11417 slides
11418 \family default
11419 クラスを使わざるをえないでしょう.
11420 \end_layout
11421
11422 \begin_layout Standard
11423
11424 \family sans
11425 foils
11426 \family default
11427 クラスは,\SpecialChar LaTeX2e
11428 の一部として含まれている\SpecialChar LaTeX
11429 クラスファイル
11430 \family sans
11431 foils.cls
11432 \family default
11433 の第2.1版とともに使われるように設計されています.
11434 \end_layout
11435
11436 \begin_layout Subsection
11437 最初の一歩
11438 \end_layout
11439
11440 \begin_layout Standard
11441 いうまでもなく,この文書クラスを使うには,
11442 \family sans
11443 文書\SpecialChar menuseparator
11444 設定\SpecialChar menuseparator
11445 文書クラス
11446 \family default
11447 メニューの
11448 \family sans
11449 文書クラス
11450 \family default
11451 ドロップダウンで「
11452 \family sans
11453 FoilTeX
11454 \family default
11455 」を選択する必要があります.また,
11456 \family sans
11457 文書設定
11458 \family default
11459 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11460 \end_layout
11461
11462 \begin_layout Itemize
11463
11464 \family sans
11465 文書設定
11466 \family default
11467 ダイアログ中の,
11468 \family sans
11469 両面文書
11470 \family default
11471 オプションと
11472 \family sans
11473 二段組文書
11474 \family default
11475 オプションは変更しないでください.これらは 
11476 \family sans
11477 foils
11478 \family default
11479 クラスでは無視されます.
11480 \end_layout
11481
11482 \begin_layout Itemize
11483 既定のフォント寸法は20ptであり,17
11484 \begin_inset space \thinspace{}
11485 \end_inset
11486
11487 pt・25
11488 \begin_inset space \thinspace{}
11489 \end_inset
11490
11491 pt・30
11492 \begin_inset space \thinspace{}
11493 \end_inset
11494
11495 ptを選択することも可能です.
11496 \end_layout
11497
11498 \begin_layout Itemize
11499 既定のフォントは
11500 \family sans
11501 sans
11502 \family default
11503  
11504 \family sans
11505 serif
11506 \family default
11507 ですが,数式ではすべて,通常のローマン体が使用されます.
11508 \end_layout
11509
11510 \begin_layout Itemize
11511 Foil\SpecialChar TeX
11512 は,35
11513 \begin_inset space \thinspace{}
11514 \end_inset
11515
11516 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11517 \end_layout
11518
11519 \begin_layout Itemize
11520
11521 \family sans
11522 フロートの配置
11523 \family default
11524 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11525 \end_layout
11526
11527 \begin_layout Itemize
11528 このクラスの
11529 \family sans
11530 ページレイアウト
11531 \family default
11532 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11533 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11534 \begin_inset CommandInset ref
11535 LatexCommand ref
11536 reference "sec:foilfoot"
11537
11538 \end_inset
11539
11540 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11541 \emph on
11542 つねに
11543 \emph default
11544 付けられず,(ロゴが定義されていれば)ロゴは,
11545 \emph on
11546 つねに
11547 \emph default
11548 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11549 \end_layout
11550
11551 \begin_deeper
11552 \begin_layout Labeling
11553 \labelwidthstring MMMMMMM
11554
11555 \family sans
11556 \series bold
11557 empty
11558 \family default
11559 \series default
11560  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11561 \end_layout
11562
11563 \begin_layout Labeling
11564 \labelwidthstring MMMMMMM
11565
11566 \family sans
11567 \series bold
11568 plain
11569 \family default
11570 \series default
11571  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11572 \end_layout
11573
11574 \begin_layout Labeling
11575 \labelwidthstring MMMMMMM
11576
11577 \series bold
11578 foilheadings
11579 \series default
11580  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11581 \end_layout
11582
11583 \begin_layout Labeling
11584 \labelwidthstring MMMMMMM
11585
11586 \series bold
11587 fancy
11588 \series default
11589  これは
11590 \family sans
11591 fancyheadings
11592 \family default
11593 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11594 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11595 \end_layout
11596
11597 \end_deeper
11598 \begin_layout Subsubsection
11599 任意設定クラスオプション
11600 \end_layout
11601
11602 \begin_layout Standard
11603 以下のオプションは
11604 \family sans
11605 文書設定
11606 \family default
11607 ダイアログの任意設定クラスオプションボックスで使うことができます.
11608 \end_layout
11609
11610 \begin_layout Labeling
11611 \labelwidthstring MMMMMMx
11612
11613 \series bold
11614 35mmSlide
11615 \series default
11616  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11617 \begin_inset space \space{}
11618 \end_inset
11619
11620 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11621 \end_layout
11622
11623 \begin_layout Labeling
11624 \labelwidthstring MMMMMMx
11625
11626 \series bold
11627 headrule
11628 \series default
11629  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11630 \end_layout
11631
11632 \begin_layout Labeling
11633 \labelwidthstring MMMMMMx
11634
11635 \series bold
11636 footrule
11637 \series default
11638  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11639 \end_layout
11640
11641 \begin_layout Labeling
11642 \labelwidthstring MMMMMMx
11643
11644 \series bold
11645 dvips
11646 \series default
11647  これは,新規
11648 \family sans
11649 foils
11650 \family default
11651 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11652 に指示します.
11653 \end_layout
11654
11655 \begin_layout Labeling
11656 \labelwidthstring MMMMMMx
11657
11658 \series bold
11659 landscape
11660 \series default
11661  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11662 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11663 \family sans
11664 Foilhead
11665 \family default
11666 環境と
11667 \family sans
11668 Rotatefoilhead
11669 \family default
11670 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11671 \end_layout
11672
11673 \begin_layout Labeling
11674 \labelwidthstring MMMMMMx
11675
11676 \series bold
11677 leqno
11678 \series default
11679  数式番号を左側に付けます.
11680 \end_layout
11681
11682 \begin_layout Labeling
11683 \labelwidthstring MMMMMMx
11684
11685 \series bold
11686 fleqn
11687 \series default
11688  数式を左揃えにします.
11689 \end_layout
11690
11691 \begin_layout Subsection
11692 サポートされる環境
11693 \end_layout
11694
11695 \begin_layout Standard
11696 他のクラスで標準的にサポートされている環境は,
11697 \family sans
11698 foils
11699 \family default
11700 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11701 が提供している環境と,\SpecialChar LyX
11702 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11703 \end_layout
11704
11705 \begin_layout Standard
11706
11707 \family sans
11708 \begin_inset Flex Multiple Columns
11709 status open
11710
11711 \begin_layout Itemize
11712
11713 \family sans
11714 標準
11715 \end_layout
11716
11717 \begin_layout Itemize
11718
11719 \family sans
11720 箇条書き(記号)
11721 \end_layout
11722
11723 \begin_layout Itemize
11724
11725 \family sans
11726 箇条書き(連番)
11727 \end_layout
11728
11729 \begin_layout Itemize
11730
11731 \family sans
11732 箇条書き(記述)
11733 \end_layout
11734
11735 \begin_layout Itemize
11736
11737 \family sans
11738 箇条書き(リスト)
11739 \end_layout
11740
11741 \begin_layout Itemize
11742
11743 \family sans
11744 \SpecialChar LyX
11745 コード
11746 \end_layout
11747
11748 \begin_layout Itemize
11749
11750 \family sans
11751 詩句
11752 \end_layout
11753
11754 \begin_layout Itemize
11755
11756 \family sans
11757 引用(字下げあり)
11758 \end_layout
11759
11760 \begin_layout Itemize
11761
11762 \family sans
11763 引用(字下げなし)
11764 \end_layout
11765
11766 \begin_layout Itemize
11767
11768 \family sans
11769 タイトル
11770 \end_layout
11771
11772 \begin_layout Itemize
11773
11774 \family sans
11775 著者
11776 \end_layout
11777
11778 \begin_layout Itemize
11779
11780 \family sans
11781 日付
11782 \end_layout
11783
11784 \begin_layout Itemize
11785
11786 \family sans
11787 概要
11788 \end_layout
11789
11790 \begin_layout Itemize
11791
11792 \family sans
11793 書誌情報
11794 \end_layout
11795
11796 \begin_layout Itemize
11797
11798 \family sans
11799 住所
11800 \end_layout
11801
11802 \begin_layout Itemize
11803
11804 \family sans
11805 右寄せ住所
11806 \end_layout
11807
11808 \end_inset
11809
11810
11811 \end_layout
11812
11813 \begin_layout Standard
11814 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11815 \family sans
11816 Foil
11817 \family default
11818 \SpecialChar TeX
11819 は新しいスライドを始める以下のようなコマンドを備えています.
11820 \end_layout
11821
11822 \begin_layout Itemize
11823
11824 \family sans
11825 スライドタイトル(Foilhead)
11826 \end_layout
11827
11828 \begin_layout Itemize
11829
11830 \family sans
11831 横置きスライドタイトル(Rotatefoilhead)
11832 \end_layout
11833
11834 \begin_layout Standard
11835 \SpecialChar LyX
11836 は,以下のような,これらを若干修正した環境も用意しています.
11837 \end_layout
11838
11839 \begin_layout Itemize
11840
11841 \family sans
11842 スライドタイトル(小)(ShortFoilhead)
11843 \end_layout
11844
11845 \begin_layout Itemize
11846
11847 \family sans
11848 横置きスライドタイトル(小)(ShortRotatefoilhead)
11849 \end_layout
11850
11851 \begin_layout Standard
11852 これらの違いは次節で説明します.
11853 \end_layout
11854
11855 \begin_layout Standard
11856 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11857 \family sans
11858 Foil
11859 \family default
11860 \SpecialChar TeX
11861 はそれらを説明するのに便利な環境を幅広く用意しています.
11862 \end_layout
11863
11864 \begin_layout Standard
11865
11866 \family sans
11867 \begin_inset Flex Multiple Columns
11868 status open
11869
11870 \begin_layout Itemize
11871
11872 \family sans
11873 定理
11874 \end_layout
11875
11876 \begin_layout Itemize
11877
11878 \family sans
11879 補題
11880 \end_layout
11881
11882 \begin_layout Itemize
11883
11884 \family sans
11885
11886 \end_layout
11887
11888 \begin_layout Itemize
11889
11890 \family sans
11891 命題
11892 \end_layout
11893
11894 \begin_layout Itemize
11895
11896 \family sans
11897 定義
11898 \end_layout
11899
11900 \begin_layout Itemize
11901
11902 \family sans
11903 証明
11904 \end_layout
11905
11906 \begin_layout Itemize
11907
11908 \family sans
11909 定理*
11910 \end_layout
11911
11912 \begin_layout Itemize
11913
11914 \family sans
11915 補題*
11916 \end_layout
11917
11918 \begin_layout Itemize
11919
11920 \family sans
11921 系*
11922 \end_layout
11923
11924 \begin_layout Itemize
11925
11926 \family sans
11927 命題*
11928 \end_layout
11929
11930 \begin_layout Itemize
11931
11932 \family sans
11933 定義*
11934 \end_layout
11935
11936 \end_inset
11937
11938
11939 \end_layout
11940
11941 \begin_layout Standard
11942 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11943 で追加された以下の2つの箇条書き環境があります.
11944 \end_layout
11945
11946 \begin_layout Itemize
11947
11948 \family sans
11949 箇条書き(チック)
11950 \end_layout
11951
11952 \begin_layout Itemize
11953
11954 \family sans
11955 箇条書き(クロス)
11956 \end_layout
11957
11958 \begin_layout Standard
11959 Foil\SpecialChar TeX
11960 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11961 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11962 \end_layout
11963
11964 \begin_layout Standard
11965 この目的のためには,以下のコマンドスタイルがあります(
11966 \shape smallcaps
11967 Martin Vermeer).
11968 \end_layout
11969
11970 \begin_layout Standard
11971 \begin_inset Flex Multiple Columns
11972 status open
11973
11974 \begin_layout Itemize
11975
11976 \family sans
11977 グラフィックスロゴ
11978 \end_layout
11979
11980 \begin_layout Itemize
11981
11982 \family sans
11983 配布制限
11984 \end_layout
11985
11986 \begin_layout Itemize
11987
11988 \family sans
11989 右フッタ
11990 \end_layout
11991
11992 \begin_layout Itemize
11993
11994 \family sans
11995 右ヘッダ
11996 \end_layout
11997
11998 \begin_layout Itemize
11999
12000 \family sans
12001 左ヘッダ
12002 \end_layout
12003
12004 \begin_deeper
12005 \begin_layout Plain Layout
12006 \begin_inset space ~
12007 \end_inset
12008
12009
12010 \end_layout
12011
12012 \end_deeper
12013 \end_inset
12014
12015
12016 \end_layout
12017
12018 \begin_layout Standard
12019 Foil\SpecialChar TeX
12020 が提供しているコマンドで,\SpecialChar LyX
12021 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
12022 \begin_inset CommandInset ref
12023 LatexCommand ref
12024 reference "sec:unsuppfoils"
12025
12026 \end_inset
12027
12028 節で行います.
12029 \end_layout
12030
12031 \begin_layout Subsection
12032 スライドの組を作る
12033 \end_layout
12034
12035 \begin_layout Standard
12036 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
12037
12038 \family typewriter
12039 examples
12040 \family default
12041 フォルダにある
12042 \family typewriter
12043 Foils.lyx
12044 \family default
12045 ファイルをご覧ください.
12046 \end_layout
12047
12048 \begin_layout Subsubsection
12049 タイトルページを作る
12050 \end_layout
12051
12052 \begin_layout Standard
12053
12054 \family sans
12055 タイトル
12056 \family default
12057
12058 \family sans
12059 著者
12060 \family default
12061
12062 \family sans
12063 日付
12064 \family default
12065
12066 \family sans
12067 概要
12068 \family default
12069 環境のある他のクラスとは異なり,
12070 \family sans
12071 foils
12072 \family default
12073 は独立したページにタイトルを作成します.
12074 \family sans
12075 日付
12076 \family default
12077 環境を使用しなかった場合には,\SpecialChar LaTeX
12078 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
12079 \end_layout
12080
12081 \begin_layout Subsubsection
12082 新しいスライドを開始する
12083 \end_layout
12084
12085 \begin_layout Standard
12086 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
12087 \family sans
12088 スライドタイトル(Foilhead)
12089 \family default
12090
12091 \family sans
12092 スライドタイトル(小)(ShortFoilhead)
12093 \family default
12094 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
12095 \end_layout
12096
12097 \begin_layout Standard
12098 横向きのスライドは,
12099 \family sans
12100 横向きスライドタイトル(Rotatefoilhead)
12101 \family default
12102 か横向きスライドタイトル(小)(
12103 \family sans
12104 ShortRotatefoilhead)
12105 \family default
12106 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
12107 (約1.27cm)小さくなります.
12108 \end_layout
12109
12110 \begin_layout Standard
12111 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
12112 \family typewriter
12113 dvips
12114 \family default
12115 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
12116 \family typewriter
12117 dvips
12118 \family default
12119 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
12120 \end_layout
12121
12122 \begin_layout Subsubsection
12123 定理・補題・証明など
12124 \end_layout
12125
12126 \begin_layout Standard
12127 これらの環境の同じ型をお互いに直接続けて置くことはできません.通常の段落開業を用いると,2つの環境をマージしたかのように,前の環境が延長されるだけです.そうでは
12128 なく,いわゆる分離線を挿入する必要があります.
12129 \emph on
12130 ユーザーの手引き
12131 \emph default
12132 の「
12133 \emph on
12134 入れ子の分離
12135 \emph default
12136 」の節を参照してください.
12137 \end_layout
12138
12139 \begin_layout Subsubsection
12140 箇条書き
12141 \end_layout
12142
12143 \begin_layout Standard
12144 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
12145 他の箇条書き環境について詳しく知りたい場合には,
12146 \emph on
12147 ユーザーの手引き
12148 \emph default
12149 をご覧ください.記号による箇条書きを使用したい場合には,上記第
12150 \begin_inset CommandInset ref
12151 LatexCommand ref
12152 reference "sec:ブリット"
12153
12154 \end_inset
12155
12156 節の
12157 \family sans
12158 箇条書き(記号)ブリットの指定
12159 \family default
12160 の節も,読まれることが望ましいでしょう.
12161 \end_layout
12162
12163 \begin_layout Standard
12164
12165 \family sans
12166 箇条書き(チック)
12167 \family default
12168
12169 \family sans
12170 箇条書き(クロス)
12171 \family default
12172 の二つの新しい様式は,チェック印や
12173 \begin_inset Formula $\times$
12174 \end_inset
12175
12176 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
12177 \family sans
12178 箇条書き(記号)
12179 \family default
12180 の派生型を専用に用意したものに過ぎません.ただし,これらは,
12181 \family typewriter
12182 psnfss
12183 \family default
12184 パッケージが導入済であることを要求します.
12185 \end_layout
12186
12187 \begin_layout Subsubsection
12188 図と表
12189 \end_layout
12190
12191 \begin_layout Standard
12192 Foil\SpecialChar TeX
12193 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
12194 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
12195 \end_layout
12196
12197 \begin_layout Subsubsection
12198 ページヘッダおよびページフッタ
12199 \begin_inset CommandInset label
12200 LatexCommand label
12201 name "sec:foilfoot"
12202
12203 \end_inset
12204
12205
12206 \end_layout
12207
12208 \begin_layout Standard
12209
12210 \family sans
12211 グラフィックスロゴ
12212 \family default
12213
12214 \family sans
12215 配布制限
12216 \family default
12217 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
12218 \family sans
12219 Foil
12220 \family default
12221 \SpecialChar TeX
12222 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
12223 \end_layout
12224
12225 \begin_layout Standard
12226 スライドの残り三隅には,
12227 \family sans
12228 右フッタ
12229 \family default
12230 (既定ではページ番号)・
12231 \family sans
12232 右ヘッダ
12233 \family default
12234 (右上)・
12235 \family sans
12236 左ヘッダ
12237 \family default
12238 (左上)を使って文字を入れることができます.
12239 \end_layout
12240
12241 \begin_layout Subsection
12242 サポートされない 
12243 \family sans
12244 Foil
12245 \family default
12246 \SpecialChar TeX
12247 機能
12248 \begin_inset CommandInset label
12249 LatexCommand label
12250 name "sec:unsuppfoils"
12251
12252 \end_inset
12253
12254
12255 \end_layout
12256
12257 \begin_layout Standard
12258 以下で言及されているコマンドは,
12259 \family sans
12260 \SpecialChar LaTeX
12261
12262 \family default
12263 環境内で設定されるか,他の環境中の
12264 \family sans
12265 \SpecialChar TeX
12266 コード
12267 \family default
12268 として設定される必要があります.
12269 \end_layout
12270
12271 \begin_layout Subsubsection
12272 長さ
12273 \end_layout
12274
12275 \begin_layout Standard
12276 長さは,すべて
12277 \family typewriter
12278
12279 \backslash
12280 setlength{
12281 \family default
12282 \emph on
12283 長さ名
12284 \family typewriter
12285 \emph default
12286 }{
12287 \family default
12288 \emph on
12289 新規長さ
12290 \family typewriter
12291 \emph default
12292 }
12293 \family default
12294 コマンドで調節されます.ここで
12295 \emph on
12296 長さ名
12297 \emph default
12298 は,変更したい長さに付けられている名前で置き換え,
12299 \emph on
12300 新規長さ
12301 \emph default
12302 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
12303 \family typewriter
12304
12305 \backslash
12306 textwidth
12307 \family default
12308 のように文書比あるいはフォント基準の長さで指定する必要があります.
12309 \end_layout
12310
12311 \begin_layout Standard
12312
12313 \family typewriter
12314
12315 \backslash
12316 foilheadskip
12317 \family default
12318 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12319 \begin_inset space \space{}
12320 \end_inset
12321
12322 inだけスライド本文に近づけるには,プリアンブルに
12323 \family typewriter
12324
12325 \backslash
12326 setlength{
12327 \backslash
12328 foilheadskip}{-0.5in}
12329 \family default
12330 と書き込みます.
12331 \end_layout
12332
12333 \begin_layout Standard
12334 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12335 \end_layout
12336
12337 \begin_layout Labeling
12338 \labelwidthstring MMMMMMMMMMM
12339
12340 \family typewriter
12341
12342 \backslash
12343 abovefloatskip
12344 \family default
12345  本文とフロート上辺との間隔
12346 \end_layout
12347
12348 \begin_layout Labeling
12349 \labelwidthstring MMMMMMMMMMM
12350
12351 \family typewriter
12352
12353 \backslash
12354 abovecaptionskip
12355 \family default
12356  フロートとキャプションとの間隔
12357 \end_layout
12358
12359 \begin_layout Labeling
12360 \labelwidthstring MMMMMMMMMMM
12361
12362 \family typewriter
12363
12364 \backslash
12365 belowcaptionskip
12366 \family default
12367  キャプションとそれに続く本文との間隔
12368 \end_layout
12369
12370 \begin_layout Labeling
12371 \labelwidthstring MMMMMMMMMMM
12372
12373 \family typewriter
12374
12375 \backslash
12376 captionwidth
12377 \family default
12378  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12379 \family typewriter
12380
12381 \backslash
12382 textwidth
12383 \family default
12384 に対する相対的な長さで調整するのが最も良いでしょう.
12385 \end_layout
12386
12387 \begin_layout Standard
12388 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12389 \end_layout
12390
12391 \begin_layout Labeling
12392 \labelwidthstring MMMMMMMMMMM
12393
12394 \family typewriter
12395
12396 \backslash
12397 abovetitleskip
12398 \family default
12399  へッダとタイトルとの間隔
12400 \end_layout
12401
12402 \begin_layout Labeling
12403 \labelwidthstring MMMMMMMMMMM
12404
12405 \family typewriter
12406
12407 \backslash
12408 titleauthorskip
12409 \family default
12410  
12411 \family sans
12412 タイトル
12413 \family default
12414 環境と
12415 \family sans
12416 著者
12417 \family default
12418 環境との間隔
12419 \end_layout
12420
12421 \begin_layout Labeling
12422 \labelwidthstring MMMMMMMMMMM
12423
12424 \family typewriter
12425
12426 \backslash
12427 authorauthorskip
12428 \family default
12429  著者が複数いる場合の
12430 \family sans
12431 著者
12432 \family default
12433 行の間隔
12434 \end_layout
12435
12436 \begin_layout Labeling
12437 \labelwidthstring MMMMMMMMMMM
12438
12439 \family typewriter
12440
12441 \backslash
12442 authordateskip
12443 \family default
12444  
12445 \family sans
12446 著者
12447 \family default
12448
12449 \family sans
12450 日付
12451 \family default
12452 との間隔
12453 \end_layout
12454
12455 \begin_layout Labeling
12456 \labelwidthstring MMMMMMMMMMM
12457
12458 \family typewriter
12459
12460 \backslash
12461 dateabstractskip
12462 \family default
12463  
12464 \family sans
12465 日付
12466 \family default
12467
12468 \family sans
12469 概要
12470 \family default
12471 との間隔
12472 \end_layout
12473
12474 \begin_layout Standard
12475 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12476 \family typewriter
12477
12478 \backslash
12479 zerolistvertdimens
12480 \family default
12481 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12482 \family typewriter
12483
12484 \backslash
12485 setlength
12486 \family default
12487 を使う必要がないことに注意してください.
12488 \end_layout
12489
12490 \begin_layout Subsubsection
12491 へッダとフッタ
12492 \end_layout
12493
12494 \begin_layout Standard
12495
12496 \family typewriter
12497
12498 \backslash
12499 LogoOn
12500 \family default
12501 および
12502 \family typewriter
12503
12504 \backslash
12505 LogoOff
12506 \family default
12507 は,
12508 \family typewriter
12509 MyLogo
12510 \family default
12511 で定義したロゴを特定のページに入れるかどうかを制御します.
12512 \family typewriter
12513
12514 \backslash
12515 LogoOff
12516 \family default
12517 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12518 \family typewriter
12519
12520 \backslash
12521 LogoOff
12522 \family default
12523 を置き,次のスライドタイトルの直後に直接
12524 \family typewriter
12525
12526 \backslash
12527 LogoOn
12528 \family default
12529 を置いてください.
12530 \end_layout
12531
12532 \begin_layout Standard
12533
12534 \family sans
12535 文書レイアウト
12536 \family default
12537 ダイアログで
12538 \family sans
12539 fancy
12540 \family default
12541 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12542 \family typewriter
12543
12544 \backslash
12545 let
12546 \backslash
12547 headwidth
12548 \backslash
12549 textwidth
12550 \family default
12551 を加える必要があるでしょう.これは,
12552 \family sans
12553 fancyheadings
12554 \family default
12555 パッケージが提供するページレイアウトと
12556 \family sans
12557 foils
12558 \family default
12559 クラスの提供するページレイアウトの間に衝突が発生するためです.
12560 \end_layout
12561
12562 \begin_layout Section
12563 Hollywood(Hollywoodスペック・スクリプト)
12564 \end_layout
12565
12566 \begin_layout Standard
12567
12568 \noun on
12569 Garst Reese
12570 \noun default
12571
12572 \end_layout
12573
12574 \begin_layout Subsection
12575 はじめに
12576 \end_layout
12577
12578 \begin_layout Standard
12579 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12580 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12581 urier 12
12582 \begin_inset space \space{}
12583 \end_inset
12584
12585 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12586 \end_layout
12587
12588 \begin_layout Subsection
12589 特別な問題
12590 \end_layout
12591
12592 \begin_layout Standard
12593 話者の行は,文の途中で改行することは
12594 \emph on
12595 決して
12596 \emph default
12597 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12598 \family sans
12599 話者
12600 \family default
12601 名を再度書き,その後に(Cont'd)と加えます.
12602 \end_layout
12603
12604 \begin_layout Subsection
12605 特別な機能
12606 \end_layout
12607
12608 \begin_layout Standard
12609
12610 \family sans
12611 話者
12612 \family default
12613 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12614 きに話者名を挿入するのにも使用することができます.
12615 \end_layout
12616
12617 \begin_layout Subsection
12618 用紙寸法と余白
12619 \end_layout
12620
12621 \begin_layout Standard
12622 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12623 \end_layout
12624
12625 \begin_layout Subsection
12626 環境
12627 \end_layout
12628
12629 \begin_layout Standard
12630 以下の環境が利用可能です.右に示されている
12631 \begin_inset Flex Ruby
12632 status collapsed
12633
12634 \begin_layout Plain Layout
12635
12636 \begin_inset Argument post:1
12637 status collapsed
12638
12639 \begin_layout Plain Layout
12640 キー
12641 \end_layout
12642
12643 \end_inset
12644
12645
12646 \end_layout
12647
12648 \end_inset
12649
12650 割当てを使用するには,hollywood.bindを使用してください.
12651 \end_layout
12652
12653 \begin_layout Itemize
12654
12655 \family sans
12656 一般
12657 \begin_inset Newline newline
12658 \end_inset
12659
12660
12661 \family default
12662 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12663 \end_layout
12664
12665 \begin_layout Itemize
12666 フェイドイン:
12667 \begin_inset space \hfill{}
12668 \end_inset
12669
12670
12671 \family sans
12672 M-z S-I
12673 \family default
12674
12675 \begin_inset Newline newline
12676 \end_inset
12677
12678 通常,この後には「Sallyは目を覚ますと」のように続きます.
12679 \end_layout
12680
12681 \begin_layout Itemize
12682
12683 \family sans
12684 屋内:
12685 \begin_inset space \hfill{}
12686 \end_inset
12687
12688 M-z i
12689 \begin_inset Newline newline
12690 \end_inset
12691
12692
12693 \family default
12694 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12695 ます.
12696 \end_layout
12697
12698 \begin_layout Itemize
12699
12700 \family sans
12701 屋外:
12702 \begin_inset space \hfill{}
12703 \end_inset
12704
12705 M-z e
12706 \begin_inset Newline newline
12707 \end_inset
12708
12709
12710 \family default
12711 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12712 \end_layout
12713
12714 \begin_layout Itemize
12715
12716 \family sans
12717 話者
12718 \begin_inset space \hfill{}
12719 \end_inset
12720
12721 M-z s
12722 \begin_inset Newline newline
12723 \end_inset
12724
12725
12726 \family default
12727 話す役.
12728 \end_layout
12729
12730 \begin_layout Itemize
12731
12732 \family sans
12733 括弧付き
12734 \begin_inset space \hfill{}
12735 \end_inset
12736
12737 M-z p
12738 \begin_inset Newline newline
12739 \end_inset
12740
12741 話者
12742 \family default
12743 への指示.自動的に括弧()が挿入されます.
12744 \end_layout
12745
12746 \begin_layout Itemize
12747
12748 \family sans
12749 対話
12750 \begin_inset space \hfill{}
12751 \end_inset
12752
12753 M-z d
12754 \begin_inset Newline newline
12755 \end_inset
12756
12757 話者
12758 \family default
12759 が話す内容.
12760 \end_layout
12761
12762 \begin_layout Itemize
12763
12764 \family sans
12765 画面遷移
12766 \begin_inset space \hfill{}
12767 \end_inset
12768
12769 M-z t
12770 \begin_inset Newline newline
12771 \end_inset
12772
12773
12774 \family default
12775 カメラの動きの指示.例:CUT TO:.
12776 \end_layout
12777
12778 \begin_layout Itemize
12779
12780 \family sans
12781 フェイドアウト:
12782 \begin_inset space \hfill{}
12783 \end_inset
12784
12785 M-z S-I
12786 \end_layout
12787
12788 \begin_layout Itemize
12789
12790 \family sans
12791 著者
12792 \begin_inset space \hfill{}
12793 \end_inset
12794
12795 M-z S-A
12796 \end_layout
12797
12798 \begin_layout Itemize
12799
12800 \family sans
12801 タイトル
12802 \begin_inset space \hfill{}
12803 \end_inset
12804
12805 M-z S-T
12806 \end_layout
12807
12808 \begin_layout Itemize
12809
12810 \family sans
12811 右寄せ住所
12812 \begin_inset space \hfill{}
12813 \end_inset
12814
12815 M-z r
12816 \end_layout
12817
12818 \begin_layout Subsection
12819 脚本で使われる特別な用語
12820 \end_layout
12821
12822 \begin_layout Itemize
12823 (O.S) — off screen
12824 \end_layout
12825
12826 \begin_layout Itemize
12827 (V.0) — voice over
12828 \end_layout
12829
12830 \begin_layout Itemize
12831 b.g.
12832  — background
12833 \end_layout
12834
12835 \begin_layout Itemize
12836 C.U.
12837  — close-up
12838 \end_layout
12839
12840 \begin_layout Itemize
12841 PAN — camera movement
12842 \end_layout
12843
12844 \begin_layout Itemize
12845 INSERT — cut to close-up of
12846 \end_layout
12847
12848 \begin_layout Section
12849 ijmpcおよびijmpd
12850 \end_layout
12851
12852 \begin_layout Standard
12853
12854 \noun on
12855 Panayotis Papasotiriou
12856 \noun default
12857
12858 \end_layout
12859
12860 \begin_layout Subsection
12861 概観
12862 \end_layout
12863
12864 \begin_layout Standard
12865 ijpmcパッケージは,
12866 \emph on
12867 International Journal of Modern Physics C
12868 \emph default
12869 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12870 \emph on
12871 International Journal of Modern Physics D
12872 \emph default
12873 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12874 \family typewriter
12875 ws-ijmpc.cls
12876 \family default
12877 および
12878 \family typewriter
12879 ws-ijmpd.cls
12880 \family default
12881 です.これらのファイルは,著者のための指針とともに,
12882 \begin_inset Flex URL
12883 status collapsed
12884
12885 \begin_layout Plain Layout
12886
12887 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12888 \end_layout
12889
12890 \end_inset
12891
12892 および
12893 \begin_inset Flex URL
12894 status collapsed
12895
12896 \begin_layout Plain Layout
12897
12898 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12899 \end_layout
12900
12901 \end_inset
12902
12903 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12904 は,これらのパッ
12905 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12906 で書き上げましたが,何らの問題も生じませんでした.
12907 \end_layout
12908
12909 \begin_layout Subsection
12910 論文を書く
12911 \end_layout
12912
12913 \begin_layout Standard
12914 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12915 \family sans
12916 ファイル\SpecialChar menuseparator
12917 新規(ひな型使用)
12918 \family default
12919 をクリックして,ひな型
12920 \family typewriter
12921 ijmpc.lyx
12922 \family default
12923 もしくは
12924 \family typewriter
12925 ijmpd.lyx
12926 \family default
12927 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12928 \family typewriter
12929 <>
12930 \family default
12931 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12932 \end_layout
12933
12934 \begin_layout Enumerate
12935 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12936 中でこれらを変更することはできません.
12937 \end_layout
12938
12939 \begin_layout Enumerate
12940 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12941 \begin_inset Info
12942 type  "menu"
12943 arg   "dialog-show document"
12944 \end_inset
12945
12946  
12947 \family sans
12948 \SpecialChar menuseparator
12949 言語
12950 \family default
12951 をクリックして,
12952 \family sans
12953 言語パッケージ
12954 \family default
12955 に「なし」を選択してください.
12956 \end_layout
12957
12958 \begin_layout Enumerate
12959 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12960 \end_layout
12961
12962 \begin_layout Enumerate
12963 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12964 ートされていませんので,ご注意ください.
12965 \end_layout
12966
12967 \begin_layout Enumerate
12968 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12969 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12970 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12971 \end_layout
12972
12973 \begin_layout Enumerate
12974 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12975 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12976 されます.引用に通常の本文を使用したい場合には,「See Ref.
12977 \begin_inset space \space{}
12978 \end_inset
12979
12980
12981 \family typewriter
12982
12983 \backslash
12984 refcite{
12985 \family default
12986
12987 \begin_inset Flex Ruby
12988 status collapsed
12989
12990 \begin_layout Plain Layout
12991
12992 \family typewriter
12993
12994 \family default
12995
12996 \begin_inset Argument post:1
12997 status collapsed
12998
12999 \begin_layout Plain Layout
13000 キー
13001 \end_layout
13002
13003 \end_inset
13004
13005
13006 \end_layout
13007
13008 \end_inset
13009
13010
13011 \family typewriter
13012 }
13013 \family default
13014 」のように
13015 \family typewriter
13016 refcite
13017 \family default
13018 コマンドを使用してください.
13019 \end_layout
13020
13021 \begin_layout Enumerate
13022 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
13023 \end_layout
13024
13025 \begin_layout Enumerate
13026 付録は,論文中,謝辞の
13027 \emph on
13028
13029 \emph default
13030 かつ書誌情報の
13031 \emph on
13032
13033 \emph default
13034 であれば,入れることができます.\SpecialChar LyX
13035 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
13036 てはなりません.この環境は,\SpecialChar LaTeX
13037 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
13038 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
13039 付録であることを明示します.「付録領域」は,最初の付録の前に
13040 \emph on
13041 なくてはならない
13042 \emph default
13043 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
13044 \end_layout
13045
13046 \begin_layout Enumerate
13047 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
13048 \family typewriter
13049 tbl
13050 \family default
13051 コマンドを使用します.そのため,\SpecialChar LyX
13052 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
13053 コードを少し使えば,この問題を回避して,キャプション
13054 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
13055 コードで
13056 \family typewriter
13057
13058 \backslash
13059 tbl{表キャプション}{
13060 \family default
13061 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
13062 コード
13063 \family typewriter
13064 }
13065 \family default
13066 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
13067 欲しい場合に,表フロート全体を
13068 \family typewriter
13069 .tex
13070 \family default
13071 ファイルに収め,このファイルを\SpecialChar LyX
13072 文書に取り込んでください(
13073 \family sans
13074 挿入\SpecialChar menuseparator
13075 ファイル\SpecialChar menuseparator
13076 子文書
13077 \family default
13078 ).表フロートの作り方についての詳細は,各パッケージに含まれている
13079 \family typewriter
13080 ws-ijmpc.tex
13081 \family default
13082 または
13083 \family typewriter
13084 ws-ijmpd.tex
13085 \family default
13086 ファイルをご覧ください.
13087 \end_layout
13088
13089 \begin_layout Subsection
13090 原稿を投稿するための準備
13091 \end_layout
13092
13093 \begin_layout Standard
13094 論文を投稿する前には,\SpecialChar LyX
13095 文書を\SpecialChar LaTeX
13096 ファイルに書き出し(
13097 \family sans
13098 ファイル\SpecialChar menuseparator
13099 書き出し\SpecialChar menuseparator
13100 \SpecialChar LaTeX
13101
13102 \family default
13103
13104 \begin_inset Foot
13105 status open
13106
13107 \begin_layout Plain Layout
13108 実は,\SpecialChar LaTeX
13109  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
13110 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
13111 \end_layout
13112
13113 \end_inset
13114
13115 ,その
13116 \family typewriter
13117 .tex
13118 \family default
13119 ファイルに以下の変更を加える必要があります.
13120 \end_layout
13121
13122 \begin_layout Enumerate
13123
13124 \family typewriter
13125
13126 \backslash
13127 documentclass
13128 \family default
13129 コマンドより前にあるコメント行を削除する.
13130 \end_layout
13131
13132 \begin_layout Enumerate
13133 自身で明示的に\SpecialChar LaTeX
13134 プリアンブルに置いたコマンドを除き,
13135 \family typewriter
13136
13137 \backslash
13138 makeatletter
13139 \family default
13140 コマンドと
13141 \family typewriter
13142
13143 \backslash
13144 makeatother
13145 \family default
13146 コマンドの間にあるものをすべて削除する.
13147 \end_layout
13148
13149 \begin_layout Standard
13150 こうして修正を加えた
13151 \family typewriter
13152 .tex
13153 \family default
13154 ファイルを保存し,必要な回数\SpecialChar LaTeX
13155 で処理してください.それによって得られた
13156 \family typewriter
13157 .dvi
13158 \family default
13159 文書も確認された方がよろしいでしょう.
13160 \end_layout
13161
13162 \begin_layout Section
13163 iopart
13164 \end_layout
13165
13166 \begin_layout Standard
13167
13168 \noun on
13169 Uwe Stöhr
13170 \noun default
13171
13172 \end_layout
13173
13174 \begin_layout Subsection
13175 概要
13176 \end_layout
13177
13178 \begin_layout Standard
13179 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
13180 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
13181 \begin_inset Flex URL
13182 status collapsed
13183
13184 \begin_layout Plain Layout
13185
13186 ftp://ftp.iop.org/pub/journals/latex2e
13187 \end_layout
13188
13189 \end_inset
13190
13191 からiopartパッケージとともにダウンロード可能です.
13192 \end_layout
13193
13194 \begin_layout Subsection
13195 論文を書く
13196 \end_layout
13197
13198 \begin_layout Standard
13199 論文を書くもっとも簡単な方法は,ファイル\SpecialChar menuseparator
13200 新規(ひな型使用)\SpecialChar ldots
13201 にあるひな型
13202 \emph on
13203 IOP-article.lyx
13204 \emph default
13205 を土台にすることです.このひな型は,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
13206 \end_layout
13207
13208 \begin_layout Itemize
13209 文書がPDF・PS・DVIにコンパイルできるようにするためには,
13210 \family sans
13211 文書\SpecialChar menuseparator
13212 設定\SpecialChar menuseparator
13213 数式オプション
13214 \family default
13215 で,AMSパッケージが読み込まれていないことを確認してください!
13216 \end_layout
13217
13218 \begin_layout Itemize
13219 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
13220 \end_layout
13221
13222 \begin_deeper
13223 \begin_layout Itemize
13224 論文用には
13225 \family sans
13226 タイトル
13227 \end_layout
13228
13229 \begin_layout Itemize
13230 Review用には
13231 \family sans
13232 Review
13233 \end_layout
13234
13235 \begin_layout Itemize
13236 Topical review用には
13237 \family sans
13238 Topical
13239 \end_layout
13240
13241 \begin_layout Itemize
13242 Comment用には
13243 \family sans
13244 Comment
13245 \end_layout
13246
13247 \begin_layout Itemize
13248 Note用には
13249 \family sans
13250 注釈
13251 \end_layout
13252
13253 \begin_layout Itemize
13254 論文用には
13255 \family sans
13256 Paper
13257 \family default
13258 (タイトルと同じ)
13259 \end_layout
13260
13261 \begin_layout Itemize
13262 Preliminary communication用には
13263 \family sans
13264 Prelim
13265 \end_layout
13266
13267 \begin_layout Itemize
13268 Rapid communication用には
13269 \family sans
13270 Rapid
13271 \end_layout
13272
13273 \begin_layout Itemize
13274 編集者へのLetterには
13275 \family sans
13276 書簡
13277 \end_layout
13278
13279 \end_deeper
13280 \begin_layout Itemize
13281
13282 \family sans
13283 書簡
13284 \family default
13285 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
13286 \end_layout
13287
13288 \begin_layout Itemize
13289 \SpecialChar LyX
13290 では直接にサポートされていませんが,一般的なタイトル環境として
13291 \family sans
13292 Article
13293 \family default
13294 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
13295 コードでこれを指定することができます.
13296 \end_layout
13297
13298 \begin_layout Standard
13299 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
13300 \end_layout
13301
13302 \begin_layout Section
13303 Kluwer
13304 \end_layout
13305
13306 \begin_layout Standard
13307
13308 \noun on
13309 Panayotis Papasotiriou
13310 \noun default
13311
13312 \end_layout
13313
13314 \begin_layout Subsection
13315 概要
13316 \end_layout
13317
13318 \begin_layout Standard
13319 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13320 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13321 \emph on
13322 Astrophysics and Space Science
13323 \emph default
13324 (『宇宙物理学と宇宙科学』)と
13325 \emph on
13326 Solar Physics
13327 \emph default
13328 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13329 \begin_inset Flex URL
13330 status collapsed
13331
13332 \begin_layout Plain Layout
13333
13334 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13335 \end_layout
13336
13337 \end_inset
13338
13339 に全覧があります).Kluwerパッケージは,
13340 \begin_inset Flex URL
13341 status collapsed
13342
13343 \begin_layout Plain Layout
13344
13345 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13346 \end_layout
13347
13348 \end_inset
13349
13350 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13351 \end_layout
13352
13353 \begin_layout Standard
13354 \SpecialChar LyX
13355 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13356 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13357 りました(
13358 \begin_inset CommandInset ref
13359 LatexCommand ref
13360 reference "subsec:kluwer_peculiarities"
13361
13362 \end_inset
13363
13364 参照).最近,私は\SpecialChar LyX
13365 を使って書いた論文を
13366 \emph on
13367 Astrophysics and Space Science
13368 \emph default
13369 に投稿しましたが,何らの問題も発生しませんでした.
13370 \end_layout
13371
13372 \begin_layout Subsection
13373 論文を書く
13374 \end_layout
13375
13376 \begin_layout Standard
13377 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13378 \family sans
13379 ファイル\SpecialChar menuseparator
13380 新規(ひな型使用)
13381 \family default
13382 をクリックし,ひな型
13383 \family typewriter
13384 kluwer.lyx
13385 \family default
13386 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13387 様に,既存の文章を(括弧
13388 \family typewriter
13389 <>
13390 \family default
13391 を含む)正しい情報で上書きしてください.
13392 \end_layout
13393
13394 \begin_layout Subsection
13395 投稿の準備
13396 \end_layout
13397
13398 \begin_layout Standard
13399 AAS\SpecialChar TeX
13400 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13401 \end_layout
13402
13403 \begin_layout Enumerate
13404
13405 \family sans
13406 ファイル\SpecialChar menuseparator
13407 書き出し\SpecialChar menuseparator
13408 LateX
13409 \family default
13410 をクリックして,論文を\SpecialChar LaTeX
13411 ファイルに書き出す.
13412 \end_layout
13413
13414 \begin_layout Enumerate
13415 生成された
13416 \family typewriter
13417 .tex
13418 \family default
13419 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13420 \end_layout
13421
13422 \begin_deeper
13423 \begin_layout Enumerate
13424
13425 \family typewriter
13426
13427 \backslash
13428 documentclass
13429 \family default
13430 コマンドより前にあるコメント行を削除する.
13431 \end_layout
13432
13433 \begin_layout Enumerate
13434 意図的に\SpecialChar LaTeX
13435 プリアンブルに加えたコマンドを除き,
13436 \family typewriter
13437
13438 \backslash
13439 makeatletter
13440 \family default
13441 から 
13442 \family typewriter
13443
13444 \backslash
13445 makeatother
13446 \family default
13447 の間にあるものを,これらのコマンドも含め,すべて削除する.
13448 \end_layout
13449
13450 \begin_layout Standard
13451 変更した
13452 \family typewriter
13453 .tex
13454 \family default
13455 ファイルを保存する.
13456 \end_layout
13457
13458 \end_deeper
13459 \begin_layout Enumerate
13460 この
13461 \family typewriter
13462 .tex
13463 \family default
13464 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13465 にかける.
13466 \end_layout
13467
13468 \begin_layout Enumerate
13469 生成された
13470 \family typewriter
13471 .dvi
13472 \family default
13473 ファイルを
13474 \family sans
13475 xdvi
13476 \family default
13477 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13478 \end_layout
13479
13480 \begin_layout Subsection
13481 Kluwerパッケージの「風変わり」な特徴
13482 \begin_inset CommandInset label
13483 LatexCommand label
13484 name "subsec:kluwer_peculiarities"
13485
13486 \end_inset
13487
13488
13489 \end_layout
13490
13491 \begin_layout Standard
13492 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13493 \end_layout
13494
13495 \begin_layout Enumerate
13496 複数の論文を1つの\SpecialChar LaTeX
13497 ファイルへ入れることができます
13498 \begin_inset Foot
13499 status collapsed
13500
13501 \begin_layout Plain Layout
13502 わざわざこんなことをする必要はないでしょう.
13503 \end_layout
13504
13505 \end_inset
13506
13507 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13508 \family typewriter
13509
13510 \backslash
13511 begin{article}
13512 \family default
13513 で始まり,
13514 \family typewriter
13515
13516 \backslash
13517 end{article}
13518 \family default
13519 で終わります.この環境を\SpecialChar LyX
13520 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13521 \family typewriter
13522
13523 \backslash
13524 begin{article}
13525 \family default
13526
13527 \family typewriter
13528
13529 \backslash
13530 end{article}
13531 \family default
13532 )は,直接本文中に入力して,\SpecialChar LaTeX
13533 コード(「\SpecialChar TeX
13534 コード」のことです)としてマークする必要があります.
13535 \end_layout
13536
13537 \begin_layout Enumerate
13538 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13539 はなりません.これは\SpecialChar LyX
13540 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13541 コード行(
13542 \family typewriter
13543
13544 \backslash
13545 begin{opening}
13546 \family default
13547 および
13548 \family typewriter
13549
13550 \backslash
13551 end{opening}
13552 \family default
13553 )の間に入れる必要があります.
13554 \end_layout
13555
13556 \begin_layout Enumerate
13557 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13558 \family typewriter
13559
13560 \begin_inset Newline newline
13561 \end_inset
13562
13563
13564 \backslash
13565 protect
13566 \backslash
13567 citeauthoryear{
13568 \family default
13569 \emph on
13570 著者名
13571 \family typewriter
13572 \emph default
13573 }{
13574 \family default
13575 \emph on
13576
13577 \family typewriter
13578 \emph default
13579 }
13580 \family default
13581  と書く必要があります.
13582 \end_layout
13583
13584 \begin_layout Standard
13585 ひな型
13586 \family typewriter
13587 kluwer.lyx
13588 \family default
13589 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13590 てください.
13591 \end_layout
13592
13593 \begin_layout Enumerate
13594 ひな型にある\SpecialChar TeX
13595 コードを削除しないでください.
13596 \end_layout
13597
13598 \begin_layout Enumerate
13599 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13600 \end_layout
13601
13602 \begin_layout Section
13603 Koma-Script
13604 \end_layout
13605
13606 \begin_layout Standard
13607
13608 \noun on
13609 Bernd Rellermeyer
13610 \noun default
13611
13612 \end_layout
13613
13614 \begin_layout Subsection
13615 概要
13616 \end_layout
13617
13618 \begin_layout Standard
13619 \SpecialChar LyX
13620 の文書クラス
13621 \emph on
13622 article (koma-script)
13623 \emph default
13624
13625 \emph on
13626 report (koma-script)
13627 \emph default
13628
13629 \emph on
13630 book
13631 \emph default
13632  
13633 \emph on
13634 (koma-script)
13635 \emph default
13636
13637 \emph on
13638 letter
13639 \emph default
13640  
13641 \emph on
13642 (koma-script)
13643 \emph default
13644 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13645 文書クラス
13646 \family typewriter
13647 scrartcl.cls
13648 \family default
13649
13650 \family typewriter
13651 scrreprt.cls
13652 \family default
13653
13654 \family typewriter
13655 scrbook.cls
13656 \family default
13657
13658 \family typewriter
13659 scrlettr.cls
13660 \family default
13661 に対応しています.これらは,標準文書クラス
13662 \family typewriter
13663 article.cls
13664 \family default
13665
13666 \family typewriter
13667 report.cls
13668 \family default
13669
13670 \family typewriter
13671 book.cls
13672 \family default
13673
13674 \family typewriter
13675 letter.cls
13676 \family default
13677 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13678 \end_layout
13679
13680 \begin_layout Itemize
13681 標準文字寸法は,
13682 \emph on
13683 article (koma-script)
13684 \emph default
13685
13686 \emph on
13687 report (koma-script)
13688 \emph default
13689
13690 \emph on
13691 book (koma-script)
13692 \emph default
13693 で11pt,
13694 \emph on
13695 letter (koma-script)
13696 \emph default
13697 で12ptです.
13698 \end_layout
13699
13700 \begin_layout Itemize
13701 見出しや箇条書き(記述)環境のラベル,および
13702 \emph on
13703 letter (koma-script)
13704 \emph default
13705 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13706 \begin_inset Foot
13707 status collapsed
13708
13709 \begin_layout Plain Layout
13710 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13711 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13712 \shape smallcaps
13713 Walter Schmidt
13714 \shape default
13715 作の\SpecialChar LaTeX
13716 パッケージ
13717 \family typewriter
13718 cmsd.sty
13719 \family default
13720 が役立ちます.
13721 \end_layout
13722
13723 \end_inset
13724
13725 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13726 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13727 とができます(\SpecialChar LyX
13728 では,
13729 \family sans
13730 文書\SpecialChar menuseparator
13731 設定
13732 \family default
13733 ダイアログの
13734 \family sans
13735 クラスオプション
13736 \family default
13737 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13738 \emph on
13739 scrguide
13740 \emph default
13741 にあります.
13742 \end_layout
13743
13744 \begin_layout Itemize
13745 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13746 \family sans
13747 BCOR
13748 \family default
13749 オプションまたは
13750 \family sans
13751 DIV
13752 \family default
13753 オプションを使う方法です(\SpecialChar LyX
13754 では,
13755 \family sans
13756 文書\SpecialChar menuseparator
13757 設定
13758 \family default
13759 ダイアログの
13760 \family sans
13761 クラスオプション
13762 \family default
13763 フィールドで指定します).これらのオプションは
13764 \family sans
13765 文書\SpecialChar menuseparator
13766 設定
13767 \family default
13768 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13769 扱説明書
13770 \emph on
13771 scrguide
13772 \emph default
13773 にあります.
13774 \end_layout
13775
13776 \begin_layout Itemize
13777 Koma-Scriptファミリーの\SpecialChar LaTeX
13778 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13779 で意味を持つものは,対応する段落環境として実装されています
13780
13781 \end_layout
13782
13783 \begin_layout Standard
13784 Koma-Scriptファミリーの\SpecialChar LaTeX
13785 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13786 \emph on
13787 scrguide
13788 \emph default
13789 にあります
13790 \begin_inset Foot
13791 status collapsed
13792
13793 \begin_layout Plain Layout
13794 英語翻訳版の
13795 \emph on
13796 screnggu
13797 \emph default
13798 もありますが,完訳ではありません.
13799 \end_layout
13800
13801 \end_inset
13802
13803 .以下の各節では,\SpecialChar LyX
13804 に関係する側面のみ説明致します.
13805 \end_layout
13806
13807 \begin_layout Subsection
13808 article (koma-script)・report (koma-script)・book (koma-script)
13809 \end_layout
13810
13811 \begin_layout Standard
13812 文書クラス
13813 \emph on
13814 article (koma-script)
13815 \emph default
13816
13817 \emph on
13818 report (koma-script)
13819 \emph default
13820
13821 \emph on
13822 book
13823 \emph default
13824  
13825 \emph on
13826 (koma-script)
13827 \emph default
13828 は,それぞれレイアウトファイル
13829 \family typewriter
13830 scrartcl.layout
13831 \family default
13832
13833 \family typewriter
13834 scrreprt.layou
13835 \family default
13836 t・
13837 \family typewriter
13838 crbook.layout
13839 \family default
13840 によって実装されています.これらは,対応する標準文書クラス
13841 \emph on
13842 article
13843 \emph default
13844
13845 \emph on
13846 report
13847 \emph default
13848
13849 \emph on
13850 book
13851 \emph default
13852 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13853 固有の
13854 \family sans
13855 箇条書き(一覧)
13856 \family default
13857 環境は例外であり,同じ機能を持つ新しい
13858 \family sans
13859 ラベリング
13860 \family default
13861 環境で置き換えられています.この
13862 \family sans
13863 ラベリング
13864 \family default
13865 環境以外にも,新しい段落環境が多く追加されています.これらは,
13866 \emph on
13867 letter (koma-script)
13868 \emph default
13869 には含まれていないのでご注意ください.
13870 \end_layout
13871
13872 \begin_layout Itemize
13873
13874 \family sans
13875 部(addpart)
13876 \family default
13877
13878 \family sans
13879 章(addchap)
13880 \family default
13881
13882 \family sans
13883 節(addsec)
13884 \family default
13885 :これらは,それぞれ
13886 \family sans
13887 部*
13888 \family default
13889
13890 \family sans
13891 章*
13892 \family default
13893
13894 \family sans
13895 節*
13896 \family default
13897 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13898 \family sans
13899 部(addpart)
13900 \family default
13901
13902 \family sans
13903 章(addchap)
13904 \family default
13905 は,
13906 \emph on
13907 article (koma-script)
13908 \emph default
13909 には収録されていません.
13910 \end_layout
13911
13912 \begin_layout Itemize
13913
13914 \family sans
13915 章(addchap*)
13916 \family default
13917
13918 \family sans
13919 節(addsec*)
13920 \family default
13921 :これらは,
13922 \family sans
13923 章(addchap
13924 \family default
13925 )と
13926 \family sans
13927 節(addsec)
13928 \family default
13929 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13930 \family sans
13931 章(addchap*)
13932 \family default
13933 は, 
13934 \emph on
13935 article (koma-script)
13936 \emph default
13937 には収録されていません
13938 \begin_inset Foot
13939 status collapsed
13940
13941 \begin_layout Plain Layout
13942
13943 \emph on
13944 book (koma-script)
13945 \emph default
13946
13947 \emph on
13948 report (koma-script)
13949 \emph default
13950 には,
13951 \family typewriter
13952
13953 \backslash
13954 addpart*
13955 \family default
13956 コマンドもありますが,これは
13957 \family sans
13958 Part*
13959 \family default
13960 と同一なので,\SpecialChar LyX
13961 では実装されていません.
13962 \end_layout
13963
13964 \end_inset
13965
13966
13967 \end_layout
13968
13969 \begin_layout Itemize
13970
13971 \family sans
13972 小見出し(minisec)
13973 \family default
13974 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13975 \end_layout
13976
13977 \begin_layout Itemize
13978
13979 \family sans
13980 上部キャプション
13981 \family default
13982
13983 \family sans
13984 下部キャプション
13985 \family default
13986 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13987 ねに表の上に置くべきでしょう).また,クラスオプション
13988 \family typewriter
13989 tablecaptionsabove
13990 \family default
13991 を用いれば,キャプションを指定すると,表には
13992 \family sans
13993 上部キャプション
13994 \family default
13995 が,図には
13996 \family sans
13997 下部キャプション
13998 \family default
13999 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14000 \end_layout
14001
14002 \begin_layout Itemize
14003
14004 \family sans
14005 格言(dictum)
14006 \family default
14007 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
14008 \family sans
14009 挿入\SpecialChar menuseparator
14010 格言著者
14011 \family default
14012 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14013 \family sans
14014 格言(dictum)
14015 \family default
14016 は,
14017 \emph on
14018 article (koma-script)
14019 \emph default
14020 には収録されていません.
14021 \end_layout
14022
14023 \begin_layout Standard
14024 以下の各環境は,標準の
14025 \family sans
14026 タイトル
14027 \family default
14028
14029 \family sans
14030 著者
14031 \family default
14032
14033 \family sans
14034 日付
14035 \family default
14036 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
14037 \begin_inset Foot
14038 status collapsed
14039
14040 \begin_layout Plain Layout
14041 つまり,対応する\SpecialChar LaTeX
14042 コマンドが
14043 \family typewriter
14044
14045 \backslash
14046 maketitle
14047 \family default
14048 コマンドよりも前に現れなくてはなりません.
14049 \end_layout
14050
14051 \end_inset
14052
14053 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
14054 \family sans
14055 タイトル
14056 \family default
14057
14058 \family sans
14059 著者
14060 \family default
14061
14062 \family sans
14063 日付
14064 \family default
14065 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
14066 \end_layout
14067
14068 \begin_layout Itemize
14069
14070 \family sans
14071 主題
14072 \family default
14073 :通常のタイトル部(
14074 \family sans
14075 タイトル
14076 \family default
14077
14078 \family sans
14079 著者
14080 \family default
14081
14082 \family sans
14083 日付
14084 \family default
14085 )の上に,文書の主題用の中央揃えの段落を生成します.
14086 \end_layout
14087
14088 \begin_layout Itemize
14089
14090 \family sans
14091 出版社
14092 \family default
14093 :通常のタイトル部(
14094 \family sans
14095 タイトル
14096 \family default
14097
14098 \family sans
14099 著者
14100 \family default
14101
14102 \family sans
14103 日付
14104 \family default
14105 )の下に,出版社名用の中央揃えの段落を生成します.
14106 \end_layout
14107
14108 \begin_layout Itemize
14109
14110 \family sans
14111 献呈
14112 \family default
14113
14114 \emph on
14115 report (koma-script)
14116 \emph default
14117
14118 \emph on
14119 book (koma-script)
14120 \emph default
14121 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
14122 \emph on
14123 article (koma-script)
14124 \emph default
14125 の場合は,通常のタイトル部(
14126 \family sans
14127 タイトル
14128 \family default
14129
14130 \family sans
14131 著者
14132 \family default
14133
14134 \family sans
14135 日付
14136 \family default
14137 )の下に献辞用の中央揃えの段落を生成します.
14138 \end_layout
14139
14140 \begin_layout Itemize
14141
14142 \family sans
14143 タイトル頭書き
14144 \family default
14145 :通常のタイトル部(
14146 \family sans
14147 タイトル
14148 \family default
14149
14150 \family sans
14151 著者
14152 \family default
14153
14154 \family sans
14155 日付
14156 \family default
14157 )の上に,文書頭書き用の左揃えの段落を生成します.
14158 \end_layout
14159
14160 \begin_layout Itemize
14161
14162 \family sans
14163 扉裏上部
14164 \family default
14165
14166 \emph on
14167 report (koma-script)
14168 \emph default
14169 や 
14170 \emph on
14171 book (koma-script)
14172 \emph default
14173 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
14174 \emph on
14175 article (koma-script)
14176 \emph default
14177 では何の効果も生じません.
14178 \end_layout
14179
14180 \begin_layout Itemize
14181
14182 \family sans
14183 扉裏下部
14184 \family default
14185
14186 \emph on
14187 report (koma-script)
14188 \emph default
14189 や 
14190 \emph on
14191 book (koma-script)
14192 \emph default
14193 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
14194 \emph on
14195 article (koma-script)
14196 \emph default
14197 では何の効果も生じません.
14198 \end_layout
14199
14200 \begin_layout Itemize
14201
14202 \family sans
14203 追加タイトル
14204 \family default
14205 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
14206 \end_layout
14207
14208 \begin_layout Standard
14209 文書クラス
14210 \emph on
14211 article (koma-script)
14212 \emph default
14213
14214 \emph on
14215 report (koma-script)
14216 \emph default
14217
14218 \emph on
14219 book (koma-script)
14220 \emph default
14221 の 各レイアウトファイルは,
14222 \family typewriter
14223 scrmacros.inc
14224 \family default
14225 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
14226 \family typewriter
14227 crmacros.inc
14228 \family default
14229 を,個人用レイアウトディレクトリにコピーして編集してください!
14230 \end_layout
14231
14232 \begin_layout Subsection
14233 letter (koma-script)
14234 \end_layout
14235
14236 \begin_layout Description
14237 \noindent
14238
14239 \family sans
14240 \series bold
14241 註:
14242 \family default
14243 \series default
14244  本節は,廃版となっている
14245 \family sans
14246 KOMA-Script-Letter (v.
14247 \begin_inset space ~
14248 \end_inset
14249
14250 1)
14251 \family default
14252 について論じています.これは,最近のKOMAリリースでは収録もされていません.現行の
14253 \family sans
14254 KOMA-Script-Letter (v.
14255 \begin_inset space ~
14256 \end_inset
14257
14258 2)
14259 \family default
14260 については,次節を参照してください!
14261 \end_layout
14262
14263 \begin_layout Standard
14264 \noindent
14265 文書クラス
14266 \emph on
14267 letter (koma-script)
14268 \emph default
14269 は,レイアウトファイル 
14270 \family typewriter
14271 scrlettr.layout
14272 \family default
14273 で実装されています.このレイアウトファイルには,対応する標準文書クラス
14274 \emph on
14275 letter
14276 \emph default
14277 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
14278 固有環境の
14279 \family sans
14280 \SpecialChar LyX
14281 コード
14282 \family default
14283
14284 \family sans
14285 コメント
14286 \family default
14287
14288 \family sans
14289 箇条書き(一覧
14290 \family default
14291 )は,新しく
14292 \family sans
14293 ラベリング
14294 \family default
14295 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
14296 \family sans
14297 \SpecialChar LaTeX
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 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14313 \end_layout
14314
14315 \begin_layout Standard
14316 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14317 コマンドを\SpecialChar LaTeX
14318 プリアンブルに置くことで制御することができます
14319 \begin_inset Foot
14320 status collapsed
14321
14322 \begin_layout Plain Layout
14323 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14324 す.
14325 \end_layout
14326
14327 \begin_layout LyX-Code
14328
14329 \backslash
14330 firsthead{
14331 \backslash
14332 parbox[b]{
14333 \backslash
14334 textwidth}
14335 \end_layout
14336
14337 \begin_layout LyX-Code
14338   {
14339 \backslash
14340 ignorespaces 
14341 \backslash
14342 fromname
14343 \backslash
14344
14345 \backslash
14346  
14347 \backslash
14348 ignorespaces 
14349 \backslash
14350 fromaddress}} 
14351 \end_layout
14352
14353 \begin_layout LyX-Code
14354
14355 \backslash
14356 nexthead{
14357 \backslash
14358 parbox[b]{
14359 \backslash
14360 textwidth}
14361 \end_layout
14362
14363 \begin_layout LyX-Code
14364   {
14365 \backslash
14366 ignorespaces 
14367 \backslash
14368 fromname 
14369 \backslash
14370 hfill 
14371 \backslash
14372 ignorespaces 
14373 \backslash
14374 pagename
14375 \backslash
14376
14377 \end_layout
14378
14379 \begin_layout LyX-Code
14380
14381 \backslash
14382 thepage}}
14383 \end_layout
14384
14385 \end_inset
14386
14387 .これらの\SpecialChar LaTeX
14388 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14389 \emph on
14390 scrguide
14391 \emph default
14392 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14393 \end_layout
14394
14395 \begin_layout Standard
14396
14397 \family sans
14398 書簡
14399 \family default
14400 環境および
14401 \family sans
14402 頭語
14403 \family default
14404 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14405 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14406 \shape italic
14407 L
14408 \shape default
14409
14410 \shape italic
14411 O
14412 \shape default
14413 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14414 \family sans
14415 頭語
14416 \family default
14417 環境は,同じ受取人への書簡を新しく書き出すものであり,
14418 \family sans
14419 書簡
14420 \family default
14421 環境は,新しい受取人を生成するものです.
14422 \family sans
14423 結語
14424 \family default
14425
14426 \family sans
14427 PS
14428 \family default
14429
14430 \family sans
14431 CC
14432 \family default
14433
14434 \family sans
14435 Encl
14436 \family default
14437 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14438 \end_layout
14439
14440 \begin_layout Itemize
14441
14442 \family sans
14443 書簡
14444 \family default
14445 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14446 \end_layout
14447
14448 \begin_layout Itemize
14449
14450 \family sans
14451 頭語
14452 \family default
14453 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14454 \end_layout
14455
14456 \begin_layout Itemize
14457
14458 \family sans
14459 結語
14460 \family default
14461 :結語のための段落をつくります.
14462 \end_layout
14463
14464 \begin_layout Itemize
14465
14466 \family sans
14467 PS
14468 \family default
14469 :追伸のための段落をつくります.
14470 \end_layout
14471
14472 \begin_layout Itemize
14473
14474 \family sans
14475 CC
14476 \family default
14477 :同報一覧のための段落をつくります.
14478 \end_layout
14479
14480 \begin_layout Itemize
14481
14482 \family sans
14483 Encl
14484 \family default
14485 :同封物のための段落をつくります.
14486 \end_layout
14487
14488 \begin_layout Standard
14489
14490 \family sans
14491 名前
14492 \family default
14493
14494 \family sans
14495 署名
14496 \family default
14497
14498 \family sans
14499 住所
14500 \family default
14501
14502 \family sans
14503 電話
14504 \family default
14505
14506 \family sans
14507 場所(Place
14508 \family default
14509 )・
14510 \family sans
14511 返送先住所
14512 \family default
14513
14514 \family sans
14515 配送手段(Specialmail)
14516 \family default
14517
14518 \family sans
14519 場所
14520 \family default
14521
14522 \family sans
14523 タイトル
14524 \family default
14525
14526 \family sans
14527 主題
14528 \family default
14529 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14530 \begin_inset Foot
14531 status collapsed
14532
14533 \begin_layout Plain Layout
14534 上述の
14535 \family sans
14536 書簡
14537 \family default
14538
14539 \family sans
14540 頭語
14541 \family default
14542 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14543 一文字をマークした通常の段落環境として実装しました.さらに,
14544 \family sans
14545 頭語
14546 \family default
14547 環境と
14548 \family sans
14549 結語
14550 \family default
14551 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14552 \end_layout
14553
14554 \end_inset
14555
14556 .これらの環境は,対応する
14557 \family sans
14558 頭語
14559 \family default
14560 環境の前に置く必要があります.
14561 \end_layout
14562
14563 \begin_layout Standard
14564 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14565 ん.たとえば,
14566 \family sans
14567 署名
14568 \family default
14569 環境で入力した署名は,標準的な挙動では,同じ書簡に
14570 \family sans
14571 結語
14572 \family default
14573 環境も使用されているときのみ,書簡の出力に現れます.
14574 \family sans
14575 電話
14576 \family default
14577 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14578 \end_layout
14579
14580 \begin_layout Standard
14581 入力環境は,空の段落として使うことができます.これは,たとえば
14582 \family sans
14583 署名
14584 \family default
14585 環境の場合に有効です.
14586 \family sans
14587 署名
14588 \family default
14589 環境を全く使用しない場合は,標準的な挙動では,
14590 \family sans
14591 名前
14592 \family default
14593 環境の値が署名として使用されますが,空の
14594 \family sans
14595 署名
14596 \family default
14597 環境を作成しておくと,署名の値は無定義となりません.
14598 \end_layout
14599
14600 \begin_layout Standard
14601 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14602 \end_layout
14603
14604 \begin_layout Itemize
14605
14606 \family sans
14607 名前
14608 \family default
14609 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14610 \end_layout
14611
14612 \begin_layout Itemize
14613
14614 \family sans
14615 署名
14616 \family default
14617 :送り主の署名.標準的な挙動では,
14618 \family sans
14619 結語
14620 \family default
14621 環境の下に表示されます.
14622 \family sans
14623 署名
14624 \family default
14625 環境を使用しないと,代わりに
14626 \family sans
14627 名前
14628 \family default
14629 環境の値が表示されます.
14630 \end_layout
14631
14632 \begin_layout Itemize
14633
14634 \family sans
14635 住所
14636 \family default
14637 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14638 \end_layout
14639
14640 \begin_layout Itemize
14641
14642 \family sans
14643 電話
14644 \family default
14645 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14646 変数
14647 \family typewriter
14648
14649 \backslash
14650 telephonenum
14651 \family default
14652 を設定するだけです.
14653 \end_layout
14654
14655 \begin_layout Itemize
14656
14657 \family sans
14658 場所(Place)
14659 \family default
14660 :書簡を書いた場所.
14661 \end_layout
14662
14663 \begin_layout Itemize
14664
14665 \family sans
14666 日付
14667 \family default
14668 :書簡を書いた日付.
14669 \family sans
14670 場所(Place)
14671 \family default
14672
14673 \family sans
14674 日付
14675 \family default
14676 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14677 \family sans
14678 日付
14679 \family default
14680 環境を作成しておくと,
14681 \family sans
14682 場所(Place)
14683 \family default
14684 の値如何に関わらず,場所も日付も表示されません.
14685 \family sans
14686 日付
14687 \family default
14688 環境を使用しない場合には,書簡を出力した日付が使用されます.
14689 \end_layout
14690
14691 \begin_layout Itemize
14692
14693 \family sans
14694 返送先住所
14695 \family default
14696 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14697 \end_layout
14698
14699 \begin_layout Itemize
14700
14701 \family sans
14702 特別便
14703 \family default
14704 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14705 \end_layout
14706
14707 \begin_layout Itemize
14708
14709 \family sans
14710 場所
14711 \family default
14712 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14713 \end_layout
14714
14715 \begin_layout Itemize
14716
14717 \family sans
14718 タイトル
14719 \family default
14720 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14721 \end_layout
14722
14723 \begin_layout Itemize
14724
14725 \family sans
14726 主題
14727 \family default
14728 :書簡の主題.標準的な挙動では,
14729 \family sans
14730 頭語
14731 \family default
14732 環境の上にボールド体で表示されます.
14733 \end_layout
14734
14735 \begin_layout Standard
14736
14737 \family sans
14738 Yourref・Yourmail・Myref・顧客・インボイス
14739 \family default
14740 といった環境は,
14741 \family sans
14742 タイトル
14743 \family default
14744 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14745 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14746 \family sans
14747 日付
14748 \family default
14749 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14750 \family sans
14751 場所(Place)
14752 \family default
14753 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14754 変数
14755 \family typewriter
14756
14757 \backslash
14758 fromplace
14759 \family default
14760 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14761 て実装されており,対応する
14762 \family sans
14763 頭語
14764 \family default
14765 環境よりも前に置く必要があります.
14766 \end_layout
14767
14768 \begin_layout Itemize
14769
14770 \family sans
14771 Yourref
14772 \family default
14773 : Your ref.
14774 \end_layout
14775
14776 \begin_layout Itemize
14777
14778 \family sans
14779 Yourmail
14780 \family default
14781 : Your letter of.
14782 \end_layout
14783
14784 \begin_layout Itemize
14785
14786 \family sans
14787 Myref
14788 \family default
14789 : Our ref.
14790 \end_layout
14791
14792 \begin_layout Itemize
14793
14794 \family sans
14795 Customer
14796 \family default
14797 : Customer no.
14798 \end_layout
14799
14800 \begin_layout Itemize
14801
14802 \family sans
14803 Invoice
14804 \family default
14805 : Invoice no.
14806 \end_layout
14807
14808 \begin_layout Subsection
14809 新しいletterクラス:letter (koma-script v.2)
14810 \end_layout
14811
14812 \begin_layout Standard
14813 by 
14814 \noun on
14815 Jürgen Spitzmüller
14816 \begin_inset VSpace medskip
14817 \end_inset
14818
14819
14820 \end_layout
14821
14822 \begin_layout Standard
14823 \noindent
14824 Koma-Script第2.8版では,新しいletterクラス
14825 \family typewriter
14826 scrlttr2
14827 \family default
14828 が導入されたため,
14829 \family typewriter
14830 scrlettr
14831 \family default
14832 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14833 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14834 は両者をサポートしてい
14835 ますが,新しい方のクラスを使用することを推奨します.
14836 \end_layout
14837
14838 \begin_layout Standard
14839 このクラスは,
14840 \emph on
14841 letter (koma-script)
14842 \emph default
14843 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14844 \family sans
14845 住所
14846 \family default
14847 (受取人の住所,旧レイアウトの
14848 \family sans
14849 書簡
14850 \family default
14851 と同じ)・
14852 \family sans
14853 頭語
14854 \family default
14855
14856 \family sans
14857 結語
14858 \family default
14859 です.
14860 \family sans
14861 次の住所
14862 \family default
14863 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14864 \family sans
14865 電子メール
14866 \family default
14867
14868 \family sans
14869 URL
14870 \family default
14871
14872 \family sans
14873 ファックス
14874 \family default
14875
14876 \family sans
14877 銀行
14878 \family default
14879 ,およびヘッダに(
14880 \family sans
14881 挿入\SpecialChar menuseparator
14882
14883 \family default
14884 で)
14885 \family sans
14886 ロゴ
14887 \family default
14888 を入れることができるようになった点です.
14889 \end_layout
14890
14891 \begin_layout Standard
14892 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14893 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14894 \family typewriter
14895 *.lco
14896 \family default
14897 )によって設定することができます
14898 \begin_inset Foot
14899 status collapsed
14900
14901 \begin_layout Plain Layout
14902 KOMAパッケージには,既定の
14903 \family typewriter
14904 *.lco
14905 \family default
14906 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14907 \family typewriter
14908 DIN.lco
14909 \family default
14910 や,旧
14911 \family typewriter
14912 scrlettr
14913 \family default
14914 クラスの既定レイアウトを提供する
14915 \family typewriter
14916 KOMAold.lco
14917 \family default
14918 などです.たとえば後者は,
14919 \family sans
14920 文書\SpecialChar menuseparator
14921 設定\SpecialChar menuseparator
14922 文書クラス\SpecialChar menuseparator
14923 クラスオプション
14924 \family default
14925 フィールドにクラスオプション
14926 \family typewriter
14927 KOMAold
14928 \family default
14929 を加えることで読み込むことができます.
14930 \end_layout
14931
14932 \end_inset
14933
14934 .用例としては,\SpecialChar LyX
14935 に収録されているひな型
14936 \emph on
14937 koma-letter2
14938 \emph default
14939 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14940 \emph on
14941 scrguide
14942 \emph default
14943 )にあります.
14944 \end_layout
14945
14946 \begin_layout Subsection
14947 問題点
14948 \end_layout
14949
14950 \begin_layout Standard
14951 Koma-Script文書クラスを\SpecialChar LyX
14952 上に表示する上で,\SpecialChar LyX
14953 の内部処理が若干の問題を生じめます.
14954 \end_layout
14955
14956 \begin_layout Itemize
14957
14958 \family sans
14959
14960 \family default
14961 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14962 \family sans
14963 Counter_Chapter
14964 \family default
14965 ラベル型に対する\SpecialChar LyX
14966 の内部処理が原因です.
14967 \end_layout
14968
14969 \begin_layout Itemize
14970
14971 \family sans
14972 章(addchap)
14973 \family default
14974
14975 \family sans
14976 節(addsec)
14977 \family default
14978 環境の見出しは,「本当の」\SpecialChar LaTeX
14979 の目次には追加されますが,\SpecialChar LyX
14980 の目次(
14981 \family sans
14982 移動
14983 \family default
14984 メニュー)には追加されません.
14985 \end_layout
14986
14987 \begin_layout Itemize
14988
14989 \emph on
14990 letter
14991 \emph default
14992 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14993 コマンドは必要ありません.しかし,
14994 \family sans
14995 文書\SpecialChar menuseparator
14996 設定
14997 \family default
14998 ダイアログでは,対応するラジオボタンは
14999 \family sans
15000 字下げ
15001 \family default
15002 に設定されています.
15003 \family sans
15004 垂直スペース
15005 \family default
15006 は,隙間を空けるために,文書に\SpecialChar LaTeX
15007 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
15008 \end_layout
15009
15010 \begin_layout Section
15011 Memoir
15012 \end_layout
15013
15014 \begin_layout Standard
15015
15016 \noun on
15017 Jürgen Spitzmüller
15018 \noun default
15019
15020 \end_layout
15021
15022 \begin_layout Subsection
15023 概観
15024 \end_layout
15025
15026 \begin_layout Standard
15027 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
15028 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
15029 す(以下参照).
15030 \end_layout
15031
15032 \begin_layout Standard
15033 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
15034 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
15035 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
15036 は,これらすべての素晴らしい機能をネイティブでサポ
15037 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
15038 \begin_inset Foot
15039 status collapsed
15040
15041 \begin_layout Plain Layout
15042 もし提案があれば,ぜひ
15043 \begin_inset Flex URL
15044 status collapsed
15045
15046 \begin_layout Plain Layout
15047
15048 lyx-devel@lists.lyx.org
15049 \end_layout
15050
15051 \end_inset
15052
15053 までお送り下さい.
15054 \end_layout
15055
15056 \end_inset
15057
15058 ,\SpecialChar LyX
15059 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
15060 コマンド(\SpecialChar TeX
15061 コード
15062 \begin_inset Foot
15063 status collapsed
15064
15065 \begin_layout Plain Layout
15066 【参考】詳細は,第
15067 \begin_inset CommandInset ref
15068 LatexCommand ref
15069 reference "sec:TeXコードを挿入する"
15070
15071 \end_inset
15072
15073 節参照.
15074 \end_layout
15075
15076 \end_inset
15077
15078 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
15079 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
15080 は,Memoirクラスの詳しい取扱説明書
15081 \begin_inset Foot
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085 【参考】
15086 \begin_inset Flex URL
15087 status collapsed
15088
15089 \begin_layout Plain Layout
15090
15091 CTAN:/macros/latex/memoir/memman.pdf
15092 \end_layout
15093
15094 \end_inset
15095
15096
15097 \end_layout
15098
15099 \end_inset
15100
15101 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
15102 た用例となっています.
15103 \end_layout
15104
15105 \begin_layout Subsection
15106 基本的な機能と制約
15107 \end_layout
15108
15109 \begin_layout Standard
15110 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
15111 \end_layout
15112
15113 \begin_layout Description
15114 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
15115 \end_layout
15116
15117 \begin_layout Description
15118 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
15119 が混乱させられます
15120 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
15121 \family sans
15122 文書\SpecialChar menuseparator
15123 設定\SpecialChar menuseparator
15124 ページレイアウト
15125 \family default
15126 参照).これらを章題ページに使用したい場合には,コマンド
15127 \family typewriter
15128
15129 \backslash
15130 chapterstyle
15131 \family default
15132 を,本文またはプリアンブルに記述する必要があります(例えば,
15133 \family typewriter
15134
15135 \backslash
15136 chapterstyle{companion}
15137 \family default
15138 など).
15139 \end_layout
15140
15141 \begin_layout Description
15142 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
15143 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
15144 では,章や節の始めで
15145 \family sans
15146 挿入\SpecialChar menuseparator
15147 短縮タイトル
15148 \family default
15149 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.\SpecialChar LyX
15150
15151 は,
15152 \family sans
15153 挿入
15154 \family default
15155 メニューから
15156 \family sans
15157 短縮タイトル
15158 \family default
15159 の特定の派生形の形で利用できます.
15160 \end_layout
15161
15162 \begin_layout Description
15163 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
15164 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
15165 \end_layout
15166
15167 \begin_layout Description
15168 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
15169 くない場合には,プリアンブルに
15170 \family typewriter
15171
15172 \backslash
15173 aliaspagestyle{title}{empty}
15174 \family default
15175 と入力してください.
15176 \end_layout
15177
15178 \begin_layout Description
15179 Article: クラスオプション
15180 \emph on
15181 article
15182 \emph default
15183 を用いる(
15184 \family sans
15185 文書\SpecialChar menuseparator
15186 設定\SpecialChar menuseparator
15187 文書クラス\SpecialChar menuseparator
15188 クラスオプション\SpecialChar menuseparator
15189 任意設定
15190 \family default
15191 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
15192 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
15193 \end_layout
15194
15195 \begin_layout Description
15196 Oldfontcommands: \SpecialChar LaTeX
15197 旧2.09版で使用されていた旧いフォントコマンド(
15198 \family typewriter
15199
15200 \backslash
15201 rm
15202 \family default
15203
15204 \family typewriter
15205
15206 \backslash
15207 it
15208 \family default
15209 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
15210 を停止させます.しかし,クラスオプ
15211 ション
15212 \emph on
15213 oldfontcommands
15214 \emph default
15215 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
15216 は停止しなくなります).まだ,多くのパッケージと,
15217 就中多くのBib\SpecialChar TeX
15218 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
15219 \end_layout
15220
15221 \begin_layout Subsection
15222 追加された機能
15223 \end_layout
15224
15225 \begin_layout Standard
15226 \SpecialChar LyX
15227 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
15228 \begin_inset Foot
15229 status collapsed
15230
15231 \begin_layout Plain Layout
15232 \begin_inset Flex URL
15233 status collapsed
15234
15235 \begin_layout Plain Layout
15236
15237 CTAN:/macros/latex/memoir/memman.pdf
15238 \end_layout
15239
15240 \end_inset
15241
15242
15243 \end_layout
15244
15245 \end_inset
15246
15247 を見てください.
15248 \end_layout
15249
15250 \begin_layout Description
15251 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
15252 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
15253 \end_layout
15254
15255 \begin_layout Description
15256 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
15257 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
15258 \end_layout
15259
15260 \begin_layout Description
15261 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
15262 出典:非必須)は,短い線で区切られます.著者(出典)は,
15263 \family sans
15264 挿入\SpecialChar menuseparator
15265 題辞出典
15266 \family default
15267 で入力できます.
15268 \end_layout
15269
15270 \begin_layout Description
15271 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
15272 は,そのうちいくつかしかサポートしていません.詩題はその一つです
15273 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
15274 コードを使用しな
15275 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
15276 ではそれができないためです).
15277 \end_layout
15278
15279 \begin_layout Description
15280 詩題*: 目次に現れない他は詩題と同じです.
15281 \end_layout
15282
15283 \begin_layout Section
15284 Article (mwart)・book (mwbk)・report (mwrep)
15285 \begin_inset Argument status
15286 status collapsed
15287
15288 \begin_layout Plain Layout
15289 The 
15290 \family typewriter
15291 mw
15292 \family default
15293  Classes
15294 \end_layout
15295
15296 \end_inset
15297
15298
15299 \end_layout
15300
15301 \begin_layout Standard
15302
15303 \noun on
15304 Tomasz Luczak
15305 \noun default
15306
15307 \end_layout
15308
15309 \begin_layout Standard
15310 \SpecialChar LyX
15311 文書クラス
15312 \emph on
15313 article (mwart)
15314 \emph default
15315
15316 \emph on
15317 report (mwrep)・book
15318 \emph default
15319  
15320 \emph on
15321 (mwbk)
15322 \emph default
15323 は,それぞれ\SpecialChar LaTeX
15324 文書クラス
15325 \family typewriter
15326 mwart.cls
15327 \family default
15328
15329 \family typewriter
15330 mwrep.cls
15331 \family default
15332
15333 \family typewriter
15334 mwbk.cls
15335 \family default
15336 に対応しています.これらは,標準の
15337 \family typewriter
15338 article.cls
15339 \family default
15340
15341 \family typewriter
15342 report.cls
15343 \family default
15344
15345 \family typewriter
15346 book.cls
15347 \family default
15348 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15349 \end_layout
15350
15351 \begin_layout Standard
15352 基本的な違いは,次の点です.
15353 \end_layout
15354
15355 \begin_layout Itemize
15356 付番のない見出し(
15357 \family sans
15358 節*
15359 \family default
15360 などの星付き)も目次に加えられます.
15361 \end_layout
15362
15363 \begin_layout Itemize
15364 以下のページスタイルの追加
15365 \end_layout
15366
15367 \begin_deeper
15368 \begin_layout Description
15369 uheadings 分離線付きヘッダ
15370 \end_layout
15371
15372 \begin_layout Description
15373 myheadings 
15374 \family typewriter
15375
15376 \backslash
15377 markright
15378 \family default
15379 コマンドおよび
15380 \family typewriter
15381
15382 \backslash
15383 markboth
15384 \family default
15385 コマンドで設定するカスタムヘッダ
15386 \end_layout
15387
15388 \begin_layout Description
15389 myuheadings 分離線付きカスタムヘッダ
15390 \end_layout
15391
15392 \begin_layout Description
15393 outer ページの外側にページ番号
15394 \end_layout
15395
15396 \end_deeper
15397 \begin_layout Itemize
15398 オプション
15399 \end_layout
15400
15401 \begin_deeper
15402 \begin_layout Description
15403 rmheadings セリフ体見出し — 既定
15404 \end_layout
15405
15406 \begin_layout Description
15407 sfheadings サンセリフ体見出し
15408 \end_layout
15409
15410 \begin_layout Description
15411 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15412 \end_layout
15413
15414 \begin_layout Description
15415 titleauthor タイトルページは,タイトル・著者名の順で配置
15416 \end_layout
15417
15418 \begin_layout Description
15419 withmarginpar ページ上に余白のための場所を確保
15420 \end_layout
15421
15422 \end_deeper
15423 \begin_layout Section
15424 Paper
15425 \end_layout
15426
15427 \begin_layout Standard
15428
15429 \family sans
15430 paper
15431 \family default
15432 文書クラスは標準
15433 \family sans
15434 article
15435 \family default
15436 クラスの代替となるものです.これは
15437 \family sans
15438 同様の
15439 \family default
15440 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15441 \end_layout
15442
15443 \begin_layout Section
15444 Rev\SpecialChar TeX
15445 4
15446 \end_layout
15447
15448 \begin_layout Standard
15449 by 
15450 \noun on
15451 Amir Karger
15452 \end_layout
15453
15454 \begin_layout Standard
15455 \begin_inset VSpace bigskip
15456 \end_inset
15457
15458
15459 \end_layout
15460
15461 \begin_layout Standard
15462 \noindent
15463
15464 \family sans
15465 Revtex
15466 \begin_inset space ~
15467 \end_inset
15468
15469 4
15470 \family default
15471 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15472  4.0(1999年5月の
15473 \begin_inset Formula $\beta$
15474 \end_inset
15475
15476 リリース)クラスで動作します.
15477 \end_layout
15478
15479 \begin_layout Standard
15480 \SpecialChar LyX
15481 には,Rev\SpecialChar TeX
15482  3.1で動作する
15483 \family sans
15484 Revtex
15485 \family default
15486 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15487  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15488 は\SpecialChar LaTeX2e
15489 を必要とすることから,第3.1版は\SpecialChar LyX
15490 とうまく
15491 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15492  4.0は,\SpecialChar LaTeX2e
15493 で素直に動作するようにデザインされているので,\SpecialChar LyX
15494
15495 \family sans
15496 Rev\SpecialChar TeX
15497
15498 \begin_inset space ~
15499 \end_inset
15500
15501 4
15502 \family default
15503 テキストクラスの組で使用するのは,たいへん簡単です.
15504 \end_layout
15505
15506 \begin_layout Standard
15507 この取扱説明書は,Rev\SpecialChar TeX
15508  4.0の説明書の
15509 \emph on
15510 補完
15511 \emph default
15512 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15513 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15514 します.
15515 \end_layout
15516
15517 \begin_layout Subsection
15518 導入
15519 \end_layout
15520
15521 \begin_layout Standard
15522 Rev\SpecialChar TeX
15523  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15524  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15525  4 Web
15526  Site 
15527 \begin_inset Flex URL
15528 status collapsed
15529
15530 \begin_layout Plain Layout
15531
15532 http://publish.aps.org/revtex4/
15533 \end_layout
15534
15535 \end_inset
15536
15537 から入手することができます.これを\SpecialChar LaTeX
15538 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15539 ィレクトリ)で簡単なRev\SpecialChar TeX
15540  4文書を \SpecialChar LaTeX
15541 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15542 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15543 4テキストクラスが使用
15544 できるようになるはずです.
15545 \end_layout
15546
15547 \begin_layout Standard
15548 使い始めるには,
15549 \family typewriter
15550 tex2lyx
15551 \family default
15552 を使ってRev\SpecialChar TeX
15553  4文書を読み込むか,またはひな型ディレクトリにある
15554 \family sans
15555 Revtex
15556 \begin_inset space ~
15557 \end_inset
15558
15559 4
15560 \family default
15561 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15562 \end_layout
15563
15564 \begin_layout Subsection
15565 プリアンブルに関すること
15566 \end_layout
15567
15568 \begin_layout Standard
15569
15570 \family typewriter
15571
15572 \backslash
15573 documentclass
15574 \family default
15575 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15576 \family sans
15577 文書\SpecialChar menuseparator
15578 設定\SpecialChar menuseparator
15579 文書クラス
15580 \family default
15581
15582 \family sans
15583 クラスオプション
15584 \family default
15585 フィールドに入れます.Rev\SpecialChar TeX
15586 では,少なくとも一つの非必須引数が必要なことに注意してください.
15587 \end_layout
15588
15589 \begin_layout Standard
15590
15591 \family typewriter
15592
15593 \backslash
15594 draft
15595 \family default
15596 など他のプリアンブルは,他のクラス同様,
15597 \family sans
15598 文書\SpecialChar menuseparator
15599 設定\SpecialChar menuseparator
15600 \SpecialChar LaTeX
15601 プリアンブル
15602 \family default
15603 に入れてください.
15604 \end_layout
15605
15606 \begin_layout Subsection
15607 レイアウト
15608 \end_layout
15609
15610 \begin_layout Standard
15611 レイアウトは,基本的にRev\SpecialChar TeX
15612 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15613 \family typewriter
15614
15615 \backslash
15616 email{}
15617 \family default
15618 に対応しています.(少なくともRev\SpecialChar TeX
15619  4.0 Beta現在では)
15620 \family sans
15621 住所
15622 \family default
15623
15624 \family sans
15625 所属
15626 \family default
15627 はまったく同じものなので,両方を使う必要はありません
15628 \begin_inset Foot
15629 status collapsed
15630
15631 \begin_layout Plain Layout
15632 ついでながら,
15633 \family typewriter
15634 tex2lyx
15635 \family default
15636 は両方とも対応しているので,
15637 \family typewriter
15638
15639 \backslash
15640 address
15641 \family default
15642
15643 \family typewriter
15644
15645 \backslash
15646 affiliation
15647 \family default
15648 のどちらも翻訳することができます.
15649 \end_layout
15650
15651 \end_inset
15652
15653
15654 \end_layout
15655
15656 \begin_layout Subsection
15657 重要な注意
15658 \end_layout
15659
15660 \begin_layout Standard
15661 Rev\SpecialChar TeX
15662  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15663 ではさらに気をつけなくてはなりません.
15664 \end_layout
15665
15666 \begin_layout Standard
15667 Rev\SpecialChar TeX
15668 では,
15669 \family typewriter
15670
15671 \backslash
15672 thanks
15673 \family default
15674 コマンドは,
15675 \family typewriter
15676
15677 \backslash
15678 author
15679 \family default
15680 コマンドの
15681 \emph on
15682 外側
15683 \emph default
15684 に来なくてはなりません.\SpecialChar LyX
15685 では,独立した
15686 \family sans
15687 感謝
15688 \family default
15689 レイアウトがこの働きをします.直接
15690 \family sans
15691 ,著者
15692 \family default
15693 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15694  4の取扱説明書をご覧ください.
15695 \end_layout
15696
15697 \begin_layout Standard
15698 また,
15699 \family sans
15700 著者電子メール
15701 \family default
15702
15703 \family sans
15704 著者URL・感謝(thanks)
15705 \family default
15706 レイアウトは,
15707 \family sans
15708 著者
15709 \family default
15710 レイアウトと
15711 \family sans
15712 住所(
15713 \family default
15714 または同等の
15715 \family sans
15716 所属
15717 \family default
15718 )レイアウトの間に置かなければなりません.
15719 \family sans
15720 感謝(thanks)
15721 \family default
15722
15723 \family sans
15724 住所
15725 \family default
15726 の後に置いてしまうと,\SpecialChar LaTeX
15727 はコンパイルに失敗します.
15728 \end_layout
15729
15730 \begin_layout Section
15731 Springer学術誌(
15732 \family sans
15733 svjour)
15734 \end_layout
15735
15736 \begin_layout Standard
15737
15738 \noun on
15739 Martin Vermeer
15740 \noun default
15741
15742 \end_layout
15743
15744 \begin_layout Subsection
15745 説明
15746 \end_layout
15747
15748 \begin_layout Standard
15749 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15750 \begin_inset Flex URL
15751 status collapsed
15752
15753 \begin_layout Plain Layout
15754
15755 http://www.springer.de/author/tex/help-journals.html
15756 \end_layout
15757
15758 \end_inset
15759
15760 に必要なクラスファイル(\SpecialChar LaTeX2e
15761 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15762 \family typewriter
15763 svjour.inc
15764 \family default
15765 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15766 \family typewriter
15767 svjog.layout
15768 \family default
15769 など)から取り込むことができます.
15770 \end_layout
15771
15772 \begin_layout Standard
15773 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15774 \family typewriter
15775 svjog.layout
15776 \family default
15777 に書かれている指示に従って,自作の
15778 \family typewriter
15779 sv
15780 \family default
15781 <学術誌名>
15782 \family typewriter
15783 .layout
15784 \family default
15785 を書くだけで良いことを意味します.
15786 \end_layout
15787
15788 \begin_layout Standard
15789 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15790 \family typewriter
15791 svjour
15792 \family default
15793
15794 \family typewriter
15795 svjog
15796 \family default
15797 は,標準\SpecialChar LyX
15798 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15799 を再設定した後(teTeXの場合は,必
15800 要に応じてroot権限で
15801 \family typewriter
15802 texhash
15803 \family default
15804 を実行します),\SpecialChar LyX
15805 を環境構成すれば,動作するはずです.
15806 \end_layout
15807
15808 \begin_layout Subsection
15809 新スタイル
15810 \end_layout
15811
15812 \begin_layout Standard
15813 多くの定理環境 — 
15814 \family sans
15815 主張
15816 \family default
15817
15818 \family sans
15819 推論
15820 \family default
15821 ・\SpecialChar ldots
15822
15823 \family sans
15824 定理
15825 \family default
15826
15827 \end_layout
15828
15829 \begin_layout Standard
15830
15831 \family sans
15832 ヘッドノート
15833 \family default
15834
15835 \family sans
15836 献呈
15837 \family default
15838
15839 \family sans
15840 サブタイトル・ヘッダ用\SpecialChar LaTeX
15841 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15842 ement)
15843 \family default
15844 .詳しくは Springerのクラスファイルの説明書を読んでください.
15845 \end_layout
15846
15847 \begin_layout Subsection
15848 サポートしているジャーナル
15849 \end_layout
15850
15851 \begin_layout Itemize
15852
15853 \emph on
15854 Journal of Geodesy
15855 \emph default
15856
15857 \family typewriter
15858 svjog.layout
15859 \family default
15860  — Martin Vermeer
15861 \end_layout
15862
15863 \begin_layout Itemize
15864
15865 \emph on
15866 Probability Theory and Related Fields
15867 \emph default
15868
15869 \family typewriter
15870 svprobth.layout
15871 \family default
15872  — Jean-Marc Lasgouttes
15873 \end_layout
15874
15875 \begin_layout Standard
15876 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15877 \end_layout
15878
15879 \begin_layout Subsection
15880 Credits
15881 \end_layout
15882
15883 \begin_layout Standard
15884 これらのファイルは,以前の 
15885 \family typewriter
15886 ejour2.layout
15887 \family default
15888 をもとにしています.
15889 \family typewriter
15890 ejour2.layout
15891 \family default
15892 は Springerの\SpecialChar LaTeX
15893  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15894  Lasgouttesのおかげで \SpecialChar LyX
15895 のレイアウトファイルのメカニズムをよりよく理解することができました.
15896 \end_layout
15897
15898 \begin_layout Subsection
15899 バグ
15900 \end_layout
15901
15902 \begin_layout Standard
15903 多分あります.以前の 
15904 \family typewriter
15905 ejour2
15906 \family default
15907 よりは少なくなっているとは思いますが.
15908 \end_layout
15909
15910 \begin_layout Section
15911 Slides別名
15912 \noun on
15913 Sli\SpecialChar TeX
15914
15915 \noun default
15916
15917 \begin_inset Foot
15918 status collapsed
15919
15920 \begin_layout Plain Layout
15921 (訳註)この節の内容は,全般的に古くなっています.
15922 \end_layout
15923
15924 \end_inset
15925
15926
15927 \begin_inset CommandInset label
15928 LatexCommand label
15929 name "sec:slitex"
15930
15931 \end_inset
15932
15933
15934 \end_layout
15935
15936 \begin_layout Standard
15937
15938 \noun on
15939 John Weiss
15940 \noun default
15941
15942 \end_layout
15943
15944 \begin_layout Subsection
15945 はじめに
15946 \end_layout
15947
15948 \begin_layout Standard
15949 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15950 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15951 \family sans
15952 Foil\SpecialChar TeX
15953
15954 \family default
15955 スライドクラスの2つがあります.本節は前者について説明を行います.
15956 \end_layout
15957
15958 \begin_layout Standard
15959 誤解のないように,正しく明確に,もう一度言っておきます.
15960 \end_layout
15961
15962 \begin_layout Standard
15963 \begin_inset VSpace bigskip
15964 \end_inset
15965
15966
15967 \end_layout
15968
15969 \begin_layout Standard
15970 \align center
15971
15972 \size large
15973 本節は文書クラス
15974 \begin_inset Quotes eld
15975 \end_inset
15976
15977
15978 \family sans
15979 transparencies (slides)
15980 \family default
15981
15982 \begin_inset Quotes erd
15983 \end_inset
15984
15985
15986 \emph on
15987 のみ
15988 \emph default
15989 を説明しています.
15990 \end_layout
15991
15992 \begin_layout Standard
15993 \begin_inset VSpace bigskip
15994 \end_inset
15995
15996
15997 \end_layout
15998
15999 \begin_layout Standard
16000
16001 \family sans
16002 「slides (Foil\SpecialChar TeX
16003 )
16004 \family default
16005 」の説明をお探しならば,第
16006 \begin_inset CommandInset ref
16007 LatexCommand ref
16008 reference "sec:foiltex"
16009
16010 \end_inset
16011
16012 節をご覧ください.
16013 \family sans
16014 foils
16015 \family default
16016 クラス「
16017 \family sans
16018 slides (Foil\SpecialChar TeX
16019 )
16020 \family default
16021 」は,実際,本節で説明している既定
16022 \family sans
16023 slides
16024 \family default
16025 クラスよりも良いようです
16026 \begin_inset Foot
16027 status collapsed
16028
16029 \begin_layout Plain Layout
16030 \SpecialChar ldots
16031
16032 \family sans
16033 Foil\SpecialChar TeX
16034
16035 \family default
16036 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
16037 \end_layout
16038
16039 \end_inset
16040
16041
16042 \end_layout
16043
16044 \begin_layout Standard
16045 このクラスは,旧SLI\SpecialChar TeX
16046 パッケージを\SpecialChar LaTeX2e
16047 用に改良したものです.\SpecialChar LaTeX2e
16048 頒布版すべてが,このクラス(以下では単に「
16049 \family sans
16050 slides
16051 \family default
16052 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
16053 \family sans
16054 foils
16055 \family default
16056 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
16057 他のクラスにはできないが
16058 \family sans
16059 slides
16060 \family default
16061 ならばできることもあります.詳しくは以下をお読みください.
16062 \end_layout
16063
16064 \begin_layout Subsection
16065 使い始めるには
16066 \begin_inset CommandInset label
16067 LatexCommand label
16068 name "sec:slidesetup"
16069
16070 \end_inset
16071
16072
16073 \end_layout
16074
16075 \begin_layout Standard
16076 当然ながら,この文書クラスを使用するには,
16077 \family sans
16078 文書\SpecialChar menuseparator
16079 設定
16080 \family default
16081 ダイアログのクラスリストから「
16082 \family sans
16083 transparencies (slides)
16084 \family default
16085 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
16086 \end_layout
16087
16088 \begin_layout Itemize
16089
16090 \family sans
16091 用紙方向
16092 \family default
16093
16094 \family sans
16095 二段組文書
16096 \family default
16097 の各オプションは,あえて変更する必要はありません.これらのオプションは,
16098 \family sans
16099 slides
16100 \family default
16101 クラスではサポートされていないので,効果がありません.
16102 \end_layout
16103
16104 \begin_layout Itemize
16105
16106 \family sans
16107 ヘディング様式
16108 \family default
16109 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
16110 \end_layout
16111
16112 \begin_deeper
16113 \begin_layout Description
16114 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
16115 \end_layout
16116
16117 \begin_layout Description
16118 設定(headings)
16119 \family sans
16120  プレーン(plain)
16121 \family default
16122 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
16123 \end_layout
16124
16125 \begin_layout Description
16126 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
16127 \end_layout
16128
16129 \end_deeper
16130 \begin_layout Itemize
16131
16132 \family sans
16133 slides
16134 \family default
16135 クラスには,もう一つ
16136 \family typewriter
16137 clock
16138 \family default
16139 というオプションがあります.これを使用するには,
16140 \family sans
16141 クラスオプション
16142 \family default
16143 に「
16144 \family typewriter
16145 clock
16146 \family default
16147 」と入力してください.
16148 \end_layout
16149
16150 \begin_deeper
16151 \begin_layout Standard
16152 このオプションを使うと,
16153 \family sans
16154 注釈
16155 \family default
16156 にタイムマーカーを加えることができます.詳細は,第
16157 \begin_inset CommandInset ref
16158 LatexCommand ref
16159 reference "sec:スライド注釈"
16160
16161 \end_inset
16162
16163 節をご覧ください.
16164 \end_layout
16165
16166 \end_deeper
16167 \begin_layout Standard
16168
16169 \family sans
16170 slides
16171 \family default
16172 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
16173 \family typewriter
16174 slides.lyx
16175 \family default
16176 」を使用することもできます(新規ファイルを開く際に
16177 \family sans
16178 ファイル\SpecialChar menuseparator
16179 新規(ひな型使用)
16180 \family default
16181 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
16182 \end_layout
16183
16184 \begin_layout Subsection
16185 段落環境
16186 \end_layout
16187
16188 \begin_layout Subsubsection
16189
16190 \family sans
16191 サポートされている環境
16192 \end_layout
16193
16194 \begin_layout Standard
16195 新しく
16196 \family sans
16197 slides
16198 \family default
16199 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
16200 \family sans
16201 サンセリフ体
16202 \family default
16203 フォントの
16204 \family sans
16205 極大
16206 \family default
16207 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
16208 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
16209 \end_layout
16210
16211 \begin_layout Standard
16212 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
16213 ます.これは,
16214 \family sans
16215 slides
16216 \family default
16217 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
16218 \end_layout
16219
16220 \begin_layout Itemize
16221
16222 \family sans
16223 標準
16224 \end_layout
16225
16226 \begin_layout Itemize
16227
16228 \family sans
16229 箇条書き(記号)
16230 \end_layout
16231
16232 \begin_layout Itemize
16233
16234 \family sans
16235 箇条書き(連番)
16236 \end_layout
16237
16238 \begin_layout Itemize
16239
16240 \family sans
16241 箇条書き(記述)
16242 \end_layout
16243
16244 \begin_layout Itemize
16245
16246 \family sans
16247 箇条書き(一覧)
16248 \end_layout
16249
16250 \begin_layout Itemize
16251
16252 \family sans
16253 引用(字下げあり)
16254 \end_layout
16255
16256 \begin_layout Itemize
16257
16258 \family sans
16259 引用(字下げなし)
16260 \end_layout
16261
16262 \begin_layout Itemize
16263
16264 \family sans
16265 詩句
16266 \end_layout
16267
16268 \begin_layout Itemize
16269
16270 \family sans
16271 キャプション
16272 \end_layout
16273
16274 \begin_layout Itemize
16275
16276 \family sans
16277 \SpecialChar LyX
16278 コード
16279 \end_layout
16280
16281 \begin_layout Standard
16282 これ以外の標準的な環境,例えば節見出し用の環境などは
16283 \family sans
16284 slides
16285 \family default
16286 クラスでは使えません.
16287 \end_layout
16288
16289 \begin_layout Standard
16290 一方,以下の新しい環境があります.
16291 \end_layout
16292
16293 \begin_layout Itemize
16294
16295 \family sans
16296 スライド
16297 \end_layout
16298
16299 \begin_layout Itemize
16300
16301 \family sans
16302 オーバーレイ
16303 \end_layout
16304
16305 \begin_layout Itemize
16306
16307 \family sans
16308 注釈
16309 \end_layout
16310
16311 \begin_layout Itemize
16312
16313 \family sans
16314 不可視文
16315 \end_layout
16316
16317 \begin_layout Itemize
16318
16319 \family sans
16320 可視文
16321 \end_layout
16322
16323 \begin_layout Standard
16324 これら5つの環境は,\SpecialChar LyX
16325 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16326 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16327 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16328 マジック」が必要になります.
16329 \end_layout
16330
16331 \begin_layout Subsubsection
16332 新環境の癖
16333 \begin_inset CommandInset label
16334 LatexCommand label
16335 name "sec:スライドの癖"
16336
16337 \end_inset
16338
16339
16340 \end_layout
16341
16342 \begin_layout Standard
16343 5つの新しい環境にはすべて,\SpecialChar LyX
16344 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16345 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16346 \family sans
16347 スライド
16348 \family default
16349 環境は『
16350 \emph on
16351 ユーザーの手引き
16352 \emph default
16353 』で述べられているような段落環境ではなくなっています.
16354 \end_layout
16355
16356 \begin_layout Standard
16357
16358 \family sans
16359 スライド
16360 \family default
16361
16362 \family sans
16363 オーバーレイ
16364 \family default
16365
16366 \family sans
16367 注釈
16368 \family default
16369 は「疑似環境」だとお考えください.これらは節見出しや「
16370 \family sans
16371 キャプション
16372 \family default
16373 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16374 \family sans
16375 不可視文
16376 \family default
16377
16378 \family sans
16379 可視文
16380 \family default
16381 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16382 \end_layout
16383
16384 \begin_layout Standard
16385
16386 \family sans
16387 スライド
16388 \family default
16389
16390 \family sans
16391 オーバーレイ
16392 \family default
16393
16394 \family sans
16395 注釈
16396 \family default
16397
16398 \family sans
16399 不可視文
16400 \family default
16401
16402 \family sans
16403 可視文
16404 \family default
16405 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16406 \family sans
16407 スライド
16408 \family default
16409
16410 \family sans
16411 オーバーレイ
16412 \family default
16413
16414 \family sans
16415 注釈
16416 \family default
16417
16418 \family sans
16419 不可視文
16420 \family default
16421
16422 \family sans
16423 可視文
16424 \family default
16425 では,まったく意味がなく,\SpecialChar LyX
16426 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16427 \end_layout
16428
16429 \begin_layout Standard
16430 長めのラベルの後に文章を入れる
16431 \emph on
16432 必要は
16433 \emph default
16434 まったく
16435 \emph on
16436 ない
16437 \emph default
16438 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16439
16440 \family sans
16441 Return
16442 \family default
16443 を押してください.
16444 \end_layout
16445
16446 \begin_layout Standard
16447 一方,説明文を入れたくない場合には,\SpecialChar LyX
16448 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16449 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16450 こで以下のようにしてください.
16451 \end_layout
16452
16453 \begin_layout Itemize
16454 新しい
16455 \family sans
16456 スライド
16457 \family default
16458
16459 \family sans
16460 オーバーレイ
16461 \family default
16462
16463 \family sans
16464 注釈
16465 \family default
16466
16467 \family sans
16468 不可視文
16469 \family default
16470
16471 \family sans
16472 可視文
16473 \family default
16474
16475 \emph on
16476 中に入れる
16477 \emph default
16478 文章を入力してください.
16479 \end_layout
16480
16481 \begin_layout Itemize
16482 段落の先頭に移動します.
16483 \end_layout
16484
16485 \begin_layout Itemize
16486 次に
16487 \family sans
16488 Return
16489 \family default
16490 を押します.
16491 \end_layout
16492
16493 \begin_layout Itemize
16494 最後に,この新しい空の段落を
16495 \family sans
16496 スライド
16497 \family default
16498
16499 \family sans
16500 オーバーレイ
16501 \family default
16502
16503 \family sans
16504 注釈
16505 \family default
16506
16507 \family sans
16508 不可視文
16509 \family default
16510
16511 \family sans
16512 可視文
16513 \family default
16514 に変更します.
16515 \end_layout
16516
16517 \begin_layout Standard
16518 将来の\SpecialChar LyX
16519 では,このような癖が解決されることを祈っています\SpecialChar ldots
16520
16521 \begin_inset Foot
16522 status collapsed
16523
16524 \begin_layout Plain Layout
16525 (訳註)ここの記述は古くなっています.
16526 \end_layout
16527
16528 \end_inset
16529
16530
16531 \end_layout
16532
16533 \begin_layout Subsection
16534
16535 \family sans
16536 スライド
16537 \family default
16538
16539 \family sans
16540 オーバーレイ
16541 \family default
16542
16543 \family sans
16544 注釈で発表用のスライドを作る
16545 \end_layout
16546
16547 \begin_layout Subsubsection
16548
16549 \family sans
16550 スライド
16551 \family default
16552 環境を使う
16553 \end_layout
16554
16555 \begin_layout Standard
16556 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16557 料を準備するうえで
16558 \family sans
16559 slides
16560 \family default
16561 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16562 の哲学です).
16563 \end_layout
16564
16565 \begin_layout Standard
16566
16567 \family sans
16568 スライド
16569 \family default
16570 環境を選択すれば(方法は第
16571 \begin_inset CommandInset ref
16572 LatexCommand ref
16573 reference "sec:スライドの癖"
16574
16575 \end_inset
16576
16577 節参照のこと),\SpecialChar LyX
16578 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16579 環境は,すべて新規スライドに入ります.簡単ですよね.
16580 \end_layout
16581
16582 \begin_layout Standard
16583 Slidesは,おそらく\SpecialChar LyX
16584 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16585 \family sans
16586 段落レイアウト
16587 \family default
16588 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16589 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16590 ,一枚に収まらないスライドでは,
16591 \family sans
16592 オーバーレイ
16593 \family default
16594 を使用すると干渉する恐れがあります.
16595 \end_layout
16596
16597 \begin_layout Standard
16598
16599 \family sans
16600 オーバーレイ
16601 \family default
16602 環境と
16603 \family sans
16604 注釈
16605 \family default
16606 環境も,
16607 \family sans
16608 スライド
16609 \family default
16610 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16611 \noun on
16612 新規オーバーレイ
16613 \noun default
16614 :」ないし「
16615 \noun on
16616 新規注釈:
16617 \noun default
16618 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16619 \end_layout
16620
16621 \begin_layout Standard
16622
16623 \family sans
16624 スライド
16625 \family default
16626 と同様に,
16627 \family sans
16628 オーバーレイ
16629 \family default
16630
16631 \family sans
16632 注釈
16633 \family default
16634 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16635 \family sans
16636 注釈
16637 \family default
16638
16639 \family sans
16640 オーバーレイ
16641 \family default
16642 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16643 \end_layout
16644
16645 \begin_layout Subsubsection
16646
16647 \family sans
16648 スライドでオーバーレイを使用する
16649 \end_layout
16650
16651 \begin_layout Standard
16652
16653 \family sans
16654 オーバーレイ
16655 \family default
16656 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16657 \family sans
16658 スライド
16659 \family default
16660 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16661 \family sans
16662 スライド
16663 \family default
16664 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16665 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16666 \family sans
16667 オーバーレイ
16668 \family default
16669 環境を使えば,もっと楽になります.
16670 \end_layout
16671
16672 \begin_layout Standard
16673
16674 \family sans
16675 オーバーレイ
16676 \family default
16677 は,「親」
16678 \family sans
16679 スライド
16680 \family default
16681 のページ番号を引継ぎ,その後に「
16682 \family typewriter
16683 -a
16684 \family default
16685 」を付け加えます
16686 \begin_inset Foot
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 想像できるように,複数のオーバーレイがあれば,「
16691 \family typewriter
16692 -a
16693 \family default
16694 」「
16695 \family typewriter
16696 -b
16697 \family default
16698 」「
16699 \family typewriter
16700 -c
16701 \family default
16702 」などが親スライドのページ番号に付け加えられます.
16703 \end_layout
16704
16705 \end_inset
16706
16707 .当然のことながら,
16708 \family sans
16709 スライド
16710 \family default
16711
16712 \family sans
16713 オーバーレイ
16714 \family default
16715 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16716 \family sans
16717 オーバーレイ
16718 \family default
16719
16720 \family sans
16721 スライド
16722 \family default
16723 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16724 では,
16725 \family sans
16726 オーバーレイ
16727 \family default
16728 のラベルを
16729 \family sans
16730 スライド
16731 \family default
16732 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16733 \family sans
16734 オーバーレイ
16735 \family default
16736 と親
16737 \family sans
16738 スライド
16739 \family default
16740 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16741 \end_layout
16742
16743 \begin_layout Standard
16744 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16745 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16746 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16747 \family sans
16748 不可視文
16749 \family default
16750
16751 \family sans
16752 可視文
16753 \family default
16754 を使用する方法があります.
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 \begin_inset CommandInset ref
16768 LatexCommand ref
16769 reference "sec:スライドの癖"
16770
16771 \end_inset
16772
16773 節で述べたように,この2つの環境の
16774 \emph on
16775
16776 \emph default
16777 には何も置くことができません.
16778 \family sans
16779 不可視文
16780 \family default
16781 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16782 \family sans
16783 スライド
16784 \family default
16785 (あるいは
16786 \family sans
16787 オーバーレイ
16788 \family default
16789 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16790 \end_layout
16791
16792 \begin_layout Standard
16793
16794 \family sans
16795 可視文
16796 \family default
16797 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16798 \family sans
16799 スライド
16800 \family default
16801
16802 \family sans
16803 オーバーレイ
16804 \family default
16805
16806 \family sans
16807 注釈
16808 \family default
16809 を開始すると,
16810 \family sans
16811 不可視文
16812 \family default
16813 は自動的に終了されることに注意してください.したがって,
16814 \family sans
16815 スライド
16816 \family default
16817 の終わりでは,
16818 \family sans
16819 可視文
16820 \family default
16821 を使用する必要はありません.
16822 \end_layout
16823
16824 \begin_layout Standard
16825 ここまでで,
16826 \family sans
16827 スライド
16828 \family default
16829
16830 \family sans
16831 オーバーレイ
16832 \family default
16833 上で
16834 \family sans
16835 不可視文
16836 \family default
16837
16838 \family sans
16839 可視文
16840 \family default
16841 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16842 \end_layout
16843
16844 \begin_layout Enumerate
16845 メインのスライドか
16846 \family sans
16847 オーバーレイ
16848 \family default
16849 かに関わらず,スライド上に現れるすべてを含んだ
16850 \family sans
16851 スライド
16852 \family default
16853 を作成します.
16854 \end_layout
16855
16856 \begin_layout Enumerate
16857
16858 \family sans
16859 オーバーレイ
16860 \family default
16861 のみに表示するすべての図や段落の前に,
16862 \family sans
16863 不可視文
16864 \family default
16865 環境を挿入し,必要ならば,
16866 \family sans
16867 オーバーレイ
16868 \family default
16869 のみの文章の後に
16870 \family sans
16871 可視文
16872 \family default
16873 環境を挿入します.
16874 \end_layout
16875
16876 \begin_layout Enumerate
16877
16878 \family sans
16879 スライド
16880 \family default
16881 の直後から,
16882 \family sans
16883 オーバーレイ
16884 \family default
16885 を開始します.
16886 \end_layout
16887
16888 \begin_layout Enumerate
16889 この
16890 \family sans
16891 スライド
16892 \family default
16893 の内容を
16894 \family sans
16895 オーバーレイ
16896 \family default
16897 にコピーします.
16898 \end_layout
16899
16900 \begin_layout Enumerate
16901
16902 \family sans
16903 オーバーレイ
16904 \family default
16905 内部の
16906 \family sans
16907 不可視文
16908 \family default
16909 行をすべて
16910 \family sans
16911 不可視文
16912 \family default
16913 に変更し,
16914 \family sans
16915 可視文
16916 \family default
16917
16918 \family sans
16919 不可視文
16920 \family default
16921 に変更します.
16922 \end_layout
16923
16924 \begin_layout Standard
16925 これだけです.これで
16926 \family sans
16927 オーバーレイ
16928 \family default
16929 ができあがりました.
16930 \end_layout
16931
16932 \begin_layout Standard
16933 \SpecialChar LyX
16934  
16935 \family sans
16936 slides
16937 \family default
16938 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16939 実現するためには,\SpecialChar LaTeX
16940 コードを埋め込む必要があります
16941 \begin_inset Foot
16942 status collapsed
16943
16944 \begin_layout Plain Layout
16945 このコマンドは,
16946 \end_layout
16947
16948 \begin_layout Itemize
16949
16950 \family typewriter
16951 {
16952 \backslash
16953 invisible \SpecialChar ldots
16954  }
16955 \end_layout
16956
16957 \begin_layout Itemize
16958
16959 \family typewriter
16960 {
16961 \backslash
16962 visible \SpecialChar ldots
16963  }
16964 \end_layout
16965
16966 \begin_layout Plain Layout
16967 \SpecialChar ldots
16968 のような形となり,\SpecialChar TeX
16969 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16970 \family typewriter
16971
16972 \backslash
16973 invisible
16974 \family default
16975 ないし
16976 \family typewriter
16977
16978 \backslash
16979 visible
16980 \family default
16981 コマンドの後ろ)に入れます.\SpecialChar TeX
16982 としてマークする方法がわからない場合は,
16983 \emph on
16984 ユーザーの手引き
16985 \emph default
16986 をご参照ください.
16987 \end_layout
16988
16989 \end_inset
16990
16991
16992 \end_layout
16993
16994 \begin_layout Subsubsection
16995
16996 \family sans
16997 スライドで注釈を使う
16998 \family default
16999
17000 \begin_inset CommandInset label
17001 LatexCommand label
17002 name "sec:スライド注釈"
17003
17004 \end_inset
17005
17006
17007 \end_layout
17008
17009 \begin_layout Standard
17010
17011 \family sans
17012 オーバーレイ
17013 \family default
17014 と同様,
17015 \family sans
17016 注釈
17017 \family default
17018 も「親」
17019 \family sans
17020 スライド
17021 \family default
17022 に関連付けられています.ここでも\SpecialChar LyX
17023
17024 \family sans
17025 スライド
17026 \family default
17027 クラスは視覚的な効果を与えています.
17028 \family sans
17029 注釈
17030 \family default
17031 のラベルは
17032 \family sans
17033 スライド
17034 \family default
17035 よりも短く(オーバーレイのラベルよりも長いですが),
17036 \family sans
17037 オーバーレイ
17038 \family default
17039 のラベルと同様,派手な赤紫色です.加えて,印刷した
17040 \family sans
17041 注釈
17042 \family default
17043 には,「親」スライドのページ番号に「
17044 \family typewriter
17045 -
17046 \family default
17047 1」「
17048 \family typewriter
17049 -
17050 \family default
17051 2」「
17052 \family typewriter
17053 -
17054 \family default
17055 3」等を付けたページ番号が付けられます.1つの
17056 \family sans
17057 スライド
17058 \family default
17059 には,複数の
17060 \family sans
17061 注釈
17062 \family default
17063 を関連付けることができるので,
17064 \family sans
17065 スライド
17066 \family default
17067
17068 \family sans
17069 オーバーレイ
17070 \family default
17071 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
17072 \end_layout
17073
17074 \begin_layout Standard
17075
17076 \family sans
17077 注釈
17078 \family default
17079 の目的は明らかです.
17080 \family sans
17081 スライド
17082 \family default
17083 に関して付け加えたいことを書き留めておくことです.特定の
17084 \family sans
17085 スライド
17086 \family default
17087 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
17088
17089 \family sans
17090 スライド
17091 \family default
17092 クラスは,
17093 \noun on
17094 Sli
17095 \noun default
17096 \SpecialChar TeX
17097 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
17098 コードを使用することに頼らなくてはなりません.
17099 \end_layout
17100
17101 \begin_layout Standard
17102 タイムマーカを使用するには,クラスオプション「
17103 \family typewriter
17104 clock
17105 \family default
17106 」を追加指定する必要があります(第
17107 \begin_inset CommandInset ref
17108 LatexCommand ref
17109 reference "sec:slidesetup"
17110
17111 \end_inset
17112
17113 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
17114 \family sans
17115 注釈
17116 \family default
17117 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
17118 コマンド「
17119 \family typewriter
17120
17121 \backslash
17122 settime{}
17123 \family default
17124 」および「
17125 \family typewriter
17126
17127 \backslash
17128 addtime{}
17129 \family default
17130 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
17131 \family typewriter
17132
17133 \backslash
17134 settime{}
17135 \family default
17136 」は,タイムマーカを特定の時間に設定し,「
17137 \family typewriter
17138
17139 \backslash
17140 addtime{}
17141 \family default
17142 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
17143 \family sans
17144 注釈
17145 \family default
17146 を用いれば,特定の
17147 \family sans
17148 スライド
17149 \family default
17150 にどれだけの時間をかけるのか忘れないでいられます.
17151 \end_layout
17152
17153 \begin_layout Standard
17154 最後に,説明しておくべき機能がもう一つあります.当然ながら,
17155 \family sans
17156 スライド
17157 \family default
17158
17159 \family sans
17160 オーバーレイ
17161 \family default
17162 はすべてスライドに,
17163 \family sans
17164 注釈
17165 \family default
17166 はすべて普通の紙に印刷したいはずです.しかしながら,
17167 \family sans
17168 注釈
17169 \family default
17170 は関連付けられた親スライドの直後に
17171 \emph on
17172 来なくてはなりません
17173 \emph default
17174 .ユーザーはどうしたら良いのでしょうか.
17175 \end_layout
17176
17177 \begin_layout Standard
17178 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
17179 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
17180 \family typewriter
17181
17182 \backslash
17183 onlyslides{
17184 \backslash
17185 slides}
17186 \family default
17187 」は,出力に
17188 \family sans
17189 スライド
17190 \family default
17191
17192 \family sans
17193 オーバーレイ
17194 \family default
17195 のみが含まれるようにするものです.同様に,「
17196 \family typewriter
17197
17198 \backslash
17199 onlynotes{
17200 \backslash
17201 notes}
17202 \family default
17203 」は
17204 \family sans
17205 注釈
17206 \family default
17207 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
17208 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
17209 らば,まず
17210 \family typewriter
17211
17212 \backslash
17213 onlyslides{
17214 \backslash
17215 slides}
17216 \family default
17217 のコメントを外して,現ファイル名に「*
17218 \family typewriter
17219 -slides
17220 \family default
17221 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
17222 \family typewriter
17223
17224 \backslash
17225 onlynotes{
17226 \backslash
17227 notes
17228 \family default
17229 }」のコメントを外して,これを「
17230 \family typewriter
17231 *-notes.ps
17232 \family default
17233 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
17234 \end_layout
17235
17236 \begin_layout Standard
17237
17238 \family typewriter
17239
17240 \backslash
17241 onlyslides{}
17242 \family default
17243 」および「
17244 \family typewriter
17245
17246 \backslash
17247 onlynotes{}
17248 \family default
17249 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
17250 の良書をご覧ください.
17251 \end_layout
17252
17253 \begin_layout Subsection
17254
17255 \family sans
17256 slides
17257 \family default
17258 クラスのひな型ファイル
17259 \end_layout
17260
17261 \begin_layout Standard
17262
17263 \family sans
17264 slides
17265 \family default
17266 クラス用のひな型ファイルとして「
17267 \family typewriter
17268 slides.lyx
17269 \family default
17270 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
17271 \family sans
17272 ファイル\SpecialChar menuseparator
17273 新規(ひな型使用)
17274 \family default
17275 メニューを選択してください.すると新規ファイルには,
17276 \family sans
17277 スライド
17278 \family default
17279
17280 \family sans
17281 オーバーレイ
17282 \family default
17283
17284 \family sans
17285 注釈
17286 \family default
17287 の組が,例として含まれており,
17288 \family sans
17289 スライド
17290 \family default
17291
17292 \family sans
17293 オーバーレイ
17294 \family default
17295 には,さらに
17296 \family sans
17297 不可視文
17298 \family default
17299
17300 \family sans
17301 可視文
17302 \family default
17303 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
17304 \end_layout
17305
17306 \begin_layout LyX-Code
17307 % Uncomment to print out only slides and overlays
17308 \end_layout
17309
17310 \begin_layout LyX-Code
17311 %
17312 \end_layout
17313
17314 \begin_layout LyX-Code
17315 %
17316 \backslash
17317 onlyslides{
17318 \backslash
17319 slides}
17320 \begin_inset Newline newline
17321 \end_inset
17322
17323  
17324 \end_layout
17325
17326 \begin_layout LyX-Code
17327 % Uncomment to print out only notes
17328 \end_layout
17329
17330 \begin_layout LyX-Code
17331 %
17332 \end_layout
17333
17334 \begin_layout LyX-Code
17335 %
17336 \backslash
17337 onlynotes{
17338 \backslash
17339 notes}
17340 \end_layout
17341
17342 \begin_layout Standard
17343 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17344 の組み込みクラスである「
17345 \noun on
17346 Sli\SpecialChar TeX
17347
17348 \noun default
17349 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17350 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17351 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17352 \family sans
17353 Foils
17354 \family default
17355 クラス(第
17356 \begin_inset CommandInset ref
17357 LatexCommand ref
17358 reference "sec:foiltex"
17359
17360 \end_inset
17361
17362 節参照)や「
17363 \family typewriter
17364 seminar
17365 \family default
17366 」パッケージ(一部の\SpecialChar TeX
17367 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17368 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17369 さい.
17370 \end_layout
17371
17372 \begin_layout Chapter
17373 ソフトウェアを追加する必要がある \SpecialChar LyX
17374 機能
17375 \end_layout
17376
17377 \begin_layout Section
17378 \SpecialChar TeX
17379 のチェック
17380 \end_layout
17381
17382 \begin_layout Standard
17383
17384 \noun on
17385 Asger Alstrup
17386 \noun default
17387
17388 \end_layout
17389
17390 \begin_layout Subsection
17391 はじめに
17392 \end_layout
17393
17394 \begin_layout Standard
17395
17396 \family typewriter
17397 chktex
17398 \family default
17399 プログラムが導入されていると
17400 \begin_inset Foot
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 \SpecialChar LaTeX
17405 頒布版としてMiK\SpecialChar TeX
17406 を使用している場合には,
17407 \family typewriter
17408 chktex
17409 \family default
17410 はまだ利用可能ではありません.
17411 \end_layout
17412
17413 \end_inset
17414
17415
17416 \family sans
17417 ツール
17418 \family default
17419 メニューの下に,
17420 \family sans
17421 \SpecialChar TeX
17422 構文チェック
17423 \family default
17424 という項目が表示されます.
17425 \family typewriter
17426 chktex
17427 \family default
17428 は,CTAN
17429 \begin_inset Newline newline
17430 \end_inset
17431
17432
17433 \begin_inset CommandInset href
17434 LatexCommand href
17435 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17436 literal "false"
17437
17438 \end_inset
17439
17440 から入手することができます.
17441 \end_layout
17442
17443 \begin_layout Standard
17444
17445 \family sans
17446 Chk\SpecialChar TeX
17447
17448 \family default
17449 パッケージは,\SpecialChar LaTeX
17450 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17451 \begin_inset Flex Noun
17452 status collapsed
17453
17454 \begin_layout Plain Layout
17455 Jens T.
17456  Berger Thielemann
17457 \end_layout
17458
17459 \end_inset
17460
17461 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17462 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17463 \family typewriter
17464 lint
17465 \family default
17466 であるとも言えます.
17467 \end_layout
17468
17469 \begin_layout Standard
17470 さて,\SpecialChar LyX
17471 はつねに正しい\SpecialChar LaTeX
17472 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17473 で何をするというのでしょうか.答えは簡単です.
17474 \family typewriter
17475 lint
17476 \family default
17477 がC言語プログラムの
17478 \emph on
17479 文法
17480 \emph default
17481 をチェックするだけでなく,打ち間違いによる
17482 \emph on
17483 意味上の
17484 \emph default
17485 チェックも行うように,
17486 \family sans
17487 Chk\SpecialChar TeX
17488
17489 \family default
17490 は,文法エラーの他に犯しがちな
17491 \emph on
17492 写植上の
17493 \emph default
17494 誤りも検出してくれるからです.
17495 \family sans
17496 Chk\SpecialChar TeX
17497
17498 \family default
17499 は,以下のような誤りを検出することができます.
17500 \end_layout
17501
17502 \begin_layout Itemize
17503 省略記号の検出:
17504 \begin_inset Newline newline
17505 \end_inset
17506
17507 ...ではなく\SpecialChar ldots
17508 を使わなくてはなりません
17509 \end_layout
17510
17511 \begin_layout Itemize
17512 括弧の前後にスペースを置かない:
17513 \begin_inset Newline newline
17514 \end_inset
17515
17516 ( wrong spacing ):誤った空白
17517 \end_layout
17518
17519 \begin_layout Itemize
17520 よく使われる省略形の後ろは通常スペースにする:
17521 \begin_inset Newline newline
17522 \end_inset
17523
17524 e.
17525 \begin_inset space \thinspace{}
17526 \end_inset
17527
17528 g.
17529 \begin_inset space \space{}
17530 \end_inset
17531
17532 is too wide spacing.:広すぎる空白
17533 \end_layout
17534
17535 \begin_layout Itemize
17536 直前の文章が大文字で終わっているときに,文末スペースに直す:
17537 \begin_inset Newline newline
17538 \end_inset
17539
17540 This is a TEST.
17541  And this is wrong spacing.:誤った空白
17542 \end_layout
17543
17544 \begin_layout Itemize
17545 ラベルや類似コマンドの前のスペース:
17546 \begin_inset Newline newline
17547 \end_inset
17548
17549 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17550 \begin_inset CommandInset label
17551 LatexCommand label
17552 name "sec:chktex"
17553
17554 \end_inset
17555
17556  
17557 \begin_inset Foot
17558 status collapsed
17559
17560 \begin_layout Plain Layout
17561 この脚注は,正しくないページに行ってしまう恐れがあります.
17562 \end_layout
17563
17564 \end_inset
17565
17566  このラベルは離れすぎです.
17567 \end_layout
17568
17569 \begin_layout Itemize
17570 参照の前にハードスペースではなくスペース:
17571 \begin_inset Newline newline
17572 \end_inset
17573
17574 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17575 \begin_inset CommandInset ref
17576 LatexCommand ref
17577 reference "sec:chktex"
17578
17579 \end_inset
17580
17581 節をご覧ください.
17582 \end_layout
17583
17584 \begin_layout Itemize
17585 数字のあいだで
17586 \begin_inset Formula $\times$
17587 \end_inset
17588
17589 ではなく「x」が使われている:
17590 \begin_inset Newline newline
17591 \end_inset
17592
17593 2x2は,
17594 \begin_inset Formula $2\times2$
17595 \end_inset
17596
17597 よりも安っぽく見えます.
17598 \end_layout
17599
17600 \begin_layout Standard
17601 などなど\SpecialChar ldots
17602
17603 \family sans
17604 Chk\SpecialChar TeX
17605
17606 \family default
17607 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17608 \end_layout
17609
17610 \begin_layout Subsection
17611 使いかた
17612 \end_layout
17613
17614 \begin_layout Standard
17615 このプログラムを導入したならば,使うのは
17616 \family sans
17617 ツール\SpecialChar menuseparator
17618 \SpecialChar TeX
17619 構文チェック
17620 \family default
17621 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17622 は使用中の文書の\SpecialChar LaTeX
17623 ファイルを生成して,
17624 \family sans
17625 Chk\SpecialChar TeX
17626
17627 \family default
17628 を起動し,当該ファイルを検査しますが,
17629 \family sans
17630 Chk\SpecialChar TeX
17631
17632 \family default
17633 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17634 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17635 \family sans
17636 移動\SpecialChar menuseparator
17637 エラー
17638 \family default
17639 を選択するか,既定の
17640 \family typewriter
17641 cua
17642 \family default
17643
17644 \begin_inset Flex Ruby
17645 status collapsed
17646
17647 \begin_layout Plain Layout
17648
17649 \begin_inset Argument post:1
17650 status collapsed
17651
17652 \begin_layout Plain Layout
17653 キー
17654 \end_layout
17655
17656 \end_inset
17657
17658
17659 \end_layout
17660
17661 \end_inset
17662
17663 設定ファイルならば
17664 \begin_inset Flex Ruby
17665 status collapsed
17666
17667 \begin_layout Plain Layout
17668
17669 \family roman
17670 \series medium
17671 \shape up
17672 \size normal
17673 \emph off
17674 \bar no
17675 \noun off
17676 \color none
17677 捷径
17678 \family default
17679 \series default
17680 \shape default
17681 \size default
17682 \emph default
17683 \bar default
17684 \noun default
17685 \color inherit
17686
17687 \begin_inset Argument post:1
17688 status collapsed
17689
17690 \begin_layout Plain Layout
17691 ショートカット
17692 \end_layout
17693
17694 \end_inset
17695
17696
17697 \end_layout
17698
17699 \end_inset
17700
17701
17702 \family sans
17703 C-g
17704 \family default
17705 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17706 \family typewriter
17707 cua
17708 \family default
17709 鍵設定の場合には捷径鍵
17710 \family sans
17711 C-i
17712 \family default
17713
17714 \family typewriter
17715 emacs
17716 \family default
17717 鍵設定の場合は捷径鍵
17718 \family sans
17719 C-o
17720 \family default
17721 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17722 \family sans
17723 Chk\SpecialChar TeX
17724
17725 \family default
17726 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17727 があるのです.
17728 \end_layout
17729
17730 \begin_layout Standard
17731 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17732 警告のほとんどは実際には警告に値しません.
17733 \end_layout
17734
17735 \begin_layout Subsection
17736 微調整のしかた
17737 \end_layout
17738
17739 \begin_layout Standard
17740 場合によっては,
17741 \family sans
17742 Chk\SpecialChar TeX
17743
17744 \family default
17745 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17746 \family sans
17747 Chk\SpecialChar TeX
17748
17749 \family default
17750 を無効にするか,あなたにもう少し合うように
17751 \family sans
17752 Chk\SpecialChar TeX
17753
17754 \family default
17755 を調整することができます.
17756 \end_layout
17757
17758 \begin_layout Standard
17759
17760 \family sans
17761 Chk\SpecialChar TeX
17762
17763 \family default
17764 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17765 における
17766 \family sans
17767 Chk\SpecialChar TeX
17768
17769 \family default
17770 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17771 は,
17772 \family sans
17773 Chk\SpecialChar TeX
17774
17775 \family default
17776 出力
17777 \begin_inset Foot
17778 status collapsed
17779
17780 \begin_layout Plain Layout
17781
17782 \family sans
17783 chktex
17784 \family default
17785 の実際の出力は,
17786 \family sans
17787 chktex
17788 \family default
17789 を実行した直後に
17790 \family sans
17791 文書\SpecialChar menuseparator
17792 \SpecialChar LaTeX
17793 ログ
17794 \family default
17795 を使えば見ることができます.
17796 \end_layout
17797
17798 \end_inset
17799
17800 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17801 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17802 ためには,以下の2つの方法があります.
17803 \end_layout
17804
17805 \begin_layout Itemize
17806
17807 \family sans
17808 \begin_inset Flex MenuItem
17809 status collapsed
17810
17811 \begin_layout Plain Layout
17812
17813 \family sans
17814 ツール\SpecialChar menuseparator
17815 設定\SpecialChar menuseparator
17816 出力\SpecialChar menuseparator
17817 \SpecialChar LaTeX
17818 \SpecialChar menuseparator
17819 Check\SpecialChar TeX
17820 コマンド
17821 \end_layout
17822
17823 \end_inset
17824
17825
17826 \family default
17827 中の
17828 \family sans
17829 Chk\SpecialChar TeX
17830
17831 \family default
17832 起動コマンドラインを調整するか,グローバルな
17833 \family sans
17834 Chk\SpecialChar TeX
17835
17836 \family default
17837 の設定ファイル(通常は
17838 \begin_inset Flex Code
17839 status collapsed
17840
17841 \begin_layout Plain Layout
17842 chktexrc
17843 \end_layout
17844
17845 \end_inset
17846
17847 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17848 \end_layout
17849
17850 \begin_layout Itemize
17851
17852 \family sans
17853 ファイル\SpecialChar menuseparator
17854 書き出し\SpecialChar menuseparator
17855 \SpecialChar LaTeX
17856
17857 \family default
17858 を使って文書を\SpecialChar LaTeX
17859 ファイルに変換し,そのファイルに対して
17860 \family typewriter
17861 chktex
17862 \family default
17863 を手動で実行します.このようにすると,\SpecialChar LyX
17864 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17865 \end_layout
17866
17867 \begin_layout Standard
17868 以下は,
17869 \family sans
17870 設定
17871 \family default
17872 で有効化・無効化できる警告メッセージです.警告を無効にするには
17873 \family typewriter
17874 -n#
17875 \family default
17876 ,有効にするには
17877 \family typewriter
17878 -w#
17879 \family default
17880 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17881 \family typewriter
17882 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17883 \family default
17884 "です.
17885 \end_layout
17886
17887 \begin_layout Standard
17888 \SpecialChar LyX
17889 は,
17890 \family typewriter
17891 chktex
17892 \family default
17893 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17894 \end_layout
17895
17896 \begin_layout Enumerate
17897
17898 \size small
17899 \emph on
17900 Command terminated with space.
17901 \end_layout
17902
17903 \begin_layout Enumerate
17904
17905 \size small
17906 Non-breaking space (
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 ) should have been used.
17919 \end_layout
17920
17921 \begin_layout Enumerate
17922
17923 \size small
17924 \emph on
17925 You should enclose the previous parenthesis with 
17926 \begin_inset Quotes eld
17927 \end_inset
17928
17929
17930 \family typewriter
17931 {}
17932 \family default
17933
17934 \begin_inset Quotes erd
17935 \end_inset
17936
17937 .
17938 \end_layout
17939
17940 \begin_layout Enumerate
17941
17942 \size small
17943 Italic correction (
17944 \begin_inset Quotes eld
17945 \end_inset
17946
17947
17948 \family typewriter
17949
17950 \backslash
17951 /
17952 \family default
17953
17954 \begin_inset Quotes erd
17955 \end_inset
17956
17957 ) found in non-italic buffer.
17958 \end_layout
17959
17960 \begin_layout Enumerate
17961
17962 \size small
17963 Italic correction (
17964 \begin_inset Quotes eld
17965 \end_inset
17966
17967
17968 \family typewriter
17969
17970 \backslash
17971 /
17972 \family default
17973
17974 \begin_inset Quotes erd
17975 \end_inset
17976
17977 ) found more than once.
17978 \end_layout
17979
17980 \begin_layout Enumerate
17981
17982 \size small
17983 \emph on
17984 No italic correction (
17985 \begin_inset Quotes eld
17986 \end_inset
17987
17988
17989 \family typewriter
17990
17991 \backslash
17992 /
17993 \family default
17994
17995 \begin_inset Quotes erd
17996 \end_inset
17997
17998 ) found.
17999 \end_layout
18000
18001 \begin_layout Enumerate
18002
18003 \size small
18004 Accent command 
18005 \begin_inset Quotes eld
18006 \end_inset
18007
18008
18009 \family typewriter
18010 cmd
18011 \family default
18012
18013 \begin_inset Quotes erd
18014 \end_inset
18015
18016  needs use of 
18017 \begin_inset Quotes eld
18018 \end_inset
18019
18020
18021 \family typewriter
18022 cmd
18023 \family default
18024
18025 \begin_inset Quotes erd
18026 \end_inset
18027
18028 .
18029 \end_layout
18030
18031 \begin_layout Enumerate
18032
18033 \size small
18034 Wrong length of dash may have been used.
18035 \end_layout
18036
18037 \begin_layout Enumerate
18038
18039 \size small
18040 \emph on
18041 \begin_inset Quotes eld
18042 \end_inset
18043
18044
18045 \family typewriter
18046 %s
18047 \family default
18048
18049 \begin_inset Quotes erd
18050 \end_inset
18051
18052  expected, found 
18053 \begin_inset Quotes eld
18054 \end_inset
18055
18056
18057 \family typewriter
18058 %s
18059 \family default
18060
18061 \begin_inset Quotes erd
18062 \end_inset
18063
18064 .
18065 \end_layout
18066
18067 \begin_layout Enumerate
18068
18069 \size small
18070 Solo 
18071 \begin_inset Quotes eld
18072 \end_inset
18073
18074
18075 \family typewriter
18076 %s
18077 \family default
18078
18079 \begin_inset Quotes erd
18080 \end_inset
18081
18082  found.
18083 \end_layout
18084
18085 \begin_layout Enumerate
18086
18087 \size small
18088 You should use 
18089 \begin_inset Quotes eld
18090 \end_inset
18091
18092
18093 \family typewriter
18094 %s
18095 \family default
18096
18097 \begin_inset Quotes erd
18098 \end_inset
18099
18100  to achieve an ellipsis.
18101 \end_layout
18102
18103 \begin_layout Enumerate
18104
18105 \size small
18106 Inter-word spacing (
18107 \begin_inset Quotes eld
18108 \end_inset
18109
18110
18111 \family typewriter
18112
18113 \backslash
18114
18115 \family default
18116  
18117 \begin_inset Quotes eld
18118 \end_inset
18119
18120 ) should perhaps be used.
18121 \end_layout
18122
18123 \begin_layout Enumerate
18124
18125 \size small
18126 Inter-sentence spacing (
18127 \begin_inset Quotes eld
18128 \end_inset
18129
18130
18131 \family typewriter
18132
18133 \backslash
18134 @
18135 \family default
18136
18137 \begin_inset Quotes erd
18138 \end_inset
18139
18140 ) should perhaps be used.
18141 \end_layout
18142
18143 \begin_layout Enumerate
18144
18145 \size small
18146 Could not find argument for command.
18147 \end_layout
18148
18149 \begin_layout Enumerate
18150
18151 \size small
18152 No match found for 
18153 \begin_inset Quotes eld
18154 \end_inset
18155
18156
18157 \family typewriter
18158 %s
18159 \family default
18160
18161 \begin_inset Quotes erd
18162 \end_inset
18163
18164 .
18165 \end_layout
18166
18167 \begin_layout Enumerate
18168
18169 \size small
18170 Math mode still on at end of \SpecialChar LaTeX
18171  file.
18172 \end_layout
18173
18174 \begin_layout Enumerate
18175
18176 \size small
18177 Number of 
18178 \begin_inset Quotes eld
18179 \end_inset
18180
18181
18182 \family typewriter
18183 char
18184 \family default
18185
18186 \begin_inset Quotes erd
18187 \end_inset
18188
18189  doesn't match the number of 
18190 \begin_inset Quotes eld
18191 \end_inset
18192
18193
18194 \family typewriter
18195 char
18196 \family default
18197
18198 \begin_inset Quotes erd
18199 \end_inset
18200
18201 .
18202 \end_layout
18203
18204 \begin_layout Enumerate
18205
18206 \size small
18207 You should use either 
18208 \family typewriter
18209
18210 \begin_inset Quotes eld
18211 \end_inset
18212
18213
18214 \family default
18215  or 
18216 \family typewriter
18217
18218 \begin_inset Quotes erd
18219 \end_inset
18220
18221
18222 \family default
18223  as an alternative to 
18224 \begin_inset Quotes eld
18225 \end_inset
18226
18227
18228 \family typewriter
18229 "
18230 \family default
18231
18232 \begin_inset Quotes erd
18233 \end_inset
18234
18235 .
18236 \end_layout
18237
18238 \begin_layout Enumerate
18239
18240 \size small
18241 You should use "
18242 \family typewriter
18243 '
18244 \family default
18245 " (ASCII 39) instead of "" (ASCII 180).
18246 \end_layout
18247
18248 \begin_layout Enumerate
18249
18250 \size small
18251 User-specified pattern found.
18252 \end_layout
18253
18254 \begin_layout Enumerate
18255
18256 \size small
18257 This command might not be intended.
18258 \end_layout
18259
18260 \begin_layout Enumerate
18261
18262 \size small
18263 \emph on
18264 Comment displayed.
18265 \end_layout
18266
18267 \begin_layout Enumerate
18268
18269 \size small
18270 Either 
18271 \family typewriter
18272 ''
18273 \backslash
18274 ,'
18275 \family default
18276  or 
18277 \family typewriter
18278 '
18279 \backslash
18280 ,''
18281 \family default
18282  will look better.
18283 \end_layout
18284
18285 \begin_layout Enumerate
18286
18287 \size small
18288 Delete this space to maintain correct page references.
18289 \end_layout
18290
18291 \begin_layout Enumerate
18292
18293 \size small
18294 \emph on
18295 You might wish to put this between a pair of 
18296 \begin_inset Quotes eld
18297 \end_inset
18298
18299
18300 \family typewriter
18301 {}
18302 \family default
18303
18304 \begin_inset Quotes erd
18305 \end_inset
18306
18307 .
18308 \end_layout
18309
18310 \begin_layout Enumerate
18311
18312 \size small
18313 You ought to remove spaces in front of punctuation.
18314 \end_layout
18315
18316 \begin_layout Enumerate
18317
18318 \size small
18319 Could not execute \SpecialChar LaTeX
18320  command.
18321 \end_layout
18322
18323 \begin_layout Enumerate
18324
18325 \size small
18326 Don't use 
18327 \family typewriter
18328
18329 \backslash
18330 /
18331 \family default
18332  in front of small punctuation.
18333 \end_layout
18334
18335 \begin_layout Enumerate
18336
18337 \family typewriter
18338 \size small
18339 $
18340 \backslash
18341 times$
18342 \family default
18343  may look prettier here.
18344 \end_layout
18345
18346 \begin_layout Enumerate
18347
18348 \size small
18349 \emph on
18350 Multiple spaces detected in output.
18351 \end_layout
18352
18353 \begin_layout Enumerate
18354
18355 \size small
18356 This text may be ignored.
18357 \end_layout
18358
18359 \begin_layout Enumerate
18360
18361 \size small
18362 Use 
18363 \family typewriter
18364
18365 \begin_inset Quotes eld
18366 \end_inset
18367
18368
18369 \family default
18370  to begin quotation, not 
18371 \family typewriter
18372 '
18373 \family default
18374 .
18375 \end_layout
18376
18377 \begin_layout Enumerate
18378
18379 \size small
18380 Use 
18381 \family typewriter
18382 '
18383 \family default
18384  to end quotation, not 
18385 \family typewriter
18386
18387 \begin_inset Quotes eld
18388 \end_inset
18389
18390
18391 \family default
18392 .
18393 \end_layout
18394
18395 \begin_layout Enumerate
18396
18397 \size small
18398 Don't mix quotes.
18399 \end_layout
18400
18401 \begin_layout Enumerate
18402
18403 \size small
18404 You should perhaps use 
18405 \begin_inset Quotes eld
18406 \end_inset
18407
18408
18409 \family typewriter
18410 cmd
18411 \family default
18412
18413 \begin_inset Quotes erd
18414 \end_inset
18415
18416  instead.
18417 \end_layout
18418
18419 \begin_layout Enumerate
18420
18421 \size small
18422 You should put a space in front of/after parenthesis.
18423 \end_layout
18424
18425 \begin_layout Enumerate
18426
18427 \size small
18428 You should avoid spaces in front of/after parenthesis.
18429 \end_layout
18430
18431 \begin_layout Enumerate
18432
18433 \size small
18434 \emph on
18435 You should not use punctuation in front of/after quotes.
18436 \end_layout
18437
18438 \begin_layout Enumerate
18439
18440 \size small
18441 Double space found.
18442 \end_layout
18443
18444 \begin_layout Enumerate
18445
18446 \size small
18447 You should put punctuation outside inner/inside display math mode.
18448 \end_layout
18449
18450 \begin_layout Enumerate
18451
18452 \size small
18453 You ought to not use primitive \SpecialChar TeX
18454  in \SpecialChar LaTeX
18455  code.
18456 \end_layout
18457
18458 \begin_layout Enumerate
18459
18460 \size small
18461 You should remove spaces in front of 
18462 \begin_inset Quotes eld
18463 \end_inset
18464
18465
18466 \family typewriter
18467 %s
18468 \family default
18469
18470 \begin_inset Quotes erd
18471 \end_inset
18472
18473
18474 \end_layout
18475
18476 \begin_layout Enumerate
18477
18478 \size small
18479 \begin_inset Quotes eld
18480 \end_inset
18481
18482
18483 \family typewriter
18484 %s
18485 \family default
18486
18487 \begin_inset Quotes erd
18488 \end_inset
18489
18490  is normally not followed by 
18491 \begin_inset Quotes eld
18492 \end_inset
18493
18494
18495 \family typewriter
18496 %c
18497 \family default
18498
18499 \begin_inset Quotes erd
18500 \end_inset
18501
18502 .
18503 \end_layout
18504
18505 \begin_layout Standard
18506 \SpecialChar LyX
18507 の将来の版では,このツール(およびその縮小版
18508 \family typewriter
18509 lacheck
18510 \family default
18511 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18512 書に使用してみていただければ,きっと驚かれることでしょう.
18513 \end_layout
18514
18515 \begin_layout Section
18516 \SpecialChar LyX
18517 でのバージョン管理
18518 \end_layout
18519
18520 \begin_layout Standard
18521
18522 \noun on
18523 Lars Bullik Bjønnes
18524 \noun default
18525 および
18526 \noun on
18527 Pavel Sanda
18528 \noun default
18529
18530 \end_layout
18531
18532 \begin_layout Subsection
18533 はじめに
18534 \end_layout
18535
18536 \begin_layout Standard
18537 \SpecialChar LyX
18538 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18539 があります.
18540 \end_layout
18541
18542 \begin_layout Standard
18543 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18544 N Book
18545 \begin_inset Foot
18546 status collapsed
18547
18548 \begin_layout Plain Layout
18549 \begin_inset CommandInset href
18550 LatexCommand href
18551 target "http://svnbook.red-bean.com/"
18552 literal "false"
18553
18554 \end_inset
18555
18556
18557 \end_layout
18558
18559 \end_inset
18560
18561 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18562 \family typewriter
18563 man rcsintro
18564 \family default
18565 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18566 \family typewriter
18567 ,v
18568 \family default
18569 で終わるファイルです)の概念に注意を払ってください.
18570 \end_layout
18571
18572 \begin_layout Standard
18573 \SpecialChar LyX
18574 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18575 で\SpecialChar LyX
18576 への実装においては,GNU
18577  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18578 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18579 \family sans
18580 表示\SpecialChar menuseparator
18581 ツールバー\SpecialChar menuseparator
18582 バージョン管理
18583 \family default
18584 で有効にできます.
18585 \end_layout
18586
18587 \begin_layout Standard
18588 自製の外部コマンドを導入したい場合には,
18589 \emph on
18590 \SpecialChar LyX
18591 関数
18592 \emph default
18593 説明書の
18594 \begin_inset Flex Code
18595 status collapsed
18596
18597 \begin_layout Plain Layout
18598 vc-command
18599 \end_layout
18600
18601 \end_inset
18602
18603 を確認してください.
18604 \end_layout
18605
18606 \begin_layout Standard
18607 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18608 \family sans
18609 文書\SpecialChar menuseparator
18610 圧縮
18611 \family default
18612 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18613 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18614 \end_layout
18615
18616 \begin_layout Subsection
18617 \SpecialChar LyX
18618 におけるRCSコマンド
18619 \end_layout
18620
18621 \begin_layout Standard
18622 以下の節では\SpecialChar LyX
18623 でサポートされているRCSコマンドを説明します.それらのコマンドは
18624 \family sans
18625 ファイル\SpecialChar menuseparator
18626 バージョン管理
18627 \family default
18628 のサブメニューにあります.\SpecialChar LyX
18629 は,RCS 5.7/5.8に対して試験されています.
18630 \end_layout
18631
18632 \begin_layout Subsubsection
18633
18634 \family sans
18635 登録
18636 \end_layout
18637
18638 \begin_layout Standard
18639 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18640 \family sans
18641 登録
18642 \family default
18643 は不可視になります.
18644 \end_layout
18645
18646 \begin_layout Standard
18647 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18648 書は読み込み専用モードになるので,変更を加えるためには
18649 \family sans
18650 チェックアウトして編集
18651 \family default
18652 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18653 \end_layout
18654
18655 \begin_layout Standard
18656 実行されるRCSコマンドは:
18657 \end_layout
18658
18659 \begin_layout LyX-Code
18660
18661 \family typewriter
18662 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18663 \end_layout
18664
18665 \begin_layout Standard
18666 スイッチについて知りたい場合は,
18667 \family typewriter
18668 man ci
18669 \family default
18670 を読んでください.
18671 \end_layout
18672
18673 \begin_layout Subsubsection
18674
18675 \family sans
18676 変更をチェックインする
18677 \end_layout
18678
18679 \begin_layout Standard
18680 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18681 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18682 \end_layout
18683
18684 \begin_layout Itemize
18685 RCSコマンド:
18686 \family typewriter
18687 ci -q -u -m"<説明文>" <ファイル名>
18688 \end_layout
18689
18690 \begin_layout Subsubsection
18691
18692 \family sans
18693 チェックアウトして編集
18694 \end_layout
18695
18696 \begin_layout Standard
18697 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18698 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18699 \end_layout
18700
18701 \begin_layout Itemize
18702 RCSコマンド:
18703 \family typewriter
18704 co -q -l <ファイル名>
18705 \end_layout
18706
18707 \begin_layout Subsubsection
18708
18709 \family sans
18710 リポジトリのバージョンに戻す
18711 \end_layout
18712
18713 \begin_layout Standard
18714 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18715 \end_layout
18716
18717 \begin_layout Itemize
18718 RCSコマンド:
18719 \family typewriter
18720 co -f -u<バージョン> <ファイル名>
18721 \end_layout
18722
18723 \begin_layout Subsubsection
18724
18725 \family sans
18726 コピー
18727 \end_layout
18728
18729 \begin_layout Standard
18730 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18731 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18732 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18733 \family sans
18734 ファイル\SpecialChar menuseparator
18735 名前をつけて保存\SpecialChar ldots
18736
18737 \family default
18738 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18739 \end_layout
18740
18741 \begin_layout Labeling
18742 \labelwidthstring 00.00.0000
18743 RCSコマンド: 
18744 \begin_inset space ~
18745 \end_inset
18746
18747
18748 \begin_inset Newline newline
18749 \end_inset
18750
18751
18752 \begin_inset Flex Code
18753 status collapsed
18754
18755 \begin_layout Plain Layout
18756 "ファイル名"
18757 \end_layout
18758
18759 \end_inset
18760
18761
18762 \begin_inset Flex Code
18763 status collapsed
18764
18765 \begin_layout Plain Layout
18766 "新ファイル名"
18767 \end_layout
18768
18769 \end_inset
18770
18771 にコピーする場合
18772 \begin_inset Newline newline
18773 \end_inset
18774
18775
18776 \begin_inset Flex Code
18777 status collapsed
18778
18779 \begin_layout Plain Layout
18780 ci -q -u -i "<新ファイル名>"
18781 \end_layout
18782
18783 \end_inset
18784
18785
18786 \end_layout
18787
18788 \begin_layout Subsubsection
18789
18790 \family sans
18791 最後のチェックインを取り消す
18792 \end_layout
18793
18794 \begin_layout Standard
18795 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18796 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18797 されます.
18798 \end_layout
18799
18800 \begin_layout Itemize
18801 RCSコマンド:
18802 \family typewriter
18803 rcs -o<バージョン> <ファイル名>
18804 \end_layout
18805
18806 \begin_layout Subsubsection
18807
18808 \family sans
18809 履歴を表示
18810 \end_layout
18811
18812 \begin_layout Standard
18813 RCS文書の完全な履歴を表示します.ブラウザ中に,
18814 \family typewriter
18815 rlog <ファイル名>
18816 \family default
18817 の出力が表示されます.詳細は
18818 \family typewriter
18819 man rlog
18820 \family default
18821 をご覧ください.
18822 \end_layout
18823
18824 \begin_layout Subsubsection
18825 改訂情報
18826 \end_layout
18827
18828 \begin_layout Standard
18829 \SpecialChar LyX
18830 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18831 \begin_inset CommandInset ref
18832 LatexCommand ref
18833 reference "subsec:VCS改訂情報"
18834
18835 \end_inset
18836
18837 を参照.
18838 \end_layout
18839
18840 \begin_layout Subsection
18841 \SpecialChar LyX
18842 におけるCVSコマンド
18843 \end_layout
18844
18845 \begin_layout Standard
18846 \SpecialChar LyX
18847 は,現在CVSを一部サポートしています.そのコマンドは,
18848 \family sans
18849 ファイル\SpecialChar menuseparator
18850 バージョン管理
18851 \family default
18852 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18853 \end_layout
18854
18855 \begin_layout Subsubsection
18856 CVSの一般的な利用法
18857 \end_layout
18858
18859 \begin_layout Standard
18860 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18861 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18862 \end_layout
18863
18864 \begin_layout Standard
18865 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18866 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18867 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18868 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18869 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18870 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18871 で予備付きチェックアウトを利用したい場合には,
18872 \begin_inset Flex Code
18873 status collapsed
18874
18875 \begin_layout Plain Layout
18876 .cvsrc
18877 \end_layout
18878
18879 \end_inset
18880
18881 ファイルを編集して,
18882 \begin_inset Flex Code
18883 status collapsed
18884
18885 \begin_layout Plain Layout
18886 cvs -r
18887 \end_layout
18888
18889 \end_inset
18890
18891 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18892 コピーを書き込み可能にしているとは限りません.
18893 \end_layout
18894
18895 \begin_layout Standard
18896 \SpecialChar LyX
18897 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18898 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18899 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18900 可能にするためには,
18901 \begin_inset Flex MenuItem
18902 status collapsed
18903
18904 \begin_layout Plain Layout
18905 チェックアウト
18906 \end_layout
18907
18908 \end_inset
18909
18910 メニューを使用しなくてはなりません.その後,
18911 \begin_inset Flex MenuItem
18912 status collapsed
18913
18914 \begin_layout Plain Layout
18915 チェックイン
18916 \end_layout
18917
18918 \end_inset
18919
18920 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18921 \end_layout
18922
18923 \begin_layout Standard
18924 CVSの詳細な情報は,
18925 \begin_inset Flex URL
18926 status collapsed
18927
18928 \begin_layout Plain Layout
18929
18930 http://www.nongnu.org/cvs
18931 \end_layout
18932
18933 \end_inset
18934
18935
18936 \begin_inset Flex URL
18937 status collapsed
18938
18939 \begin_layout Plain Layout
18940
18941 http://ximbiot.com/cvs
18942 \end_layout
18943
18944 \end_inset
18945
18946 にあります.
18947 \end_layout
18948
18949 \begin_layout Standard
18950 以下に言及するサブコマンドとスイッチを理解するには,
18951 \family typewriter
18952 man cvs
18953 \family default
18954 をお読みください.
18955 \end_layout
18956
18957 \begin_layout Subsubsection
18958 登録
18959 \end_layout
18960
18961 \begin_layout Standard
18962 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18963 \family sans
18964 登録
18965 \family default
18966 項目は表示されません.
18967 \end_layout
18968
18969 \begin_layout Standard
18970 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18971 \series bold
18972 \emph on
18973 のみ
18974 \series default
18975 \emph default
18976 (すなわち
18977 \begin_inset Flex Code
18978 status collapsed
18979
18980 \begin_layout Plain Layout
18981 CVS/Entries
18982 \end_layout
18983
18984 \end_inset
18985
18986 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18987 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18988 は文書をRCSに登録します).
18989 \end_layout
18990
18991 \begin_layout Standard
18992 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
18993 \end_layout
18994
18995 \begin_layout Standard
18996 実行されるCVSコマンドは,
18997 \family typewriter
18998 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18999 \family default
19000  です.
19001 \end_layout
19002
19003 \begin_layout Standard
19004 上記および他のすべてのCVSコマンドにおける
19005 \family typewriter
19006 "<ファイル名>"
19007 \family default
19008 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
19009 \end_layout
19010
19011 \begin_layout Subsubsection
19012 変更のチェックイン
19013 \end_layout
19014
19015 \begin_layout Standard
19016 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
19017 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
19018 \begin_inset Flex MenuItem
19019 status collapsed
19020
19021 \begin_layout Plain Layout
19022 チェックアウト
19023 \end_layout
19024
19025 \end_inset
19026
19027 で作られた予備は取り消されます.
19028 \end_layout
19029
19030 \begin_layout Labeling
19031 \labelwidthstring 00.00.0000
19032 CVSコマンド: 
19033 \begin_inset space ~
19034 \end_inset
19035
19036
19037 \begin_inset Newline newline
19038 \end_inset
19039
19040
19041 \begin_inset Flex Code
19042 status collapsed
19043
19044 \begin_layout Plain Layout
19045 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
19046 \end_layout
19047
19048 \end_inset
19049
19050 あるいは
19051 \begin_inset Newline newline
19052 \end_inset
19053
19054
19055 \begin_inset Flex Code
19056 status collapsed
19057
19058 \begin_layout Plain Layout
19059 cvs -q unedit "<ファイル名>"
19060 \end_layout
19061
19062 \end_inset
19063
19064
19065 \end_layout
19066
19067 \begin_layout Subsubsection
19068 変更のチェックアウト
19069 \end_layout
19070
19071 \begin_layout Standard
19072 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
19073 \end_layout
19074
19075 \begin_layout Standard
19076 CVSコマンド:
19077 \family typewriter
19078 cvs -q update "<ファイル名>"
19079 \end_layout
19080
19081 \begin_layout Standard
19082 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
19083 \end_layout
19084
19085 \begin_layout Standard
19086 CVSコマンド:
19087 \family typewriter
19088 cvs -q edit "<ファイル名>"
19089 \end_layout
19090
19091 \begin_layout Subsubsection
19092 レポジトリ版に戻す
19093 \end_layout
19094
19095 \begin_layout Standard
19096 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
19097 が実行されます.
19098 \end_layout
19099
19100 \begin_layout Standard
19101 CVSコマンド:
19102 \family typewriter
19103 cvs -q update "<ファイル名>"
19104 \end_layout
19105
19106 \begin_layout Standard
19107 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
19108 \end_layout
19109
19110 \begin_layout Standard
19111 CVSコマンド:
19112 \family typewriter
19113 cvs -q unedit "<ファイル名>"
19114 \end_layout
19115
19116 \begin_layout Subsubsection
19117
19118 \family sans
19119 コピー
19120 \end_layout
19121
19122 \begin_layout Standard
19123 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19124 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19125 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19126 \family sans
19127 ファイル\SpecialChar menuseparator
19128 名前をつけて保存\SpecialChar ldots
19129
19130 \family default
19131 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19132 \end_layout
19133
19134 \begin_layout Labeling
19135 \labelwidthstring 00.00.0000
19136 CVSコマンド: 
19137 \begin_inset space ~
19138 \end_inset
19139
19140
19141 \begin_inset Newline newline
19142 \end_inset
19143
19144
19145 \begin_inset Flex Code
19146 status collapsed
19147
19148 \begin_layout Plain Layout
19149 "<ファイル名>"
19150 \end_layout
19151
19152 \end_inset
19153
19154
19155 \begin_inset Flex Code
19156 status collapsed
19157
19158 \begin_layout Plain Layout
19159 "<新ファイル名>"
19160 \end_layout
19161
19162 \end_inset
19163
19164 にコピーする場合
19165 \begin_inset Newline newline
19166 \end_inset
19167
19168
19169 \begin_inset Flex Code
19170 status collapsed
19171
19172 \begin_layout Plain Layout
19173 cvs -q add "<新ファイル名>"
19174 \end_layout
19175
19176 \end_inset
19177
19178
19179 \end_layout
19180
19181 \begin_layout Subsubsection
19182 ファイル名変更
19183 \end_layout
19184
19185 \begin_layout Standard
19186 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
19187 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
19188 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
19189 スは,(
19190 \family sans
19191 ファイル\SpecialChar menuseparator
19192 名前をつけて保存\SpecialChar ldots
19193
19194 \family default
19195 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19196 \end_layout
19197
19198 \begin_layout Labeling
19199 \labelwidthstring 00.00.0000
19200 CVSコマンド: 
19201 \begin_inset space ~
19202 \end_inset
19203
19204
19205 \begin_inset Newline newline
19206 \end_inset
19207
19208
19209 \begin_inset Flex Code
19210 status collapsed
19211
19212 \begin_layout Plain Layout
19213 "<ファイル名>"
19214 \end_layout
19215
19216 \end_inset
19217
19218
19219 \begin_inset Flex Code
19220 status collapsed
19221
19222 \begin_layout Plain Layout
19223 "<新ファイル名>"
19224 \end_layout
19225
19226 \end_inset
19227
19228 に変更する場合 
19229 \begin_inset space ~
19230 \end_inset
19231
19232
19233 \begin_inset Newline newline
19234 \end_inset
19235
19236
19237 \begin_inset Flex Code
19238 status collapsed
19239
19240 \begin_layout Plain Layout
19241 cvs -q add "<新ファイル名>"
19242 \end_layout
19243
19244 \end_inset
19245
19246  
19247 \begin_inset space ~
19248 \end_inset
19249
19250
19251 \begin_inset Newline newline
19252 \end_inset
19253
19254
19255 \begin_inset Flex Code
19256 status collapsed
19257
19258 \begin_layout Plain Layout
19259 cvs -q remove "<ファイル名>"
19260 \end_layout
19261
19262 \end_inset
19263
19264
19265 \end_layout
19266
19267 \begin_layout Subsubsection
19268 ローカルディレクトリチェックアウトのレポジトリからの更新
19269 \end_layout
19270
19271 \begin_layout Standard
19272 子文書や図を含んだり,外部
19273 \begin_inset Flex Code
19274 status collapsed
19275
19276 \begin_layout Plain Layout
19277 .tex
19278 \end_layout
19279
19280 \end_inset
19281
19282 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
19283 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
19284 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
19285 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
19286 慣です.
19287 \end_layout
19288
19289 \begin_layout Standard
19290 コマンド
19291 \begin_inset Flex Code
19292 status collapsed
19293
19294 \begin_layout Plain Layout
19295 レポジトリを使ってローカル辞書を更新
19296 \end_layout
19297
19298 \end_inset
19299
19300 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
19301 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
19302 \begin_inset Flex Code
19303 status collapsed
19304
19305 \begin_layout Plain Layout
19306 <<<<<<<
19307 \end_layout
19308
19309 \end_inset
19310
19311
19312 \begin_inset Flex Code
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316 >>>>>>>
19317 \end_layout
19318
19319 \end_inset
19320
19321 の対に囲まれ,
19322 \begin_inset Flex Code
19323 status collapsed
19324
19325 \begin_layout Plain Layout
19326 =======
19327 \end_layout
19328
19329 \end_inset
19330
19331 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19332 \begin_inset Flex Code
19333 status collapsed
19334
19335 \begin_layout Plain Layout
19336 >
19337 \end_layout
19338
19339 \end_inset
19340
19341 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19342 \end_layout
19343
19344 \begin_layout Labeling
19345 \labelwidthstring 00.00.0000
19346 CVSコマンド: 
19347 \begin_inset space ~
19348 \end_inset
19349
19350
19351 \begin_inset Newline newline
19352 \end_inset
19353
19354
19355 \begin_inset Flex Code
19356 status collapsed
19357
19358 \begin_layout Plain Layout
19359 cd $path; cvs diff "."
19360 \end_layout
19361
19362 \end_inset
19363
19364 (変更が検出された場合には知らせる)
19365 \begin_inset Newline newline
19366 \end_inset
19367
19368
19369 \begin_inset Flex Code
19370 status collapsed
19371
19372 \begin_layout Plain Layout
19373 cd $path; cvs -q update "."
19374 \end_layout
19375
19376 \end_inset
19377
19378
19379 \end_layout
19380
19381 \begin_layout Standard
19382 ここで
19383 \begin_inset Flex Code
19384 status collapsed
19385
19386 \begin_layout Plain Layout
19387 $path
19388 \end_layout
19389
19390 \end_inset
19391
19392 は文書パスを表します.
19393 \end_layout
19394
19395 \begin_layout Subsubsection
19396 履歴を表示
19397 \end_layout
19398
19399 \begin_layout Standard
19400 これは,CVS文書の全履歴を表示します.
19401 \begin_inset Flex Code
19402 status collapsed
19403
19404 \begin_layout Plain Layout
19405 cvs log 
19406 \begin_inset Quotes eld
19407 \end_inset
19408
19409 <ファイル名>
19410 \begin_inset Quotes erd
19411 \end_inset
19412
19413
19414 \end_layout
19415
19416 \end_inset
19417
19418 の出力がブラウザに表示されます.
19419 \end_layout
19420
19421 \begin_layout Subsubsection
19422 改訂情報
19423 \end_layout
19424
19425 \begin_layout Standard
19426 \SpecialChar LyX
19427 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19428 \family typewriter
19429 cvs log -r <ファイル名>
19430 \family default
19431 によって抽出されます.詳細については,第
19432 \begin_inset CommandInset ref
19433 LatexCommand ref
19434 reference "subsec:VCS改訂情報"
19435
19436 \end_inset
19437
19438 節を参照してください.
19439 \end_layout
19440
19441 \begin_layout Subsection
19442 \SpecialChar LyX
19443 におけるSVNコマンド
19444 \end_layout
19445
19446 \begin_layout Standard
19447 \SpecialChar LyX
19448 は,現在SVNを一部サポートしています.そのコマンドは,
19449 \begin_inset Flex MenuItem
19450 status collapsed
19451
19452 \begin_layout Plain Layout
19453 ファイル\SpecialChar menuseparator
19454 バージョン管理
19455 \end_layout
19456
19457 \end_inset
19458
19459 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19460 は,SVN
19461  1.5・1.6・1.7・1.8に対して試験されています
19462 \begin_inset Foot
19463 status collapsed
19464
19465 \begin_layout Plain Layout
19466 ほとんどのコマンドは,1.4でも動作します.
19467 \begin_inset CommandInset ref
19468 LatexCommand ref
19469 reference "subsec:レポジトリからSVN同期"
19470 plural "false"
19471 caps "false"
19472 noprefix "false"
19473
19474 \end_inset
19475
19476 を参照してください.SVN 1.8では,ファイルがロックされている時にパーミッション変更点を戻してしまうという現時点では未解決の問題が存在しています.
19477 \end_layout
19478
19479 \end_inset
19480
19481
19482 \end_layout
19483
19484 \begin_layout Subsubsection
19485 登録
19486 \end_layout
19487
19488 \begin_layout Standard
19489 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19490 \family sans
19491 登録
19492 \family default
19493 項目は表示されません.
19494 \end_layout
19495
19496 \begin_layout Standard
19497 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19498 \emph on
19499 のみ
19500 \emph default
19501 (すなわち
19502 \begin_inset Flex Code
19503 status collapsed
19504
19505 \begin_layout Plain Layout
19506 .svn/entries
19507 \end_layout
19508
19509 \end_inset
19510
19511 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19512 \end_layout
19513
19514 \begin_layout Standard
19515 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19516 \end_layout
19517
19518 \begin_layout Standard
19519 実行されるSVNコマンドは,
19520 \begin_inset Flex Code
19521 status collapsed
19522
19523 \begin_layout Plain Layout
19524 svn add -q 
19525 \begin_inset Quotes qld
19526 \end_inset
19527
19528 <ファイル名>
19529 \begin_inset Quotes qld
19530 \end_inset
19531
19532
19533 \end_layout
19534
19535 \end_inset
19536
19537 です.
19538 \end_layout
19539
19540 \begin_layout Standard
19541 スイッチの説明は
19542 \begin_inset Flex Code
19543 status collapsed
19544
19545 \begin_layout Plain Layout
19546 man svn
19547 \end_layout
19548
19549 \end_inset
19550
19551 をお読みください.
19552 \end_layout
19553
19554 \begin_layout Subsubsection
19555 変更をチェックイン
19556 \end_layout
19557
19558 \begin_layout Standard
19559 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19560 \end_layout
19561
19562 \begin_layout Standard
19563 SVNコマンド
19564 \begin_inset Foot
19565 status collapsed
19566
19567 \begin_layout Plain Layout
19568 ロックが有効になっていない場合です.第
19569 \begin_inset CommandInset ref
19570 LatexCommand ref
19571 reference "subsec:SVNファイルロック"
19572
19573 \end_inset
19574
19575 節をご覧ください.
19576 \end_layout
19577
19578 \end_inset
19579
19580
19581 \begin_inset Flex Code
19582 status collapsed
19583
19584 \begin_layout Plain Layout
19585 svn commit -q -m"<入力した説明文>" "<ファイル名>"
19586 \end_layout
19587
19588 \end_inset
19589
19590
19591 \end_layout
19592
19593 \begin_layout Subsubsection
19594 チェックアウトして編集
19595 \end_layout
19596
19597 \begin_layout Standard
19598 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19599 しておくようにしてください.
19600 \end_layout
19601
19602 \begin_layout Standard
19603 SVNコマンド
19604 \begin_inset Foot
19605 status collapsed
19606
19607 \begin_layout Plain Layout
19608 同上.
19609 \end_layout
19610
19611 \end_inset
19612
19613
19614 \begin_inset Flex Code
19615 status collapsed
19616
19617 \begin_layout Plain Layout
19618 svn update --non-interactive 
19619 \begin_inset Quotes qld
19620 \end_inset
19621
19622 <ファイル名>
19623 \begin_inset Quotes qld
19624 \end_inset
19625
19626
19627 \end_layout
19628
19629 \end_inset
19630
19631
19632 \end_layout
19633
19634 \begin_layout Subsubsection
19635 リポジトリ版に戻す
19636 \end_layout
19637
19638 \begin_layout Standard
19639 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19640 \end_layout
19641
19642 \begin_layout Standard
19643 SVNコマンド:
19644 \begin_inset Flex Code
19645 status collapsed
19646
19647 \begin_layout Plain Layout
19648 svn revert -q 
19649 \begin_inset Quotes qld
19650 \end_inset
19651
19652 <ファイル名>
19653 \begin_inset Quotes qld
19654 \end_inset
19655
19656
19657 \end_layout
19658
19659 \end_inset
19660
19661
19662 \end_layout
19663
19664 \begin_layout Subsubsection
19665
19666 \family sans
19667 コピー
19668 \end_layout
19669
19670 \begin_layout Standard
19671 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19672 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19673 ァイルの相対パスは,(
19674 \family sans
19675 ファイル\SpecialChar menuseparator
19676 名前をつけて保存\SpecialChar ldots
19677
19678 \family default
19679 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19680 \end_layout
19681
19682 \begin_layout Labeling
19683 \labelwidthstring 00.00.0000
19684 SVNコマンド: 
19685 \begin_inset space ~
19686 \end_inset
19687
19688
19689 \begin_inset Newline newline
19690 \end_inset
19691
19692
19693 \begin_inset Flex Code
19694 status collapsed
19695
19696 \begin_layout Plain Layout
19697 svn copy -q "<ファイル名>" "<新ファイル名>"
19698 \end_layout
19699
19700 \end_inset
19701
19702
19703 \begin_inset space ~
19704 \end_inset
19705
19706
19707 \begin_inset Newline newline
19708 \end_inset
19709
19710
19711 \begin_inset Flex Code
19712 status collapsed
19713
19714 \begin_layout Plain Layout
19715 svn commit
19716 \end_layout
19717
19718 \end_inset
19719
19720
19721 \end_layout
19722
19723 \begin_layout Subsubsection
19724 ファイル名変更
19725 \end_layout
19726
19727 \begin_layout Standard
19728 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19729 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19730 ァイルの相対パスは,(
19731 \family sans
19732 ファイル\SpecialChar menuseparator
19733 名前をつけて保存\SpecialChar ldots
19734
19735 \family default
19736 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19737 \end_layout
19738
19739 \begin_layout Labeling
19740 \labelwidthstring 00.00.0000
19741 SVNコマンド: 
19742 \begin_inset space ~
19743 \end_inset
19744
19745
19746 \begin_inset Newline newline
19747 \end_inset
19748
19749
19750 \begin_inset Flex Code
19751 status collapsed
19752
19753 \begin_layout Plain Layout
19754 svn move -q add "<ファイル名>" "<新ファイル名>"
19755 \end_layout
19756
19757 \end_inset
19758
19759
19760 \begin_inset Newline newline
19761 \end_inset
19762
19763
19764 \begin_inset Flex Code
19765 status collapsed
19766
19767 \begin_layout Plain Layout
19768 svn commit
19769 \end_layout
19770
19771 \end_inset
19772
19773
19774 \end_layout
19775
19776 \begin_layout Subsubsection
19777 \begin_inset CommandInset label
19778 LatexCommand label
19779 name "subsec:レポジトリからSVN同期"
19780
19781 \end_inset
19782
19783 レポジトリを使ったローカルディレクトリの同期
19784 \begin_inset Foot
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 このコマンドは,subversion 
19789 \begin_inset Formula $\geqq1.5$
19790 \end_inset
19791
19792 でのみ動作することに注意してください.
19793 \end_layout
19794
19795 \end_inset
19796
19797
19798 \end_layout
19799
19800 \begin_layout Standard
19801 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19802 \begin_inset Flex Code
19803 status collapsed
19804
19805 \begin_layout Plain Layout
19806 .tex
19807 \end_layout
19808
19809 \end_inset
19810
19811 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19812 は,文書のおいてあるツリー全体の更新をサポートします
19813 \begin_inset Foot
19814 status collapsed
19815
19816 \begin_layout Plain Layout
19817 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19818 \end_layout
19819
19820 \end_inset
19821
19822 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19823
19824 \end_layout
19825
19826 \begin_layout Standard
19827 \begin_inset Flex Code
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 ローカル辞書をレポジトリを使って更新
19832 \end_layout
19833
19834 \end_inset
19835
19836 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19837 場合には,更新が開始される前にユーザに警告が与えられます.
19838 \end_layout
19839
19840 \begin_layout Labeling
19841 \labelwidthstring 00.00.0000
19842 SVNコマンド: 
19843 \begin_inset space ~
19844 \end_inset
19845
19846
19847 \begin_inset Newline newline
19848 \end_inset
19849
19850
19851 \begin_inset Flex Code
19852 status collapsed
19853
19854 \begin_layout Plain Layout
19855 svn diff $path(変更が発見された場合には通知します)
19856 \begin_inset Newline newline
19857 \end_inset
19858
19859 svn update --accept mine-full $path
19860 \end_layout
19861
19862 \end_inset
19863
19864
19865 \end_layout
19866
19867 \begin_layout Standard
19868 ここで
19869 \begin_inset Flex Code
19870 status collapsed
19871
19872 \begin_layout Plain Layout
19873 $path
19874 \end_layout
19875
19876 \end_inset
19877
19878 は文書のパスを示します.
19879 \end_layout
19880
19881 \begin_layout Subsubsection
19882 履歴を表示
19883 \end_layout
19884
19885 \begin_layout Standard
19886 これは,SVN文書の全履歴を表示します.
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891 svn log 
19892 \begin_inset Quotes qld
19893 \end_inset
19894
19895 <ファイル名>
19896 \begin_inset Quotes qld
19897 \end_inset
19898
19899
19900 \end_layout
19901
19902 \end_inset
19903
19904 の出力がブラウザに表示されます.
19905 \end_layout
19906
19907 \begin_layout Subsubsection
19908 ファイルロック
19909 \begin_inset CommandInset label
19910 LatexCommand label
19911 name "subsec:SVNファイルロック"
19912
19913 \end_inset
19914
19915
19916 \end_layout
19917
19918 \begin_layout Standard
19919 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19920 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19921 するための,何らかのロック機構を導入することが考えられます.
19922 \end_layout
19923
19924 \begin_layout Standard
19925 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19926 \begin_inset Flex Code
19927 status collapsed
19928
19929 \begin_layout Plain Layout
19930 svn:needs-lock
19931 \end_layout
19932
19933 \end_inset
19934
19935 svnファイル特性に依拠した書き込み権限の自動設定(第
19936 \begin_inset CommandInset ref
19937 LatexCommand ref
19938 reference "subsec:自動ロック特性"
19939
19940 \end_inset
19941
19942 節を参照)です
19943 \begin_inset Foot
19944 status collapsed
19945
19946 \begin_layout Plain Layout
19947 \begin_inset Flex URL
19948 status open
19949
19950 \begin_layout Plain Layout
19951
19952 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19953 \end_layout
19954
19955 \end_inset
19956
19957
19958 \end_layout
19959
19960 \end_inset
19961
19962 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19963 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19964 り替わります.これは特に,\SpecialChar LyX
19965 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19966 \end_layout
19967
19968 \begin_layout Itemize
19969 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19970 \emph on
19971 チェックアウト
19972 \emph default
19973 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19974 \end_layout
19975
19976 \begin_layout Itemize
19977 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19978 \emph on
19979 チェックイン
19980 \emph default
19981 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19982 \begin_inset Foot
19983 status collapsed
19984
19985 \begin_layout Plain Layout
19986 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19987 \end_layout
19988
19989 \end_inset
19990
19991 ,書き込みロックの解放のみが行われます.
19992 \end_layout
19993
19994 \begin_layout Standard
19995 SVNコマンド:
19996 \end_layout
19997
19998 \begin_layout Labeling
19999 \labelwidthstring 00.00.0000
20000 チェックイン: 
20001 \begin_inset Flex Code
20002 status collapsed
20003
20004 \begin_layout Plain Layout
20005 svn commit -q -m
20006 \begin_inset Quotes erd
20007 \end_inset
20008
20009 <説明>
20010 \begin_inset Quotes erd
20011 \end_inset
20012
20013  
20014 \begin_inset Quotes eld
20015 \end_inset
20016
20017 <ファイル名>
20018 \begin_inset Quotes erd
20019 \end_inset
20020
20021
20022 \end_layout
20023
20024 \end_inset
20025
20026
20027 \begin_inset Newline newline
20028 \end_inset
20029
20030
20031 \begin_inset Flex Code
20032 status collapsed
20033
20034 \begin_layout Plain Layout
20035 svn unlock 
20036 \begin_inset Quotes eld
20037 \end_inset
20038
20039 <ファイル名>
20040 \begin_inset Quotes erd
20041 \end_inset
20042
20043
20044 \end_layout
20045
20046 \end_inset
20047
20048
20049 \end_layout
20050
20051 \begin_layout Labeling
20052 \labelwidthstring 00.00.0000
20053 チェックアウト: 
20054 \begin_inset Flex Code
20055 status collapsed
20056
20057 \begin_layout Plain Layout
20058 svn update 
20059 \begin_inset Quotes eld
20060 \end_inset
20061
20062 <ファイル名>
20063 \begin_inset Quotes erd
20064 \end_inset
20065
20066
20067 \end_layout
20068
20069 \end_inset
20070
20071
20072 \begin_inset Newline newline
20073 \end_inset
20074
20075
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080 svn unlock 
20081 \begin_inset Quotes eld
20082 \end_inset
20083
20084 <ファイル名>
20085 \begin_inset Quotes erd
20086 \end_inset
20087
20088
20089 \end_layout
20090
20091 \end_inset
20092
20093
20094 \end_layout
20095
20096 \begin_layout Subsubsection
20097 自動ロック特性
20098 \begin_inset CommandInset label
20099 LatexCommand label
20100 name "subsec:自動ロック特性"
20101
20102 \end_inset
20103
20104
20105 \end_layout
20106
20107 \begin_layout Standard
20108 上述したような
20109 \begin_inset Flex Code
20110 status collapsed
20111
20112 \begin_layout Plain Layout
20113 .lyx
20114 \end_layout
20115
20116 \end_inset
20117
20118 ファイルに対する書き込み権限の自動設定は,
20119 \begin_inset Flex MenuItem
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 ファイル\SpecialChar menuseparator
20124 バージョン管理\SpecialChar menuseparator
20125 ロック特性を使用
20126 \end_layout
20127
20128 \end_inset
20129
20130 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
20131 \end_layout
20132
20133 \begin_layout Standard
20134 SVNコマンド:
20135 \end_layout
20136
20137 \begin_layout Labeling
20138 \labelwidthstring 00.00.0000
20139 チェックイン: 
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 svn propset svn:needs-lock ON 
20145 \begin_inset Quotes eld
20146 \end_inset
20147
20148 <ファイル名>
20149 \begin_inset Quotes erd
20150 \end_inset
20151
20152
20153 \end_layout
20154
20155 \end_inset
20156
20157
20158 \end_layout
20159
20160 \begin_layout Labeling
20161 \labelwidthstring 00.00.0000
20162 チェックアウト: 
20163 \begin_inset Flex Code
20164 status collapsed
20165
20166 \begin_layout Plain Layout
20167 svn propdel svn:needs-lock 
20168 \begin_inset Quotes eld
20169 \end_inset
20170
20171 <ファイル名>
20172 \begin_inset Quotes erd
20173 \end_inset
20174
20175
20176 \end_layout
20177
20178 \end_inset
20179
20180
20181 \end_layout
20182
20183 \begin_layout Subsubsection
20184 \begin_inset CommandInset label
20185 LatexCommand label
20186 name "subsec:VCS改訂情報"
20187
20188 \end_inset
20189
20190 文書の改訂情報
20191 \end_layout
20192
20193 \begin_layout Standard
20194 文書中で改訂情報を有効化するにはいくつかの方法があります.
20195 \end_layout
20196
20197 \begin_layout Itemize
20198 \SpecialChar LyX
20199 による直接サポート
20200 \end_layout
20201
20202 \begin_deeper
20203 \begin_layout Itemize
20204 ツリー改訂情報(
20205 \begin_inset Flex Code
20206 status collapsed
20207
20208 \begin_layout Plain Layout
20209 vcs-tree-revision
20210 \end_layout
20211
20212 \end_inset
20213
20214 ).
20215 \begin_inset Flex Code
20216 status collapsed
20217
20218 \begin_layout Plain Layout
20219 svnversion
20220 \end_layout
20221
20222 \end_inset
20223
20224 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
20225 \end_layout
20226
20227 \begin_layout Standard
20228 \align center
20229 \begin_inset Tabular
20230 <lyxtabular version="3" rows="6" columns="2">
20231 <features tabularvalignment="middle">
20232 <column alignment="center" valignment="top">
20233 <column alignment="center" valignment="top">
20234 <row>
20235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20236 \begin_inset Text
20237
20238 \begin_layout Plain Layout
20239 出力
20240 \end_layout
20241
20242 \end_inset
20243 </cell>
20244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20245 \begin_inset Text
20246
20247 \begin_layout Plain Layout
20248 意味
20249 \end_layout
20250
20251 \end_inset
20252 </cell>
20253 </row>
20254 <row>
20255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20256 \begin_inset Text
20257
20258 \begin_layout Plain Layout
20259 4123:4168
20260 \end_layout
20261
20262 \end_inset
20263 </cell>
20264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20265 \begin_inset Text
20266
20267 \begin_layout Plain Layout
20268 改訂版の混合した作業コピー
20269 \end_layout
20270
20271 \end_inset
20272 </cell>
20273 </row>
20274 <row>
20275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20276 \begin_inset Text
20277
20278 \begin_layout Plain Layout
20279 4168M
20280 \end_layout
20281
20282 \end_inset
20283 </cell>
20284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20285 \begin_inset Text
20286
20287 \begin_layout Plain Layout
20288 修正された作業コピー
20289 \end_layout
20290
20291 \end_inset
20292 </cell>
20293 </row>
20294 <row>
20295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20296 \begin_inset Text
20297
20298 \begin_layout Plain Layout
20299 4123S
20300 \end_layout
20301
20302 \end_inset
20303 </cell>
20304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20305 \begin_inset Text
20306
20307 \begin_layout Plain Layout
20308 スイッチされた作業コピー
20309 \end_layout
20310
20311 \end_inset
20312 </cell>
20313 </row>
20314 <row>
20315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20316 \begin_inset Text
20317
20318 \begin_layout Plain Layout
20319 4123P
20320 \end_layout
20321
20322 \end_inset
20323 </cell>
20324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20325 \begin_inset Text
20326
20327 \begin_layout Plain Layout
20328 チェックアウト頻度が低かったことによる不完全な作業コピー
20329 \end_layout
20330
20331 \end_inset
20332 </cell>
20333 </row>
20334 <row>
20335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20336 \begin_inset Text
20337
20338 \begin_layout Plain Layout
20339 4123:4168MS
20340 \end_layout
20341
20342 \end_inset
20343 </cell>
20344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20345 \begin_inset Text
20346
20347 \begin_layout Plain Layout
20348 改訂版が混合し,修正され,スイッチされた作業コピー
20349 \end_layout
20350
20351 \end_inset
20352 </cell>
20353 </row>
20354 </lyxtabular>
20355
20356 \end_inset
20357
20358
20359 \end_layout
20360
20361 \begin_layout Itemize
20362 ファイル改訂情報.
20363 \begin_inset Flex Code
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367 svn
20368 \begin_inset space ~
20369 \end_inset
20370
20371 info
20372 \begin_inset space ~
20373 \end_inset
20374
20375 --xml
20376 \begin_inset space ~
20377 \end_inset
20378
20379 file.lyx
20380 \end_layout
20381
20382 \end_inset
20383
20384 の出力を解析したものが返されます.サポートされるフラグは
20385 \end_layout
20386
20387 \begin_deeper
20388 \begin_layout Itemize
20389 最終コミットのバージョン番号(
20390 \begin_inset Flex Code
20391 status collapsed
20392
20393 \begin_layout Plain Layout
20394 vcs-revision
20395 \end_layout
20396
20397 \end_inset
20398
20399
20400 \end_layout
20401
20402 \begin_layout Itemize
20403 最終コミットの著者(
20404 \begin_inset Flex Code
20405 status collapsed
20406
20407 \begin_layout Plain Layout
20408 vcs-author
20409 \end_layout
20410
20411 \end_inset
20412
20413
20414 \end_layout
20415
20416 \begin_layout Itemize
20417 最終コミットの日付(
20418 \begin_inset Flex Code
20419 status collapsed
20420
20421 \begin_layout Plain Layout
20422 vcs-date
20423 \end_layout
20424
20425 \end_inset
20426
20427
20428 \end_layout
20429
20430 \begin_layout Itemize
20431 最終コミットの時間(
20432 \begin_inset Flex Code
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436 vcs-time
20437 \end_layout
20438
20439 \end_inset
20440
20441
20442 \end_layout
20443
20444 \end_deeper
20445 \begin_layout Standard
20446 これらの情報は,情報差込枠で得ることができます(例:
20447 \begin_inset Flex Code
20448 status collapsed
20449
20450 \begin_layout Plain Layout
20451 info-insert buffer vcs-date
20452 \end_layout
20453
20454 \end_inset
20455
20456 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20457 \begin_inset Flex Code
20458 status collapsed
20459
20460 \begin_layout Plain Layout
20461 .svn
20462 \end_layout
20463
20464 \end_inset
20465
20466 ディレクトリがあるときのみ)利用可能です.
20467 \end_layout
20468
20469 \end_deeper
20470 \begin_layout Itemize
20471 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20472 \begin_inset Foot
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20477 \end_layout
20478
20479 \end_inset
20480
20481 .簡単に言えば,ファイルキーワード特性を設定して(例:
20482 \family sans
20483 svn propset svn:keywords 'Rev' file.lyx
20484 \family default
20485 ),文書中にキーワード\SpecialChar TeX
20486 コード
20487 \begin_inset Foot
20488 status collapsed
20489
20490 \begin_layout Plain Layout
20491 これは,\SpecialChar LyX
20492 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20493 \end_layout
20494
20495 \end_inset
20496
20497 タグ(例:
20498 \begin_inset Flex Code
20499 status collapsed
20500
20501 \begin_layout Plain Layout
20502 $Rev$
20503 \end_layout
20504
20505 \end_inset
20506
20507 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例:
20508 \begin_inset Flex Code
20509 status collapsed
20510
20511 \begin_layout Plain Layout
20512 $Rev: 59 $
20513 \end_layout
20514
20515 \end_inset
20516
20517 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20518 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20519 中の
20520 \begin_inset Formula $Rev$
20521 \end_inset
20522
20523 という数式表現が,すべて
20524 \begin_inset Formula $Rev:59$
20525 \end_inset
20526
20527 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20528 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev: 59」という文字列全体が表示されてしまいま
20529 す.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20530 がこれを直接サポートすることは,難しそうです.
20531 \end_layout
20532
20533 \begin_layout Subsection
20534 SVNとWindows環境
20535 \end_layout
20536
20537 \begin_layout Quote
20538 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20539  A.
20540  ルービン
20541 \end_layout
20542
20543 \begin_layout Subsubsection
20544 準備
20545 \end_layout
20546
20547 \begin_layout Standard
20548 \SpecialChar LyX
20549 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20550 トプログラムのWindows用インストーラは
20551 \begin_inset CommandInset href
20552 LatexCommand href
20553 name "CollabNet"
20554 target "http://www.collab.net/nonav/downloads/subversion/"
20555 literal "false"
20556
20557 \end_inset
20558
20559 にあります.ユーザは
20560 \begin_inset CommandInset href
20561 LatexCommand href
20562 name "TortoiseSVN"
20563 target "http://tortoisesvn.tigris.org/"
20564 literal "false"
20565
20566 \end_inset
20567
20568 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20569 外部で行う操
20570 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20571 自身が使用するクライアントプログラムの代わりとは成りませんので
20572 ,注意してください.
20573 \end_layout
20574
20575 \begin_layout Subsubsection
20576 文書をSubversion管理下に置くには
20577 \end_layout
20578
20579 \begin_layout Standard
20580 \SpecialChar LyX
20581 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20582 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20583 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20584 の外部で行います
20585 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20586 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20587 既に存在し,新規プロジェクトを
20588 \begin_inset Flex Code
20589 status collapsed
20590
20591 \begin_layout Plain Layout
20592 C:
20593 \backslash
20594 new project
20595 \end_layout
20596
20597 \end_inset
20598
20599 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20600 \begin_inset Flex Code
20601 status collapsed
20602
20603 \begin_layout Plain Layout
20604 svn --help
20605 \end_layout
20606
20607 \end_inset
20608
20609 を実行してください.
20610 \end_layout
20611
20612 \begin_layout Enumerate
20613 Windows Explorerで
20614 \begin_inset Flex Code
20615 status collapsed
20616
20617 \begin_layout Plain Layout
20618 C:
20619 \backslash
20620 new project
20621 \end_layout
20622
20623 \end_inset
20624
20625 を見つけ出して右クリックし,
20626 \begin_inset Flex MenuItem
20627 status collapsed
20628
20629 \begin_layout Plain Layout
20630 TortoiseSVN\SpecialChar menuseparator
20631 Repo-browser
20632 \end_layout
20633
20634 \end_inset
20635
20636 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20637 \end_layout
20638
20639 \begin_layout Enumerate
20640 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20641 \begin_inset Flex MenuItem
20642 status collapsed
20643
20644 \begin_layout Plain Layout
20645 Create folder\SpecialChar ldots
20646
20647 \end_layout
20648
20649 \end_inset
20650
20651 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20652 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20653 \end_layout
20654
20655 \begin_layout Enumerate
20656 再度
20657 \begin_inset Flex Code
20658 status collapsed
20659
20660 \begin_layout Plain Layout
20661 C:
20662 \backslash
20663 new project
20664 \end_layout
20665
20666 \end_inset
20667
20668 を右クリックし,今度は
20669 \begin_inset Flex MenuItem
20670 status collapsed
20671
20672 \begin_layout Plain Layout
20673 SVN Checkout\SpecialChar ldots
20674
20675 \end_layout
20676
20677 \end_inset
20678
20679 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20680 \begin_inset Flex Code
20681 status collapsed
20682
20683 \begin_layout Plain Layout
20684 C:
20685 \backslash
20686 new project
20687 \end_layout
20688
20689 \end_inset
20690
20691 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20692 \begin_inset Flex Code
20693 status collapsed
20694
20695 \begin_layout Plain Layout
20696 C:
20697 \backslash
20698 new project
20699 \end_layout
20700
20701 \end_inset
20702
20703 の下に
20704 \begin_inset Flex Code
20705 status collapsed
20706
20707 \begin_layout Plain Layout
20708 .svn
20709 \end_layout
20710
20711 \end_inset
20712
20713 ディレクトリが作成されます.
20714 \end_layout
20715
20716 \begin_layout Enumerate
20717 \SpecialChar LyX
20718 で文書を新規作成するか開くかして,
20719 \begin_inset Flex MenuItem
20720 status collapsed
20721
20722 \begin_layout Plain Layout
20723 ファイル\SpecialChar menuseparator
20724 バージョン管理\SpecialChar menuseparator
20725 登録
20726 \end_layout
20727
20728 \end_inset
20729
20730 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20731 \end_layout
20732
20733 \begin_layout Standard
20734 爾後,
20735 \begin_inset Flex MenuItem
20736 status collapsed
20737
20738 \begin_layout Plain Layout
20739 ファイル\SpecialChar menuseparator
20740 バージョン管理
20741 \end_layout
20742
20743 \end_inset
20744
20745 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20746 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20747 \end_layout
20748
20749 \begin_layout Subsubsection
20750 Windows下でSVNと共にSSHトンネルを使うには
20751 \end_layout
20752
20753 \begin_layout Standard
20754 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20755 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20756 ることを覚悟しておいてください.
20757 \end_layout
20758
20759 \begin_layout Enumerate
20760 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20761 \begin_inset Flex Code
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765 svn --version
20766 \end_layout
20767
20768 \end_inset
20769
20770 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20771 \end_layout
20772
20773 \begin_layout Enumerate
20774 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20775 \begin_inset Foot
20776 status open
20777
20778 \begin_layout Plain Layout
20779 \begin_inset Flex URL
20780 status collapsed
20781
20782 \begin_layout Plain Layout
20783
20784 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20785 \end_layout
20786
20787 \end_inset
20788
20789
20790 \end_layout
20791
20792 \end_inset
20793
20794 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20795 護などを加えない
20796 \begin_inset Flex Ruby
20797 status collapsed
20798
20799 \begin_layout Plain Layout
20800
20801 \begin_inset Argument post:1
20802 status collapsed
20803
20804 \begin_layout Plain Layout
20805 キー
20806 \end_layout
20807
20808 \end_inset
20809
20810
20811 \end_layout
20812
20813 \end_inset
20814
20815 のみを使用することとします.
20816 \end_layout
20817
20818 \begin_deeper
20819 \begin_layout Enumerate
20820 \begin_inset Flex Code
20821 status collapsed
20822
20823 \begin_layout Plain Layout
20824 puttygen
20825 \end_layout
20826
20827 \end_inset
20828
20829 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20830 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20831 s file:」編集フィールドから,直接サーバの
20832 \begin_inset Flex Code
20833 status collapsed
20834
20835 \begin_layout Plain Layout
20836 ~/.ssh/authorized_keys
20837 \end_layout
20838
20839 \end_inset
20840
20841 または
20842 \begin_inset Flex Code
20843 status collapsed
20844
20845 \begin_layout Plain Layout
20846 authorized_keys2
20847 \end_layout
20848
20849 \end_inset
20850
20851 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20852 \end_layout
20853
20854 \begin_layout Enumerate
20855 Puttyのplinkを入手してください.SVNのconfigファイル
20856 \begin_inset Foot
20857 status collapsed
20858
20859 \begin_layout Plain Layout
20860 正確なパスはWindowsのバージョンに依りますが,通常は
20861 \begin_inset Flex Code
20862 status collapsed
20863
20864 \begin_layout Plain Layout
20865 c:
20866 \backslash
20867 Documents and Settings
20868 \backslash
20869 user
20870 \backslash
20871 Application Data
20872 \backslash
20873 Subversion
20874 \backslash
20875 config
20876 \end_layout
20877
20878 \end_inset
20879
20880
20881 \begin_inset Flex Code
20882 status collapsed
20883
20884 \begin_layout Plain Layout
20885 AppData
20886 \backslash
20887 Roaming
20888 \backslash
20889 Subversion
20890 \end_layout
20891
20892 \end_inset
20893
20894 辺りにあります.
20895 \end_layout
20896
20897 \end_inset
20898
20899 中の
20900 \begin_inset Flex Code
20901 status collapsed
20902
20903 \begin_layout Plain Layout
20904 [tunnels]
20905 \end_layout
20906
20907 \end_inset
20908
20909 セクションにsshコマンドを設定してください.例:
20910 \begin_inset Flex Code
20911 status collapsed
20912
20913 \begin_layout Plain Layout
20914 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20915 \end_layout
20916
20917 \end_inset
20918
20919
20920 \begin_inset Foot
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20925 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20926 \end_layout
20927
20928 \end_inset
20929
20930
20931 \end_layout
20932
20933 \end_deeper
20934 \begin_layout Enumerate
20935 SVNアーカイブをチェックアウトしてください.例:
20936 \begin_inset Newline newline
20937 \end_inset
20938
20939
20940 \begin_inset Flex Code
20941 status collapsed
20942
20943 \begin_layout Plain Layout
20944 svn co svn+ssh://user@server/repository_path
20945 \end_layout
20946
20947 \end_inset
20948
20949
20950 \end_layout
20951
20952 \begin_layout Subsubsection
20953 行末変換
20954 \end_layout
20955
20956 \begin_layout Standard
20957 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20958 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20959 の機能に関する限り問題になりま
20960 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 native
20966 \end_layout
20967
20968 \end_inset
20969
20970 モードに切り替える際
20971 \begin_inset Foot
20972 status collapsed
20973
20974 \begin_layout Plain Layout
20975 手短には
20976 \begin_inset Flex Code
20977 status collapsed
20978
20979 \begin_layout Plain Layout
20980 svn propset svn:eol-style native FILE_NAME
20981 \end_layout
20982
20983 \end_inset
20984
20985
20986 \end_layout
20987
20988 \end_inset
20989
20990 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20991 \begin_inset Foot
20992 status collapsed
20993
20994 \begin_layout Plain Layout
20995 \begin_inset Flex URL
20996 status collapsed
20997
20998 \begin_layout Plain Layout
20999
21000 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21001 \end_layout
21002
21003 \end_inset
21004
21005
21006 \end_layout
21007
21008 \end_inset
21009
21010
21011 \end_layout
21012
21013 \begin_layout Subsection
21014 \SpecialChar LyX
21015 におけるGITコマンド
21016 \end_layout
21017
21018 \begin_layout Standard
21019 \SpecialChar LyX
21020 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
21021 \family sans
21022 ファイル\SpecialChar menuseparator
21023 バージョン管理
21024 \family default
21025 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
21026 は,GIT
21027  1.7に対して試験を行っています
21028 \begin_inset Foot
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 Windowsユーザーはgitにパスが通っていることを確認する必要があります.これは,\SpecialChar LyX
21033 中から
21034 \family sans
21035 ツール\SpecialChar menuseparator
21036 設定\SpecialChar menuseparator
21037 パス\SpecialChar menuseparator
21038 PATH接頭辞
21039 \family default
21040 で設定できます.
21041 \end_layout
21042
21043 \end_inset
21044
21045
21046 \end_layout
21047
21048 \begin_layout Standard
21049 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
21050 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
21051 ミットを行います.ローカルリポジトリは,GITコマンドの
21052 \begin_inset Flex Code
21053 status open
21054
21055 \begin_layout Plain Layout
21056 pull
21057 \end_layout
21058
21059 \end_inset
21060
21061 または
21062 \begin_inset Flex Code
21063 status open
21064
21065 \begin_layout Plain Layout
21066 push
21067 \end_layout
21068
21069 \end_inset
21070
21071 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
21072 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
21073 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
21074 \begin_inset Flex Code
21075 status open
21076
21077 \begin_layout Plain Layout
21078 pull
21079 \end_layout
21080
21081 \end_inset
21082
21083 または
21084 \begin_inset Flex Code
21085 status open
21086
21087 \begin_layout Plain Layout
21088 push
21089 \end_layout
21090
21091 \end_inset
21092
21093 の操作を行う必要があります.
21094 \end_layout
21095
21096 \begin_layout Subsubsection
21097 登録
21098 \end_layout
21099
21100 \begin_layout Standard
21101 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
21102 \family sans
21103 登録
21104 \family default
21105 項目は表示されません.
21106 \end_layout
21107
21108 \begin_layout Standard
21109 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
21110 \emph on
21111 のみ
21112 \emph default
21113 (すなわち
21114 \begin_inset Flex Code
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118 .git/index
21119 \end_layout
21120
21121 \end_inset
21122
21123 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
21124 \end_layout
21125
21126 \begin_layout Standard
21127 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
21128 \end_layout
21129
21130 \begin_layout Standard
21131 実行されるGITコマンドは,
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 git add "<ファイル名>"
21137 \end_layout
21138
21139 \end_inset
21140
21141 です.
21142 \end_layout
21143
21144 \begin_layout Standard
21145 スイッチの説明は
21146 \begin_inset Flex Code
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150 man git
21151 \end_layout
21152
21153 \end_inset
21154
21155 をお読みください.
21156 \end_layout
21157
21158 \begin_layout Subsubsection
21159 変更をチェックイン
21160 \end_layout
21161
21162 \begin_layout Standard
21163 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
21164 \end_layout
21165
21166 \begin_layout Standard
21167 GITコマンド:
21168 \begin_inset Flex Code
21169 status collapsed
21170
21171 \begin_layout Plain Layout
21172 git commit -q -m
21173 \begin_inset Quotes erd
21174 \end_inset
21175
21176 <入力した説明文>
21177 \begin_inset Quotes erd
21178 \end_inset
21179
21180  "<ファイル名>"
21181 \end_layout
21182
21183 \end_inset
21184
21185
21186 \end_layout
21187
21188 \begin_layout Subsubsection
21189 リポジトリ版に戻す
21190 \end_layout
21191
21192 \begin_layout Standard
21193 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
21194 \end_layout
21195
21196 \begin_layout Standard
21197 GITコマンド:
21198 \begin_inset Flex Code
21199 status collapsed
21200
21201 \begin_layout Plain Layout
21202 git checkout -q 
21203 \begin_inset Quotes qld
21204 \end_inset
21205
21206 <ファイル名>
21207 \begin_inset Quotes qld
21208 \end_inset
21209
21210
21211 \end_layout
21212
21213 \end_inset
21214
21215
21216 \end_layout
21217
21218 \begin_layout Subsubsection
21219 ファイル名変更
21220 \end_layout
21221
21222 \begin_layout Standard
21223 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
21224 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
21225 ァイルの相対パスは,(
21226 \family sans
21227 ファイル\SpecialChar menuseparator
21228 名前をつけて保存\SpecialChar ldots
21229
21230 \family default
21231 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
21232 \end_layout
21233
21234 \begin_layout Labeling
21235 \labelwidthstring 00.00.0000
21236 GITコマンド: 
21237 \begin_inset space ~
21238 \end_inset
21239
21240
21241 \begin_inset Newline newline
21242 \end_inset
21243
21244
21245 \begin_inset Flex Code
21246 status collapsed
21247
21248 \begin_layout Plain Layout
21249 git mv "<ファイル名>" "<新ファイル名>"
21250 \end_layout
21251
21252 \end_inset
21253
21254
21255 \begin_inset Newline newline
21256 \end_inset
21257
21258
21259 \begin_inset Flex Code
21260 status collapsed
21261
21262 \begin_layout Plain Layout
21263 git commit
21264 \end_layout
21265
21266 \end_inset
21267
21268
21269 \end_layout
21270
21271 \begin_layout Subsubsection
21272 履歴を表示
21273 \end_layout
21274
21275 \begin_layout Standard
21276 これは,GIT文書の全履歴を表示します.
21277 \begin_inset Flex Code
21278 status collapsed
21279
21280 \begin_layout Plain Layout
21281 git log 
21282 \begin_inset Quotes qld
21283 \end_inset
21284
21285 <ファイル名>
21286 \begin_inset Quotes qld
21287 \end_inset
21288
21289
21290 \end_layout
21291
21292 \end_inset
21293
21294 の出力がブラウザに表示されます.
21295 \end_layout
21296
21297 \begin_layout Subsubsection
21298 改訂情報
21299 \end_layout
21300
21301 \begin_layout Standard
21302 \SpecialChar LyX
21303 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
21304 \begin_inset Flex Code
21305 status collapsed
21306
21307 \begin_layout Plain Layout
21308 git log -n 1 --pretty=format:%H%n%an%n%ai
21309 \end_layout
21310
21311 \end_inset
21312
21313 によって抽出されます.ツリーバージョン情報は,
21314 \begin_inset Flex Code
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318 git describe --abbrev --dirty --long
21319 \end_layout
21320
21321 \end_inset
21322
21323 で取得されます.詳細については,第
21324 \begin_inset CommandInset ref
21325 LatexCommand ref
21326 reference "subsec:VCS改訂情報"
21327
21328 \end_inset
21329
21330 節を参照してください.
21331 \end_layout
21332
21333 \begin_layout Subsection
21334 さらなる調整
21335 \end_layout
21336
21337 \begin_layout Standard
21338 最近になって
21339 \begin_inset Flex Code
21340 status collapsed
21341
21342 \begin_layout Plain Layout
21343 vc-command
21344 \end_layout
21345
21346 \end_inset
21347
21348 機構が付け加えられたおかげで,\SpecialChar LyX
21349 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21350 \end_layout
21351
21352 \begin_layout Standard
21353 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21354 \end_layout
21355
21356 \begin_layout Description
21357 コミット: 
21358 \begin_inset Flex Code
21359 status collapsed
21360
21361 \begin_layout Plain Layout
21362 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21363 \end_layout
21364
21365 \end_inset
21366
21367
21368 \end_layout
21369
21370 \begin_layout Description
21371 元に戻す: 
21372 \begin_inset Flex Code
21373 status collapsed
21374
21375 \begin_layout Plain Layout
21376 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21377 \end_layout
21378
21379 \end_inset
21380
21381
21382 \end_layout
21383
21384 \begin_layout Subsection
21385 バージョン管理と文書比較
21386 \end_layout
21387
21388 \begin_layout Standard
21389 バージョン管理は,通常
21390 \begin_inset Flex Code
21391 status collapsed
21392
21393 \begin_layout Plain Layout
21394 diff
21395 \end_layout
21396
21397 \end_inset
21398
21399 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21400 ファイルの場合には,あ
21401 まり便利ではありません.そこで,\SpecialChar LyX
21402 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21403
21404 \begin_inset Flex Code
21405 status collapsed
21406
21407 \begin_layout Plain Layout
21408 vc-compare
21409 \end_layout
21410
21411 \end_inset
21412
21413 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21414 関数説明書を参照),もう1つはツールバーアイコン
21415 \begin_inset Info
21416 type  "icon"
21417 arg   "vc-compare"
21418 \end_inset
21419
21420 による方法,さらにはメニュー項目
21421 \begin_inset Info
21422 type  "menu"
21423 arg   "vc-compare"
21424 \end_inset
21425
21426 を使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
21427 \begin_inset Flex MenuItem
21428 status collapsed
21429
21430 \begin_layout Plain Layout
21431 0
21432 \end_layout
21433
21434 \end_inset
21435
21436 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21437 \end_layout
21438
21439 \begin_layout Standard
21440 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21441 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
21442 \begin_inset Flex Code
21443 status collapsed
21444
21445 \begin_layout Plain Layout
21446 HEAD~X
21447 \end_layout
21448
21449 \end_inset
21450
21451
21452 \lang english
21453 .
21454 \lang japanese
21455 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21456 \end_layout
21457
21458 \begin_layout Section
21459 文芸プログラミング
21460 \end_layout
21461
21462 \begin_layout Standard
21463
21464 \noun on
21465 Kayvan Sylvan
21466 \noun default
21467 (kayvan@sylvan.com)改訂 
21468 \noun on
21469 Edmar Wienskoski Jr.
21470 \noun default
21471 (edmar-w-jr@technologist.com)原文
21472 \end_layout
21473
21474 \begin_layout Subsection
21475 はじめに
21476 \end_layout
21477
21478 \begin_layout Standard
21479 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21480 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21481 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21482 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21483 \end_layout
21484
21485 \begin_layout Standard
21486 また,あなたが,\SpecialChar LyX
21487 の設定を変更することを厭わない程度まで\SpecialChar LyX
21488 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21489 するトピックを扱っている,\SpecialChar LyX
21490 の他の説明書で調べてください.
21491 \end_layout
21492
21493 \begin_layout Subsection
21494 文芸プログラミング
21495 \end_layout
21496
21497 \begin_layout Standard
21498 以下は,文芸プログラミング FAQからの抜粋です.
21499 \end_layout
21500
21501 \begin_layout Quotation
21502 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21503 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21504 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21505 ングのWEBスタイルは,D.
21506 \begin_inset space \thinspace{}
21507 \end_inset
21508
21509 E.
21510  Knuthが,\SpecialChar TeX
21511 組版ソフトウエアを開発中に作り出したものです.
21512 \end_layout
21513
21514 \begin_layout Standard
21515 他のエキスパートの発言です.
21516 \end_layout
21517
21518 \begin_layout Quotation
21519
21520 \emph on
21521 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21522 \end_layout
21523
21524 \begin_layout Quotation
21525 3つの際立った特徴があります.重要な順に列挙すれば,
21526 \end_layout
21527
21528 \begin_deeper
21529 \begin_layout Itemize
21530 推敲の順序が柔軟
21531 \end_layout
21532
21533 \begin_layout Itemize
21534 ブラウジングの自動サポート
21535 \end_layout
21536
21537 \begin_layout Itemize
21538 特に図式と数式を含んだドキュメンテーションの組版
21539 \end_layout
21540
21541 \end_deeper
21542 \begin_layout Quotation
21543 などがあります.
21544 \end_layout
21545
21546 \begin_layout Standard
21547 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21548 \end_layout
21549
21550 \begin_layout Subsubsection
21551 書誌情報
21552 \end_layout
21553
21554 \begin_layout Standard
21555 完全な文芸プログラミング FAQは
21556 \end_layout
21557
21558 \begin_layout Quote
21559 Literate Programming FAQ 
21560 \begin_inset Flex URL
21561 status collapsed
21562
21563 \begin_layout Plain Layout
21564
21565 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21566 \end_layout
21567
21568 \end_inset
21569
21570
21571 \end_layout
21572
21573 \begin_layout Standard
21574 にあります.
21575 \end_layout
21576
21577 \begin_layout Standard
21578 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21579 を持つものもあります.私は自分で使うのに,いくつかの理由から
21580 \noun on
21581 Noweb
21582 \noun default
21583 を選びました.
21584 \end_layout
21585
21586 \begin_layout Itemize
21587 説明文書を\SpecialChar LaTeX
21588 でもHTMLでも出力できる.
21589 \end_layout
21590
21591 \begin_layout Itemize
21592 オープンアーキテクチャを持っているので,新しいフィルタをプラグインとして加えたり
21593 \begin_inset Foot
21594 status collapsed
21595
21596 \begin_layout Plain Layout
21597
21598 \emph on
21599 フィルタ
21600 \emph default
21601 は,与えられたデータストリームを読み込み,操作されたデータストリームを出力するプログラムです.このようにして,(文芸コードを含んだ)WEBファイルを,Cプログラ
21602 ムコードや\SpecialChar LaTeX
21603 コードのみを含むファイルに変換することができます.
21604 \end_layout
21605
21606 \end_inset
21607
21608 ,自分が必要な特別な処理を実行することが容易である.
21609 \end_layout
21610
21611 \begin_layout Itemize
21612 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21613 \end_layout
21614
21615 \begin_layout Itemize
21616 無料である.
21617 \end_layout
21618
21619 \begin_layout Standard
21620 Nowebのウェブページは
21621 \end_layout
21622
21623 \begin_layout Quote
21624 Nowebホームページ 
21625 \begin_inset Flex URL
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629
21630 https://www.cs.tufts.edu/~nr/noweb/
21631 \end_layout
21632
21633 \end_inset
21634
21635
21636 \end_layout
21637
21638 \begin_layout Standard
21639 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21640 \end_layout
21641
21642 \begin_layout Subsection
21643 \SpecialChar LyX
21644 とNowebを使った文芸プログラミング
21645 \end_layout
21646
21647 \begin_layout Standard
21648 \SpecialChar LyX
21649 における文芸プログラミングのサポートは,\SpecialChar LyX
21650 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21651 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21652 の機能を利用することができます.
21653 \end_layout
21654
21655 \begin_layout Subsubsection
21656 ドキュメントとコードの生成(weavingおよびtangling)
21657 \end_layout
21658
21659 \begin_layout Paragraph
21660 nowebモジュールの使用
21661 \end_layout
21662
21663 \begin_layout Standard
21664 Nowebと\SpecialChar LyX
21665 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21666 \family sans
21667 文書\SpecialChar menuseparator
21668 設定
21669 \family default
21670 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21671 web」モジュールが表示され,文書に追加できるようになっています.
21672 \end_layout
21673
21674 \begin_layout Paragraph
21675 コードの入力
21676 \end_layout
21677
21678 \begin_layout Standard
21679 \SpecialChar LyX
21680 では,
21681 \begin_inset Flex Noun
21682 status collapsed
21683
21684 \begin_layout Plain Layout
21685 Chunk
21686 \end_layout
21687
21688 \end_inset
21689
21690 という名前の拡張差込枠を使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21691 \end_layout
21692
21693 \begin_layout LyX-Code
21694 <<My code>>=
21695 \end_layout
21696
21697 \begin_layout LyX-Code
21698   code
21699 \end_layout
21700
21701 \begin_layout LyX-Code
21702   more code
21703 \end_layout
21704
21705 \begin_layout LyX-Code
21706   even more code
21707 \end_layout
21708
21709 \begin_layout LyX-Code
21710   @
21711 \end_layout
21712
21713 \begin_layout Standard
21714 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21715 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21716 これも
21717 \begin_inset Flex Noun
21718 status collapsed
21719
21720 \begin_layout Plain Layout
21721 Chunk
21722 \end_layout
21723
21724 \end_inset
21725
21726 によって取り扱われ,通常のテキスト差込枠のように見えますが,自由に空白を入れることができます.
21727 \end_layout
21728
21729 \begin_layout Standard
21730 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21731 \end_layout
21732
21733 \begin_layout LyX-Code
21734 <<My chunk>>=
21735 \end_layout
21736
21737 \begin_layout LyX-Code
21738 def some_function(args):
21739 \end_layout
21740
21741 \begin_layout LyX-Code
21742    "This is the doc string for this function."
21743 \end_layout
21744
21745 \begin_layout LyX-Code
21746    print "My args: ", args
21747 \end_layout
21748
21749 \begin_layout LyX-Code
21750 @ %def some_function
21751 \end_layout
21752
21753 \begin_layout Standard
21754 これをどのように使って,その結果相互参照がどうなるかは
21755 \emph on
21756 LIBDIR/examples/listerrors.lyx
21757 \emph default
21758 の中の文芸pythonプログラムを見るとよくわかります.
21759 \end_layout
21760
21761 \begin_layout Paragraph
21762 説明文書の生成
21763 \end_layout
21764
21765 \begin_layout Standard
21766 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21767 簡単で,通常の文書で行うように
21768 \family sans
21769 文書\SpecialChar menuseparator
21770 表示
21771 \family default
21772 等を選ぶだけです.特別な手続きは必要ありません.
21773 \end_layout
21774
21775 \begin_layout Standard
21776 理解を助けるために,\SpecialChar LyX
21777 の内部で何が起っているかを説明しておきましょう.
21778 \end_layout
21779
21780 \begin_layout Enumerate
21781
21782 \family sans
21783 文書\SpecialChar menuseparator
21784 更新
21785 \family default
21786 が選択されると,\SpecialChar LaTeX
21787 ファイルがつくられます.
21788 \end_layout
21789
21790 \begin_deeper
21791 \begin_layout Standard
21792 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21793 \begin_inset Flex MenuItem
21794 status collapsed
21795
21796 \begin_layout Plain Layout
21797 設定
21798 \end_layout
21799
21800 \end_inset
21801
21802 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21803 \end_layout
21804
21805 \end_deeper
21806 \begin_layout Enumerate
21807 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21808 による特別な処理は必要ありません.
21809 \begin_inset Flex Noun
21810 status collapsed
21811
21812 \begin_layout Plain Layout
21813 Chunk
21814 \end_layout
21815
21816 \end_inset
21817
21818 差込枠でコードを入力するのだけがポイントです.
21819 \end_layout
21820
21821 \begin_layout Enumerate
21822 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21823 は,\SpecialChar LyX
21824 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21825 への変換子
21826 \begin_inset Foot
21827 status collapsed
21828
21829 \begin_layout Plain Layout
21830 これらの変換子は,
21831 \family sans
21832 ツール\SpecialChar menuseparator
21833 設定
21834 \family default
21835 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21836 \emph on
21837 カスタマイズ篇
21838 \emph default
21839 』の「
21840 \emph on
21841 変換子
21842 \emph default
21843 」の節をご覧ください.
21844 \end_layout
21845
21846 \end_inset
21847
21848 を使って\SpecialChar LaTeX
21849 ファイルを生成します.
21850 \end_layout
21851
21852 \begin_deeper
21853 \begin_layout Standard
21854 それ以外の場合はこのステップを飛ばします.
21855 \end_layout
21856
21857 \end_deeper
21858 \begin_layout Enumerate
21859 最後に\SpecialChar LaTeX
21860 が実行され,通常の文書と同じ後処理が行われます.
21861 \end_layout
21862
21863 \begin_layout Standard
21864 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21865 \end_layout
21866
21867 \begin_layout Paragraph
21868 コードの生成
21869 \end_layout
21870
21871 \begin_layout Standard
21872 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21873 ファイルが生成されます.それから\SpecialChar LyX
21874
21875 \family typewriter
21876 Noweb->Program
21877 \family default
21878 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21879 \end_layout
21880
21881 \begin_layout Enumerate
21882 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21883 変換します).
21884 \end_layout
21885
21886 \begin_layout Enumerate
21887 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21888 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21889 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21890 \end_layout
21891
21892 \begin_layout Standard
21893 冒頭部,「変換子」設定は
21894 \end_layout
21895
21896 \begin_layout LyX-Code
21897
21898 \family typewriter
21899 build-script $$i $$r
21900 \end_layout
21901
21902 \begin_layout Standard
21903 と指定します.これは基本的に,\SpecialChar LyX
21904
21905 \begin_inset Quotes erd
21906 \end_inset
21907
21908
21909 \family typewriter
21910 build-script
21911 \family default
21912
21913 \begin_inset Quotes erd
21914 \end_inset
21915
21916 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21917 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21918 ファイルのディレクトリパスを使って呼び出すこ
21919 とを意味しています.
21920 \end_layout
21921
21922 \begin_layout Standard
21923 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21924 \end_layout
21925
21926 \begin_layout LyX-Code
21927
21928 \family sans
21929 #!/bin/sh
21930 \end_layout
21931
21932 \begin_layout LyX-Code
21933
21934 \family sans
21935 #
21936 \end_layout
21937
21938 \begin_layout LyX-Code
21939
21940 \family sans
21941 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21942 \end_layout
21943
21944 \begin_layout Standard
21945 変換子設定の次の部分は「フラグ」で,これは
21946 \end_layout
21947
21948 \begin_layout LyX-Code
21949
21950 \family typewriter
21951 parselog=$$s/scripts/listerrors
21952 \end_layout
21953
21954 \begin_layout Standard
21955 に設定されます.
21956 \begin_inset Newline newline
21957 \end_inset
21958
21959 これは,
21960 \begin_inset Quotes erd
21961 \end_inset
21962
21963 build-script
21964 \begin_inset Quotes erd
21965 \end_inset
21966
21967 プロセスが生成したエラーを
21968 \begin_inset Quotes erd
21969 \end_inset
21970
21971 listerrors
21972 \begin_inset Quotes erd
21973 \end_inset
21974
21975 プログラムを介して処理するものです.
21976 \end_layout
21977
21978 \begin_layout Standard
21979 ビルドは,通常\SpecialChar LyX
21980 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21981 は,主要ファイルとみなされるものをコピーして取り出
21982 しますが,
21983 \family typewriter
21984 Noweb→プログラム
21985 \family default
21986 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21987 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21988 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21989 \end_layout
21990
21991 \begin_layout Paragraph
21992 文章中でのプログラムの構築操作の説明
21993 \end_layout
21994
21995 \begin_layout Standard
21996 \SpecialChar LyX
21997 とNowebの統合の最後の部分は,
21998 \begin_inset Quotes eld
21999 \end_inset
22000
22001 build-script
22002 \begin_inset Quotes erd
22003 \end_inset
22004
22005  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
22006 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
22007 \end_layout
22008
22009 \begin_layout Standard
22010 以下に典型的なchunkがどのようなものかを書いておきます.
22011 \end_layout
22012
22013 \begin_layout LyX-Code
22014 <<build-script>>=
22015 \begin_inset Newline newline
22016 \end_inset
22017
22018
22019 \end_layout
22020
22021 \begin_layout LyX-Code
22022 #!/bin/sh
22023 \begin_inset Newline newline
22024 \end_inset
22025
22026
22027 \begin_inset Newline newline
22028 \end_inset
22029
22030 if [ -z "${NOWEB_SOURCE}" ]
22031 \begin_inset Newline newline
22032 \end_inset
22033
22034 then
22035 \end_layout
22036
22037 \begin_layout LyX-Code
22038 NOWEB_SOURCE=myfile.nw
22039 \begin_inset Newline newline
22040 \end_inset
22041
22042 fi
22043 \begin_inset Newline newline
22044 \end_inset
22045
22046 [...
22047  code to extract files ...
22048  use NOWEB_OUTPUT_DIR here ...]
22049 \begin_inset Newline newline
22050 \end_inset
22051
22052 [...
22053  code to compile files ...]
22054 \begin_inset Newline newline
22055 \end_inset
22056
22057 @
22058 \end_layout
22059
22060 \begin_layout Standard
22061
22062 \emph on
22063 LIBDIR/examples/listerrors.lyx
22064 \emph default
22065
22066 \emph on
22067 LIBDIR/examples/Literate.lyx
22068 \emph default
22069 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
22070 ってもらうための例です.また,
22071 \emph on
22072 LIBDIR/examples/noweb2lyx.lyx
22073 \emph default
22074 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
22075 の文芸プログラミングのサポートがプログラム言語に依存しない
22076 ことを示しています.
22077 \end_layout
22078
22079 \begin_layout Subsubsection
22080 \SpecialChar LyX
22081 の設定
22082 \end_layout
22083
22084 \begin_layout Standard
22085 すべての文芸プログラムのための設定は,
22086 \family sans
22087 ツール\SpecialChar menuseparator
22088 設定
22089 \family default
22090 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
22091 \end_layout
22092
22093 \begin_layout Description
22094 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
22095 \family sans
22096 GUI名
22097 \family default
22098
22099 \family typewriter
22100 NoWeb
22101 \family default
22102 に,拡張子を
22103 \family typewriter
22104 .nw
22105 \family default
22106 に設定してください.これによって,\SpecialChar LyX
22107 に変換プロセスの第一段階でつくられるファイルに
22108 \family typewriter
22109 .nw
22110 \family default
22111 という拡張子をつけることを指示します.
22112 \end_layout
22113
22114 \begin_layout Description
22115 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
22116 \end_layout
22117
22118 \begin_layout Description
22119
22120 \family sans
22121 NoWeb
22122 \family default
22123 ->
22124 \family sans
22125 \SpecialChar LaTeX
22126
22127 \family default
22128  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
22129 \family typewriter
22130 noweave -delay -index $$i > $$o
22131 \family default
22132 」に設定されます.
22133 \end_layout
22134
22135 \begin_layout Description
22136
22137 \family sans
22138 NoWeb
22139 \family default
22140 ->
22141 \family sans
22142 Program
22143 \family default
22144  これは「tangling」を行います.上述のように,変換子は「
22145 \family typewriter
22146 build-script $$i $$r
22147 \family default
22148 」,フラグは「
22149 \family typewriter
22150 parselog=$$s/scripts/listerrors
22151 \family default
22152 」となります.
22153 \end_layout
22154
22155 \begin_layout Subsubsection
22156 デバッグ機能拡張
22157 \end_layout
22158
22159 \begin_layout Standard
22160 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
22161 サーバに実装されました.
22162 \end_layout
22163
22164 \begin_layout Standard
22165 ddd/gdbでデバッグしているとき,一つの
22166 \begin_inset Flex Ruby
22167 status collapsed
22168
22169 \begin_layout Plain Layout
22170
22171 \begin_inset Argument post:1
22172 status collapsed
22173
22174 \begin_layout Plain Layout
22175 キー
22176 \end_layout
22177
22178 \end_inset
22179
22180
22181 \end_layout
22182
22183 \end_inset
22184
22185 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
22186 \begin_inset Flex MenuItem
22187 status collapsed
22188
22189 \begin_layout Plain Layout
22190 ツール\SpecialChar menuseparator
22191 設定\SpecialChar menuseparator
22192 ファイル書式
22193 \end_layout
22194
22195 \end_inset
22196
22197 ウインドウを表示して,
22198 \begin_inset Flex MenuItem
22199 status collapsed
22200
22201 \begin_layout Plain Layout
22202 編集プログラム
22203 \end_layout
22204
22205 \end_inset
22206
22207 エントリを変えると変えることができます.
22208 \end_layout
22209
22210 \begin_layout Standard
22211 新しい\SpecialChar LyX
22212 サーバの関数と,このdddの機能を使うために
22213 \begin_inset Flex MenuItem
22214 status collapsed
22215
22216 \begin_layout Plain Layout
22217 編集プログラム
22218 \end_layout
22219
22220 \end_inset
22221
22222 を次のように設定してください.
22223 \end_layout
22224
22225 \begin_layout LyX-Code
22226
22227 \family sans
22228 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
22229 \end_layout
22230
22231 \begin_layout Standard
22232 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
22233 サーバに情報を送り,\SpecialChar LyX
22234
22235 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
22236 \end_layout
22237
22238 \begin_layout Standard
22239 この機能が動くには\SpecialChar LyX
22240 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
22241 サーバーは使えないようになっています).
22242 \end_layout
22243
22244 \begin_layout Standard
22245
22246 \begin_inset CommandInset ref
22247 LatexCommand ref
22248 reference "sec:サーバーを開始するには"
22249
22250 \end_inset
22251
22252 節にその方法が説明されています.
22253 \end_layout
22254
22255 \begin_layout Subsubsection
22256 ツールバー拡張
22257 \end_layout
22258
22259 \begin_layout Standard
22260 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの4つのボタンは
22261 \family sans
22262 標準
22263 \family default
22264 ・節・
22265 \family sans
22266 \SpecialChar LaTeX
22267
22268 \family default
22269
22270 \family sans
22271 \SpecialChar LyX
22272 コード
22273 \family default
22274 の段落環境へのショートカットであり,1つは拡張差込枠
22275 \family sans
22276 Chunk
22277 \family default
22278 へのショートカットです.最後の一つはファイルメニュー項目の「Build Program」への
22279 \begin_inset Flex Ruby
22280 status collapsed
22281
22282 \begin_layout Plain Layout
22283
22284 \family roman
22285 \series medium
22286 \shape up
22287 \size normal
22288 \emph off
22289 \bar no
22290 \noun off
22291 \color none
22292 捷径
22293 \family default
22294 \series default
22295 \shape default
22296 \size default
22297 \emph default
22298 \bar default
22299 \noun default
22300 \color inherit
22301
22302 \begin_inset Argument post:1
22303 status collapsed
22304
22305 \begin_layout Plain Layout
22306 ショートカット
22307 \end_layout
22308
22309 \end_inset
22310
22311
22312 \end_layout
22313
22314 \end_inset
22315
22316 です.
22317 \end_layout
22318
22319 \begin_layout Standard
22320 \SpecialChar LyX
22321 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22322 \begin_inset Flex MenuItem
22323 status collapsed
22324
22325 \begin_layout Plain Layout
22326 文書\SpecialChar menuseparator
22327 更新\SpecialChar menuseparator
22328 DVI
22329 \end_layout
22330
22331 \end_inset
22332
22333
22334 \begin_inset Flex MenuItem
22335 status collapsed
22336
22337 \begin_layout Plain Layout
22338 文書\SpecialChar menuseparator
22339 表示\SpecialChar menuseparator
22340 DVI
22341 \end_layout
22342
22343 \end_inset
22344
22345 を組み合わせたものになっています.
22346 \end_layout
22347
22348 \begin_layout LyX-Code
22349 Toolbar
22350 \end_layout
22351
22352 \begin_layout LyX-Code
22353   Layouts
22354 \end_layout
22355
22356 \begin_layout LyX-Code
22357   Icon "layout Standard"
22358 \end_layout
22359
22360 \begin_layout LyX-Code
22361   Icon "layout Section"
22362 \end_layout
22363
22364 \begin_layout LyX-Code
22365   Icon "layout latex"
22366 \end_layout
22367
22368 \begin_layout LyX-Code
22369   Icon "layout \SpecialChar LyX
22370 -Code"
22371 \end_layout
22372
22373 \begin_layout LyX-Code
22374   Icon "flex.insert Chunk"
22375 \end_layout
22376
22377 \begin_layout LyX-Code
22378   Separator
22379 \end_layout
22380
22381 \begin_layout LyX-Code
22382   Icon "buffer-view"
22383 \end_layout
22384
22385 \begin_layout LyX-Code
22386   Icon "buffer-typeset"
22387 \end_layout
22388
22389 \begin_layout LyX-Code
22390   Icon "build-program"
22391 \end_layout
22392
22393 \begin_layout LyX-Code
22394   Separator
22395 \end_layout
22396
22397 \begin_layout LyX-Code
22398 .
22399 \end_layout
22400
22401 \begin_layout LyX-Code
22402 .
22403 \end_layout
22404
22405 \begin_layout LyX-Code
22406 .
22407 \end_layout
22408
22409 \begin_layout LyX-Code
22410 End
22411 \end_layout
22412
22413 \begin_layout Subsubsection
22414 色の変更
22415 \end_layout
22416
22417 \begin_layout Standard
22418 \SpecialChar LyX
22419 ではいくつもの色を
22420 \begin_inset Flex MenuItem
22421 status collapsed
22422
22423 \begin_layout Plain Layout
22424 設定
22425 \end_layout
22426
22427 \end_inset
22428
22429 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22430 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22431 フォントを使うことになっていて,文芸プログラミ
22432 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22433 \begin_inset Flex MenuItem
22434 status collapsed
22435
22436 \begin_layout Plain Layout
22437 操作性\SpecialChar menuseparator
22438
22439 \end_layout
22440
22441 \end_inset
22442
22443 タブで変更することができます.
22444 \end_layout
22445
22446 \begin_layout Standard
22447 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22448 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22449 \end_layout
22450
22451 \begin_layout Subsection
22452 \SpecialChar LyX
22453 とknitr/Sweave
22454 \end_layout
22455
22456 \begin_layout Standard
22457 knitrとSweaveへのサポートについては,用例ファイル
22458 \emph on
22459 knitr.lyx
22460 \emph default
22461 とSweave取扱説明書(
22462 \family sans
22463 ヘルプ\SpecialChar menuseparator
22464 用途別説明書
22465 \family default
22466 メニュー)に説明があります.
22467 \end_layout
22468
22469 \begin_layout Chapter
22470 特殊機能
22471 \begin_inset CommandInset label
22472 LatexCommand label
22473 name "chap:Special-features"
22474
22475 \end_inset
22476
22477
22478 \end_layout
22479
22480 \begin_layout Standard
22481 \SpecialChar LyX
22482 では,\SpecialChar LaTeX
22483 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22484 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22485 コードを使用することはできます.本章は,ユーザの興味が
22486 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22487 \emph on
22488 埋込オブジェクト篇
22489 \emph default
22490 』をご参照ください.
22491 \end_layout
22492
22493 \begin_layout Section
22494 多段組
22495 \end_layout
22496
22497 \begin_layout Standard
22498 この機能は,文書設定の
22499 \family sans
22500 本文レイアウト
22501 \family default
22502 にある
22503 \family sans
22504 二段組文書
22505 \family default
22506 とは別の機能です.文書全体に二段組を行いたい場合には,
22507 \family sans
22508 二段組文書
22509 \family default
22510 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22511 \end_layout
22512
22513 \begin_layout Standard
22514 文書中で多段組を行うには,\SpecialChar LaTeX
22515 パッケージ
22516 \begin_inset Flex Code
22517 status collapsed
22518
22519 \begin_layout Plain Layout
22520 multicol
22521 \end_layout
22522
22523 \end_inset
22524
22525
22526 \begin_inset Index idx
22527 status collapsed
22528
22529 \begin_layout Plain Layout
22530 \SpecialChar LaTeX
22531 ぱっけーじ @ \SpecialChar LaTeX
22532 パッケージ ! multicol
22533 \end_layout
22534
22535 \end_inset
22536
22537 を導入した上で,(
22538 \family sans
22539 文書\SpecialChar menuseparator
22540 設定\SpecialChar menuseparator
22541 モジュール
22542 \family default
22543 メニューから)
22544 \family sans
22545 多段組
22546 \family default
22547 モジュールを読み込んでください.
22548 \end_layout
22549
22550 \begin_layout Standard
22551 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22552 \family sans
22553 段をまたぐ
22554 \family default
22555 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22556 \end_layout
22557
22558 \begin_layout Subsection
22559 基本
22560 \end_layout
22561
22562 \begin_layout Standard
22563 文章中で二段組を使用したい場合には,段組を始める場所で
22564 \family sans
22565 挿入\SpecialChar menuseparator
22566 任意設定差込枠\SpecialChar menuseparator
22567 多段組
22568 \family default
22569 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22570 \end_layout
22571
22572 \begin_layout Standard
22573 下記はその用例です.
22574 \end_layout
22575
22576 \begin_layout Standard
22577 \noindent
22578 \begin_inset Flex Multiple Columns
22579 status open
22580
22581 \begin_layout Plain Layout
22582 \noindent
22583
22584 \series bold
22585 \size small
22586 The Adventure of the Empty House
22587 \series default
22588
22589 \begin_inset Newline newline
22590 \end_inset
22591
22592 by Sir Arthur Conan Doyle
22593 \end_layout
22594
22595 \begin_layout Plain Layout
22596
22597 \size small
22598 It was in the spring of the year 1894 that all London was interested, and
22599  the fashionable world dismayed, by the murder of the Honourable Ronald
22600  Adair under most unusual and inexplicable circumstances.
22601  The public has already learned those particulars of the crime which came
22602  out in the police investigation, but a good deal was suppressed upon that
22603  occasion, since the case for the prosecution was so overwhelmingly strong
22604  that it was not necessary to bring forward all the facts.
22605  Only now, at the end of nearly ten years, am I allowed to supply those
22606  missing links which make up the whole of that remarkable chain.
22607  The crime was of interest in itself, but that interest was as nothing to
22608  me compared to the inconceivable sequel, which afforded me the greatest
22609  shock and surprise of any event in my adventurous life.
22610  Even now, after this long interval, I find myself thrilling as I think
22611  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22612 ty which utterly submerged my mind.
22613  Let me say to that public, which has shown some interest in those glimpses
22614  which I have occasionally given them of the thoughts and actions of a very
22615  remarkable man, that they are not to blame me if I have not shared my knowledge
22616  with them, for I should have considered it my first duty to do so, had
22617  I not been barred by a positive prohibition from his own lips, which was
22618  only withdrawn upon the third of last month.
22619 \end_layout
22620
22621 \end_inset
22622
22623
22624 \end_layout
22625
22626 \begin_layout Standard
22627 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22628 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22629 と書きます).
22630 \begin_inset Newline newline
22631 \end_inset
22632
22633 下記は三段組の例です.
22634 \end_layout
22635
22636 \begin_layout Standard
22637 \begin_inset Flex Multiple Columns
22638 status open
22639
22640 \begin_layout Plain Layout
22641
22642 \size footnotesize
22643 \begin_inset Argument 1
22644 status open
22645
22646 \begin_layout Plain Layout
22647
22648 3
22649 \end_layout
22650
22651 \end_inset
22652
22653 It can be imagined that my close intimacy with Sherlock Holmes had interested
22654  me deeply in crime, and that after his disappearance I never failed to
22655  read with care the various problems which came before the public.
22656  And I even attempted, more than once, for my own private satisfaction,
22657  to employ his methods in their solution, though with indifferent success.
22658  There was none, however, which appealed to me like this tragedy of Ronald
22659  Adair.
22660  As I read the evidence at the inquest, which led up to a verdict of willful
22661  murder against some person or persons unknown, I realized more clearly
22662  than I had ever done the loss which the community had sustained by the
22663  death of Sherlock Holmes.
22664  There were points about this strange business which would, I was sure,
22665  have specially appealed to him, and the efforts of the police would have
22666  been supplemented, or more probably anticipated, by the trained observation
22667  and the alert mind of the first criminal agent in Europe.
22668  All day, as I drove upon my round, I turned over the case in my mind and
22669  found no explanation which appeared to me to be adequate.
22670  At the risk of telling a twice-told tale, I will recapitulate the facts
22671  as they were known to the public at the conclusion of the inquest.
22672 \end_layout
22673
22674 \end_inset
22675
22676
22677 \end_layout
22678
22679 \begin_layout Standard
22680 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22681 \end_layout
22682
22683 \begin_layout Standard
22684 \begin_inset Newpage newpage
22685 \end_inset
22686
22687
22688 \end_layout
22689
22690 \begin_layout Subsection
22691 段組中の段組
22692 \end_layout
22693
22694 \begin_layout Standard
22695 また,段中に段を組むこともできます.
22696 \end_layout
22697
22698 \begin_layout Standard
22699 \begin_inset Flex Multiple Columns
22700 status open
22701
22702 \begin_layout Plain Layout
22703
22704 \size footnotesize
22705 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22706  at that time governor of one of the Australian colonies.
22707  Adair's mother had returned from Australia to undergo the operation for
22708  cataract, and she, her son Ronald, and her daughter Hilda were living together
22709  at 427 Park Lane.
22710 \end_layout
22711
22712 \begin_layout Plain Layout
22713 \begin_inset Flex Multiple Columns
22714 status open
22715
22716 \begin_layout Plain Layout
22717
22718 \size footnotesize
22719 The youth moved in the best society
22720 \begin_inset space ~
22721 \end_inset
22722
22723 – had, so far as was known, no enemies and no particular vices.
22724  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22725  had been broken off by mutual consent some months before, and there was
22726  no sign that it had left any very profound feeling behind it.
22727  For the rest {sic} the man's life moved in a narrow and conventional circle,
22728  for his habits were quiet and his nature unemotional.
22729  Yet it was upon this easy-going young aristocrat that death came, in most
22730  strange and unexpected form, between the hours of ten and eleven-twenty
22731  on the night of March 30, 1894.
22732 \end_layout
22733
22734 \end_inset
22735
22736
22737 \end_layout
22738
22739 \begin_layout Plain Layout
22740
22741 \size footnotesize
22742 Ronald Adair was fond of cards
22743 \begin_inset space ~
22744 \end_inset
22745
22746 – playing continually, but never for such stakes as would hurt him.
22747  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22748  It was shown that, after dinner on the day of his death, he had played
22749  a rubber of whist at the latter club.
22750  He had also played there in the afternoon.
22751
22752 \size default
22753  
22754 \size footnotesize
22755 The evidence of those who had played with him
22756 \begin_inset space ~
22757 \end_inset
22758
22759 – Mr.
22760  Murray, Sir John Hardy, and Colonel Moran
22761 \begin_inset space ~
22762 \end_inset
22763
22764 – showed that the game was whist, and that there was a fairly equal fall
22765  of the cards.
22766  Adair might have lost five pounds, but not more.
22767  His fortune was a considerable one, and such a loss could not in any way
22768  affect him.
22769  He had played nearly every day at one club or other, but he was a cautious
22770  player, and usually rose a winner.
22771  It came out in evidence that, in partnership with Colonel Moran, he had
22772  actually won as much as four hundred and twenty pounds in a sitting, some
22773  weeks before, from Godfrey Milner and Lord Balmoral.
22774  So much for his recent history as it came out at the inquest.
22775 \end_layout
22776
22777 \end_inset
22778
22779
22780 \end_layout
22781
22782 \begin_layout Subsection
22783 応用例
22784 \end_layout
22785
22786 \begin_layout Standard
22787 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22788 \end_layout
22789
22790 \begin_layout Standard
22791 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22792 パッケージ
22793 \begin_inset Flex Code
22794 status collapsed
22795
22796 \begin_layout Plain Layout
22797 multicol
22798 \end_layout
22799
22800 \end_inset
22801
22802
22803 \begin_inset CommandInset href
22804 LatexCommand href
22805 name "取扱説明書"
22806 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22807 literal "false"
22808
22809 \end_inset
22810
22811 をご覧ください.
22812 \end_layout
22813
22814 \begin_layout Subsubsection
22815 序文
22816 \end_layout
22817
22818 \begin_layout Standard
22819 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22820 \family sans
22821 挿入\SpecialChar menuseparator
22822 序文
22823 \family default
22824 メニューを使用してください.序文は,この差込枠内に書いてください.
22825 \begin_inset Newline newline
22826 \end_inset
22827
22828 序文のある文章の例を掲げます.
22829 \end_layout
22830
22831 \begin_layout Standard
22832 \begin_inset VSpace bigskip
22833 \end_inset
22834
22835
22836 \end_layout
22837
22838 \begin_layout Standard
22839 \begin_inset Flex Multiple Columns
22840 status open
22841
22842 \begin_layout Plain Layout
22843 \begin_inset Argument 2
22844 status open
22845
22846 \begin_layout Plain Layout
22847 And the story continues and continues and continues and continues\SpecialChar ldots
22848
22849 \end_layout
22850
22851 \end_inset
22852
22853
22854 \size small
22855 On the evening of the crime, he returned from the club exactly at ten.
22856  His mother and sister were out spending the evening with a relation.
22857  The servant deposed that she heard him enter the front room on the second
22858  floor, generally used as his sitting-room.
22859  She had lit a fire there, and as it smoked she had opened the window.
22860  No sound was heard from the room until eleven-twenty, the hour of the return
22861  of Lady Maynooth and her daughter.
22862  Desiring to say good-night, she attempted to enter her son's room.
22863  The door was locked on the inside, and no answer could be got to their
22864  cries and knocking.
22865  Help was obtained, and the door forced.
22866  The unfortunate young man was found lying near the table.
22867  His head had been horribly mutilated by an expanding revolver bullet, but
22868  no weapon of any sort was to be found in the room.
22869 \end_layout
22870
22871 \end_inset
22872
22873
22874 \end_layout
22875
22876 \begin_layout Standard
22877 最初の\SpecialChar TeX
22878 コードの後に,節宣言コマンドを\SpecialChar TeX
22879 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22880 \end_layout
22881
22882 \begin_layout Standard
22883
22884 \series bold
22885
22886 \backslash
22887 subsection{小節見出し}
22888 \end_layout
22889
22890 \begin_layout Standard
22891 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22892 \end_layout
22893
22894 \begin_layout Standard
22895 \begin_inset Flex Multiple Columns
22896 status open
22897
22898 \begin_layout Plain Layout
22899 \begin_inset Argument 2
22900 status open
22901
22902 \begin_layout Plain Layout
22903 \begin_inset ERT
22904 status collapsed
22905
22906 \begin_layout Plain Layout
22907
22908
22909 \backslash
22910 subsubsection{
22911 \end_layout
22912
22913 \end_inset
22914
22915 これは序文の小々節見出しです
22916 \begin_inset ERT
22917 status collapsed
22918
22919 \begin_layout Plain Layout
22920
22921 }
22922 \end_layout
22923
22924 \end_inset
22925
22926
22927 \end_layout
22928
22929 \end_inset
22930
22931
22932 \size small
22933 A minute examination of the circumstances served only to make the case more
22934  complex.
22935  In the first place, no reason could be given why the young man should have
22936  fastened the door upon the inside.
22937  There was the possibility that the murderer had done this, and had afterwards
22938  escaped by the window.
22939  The drop was at least twenty feet, however, and a bed of crocuses in full
22940  bloom lay beneath.
22941  Neither the flowers nor the earth showed any sign of having been disturbed,
22942  nor were there any marks upon the narrow strip of grass which separated
22943  the house from the road.
22944  Apparently, therefore, it was the young man himself who had fastened the
22945  door.
22946  But how did he come by his death? No one could have climbed up to the window
22947  without leaving traces.
22948  Suppose a man had fired through the window, he would indeed be a remarkable
22949  shot who could with a revolver inflict so deadly a wound.
22950  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22951  a hundred yards of the house.
22952  No one had heard a shot.
22953 \end_layout
22954
22955 \end_inset
22956
22957
22958 \end_layout
22959
22960 \begin_layout Standard
22961 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22962 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22963 \family sans
22964 挿入\SpecialChar menuseparator
22965 改頁前の余白
22966 \family default
22967 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22968 \end_layout
22969
22970 \begin_layout Standard
22971 以下の例では,
22972 \begin_inset Flex Code
22973 status collapsed
22974
22975 \begin_layout Plain Layout
22976 7
22977 \backslash
22978 baselineskip
22979 \end_layout
22980
22981 \end_inset
22982
22983 を用いて,必要行数を7行に指定しています(コマンド
22984 \begin_inset Flex Code
22985 status collapsed
22986
22987 \begin_layout Plain Layout
22988
22989 \backslash
22990 baselineskip
22991 \end_layout
22992
22993 \end_inset
22994
22995 は\SpecialChar TeX
22996 コードとして入力する必要があります).
22997 \end_layout
22998
22999 \begin_layout Standard
23000 \begin_inset Flex Multiple Columns
23001 status open
23002
23003 \begin_layout Plain Layout
23004 \begin_inset Argument 3
23005 status open
23006
23007 \begin_layout Plain Layout
23008 7
23009 \begin_inset ERT
23010 status collapsed
23011
23012 \begin_layout Plain Layout
23013
23014
23015 \backslash
23016 baselineskip
23017 \end_layout
23018
23019 \end_inset
23020
23021
23022 \end_layout
23023
23024 \end_inset
23025
23026
23027 \size small
23028 On the evening of the crime, he returned from the club exactly at ten.
23029  His mother and sister were out spending the evening with a relation.
23030  The servant deposed that she heard him enter the front room on the second
23031  floor, generally used as his sitting-room.
23032  She had lit a fire there, and as it smoked she had opened the window.
23033  No sound was heard from the room until eleven-twenty, the hour of the return
23034  of Lady Maynooth and her daughter.
23035  Desiring to say good-night, she attempted to enter her son's room.
23036  The door was locked on the inside, and no answer could be got to their
23037  cries and knocking.
23038  Help was obtained, and the door forced.
23039  The unfortunate young man was found lying near the table.
23040  His head had been horribly mutilated by an expanding revolver bullet, but
23041  no weapon of any sort was to be found in the room.
23042 \end_layout
23043
23044 \end_inset
23045
23046
23047 \end_layout
23048
23049 \begin_layout Subsubsection
23050 周囲の余白
23051 \end_layout
23052
23053 \begin_layout Standard
23054 多段組の前後の余白は,長さ
23055 \begin_inset Flex Code
23056 status collapsed
23057
23058 \begin_layout Plain Layout
23059
23060 \backslash
23061 multicolsep
23062 \end_layout
23063
23064 \end_inset
23065
23066 を変えることで変更することができます.例えば,\SpecialChar TeX
23067 コードで書かれたコマンド
23068 \end_layout
23069
23070 \begin_layout LyX-Code
23071
23072 \family sans
23073
23074 \backslash
23075 setlength{
23076 \backslash
23077 multicolsep}{3cm}
23078 \end_layout
23079
23080 \begin_layout Standard
23081 は,その値を3
23082 \begin_inset space \thinspace{}
23083 \end_inset
23084
23085 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
23086 \begin_inset space \thinspace{}
23087 \end_inset
23088
23089 ptです.
23090 \end_layout
23091
23092 \begin_layout Standard
23093 以下の例では,
23094 \begin_inset Flex Code
23095 status collapsed
23096
23097 \begin_layout Plain Layout
23098
23099 \backslash
23100 multicolsep
23101 \end_layout
23102
23103 \end_inset
23104
23105 は2.5
23106 \begin_inset space \thinspace{}
23107 \end_inset
23108
23109 cmに指定されています.
23110 \end_layout
23111
23112 \begin_layout Standard
23113 \begin_inset ERT
23114 status open
23115
23116 \begin_layout Plain Layout
23117
23118
23119 \backslash
23120 setlength{
23121 \backslash
23122 multicolsep}{2.5cm}
23123 \end_layout
23124
23125 \end_inset
23126
23127
23128 \end_layout
23129
23130 \begin_layout Standard
23131 \begin_inset Flex Multiple Columns
23132 status open
23133
23134 \begin_layout Plain Layout
23135
23136 \size small
23137 All day I turned these facts over in my mind, endeavouring to hit upon some
23138  theory which could reconcile them all, and to find that line of least resistanc
23139 e which my poor friend had declared to be the starting-point of every investigat
23140 ion.
23141  I confess that I made little progress.
23142  In the evening I strolled across the Park, and found myself about six o'clock
23143  at the Oxford Street end of Park Lane.
23144  A group of loafers upon the pavements, all staring up at a particular window,
23145  directed me to the house which I had come to see.
23146  A tall, thin man with coloured glasses, whom I strongly suspected of being
23147  a plain-clothes detective, was pointing out some theory of his own, while
23148  the others crowded round to listen to what he said.
23149  I got as near him as I could, but his observations seemed to me to be absurd,
23150  so I withdrew again in some disgust.
23151  As I did so I struck against an elderly, deformed man, who had been behind
23152  me, and I knocked down several books which he was carrying.
23153 \end_layout
23154
23155 \end_inset
23156
23157
23158 \end_layout
23159
23160 \begin_layout Standard
23161 \begin_inset Note Greyedout
23162 status open
23163
23164 \begin_layout Plain Layout
23165
23166 \series bold
23167 【註】
23168 \series default
23169
23170 \begin_inset Flex Code
23171 status collapsed
23172
23173 \begin_layout Plain Layout
23174
23175 \backslash
23176 setlength
23177 \end_layout
23178
23179 \end_inset
23180
23181 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
23182 \end_layout
23183
23184 \end_inset
23185
23186
23187 \end_layout
23188
23189 \begin_layout Standard
23190 \begin_inset ERT
23191 status collapsed
23192
23193 \begin_layout Plain Layout
23194
23195
23196 \backslash
23197 setlength{
23198 \backslash
23199 multicolsep}{13pt}
23200 \end_layout
23201
23202 \end_inset
23203
23204
23205 \begin_inset Note Note
23206 status collapsed
23207
23208 \begin_layout Plain Layout
23209
23210 \lang english
23211 go back to the default
23212 \end_layout
23213
23214 \end_inset
23215
23216
23217 \end_layout
23218
23219 \begin_layout Standard
23220 \begin_inset Newpage newpage
23221 \end_inset
23222
23223
23224 \end_layout
23225
23226 \begin_layout Subsubsection
23227 改段
23228 \end_layout
23229
23230 \begin_layout Standard
23231 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
23232 コードで,コマンド
23233 \begin_inset Flex Code
23234 status collapsed
23235
23236 \begin_layout Plain Layout
23237
23238 \backslash
23239 columnbreak{}
23240 \end_layout
23241
23242 \end_inset
23243
23244 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
23245 \begin_inset Newline newline
23246 \end_inset
23247
23248 以下が用例です.
23249 \end_layout
23250
23251 \begin_layout Standard
23252 \begin_inset Flex Multiple Columns
23253 status open
23254
23255 \begin_layout Plain Layout
23256
23257 \size small
23258 \begin_inset Quotes eld
23259 \end_inset
23260
23261 You're surprised to see me, sir,
23262 \begin_inset Quotes erd
23263 \end_inset
23264
23265  said he, in a strange, croaking voice.
23266 \end_layout
23267
23268 \begin_layout Plain Layout
23269
23270 \size small
23271 I acknowledged that I was.
23272 \end_layout
23273
23274 \begin_layout Plain Layout
23275
23276 \size small
23277 \begin_inset Quotes eld
23278 \end_inset
23279
23280 Well, I've a conscience, sir, and when I chanced to see you go into this
23281  house, as I came hobbling after you, I thought to myself, I'll just step
23282  in and see that kind gentleman, and tell him that if I was a bit gruff
23283  in my manner there was not any harm meant, and that I am much obliged to
23284  him for picking up my books.
23285 \begin_inset Quotes erd
23286 \end_inset
23287
23288
23289 \end_layout
23290
23291 \begin_layout Plain Layout
23292
23293 \size small
23294 \begin_inset Quotes eld
23295 \end_inset
23296
23297 You make too much of a trifle,
23298 \begin_inset Quotes erd
23299 \end_inset
23300
23301  said I.
23302  
23303 \begin_inset Quotes eld
23304 \end_inset
23305
23306 May I ask how you knew who I was?
23307 \begin_inset Quotes erd
23308 \end_inset
23309
23310  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23311 \begin_inset ERT
23312 status collapsed
23313
23314 \begin_layout Plain Layout
23315
23316
23317 \backslash
23318 columnbreak{}
23319 \end_layout
23320
23321 \end_inset
23322
23323
23324 \end_layout
23325
23326 \begin_layout Plain Layout
23327
23328 \size small
23329 \begin_inset Quotes eld
23330 \end_inset
23331
23332 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23333  you'll find my little bookshop at the corner of Church Street, and very
23334  happy to see you, I am sure.
23335  Maybe you collect yourself, sir.
23336  Here's 
23337 \noun on
23338 British
23339 \begin_inset space ~
23340 \end_inset
23341
23342 Birds
23343 \noun default
23344 , and 
23345 \noun on
23346 Catullus
23347 \noun default
23348 , and 
23349 \noun on
23350 The Holy War
23351 \noun default
23352
23353 \begin_inset space ~
23354 \end_inset
23355
23356 – a bargain, every one of them.
23357  With five volumes you could just fill that gap on that second shelf.
23358  It looks untidy, does it not, sir?
23359 \begin_inset Quotes erd
23360 \end_inset
23361
23362
23363 \end_layout
23364
23365 \end_inset
23366
23367
23368 \end_layout
23369
23370 \begin_layout Subsubsection
23371 段間隔
23372 \end_layout
23373
23374 \begin_layout Standard
23375 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23376 \begin_inset Flex Code
23377 status collapsed
23378
23379 \begin_layout Plain Layout
23380
23381 \backslash
23382 columnsep
23383 \end_layout
23384
23385 \end_inset
23386
23387 を変更することで実現できます.既定値は10
23388 \begin_inset space \thinspace{}
23389 \end_inset
23390
23391 ptです.以下は
23392 \begin_inset Flex Code
23393 status collapsed
23394
23395 \begin_layout Plain Layout
23396
23397 \backslash
23398 columnsep
23399 \end_layout
23400
23401 \end_inset
23402
23403 を3
23404 \begin_inset space \thinspace{}
23405 \end_inset
23406
23407 cmに設定した例です.
23408 \end_layout
23409
23410 \begin_layout Standard
23411 \begin_inset ERT
23412 status open
23413
23414 \begin_layout Plain Layout
23415
23416
23417 \backslash
23418 setlength{
23419 \backslash
23420 columnsep}{3cm}
23421 \end_layout
23422
23423 \end_inset
23424
23425
23426 \end_layout
23427
23428 \begin_layout Standard
23429 \begin_inset Flex Multiple Columns
23430 status open
23431
23432 \begin_layout Plain Layout
23433
23434 \size small
23435 My observations of No.
23436 \begin_inset space \space{}
23437 \end_inset
23438
23439 427 Park Lane did little to clear up the problem in which I was interested.
23440  The house was separated from the street by a low wall and railing, the
23441  whole not more than five feet high.
23442  It was perfectly easy, therefore, for anyone to get into the garden, but
23443  the window was entirely inaccessible, since there was no water pipe or
23444  anything which could help the most active man to climb it.
23445  More puzzled than ever, I retraced my steps to Kensington.
23446  I had not been in my study five minutes when the maid entered to say that
23447  a person desired to see me.
23448  To my astonishment it was none other than my strange old book collector,
23449  his sharp, wizened face peering out from a frame of white hair, and his
23450  precious volumes, a dozen of them at least, wedged under his right arm.
23451 \end_layout
23452
23453 \end_inset
23454
23455
23456 \end_layout
23457
23458 \begin_layout Standard
23459 \begin_inset ERT
23460 status collapsed
23461
23462 \begin_layout Plain Layout
23463
23464
23465 \backslash
23466 setlength{
23467 \backslash
23468 columnsep}{10pt}
23469 \end_layout
23470
23471 \end_inset
23472
23473
23474 \begin_inset Note Note
23475 status collapsed
23476
23477 \begin_layout Plain Layout
23478
23479 \lang english
23480 go back to the default
23481 \end_layout
23482
23483 \end_inset
23484
23485
23486 \end_layout
23487
23488 \begin_layout Subsubsection
23489 垂直線
23490 \end_layout
23491
23492 \begin_layout Standard
23493 段間には,長さ
23494 \begin_inset Flex Code
23495 status collapsed
23496
23497 \begin_layout Plain Layout
23498
23499 \backslash
23500 columnseprule
23501 \end_layout
23502
23503 \end_inset
23504
23505 の幅を持つ罫線が描かれます.罫線幅を0
23506 \begin_inset space \thinspace{}
23507 \end_inset
23508
23509 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23510 \begin_inset space \thinspace{}
23511 \end_inset
23512
23513 pt幅に設定されています.
23514 \end_layout
23515
23516 \begin_layout Standard
23517 \begin_inset ERT
23518 status open
23519
23520 \begin_layout Plain Layout
23521
23522
23523 \backslash
23524 setlength{
23525 \backslash
23526 columnseprule}{2pt}
23527 \end_layout
23528
23529 \end_inset
23530
23531
23532 \end_layout
23533
23534 \begin_layout Standard
23535 \begin_inset Flex Multiple Columns
23536 status open
23537
23538 \begin_layout Plain Layout
23539
23540 \size small
23541 \begin_inset Quotes eld
23542 \end_inset
23543
23544 You're surprised to see me, sir,
23545 \begin_inset Quotes erd
23546 \end_inset
23547
23548  said he, in a strange, croaking voice.
23549 \end_layout
23550
23551 \begin_layout Plain Layout
23552
23553 \size small
23554 I acknowledged that I was.
23555 \end_layout
23556
23557 \begin_layout Plain Layout
23558
23559 \size small
23560 \begin_inset Quotes eld
23561 \end_inset
23562
23563 Well, I've a conscience, sir, and when I chanced to see you go into this
23564  house, as I came hobbling after you, I thought to myself, I'll just step
23565  in and see that kind gentleman, and tell him that if I was a bit gruff
23566  in my manner there was not any harm meant, and that I am much obliged to
23567  him for picking up my books.
23568 \begin_inset Quotes erd
23569 \end_inset
23570
23571
23572 \end_layout
23573
23574 \begin_layout Plain Layout
23575
23576 \size small
23577 \begin_inset Quotes eld
23578 \end_inset
23579
23580 You make too much of a trifle,
23581 \begin_inset Quotes erd
23582 \end_inset
23583
23584  said I.
23585  
23586 \begin_inset Quotes eld
23587 \end_inset
23588
23589 May I ask how you knew who I was?
23590 \begin_inset Quotes erd
23591 \end_inset
23592
23593
23594 \end_layout
23595
23596 \begin_layout Plain Layout
23597
23598 \size small
23599 \begin_inset Quotes eld
23600 \end_inset
23601
23602 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23603  you'll find my little bookshop at the corner of Church Street, and very
23604  happy to see you, I am sure.
23605  Maybe you collect yourself, sir.
23606  Here's 
23607 \noun on
23608 British
23609 \begin_inset space ~
23610 \end_inset
23611
23612 Birds
23613 \noun default
23614 , and 
23615 \noun on
23616 Catullus
23617 \noun default
23618 , and 
23619 \noun on
23620 The Holy War
23621 \noun default
23622
23623 \begin_inset space ~
23624 \end_inset
23625
23626 – a bargain, every one of them.
23627  With five volumes you could just fill that gap on that second shelf.
23628  It looks untidy, does it not, sir?
23629 \begin_inset Quotes erd
23630 \end_inset
23631
23632
23633 \end_layout
23634
23635 \end_inset
23636
23637
23638 \end_layout
23639
23640 \begin_layout Standard
23641 \begin_inset VSpace defskip
23642 \end_inset
23643
23644
23645 \end_layout
23646
23647 \begin_layout Standard
23648 罫線は,コマンド
23649 \begin_inset Flex Code
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653
23654 \backslash
23655 columnseprulecolor
23656 \end_layout
23657
23658 \end_inset
23659
23660 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23661 コードで以下のコマンドを挿入すれば,実現できます.
23662 \end_layout
23663
23664 \begin_layout LyX-Code
23665
23666 \backslash
23667 renewcommand{
23668 \backslash
23669 columnseprulecolor}{
23670 \backslash
23671 color{red}}
23672 \end_layout
23673
23674 \begin_layout Standard
23675 このコマンド中の
23676 \begin_inset Flex Code
23677 status collapsed
23678
23679 \begin_layout Plain Layout
23680
23681 \backslash
23682 red
23683 \end_layout
23684
23685 \end_inset
23686
23687 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『埋込オブジェクト
23688 篇』の「色付き表」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23689 \end_layout
23690
23691 \begin_layout LyX-Code
23692
23693 \backslash
23694 renewcommand{
23695 \backslash
23696 columnseprulecolor}{
23697 \backslash
23698 normalcolor}
23699 \end_layout
23700
23701 \begin_layout Standard
23702 以下は,シアン色の罫線と1
23703 \begin_inset space \thinspace{}
23704 \end_inset
23705
23706 cmの段間隔を持つ例です.
23707 \end_layout
23708
23709 \begin_layout Standard
23710 \begin_inset ERT
23711 status open
23712
23713 \begin_layout Plain Layout
23714
23715
23716 \backslash
23717 setlength{
23718 \backslash
23719 columnsep}{1cm}
23720 \end_layout
23721
23722 \begin_layout Plain Layout
23723
23724
23725 \backslash
23726 renewcommand{
23727 \backslash
23728 columnseprulecolor}{
23729 \backslash
23730 color{cyan}}
23731 \end_layout
23732
23733 \end_inset
23734
23735
23736 \end_layout
23737
23738 \begin_layout Standard
23739 \begin_inset Flex Multiple Columns
23740 status open
23741
23742 \begin_layout Plain Layout
23743
23744 \size small
23745 \begin_inset Quotes eld
23746 \end_inset
23747
23748 You're surprised to see me, sir,
23749 \begin_inset Quotes erd
23750 \end_inset
23751
23752  said he, in a strange, croaking voice.
23753 \end_layout
23754
23755 \begin_layout Plain Layout
23756
23757 \size small
23758 I acknowledged that I was.
23759 \end_layout
23760
23761 \begin_layout Plain Layout
23762
23763 \size small
23764 \begin_inset Quotes eld
23765 \end_inset
23766
23767 Well, I've a conscience, sir, and when I chanced to see you go into this
23768  house, as I came hobbling after you, I thought to myself, I'll just step
23769  in and see that kind gentleman, and tell him that if I was a bit gruff
23770  in my manner there was not any harm meant, and that I am much obliged to
23771  him for picking up my books.
23772 \begin_inset Quotes erd
23773 \end_inset
23774
23775
23776 \end_layout
23777
23778 \begin_layout Plain Layout
23779
23780 \size small
23781 \begin_inset Quotes eld
23782 \end_inset
23783
23784 You make too much of a trifle,
23785 \begin_inset Quotes erd
23786 \end_inset
23787
23788  said I.
23789  
23790 \begin_inset Quotes eld
23791 \end_inset
23792
23793 May I ask how you knew who I was?
23794 \begin_inset Quotes erd
23795 \end_inset
23796
23797
23798 \end_layout
23799
23800 \begin_layout Plain Layout
23801
23802 \size small
23803 \begin_inset Quotes eld
23804 \end_inset
23805
23806 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23807  you'll find my little bookshop at the corner of Church Street, and very
23808  happy to see you, I am sure.
23809  Maybe you collect yourself, sir.
23810  Here's 
23811 \noun on
23812 British
23813 \begin_inset space ~
23814 \end_inset
23815
23816 Birds
23817 \noun default
23818 , and 
23819 \noun on
23820 Catullus
23821 \noun default
23822 , and 
23823 \noun on
23824 The Holy War
23825 \noun default
23826
23827 \begin_inset space ~
23828 \end_inset
23829
23830 – a bargain, every one of them.
23831  With five volumes you could just fill that gap on that second shelf.
23832  It looks untidy, does it not, sir?
23833 \begin_inset Quotes erd
23834 \end_inset
23835
23836
23837 \end_layout
23838
23839 \end_inset
23840
23841
23842 \end_layout
23843
23844 \begin_layout Standard
23845 \begin_inset ERT
23846 status collapsed
23847
23848 \begin_layout Plain Layout
23849
23850
23851 \backslash
23852 setlength{
23853 \backslash
23854 columnseprule}{0pt}
23855 \end_layout
23856
23857 \begin_layout Plain Layout
23858
23859
23860 \backslash
23861 renewcommand{
23862 \backslash
23863 columnseprulecolor}{
23864 \backslash
23865 normalcolor}
23866 \end_layout
23867
23868 \end_inset
23869
23870
23871 \begin_inset Note Note
23872 status collapsed
23873
23874 \begin_layout Plain Layout
23875
23876 \lang english
23877 go back to the default
23878 \end_layout
23879
23880 \end_inset
23881
23882
23883 \end_layout
23884
23885 \begin_layout Standard
23886 \begin_inset Newpage newpage
23887 \end_inset
23888
23889
23890 \end_layout
23891
23892 \begin_layout Section
23893 標準的でない形の段落
23894 \end_layout
23895
23896 \begin_layout Standard
23897 \noindent
23898 \SpecialChar LaTeX
23899 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23900 できます.これは,文書設定で
23901 \family sans
23902 任意設定の段落形
23903 \family default
23904 モジュールを読み込んで,\SpecialChar LaTeX
23905 パッケージ
23906 \begin_inset Flex Code
23907 status collapsed
23908
23909 \begin_layout Plain Layout
23910 \noindent
23911 shapepar
23912 \end_layout
23913
23914 \end_inset
23915
23916 を使用させるようにすれば,実現できます.
23917 \end_layout
23918
23919 \begin_layout Subsection
23920 既定の形
23921 \end_layout
23922
23923 \begin_layout Standard
23924
23925 \series bold
23926 shapepar
23927 \series default
23928 は,以下の形を提供しています.
23929 \end_layout
23930
23931 \begin_layout Standard
23932 \begin_inset Tabular
23933 <lyxtabular version="3" rows="13" columns="3">
23934 <features booktabs="true" islongtable="true" longtabularalignment="center">
23935 <column alignment="center" valignment="middle" width="16col%">
23936 <column alignment="center" valignment="middle" width="40col%">
23937 <column alignment="center" valignment="middle" width="35col%">
23938 <row endhead="true">
23939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23940 \begin_inset Text
23941
23942 \begin_layout Plain Layout
23943 名称
23944 \end_layout
23945
23946 \end_inset
23947 </cell>
23948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23949 \begin_inset Text
23950
23951 \begin_layout Plain Layout
23952 説明
23953 \end_layout
23954
23955 \end_inset
23956 </cell>
23957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23958 \begin_inset Text
23959
23960 \begin_layout Plain Layout
23961 備考
23962 \end_layout
23963
23964 \end_inset
23965 </cell>
23966 </row>
23967 <row>
23968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23969 \begin_inset Text
23970
23971 \begin_layout Plain Layout
23972 CDlabel
23973 \end_layout
23974
23975 \end_inset
23976 </cell>
23977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23978 \begin_inset Text
23979
23980 \begin_layout Plain Layout
23981 丸い穴の開いたドーナツ型(CD/DVD大)
23982 \end_layout
23983
23984 \end_inset
23985 </cell>
23986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23987 \begin_inset Text
23988
23989 \begin_layout Plain Layout
23990 伸縮不可.多くの文字を入れられないことに注意.
23991 \end_layout
23992
23993 \end_inset
23994 </cell>
23995 </row>
23996 <row>
23997 <cell alignment="center" valignment="top" topline="true" usebox="none">
23998 \begin_inset Text
23999
24000 \begin_layout Plain Layout
24001 Circle
24002 \end_layout
24003
24004 \end_inset
24005 </cell>
24006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24007 \begin_inset Text
24008
24009 \begin_layout Plain Layout
24010
24011 \end_layout
24012
24013 \end_inset
24014 </cell>
24015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24016 \begin_inset Text
24017
24018 \begin_layout Plain Layout
24019 脆弱.計算に失敗することも.
24020 \end_layout
24021
24022 \end_inset
24023 </cell>
24024 </row>
24025 <row>
24026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24027 \begin_inset Text
24028
24029 \begin_layout Plain Layout
24030 Diamond
24031 \end_layout
24032
24033 \end_inset
24034 </cell>
24035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24036 \begin_inset Text
24037
24038 \begin_layout Plain Layout
24039 菱形(シンボル的に
24040 \begin_inset Quotes eld
24041 \end_inset
24042
24043 diamond
24044 \begin_inset Quotes erd
24045 \end_inset
24046
24047 と表記)
24048 \end_layout
24049
24050 \end_inset
24051 </cell>
24052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24053 \begin_inset Text
24054
24055 \begin_layout Plain Layout
24056 -
24057 \end_layout
24058
24059 \end_inset
24060 </cell>
24061 </row>
24062 <row>
24063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24064 \begin_inset Text
24065
24066 \begin_layout Plain Layout
24067 Heart
24068 \end_layout
24069
24070 \end_inset
24071 </cell>
24072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24073 \begin_inset Text
24074
24075 \begin_layout Plain Layout
24076 ハート型
24077 \end_layout
24078
24079 \end_inset
24080 </cell>
24081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24082 \begin_inset Text
24083
24084 \begin_layout Plain Layout
24085 -
24086 \end_layout
24087
24088 \end_inset
24089 </cell>
24090 </row>
24091 <row>
24092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24093 \begin_inset Text
24094
24095 \begin_layout Plain Layout
24096 Hexagon
24097 \end_layout
24098
24099 \end_inset
24100 </cell>
24101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24102 \begin_inset Text
24103
24104 \begin_layout Plain Layout
24105 六角形
24106 \end_layout
24107
24108 \end_inset
24109 </cell>
24110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24111 \begin_inset Text
24112
24113 \begin_layout Plain Layout
24114 -
24115 \end_layout
24116
24117 \end_inset
24118 </cell>
24119 </row>
24120 <row>
24121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24122 \begin_inset Text
24123
24124 \begin_layout Plain Layout
24125 Nut
24126 \end_layout
24127
24128 \end_inset
24129 </cell>
24130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24131 \begin_inset Text
24132
24133 \begin_layout Plain Layout
24134 ナット型(丸い穴の開いた六角形)
24135 \end_layout
24136
24137 \end_inset
24138 </cell>
24139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24140 \begin_inset Text
24141
24142 \begin_layout Plain Layout
24143 -
24144 \end_layout
24145
24146 \end_inset
24147 </cell>
24148 </row>
24149 <row>
24150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24151 \begin_inset Text
24152
24153 \begin_layout Plain Layout
24154 Square
24155 \end_layout
24156
24157 \end_inset
24158 </cell>
24159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24160 \begin_inset Text
24161
24162 \begin_layout Plain Layout
24163 正方形
24164 \end_layout
24165
24166 \end_inset
24167 </cell>
24168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24169 \begin_inset Text
24170
24171 \begin_layout Plain Layout
24172 -
24173 \end_layout
24174
24175 \end_inset
24176 </cell>
24177 </row>
24178 <row>
24179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24180 \begin_inset Text
24181
24182 \begin_layout Plain Layout
24183 Star
24184 \end_layout
24185
24186 \end_inset
24187 </cell>
24188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24189 \begin_inset Text
24190
24191 \begin_layout Plain Layout
24192 五芒星
24193 \end_layout
24194
24195 \end_inset
24196 </cell>
24197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24198 \begin_inset Text
24199
24200 \begin_layout Plain Layout
24201 -
24202 \end_layout
24203
24204 \end_inset
24205 </cell>
24206 </row>
24207 <row>
24208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24209 \begin_inset Text
24210
24211 \begin_layout Plain Layout
24212 Candle
24213 \end_layout
24214
24215 \end_inset
24216 </cell>
24217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24218 \begin_inset Text
24219
24220 \begin_layout Plain Layout
24221 燃えるろうそく
24222 \end_layout
24223
24224 \end_inset
24225 </cell>
24226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24227 \begin_inset Text
24228
24229 \begin_layout Plain Layout
24230 -
24231 \end_layout
24232
24233 \end_inset
24234 </cell>
24235 </row>
24236 <row>
24237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24238 \begin_inset Text
24239
24240 \begin_layout Plain Layout
24241 Drop down/up
24242 \end_layout
24243
24244 \end_inset
24245 </cell>
24246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24247 \begin_inset Text
24248
24249 \begin_layout Plain Layout
24250 雫型/逆雫型
24251 \end_layout
24252
24253 \end_inset
24254 </cell>
24255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24256 \begin_inset Text
24257
24258 \begin_layout Plain Layout
24259 脆弱.計算に失敗することも.
24260 \end_layout
24261
24262 \end_inset
24263 </cell>
24264 </row>
24265 <row>
24266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24267 \begin_inset Text
24268
24269 \begin_layout Plain Layout
24270 \SpecialChar TeX
24271
24272 \end_layout
24273
24274 \end_inset
24275 </cell>
24276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24277 \begin_inset Text
24278
24279 \begin_layout Plain Layout
24280 \SpecialChar TeX
24281 ロゴ
24282 \end_layout
24283
24284 \end_inset
24285 </cell>
24286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24287 \begin_inset Text
24288
24289 \begin_layout Plain Layout
24290 -
24291 \end_layout
24292
24293 \end_inset
24294 </cell>
24295 </row>
24296 <row>
24297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24298 \begin_inset Text
24299
24300 \begin_layout Plain Layout
24301 Triangle up/down/
24302 \begin_inset Newline newline
24303 \end_inset
24304
24305 left/right
24306 \end_layout
24307
24308 \end_inset
24309 </cell>
24310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24311 \begin_inset Text
24312
24313 \begin_layout Plain Layout
24314 各方向の三角形
24315 \end_layout
24316
24317 \end_inset
24318 </cell>
24319 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24320 \begin_inset Text
24321
24322 \begin_layout Plain Layout
24323 -
24324 \end_layout
24325
24326 \end_inset
24327 </cell>
24328 </row>
24329 </lyxtabular>
24330
24331 \end_inset
24332
24333
24334 \end_layout
24335
24336 \begin_layout Standard
24337 段落に形を適用するには,\SpecialChar LyX
24338 ツールバー中の環境プルダウンボックスから形を選んでください.
24339 \end_layout
24340
24341 \begin_layout Standard
24342 \begin_inset Newpage newpage
24343 \end_inset
24344
24345
24346 \end_layout
24347
24348 \begin_layout Standard
24349 以下は,ナット型の段落の例です.
24350 \end_layout
24351
24352 \begin_layout Standard
24353 \begin_inset VSpace bigskip
24354 \end_inset
24355
24356
24357 \end_layout
24358
24359 \begin_layout Nut
24360
24361 \lang latin
24362 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24363  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24364  voluptua.
24365  At vero eos et accusam et justo duo dolores et ea rebum.
24366  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24367  sit amet.
24368  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24369  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24370  voluptua.
24371 \end_layout
24372
24373 \begin_layout Standard
24374 \begin_inset VSpace bigskip
24375 \end_inset
24376
24377
24378 \end_layout
24379
24380 \begin_layout Standard
24381 \begin_inset Note Greyedout
24382 status open
24383
24384 \begin_layout Plain Layout
24385
24386 \series bold
24387 【註】
24388 \family sans
24389 \series default
24390 shapepar
24391 \family default
24392 段落は改頁にまたがることはできません.
24393 \end_layout
24394
24395 \end_inset
24396
24397
24398 \end_layout
24399
24400 \begin_layout Standard
24401 \begin_inset VSpace bigskip
24402 \end_inset
24403
24404
24405 \end_layout
24406
24407 \begin_layout Standard
24408 \begin_inset Flex Code
24409 status collapsed
24410
24411 \begin_layout Plain Layout
24412 \noindent
24413 shapepar
24414 \end_layout
24415
24416 \end_inset
24417
24418 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24419 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24420 \end_layout
24421
24422 \begin_layout Standard
24423 \begin_inset Newpage newpage
24424 \end_inset
24425
24426
24427 \end_layout
24428
24429 \begin_layout Nut
24430
24431 \lang latin
24432 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24433  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24434  voluptua.
24435  At vero eos et accusam et justo duo dolores et ea rebum.
24436  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24437  sit amet.
24438  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24439  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24440  voluptua.
24441  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24442  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24443  voluptua.
24444  At vero eos et accusam et justo duo dolores et ea rebum.
24445  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24446  sit amet.
24447  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24448  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24449  voluptua.
24450 \end_layout
24451
24452 \begin_layout Standard
24453 \begin_inset VSpace bigskip
24454 \end_inset
24455
24456
24457 \end_layout
24458
24459 \begin_layout Standard
24460 ただし,
24461 \family sans
24462 CDlabel
24463 \family default
24464 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24465 \begin_inset Newline newline
24466 \end_inset
24467
24468
24469 \family sans
24470 drop
24471 \family default
24472 形と
24473 \family sans
24474 circle
24475 \family default
24476 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24477 \begin_inset Quotes eld
24478 \end_inset
24479
24480 Arithmetic overflow
24481 \begin_inset Quotes erd
24482 \end_inset
24483
24484 という\SpecialChar LaTeX
24485 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24486 \end_layout
24487
24488 \begin_layout Standard
24489 \begin_inset VSpace bigskip
24490 \end_inset
24491
24492
24493 \end_layout
24494
24495 \begin_layout Standard
24496 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24497 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24498 \family sans
24499
24500 \begin_inset Info
24501 type  "shortcut"
24502 arg   "specialchar-insert hyphenation"
24503 \end_inset
24504
24505
24506 \family default
24507 )を指定することが往々にして必要になります.
24508 \end_layout
24509
24510 \begin_layout Standard
24511 \begin_inset VSpace bigskip
24512 \end_inset
24513
24514
24515 \end_layout
24516
24517 \begin_layout Standard
24518 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24519 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24520 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24521 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24522 \end_layout
24523
24524 \begin_layout Standard
24525 \begin_inset Newpage newpage
24526 \end_inset
24527
24528
24529 \end_layout
24530
24531 \begin_layout Heart
24532 \noindent
24533
24534 \lang latin
24535 Lo\SpecialChar softhyphen
24536 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24537  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24538  voluptua.
24539  At vero eos et accusam et justo duo dolores et ea rebum.
24540  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24541  sit amet.
24542 \end_layout
24543
24544 \begin_layout Standard
24545 \begin_inset VSpace bigskip
24546 \end_inset
24547
24548
24549 \end_layout
24550
24551 \begin_layout Standard
24552 \noindent
24553 \align right
24554 \begin_inset Box Frameless
24555 position "t"
24556 hor_pos "c"
24557 has_inner_box 1
24558 inner_pos "t"
24559 use_parbox 1
24560 use_makebox 0
24561 width "42col%"
24562 special "none"
24563 height "1in"
24564 height_special "totalheight"
24565 thickness "0.4pt"
24566 separation "3pt"
24567 shadowsize "4pt"
24568 framecolor "black"
24569 backgroundcolor "none"
24570 status open
24571
24572 \begin_layout Heart
24573 \noindent
24574
24575 \lang latin
24576 Lo\SpecialChar softhyphen
24577 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24578  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24579  voluptua.
24580  At vero eos et accusam et justo duo dolores et ea rebum.
24581  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24582  sit amet.
24583 \end_layout
24584
24585 \end_inset
24586
24587
24588 \end_layout
24589
24590 \begin_layout Subsection
24591 任意の形
24592 \end_layout
24593
24594 \begin_layout Standard
24595 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24596 ように,コンピューターに座標を計算させる方法もあります.
24597 \end_layout
24598
24599 \begin_layout Enumerate
24600 プログラム
24601 \begin_inset CommandInset href
24602 LatexCommand href
24603 name "Jpgfdraw"
24604 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
24605 literal "false"
24606
24607 \end_inset
24608
24609 を導入します.
24610 \end_layout
24611
24612 \begin_layout Enumerate
24613
24614 \family sans
24615 Jpgfdraw
24616 \family default
24617 内で,メニュー
24618 \family sans
24619 TeX/LaTeX\SpecialChar menuseparator
24620 Settings\SpecialChar menuseparator
24621 Set Normal Size
24622 \family default
24623 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24624 \begin_inset space \thinspace{}
24625 \end_inset
24626
24627 pt寸を使用しています.
24628 \end_layout
24629
24630 \begin_layout Enumerate
24631 形を描きます.
24632 \end_layout
24633
24634 \begin_layout Enumerate
24635 メニュー
24636 \family sans
24637 TeX/LaTeX\SpecialChar menuseparator
24638 Shapepar
24639 \family default
24640 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24641 \begin_inset Foot
24642 status collapsed
24643
24644 \begin_layout Plain Layout
24645 詳細については,
24646 \begin_inset CommandInset href
24647 LatexCommand href
24648 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24649 literal "false"
24650
24651 \end_inset
24652
24653 を参照してください.
24654 \end_layout
24655
24656 \end_inset
24657
24658
24659 \end_layout
24660
24661 \begin_layout Standard
24662 座標は\SpecialChar TeX
24663 ファイルに書き込まれます.これを\SpecialChar LyX
24664 文書で使用するには,
24665 \end_layout
24666
24667 \begin_layout Enumerate
24668 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24669 \end_layout
24670
24671 \begin_layout Enumerate
24672 \SpecialChar LyX
24673
24674 \family sans
24675 挿入\SpecialChar menuseparator
24676 ファイル\SpecialChar menuseparator
24677 子文書
24678 \family default
24679 メニューでファイルを選択し,
24680 \family sans
24681 取り込みの型
24682 \family default
24683 として
24684 \family sans
24685 Input
24686 \family default
24687 を選択してください.
24688 \end_layout
24689
24690 \begin_layout Standard
24691 \begin_inset VSpace defskip
24692 \end_inset
24693
24694
24695 \end_layout
24696
24697 \begin_layout Standard
24698 \begin_inset Note Greyedout
24699 status open
24700
24701 \begin_layout Plain Layout
24702
24703 \series bold
24704 【註】
24705 \series default
24706 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24707 \end_layout
24708
24709 \end_inset
24710
24711
24712 \end_layout
24713
24714 \begin_layout Standard
24715 \begin_inset VSpace bigskip
24716 \end_inset
24717
24718
24719 \end_layout
24720
24721 \begin_layout Standard
24722 以下の用例をご覧ください.
24723 \end_layout
24724
24725 \begin_layout Standard
24726 \begin_inset VSpace bigskip
24727 \end_inset
24728
24729
24730 \end_layout
24731
24732 \begin_layout Standard
24733 \begin_inset CommandInset include
24734 LatexCommand input
24735 filename "../SpecialParagraphShape.tex"
24736
24737 \end_inset
24738
24739
24740 \lang latin
24741 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24742  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24743  voluptua.
24744  At vero eos et accusam et justo duo dolores et ea rebum.
24745  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24746  sit amet.
24747  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24748  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24749  voluptua.
24750 \end_layout
24751
24752 \begin_layout Standard
24753 \begin_inset VSpace bigskip
24754 \end_inset
24755
24756
24757 \end_layout
24758
24759 \begin_layout Standard
24760
24761 \series bold
24762 【ヒント】
24763 \family sans
24764 \series default
24765 Jpgfdraw
24766 \family default
24767 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24768 \family sans
24769 Jpgfdraw
24770 \family default
24771 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24772 \end_layout
24773
24774 \begin_layout Standard
24775 \begin_inset VSpace bigskip
24776 \end_inset
24777
24778
24779 \end_layout
24780
24781 \begin_layout Standard
24782
24783 \family sans
24784 任意の段落形
24785 \family default
24786 モジュールは,
24787 \family sans
24788 shapepar
24789 \family default
24790
24791 \family sans
24792 Shapepar
24793 \family default
24794 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24795 \begin_inset Foot
24796 status collapsed
24797
24798 \begin_layout Plain Layout
24799 これらのコマンドは,上述の全ての形で内部的に使用されています.
24800 \end_layout
24801
24802 \end_inset
24803
24804 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24805 \begin_inset Flex Code
24806 status collapsed
24807
24808 \begin_layout Plain Layout
24809 \noindent
24810 shapepar
24811 \end_layout
24812
24813 \end_inset
24814
24815  をご覧ください.
24816 \end_layout
24817
24818 \end_body
24819 \end_document