]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Fix inputencoding for documentation, examples, and templates.
[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 jis-platex
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 Broadway
10742 \end_layout
10743
10744 \begin_layout Standard
10745
10746 \noun on
10747 Garst Reese
10748 \noun default
10749
10750 \end_layout
10751
10752 \begin_layout Subsection
10753 はじめに
10754 \end_layout
10755
10756 \begin_layout Standard
10757 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10758 \end_layout
10759
10760 \begin_layout Subsection
10761 特別な問題
10762 \end_layout
10763
10764 \begin_layout Standard
10765 Hollywoodと同様です.
10766 \end_layout
10767
10768 \begin_layout Subsection
10769 特別の機能
10770 \end_layout
10771
10772 \begin_layout Standard
10773
10774 \family sans
10775 話者
10776 \family default
10777 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10778 \end_layout
10779
10780 \begin_layout Subsection
10781 用紙寸法と余白
10782 \end_layout
10783
10784 \begin_layout Standard
10785 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10786 \end_layout
10787
10788 \begin_layout Subsection
10789 環境
10790 \end_layout
10791
10792 \begin_layout Standard
10793 以下の環境を使うことができます.右に記してある
10794 \begin_inset Flex Ruby
10795 status collapsed
10796
10797 \begin_layout Plain Layout
10798
10799 \begin_inset Argument post:1
10800 status collapsed
10801
10802 \begin_layout Plain Layout
10803 キー
10804 \end_layout
10805
10806 \end_inset
10807
10808
10809 \end_layout
10810
10811 \end_inset
10812
10813 割当ては,broadway.bindを使った場合のものです.
10814 \end_layout
10815
10816 \begin_layout Itemize
10817
10818 \family sans
10819 標準
10820 \begin_inset Newline newline
10821 \end_inset
10822
10823
10824 \family default
10825 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
10826 \end_layout
10827
10828 \begin_layout Itemize
10829
10830 \family sans
10831 ト書き
10832 \begin_inset space \hfill{}
10833 \end_inset
10834
10835 M-z n
10836 \begin_inset Newline newline
10837 \end_inset
10838
10839
10840 \family default
10841 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
10842 \end_layout
10843
10844 \begin_layout Itemize
10845
10846 \family sans
10847
10848 \begin_inset space \hfill{}
10849 \end_inset
10850
10851 M-z a
10852 \begin_inset Newline newline
10853 \end_inset
10854
10855
10856 \family default
10857 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
10858 \end_layout
10859
10860 \begin_layout Itemize
10861
10862 \family sans
10863 幕*
10864 \begin_inset space \hfill{}
10865 \end_inset
10866
10867 M-z S at
10868 \begin_inset Newline newline
10869 \end_inset
10870
10871
10872 \family default
10873 幕の副題です.単に中央揃えの文になります.
10874 \end_layout
10875
10876 \begin_layout Itemize
10877
10878 \family sans
10879 場面
10880 \begin_inset space \hfill{}
10881 \end_inset
10882
10883 M-z S-S
10884 \begin_inset Newline newline
10885 \end_inset
10886
10887
10888 \family default
10889 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
10890 \end_layout
10891
10892 \begin_layout Itemize
10893
10894 \family sans
10895 幕開きに:
10896 \begin_inset space \hfill{}
10897 \end_inset
10898
10899 M-z S-R
10900 \begin_inset Newline newline
10901 \end_inset
10902
10903
10904 \family default
10905 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
10906 \end_layout
10907
10908 \begin_layout Itemize
10909
10910 \family sans
10911 話者
10912 \begin_inset space \hfill{}
10913 \end_inset
10914
10915 M-z s
10916 \begin_inset Newline newline
10917 \end_inset
10918
10919
10920 \family default
10921 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
10922 \end_layout
10923
10924 \begin_layout Itemize
10925
10926 \family sans
10927 括弧付き
10928 \begin_inset space \hfill{}
10929 \end_inset
10930
10931 M-z p
10932 \begin_inset Newline newline
10933 \end_inset
10934
10935
10936 \family default
10937 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
10938 \family sans
10939 対話
10940 \family default
10941 の中だけで使用されます. 
10942 \end_layout
10943
10944 \begin_layout Itemize
10945
10946 \family sans
10947 対話
10948 \begin_inset space \hfill{}
10949 \end_inset
10950
10951 M-z d
10952 \begin_inset Newline newline
10953 \end_inset
10954
10955
10956 \family default
10957 話者の言う内容.
10958 \end_layout
10959
10960 \begin_layout Itemize
10961
10962 \family sans
10963 幕切れ
10964 \begin_inset space \hfill{}
10965 \end_inset
10966
10967 M-z S-C
10968 \begin_inset Newline newline
10969 \end_inset
10970
10971
10972 \family default
10973 幕が降ります.
10974 \end_layout
10975
10976 \begin_layout Itemize
10977
10978 \family sans
10979 タイトル
10980 \begin_inset space \hfill{}
10981 \end_inset
10982
10983 M-z S-T
10984 \end_layout
10985
10986 \begin_layout Itemize
10987
10988 \family sans
10989 著者
10990 \begin_inset space \hfill{}
10991 \end_inset
10992
10993 M-z S-A
10994 \end_layout
10995
10996 \begin_layout Itemize
10997
10998 \family sans
10999 右寄せ住所
11000 \begin_inset space \hfill{}
11001 \end_inset
11002
11003 M-z r
11004 \end_layout
11005
11006 \begin_layout Section
11007 Dinbrief
11008 \end_layout
11009
11010 \begin_layout Standard
11011 文書クラス
11012 \family sans
11013 dinbrief
11014 \family default
11015 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
11016 \family typewriter
11017 .../lyx/share/templates
11018 \family default
11019 にあるので,それを土台として使用してください.
11020 \end_layout
11021
11022 \begin_layout Section
11023 Elsevier各誌
11024 \end_layout
11025
11026 \begin_layout Standard
11027 \SpecialChar LyX
11028 ひな型ファイルの
11029 \family typewriter
11030 elsarticle.lyx
11031 \family default
11032 を参照してください.必要な情報は全てそこにあります.
11033 \end_layout
11034
11035 \begin_layout Section
11036 Foils別名Foil\SpecialChar TeX
11037
11038 \begin_inset CommandInset label
11039 LatexCommand label
11040 name "sec:foiltex"
11041
11042 \end_inset
11043
11044
11045 \end_layout
11046
11047 \begin_layout Standard
11048
11049 \noun on
11050 Allan Rae
11051 \noun default
11052
11053 \end_layout
11054
11055 \begin_layout Subsection
11056 はじめに
11057 \end_layout
11058
11059 \begin_layout Standard
11060 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11061 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11062 ・seminar・b
11063 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11064 \end_layout
11065
11066 \begin_layout Standard
11067 誤解のないように,わかりやすく明確に,もう一度言っておきます.
11068 \end_layout
11069
11070 \begin_layout Standard
11071 \begin_inset VSpace bigskip
11072 \end_inset
11073
11074
11075 \end_layout
11076
11077 \begin_layout Standard
11078 \align center
11079
11080 \size large
11081 本節は「
11082 \family sans
11083 FoilTeX
11084 \family default
11085 」クラス
11086 \emph on
11087 のみの
11088 \emph default
11089 解説を行います.
11090 \end_layout
11091
11092 \begin_layout Standard
11093 \begin_inset VSpace bigskip
11094 \end_inset
11095
11096
11097 \end_layout
11098
11099 \begin_layout Standard
11100
11101 \family sans
11102 transparencies (slides)
11103 \family default
11104 」の解説をお探しであれば,第
11105 \begin_inset CommandInset ref
11106 LatexCommand ref
11107 reference "sec:slitex"
11108
11109 \end_inset
11110
11111 節をご覧ください.お使いのコンピュータに
11112 \family sans
11113 foils
11114 \family default
11115 クラス
11116 \family sans
11117 FoilTeX
11118 \family default
11119 が導入されていなければ,
11120 \family sans
11121 foils
11122 \family default
11123 ほど良くはありませんが,おそらく
11124 \family sans
11125 slides
11126 \family default
11127 クラスを使わざるをえないでしょう.
11128 \end_layout
11129
11130 \begin_layout Standard
11131
11132 \family sans
11133 foils
11134 \family default
11135 クラスは,\SpecialChar LaTeX2e
11136 の一部として含まれている\SpecialChar LaTeX
11137 クラスファイル
11138 \family sans
11139 foils.cls
11140 \family default
11141 の第2.1版とともに使われるように設計されています.
11142 \end_layout
11143
11144 \begin_layout Subsection
11145 最初の一歩
11146 \end_layout
11147
11148 \begin_layout Standard
11149 いうまでもなく,この文書クラスを使うには,
11150 \family sans
11151 文書\SpecialChar menuseparator
11152 設定\SpecialChar menuseparator
11153 文書クラス
11154 \family default
11155 メニューの
11156 \family sans
11157 文書クラス
11158 \family default
11159 ドロップダウンで「
11160 \family sans
11161 FoilTeX
11162 \family default
11163 」を選択する必要があります.また,
11164 \family sans
11165 文書設定
11166 \family default
11167 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11168 \end_layout
11169
11170 \begin_layout Itemize
11171
11172 \family sans
11173 文書設定
11174 \family default
11175 ダイアログ中の,
11176 \family sans
11177 両面文書
11178 \family default
11179 オプションと
11180 \family sans
11181 二段組文書
11182 \family default
11183 オプションは変更しないでください.これらは 
11184 \family sans
11185 foils
11186 \family default
11187 クラスでは無視されます.
11188 \end_layout
11189
11190 \begin_layout Itemize
11191 既定のフォント寸法は20ptであり,17
11192 \begin_inset space \thinspace{}
11193 \end_inset
11194
11195 pt・25
11196 \begin_inset space \thinspace{}
11197 \end_inset
11198
11199 pt・30
11200 \begin_inset space \thinspace{}
11201 \end_inset
11202
11203 ptを選択することも可能です.
11204 \end_layout
11205
11206 \begin_layout Itemize
11207 既定のフォントは
11208 \family sans
11209 sans
11210 \family default
11211  
11212 \family sans
11213 serif
11214 \family default
11215 ですが,数式ではすべて,通常のローマン体が使用されます.
11216 \end_layout
11217
11218 \begin_layout Itemize
11219 Foil\SpecialChar TeX
11220 は,35
11221 \begin_inset space \thinspace{}
11222 \end_inset
11223
11224 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11225 \end_layout
11226
11227 \begin_layout Itemize
11228
11229 \family sans
11230 フロートの配置
11231 \family default
11232 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11233 \end_layout
11234
11235 \begin_layout Itemize
11236 このクラスの
11237 \family sans
11238 ページレイアウト
11239 \family default
11240 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11241 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11242 \begin_inset CommandInset ref
11243 LatexCommand ref
11244 reference "sec:foilfoot"
11245
11246 \end_inset
11247
11248 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11249 \emph on
11250 つねに
11251 \emph default
11252 付けられず,(ロゴが定義されていれば)ロゴは,
11253 \emph on
11254 つねに
11255 \emph default
11256 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11257 \end_layout
11258
11259 \begin_deeper
11260 \begin_layout Labeling
11261 \labelwidthstring MMMMMMM
11262
11263 \family sans
11264 \series bold
11265 empty
11266 \family default
11267 \series default
11268  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11269 \end_layout
11270
11271 \begin_layout Labeling
11272 \labelwidthstring MMMMMMM
11273
11274 \family sans
11275 \series bold
11276 plain
11277 \family default
11278 \series default
11279  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11280 \end_layout
11281
11282 \begin_layout Labeling
11283 \labelwidthstring MMMMMMM
11284
11285 \series bold
11286 foilheadings
11287 \series default
11288  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11289 \end_layout
11290
11291 \begin_layout Labeling
11292 \labelwidthstring MMMMMMM
11293
11294 \series bold
11295 fancy
11296 \series default
11297  これは
11298 \family sans
11299 fancyheadings
11300 \family default
11301 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11302 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11303 \end_layout
11304
11305 \end_deeper
11306 \begin_layout Subsubsection
11307 任意設定クラスオプション
11308 \end_layout
11309
11310 \begin_layout Standard
11311 以下のオプションは
11312 \family sans
11313 文書設定
11314 \family default
11315 ダイアログの任意設定クラスオプションボックスで使うことができます.
11316 \end_layout
11317
11318 \begin_layout Labeling
11319 \labelwidthstring MMMMMMx
11320
11321 \series bold
11322 35mmSlide
11323 \series default
11324  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11325 \begin_inset space \space{}
11326 \end_inset
11327
11328 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11329 \end_layout
11330
11331 \begin_layout Labeling
11332 \labelwidthstring MMMMMMx
11333
11334 \series bold
11335 headrule
11336 \series default
11337  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11338 \end_layout
11339
11340 \begin_layout Labeling
11341 \labelwidthstring MMMMMMx
11342
11343 \series bold
11344 footrule
11345 \series default
11346  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11347 \end_layout
11348
11349 \begin_layout Labeling
11350 \labelwidthstring MMMMMMx
11351
11352 \series bold
11353 dvips
11354 \series default
11355  これは,新規
11356 \family sans
11357 foils
11358 \family default
11359 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11360 に指示します.
11361 \end_layout
11362
11363 \begin_layout Labeling
11364 \labelwidthstring MMMMMMx
11365
11366 \series bold
11367 landscape
11368 \series default
11369  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11370 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11371 \family sans
11372 Foilhead
11373 \family default
11374 環境と
11375 \family sans
11376 Rotatefoilhead
11377 \family default
11378 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11379 \end_layout
11380
11381 \begin_layout Labeling
11382 \labelwidthstring MMMMMMx
11383
11384 \series bold
11385 leqno
11386 \series default
11387  数式番号を左側に付けます.
11388 \end_layout
11389
11390 \begin_layout Labeling
11391 \labelwidthstring MMMMMMx
11392
11393 \series bold
11394 fleqn
11395 \series default
11396  数式を左揃えにします.
11397 \end_layout
11398
11399 \begin_layout Subsection
11400 サポートされる環境
11401 \end_layout
11402
11403 \begin_layout Standard
11404 他のクラスで標準的にサポートされている環境は,
11405 \family sans
11406 foils
11407 \family default
11408 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11409 が提供している環境と,\SpecialChar LyX
11410 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11411 \end_layout
11412
11413 \begin_layout Standard
11414
11415 \family sans
11416 \begin_inset Flex Multiple Columns
11417 status open
11418
11419 \begin_layout Itemize
11420
11421 \family sans
11422 標準
11423 \end_layout
11424
11425 \begin_layout Itemize
11426
11427 \family sans
11428 箇条書き(記号)
11429 \end_layout
11430
11431 \begin_layout Itemize
11432
11433 \family sans
11434 箇条書き(連番)
11435 \end_layout
11436
11437 \begin_layout Itemize
11438
11439 \family sans
11440 箇条書き(記述)
11441 \end_layout
11442
11443 \begin_layout Itemize
11444
11445 \family sans
11446 箇条書き(リスト)
11447 \end_layout
11448
11449 \begin_layout Itemize
11450
11451 \family sans
11452 \SpecialChar LyX
11453 コード
11454 \end_layout
11455
11456 \begin_layout Itemize
11457
11458 \family sans
11459 詩句
11460 \end_layout
11461
11462 \begin_layout Itemize
11463
11464 \family sans
11465 引用(字下げあり)
11466 \end_layout
11467
11468 \begin_layout Itemize
11469
11470 \family sans
11471 引用(字下げなし)
11472 \end_layout
11473
11474 \begin_layout Itemize
11475
11476 \family sans
11477 タイトル
11478 \end_layout
11479
11480 \begin_layout Itemize
11481
11482 \family sans
11483 著者
11484 \end_layout
11485
11486 \begin_layout Itemize
11487
11488 \family sans
11489 日付
11490 \end_layout
11491
11492 \begin_layout Itemize
11493
11494 \family sans
11495 概要
11496 \end_layout
11497
11498 \begin_layout Itemize
11499
11500 \family sans
11501 書誌情報
11502 \end_layout
11503
11504 \begin_layout Itemize
11505
11506 \family sans
11507 住所
11508 \end_layout
11509
11510 \begin_layout Itemize
11511
11512 \family sans
11513 右寄せ住所
11514 \end_layout
11515
11516 \end_inset
11517
11518
11519 \end_layout
11520
11521 \begin_layout Standard
11522 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11523 \family sans
11524 Foil
11525 \family default
11526 \SpecialChar TeX
11527 は新しいスライドを始める以下のようなコマンドを備えています.
11528 \end_layout
11529
11530 \begin_layout Itemize
11531
11532 \family sans
11533 スライドタイトル(Foilhead)
11534 \end_layout
11535
11536 \begin_layout Itemize
11537
11538 \family sans
11539 横置きスライドタイトル(Rotatefoilhead)
11540 \end_layout
11541
11542 \begin_layout Standard
11543 \SpecialChar LyX
11544 は,以下のような,これらを若干修正した環境も用意しています.
11545 \end_layout
11546
11547 \begin_layout Itemize
11548
11549 \family sans
11550 スライドタイトル(小)(ShortFoilhead)
11551 \end_layout
11552
11553 \begin_layout Itemize
11554
11555 \family sans
11556 横置きスライドタイトル(小)(ShortRotatefoilhead)
11557 \end_layout
11558
11559 \begin_layout Standard
11560 これらの違いは次節で説明します.
11561 \end_layout
11562
11563 \begin_layout Standard
11564 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11565 \family sans
11566 Foil
11567 \family default
11568 \SpecialChar TeX
11569 はそれらを説明するのに便利な環境を幅広く用意しています.
11570 \end_layout
11571
11572 \begin_layout Standard
11573
11574 \family sans
11575 \begin_inset Flex Multiple Columns
11576 status open
11577
11578 \begin_layout Itemize
11579
11580 \family sans
11581 定理
11582 \end_layout
11583
11584 \begin_layout Itemize
11585
11586 \family sans
11587 補題
11588 \end_layout
11589
11590 \begin_layout Itemize
11591
11592 \family sans
11593
11594 \end_layout
11595
11596 \begin_layout Itemize
11597
11598 \family sans
11599 命題
11600 \end_layout
11601
11602 \begin_layout Itemize
11603
11604 \family sans
11605 定義
11606 \end_layout
11607
11608 \begin_layout Itemize
11609
11610 \family sans
11611 証明
11612 \end_layout
11613
11614 \begin_layout Itemize
11615
11616 \family sans
11617 定理*
11618 \end_layout
11619
11620 \begin_layout Itemize
11621
11622 \family sans
11623 補題*
11624 \end_layout
11625
11626 \begin_layout Itemize
11627
11628 \family sans
11629 系*
11630 \end_layout
11631
11632 \begin_layout Itemize
11633
11634 \family sans
11635 命題*
11636 \end_layout
11637
11638 \begin_layout Itemize
11639
11640 \family sans
11641 定義*
11642 \end_layout
11643
11644 \end_inset
11645
11646
11647 \end_layout
11648
11649 \begin_layout Standard
11650 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11651 で追加された以下の2つの箇条書き環境があります.
11652 \end_layout
11653
11654 \begin_layout Itemize
11655
11656 \family sans
11657 箇条書き(チック)
11658 \end_layout
11659
11660 \begin_layout Itemize
11661
11662 \family sans
11663 箇条書き(クロス)
11664 \end_layout
11665
11666 \begin_layout Standard
11667 Foil\SpecialChar TeX
11668 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11669 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11670 \end_layout
11671
11672 \begin_layout Standard
11673 この目的のためには,以下のコマンドスタイルがあります(
11674 \shape smallcaps
11675 Martin Vermeer).
11676 \end_layout
11677
11678 \begin_layout Standard
11679 \begin_inset Flex Multiple Columns
11680 status open
11681
11682 \begin_layout Itemize
11683
11684 \family sans
11685 グラフィックスロゴ
11686 \end_layout
11687
11688 \begin_layout Itemize
11689
11690 \family sans
11691 配布制限
11692 \end_layout
11693
11694 \begin_layout Itemize
11695
11696 \family sans
11697 右フッタ
11698 \end_layout
11699
11700 \begin_layout Itemize
11701
11702 \family sans
11703 右ヘッダ
11704 \end_layout
11705
11706 \begin_layout Itemize
11707
11708 \family sans
11709 左ヘッダ
11710 \end_layout
11711
11712 \begin_deeper
11713 \begin_layout Plain Layout
11714 \begin_inset space ~
11715 \end_inset
11716
11717
11718 \end_layout
11719
11720 \end_deeper
11721 \end_inset
11722
11723
11724 \end_layout
11725
11726 \begin_layout Standard
11727 Foil\SpecialChar TeX
11728 が提供しているコマンドで,\SpecialChar LyX
11729 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
11730 \begin_inset CommandInset ref
11731 LatexCommand ref
11732 reference "sec:unsuppfoils"
11733
11734 \end_inset
11735
11736 節で行います.
11737 \end_layout
11738
11739 \begin_layout Subsection
11740 スライドの組を作る
11741 \end_layout
11742
11743 \begin_layout Standard
11744 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
11745
11746 \family typewriter
11747 examples
11748 \family default
11749 フォルダにある
11750 \family typewriter
11751 Foils.lyx
11752 \family default
11753 ファイルをご覧ください.
11754 \end_layout
11755
11756 \begin_layout Subsubsection
11757 タイトルページを作る
11758 \end_layout
11759
11760 \begin_layout Standard
11761
11762 \family sans
11763 タイトル
11764 \family default
11765
11766 \family sans
11767 著者
11768 \family default
11769
11770 \family sans
11771 日付
11772 \family default
11773
11774 \family sans
11775 概要
11776 \family default
11777 環境のある他のクラスとは異なり,
11778 \family sans
11779 foils
11780 \family default
11781 は独立したページにタイトルを作成します.
11782 \family sans
11783 日付
11784 \family default
11785 環境を使用しなかった場合には,\SpecialChar LaTeX
11786 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
11787 \end_layout
11788
11789 \begin_layout Subsubsection
11790 新しいスライドを開始する
11791 \end_layout
11792
11793 \begin_layout Standard
11794 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
11795 \family sans
11796 スライドタイトル(Foilhead)
11797 \family default
11798
11799 \family sans
11800 スライドタイトル(小)(ShortFoilhead)
11801 \family default
11802 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
11803 \end_layout
11804
11805 \begin_layout Standard
11806 横向きのスライドは,
11807 \family sans
11808 横向きスライドタイトル(Rotatefoilhead)
11809 \family default
11810 か横向きスライドタイトル(小)(
11811 \family sans
11812 ShortRotatefoilhead)
11813 \family default
11814 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
11815 (約1.27cm)小さくなります.
11816 \end_layout
11817
11818 \begin_layout Standard
11819 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
11820 \family typewriter
11821 dvips
11822 \family default
11823 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
11824 \family typewriter
11825 dvips
11826 \family default
11827 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
11828 \end_layout
11829
11830 \begin_layout Subsubsection
11831 定理・補題・証明など
11832 \end_layout
11833
11834 \begin_layout Standard
11835 これらの環境の同じ型をお互いに直接続けて置くことはできません.通常の段落開業を用いると,2つの環境をマージしたかのように,前の環境が延長されるだけです.そうでは
11836 なく,いわゆる分離線を挿入する必要があります.
11837 \emph on
11838 ユーザーの手引き
11839 \emph default
11840 の「
11841 \emph on
11842 入れ子の分離
11843 \emph default
11844 」の節を参照してください.
11845 \end_layout
11846
11847 \begin_layout Subsubsection
11848 箇条書き
11849 \end_layout
11850
11851 \begin_layout Standard
11852 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
11853 他の箇条書き環境について詳しく知りたい場合には,
11854 \emph on
11855 ユーザーの手引き
11856 \emph default
11857 をご覧ください.記号による箇条書きを使用したい場合には,上記第
11858 \begin_inset CommandInset ref
11859 LatexCommand ref
11860 reference "sec:ブリット"
11861
11862 \end_inset
11863
11864 節の
11865 \family sans
11866 箇条書き(記号)ブリットの指定
11867 \family default
11868 の節も,読まれることが望ましいでしょう.
11869 \end_layout
11870
11871 \begin_layout Standard
11872
11873 \family sans
11874 箇条書き(チック)
11875 \family default
11876
11877 \family sans
11878 箇条書き(クロス)
11879 \family default
11880 の二つの新しい様式は,チェック印や
11881 \begin_inset Formula $\times$
11882 \end_inset
11883
11884 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
11885 \family sans
11886 箇条書き(記号)
11887 \family default
11888 の派生型を専用に用意したものに過ぎません.ただし,これらは,
11889 \family typewriter
11890 psnfss
11891 \family default
11892 パッケージが導入済であることを要求します.
11893 \end_layout
11894
11895 \begin_layout Subsubsection
11896 図と表
11897 \end_layout
11898
11899 \begin_layout Standard
11900 Foil\SpecialChar TeX
11901 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
11902 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
11903 \end_layout
11904
11905 \begin_layout Subsubsection
11906 ページヘッダおよびページフッタ
11907 \begin_inset CommandInset label
11908 LatexCommand label
11909 name "sec:foilfoot"
11910
11911 \end_inset
11912
11913
11914 \end_layout
11915
11916 \begin_layout Standard
11917
11918 \family sans
11919 グラフィックスロゴ
11920 \family default
11921
11922 \family sans
11923 配布制限
11924 \family default
11925 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
11926 \family sans
11927 Foil
11928 \family default
11929 \SpecialChar TeX
11930 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
11931 \end_layout
11932
11933 \begin_layout Standard
11934 スライドの残り三隅には,
11935 \family sans
11936 右フッタ
11937 \family default
11938 (既定ではページ番号)・
11939 \family sans
11940 右ヘッダ
11941 \family default
11942 (右上)・
11943 \family sans
11944 左ヘッダ
11945 \family default
11946 (左上)を使って文字を入れることができます.
11947 \end_layout
11948
11949 \begin_layout Subsection
11950 サポートされない 
11951 \family sans
11952 Foil
11953 \family default
11954 \SpecialChar TeX
11955 機能
11956 \begin_inset CommandInset label
11957 LatexCommand label
11958 name "sec:unsuppfoils"
11959
11960 \end_inset
11961
11962
11963 \end_layout
11964
11965 \begin_layout Standard
11966 以下で言及されているコマンドは,
11967 \family sans
11968 \SpecialChar LaTeX
11969
11970 \family default
11971 環境内で設定されるか,他の環境中の
11972 \family sans
11973 \SpecialChar TeX
11974 コード
11975 \family default
11976 として設定される必要があります.
11977 \end_layout
11978
11979 \begin_layout Subsubsection
11980 長さ
11981 \end_layout
11982
11983 \begin_layout Standard
11984 長さは,すべて
11985 \family typewriter
11986
11987 \backslash
11988 setlength{
11989 \family default
11990 \emph on
11991 長さ名
11992 \family typewriter
11993 \emph default
11994 }{
11995 \family default
11996 \emph on
11997 新規長さ
11998 \family typewriter
11999 \emph default
12000 }
12001 \family default
12002 コマンドで調節されます.ここで
12003 \emph on
12004 長さ名
12005 \emph default
12006 は,変更したい長さに付けられている名前で置き換え,
12007 \emph on
12008 新規長さ
12009 \emph default
12010 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
12011 \family typewriter
12012
12013 \backslash
12014 textwidth
12015 \family default
12016 のように文書比あるいはフォント基準の長さで指定する必要があります.
12017 \end_layout
12018
12019 \begin_layout Standard
12020
12021 \family typewriter
12022
12023 \backslash
12024 foilheadskip
12025 \family default
12026 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12027 \begin_inset space \space{}
12028 \end_inset
12029
12030 inだけスライド本文に近づけるには,プリアンブルに
12031 \family typewriter
12032
12033 \backslash
12034 setlength{
12035 \backslash
12036 foilheadskip}{-0.5in}
12037 \family default
12038 と書き込みます.
12039 \end_layout
12040
12041 \begin_layout Standard
12042 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12043 \end_layout
12044
12045 \begin_layout Labeling
12046 \labelwidthstring MMMMMMMMMMM
12047
12048 \family typewriter
12049
12050 \backslash
12051 abovefloatskip
12052 \family default
12053  本文とフロート上辺との間隔
12054 \end_layout
12055
12056 \begin_layout Labeling
12057 \labelwidthstring MMMMMMMMMMM
12058
12059 \family typewriter
12060
12061 \backslash
12062 abovecaptionskip
12063 \family default
12064  フロートとキャプションとの間隔
12065 \end_layout
12066
12067 \begin_layout Labeling
12068 \labelwidthstring MMMMMMMMMMM
12069
12070 \family typewriter
12071
12072 \backslash
12073 belowcaptionskip
12074 \family default
12075  キャプションとそれに続く本文との間隔
12076 \end_layout
12077
12078 \begin_layout Labeling
12079 \labelwidthstring MMMMMMMMMMM
12080
12081 \family typewriter
12082
12083 \backslash
12084 captionwidth
12085 \family default
12086  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12087 \family typewriter
12088
12089 \backslash
12090 textwidth
12091 \family default
12092 に対する相対的な長さで調整するのが最も良いでしょう.
12093 \end_layout
12094
12095 \begin_layout Standard
12096 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12097 \end_layout
12098
12099 \begin_layout Labeling
12100 \labelwidthstring MMMMMMMMMMM
12101
12102 \family typewriter
12103
12104 \backslash
12105 abovetitleskip
12106 \family default
12107  へッダとタイトルとの間隔
12108 \end_layout
12109
12110 \begin_layout Labeling
12111 \labelwidthstring MMMMMMMMMMM
12112
12113 \family typewriter
12114
12115 \backslash
12116 titleauthorskip
12117 \family default
12118  
12119 \family sans
12120 タイトル
12121 \family default
12122 環境と
12123 \family sans
12124 著者
12125 \family default
12126 環境との間隔
12127 \end_layout
12128
12129 \begin_layout Labeling
12130 \labelwidthstring MMMMMMMMMMM
12131
12132 \family typewriter
12133
12134 \backslash
12135 authorauthorskip
12136 \family default
12137  著者が複数いる場合の
12138 \family sans
12139 著者
12140 \family default
12141 行の間隔
12142 \end_layout
12143
12144 \begin_layout Labeling
12145 \labelwidthstring MMMMMMMMMMM
12146
12147 \family typewriter
12148
12149 \backslash
12150 authordateskip
12151 \family default
12152  
12153 \family sans
12154 著者
12155 \family default
12156
12157 \family sans
12158 日付
12159 \family default
12160 との間隔
12161 \end_layout
12162
12163 \begin_layout Labeling
12164 \labelwidthstring MMMMMMMMMMM
12165
12166 \family typewriter
12167
12168 \backslash
12169 dateabstractskip
12170 \family default
12171  
12172 \family sans
12173 日付
12174 \family default
12175
12176 \family sans
12177 概要
12178 \family default
12179 との間隔
12180 \end_layout
12181
12182 \begin_layout Standard
12183 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12184 \family typewriter
12185
12186 \backslash
12187 zerolistvertdimens
12188 \family default
12189 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12190 \family typewriter
12191
12192 \backslash
12193 setlength
12194 \family default
12195 を使う必要がないことに注意してください.
12196 \end_layout
12197
12198 \begin_layout Subsubsection
12199 へッダとフッタ
12200 \end_layout
12201
12202 \begin_layout Standard
12203
12204 \family typewriter
12205
12206 \backslash
12207 LogoOn
12208 \family default
12209 および
12210 \family typewriter
12211
12212 \backslash
12213 LogoOff
12214 \family default
12215 は,
12216 \family typewriter
12217 MyLogo
12218 \family default
12219 で定義したロゴを特定のページに入れるかどうかを制御します.
12220 \family typewriter
12221
12222 \backslash
12223 LogoOff
12224 \family default
12225 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12226 \family typewriter
12227
12228 \backslash
12229 LogoOff
12230 \family default
12231 を置き,次のスライドタイトルの直後に直接
12232 \family typewriter
12233
12234 \backslash
12235 LogoOn
12236 \family default
12237 を置いてください.
12238 \end_layout
12239
12240 \begin_layout Standard
12241
12242 \family sans
12243 文書レイアウト
12244 \family default
12245 ダイアログで
12246 \family sans
12247 fancy
12248 \family default
12249 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12250 \family typewriter
12251
12252 \backslash
12253 let
12254 \backslash
12255 headwidth
12256 \backslash
12257 textwidth
12258 \family default
12259 を加える必要があるでしょう.これは,
12260 \family sans
12261 fancyheadings
12262 \family default
12263 パッケージが提供するページレイアウトと
12264 \family sans
12265 foils
12266 \family default
12267 クラスの提供するページレイアウトの間に衝突が発生するためです.
12268 \end_layout
12269
12270 \begin_layout Section
12271 Hollywood(Hollywoodスペック・スクリプト)
12272 \end_layout
12273
12274 \begin_layout Standard
12275
12276 \noun on
12277 Garst Reese
12278 \noun default
12279
12280 \end_layout
12281
12282 \begin_layout Subsection
12283 はじめに
12284 \end_layout
12285
12286 \begin_layout Standard
12287 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12288 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12289 urier 12
12290 \begin_inset space \space{}
12291 \end_inset
12292
12293 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12294 \end_layout
12295
12296 \begin_layout Subsection
12297 特別な問題
12298 \end_layout
12299
12300 \begin_layout Standard
12301 話者の行は,文の途中で改行することは
12302 \emph on
12303 決して
12304 \emph default
12305 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12306 \family sans
12307 話者
12308 \family default
12309 名を再度書き,その後に(Cont'd)と加えます.
12310 \end_layout
12311
12312 \begin_layout Subsection
12313 特別な機能
12314 \end_layout
12315
12316 \begin_layout Standard
12317
12318 \family sans
12319 話者
12320 \family default
12321 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12322 きに話者名を挿入するのにも使用することができます.
12323 \end_layout
12324
12325 \begin_layout Subsection
12326 用紙寸法と余白
12327 \end_layout
12328
12329 \begin_layout Standard
12330 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12331 \end_layout
12332
12333 \begin_layout Subsection
12334 環境
12335 \end_layout
12336
12337 \begin_layout Standard
12338 以下の環境が利用可能です.右に示されている
12339 \begin_inset Flex Ruby
12340 status collapsed
12341
12342 \begin_layout Plain Layout
12343
12344 \begin_inset Argument post:1
12345 status collapsed
12346
12347 \begin_layout Plain Layout
12348 キー
12349 \end_layout
12350
12351 \end_inset
12352
12353
12354 \end_layout
12355
12356 \end_inset
12357
12358 割当てを使用するには,hollywood.bindを使用してください.
12359 \end_layout
12360
12361 \begin_layout Itemize
12362
12363 \family sans
12364 一般
12365 \begin_inset Newline newline
12366 \end_inset
12367
12368
12369 \family default
12370 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12371 \end_layout
12372
12373 \begin_layout Itemize
12374 フェイドイン:
12375 \begin_inset space \hfill{}
12376 \end_inset
12377
12378
12379 \family sans
12380 M-z S-I
12381 \family default
12382
12383 \begin_inset Newline newline
12384 \end_inset
12385
12386 通常,この後には「Sallyは目を覚ますと」のように続きます.
12387 \end_layout
12388
12389 \begin_layout Itemize
12390
12391 \family sans
12392 屋内:
12393 \begin_inset space \hfill{}
12394 \end_inset
12395
12396 M-z i
12397 \begin_inset Newline newline
12398 \end_inset
12399
12400
12401 \family default
12402 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12403 ます.
12404 \end_layout
12405
12406 \begin_layout Itemize
12407
12408 \family sans
12409 屋外:
12410 \begin_inset space \hfill{}
12411 \end_inset
12412
12413 M-z e
12414 \begin_inset Newline newline
12415 \end_inset
12416
12417
12418 \family default
12419 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12420 \end_layout
12421
12422 \begin_layout Itemize
12423
12424 \family sans
12425 話者
12426 \begin_inset space \hfill{}
12427 \end_inset
12428
12429 M-z s
12430 \begin_inset Newline newline
12431 \end_inset
12432
12433
12434 \family default
12435 話す役.
12436 \end_layout
12437
12438 \begin_layout Itemize
12439
12440 \family sans
12441 括弧付き
12442 \begin_inset space \hfill{}
12443 \end_inset
12444
12445 M-z p
12446 \begin_inset Newline newline
12447 \end_inset
12448
12449 話者
12450 \family default
12451 への指示.自動的に括弧()が挿入されます.
12452 \end_layout
12453
12454 \begin_layout Itemize
12455
12456 \family sans
12457 対話
12458 \begin_inset space \hfill{}
12459 \end_inset
12460
12461 M-z d
12462 \begin_inset Newline newline
12463 \end_inset
12464
12465 話者
12466 \family default
12467 が話す内容.
12468 \end_layout
12469
12470 \begin_layout Itemize
12471
12472 \family sans
12473 画面遷移
12474 \begin_inset space \hfill{}
12475 \end_inset
12476
12477 M-z t
12478 \begin_inset Newline newline
12479 \end_inset
12480
12481
12482 \family default
12483 カメラの動きの指示.例:CUT TO:.
12484 \end_layout
12485
12486 \begin_layout Itemize
12487
12488 \family sans
12489 フェイドアウト:
12490 \begin_inset space \hfill{}
12491 \end_inset
12492
12493 M-z S-I
12494 \end_layout
12495
12496 \begin_layout Itemize
12497
12498 \family sans
12499 著者
12500 \begin_inset space \hfill{}
12501 \end_inset
12502
12503 M-z S-A
12504 \end_layout
12505
12506 \begin_layout Itemize
12507
12508 \family sans
12509 タイトル
12510 \begin_inset space \hfill{}
12511 \end_inset
12512
12513 M-z S-T
12514 \end_layout
12515
12516 \begin_layout Itemize
12517
12518 \family sans
12519 右寄せ住所
12520 \begin_inset space \hfill{}
12521 \end_inset
12522
12523 M-z r
12524 \end_layout
12525
12526 \begin_layout Subsection
12527 脚本で使われる特別な用語
12528 \end_layout
12529
12530 \begin_layout Itemize
12531 (O.S) — off screen
12532 \end_layout
12533
12534 \begin_layout Itemize
12535 (V.0) — voice over
12536 \end_layout
12537
12538 \begin_layout Itemize
12539 b.g.
12540  — background
12541 \end_layout
12542
12543 \begin_layout Itemize
12544 C.U.
12545  — close-up
12546 \end_layout
12547
12548 \begin_layout Itemize
12549 PAN — camera movement
12550 \end_layout
12551
12552 \begin_layout Itemize
12553 INSERT — cut to close-up of
12554 \end_layout
12555
12556 \begin_layout Section
12557 ijmpcおよびijmpd
12558 \end_layout
12559
12560 \begin_layout Standard
12561
12562 \noun on
12563 Panayotis Papasotiriou
12564 \noun default
12565
12566 \end_layout
12567
12568 \begin_layout Subsection
12569 概観
12570 \end_layout
12571
12572 \begin_layout Standard
12573 ijpmcパッケージは,
12574 \emph on
12575 International Journal of Modern Physics C
12576 \emph default
12577 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12578 \emph on
12579 International Journal of Modern Physics D
12580 \emph default
12581 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12582 \family typewriter
12583 ws-ijmpc.cls
12584 \family default
12585 および
12586 \family typewriter
12587 ws-ijmpd.cls
12588 \family default
12589 です.これらのファイルは,著者のための指針とともに,
12590 \begin_inset Flex URL
12591 status collapsed
12592
12593 \begin_layout Plain Layout
12594
12595 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12596 \end_layout
12597
12598 \end_inset
12599
12600 および
12601 \begin_inset Flex URL
12602 status collapsed
12603
12604 \begin_layout Plain Layout
12605
12606 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12607 \end_layout
12608
12609 \end_inset
12610
12611 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12612 は,これらのパッ
12613 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12614 で書き上げましたが,何らの問題も生じませんでした.
12615 \end_layout
12616
12617 \begin_layout Subsection
12618 論文を書く
12619 \end_layout
12620
12621 \begin_layout Standard
12622 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12623 \family sans
12624 ファイル\SpecialChar menuseparator
12625 新規(ひな型使用)
12626 \family default
12627 をクリックして,ひな型
12628 \family typewriter
12629 ijmpc.lyx
12630 \family default
12631 もしくは
12632 \family typewriter
12633 ijmpd.lyx
12634 \family default
12635 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12636 \family typewriter
12637 <>
12638 \family default
12639 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12640 \end_layout
12641
12642 \begin_layout Enumerate
12643 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12644 中でこれらを変更することはできません.
12645 \end_layout
12646
12647 \begin_layout Enumerate
12648 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12649 \begin_inset Info
12650 type  "menu"
12651 arg   "dialog-show document"
12652 \end_inset
12653
12654  
12655 \family sans
12656 \SpecialChar menuseparator
12657 言語
12658 \family default
12659 をクリックして,
12660 \family sans
12661 言語パッケージ
12662 \family default
12663 に「なし」を選択してください.
12664 \end_layout
12665
12666 \begin_layout Enumerate
12667 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12668 \end_layout
12669
12670 \begin_layout Enumerate
12671 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12672 ートされていませんので,ご注意ください.
12673 \end_layout
12674
12675 \begin_layout Enumerate
12676 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12677 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12678 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12679 \end_layout
12680
12681 \begin_layout Enumerate
12682 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12683 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12684 されます.引用に通常の本文を使用したい場合には,「See Ref.
12685 \begin_inset space \space{}
12686 \end_inset
12687
12688
12689 \family typewriter
12690
12691 \backslash
12692 refcite{
12693 \family default
12694
12695 \begin_inset Flex Ruby
12696 status collapsed
12697
12698 \begin_layout Plain Layout
12699
12700 \family typewriter
12701
12702 \family default
12703
12704 \begin_inset Argument post:1
12705 status collapsed
12706
12707 \begin_layout Plain Layout
12708 キー
12709 \end_layout
12710
12711 \end_inset
12712
12713
12714 \end_layout
12715
12716 \end_inset
12717
12718
12719 \family typewriter
12720 }
12721 \family default
12722 」のように
12723 \family typewriter
12724 refcite
12725 \family default
12726 コマンドを使用してください.
12727 \end_layout
12728
12729 \begin_layout Enumerate
12730 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
12731 \end_layout
12732
12733 \begin_layout Enumerate
12734 付録は,論文中,謝辞の
12735 \emph on
12736
12737 \emph default
12738 かつ書誌情報の
12739 \emph on
12740
12741 \emph default
12742 であれば,入れることができます.\SpecialChar LyX
12743 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
12744 てはなりません.この環境は,\SpecialChar LaTeX
12745 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
12746 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
12747 付録であることを明示します.「付録領域」は,最初の付録の前に
12748 \emph on
12749 なくてはならない
12750 \emph default
12751 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
12752 \end_layout
12753
12754 \begin_layout Enumerate
12755 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
12756 \family typewriter
12757 tbl
12758 \family default
12759 コマンドを使用します.そのため,\SpecialChar LyX
12760 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
12761 コードを少し使えば,この問題を回避して,キャプション
12762 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
12763 コードで
12764 \family typewriter
12765
12766 \backslash
12767 tbl{表キャプション}{
12768 \family default
12769 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
12770 コード
12771 \family typewriter
12772 }
12773 \family default
12774 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
12775 欲しい場合に,表フロート全体を
12776 \family typewriter
12777 .tex
12778 \family default
12779 ファイルに収め,このファイルを\SpecialChar LyX
12780 文書に取り込んでください(
12781 \family sans
12782 挿入\SpecialChar menuseparator
12783 ファイル\SpecialChar menuseparator
12784 子文書
12785 \family default
12786 ).表フロートの作り方についての詳細は,各パッケージに含まれている
12787 \family typewriter
12788 ws-ijmpc.tex
12789 \family default
12790 または
12791 \family typewriter
12792 ws-ijmpd.tex
12793 \family default
12794 ファイルをご覧ください.
12795 \end_layout
12796
12797 \begin_layout Subsection
12798 原稿を投稿するための準備
12799 \end_layout
12800
12801 \begin_layout Standard
12802 論文を投稿する前には,\SpecialChar LyX
12803 文書を\SpecialChar LaTeX
12804 ファイルに書き出し(
12805 \family sans
12806 ファイル\SpecialChar menuseparator
12807 書き出し\SpecialChar menuseparator
12808 \SpecialChar LaTeX
12809
12810 \family default
12811
12812 \begin_inset Foot
12813 status open
12814
12815 \begin_layout Plain Layout
12816 実は,\SpecialChar LaTeX
12817  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
12818 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
12819 \end_layout
12820
12821 \end_inset
12822
12823 ,その
12824 \family typewriter
12825 .tex
12826 \family default
12827 ファイルに以下の変更を加える必要があります.
12828 \end_layout
12829
12830 \begin_layout Enumerate
12831
12832 \family typewriter
12833
12834 \backslash
12835 documentclass
12836 \family default
12837 コマンドより前にあるコメント行を削除する.
12838 \end_layout
12839
12840 \begin_layout Enumerate
12841 自身で明示的に\SpecialChar LaTeX
12842 プリアンブルに置いたコマンドを除き,
12843 \family typewriter
12844
12845 \backslash
12846 makeatletter
12847 \family default
12848 コマンドと
12849 \family typewriter
12850
12851 \backslash
12852 makeatother
12853 \family default
12854 コマンドの間にあるものをすべて削除する.
12855 \end_layout
12856
12857 \begin_layout Standard
12858 こうして修正を加えた
12859 \family typewriter
12860 .tex
12861 \family default
12862 ファイルを保存し,必要な回数\SpecialChar LaTeX
12863 で処理してください.それによって得られた
12864 \family typewriter
12865 .dvi
12866 \family default
12867 文書も確認された方がよろしいでしょう.
12868 \end_layout
12869
12870 \begin_layout Section
12871 iopart
12872 \end_layout
12873
12874 \begin_layout Standard
12875
12876 \noun on
12877 Uwe Stöhr
12878 \noun default
12879
12880 \end_layout
12881
12882 \begin_layout Subsection
12883 概要
12884 \end_layout
12885
12886 \begin_layout Standard
12887 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12888 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
12889 \begin_inset Flex URL
12890 status collapsed
12891
12892 \begin_layout Plain Layout
12893
12894 ftp://ftp.iop.org/pub/journals/latex2e
12895 \end_layout
12896
12897 \end_inset
12898
12899 からiopartパッケージとともにダウンロード可能です.
12900 \end_layout
12901
12902 \begin_layout Subsection
12903 論文を書く
12904 \end_layout
12905
12906 \begin_layout Standard
12907 論文を書くもっとも簡単な方法は,ファイル\SpecialChar menuseparator
12908 新規(ひな型使用)\SpecialChar ldots
12909 にあるひな型
12910 \emph on
12911 IOP-article.lyx
12912 \emph default
12913 を土台にすることです.このひな型は,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
12914 \end_layout
12915
12916 \begin_layout Itemize
12917 文書がPDF・PS・DVIにコンパイルできるようにするためには,
12918 \family sans
12919 文書\SpecialChar menuseparator
12920 設定\SpecialChar menuseparator
12921 数式オプション
12922 \family default
12923 で,AMSパッケージが読み込まれていないことを確認してください!
12924 \end_layout
12925
12926 \begin_layout Itemize
12927 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
12928 \end_layout
12929
12930 \begin_deeper
12931 \begin_layout Itemize
12932 論文用には
12933 \family sans
12934 タイトル
12935 \end_layout
12936
12937 \begin_layout Itemize
12938 Review用には
12939 \family sans
12940 Review
12941 \end_layout
12942
12943 \begin_layout Itemize
12944 Topical review用には
12945 \family sans
12946 Topical
12947 \end_layout
12948
12949 \begin_layout Itemize
12950 Comment用には
12951 \family sans
12952 Comment
12953 \end_layout
12954
12955 \begin_layout Itemize
12956 Note用には
12957 \family sans
12958 注釈
12959 \end_layout
12960
12961 \begin_layout Itemize
12962 論文用には
12963 \family sans
12964 Paper
12965 \family default
12966 (タイトルと同じ)
12967 \end_layout
12968
12969 \begin_layout Itemize
12970 Preliminary communication用には
12971 \family sans
12972 Prelim
12973 \end_layout
12974
12975 \begin_layout Itemize
12976 Rapid communication用には
12977 \family sans
12978 Rapid
12979 \end_layout
12980
12981 \begin_layout Itemize
12982 編集者へのLetterには
12983 \family sans
12984 書簡
12985 \end_layout
12986
12987 \end_deeper
12988 \begin_layout Itemize
12989
12990 \family sans
12991 書簡
12992 \family default
12993 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
12994 \end_layout
12995
12996 \begin_layout Itemize
12997 \SpecialChar LyX
12998 では直接にサポートされていませんが,一般的なタイトル環境として
12999 \family sans
13000 Article
13001 \family default
13002 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
13003 コードでこれを指定することができます.
13004 \end_layout
13005
13006 \begin_layout Standard
13007 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
13008 \end_layout
13009
13010 \begin_layout Section
13011 Kluwer
13012 \end_layout
13013
13014 \begin_layout Standard
13015
13016 \noun on
13017 Panayotis Papasotiriou
13018 \noun default
13019
13020 \end_layout
13021
13022 \begin_layout Subsection
13023 概要
13024 \end_layout
13025
13026 \begin_layout Standard
13027 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13028 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13029 \emph on
13030 Astrophysics and Space Science
13031 \emph default
13032 (『宇宙物理学と宇宙科学』)と
13033 \emph on
13034 Solar Physics
13035 \emph default
13036 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13037 \begin_inset Flex URL
13038 status collapsed
13039
13040 \begin_layout Plain Layout
13041
13042 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13043 \end_layout
13044
13045 \end_inset
13046
13047 に全覧があります).Kluwerパッケージは,
13048 \begin_inset Flex URL
13049 status collapsed
13050
13051 \begin_layout Plain Layout
13052
13053 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13054 \end_layout
13055
13056 \end_inset
13057
13058 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13059 \end_layout
13060
13061 \begin_layout Standard
13062 \SpecialChar LyX
13063 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13064 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13065 りました(
13066 \begin_inset CommandInset ref
13067 LatexCommand ref
13068 reference "subsec:kluwer_peculiarities"
13069
13070 \end_inset
13071
13072 参照).最近,私は\SpecialChar LyX
13073 を使って書いた論文を
13074 \emph on
13075 Astrophysics and Space Science
13076 \emph default
13077 に投稿しましたが,何らの問題も発生しませんでした.
13078 \end_layout
13079
13080 \begin_layout Subsection
13081 論文を書く
13082 \end_layout
13083
13084 \begin_layout Standard
13085 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13086 \family sans
13087 ファイル\SpecialChar menuseparator
13088 新規(ひな型使用)
13089 \family default
13090 をクリックし,ひな型
13091 \family typewriter
13092 kluwer.lyx
13093 \family default
13094 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13095 様に,既存の文章を(括弧
13096 \family typewriter
13097 <>
13098 \family default
13099 を含む)正しい情報で上書きしてください.
13100 \end_layout
13101
13102 \begin_layout Subsection
13103 投稿の準備
13104 \end_layout
13105
13106 \begin_layout Standard
13107 AAS\SpecialChar TeX
13108 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13109 \end_layout
13110
13111 \begin_layout Enumerate
13112
13113 \family sans
13114 ファイル\SpecialChar menuseparator
13115 書き出し\SpecialChar menuseparator
13116 LateX
13117 \family default
13118 をクリックして,論文を\SpecialChar LaTeX
13119 ファイルに書き出す.
13120 \end_layout
13121
13122 \begin_layout Enumerate
13123 生成された
13124 \family typewriter
13125 .tex
13126 \family default
13127 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13128 \end_layout
13129
13130 \begin_deeper
13131 \begin_layout Enumerate
13132
13133 \family typewriter
13134
13135 \backslash
13136 documentclass
13137 \family default
13138 コマンドより前にあるコメント行を削除する.
13139 \end_layout
13140
13141 \begin_layout Enumerate
13142 意図的に\SpecialChar LaTeX
13143 プリアンブルに加えたコマンドを除き,
13144 \family typewriter
13145
13146 \backslash
13147 makeatletter
13148 \family default
13149 から 
13150 \family typewriter
13151
13152 \backslash
13153 makeatother
13154 \family default
13155 の間にあるものを,これらのコマンドも含め,すべて削除する.
13156 \end_layout
13157
13158 \begin_layout Standard
13159 変更した
13160 \family typewriter
13161 .tex
13162 \family default
13163 ファイルを保存する.
13164 \end_layout
13165
13166 \end_deeper
13167 \begin_layout Enumerate
13168 この
13169 \family typewriter
13170 .tex
13171 \family default
13172 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13173 にかける.
13174 \end_layout
13175
13176 \begin_layout Enumerate
13177 生成された
13178 \family typewriter
13179 .dvi
13180 \family default
13181 ファイルを
13182 \family sans
13183 xdvi
13184 \family default
13185 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13186 \end_layout
13187
13188 \begin_layout Subsection
13189 Kluwerパッケージの「風変わり」な特徴
13190 \begin_inset CommandInset label
13191 LatexCommand label
13192 name "subsec:kluwer_peculiarities"
13193
13194 \end_inset
13195
13196
13197 \end_layout
13198
13199 \begin_layout Standard
13200 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13201 \end_layout
13202
13203 \begin_layout Enumerate
13204 複数の論文を1つの\SpecialChar LaTeX
13205 ファイルへ入れることができます
13206 \begin_inset Foot
13207 status collapsed
13208
13209 \begin_layout Plain Layout
13210 わざわざこんなことをする必要はないでしょう.
13211 \end_layout
13212
13213 \end_inset
13214
13215 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13216 \family typewriter
13217
13218 \backslash
13219 begin{article}
13220 \family default
13221 で始まり,
13222 \family typewriter
13223
13224 \backslash
13225 end{article}
13226 \family default
13227 で終わります.この環境を\SpecialChar LyX
13228 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13229 \family typewriter
13230
13231 \backslash
13232 begin{article}
13233 \family default
13234
13235 \family typewriter
13236
13237 \backslash
13238 end{article}
13239 \family default
13240 )は,直接本文中に入力して,\SpecialChar LaTeX
13241 コード(「\SpecialChar TeX
13242 コード」のことです)としてマークする必要があります.
13243 \end_layout
13244
13245 \begin_layout Enumerate
13246 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13247 はなりません.これは\SpecialChar LyX
13248 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13249 コード行(
13250 \family typewriter
13251
13252 \backslash
13253 begin{opening}
13254 \family default
13255 および
13256 \family typewriter
13257
13258 \backslash
13259 end{opening}
13260 \family default
13261 )の間に入れる必要があります.
13262 \end_layout
13263
13264 \begin_layout Enumerate
13265 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13266 \family typewriter
13267
13268 \begin_inset Newline newline
13269 \end_inset
13270
13271
13272 \backslash
13273 protect
13274 \backslash
13275 citeauthoryear{
13276 \family default
13277 \emph on
13278 著者名
13279 \family typewriter
13280 \emph default
13281 }{
13282 \family default
13283 \emph on
13284
13285 \family typewriter
13286 \emph default
13287 }
13288 \family default
13289  と書く必要があります.
13290 \end_layout
13291
13292 \begin_layout Standard
13293 ひな型
13294 \family typewriter
13295 kluwer.lyx
13296 \family default
13297 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13298 てください.
13299 \end_layout
13300
13301 \begin_layout Enumerate
13302 ひな型にある\SpecialChar TeX
13303 コードを削除しないでください.
13304 \end_layout
13305
13306 \begin_layout Enumerate
13307 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13308 \end_layout
13309
13310 \begin_layout Section
13311 Koma-Script
13312 \end_layout
13313
13314 \begin_layout Standard
13315
13316 \noun on
13317 Bernd Rellermeyer
13318 \noun default
13319
13320 \end_layout
13321
13322 \begin_layout Subsection
13323 概要
13324 \end_layout
13325
13326 \begin_layout Standard
13327 \SpecialChar LyX
13328 の文書クラス
13329 \emph on
13330 article (koma-script)
13331 \emph default
13332
13333 \emph on
13334 report (koma-script)
13335 \emph default
13336
13337 \emph on
13338 book
13339 \emph default
13340  
13341 \emph on
13342 (koma-script)
13343 \emph default
13344
13345 \emph on
13346 letter
13347 \emph default
13348  
13349 \emph on
13350 (koma-script)
13351 \emph default
13352 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13353 文書クラス
13354 \family typewriter
13355 scrartcl.cls
13356 \family default
13357
13358 \family typewriter
13359 scrreprt.cls
13360 \family default
13361
13362 \family typewriter
13363 scrbook.cls
13364 \family default
13365
13366 \family typewriter
13367 scrlettr.cls
13368 \family default
13369 に対応しています.これらは,標準文書クラス
13370 \family typewriter
13371 article.cls
13372 \family default
13373
13374 \family typewriter
13375 report.cls
13376 \family default
13377
13378 \family typewriter
13379 book.cls
13380 \family default
13381
13382 \family typewriter
13383 letter.cls
13384 \family default
13385 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13386 \end_layout
13387
13388 \begin_layout Itemize
13389 標準文字寸法は,
13390 \emph on
13391 article (koma-script)
13392 \emph default
13393
13394 \emph on
13395 report (koma-script)
13396 \emph default
13397
13398 \emph on
13399 book (koma-script)
13400 \emph default
13401 で11pt,
13402 \emph on
13403 letter (koma-script)
13404 \emph default
13405 で12ptです.
13406 \end_layout
13407
13408 \begin_layout Itemize
13409 見出しや箇条書き(記述)環境のラベル,および
13410 \emph on
13411 letter (koma-script)
13412 \emph default
13413 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13414 \begin_inset Foot
13415 status collapsed
13416
13417 \begin_layout Plain Layout
13418 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13419 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13420 \shape smallcaps
13421 Walter Schmidt
13422 \shape default
13423 作の\SpecialChar LaTeX
13424 パッケージ
13425 \family typewriter
13426 cmsd.sty
13427 \family default
13428 が役立ちます.
13429 \end_layout
13430
13431 \end_inset
13432
13433 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13434 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13435 とができます(\SpecialChar LyX
13436 では,
13437 \family sans
13438 文書\SpecialChar menuseparator
13439 設定
13440 \family default
13441 ダイアログの
13442 \family sans
13443 クラスオプション
13444 \family default
13445 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13446 \emph on
13447 scrguide
13448 \emph default
13449 にあります.
13450 \end_layout
13451
13452 \begin_layout Itemize
13453 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13454 \family sans
13455 BCOR
13456 \family default
13457 オプションまたは
13458 \family sans
13459 DIV
13460 \family default
13461 オプションを使う方法です(\SpecialChar LyX
13462 では,
13463 \family sans
13464 文書\SpecialChar menuseparator
13465 設定
13466 \family default
13467 ダイアログの
13468 \family sans
13469 クラスオプション
13470 \family default
13471 フィールドで指定します).これらのオプションは
13472 \family sans
13473 文書\SpecialChar menuseparator
13474 設定
13475 \family default
13476 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13477 扱説明書
13478 \emph on
13479 scrguide
13480 \emph default
13481 にあります.
13482 \end_layout
13483
13484 \begin_layout Itemize
13485 Koma-Scriptファミリーの\SpecialChar LaTeX
13486 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13487 で意味を持つものは,対応する段落環境として実装されています
13488
13489 \end_layout
13490
13491 \begin_layout Standard
13492 Koma-Scriptファミリーの\SpecialChar LaTeX
13493 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13494 \emph on
13495 scrguide
13496 \emph default
13497 にあります
13498 \begin_inset Foot
13499 status collapsed
13500
13501 \begin_layout Plain Layout
13502 英語翻訳版の
13503 \emph on
13504 screnggu
13505 \emph default
13506 もありますが,完訳ではありません.
13507 \end_layout
13508
13509 \end_inset
13510
13511 .以下の各節では,\SpecialChar LyX
13512 に関係する側面のみ説明致します.
13513 \end_layout
13514
13515 \begin_layout Subsection
13516 article (koma-script)・report (koma-script)・book (koma-script)
13517 \end_layout
13518
13519 \begin_layout Standard
13520 文書クラス
13521 \emph on
13522 article (koma-script)
13523 \emph default
13524
13525 \emph on
13526 report (koma-script)
13527 \emph default
13528
13529 \emph on
13530 book
13531 \emph default
13532  
13533 \emph on
13534 (koma-script)
13535 \emph default
13536 は,それぞれレイアウトファイル
13537 \family typewriter
13538 scrartcl.layout
13539 \family default
13540
13541 \family typewriter
13542 scrreprt.layou
13543 \family default
13544 t・
13545 \family typewriter
13546 crbook.layout
13547 \family default
13548 によって実装されています.これらは,対応する標準文書クラス
13549 \emph on
13550 article
13551 \emph default
13552
13553 \emph on
13554 report
13555 \emph default
13556
13557 \emph on
13558 book
13559 \emph default
13560 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13561 固有の
13562 \family sans
13563 箇条書き(一覧)
13564 \family default
13565 環境は例外であり,同じ機能を持つ新しい
13566 \family sans
13567 ラベリング
13568 \family default
13569 環境で置き換えられています.この
13570 \family sans
13571 ラベリング
13572 \family default
13573 環境以外にも,新しい段落環境が多く追加されています.これらは,
13574 \emph on
13575 letter (koma-script)
13576 \emph default
13577 には含まれていないのでご注意ください.
13578 \end_layout
13579
13580 \begin_layout Itemize
13581
13582 \family sans
13583 部(addpart)
13584 \family default
13585
13586 \family sans
13587 章(addchap)
13588 \family default
13589
13590 \family sans
13591 節(addsec)
13592 \family default
13593 :これらは,それぞれ
13594 \family sans
13595 部*
13596 \family default
13597
13598 \family sans
13599 章*
13600 \family default
13601
13602 \family sans
13603 節*
13604 \family default
13605 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13606 \family sans
13607 部(addpart)
13608 \family default
13609
13610 \family sans
13611 章(addchap)
13612 \family default
13613 は,
13614 \emph on
13615 article (koma-script)
13616 \emph default
13617 には収録されていません.
13618 \end_layout
13619
13620 \begin_layout Itemize
13621
13622 \family sans
13623 章(addchap*)
13624 \family default
13625
13626 \family sans
13627 節(addsec*)
13628 \family default
13629 :これらは,
13630 \family sans
13631 章(addchap
13632 \family default
13633 )と
13634 \family sans
13635 節(addsec)
13636 \family default
13637 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13638 \family sans
13639 章(addchap*)
13640 \family default
13641 は, 
13642 \emph on
13643 article (koma-script)
13644 \emph default
13645 には収録されていません
13646 \begin_inset Foot
13647 status collapsed
13648
13649 \begin_layout Plain Layout
13650
13651 \emph on
13652 book (koma-script)
13653 \emph default
13654
13655 \emph on
13656 report (koma-script)
13657 \emph default
13658 には,
13659 \family typewriter
13660
13661 \backslash
13662 addpart*
13663 \family default
13664 コマンドもありますが,これは
13665 \family sans
13666 Part*
13667 \family default
13668 と同一なので,\SpecialChar LyX
13669 では実装されていません.
13670 \end_layout
13671
13672 \end_inset
13673
13674
13675 \end_layout
13676
13677 \begin_layout Itemize
13678
13679 \family sans
13680 小見出し(minisec)
13681 \family default
13682 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13683 \end_layout
13684
13685 \begin_layout Itemize
13686
13687 \family sans
13688 上部キャプション
13689 \family default
13690
13691 \family sans
13692 下部キャプション
13693 \family default
13694 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13695 ねに表の上に置くべきでしょう).また,クラスオプション
13696 \family typewriter
13697 tablecaptionsabove
13698 \family default
13699 を用いれば,キャプションを指定すると,表には
13700 \family sans
13701 上部キャプション
13702 \family default
13703 が,図には
13704 \family sans
13705 下部キャプション
13706 \family default
13707 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13708 \end_layout
13709
13710 \begin_layout Itemize
13711
13712 \family sans
13713 格言(dictum)
13714 \family default
13715 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
13716 \family sans
13717 挿入\SpecialChar menuseparator
13718 格言著者
13719 \family default
13720 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13721 \family sans
13722 格言(dictum)
13723 \family default
13724 は,
13725 \emph on
13726 article (koma-script)
13727 \emph default
13728 には収録されていません.
13729 \end_layout
13730
13731 \begin_layout Standard
13732 以下の各環境は,標準の
13733 \family sans
13734 タイトル
13735 \family default
13736
13737 \family sans
13738 著者
13739 \family default
13740
13741 \family sans
13742 日付
13743 \family default
13744 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
13745 \begin_inset Foot
13746 status collapsed
13747
13748 \begin_layout Plain Layout
13749 つまり,対応する\SpecialChar LaTeX
13750 コマンドが
13751 \family typewriter
13752
13753 \backslash
13754 maketitle
13755 \family default
13756 コマンドよりも前に現れなくてはなりません.
13757 \end_layout
13758
13759 \end_inset
13760
13761 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
13762 \family sans
13763 タイトル
13764 \family default
13765
13766 \family sans
13767 著者
13768 \family default
13769
13770 \family sans
13771 日付
13772 \family default
13773 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
13774 \end_layout
13775
13776 \begin_layout Itemize
13777
13778 \family sans
13779 主題
13780 \family default
13781 :通常のタイトル部(
13782 \family sans
13783 タイトル
13784 \family default
13785
13786 \family sans
13787 著者
13788 \family default
13789
13790 \family sans
13791 日付
13792 \family default
13793 )の上に,文書の主題用の中央揃えの段落を生成します.
13794 \end_layout
13795
13796 \begin_layout Itemize
13797
13798 \family sans
13799 出版社
13800 \family default
13801 :通常のタイトル部(
13802 \family sans
13803 タイトル
13804 \family default
13805
13806 \family sans
13807 著者
13808 \family default
13809
13810 \family sans
13811 日付
13812 \family default
13813 )の下に,出版社名用の中央揃えの段落を生成します.
13814 \end_layout
13815
13816 \begin_layout Itemize
13817
13818 \family sans
13819 献呈
13820 \family default
13821
13822 \emph on
13823 report (koma-script)
13824 \emph default
13825
13826 \emph on
13827 book (koma-script)
13828 \emph default
13829 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
13830 \emph on
13831 article (koma-script)
13832 \emph default
13833 の場合は,通常のタイトル部(
13834 \family sans
13835 タイトル
13836 \family default
13837
13838 \family sans
13839 著者
13840 \family default
13841
13842 \family sans
13843 日付
13844 \family default
13845 )の下に献辞用の中央揃えの段落を生成します.
13846 \end_layout
13847
13848 \begin_layout Itemize
13849
13850 \family sans
13851 タイトル頭書き
13852 \family default
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 \end_layout
13867
13868 \begin_layout Itemize
13869
13870 \family sans
13871 扉裏上部
13872 \family default
13873
13874 \emph on
13875 report (koma-script)
13876 \emph default
13877 や 
13878 \emph on
13879 book (koma-script)
13880 \emph default
13881 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
13882 \emph on
13883 article (koma-script)
13884 \emph default
13885 では何の効果も生じません.
13886 \end_layout
13887
13888 \begin_layout Itemize
13889
13890 \family sans
13891 扉裏下部
13892 \family default
13893
13894 \emph on
13895 report (koma-script)
13896 \emph default
13897 や 
13898 \emph on
13899 book (koma-script)
13900 \emph default
13901 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
13902 \emph on
13903 article (koma-script)
13904 \emph default
13905 では何の効果も生じません.
13906 \end_layout
13907
13908 \begin_layout Itemize
13909
13910 \family sans
13911 追加タイトル
13912 \family default
13913 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
13914 \end_layout
13915
13916 \begin_layout Standard
13917 文書クラス
13918 \emph on
13919 article (koma-script)
13920 \emph default
13921
13922 \emph on
13923 report (koma-script)
13924 \emph default
13925
13926 \emph on
13927 book (koma-script)
13928 \emph default
13929 の 各レイアウトファイルは,
13930 \family typewriter
13931 scrmacros.inc
13932 \family default
13933 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
13934 \family typewriter
13935 crmacros.inc
13936 \family default
13937 を,個人用レイアウトディレクトリにコピーして編集してください!
13938 \end_layout
13939
13940 \begin_layout Subsection
13941 letter (koma-script)
13942 \end_layout
13943
13944 \begin_layout Description
13945 \noindent
13946
13947 \family sans
13948 \series bold
13949 註:
13950 \family default
13951 \series default
13952  本節は,廃版となっている
13953 \family sans
13954 KOMA-Script-Letter (v.
13955 \begin_inset space ~
13956 \end_inset
13957
13958 1)
13959 \family default
13960 について論じています.これは,最近のKOMAリリースでは収録もされていません.現行の
13961 \family sans
13962 KOMA-Script-Letter (v.
13963 \begin_inset space ~
13964 \end_inset
13965
13966 2)
13967 \family default
13968 については,次節を参照してください!
13969 \end_layout
13970
13971 \begin_layout Standard
13972 \noindent
13973 文書クラス
13974 \emph on
13975 letter (koma-script)
13976 \emph default
13977 は,レイアウトファイル 
13978 \family typewriter
13979 scrlettr.layout
13980 \family default
13981 で実装されています.このレイアウトファイルには,対応する標準文書クラス
13982 \emph on
13983 letter
13984 \emph default
13985 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
13986 固有環境の
13987 \family sans
13988 \SpecialChar LyX
13989 コード
13990 \family default
13991
13992 \family sans
13993 コメント
13994 \family default
13995
13996 \family sans
13997 箇条書き(一覧
13998 \family default
13999 )は,新しく
14000 \family sans
14001 ラベリング
14002 \family default
14003 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
14004 \family sans
14005 \SpecialChar LaTeX
14006
14007 \family default
14008
14009 \family sans
14010 引用(字下げあり)
14011 \family default
14012
14013 \family sans
14014 引用(字下げなし)
14015 \family default
14016
14017 \family sans
14018 詩句
14019 \family default
14020 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14021 \end_layout
14022
14023 \begin_layout Standard
14024 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14025 コマンドを\SpecialChar LaTeX
14026 プリアンブルに置くことで制御することができます
14027 \begin_inset Foot
14028 status collapsed
14029
14030 \begin_layout Plain Layout
14031 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14032 す.
14033 \end_layout
14034
14035 \begin_layout LyX-Code
14036
14037 \backslash
14038 firsthead{
14039 \backslash
14040 parbox[b]{
14041 \backslash
14042 textwidth}
14043 \end_layout
14044
14045 \begin_layout LyX-Code
14046   {
14047 \backslash
14048 ignorespaces 
14049 \backslash
14050 fromname
14051 \backslash
14052
14053 \backslash
14054  
14055 \backslash
14056 ignorespaces 
14057 \backslash
14058 fromaddress}} 
14059 \end_layout
14060
14061 \begin_layout LyX-Code
14062
14063 \backslash
14064 nexthead{
14065 \backslash
14066 parbox[b]{
14067 \backslash
14068 textwidth}
14069 \end_layout
14070
14071 \begin_layout LyX-Code
14072   {
14073 \backslash
14074 ignorespaces 
14075 \backslash
14076 fromname 
14077 \backslash
14078 hfill 
14079 \backslash
14080 ignorespaces 
14081 \backslash
14082 pagename
14083 \backslash
14084
14085 \end_layout
14086
14087 \begin_layout LyX-Code
14088
14089 \backslash
14090 thepage}}
14091 \end_layout
14092
14093 \end_inset
14094
14095 .これらの\SpecialChar LaTeX
14096 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14097 \emph on
14098 scrguide
14099 \emph default
14100 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14101 \end_layout
14102
14103 \begin_layout Standard
14104
14105 \family sans
14106 書簡
14107 \family default
14108 環境および
14109 \family sans
14110 頭語
14111 \family default
14112 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14113 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14114 \shape italic
14115 L
14116 \shape default
14117
14118 \shape italic
14119 O
14120 \shape default
14121 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14122 \family sans
14123 頭語
14124 \family default
14125 環境は,同じ受取人への書簡を新しく書き出すものであり,
14126 \family sans
14127 書簡
14128 \family default
14129 環境は,新しい受取人を生成するものです.
14130 \family sans
14131 結語
14132 \family default
14133
14134 \family sans
14135 PS
14136 \family default
14137
14138 \family sans
14139 CC
14140 \family default
14141
14142 \family sans
14143 Encl
14144 \family default
14145 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14146 \end_layout
14147
14148 \begin_layout Itemize
14149
14150 \family sans
14151 書簡
14152 \family default
14153 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14154 \end_layout
14155
14156 \begin_layout Itemize
14157
14158 \family sans
14159 頭語
14160 \family default
14161 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14162 \end_layout
14163
14164 \begin_layout Itemize
14165
14166 \family sans
14167 結語
14168 \family default
14169 :結語のための段落をつくります.
14170 \end_layout
14171
14172 \begin_layout Itemize
14173
14174 \family sans
14175 PS
14176 \family default
14177 :追伸のための段落をつくります.
14178 \end_layout
14179
14180 \begin_layout Itemize
14181
14182 \family sans
14183 CC
14184 \family default
14185 :同報一覧のための段落をつくります.
14186 \end_layout
14187
14188 \begin_layout Itemize
14189
14190 \family sans
14191 Encl
14192 \family default
14193 :同封物のための段落をつくります.
14194 \end_layout
14195
14196 \begin_layout Standard
14197
14198 \family sans
14199 名前
14200 \family default
14201
14202 \family sans
14203 署名
14204 \family default
14205
14206 \family sans
14207 住所
14208 \family default
14209
14210 \family sans
14211 電話
14212 \family default
14213
14214 \family sans
14215 場所(Place
14216 \family default
14217 )・
14218 \family sans
14219 返送先住所
14220 \family default
14221
14222 \family sans
14223 配送手段(Specialmail)
14224 \family default
14225
14226 \family sans
14227 場所
14228 \family default
14229
14230 \family sans
14231 タイトル
14232 \family default
14233
14234 \family sans
14235 主題
14236 \family default
14237 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14238 \begin_inset Foot
14239 status collapsed
14240
14241 \begin_layout Plain Layout
14242 上述の
14243 \family sans
14244 書簡
14245 \family default
14246
14247 \family sans
14248 頭語
14249 \family default
14250 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14251 一文字をマークした通常の段落環境として実装しました.さらに,
14252 \family sans
14253 頭語
14254 \family default
14255 環境と
14256 \family sans
14257 結語
14258 \family default
14259 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14260 \end_layout
14261
14262 \end_inset
14263
14264 .これらの環境は,対応する
14265 \family sans
14266 頭語
14267 \family default
14268 環境の前に置く必要があります.
14269 \end_layout
14270
14271 \begin_layout Standard
14272 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14273 ん.たとえば,
14274 \family sans
14275 署名
14276 \family default
14277 環境で入力した署名は,標準的な挙動では,同じ書簡に
14278 \family sans
14279 結語
14280 \family default
14281 環境も使用されているときのみ,書簡の出力に現れます.
14282 \family sans
14283 電話
14284 \family default
14285 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14286 \end_layout
14287
14288 \begin_layout Standard
14289 入力環境は,空の段落として使うことができます.これは,たとえば
14290 \family sans
14291 署名
14292 \family default
14293 環境の場合に有効です.
14294 \family sans
14295 署名
14296 \family default
14297 環境を全く使用しない場合は,標準的な挙動では,
14298 \family sans
14299 名前
14300 \family default
14301 環境の値が署名として使用されますが,空の
14302 \family sans
14303 署名
14304 \family default
14305 環境を作成しておくと,署名の値は無定義となりません.
14306 \end_layout
14307
14308 \begin_layout Standard
14309 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14310 \end_layout
14311
14312 \begin_layout Itemize
14313
14314 \family sans
14315 名前
14316 \family default
14317 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14318 \end_layout
14319
14320 \begin_layout Itemize
14321
14322 \family sans
14323 署名
14324 \family default
14325 :送り主の署名.標準的な挙動では,
14326 \family sans
14327 結語
14328 \family default
14329 環境の下に表示されます.
14330 \family sans
14331 署名
14332 \family default
14333 環境を使用しないと,代わりに
14334 \family sans
14335 名前
14336 \family default
14337 環境の値が表示されます.
14338 \end_layout
14339
14340 \begin_layout Itemize
14341
14342 \family sans
14343 住所
14344 \family default
14345 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14346 \end_layout
14347
14348 \begin_layout Itemize
14349
14350 \family sans
14351 電話
14352 \family default
14353 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14354 変数
14355 \family typewriter
14356
14357 \backslash
14358 telephonenum
14359 \family default
14360 を設定するだけです.
14361 \end_layout
14362
14363 \begin_layout Itemize
14364
14365 \family sans
14366 場所(Place)
14367 \family default
14368 :書簡を書いた場所.
14369 \end_layout
14370
14371 \begin_layout Itemize
14372
14373 \family sans
14374 日付
14375 \family default
14376 :書簡を書いた日付.
14377 \family sans
14378 場所(Place)
14379 \family default
14380
14381 \family sans
14382 日付
14383 \family default
14384 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14385 \family sans
14386 日付
14387 \family default
14388 環境を作成しておくと,
14389 \family sans
14390 場所(Place)
14391 \family default
14392 の値如何に関わらず,場所も日付も表示されません.
14393 \family sans
14394 日付
14395 \family default
14396 環境を使用しない場合には,書簡を出力した日付が使用されます.
14397 \end_layout
14398
14399 \begin_layout Itemize
14400
14401 \family sans
14402 返送先住所
14403 \family default
14404 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14405 \end_layout
14406
14407 \begin_layout Itemize
14408
14409 \family sans
14410 特別便
14411 \family default
14412 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14413 \end_layout
14414
14415 \begin_layout Itemize
14416
14417 \family sans
14418 場所
14419 \family default
14420 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14421 \end_layout
14422
14423 \begin_layout Itemize
14424
14425 \family sans
14426 タイトル
14427 \family default
14428 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14429 \end_layout
14430
14431 \begin_layout Itemize
14432
14433 \family sans
14434 主題
14435 \family default
14436 :書簡の主題.標準的な挙動では,
14437 \family sans
14438 頭語
14439 \family default
14440 環境の上にボールド体で表示されます.
14441 \end_layout
14442
14443 \begin_layout Standard
14444
14445 \family sans
14446 Yourref・Yourmail・Myref・顧客・インボイス
14447 \family default
14448 といった環境は,
14449 \family sans
14450 タイトル
14451 \family default
14452 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14453 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14454 \family sans
14455 日付
14456 \family default
14457 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14458 \family sans
14459 場所(Place)
14460 \family default
14461 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14462 変数
14463 \family typewriter
14464
14465 \backslash
14466 fromplace
14467 \family default
14468 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14469 て実装されており,対応する
14470 \family sans
14471 頭語
14472 \family default
14473 環境よりも前に置く必要があります.
14474 \end_layout
14475
14476 \begin_layout Itemize
14477
14478 \family sans
14479 Yourref
14480 \family default
14481 : Your ref.
14482 \end_layout
14483
14484 \begin_layout Itemize
14485
14486 \family sans
14487 Yourmail
14488 \family default
14489 : Your letter of.
14490 \end_layout
14491
14492 \begin_layout Itemize
14493
14494 \family sans
14495 Myref
14496 \family default
14497 : Our ref.
14498 \end_layout
14499
14500 \begin_layout Itemize
14501
14502 \family sans
14503 Customer
14504 \family default
14505 : Customer no.
14506 \end_layout
14507
14508 \begin_layout Itemize
14509
14510 \family sans
14511 Invoice
14512 \family default
14513 : Invoice no.
14514 \end_layout
14515
14516 \begin_layout Subsection
14517 新しいletterクラス:letter (koma-script v.2)
14518 \end_layout
14519
14520 \begin_layout Standard
14521 by 
14522 \noun on
14523 Jürgen Spitzmüller
14524 \begin_inset VSpace medskip
14525 \end_inset
14526
14527
14528 \end_layout
14529
14530 \begin_layout Standard
14531 \noindent
14532 Koma-Script第2.8版では,新しいletterクラス
14533 \family typewriter
14534 scrlttr2
14535 \family default
14536 が導入されたため,
14537 \family typewriter
14538 scrlettr
14539 \family default
14540 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14541 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14542 は両者をサポートしてい
14543 ますが,新しい方のクラスを使用することを推奨します.
14544 \end_layout
14545
14546 \begin_layout Standard
14547 このクラスは,
14548 \emph on
14549 letter (koma-script)
14550 \emph default
14551 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14552 \family sans
14553 住所
14554 \family default
14555 (受取人の住所,旧レイアウトの
14556 \family sans
14557 書簡
14558 \family default
14559 と同じ)・
14560 \family sans
14561 頭語
14562 \family default
14563
14564 \family sans
14565 結語
14566 \family default
14567 です.
14568 \family sans
14569 次の住所
14570 \family default
14571 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14572 \family sans
14573 電子メール
14574 \family default
14575
14576 \family sans
14577 URL
14578 \family default
14579
14580 \family sans
14581 ファックス
14582 \family default
14583
14584 \family sans
14585 銀行
14586 \family default
14587 ,およびヘッダに(
14588 \family sans
14589 挿入\SpecialChar menuseparator
14590
14591 \family default
14592 で)
14593 \family sans
14594 ロゴ
14595 \family default
14596 を入れることができるようになった点です.
14597 \end_layout
14598
14599 \begin_layout Standard
14600 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14601 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14602 \family typewriter
14603 *.lco
14604 \family default
14605 )によって設定することができます
14606 \begin_inset Foot
14607 status collapsed
14608
14609 \begin_layout Plain Layout
14610 KOMAパッケージには,既定の
14611 \family typewriter
14612 *.lco
14613 \family default
14614 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14615 \family typewriter
14616 DIN.lco
14617 \family default
14618 や,旧
14619 \family typewriter
14620 scrlettr
14621 \family default
14622 クラスの既定レイアウトを提供する
14623 \family typewriter
14624 KOMAold.lco
14625 \family default
14626 などです.たとえば後者は,
14627 \family sans
14628 文書\SpecialChar menuseparator
14629 設定\SpecialChar menuseparator
14630 文書クラス\SpecialChar menuseparator
14631 クラスオプション
14632 \family default
14633 フィールドにクラスオプション
14634 \family typewriter
14635 KOMAold
14636 \family default
14637 を加えることで読み込むことができます.
14638 \end_layout
14639
14640 \end_inset
14641
14642 .用例としては,\SpecialChar LyX
14643 に収録されているひな型
14644 \emph on
14645 koma-letter2
14646 \emph default
14647 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14648 \emph on
14649 scrguide
14650 \emph default
14651 )にあります.
14652 \end_layout
14653
14654 \begin_layout Subsection
14655 問題点
14656 \end_layout
14657
14658 \begin_layout Standard
14659 Koma-Script文書クラスを\SpecialChar LyX
14660 上に表示する上で,\SpecialChar LyX
14661 の内部処理が若干の問題を生じめます.
14662 \end_layout
14663
14664 \begin_layout Itemize
14665
14666 \family sans
14667
14668 \family default
14669 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14670 \family sans
14671 Counter_Chapter
14672 \family default
14673 ラベル型に対する\SpecialChar LyX
14674 の内部処理が原因です.
14675 \end_layout
14676
14677 \begin_layout Itemize
14678
14679 \family sans
14680 章(addchap)
14681 \family default
14682
14683 \family sans
14684 節(addsec)
14685 \family default
14686 環境の見出しは,「本当の」\SpecialChar LaTeX
14687 の目次には追加されますが,\SpecialChar LyX
14688 の目次(
14689 \family sans
14690 移動
14691 \family default
14692 メニュー)には追加されません.
14693 \end_layout
14694
14695 \begin_layout Itemize
14696
14697 \emph on
14698 letter
14699 \emph default
14700 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14701 コマンドは必要ありません.しかし,
14702 \family sans
14703 文書\SpecialChar menuseparator
14704 設定
14705 \family default
14706 ダイアログでは,対応するラジオボタンは
14707 \family sans
14708 字下げ
14709 \family default
14710 に設定されています.
14711 \family sans
14712 垂直スペース
14713 \family default
14714 は,隙間を空けるために,文書に\SpecialChar LaTeX
14715 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
14716 \end_layout
14717
14718 \begin_layout Section
14719 Memoir
14720 \end_layout
14721
14722 \begin_layout Standard
14723
14724 \noun on
14725 Jürgen Spitzmüller
14726 \noun default
14727
14728 \end_layout
14729
14730 \begin_layout Subsection
14731 概観
14732 \end_layout
14733
14734 \begin_layout Standard
14735 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
14736 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
14737 す(以下参照).
14738 \end_layout
14739
14740 \begin_layout Standard
14741 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
14742 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
14743 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
14744 は,これらすべての素晴らしい機能をネイティブでサポ
14745 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
14746 \begin_inset Foot
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 もし提案があれば,ぜひ
14751 \begin_inset Flex URL
14752 status collapsed
14753
14754 \begin_layout Plain Layout
14755
14756 lyx-devel@lists.lyx.org
14757 \end_layout
14758
14759 \end_inset
14760
14761 までお送り下さい.
14762 \end_layout
14763
14764 \end_inset
14765
14766 ,\SpecialChar LyX
14767 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
14768 コマンド(\SpecialChar TeX
14769 コード
14770 \begin_inset Foot
14771 status collapsed
14772
14773 \begin_layout Plain Layout
14774 【参考】詳細は,第
14775 \begin_inset CommandInset ref
14776 LatexCommand ref
14777 reference "sec:TeXコードを挿入する"
14778
14779 \end_inset
14780
14781 節参照.
14782 \end_layout
14783
14784 \end_inset
14785
14786 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
14787 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
14788 は,Memoirクラスの詳しい取扱説明書
14789 \begin_inset Foot
14790 status collapsed
14791
14792 \begin_layout Plain Layout
14793 【参考】
14794 \begin_inset Flex URL
14795 status collapsed
14796
14797 \begin_layout Plain Layout
14798
14799 CTAN:/macros/latex/memoir/memman.pdf
14800 \end_layout
14801
14802 \end_inset
14803
14804
14805 \end_layout
14806
14807 \end_inset
14808
14809 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
14810 た用例となっています.
14811 \end_layout
14812
14813 \begin_layout Subsection
14814 基本的な機能と制約
14815 \end_layout
14816
14817 \begin_layout Standard
14818 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
14819 \end_layout
14820
14821 \begin_layout Description
14822 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
14823 \end_layout
14824
14825 \begin_layout Description
14826 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
14827 が混乱させられます
14828 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
14829 \family sans
14830 文書\SpecialChar menuseparator
14831 設定\SpecialChar menuseparator
14832 ページレイアウト
14833 \family default
14834 参照).これらを章題ページに使用したい場合には,コマンド
14835 \family typewriter
14836
14837 \backslash
14838 chapterstyle
14839 \family default
14840 を,本文またはプリアンブルに記述する必要があります(例えば,
14841 \family typewriter
14842
14843 \backslash
14844 chapterstyle{companion}
14845 \family default
14846 など).
14847 \end_layout
14848
14849 \begin_layout Description
14850 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
14851 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
14852 では,章や節の始めで
14853 \family sans
14854 挿入\SpecialChar menuseparator
14855 短縮タイトル
14856 \family default
14857 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.\SpecialChar LyX
14858
14859 は,
14860 \family sans
14861 挿入
14862 \family default
14863 メニューから
14864 \family sans
14865 短縮タイトル
14866 \family default
14867 の特定の派生形の形で利用できます.
14868 \end_layout
14869
14870 \begin_layout Description
14871 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
14872 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
14873 \end_layout
14874
14875 \begin_layout Description
14876 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
14877 くない場合には,プリアンブルに
14878 \family typewriter
14879
14880 \backslash
14881 aliaspagestyle{title}{empty}
14882 \family default
14883 と入力してください.
14884 \end_layout
14885
14886 \begin_layout Description
14887 Article: クラスオプション
14888 \emph on
14889 article
14890 \emph default
14891 を用いる(
14892 \family sans
14893 文書\SpecialChar menuseparator
14894 設定\SpecialChar menuseparator
14895 文書クラス\SpecialChar menuseparator
14896 クラスオプション\SpecialChar menuseparator
14897 任意設定
14898 \family default
14899 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
14900 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
14901 \end_layout
14902
14903 \begin_layout Description
14904 Oldfontcommands: \SpecialChar LaTeX
14905 旧2.09版で使用されていた旧いフォントコマンド(
14906 \family typewriter
14907
14908 \backslash
14909 rm
14910 \family default
14911
14912 \family typewriter
14913
14914 \backslash
14915 it
14916 \family default
14917 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
14918 を停止させます.しかし,クラスオプ
14919 ション
14920 \emph on
14921 oldfontcommands
14922 \emph default
14923 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
14924 は停止しなくなります).まだ,多くのパッケージと,
14925 就中多くのBib\SpecialChar TeX
14926 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
14927 \end_layout
14928
14929 \begin_layout Subsection
14930 追加された機能
14931 \end_layout
14932
14933 \begin_layout Standard
14934 \SpecialChar LyX
14935 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
14936 \begin_inset Foot
14937 status collapsed
14938
14939 \begin_layout Plain Layout
14940 \begin_inset Flex URL
14941 status collapsed
14942
14943 \begin_layout Plain Layout
14944
14945 CTAN:/macros/latex/memoir/memman.pdf
14946 \end_layout
14947
14948 \end_inset
14949
14950
14951 \end_layout
14952
14953 \end_inset
14954
14955 を見てください.
14956 \end_layout
14957
14958 \begin_layout Description
14959 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
14960 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
14961 \end_layout
14962
14963 \begin_layout Description
14964 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
14965 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
14966 \end_layout
14967
14968 \begin_layout Description
14969 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
14970 出典:非必須)は,短い線で区切られます.著者(出典)は,
14971 \family sans
14972 挿入\SpecialChar menuseparator
14973 題辞出典
14974 \family default
14975 で入力できます.
14976 \end_layout
14977
14978 \begin_layout Description
14979 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
14980 は,そのうちいくつかしかサポートしていません.詩題はその一つです
14981 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
14982 コードを使用しな
14983 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
14984 ではそれができないためです).
14985 \end_layout
14986
14987 \begin_layout Description
14988 詩題*: 目次に現れない他は詩題と同じです.
14989 \end_layout
14990
14991 \begin_layout Section
14992 Article (mwart)・book (mwbk)・report (mwrep)
14993 \begin_inset Argument status
14994 status collapsed
14995
14996 \begin_layout Plain Layout
14997 The 
14998 \family typewriter
14999 mw
15000 \family default
15001  Classes
15002 \end_layout
15003
15004 \end_inset
15005
15006
15007 \end_layout
15008
15009 \begin_layout Standard
15010
15011 \noun on
15012 Tomasz Luczak
15013 \noun default
15014
15015 \end_layout
15016
15017 \begin_layout Standard
15018 \SpecialChar LyX
15019 文書クラス
15020 \emph on
15021 article (mwart)
15022 \emph default
15023
15024 \emph on
15025 report (mwrep)・book
15026 \emph default
15027  
15028 \emph on
15029 (mwbk)
15030 \emph default
15031 は,それぞれ\SpecialChar LaTeX
15032 文書クラス
15033 \family typewriter
15034 mwart.cls
15035 \family default
15036
15037 \family typewriter
15038 mwrep.cls
15039 \family default
15040
15041 \family typewriter
15042 mwbk.cls
15043 \family default
15044 に対応しています.これらは,標準の
15045 \family typewriter
15046 article.cls
15047 \family default
15048
15049 \family typewriter
15050 report.cls
15051 \family default
15052
15053 \family typewriter
15054 book.cls
15055 \family default
15056 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15057 \end_layout
15058
15059 \begin_layout Standard
15060 基本的な違いは,次の点です.
15061 \end_layout
15062
15063 \begin_layout Itemize
15064 付番のない見出し(
15065 \family sans
15066 節*
15067 \family default
15068 などの星付き)も目次に加えられます.
15069 \end_layout
15070
15071 \begin_layout Itemize
15072 以下のページスタイルの追加
15073 \end_layout
15074
15075 \begin_deeper
15076 \begin_layout Description
15077 uheadings 分離線付きヘッダ
15078 \end_layout
15079
15080 \begin_layout Description
15081 myheadings 
15082 \family typewriter
15083
15084 \backslash
15085 markright
15086 \family default
15087 コマンドおよび
15088 \family typewriter
15089
15090 \backslash
15091 markboth
15092 \family default
15093 コマンドで設定するカスタムヘッダ
15094 \end_layout
15095
15096 \begin_layout Description
15097 myuheadings 分離線付きカスタムヘッダ
15098 \end_layout
15099
15100 \begin_layout Description
15101 outer ページの外側にページ番号
15102 \end_layout
15103
15104 \end_deeper
15105 \begin_layout Itemize
15106 オプション
15107 \end_layout
15108
15109 \begin_deeper
15110 \begin_layout Description
15111 rmheadings セリフ体見出し — 既定
15112 \end_layout
15113
15114 \begin_layout Description
15115 sfheadings サンセリフ体見出し
15116 \end_layout
15117
15118 \begin_layout Description
15119 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15120 \end_layout
15121
15122 \begin_layout Description
15123 titleauthor タイトルページは,タイトル・著者名の順で配置
15124 \end_layout
15125
15126 \begin_layout Description
15127 withmarginpar ページ上に余白のための場所を確保
15128 \end_layout
15129
15130 \end_deeper
15131 \begin_layout Section
15132 Paper
15133 \end_layout
15134
15135 \begin_layout Standard
15136
15137 \family sans
15138 paper
15139 \family default
15140 文書クラスは標準
15141 \family sans
15142 article
15143 \family default
15144 クラスの代替となるものです.これは
15145 \family sans
15146 同様の
15147 \family default
15148 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15149 \end_layout
15150
15151 \begin_layout Section
15152 Rev\SpecialChar TeX
15153 4
15154 \end_layout
15155
15156 \begin_layout Standard
15157 by 
15158 \noun on
15159 Amir Karger
15160 \end_layout
15161
15162 \begin_layout Standard
15163 \begin_inset VSpace bigskip
15164 \end_inset
15165
15166
15167 \end_layout
15168
15169 \begin_layout Standard
15170 \noindent
15171
15172 \family sans
15173 Revtex
15174 \begin_inset space ~
15175 \end_inset
15176
15177 4
15178 \family default
15179 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15180  4.0(1999年5月の
15181 \begin_inset Formula $\beta$
15182 \end_inset
15183
15184 リリース)クラスで動作します.
15185 \end_layout
15186
15187 \begin_layout Standard
15188 \SpecialChar LyX
15189 には,Rev\SpecialChar TeX
15190  3.1で動作する
15191 \family sans
15192 Revtex
15193 \family default
15194 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15195  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15196 は\SpecialChar LaTeX2e
15197 を必要とすることから,第3.1版は\SpecialChar LyX
15198 とうまく
15199 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15200  4.0は,\SpecialChar LaTeX2e
15201 で素直に動作するようにデザインされているので,\SpecialChar LyX
15202
15203 \family sans
15204 Rev\SpecialChar TeX
15205
15206 \begin_inset space ~
15207 \end_inset
15208
15209 4
15210 \family default
15211 テキストクラスの組で使用するのは,たいへん簡単です.
15212 \end_layout
15213
15214 \begin_layout Standard
15215 この取扱説明書は,Rev\SpecialChar TeX
15216  4.0の説明書の
15217 \emph on
15218 補完
15219 \emph default
15220 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15221 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15222 します.
15223 \end_layout
15224
15225 \begin_layout Subsection
15226 導入
15227 \end_layout
15228
15229 \begin_layout Standard
15230 Rev\SpecialChar TeX
15231  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15232  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15233  4 Web
15234  Site 
15235 \begin_inset Flex URL
15236 status collapsed
15237
15238 \begin_layout Plain Layout
15239
15240 http://publish.aps.org/revtex4/
15241 \end_layout
15242
15243 \end_inset
15244
15245 から入手することができます.これを\SpecialChar LaTeX
15246 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15247 ィレクトリ)で簡単なRev\SpecialChar TeX
15248  4文書を \SpecialChar LaTeX
15249 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15250 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15251 4テキストクラスが使用
15252 できるようになるはずです.
15253 \end_layout
15254
15255 \begin_layout Standard
15256 使い始めるには,
15257 \family typewriter
15258 tex2lyx
15259 \family default
15260 を使ってRev\SpecialChar TeX
15261  4文書を読み込むか,またはひな型ディレクトリにある
15262 \family sans
15263 Revtex
15264 \begin_inset space ~
15265 \end_inset
15266
15267 4
15268 \family default
15269 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15270 \end_layout
15271
15272 \begin_layout Subsection
15273 プリアンブルに関すること
15274 \end_layout
15275
15276 \begin_layout Standard
15277
15278 \family typewriter
15279
15280 \backslash
15281 documentclass
15282 \family default
15283 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15284 \family sans
15285 文書\SpecialChar menuseparator
15286 設定\SpecialChar menuseparator
15287 文書クラス
15288 \family default
15289
15290 \family sans
15291 クラスオプション
15292 \family default
15293 フィールドに入れます.Rev\SpecialChar TeX
15294 では,少なくとも一つの非必須引数が必要なことに注意してください.
15295 \end_layout
15296
15297 \begin_layout Standard
15298
15299 \family typewriter
15300
15301 \backslash
15302 draft
15303 \family default
15304 など他のプリアンブルは,他のクラス同様,
15305 \family sans
15306 文書\SpecialChar menuseparator
15307 設定\SpecialChar menuseparator
15308 \SpecialChar LaTeX
15309 プリアンブル
15310 \family default
15311 に入れてください.
15312 \end_layout
15313
15314 \begin_layout Subsection
15315 レイアウト
15316 \end_layout
15317
15318 \begin_layout Standard
15319 レイアウトは,基本的にRev\SpecialChar TeX
15320 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15321 \family typewriter
15322
15323 \backslash
15324 email{}
15325 \family default
15326 に対応しています.(少なくともRev\SpecialChar TeX
15327  4.0 Beta現在では)
15328 \family sans
15329 住所
15330 \family default
15331
15332 \family sans
15333 所属
15334 \family default
15335 はまったく同じものなので,両方を使う必要はありません
15336 \begin_inset Foot
15337 status collapsed
15338
15339 \begin_layout Plain Layout
15340 ついでながら,
15341 \family typewriter
15342 tex2lyx
15343 \family default
15344 は両方とも対応しているので,
15345 \family typewriter
15346
15347 \backslash
15348 address
15349 \family default
15350
15351 \family typewriter
15352
15353 \backslash
15354 affiliation
15355 \family default
15356 のどちらも翻訳することができます.
15357 \end_layout
15358
15359 \end_inset
15360
15361
15362 \end_layout
15363
15364 \begin_layout Subsection
15365 重要な注意
15366 \end_layout
15367
15368 \begin_layout Standard
15369 Rev\SpecialChar TeX
15370  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15371 ではさらに気をつけなくてはなりません.
15372 \end_layout
15373
15374 \begin_layout Standard
15375 Rev\SpecialChar TeX
15376 では,
15377 \family typewriter
15378
15379 \backslash
15380 thanks
15381 \family default
15382 コマンドは,
15383 \family typewriter
15384
15385 \backslash
15386 author
15387 \family default
15388 コマンドの
15389 \emph on
15390 外側
15391 \emph default
15392 に来なくてはなりません.\SpecialChar LyX
15393 では,独立した
15394 \family sans
15395 感謝
15396 \family default
15397 レイアウトがこの働きをします.直接
15398 \family sans
15399 ,著者
15400 \family default
15401 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15402  4の取扱説明書をご覧ください.
15403 \end_layout
15404
15405 \begin_layout Standard
15406 また,
15407 \family sans
15408 著者電子メール
15409 \family default
15410
15411 \family sans
15412 著者URL・感謝(thanks)
15413 \family default
15414 レイアウトは,
15415 \family sans
15416 著者
15417 \family default
15418 レイアウトと
15419 \family sans
15420 住所(
15421 \family default
15422 または同等の
15423 \family sans
15424 所属
15425 \family default
15426 )レイアウトの間に置かなければなりません.
15427 \family sans
15428 感謝(thanks)
15429 \family default
15430
15431 \family sans
15432 住所
15433 \family default
15434 の後に置いてしまうと,\SpecialChar LaTeX
15435 はコンパイルに失敗します.
15436 \end_layout
15437
15438 \begin_layout Section
15439 Springer学術誌(
15440 \family sans
15441 svjour)
15442 \end_layout
15443
15444 \begin_layout Standard
15445
15446 \noun on
15447 Martin Vermeer
15448 \noun default
15449
15450 \end_layout
15451
15452 \begin_layout Subsection
15453 説明
15454 \end_layout
15455
15456 \begin_layout Standard
15457 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15458 \begin_inset Flex URL
15459 status collapsed
15460
15461 \begin_layout Plain Layout
15462
15463 http://www.springer.de/author/tex/help-journals.html
15464 \end_layout
15465
15466 \end_inset
15467
15468 に必要なクラスファイル(\SpecialChar LaTeX2e
15469 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15470 \family typewriter
15471 svjour.inc
15472 \family default
15473 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15474 \family typewriter
15475 svjog.layout
15476 \family default
15477 など)から取り込むことができます.
15478 \end_layout
15479
15480 \begin_layout Standard
15481 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15482 \family typewriter
15483 svjog.layout
15484 \family default
15485 に書かれている指示に従って,自作の
15486 \family typewriter
15487 sv
15488 \family default
15489 <学術誌名>
15490 \family typewriter
15491 .layout
15492 \family default
15493 を書くだけで良いことを意味します.
15494 \end_layout
15495
15496 \begin_layout Standard
15497 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15498 \family typewriter
15499 svjour
15500 \family default
15501
15502 \family typewriter
15503 svjog
15504 \family default
15505 は,標準\SpecialChar LyX
15506 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15507 を再設定した後(teTeXの場合は,必
15508 要に応じてroot権限で
15509 \family typewriter
15510 texhash
15511 \family default
15512 を実行します),\SpecialChar LyX
15513 を環境構成すれば,動作するはずです.
15514 \end_layout
15515
15516 \begin_layout Subsection
15517 新スタイル
15518 \end_layout
15519
15520 \begin_layout Standard
15521 多くの定理環境 — 
15522 \family sans
15523 主張
15524 \family default
15525
15526 \family sans
15527 推論
15528 \family default
15529 ・\SpecialChar ldots
15530
15531 \family sans
15532 定理
15533 \family default
15534
15535 \end_layout
15536
15537 \begin_layout Standard
15538
15539 \family sans
15540 ヘッドノート
15541 \family default
15542
15543 \family sans
15544 献呈
15545 \family default
15546
15547 \family sans
15548 サブタイトル・ヘッダ用\SpecialChar LaTeX
15549 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15550 ement)
15551 \family default
15552 .詳しくは Springerのクラスファイルの説明書を読んでください.
15553 \end_layout
15554
15555 \begin_layout Subsection
15556 サポートしているジャーナル
15557 \end_layout
15558
15559 \begin_layout Itemize
15560
15561 \emph on
15562 Journal of Geodesy
15563 \emph default
15564
15565 \family typewriter
15566 svjog.layout
15567 \family default
15568  — Martin Vermeer
15569 \end_layout
15570
15571 \begin_layout Itemize
15572
15573 \emph on
15574 Probability Theory and Related Fields
15575 \emph default
15576
15577 \family typewriter
15578 svprobth.layout
15579 \family default
15580  — Jean-Marc Lasgouttes
15581 \end_layout
15582
15583 \begin_layout Standard
15584 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15585 \end_layout
15586
15587 \begin_layout Subsection
15588 Credits
15589 \end_layout
15590
15591 \begin_layout Standard
15592 これらのファイルは,以前の 
15593 \family typewriter
15594 ejour2.layout
15595 \family default
15596 をもとにしています.
15597 \family typewriter
15598 ejour2.layout
15599 \family default
15600 は Springerの\SpecialChar LaTeX
15601  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15602  Lasgouttesのおかげで \SpecialChar LyX
15603 のレイアウトファイルのメカニズムをよりよく理解することができました.
15604 \end_layout
15605
15606 \begin_layout Subsection
15607 バグ
15608 \end_layout
15609
15610 \begin_layout Standard
15611 多分あります.以前の 
15612 \family typewriter
15613 ejour2
15614 \family default
15615 よりは少なくなっているとは思いますが.
15616 \end_layout
15617
15618 \begin_layout Section
15619 Slides別名
15620 \noun on
15621 Sli\SpecialChar TeX
15622
15623 \noun default
15624
15625 \begin_inset Foot
15626 status collapsed
15627
15628 \begin_layout Plain Layout
15629 (訳註)この節の内容は,全般的に古くなっています.
15630 \end_layout
15631
15632 \end_inset
15633
15634
15635 \begin_inset CommandInset label
15636 LatexCommand label
15637 name "sec:slitex"
15638
15639 \end_inset
15640
15641
15642 \end_layout
15643
15644 \begin_layout Standard
15645
15646 \noun on
15647 John Weiss
15648 \noun default
15649
15650 \end_layout
15651
15652 \begin_layout Subsection
15653 はじめに
15654 \end_layout
15655
15656 \begin_layout Standard
15657 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15658 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15659 \family sans
15660 Foil\SpecialChar TeX
15661
15662 \family default
15663 スライドクラスの2つがあります.本節は前者について説明を行います.
15664 \end_layout
15665
15666 \begin_layout Standard
15667 誤解のないように,正しく明確に,もう一度言っておきます.
15668 \end_layout
15669
15670 \begin_layout Standard
15671 \begin_inset VSpace bigskip
15672 \end_inset
15673
15674
15675 \end_layout
15676
15677 \begin_layout Standard
15678 \align center
15679
15680 \size large
15681 本節は文書クラス
15682 \begin_inset Quotes eld
15683 \end_inset
15684
15685
15686 \family sans
15687 transparencies (slides)
15688 \family default
15689
15690 \begin_inset Quotes erd
15691 \end_inset
15692
15693
15694 \emph on
15695 のみ
15696 \emph default
15697 を説明しています.
15698 \end_layout
15699
15700 \begin_layout Standard
15701 \begin_inset VSpace bigskip
15702 \end_inset
15703
15704
15705 \end_layout
15706
15707 \begin_layout Standard
15708
15709 \family sans
15710 「slides (Foil\SpecialChar TeX
15711 )
15712 \family default
15713 」の説明をお探しならば,第
15714 \begin_inset CommandInset ref
15715 LatexCommand ref
15716 reference "sec:foiltex"
15717
15718 \end_inset
15719
15720 節をご覧ください.
15721 \family sans
15722 foils
15723 \family default
15724 クラス「
15725 \family sans
15726 slides (Foil\SpecialChar TeX
15727 )
15728 \family default
15729 」は,実際,本節で説明している既定
15730 \family sans
15731 slides
15732 \family default
15733 クラスよりも良いようです
15734 \begin_inset Foot
15735 status collapsed
15736
15737 \begin_layout Plain Layout
15738 \SpecialChar ldots
15739
15740 \family sans
15741 Foil\SpecialChar TeX
15742
15743 \family default
15744 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
15745 \end_layout
15746
15747 \end_inset
15748
15749
15750 \end_layout
15751
15752 \begin_layout Standard
15753 このクラスは,旧SLI\SpecialChar TeX
15754 パッケージを\SpecialChar LaTeX2e
15755 用に改良したものです.\SpecialChar LaTeX2e
15756 頒布版すべてが,このクラス(以下では単に「
15757 \family sans
15758 slides
15759 \family default
15760 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
15761 \family sans
15762 foils
15763 \family default
15764 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
15765 他のクラスにはできないが
15766 \family sans
15767 slides
15768 \family default
15769 ならばできることもあります.詳しくは以下をお読みください.
15770 \end_layout
15771
15772 \begin_layout Subsection
15773 使い始めるには
15774 \begin_inset CommandInset label
15775 LatexCommand label
15776 name "sec:slidesetup"
15777
15778 \end_inset
15779
15780
15781 \end_layout
15782
15783 \begin_layout Standard
15784 当然ながら,この文書クラスを使用するには,
15785 \family sans
15786 文書\SpecialChar menuseparator
15787 設定
15788 \family default
15789 ダイアログのクラスリストから「
15790 \family sans
15791 transparencies (slides)
15792 \family default
15793 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
15794 \end_layout
15795
15796 \begin_layout Itemize
15797
15798 \family sans
15799 用紙方向
15800 \family default
15801
15802 \family sans
15803 二段組文書
15804 \family default
15805 の各オプションは,あえて変更する必要はありません.これらのオプションは,
15806 \family sans
15807 slides
15808 \family default
15809 クラスではサポートされていないので,効果がありません.
15810 \end_layout
15811
15812 \begin_layout Itemize
15813
15814 \family sans
15815 ヘディング様式
15816 \family default
15817 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
15818 \end_layout
15819
15820 \begin_deeper
15821 \begin_layout Description
15822 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
15823 \end_layout
15824
15825 \begin_layout Description
15826 設定(headings)
15827 \family sans
15828  プレーン(plain)
15829 \family default
15830 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
15831 \end_layout
15832
15833 \begin_layout Description
15834 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
15835 \end_layout
15836
15837 \end_deeper
15838 \begin_layout Itemize
15839
15840 \family sans
15841 slides
15842 \family default
15843 クラスには,もう一つ
15844 \family typewriter
15845 clock
15846 \family default
15847 というオプションがあります.これを使用するには,
15848 \family sans
15849 クラスオプション
15850 \family default
15851 に「
15852 \family typewriter
15853 clock
15854 \family default
15855 」と入力してください.
15856 \end_layout
15857
15858 \begin_deeper
15859 \begin_layout Standard
15860 このオプションを使うと,
15861 \family sans
15862 注釈
15863 \family default
15864 にタイムマーカーを加えることができます.詳細は,第
15865 \begin_inset CommandInset ref
15866 LatexCommand ref
15867 reference "sec:スライド注釈"
15868
15869 \end_inset
15870
15871 節をご覧ください.
15872 \end_layout
15873
15874 \end_deeper
15875 \begin_layout Standard
15876
15877 \family sans
15878 slides
15879 \family default
15880 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
15881 \family typewriter
15882 slides.lyx
15883 \family default
15884 」を使用することもできます(新規ファイルを開く際に
15885 \family sans
15886 ファイル\SpecialChar menuseparator
15887 新規(ひな型使用)
15888 \family default
15889 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
15890 \end_layout
15891
15892 \begin_layout Subsection
15893 段落環境
15894 \end_layout
15895
15896 \begin_layout Subsubsection
15897
15898 \family sans
15899 サポートされている環境
15900 \end_layout
15901
15902 \begin_layout Standard
15903 新しく
15904 \family sans
15905 slides
15906 \family default
15907 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
15908 \family sans
15909 サンセリフ体
15910 \family default
15911 フォントの
15912 \family sans
15913 極大
15914 \family default
15915 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
15916 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
15917 \end_layout
15918
15919 \begin_layout Standard
15920 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
15921 ます.これは,
15922 \family sans
15923 slides
15924 \family default
15925 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
15926 \end_layout
15927
15928 \begin_layout Itemize
15929
15930 \family sans
15931 標準
15932 \end_layout
15933
15934 \begin_layout Itemize
15935
15936 \family sans
15937 箇条書き(記号)
15938 \end_layout
15939
15940 \begin_layout Itemize
15941
15942 \family sans
15943 箇条書き(連番)
15944 \end_layout
15945
15946 \begin_layout Itemize
15947
15948 \family sans
15949 箇条書き(記述)
15950 \end_layout
15951
15952 \begin_layout Itemize
15953
15954 \family sans
15955 箇条書き(一覧)
15956 \end_layout
15957
15958 \begin_layout Itemize
15959
15960 \family sans
15961 引用(字下げあり)
15962 \end_layout
15963
15964 \begin_layout Itemize
15965
15966 \family sans
15967 引用(字下げなし)
15968 \end_layout
15969
15970 \begin_layout Itemize
15971
15972 \family sans
15973 詩句
15974 \end_layout
15975
15976 \begin_layout Itemize
15977
15978 \family sans
15979 キャプション
15980 \end_layout
15981
15982 \begin_layout Itemize
15983
15984 \family sans
15985 \SpecialChar LyX
15986 コード
15987 \end_layout
15988
15989 \begin_layout Standard
15990 これ以外の標準的な環境,例えば節見出し用の環境などは
15991 \family sans
15992 slides
15993 \family default
15994 クラスでは使えません.
15995 \end_layout
15996
15997 \begin_layout Standard
15998 一方,以下の新しい環境があります.
15999 \end_layout
16000
16001 \begin_layout Itemize
16002
16003 \family sans
16004 スライド
16005 \end_layout
16006
16007 \begin_layout Itemize
16008
16009 \family sans
16010 オーバーレイ
16011 \end_layout
16012
16013 \begin_layout Itemize
16014
16015 \family sans
16016 注釈
16017 \end_layout
16018
16019 \begin_layout Itemize
16020
16021 \family sans
16022 不可視文
16023 \end_layout
16024
16025 \begin_layout Itemize
16026
16027 \family sans
16028 可視文
16029 \end_layout
16030
16031 \begin_layout Standard
16032 これら5つの環境は,\SpecialChar LyX
16033 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16034 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16035 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16036 マジック」が必要になります.
16037 \end_layout
16038
16039 \begin_layout Subsubsection
16040 新環境の癖
16041 \begin_inset CommandInset label
16042 LatexCommand label
16043 name "sec:スライドの癖"
16044
16045 \end_inset
16046
16047
16048 \end_layout
16049
16050 \begin_layout Standard
16051 5つの新しい環境にはすべて,\SpecialChar LyX
16052 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16053 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16054 \family sans
16055 スライド
16056 \family default
16057 環境は『
16058 \emph on
16059 ユーザーの手引き
16060 \emph default
16061 』で述べられているような段落環境ではなくなっています.
16062 \end_layout
16063
16064 \begin_layout Standard
16065
16066 \family sans
16067 スライド
16068 \family default
16069
16070 \family sans
16071 オーバーレイ
16072 \family default
16073
16074 \family sans
16075 注釈
16076 \family default
16077 は「疑似環境」だとお考えください.これらは節見出しや「
16078 \family sans
16079 キャプション
16080 \family default
16081 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16082 \family sans
16083 不可視文
16084 \family default
16085
16086 \family sans
16087 可視文
16088 \family default
16089 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16090 \end_layout
16091
16092 \begin_layout Standard
16093
16094 \family sans
16095 スライド
16096 \family default
16097
16098 \family sans
16099 オーバーレイ
16100 \family default
16101
16102 \family sans
16103 注釈
16104 \family default
16105
16106 \family sans
16107 不可視文
16108 \family default
16109
16110 \family sans
16111 可視文
16112 \family default
16113 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16114 \family sans
16115 スライド
16116 \family default
16117
16118 \family sans
16119 オーバーレイ
16120 \family default
16121
16122 \family sans
16123 注釈
16124 \family default
16125
16126 \family sans
16127 不可視文
16128 \family default
16129
16130 \family sans
16131 可視文
16132 \family default
16133 では,まったく意味がなく,\SpecialChar LyX
16134 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16135 \end_layout
16136
16137 \begin_layout Standard
16138 長めのラベルの後に文章を入れる
16139 \emph on
16140 必要は
16141 \emph default
16142 まったく
16143 \emph on
16144 ない
16145 \emph default
16146 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16147
16148 \family sans
16149 Return
16150 \family default
16151 を押してください.
16152 \end_layout
16153
16154 \begin_layout Standard
16155 一方,説明文を入れたくない場合には,\SpecialChar LyX
16156 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16157 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16158 こで以下のようにしてください.
16159 \end_layout
16160
16161 \begin_layout Itemize
16162 新しい
16163 \family sans
16164 スライド
16165 \family default
16166
16167 \family sans
16168 オーバーレイ
16169 \family default
16170
16171 \family sans
16172 注釈
16173 \family default
16174
16175 \family sans
16176 不可視文
16177 \family default
16178
16179 \family sans
16180 可視文
16181 \family default
16182
16183 \emph on
16184 中に入れる
16185 \emph default
16186 文章を入力してください.
16187 \end_layout
16188
16189 \begin_layout Itemize
16190 段落の先頭に移動します.
16191 \end_layout
16192
16193 \begin_layout Itemize
16194 次に
16195 \family sans
16196 Return
16197 \family default
16198 を押します.
16199 \end_layout
16200
16201 \begin_layout Itemize
16202 最後に,この新しい空の段落を
16203 \family sans
16204 スライド
16205 \family default
16206
16207 \family sans
16208 オーバーレイ
16209 \family default
16210
16211 \family sans
16212 注釈
16213 \family default
16214
16215 \family sans
16216 不可視文
16217 \family default
16218
16219 \family sans
16220 可視文
16221 \family default
16222 に変更します.
16223 \end_layout
16224
16225 \begin_layout Standard
16226 将来の\SpecialChar LyX
16227 では,このような癖が解決されることを祈っています\SpecialChar ldots
16228
16229 \begin_inset Foot
16230 status collapsed
16231
16232 \begin_layout Plain Layout
16233 (訳註)ここの記述は古くなっています.
16234 \end_layout
16235
16236 \end_inset
16237
16238
16239 \end_layout
16240
16241 \begin_layout Subsection
16242
16243 \family sans
16244 スライド
16245 \family default
16246
16247 \family sans
16248 オーバーレイ
16249 \family default
16250
16251 \family sans
16252 注釈で発表用のスライドを作る
16253 \end_layout
16254
16255 \begin_layout Subsubsection
16256
16257 \family sans
16258 スライド
16259 \family default
16260 環境を使う
16261 \end_layout
16262
16263 \begin_layout Standard
16264 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16265 料を準備するうえで
16266 \family sans
16267 slides
16268 \family default
16269 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16270 の哲学です).
16271 \end_layout
16272
16273 \begin_layout Standard
16274
16275 \family sans
16276 スライド
16277 \family default
16278 環境を選択すれば(方法は第
16279 \begin_inset CommandInset ref
16280 LatexCommand ref
16281 reference "sec:スライドの癖"
16282
16283 \end_inset
16284
16285 節参照のこと),\SpecialChar LyX
16286 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16287 環境は,すべて新規スライドに入ります.簡単ですよね.
16288 \end_layout
16289
16290 \begin_layout Standard
16291 Slidesは,おそらく\SpecialChar LyX
16292 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16293 \family sans
16294 段落レイアウト
16295 \family default
16296 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16297 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16298 ,一枚に収まらないスライドでは,
16299 \family sans
16300 オーバーレイ
16301 \family default
16302 を使用すると干渉する恐れがあります.
16303 \end_layout
16304
16305 \begin_layout Standard
16306
16307 \family sans
16308 オーバーレイ
16309 \family default
16310 環境と
16311 \family sans
16312 注釈
16313 \family default
16314 環境も,
16315 \family sans
16316 スライド
16317 \family default
16318 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16319 \noun on
16320 新規オーバーレイ
16321 \noun default
16322 :」ないし「
16323 \noun on
16324 新規注釈:
16325 \noun default
16326 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16327 \end_layout
16328
16329 \begin_layout Standard
16330
16331 \family sans
16332 スライド
16333 \family default
16334 と同様に,
16335 \family sans
16336 オーバーレイ
16337 \family default
16338
16339 \family sans
16340 注釈
16341 \family default
16342 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16343 \family sans
16344 注釈
16345 \family default
16346
16347 \family sans
16348 オーバーレイ
16349 \family default
16350 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16351 \end_layout
16352
16353 \begin_layout Subsubsection
16354
16355 \family sans
16356 スライドでオーバーレイを使用する
16357 \end_layout
16358
16359 \begin_layout Standard
16360
16361 \family sans
16362 オーバーレイ
16363 \family default
16364 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16365 \family sans
16366 スライド
16367 \family default
16368 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16369 \family sans
16370 スライド
16371 \family default
16372 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16373 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16374 \family sans
16375 オーバーレイ
16376 \family default
16377 環境を使えば,もっと楽になります.
16378 \end_layout
16379
16380 \begin_layout Standard
16381
16382 \family sans
16383 オーバーレイ
16384 \family default
16385 は,「親」
16386 \family sans
16387 スライド
16388 \family default
16389 のページ番号を引継ぎ,その後に「
16390 \family typewriter
16391 -a
16392 \family default
16393 」を付け加えます
16394 \begin_inset Foot
16395 status collapsed
16396
16397 \begin_layout Plain Layout
16398 想像できるように,複数のオーバーレイがあれば,「
16399 \family typewriter
16400 -a
16401 \family default
16402 」「
16403 \family typewriter
16404 -b
16405 \family default
16406 」「
16407 \family typewriter
16408 -c
16409 \family default
16410 」などが親スライドのページ番号に付け加えられます.
16411 \end_layout
16412
16413 \end_inset
16414
16415 .当然のことながら,
16416 \family sans
16417 スライド
16418 \family default
16419
16420 \family sans
16421 オーバーレイ
16422 \family default
16423 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16424 \family sans
16425 オーバーレイ
16426 \family default
16427
16428 \family sans
16429 スライド
16430 \family default
16431 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16432 では,
16433 \family sans
16434 オーバーレイ
16435 \family default
16436 のラベルを
16437 \family sans
16438 スライド
16439 \family default
16440 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16441 \family sans
16442 オーバーレイ
16443 \family default
16444 と親
16445 \family sans
16446 スライド
16447 \family default
16448 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16449 \end_layout
16450
16451 \begin_layout Standard
16452 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16453 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16454 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16455 \family sans
16456 不可視文
16457 \family default
16458
16459 \family sans
16460 可視文
16461 \family default
16462 を使用する方法があります.
16463 \end_layout
16464
16465 \begin_layout Standard
16466 これらの名前が意味するとおり,
16467 \family sans
16468 不可視文
16469 \family default
16470
16471 \family sans
16472 可視文
16473 \family default
16474 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16475 \begin_inset CommandInset ref
16476 LatexCommand ref
16477 reference "sec:スライドの癖"
16478
16479 \end_inset
16480
16481 節で述べたように,この2つの環境の
16482 \emph on
16483
16484 \emph default
16485 には何も置くことができません.
16486 \family sans
16487 不可視文
16488 \family default
16489 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16490 \family sans
16491 スライド
16492 \family default
16493 (あるいは
16494 \family sans
16495 オーバーレイ
16496 \family default
16497 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16498 \end_layout
16499
16500 \begin_layout Standard
16501
16502 \family sans
16503 可視文
16504 \family default
16505 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16506 \family sans
16507 スライド
16508 \family default
16509
16510 \family sans
16511 オーバーレイ
16512 \family default
16513
16514 \family sans
16515 注釈
16516 \family default
16517 を開始すると,
16518 \family sans
16519 不可視文
16520 \family default
16521 は自動的に終了されることに注意してください.したがって,
16522 \family sans
16523 スライド
16524 \family default
16525 の終わりでは,
16526 \family sans
16527 可視文
16528 \family default
16529 を使用する必要はありません.
16530 \end_layout
16531
16532 \begin_layout Standard
16533 ここまでで,
16534 \family sans
16535 スライド
16536 \family default
16537
16538 \family sans
16539 オーバーレイ
16540 \family default
16541 上で
16542 \family sans
16543 不可視文
16544 \family default
16545
16546 \family sans
16547 可視文
16548 \family default
16549 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16550 \end_layout
16551
16552 \begin_layout Enumerate
16553 メインのスライドか
16554 \family sans
16555 オーバーレイ
16556 \family default
16557 かに関わらず,スライド上に現れるすべてを含んだ
16558 \family sans
16559 スライド
16560 \family default
16561 を作成します.
16562 \end_layout
16563
16564 \begin_layout Enumerate
16565
16566 \family sans
16567 オーバーレイ
16568 \family default
16569 のみに表示するすべての図や段落の前に,
16570 \family sans
16571 不可視文
16572 \family default
16573 環境を挿入し,必要ならば,
16574 \family sans
16575 オーバーレイ
16576 \family default
16577 のみの文章の後に
16578 \family sans
16579 可視文
16580 \family default
16581 環境を挿入します.
16582 \end_layout
16583
16584 \begin_layout Enumerate
16585
16586 \family sans
16587 スライド
16588 \family default
16589 の直後から,
16590 \family sans
16591 オーバーレイ
16592 \family default
16593 を開始します.
16594 \end_layout
16595
16596 \begin_layout Enumerate
16597 この
16598 \family sans
16599 スライド
16600 \family default
16601 の内容を
16602 \family sans
16603 オーバーレイ
16604 \family default
16605 にコピーします.
16606 \end_layout
16607
16608 \begin_layout Enumerate
16609
16610 \family sans
16611 オーバーレイ
16612 \family default
16613 内部の
16614 \family sans
16615 不可視文
16616 \family default
16617 行をすべて
16618 \family sans
16619 不可視文
16620 \family default
16621 に変更し,
16622 \family sans
16623 可視文
16624 \family default
16625
16626 \family sans
16627 不可視文
16628 \family default
16629 に変更します.
16630 \end_layout
16631
16632 \begin_layout Standard
16633 これだけです.これで
16634 \family sans
16635 オーバーレイ
16636 \family default
16637 ができあがりました.
16638 \end_layout
16639
16640 \begin_layout Standard
16641 \SpecialChar LyX
16642  
16643 \family sans
16644 slides
16645 \family default
16646 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16647 実現するためには,\SpecialChar LaTeX
16648 コードを埋め込む必要があります
16649 \begin_inset Foot
16650 status collapsed
16651
16652 \begin_layout Plain Layout
16653 このコマンドは,
16654 \end_layout
16655
16656 \begin_layout Itemize
16657
16658 \family typewriter
16659 {
16660 \backslash
16661 invisible \SpecialChar ldots
16662  }
16663 \end_layout
16664
16665 \begin_layout Itemize
16666
16667 \family typewriter
16668 {
16669 \backslash
16670 visible \SpecialChar ldots
16671  }
16672 \end_layout
16673
16674 \begin_layout Plain Layout
16675 \SpecialChar ldots
16676 のような形となり,\SpecialChar TeX
16677 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16678 \family typewriter
16679
16680 \backslash
16681 invisible
16682 \family default
16683 ないし
16684 \family typewriter
16685
16686 \backslash
16687 visible
16688 \family default
16689 コマンドの後ろ)に入れます.\SpecialChar TeX
16690 としてマークする方法がわからない場合は,
16691 \emph on
16692 ユーザーの手引き
16693 \emph default
16694 をご参照ください.
16695 \end_layout
16696
16697 \end_inset
16698
16699
16700 \end_layout
16701
16702 \begin_layout Subsubsection
16703
16704 \family sans
16705 スライドで注釈を使う
16706 \family default
16707
16708 \begin_inset CommandInset label
16709 LatexCommand label
16710 name "sec:スライド注釈"
16711
16712 \end_inset
16713
16714
16715 \end_layout
16716
16717 \begin_layout Standard
16718
16719 \family sans
16720 オーバーレイ
16721 \family default
16722 と同様,
16723 \family sans
16724 注釈
16725 \family default
16726 も「親」
16727 \family sans
16728 スライド
16729 \family default
16730 に関連付けられています.ここでも\SpecialChar LyX
16731
16732 \family sans
16733 スライド
16734 \family default
16735 クラスは視覚的な効果を与えています.
16736 \family sans
16737 注釈
16738 \family default
16739 のラベルは
16740 \family sans
16741 スライド
16742 \family default
16743 よりも短く(オーバーレイのラベルよりも長いですが),
16744 \family sans
16745 オーバーレイ
16746 \family default
16747 のラベルと同様,派手な赤紫色です.加えて,印刷した
16748 \family sans
16749 注釈
16750 \family default
16751 には,「親」スライドのページ番号に「
16752 \family typewriter
16753 -
16754 \family default
16755 1」「
16756 \family typewriter
16757 -
16758 \family default
16759 2」「
16760 \family typewriter
16761 -
16762 \family default
16763 3」等を付けたページ番号が付けられます.1つの
16764 \family sans
16765 スライド
16766 \family default
16767 には,複数の
16768 \family sans
16769 注釈
16770 \family default
16771 を関連付けることができるので,
16772 \family sans
16773 スライド
16774 \family default
16775
16776 \family sans
16777 オーバーレイ
16778 \family default
16779 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
16780 \end_layout
16781
16782 \begin_layout Standard
16783
16784 \family sans
16785 注釈
16786 \family default
16787 の目的は明らかです.
16788 \family sans
16789 スライド
16790 \family default
16791 に関して付け加えたいことを書き留めておくことです.特定の
16792 \family sans
16793 スライド
16794 \family default
16795 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
16796
16797 \family sans
16798 スライド
16799 \family default
16800 クラスは,
16801 \noun on
16802 Sli
16803 \noun default
16804 \SpecialChar TeX
16805 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
16806 コードを使用することに頼らなくてはなりません.
16807 \end_layout
16808
16809 \begin_layout Standard
16810 タイムマーカを使用するには,クラスオプション「
16811 \family typewriter
16812 clock
16813 \family default
16814 」を追加指定する必要があります(第
16815 \begin_inset CommandInset ref
16816 LatexCommand ref
16817 reference "sec:slidesetup"
16818
16819 \end_inset
16820
16821 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
16822 \family sans
16823 注釈
16824 \family default
16825 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
16826 コマンド「
16827 \family typewriter
16828
16829 \backslash
16830 settime{}
16831 \family default
16832 」および「
16833 \family typewriter
16834
16835 \backslash
16836 addtime{}
16837 \family default
16838 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
16839 \family typewriter
16840
16841 \backslash
16842 settime{}
16843 \family default
16844 」は,タイムマーカを特定の時間に設定し,「
16845 \family typewriter
16846
16847 \backslash
16848 addtime{}
16849 \family default
16850 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
16851 \family sans
16852 注釈
16853 \family default
16854 を用いれば,特定の
16855 \family sans
16856 スライド
16857 \family default
16858 にどれだけの時間をかけるのか忘れないでいられます.
16859 \end_layout
16860
16861 \begin_layout Standard
16862 最後に,説明しておくべき機能がもう一つあります.当然ながら,
16863 \family sans
16864 スライド
16865 \family default
16866
16867 \family sans
16868 オーバーレイ
16869 \family default
16870 はすべてスライドに,
16871 \family sans
16872 注釈
16873 \family default
16874 はすべて普通の紙に印刷したいはずです.しかしながら,
16875 \family sans
16876 注釈
16877 \family default
16878 は関連付けられた親スライドの直後に
16879 \emph on
16880 来なくてはなりません
16881 \emph default
16882 .ユーザーはどうしたら良いのでしょうか.
16883 \end_layout
16884
16885 \begin_layout Standard
16886 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16887 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
16888 \family typewriter
16889
16890 \backslash
16891 onlyslides{
16892 \backslash
16893 slides}
16894 \family default
16895 」は,出力に
16896 \family sans
16897 スライド
16898 \family default
16899
16900 \family sans
16901 オーバーレイ
16902 \family default
16903 のみが含まれるようにするものです.同様に,「
16904 \family typewriter
16905
16906 \backslash
16907 onlynotes{
16908 \backslash
16909 notes}
16910 \family default
16911 」は
16912 \family sans
16913 注釈
16914 \family default
16915 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
16916 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
16917 らば,まず
16918 \family typewriter
16919
16920 \backslash
16921 onlyslides{
16922 \backslash
16923 slides}
16924 \family default
16925 のコメントを外して,現ファイル名に「*
16926 \family typewriter
16927 -slides
16928 \family default
16929 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
16930 \family typewriter
16931
16932 \backslash
16933 onlynotes{
16934 \backslash
16935 notes
16936 \family default
16937 }」のコメントを外して,これを「
16938 \family typewriter
16939 *-notes.ps
16940 \family default
16941 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
16942 \end_layout
16943
16944 \begin_layout Standard
16945
16946 \family typewriter
16947
16948 \backslash
16949 onlyslides{}
16950 \family default
16951 」および「
16952 \family typewriter
16953
16954 \backslash
16955 onlynotes{}
16956 \family default
16957 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
16958 の良書をご覧ください.
16959 \end_layout
16960
16961 \begin_layout Subsection
16962
16963 \family sans
16964 slides
16965 \family default
16966 クラスのひな型ファイル
16967 \end_layout
16968
16969 \begin_layout Standard
16970
16971 \family sans
16972 slides
16973 \family default
16974 クラス用のひな型ファイルとして「
16975 \family typewriter
16976 slides.lyx
16977 \family default
16978 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
16979 \family sans
16980 ファイル\SpecialChar menuseparator
16981 新規(ひな型使用)
16982 \family default
16983 メニューを選択してください.すると新規ファイルには,
16984 \family sans
16985 スライド
16986 \family default
16987
16988 \family sans
16989 オーバーレイ
16990 \family default
16991
16992 \family sans
16993 注釈
16994 \family default
16995 の組が,例として含まれており,
16996 \family sans
16997 スライド
16998 \family default
16999
17000 \family sans
17001 オーバーレイ
17002 \family default
17003 には,さらに
17004 \family sans
17005 不可視文
17006 \family default
17007
17008 \family sans
17009 可視文
17010 \family default
17011 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
17012 \end_layout
17013
17014 \begin_layout LyX-Code
17015 % Uncomment to print out only slides and overlays
17016 \end_layout
17017
17018 \begin_layout LyX-Code
17019 %
17020 \end_layout
17021
17022 \begin_layout LyX-Code
17023 %
17024 \backslash
17025 onlyslides{
17026 \backslash
17027 slides}
17028 \begin_inset Newline newline
17029 \end_inset
17030
17031  
17032 \end_layout
17033
17034 \begin_layout LyX-Code
17035 % Uncomment to print out only notes
17036 \end_layout
17037
17038 \begin_layout LyX-Code
17039 %
17040 \end_layout
17041
17042 \begin_layout LyX-Code
17043 %
17044 \backslash
17045 onlynotes{
17046 \backslash
17047 notes}
17048 \end_layout
17049
17050 \begin_layout Standard
17051 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17052 の組み込みクラスである「
17053 \noun on
17054 Sli\SpecialChar TeX
17055
17056 \noun default
17057 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17058 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17059 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17060 \family sans
17061 Foils
17062 \family default
17063 クラス(第
17064 \begin_inset CommandInset ref
17065 LatexCommand ref
17066 reference "sec:foiltex"
17067
17068 \end_inset
17069
17070 節参照)や「
17071 \family typewriter
17072 seminar
17073 \family default
17074 」パッケージ(一部の\SpecialChar TeX
17075 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17076 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17077 さい.
17078 \end_layout
17079
17080 \begin_layout Chapter
17081 ソフトウェアを追加する必要がある \SpecialChar LyX
17082 機能
17083 \end_layout
17084
17085 \begin_layout Section
17086 \SpecialChar TeX
17087 のチェック
17088 \end_layout
17089
17090 \begin_layout Standard
17091
17092 \noun on
17093 Asger Alstrup
17094 \noun default
17095
17096 \end_layout
17097
17098 \begin_layout Subsection
17099 はじめに
17100 \end_layout
17101
17102 \begin_layout Standard
17103
17104 \family typewriter
17105 chktex
17106 \family default
17107 プログラムが導入されていると
17108 \begin_inset Foot
17109 status collapsed
17110
17111 \begin_layout Plain Layout
17112 \SpecialChar LaTeX
17113 頒布版としてMiK\SpecialChar TeX
17114 を使用している場合には,
17115 \family typewriter
17116 chktex
17117 \family default
17118 はまだ利用可能ではありません.
17119 \end_layout
17120
17121 \end_inset
17122
17123
17124 \family sans
17125 ツール
17126 \family default
17127 メニューの下に,
17128 \family sans
17129 \SpecialChar TeX
17130 構文チェック
17131 \family default
17132 という項目が表示されます.
17133 \family typewriter
17134 chktex
17135 \family default
17136 は,CTAN
17137 \begin_inset Newline newline
17138 \end_inset
17139
17140
17141 \begin_inset CommandInset href
17142 LatexCommand href
17143 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17144 literal "false"
17145
17146 \end_inset
17147
17148 から入手することができます.
17149 \end_layout
17150
17151 \begin_layout Standard
17152
17153 \family sans
17154 Chk\SpecialChar TeX
17155
17156 \family default
17157 パッケージは,\SpecialChar LaTeX
17158 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17159 \begin_inset Flex Noun
17160 status collapsed
17161
17162 \begin_layout Plain Layout
17163 Jens T.
17164  Berger Thielemann
17165 \end_layout
17166
17167 \end_inset
17168
17169 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17170 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17171 \family typewriter
17172 lint
17173 \family default
17174 であるとも言えます.
17175 \end_layout
17176
17177 \begin_layout Standard
17178 さて,\SpecialChar LyX
17179 はつねに正しい\SpecialChar LaTeX
17180 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17181 で何をするというのでしょうか.答えは簡単です.
17182 \family typewriter
17183 lint
17184 \family default
17185 がC言語プログラムの
17186 \emph on
17187 文法
17188 \emph default
17189 をチェックするだけでなく,打ち間違いによる
17190 \emph on
17191 意味上の
17192 \emph default
17193 チェックも行うように,
17194 \family sans
17195 Chk\SpecialChar TeX
17196
17197 \family default
17198 は,文法エラーの他に犯しがちな
17199 \emph on
17200 写植上の
17201 \emph default
17202 誤りも検出してくれるからです.
17203 \family sans
17204 Chk\SpecialChar TeX
17205
17206 \family default
17207 は,以下のような誤りを検出することができます.
17208 \end_layout
17209
17210 \begin_layout Itemize
17211 省略記号の検出:
17212 \begin_inset Newline newline
17213 \end_inset
17214
17215 ...ではなく\SpecialChar ldots
17216 を使わなくてはなりません
17217 \end_layout
17218
17219 \begin_layout Itemize
17220 括弧の前後にスペースを置かない:
17221 \begin_inset Newline newline
17222 \end_inset
17223
17224 ( wrong spacing ):誤った空白
17225 \end_layout
17226
17227 \begin_layout Itemize
17228 よく使われる省略形の後ろは通常スペースにする:
17229 \begin_inset Newline newline
17230 \end_inset
17231
17232 e.
17233 \begin_inset space \thinspace{}
17234 \end_inset
17235
17236 g.
17237 \begin_inset space \space{}
17238 \end_inset
17239
17240 is too wide spacing.:広すぎる空白
17241 \end_layout
17242
17243 \begin_layout Itemize
17244 直前の文章が大文字で終わっているときに,文末スペースに直す:
17245 \begin_inset Newline newline
17246 \end_inset
17247
17248 This is a TEST.
17249  And this is wrong spacing.:誤った空白
17250 \end_layout
17251
17252 \begin_layout Itemize
17253 ラベルや類似コマンドの前のスペース:
17254 \begin_inset Newline newline
17255 \end_inset
17256
17257 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17258 \begin_inset CommandInset label
17259 LatexCommand label
17260 name "sec:chktex"
17261
17262 \end_inset
17263
17264  
17265 \begin_inset Foot
17266 status collapsed
17267
17268 \begin_layout Plain Layout
17269 この脚注は,正しくないページに行ってしまう恐れがあります.
17270 \end_layout
17271
17272 \end_inset
17273
17274  このラベルは離れすぎです.
17275 \end_layout
17276
17277 \begin_layout Itemize
17278 参照の前にハードスペースではなくスペース:
17279 \begin_inset Newline newline
17280 \end_inset
17281
17282 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17283 \begin_inset CommandInset ref
17284 LatexCommand ref
17285 reference "sec:chktex"
17286
17287 \end_inset
17288
17289 節をご覧ください.
17290 \end_layout
17291
17292 \begin_layout Itemize
17293 数字のあいだで
17294 \begin_inset Formula $\times$
17295 \end_inset
17296
17297 ではなく「x」が使われている:
17298 \begin_inset Newline newline
17299 \end_inset
17300
17301 2x2は,
17302 \begin_inset Formula $2\times2$
17303 \end_inset
17304
17305 よりも安っぽく見えます.
17306 \end_layout
17307
17308 \begin_layout Standard
17309 などなど\SpecialChar ldots
17310
17311 \family sans
17312 Chk\SpecialChar TeX
17313
17314 \family default
17315 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17316 \end_layout
17317
17318 \begin_layout Subsection
17319 使いかた
17320 \end_layout
17321
17322 \begin_layout Standard
17323 このプログラムを導入したならば,使うのは
17324 \family sans
17325 ツール\SpecialChar menuseparator
17326 \SpecialChar TeX
17327 構文チェック
17328 \family default
17329 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17330 は使用中の文書の\SpecialChar LaTeX
17331 ファイルを生成して,
17332 \family sans
17333 Chk\SpecialChar TeX
17334
17335 \family default
17336 を起動し,当該ファイルを検査しますが,
17337 \family sans
17338 Chk\SpecialChar TeX
17339
17340 \family default
17341 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17342 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17343 \family sans
17344 移動\SpecialChar menuseparator
17345 エラー
17346 \family default
17347 を選択するか,既定の
17348 \family typewriter
17349 cua
17350 \family default
17351
17352 \begin_inset Flex Ruby
17353 status collapsed
17354
17355 \begin_layout Plain Layout
17356
17357 \begin_inset Argument post:1
17358 status collapsed
17359
17360 \begin_layout Plain Layout
17361 キー
17362 \end_layout
17363
17364 \end_inset
17365
17366
17367 \end_layout
17368
17369 \end_inset
17370
17371 設定ファイルならば
17372 \begin_inset Flex Ruby
17373 status collapsed
17374
17375 \begin_layout Plain Layout
17376
17377 \family roman
17378 \series medium
17379 \shape up
17380 \size normal
17381 \emph off
17382 \bar no
17383 \noun off
17384 \color none
17385 捷径
17386 \family default
17387 \series default
17388 \shape default
17389 \size default
17390 \emph default
17391 \bar default
17392 \noun default
17393 \color inherit
17394
17395 \begin_inset Argument post:1
17396 status collapsed
17397
17398 \begin_layout Plain Layout
17399 ショートカット
17400 \end_layout
17401
17402 \end_inset
17403
17404
17405 \end_layout
17406
17407 \end_inset
17408
17409
17410 \family sans
17411 C-g
17412 \family default
17413 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17414 \family typewriter
17415 cua
17416 \family default
17417 鍵設定の場合には捷径鍵
17418 \family sans
17419 C-i
17420 \family default
17421
17422 \family typewriter
17423 emacs
17424 \family default
17425 鍵設定の場合は捷径鍵
17426 \family sans
17427 C-o
17428 \family default
17429 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17430 \family sans
17431 Chk\SpecialChar TeX
17432
17433 \family default
17434 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17435 があるのです.
17436 \end_layout
17437
17438 \begin_layout Standard
17439 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17440 警告のほとんどは実際には警告に値しません.
17441 \end_layout
17442
17443 \begin_layout Subsection
17444 微調整のしかた
17445 \end_layout
17446
17447 \begin_layout Standard
17448 場合によっては,
17449 \family sans
17450 Chk\SpecialChar TeX
17451
17452 \family default
17453 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17454 \family sans
17455 Chk\SpecialChar TeX
17456
17457 \family default
17458 を無効にするか,あなたにもう少し合うように
17459 \family sans
17460 Chk\SpecialChar TeX
17461
17462 \family default
17463 を調整することができます.
17464 \end_layout
17465
17466 \begin_layout Standard
17467
17468 \family sans
17469 Chk\SpecialChar TeX
17470
17471 \family default
17472 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17473 における
17474 \family sans
17475 Chk\SpecialChar TeX
17476
17477 \family default
17478 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17479 は,
17480 \family sans
17481 Chk\SpecialChar TeX
17482
17483 \family default
17484 出力
17485 \begin_inset Foot
17486 status collapsed
17487
17488 \begin_layout Plain Layout
17489
17490 \family sans
17491 chktex
17492 \family default
17493 の実際の出力は,
17494 \family sans
17495 chktex
17496 \family default
17497 を実行した直後に
17498 \family sans
17499 文書\SpecialChar menuseparator
17500 \SpecialChar LaTeX
17501 ログ
17502 \family default
17503 を使えば見ることができます.
17504 \end_layout
17505
17506 \end_inset
17507
17508 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17509 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17510 ためには,以下の2つの方法があります.
17511 \end_layout
17512
17513 \begin_layout Itemize
17514
17515 \family sans
17516 \begin_inset Flex MenuItem
17517 status collapsed
17518
17519 \begin_layout Plain Layout
17520
17521 \family sans
17522 ツール\SpecialChar menuseparator
17523 設定\SpecialChar menuseparator
17524 出力\SpecialChar menuseparator
17525 \SpecialChar LaTeX
17526 \SpecialChar menuseparator
17527 Check\SpecialChar TeX
17528 コマンド
17529 \end_layout
17530
17531 \end_inset
17532
17533
17534 \family default
17535 中の
17536 \family sans
17537 Chk\SpecialChar TeX
17538
17539 \family default
17540 起動コマンドラインを調整するか,グローバルな
17541 \family sans
17542 Chk\SpecialChar TeX
17543
17544 \family default
17545 の設定ファイル(通常は
17546 \begin_inset Flex Code
17547 status collapsed
17548
17549 \begin_layout Plain Layout
17550 chktexrc
17551 \end_layout
17552
17553 \end_inset
17554
17555 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17556 \end_layout
17557
17558 \begin_layout Itemize
17559
17560 \family sans
17561 ファイル\SpecialChar menuseparator
17562 書き出し\SpecialChar menuseparator
17563 \SpecialChar LaTeX
17564
17565 \family default
17566 を使って文書を\SpecialChar LaTeX
17567 ファイルに変換し,そのファイルに対して
17568 \family typewriter
17569 chktex
17570 \family default
17571 を手動で実行します.このようにすると,\SpecialChar LyX
17572 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17573 \end_layout
17574
17575 \begin_layout Standard
17576 以下は,
17577 \family sans
17578 設定
17579 \family default
17580 で有効化・無効化できる警告メッセージです.警告を無効にするには
17581 \family typewriter
17582 -n#
17583 \family default
17584 ,有効にするには
17585 \family typewriter
17586 -w#
17587 \family default
17588 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17589 \family typewriter
17590 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17591 \family default
17592 "です.
17593 \end_layout
17594
17595 \begin_layout Standard
17596 \SpecialChar LyX
17597 は,
17598 \family typewriter
17599 chktex
17600 \family default
17601 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17602 \end_layout
17603
17604 \begin_layout Enumerate
17605
17606 \size small
17607 \emph on
17608 Command terminated with space.
17609 \end_layout
17610
17611 \begin_layout Enumerate
17612
17613 \size small
17614 Non-breaking space (
17615 \begin_inset Quotes eld
17616 \end_inset
17617
17618
17619 \family typewriter
17620 ~
17621 \family default
17622
17623 \begin_inset Quotes erd
17624 \end_inset
17625
17626 ) should have been used.
17627 \end_layout
17628
17629 \begin_layout Enumerate
17630
17631 \size small
17632 \emph on
17633 You should enclose the previous parenthesis with 
17634 \begin_inset Quotes eld
17635 \end_inset
17636
17637
17638 \family typewriter
17639 {}
17640 \family default
17641
17642 \begin_inset Quotes erd
17643 \end_inset
17644
17645 .
17646 \end_layout
17647
17648 \begin_layout Enumerate
17649
17650 \size small
17651 Italic correction (
17652 \begin_inset Quotes eld
17653 \end_inset
17654
17655
17656 \family typewriter
17657
17658 \backslash
17659 /
17660 \family default
17661
17662 \begin_inset Quotes erd
17663 \end_inset
17664
17665 ) found in non-italic buffer.
17666 \end_layout
17667
17668 \begin_layout Enumerate
17669
17670 \size small
17671 Italic correction (
17672 \begin_inset Quotes eld
17673 \end_inset
17674
17675
17676 \family typewriter
17677
17678 \backslash
17679 /
17680 \family default
17681
17682 \begin_inset Quotes erd
17683 \end_inset
17684
17685 ) found more than once.
17686 \end_layout
17687
17688 \begin_layout Enumerate
17689
17690 \size small
17691 \emph on
17692 No italic correction (
17693 \begin_inset Quotes eld
17694 \end_inset
17695
17696
17697 \family typewriter
17698
17699 \backslash
17700 /
17701 \family default
17702
17703 \begin_inset Quotes erd
17704 \end_inset
17705
17706 ) found.
17707 \end_layout
17708
17709 \begin_layout Enumerate
17710
17711 \size small
17712 Accent command 
17713 \begin_inset Quotes eld
17714 \end_inset
17715
17716
17717 \family typewriter
17718 cmd
17719 \family default
17720
17721 \begin_inset Quotes erd
17722 \end_inset
17723
17724  needs use of 
17725 \begin_inset Quotes eld
17726 \end_inset
17727
17728
17729 \family typewriter
17730 cmd
17731 \family default
17732
17733 \begin_inset Quotes erd
17734 \end_inset
17735
17736 .
17737 \end_layout
17738
17739 \begin_layout Enumerate
17740
17741 \size small
17742 Wrong length of dash may have been used.
17743 \end_layout
17744
17745 \begin_layout Enumerate
17746
17747 \size small
17748 \emph on
17749 \begin_inset Quotes eld
17750 \end_inset
17751
17752
17753 \family typewriter
17754 %s
17755 \family default
17756
17757 \begin_inset Quotes erd
17758 \end_inset
17759
17760  expected, found 
17761 \begin_inset Quotes eld
17762 \end_inset
17763
17764
17765 \family typewriter
17766 %s
17767 \family default
17768
17769 \begin_inset Quotes erd
17770 \end_inset
17771
17772 .
17773 \end_layout
17774
17775 \begin_layout Enumerate
17776
17777 \size small
17778 Solo 
17779 \begin_inset Quotes eld
17780 \end_inset
17781
17782
17783 \family typewriter
17784 %s
17785 \family default
17786
17787 \begin_inset Quotes erd
17788 \end_inset
17789
17790  found.
17791 \end_layout
17792
17793 \begin_layout Enumerate
17794
17795 \size small
17796 You should use 
17797 \begin_inset Quotes eld
17798 \end_inset
17799
17800
17801 \family typewriter
17802 %s
17803 \family default
17804
17805 \begin_inset Quotes erd
17806 \end_inset
17807
17808  to achieve an ellipsis.
17809 \end_layout
17810
17811 \begin_layout Enumerate
17812
17813 \size small
17814 Inter-word spacing (
17815 \begin_inset Quotes eld
17816 \end_inset
17817
17818
17819 \family typewriter
17820
17821 \backslash
17822
17823 \family default
17824  
17825 \begin_inset Quotes eld
17826 \end_inset
17827
17828 ) should perhaps be used.
17829 \end_layout
17830
17831 \begin_layout Enumerate
17832
17833 \size small
17834 Inter-sentence spacing (
17835 \begin_inset Quotes eld
17836 \end_inset
17837
17838
17839 \family typewriter
17840
17841 \backslash
17842 @
17843 \family default
17844
17845 \begin_inset Quotes erd
17846 \end_inset
17847
17848 ) should perhaps be used.
17849 \end_layout
17850
17851 \begin_layout Enumerate
17852
17853 \size small
17854 Could not find argument for command.
17855 \end_layout
17856
17857 \begin_layout Enumerate
17858
17859 \size small
17860 No match found for 
17861 \begin_inset Quotes eld
17862 \end_inset
17863
17864
17865 \family typewriter
17866 %s
17867 \family default
17868
17869 \begin_inset Quotes erd
17870 \end_inset
17871
17872 .
17873 \end_layout
17874
17875 \begin_layout Enumerate
17876
17877 \size small
17878 Math mode still on at end of \SpecialChar LaTeX
17879  file.
17880 \end_layout
17881
17882 \begin_layout Enumerate
17883
17884 \size small
17885 Number of 
17886 \begin_inset Quotes eld
17887 \end_inset
17888
17889
17890 \family typewriter
17891 char
17892 \family default
17893
17894 \begin_inset Quotes erd
17895 \end_inset
17896
17897  doesn't match the number of 
17898 \begin_inset Quotes eld
17899 \end_inset
17900
17901
17902 \family typewriter
17903 char
17904 \family default
17905
17906 \begin_inset Quotes erd
17907 \end_inset
17908
17909 .
17910 \end_layout
17911
17912 \begin_layout Enumerate
17913
17914 \size small
17915 You should use either 
17916 \family typewriter
17917
17918 \begin_inset Quotes eld
17919 \end_inset
17920
17921
17922 \family default
17923  or 
17924 \family typewriter
17925
17926 \begin_inset Quotes erd
17927 \end_inset
17928
17929
17930 \family default
17931  as an alternative to 
17932 \begin_inset Quotes eld
17933 \end_inset
17934
17935
17936 \family typewriter
17937 "
17938 \family default
17939
17940 \begin_inset Quotes erd
17941 \end_inset
17942
17943 .
17944 \end_layout
17945
17946 \begin_layout Enumerate
17947
17948 \size small
17949 You should use "
17950 \family typewriter
17951 '
17952 \family default
17953 " (ASCII 39) instead of "" (ASCII 180).
17954 \end_layout
17955
17956 \begin_layout Enumerate
17957
17958 \size small
17959 User-specified pattern found.
17960 \end_layout
17961
17962 \begin_layout Enumerate
17963
17964 \size small
17965 This command might not be intended.
17966 \end_layout
17967
17968 \begin_layout Enumerate
17969
17970 \size small
17971 \emph on
17972 Comment displayed.
17973 \end_layout
17974
17975 \begin_layout Enumerate
17976
17977 \size small
17978 Either 
17979 \family typewriter
17980 ''
17981 \backslash
17982 ,'
17983 \family default
17984  or 
17985 \family typewriter
17986 '
17987 \backslash
17988 ,''
17989 \family default
17990  will look better.
17991 \end_layout
17992
17993 \begin_layout Enumerate
17994
17995 \size small
17996 Delete this space to maintain correct page references.
17997 \end_layout
17998
17999 \begin_layout Enumerate
18000
18001 \size small
18002 \emph on
18003 You might wish to put this between a pair of 
18004 \begin_inset Quotes eld
18005 \end_inset
18006
18007
18008 \family typewriter
18009 {}
18010 \family default
18011
18012 \begin_inset Quotes erd
18013 \end_inset
18014
18015 .
18016 \end_layout
18017
18018 \begin_layout Enumerate
18019
18020 \size small
18021 You ought to remove spaces in front of punctuation.
18022 \end_layout
18023
18024 \begin_layout Enumerate
18025
18026 \size small
18027 Could not execute \SpecialChar LaTeX
18028  command.
18029 \end_layout
18030
18031 \begin_layout Enumerate
18032
18033 \size small
18034 Don't use 
18035 \family typewriter
18036
18037 \backslash
18038 /
18039 \family default
18040  in front of small punctuation.
18041 \end_layout
18042
18043 \begin_layout Enumerate
18044
18045 \family typewriter
18046 \size small
18047 $
18048 \backslash
18049 times$
18050 \family default
18051  may look prettier here.
18052 \end_layout
18053
18054 \begin_layout Enumerate
18055
18056 \size small
18057 \emph on
18058 Multiple spaces detected in output.
18059 \end_layout
18060
18061 \begin_layout Enumerate
18062
18063 \size small
18064 This text may be ignored.
18065 \end_layout
18066
18067 \begin_layout Enumerate
18068
18069 \size small
18070 Use 
18071 \family typewriter
18072
18073 \begin_inset Quotes eld
18074 \end_inset
18075
18076
18077 \family default
18078  to begin quotation, not 
18079 \family typewriter
18080 '
18081 \family default
18082 .
18083 \end_layout
18084
18085 \begin_layout Enumerate
18086
18087 \size small
18088 Use 
18089 \family typewriter
18090 '
18091 \family default
18092  to end quotation, not 
18093 \family typewriter
18094
18095 \begin_inset Quotes eld
18096 \end_inset
18097
18098
18099 \family default
18100 .
18101 \end_layout
18102
18103 \begin_layout Enumerate
18104
18105 \size small
18106 Don't mix quotes.
18107 \end_layout
18108
18109 \begin_layout Enumerate
18110
18111 \size small
18112 You should perhaps use 
18113 \begin_inset Quotes eld
18114 \end_inset
18115
18116
18117 \family typewriter
18118 cmd
18119 \family default
18120
18121 \begin_inset Quotes erd
18122 \end_inset
18123
18124  instead.
18125 \end_layout
18126
18127 \begin_layout Enumerate
18128
18129 \size small
18130 You should put a space in front of/after parenthesis.
18131 \end_layout
18132
18133 \begin_layout Enumerate
18134
18135 \size small
18136 You should avoid spaces in front of/after parenthesis.
18137 \end_layout
18138
18139 \begin_layout Enumerate
18140
18141 \size small
18142 \emph on
18143 You should not use punctuation in front of/after quotes.
18144 \end_layout
18145
18146 \begin_layout Enumerate
18147
18148 \size small
18149 Double space found.
18150 \end_layout
18151
18152 \begin_layout Enumerate
18153
18154 \size small
18155 You should put punctuation outside inner/inside display math mode.
18156 \end_layout
18157
18158 \begin_layout Enumerate
18159
18160 \size small
18161 You ought to not use primitive \SpecialChar TeX
18162  in \SpecialChar LaTeX
18163  code.
18164 \end_layout
18165
18166 \begin_layout Enumerate
18167
18168 \size small
18169 You should remove spaces in front of 
18170 \begin_inset Quotes eld
18171 \end_inset
18172
18173
18174 \family typewriter
18175 %s
18176 \family default
18177
18178 \begin_inset Quotes erd
18179 \end_inset
18180
18181
18182 \end_layout
18183
18184 \begin_layout Enumerate
18185
18186 \size small
18187 \begin_inset Quotes eld
18188 \end_inset
18189
18190
18191 \family typewriter
18192 %s
18193 \family default
18194
18195 \begin_inset Quotes erd
18196 \end_inset
18197
18198  is normally not followed by 
18199 \begin_inset Quotes eld
18200 \end_inset
18201
18202
18203 \family typewriter
18204 %c
18205 \family default
18206
18207 \begin_inset Quotes erd
18208 \end_inset
18209
18210 .
18211 \end_layout
18212
18213 \begin_layout Standard
18214 \SpecialChar LyX
18215 の将来の版では,このツール(およびその縮小版
18216 \family typewriter
18217 lacheck
18218 \family default
18219 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18220 書に使用してみていただければ,きっと驚かれることでしょう.
18221 \end_layout
18222
18223 \begin_layout Section
18224 \SpecialChar LyX
18225 でのバージョン管理
18226 \end_layout
18227
18228 \begin_layout Standard
18229
18230 \noun on
18231 Lars Bullik Bjønnes
18232 \noun default
18233 および
18234 \noun on
18235 Pavel Sanda
18236 \noun default
18237
18238 \end_layout
18239
18240 \begin_layout Subsection
18241 はじめに
18242 \end_layout
18243
18244 \begin_layout Standard
18245 \SpecialChar LyX
18246 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18247 があります.
18248 \end_layout
18249
18250 \begin_layout Standard
18251 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18252 N Book
18253 \begin_inset Foot
18254 status collapsed
18255
18256 \begin_layout Plain Layout
18257 \begin_inset CommandInset href
18258 LatexCommand href
18259 target "http://svnbook.red-bean.com/"
18260 literal "false"
18261
18262 \end_inset
18263
18264
18265 \end_layout
18266
18267 \end_inset
18268
18269 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18270 \family typewriter
18271 man rcsintro
18272 \family default
18273 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18274 \family typewriter
18275 ,v
18276 \family default
18277 で終わるファイルです)の概念に注意を払ってください.
18278 \end_layout
18279
18280 \begin_layout Standard
18281 \SpecialChar LyX
18282 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18283 で\SpecialChar LyX
18284 への実装においては,GNU
18285  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18286 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18287 \family sans
18288 表示\SpecialChar menuseparator
18289 ツールバー\SpecialChar menuseparator
18290 バージョン管理
18291 \family default
18292 で有効にできます.
18293 \end_layout
18294
18295 \begin_layout Standard
18296 自製の外部コマンドを導入したい場合には,
18297 \emph on
18298 \SpecialChar LyX
18299 関数
18300 \emph default
18301 説明書の
18302 \begin_inset Flex Code
18303 status collapsed
18304
18305 \begin_layout Plain Layout
18306 vc-command
18307 \end_layout
18308
18309 \end_inset
18310
18311 を確認してください.
18312 \end_layout
18313
18314 \begin_layout Standard
18315 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18316 \family sans
18317 文書\SpecialChar menuseparator
18318 圧縮
18319 \family default
18320 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18321 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18322 \end_layout
18323
18324 \begin_layout Subsection
18325 \SpecialChar LyX
18326 におけるRCSコマンド
18327 \end_layout
18328
18329 \begin_layout Standard
18330 以下の節では\SpecialChar LyX
18331 でサポートされているRCSコマンドを説明します.それらのコマンドは
18332 \family sans
18333 ファイル\SpecialChar menuseparator
18334 バージョン管理
18335 \family default
18336 のサブメニューにあります.\SpecialChar LyX
18337 は,RCS 5.7/5.8に対して試験されています.
18338 \end_layout
18339
18340 \begin_layout Subsubsection
18341
18342 \family sans
18343 登録
18344 \end_layout
18345
18346 \begin_layout Standard
18347 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18348 \family sans
18349 登録
18350 \family default
18351 は不可視になります.
18352 \end_layout
18353
18354 \begin_layout Standard
18355 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18356 書は読み込み専用モードになるので,変更を加えるためには
18357 \family sans
18358 チェックアウトして編集
18359 \family default
18360 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18361 \end_layout
18362
18363 \begin_layout Standard
18364 実行されるRCSコマンドは:
18365 \end_layout
18366
18367 \begin_layout LyX-Code
18368
18369 \family typewriter
18370 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18371 \end_layout
18372
18373 \begin_layout Standard
18374 スイッチについて知りたい場合は,
18375 \family typewriter
18376 man ci
18377 \family default
18378 を読んでください.
18379 \end_layout
18380
18381 \begin_layout Subsubsection
18382
18383 \family sans
18384 変更をチェックインする
18385 \end_layout
18386
18387 \begin_layout Standard
18388 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18389 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18390 \end_layout
18391
18392 \begin_layout Itemize
18393 RCSコマンド:
18394 \family typewriter
18395 ci -q -u -m"<説明文>" <ファイル名>
18396 \end_layout
18397
18398 \begin_layout Subsubsection
18399
18400 \family sans
18401 チェックアウトして編集
18402 \end_layout
18403
18404 \begin_layout Standard
18405 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18406 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18407 \end_layout
18408
18409 \begin_layout Itemize
18410 RCSコマンド:
18411 \family typewriter
18412 co -q -l <ファイル名>
18413 \end_layout
18414
18415 \begin_layout Subsubsection
18416
18417 \family sans
18418 リポジトリのバージョンに戻す
18419 \end_layout
18420
18421 \begin_layout Standard
18422 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18423 \end_layout
18424
18425 \begin_layout Itemize
18426 RCSコマンド:
18427 \family typewriter
18428 co -f -u<バージョン> <ファイル名>
18429 \end_layout
18430
18431 \begin_layout Subsubsection
18432
18433 \family sans
18434 コピー
18435 \end_layout
18436
18437 \begin_layout Standard
18438 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18439 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18440 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18441 \family sans
18442 ファイル\SpecialChar menuseparator
18443 名前をつけて保存\SpecialChar ldots
18444
18445 \family default
18446 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18447 \end_layout
18448
18449 \begin_layout Labeling
18450 \labelwidthstring 00.00.0000
18451 RCSコマンド: 
18452 \begin_inset space ~
18453 \end_inset
18454
18455
18456 \begin_inset Newline newline
18457 \end_inset
18458
18459
18460 \begin_inset Flex Code
18461 status collapsed
18462
18463 \begin_layout Plain Layout
18464 "ファイル名"
18465 \end_layout
18466
18467 \end_inset
18468
18469
18470 \begin_inset Flex Code
18471 status collapsed
18472
18473 \begin_layout Plain Layout
18474 "新ファイル名"
18475 \end_layout
18476
18477 \end_inset
18478
18479 にコピーする場合
18480 \begin_inset Newline newline
18481 \end_inset
18482
18483
18484 \begin_inset Flex Code
18485 status collapsed
18486
18487 \begin_layout Plain Layout
18488 ci -q -u -i "<新ファイル名>"
18489 \end_layout
18490
18491 \end_inset
18492
18493
18494 \end_layout
18495
18496 \begin_layout Subsubsection
18497
18498 \family sans
18499 最後のチェックインを取り消す
18500 \end_layout
18501
18502 \begin_layout Standard
18503 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18504 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18505 されます.
18506 \end_layout
18507
18508 \begin_layout Itemize
18509 RCSコマンド:
18510 \family typewriter
18511 rcs -o<バージョン> <ファイル名>
18512 \end_layout
18513
18514 \begin_layout Subsubsection
18515
18516 \family sans
18517 履歴を表示
18518 \end_layout
18519
18520 \begin_layout Standard
18521 RCS文書の完全な履歴を表示します.ブラウザ中に,
18522 \family typewriter
18523 rlog <ファイル名>
18524 \family default
18525 の出力が表示されます.詳細は
18526 \family typewriter
18527 man rlog
18528 \family default
18529 をご覧ください.
18530 \end_layout
18531
18532 \begin_layout Subsubsection
18533 改訂情報
18534 \end_layout
18535
18536 \begin_layout Standard
18537 \SpecialChar LyX
18538 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18539 \begin_inset CommandInset ref
18540 LatexCommand ref
18541 reference "subsec:VCS改訂情報"
18542
18543 \end_inset
18544
18545 を参照.
18546 \end_layout
18547
18548 \begin_layout Subsection
18549 \SpecialChar LyX
18550 におけるCVSコマンド
18551 \end_layout
18552
18553 \begin_layout Standard
18554 \SpecialChar LyX
18555 は,現在CVSを一部サポートしています.そのコマンドは,
18556 \family sans
18557 ファイル\SpecialChar menuseparator
18558 バージョン管理
18559 \family default
18560 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18561 \end_layout
18562
18563 \begin_layout Subsubsection
18564 CVSの一般的な利用法
18565 \end_layout
18566
18567 \begin_layout Standard
18568 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18569 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18570 \end_layout
18571
18572 \begin_layout Standard
18573 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18574 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18575 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18576 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18577 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18578 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18579 で予備付きチェックアウトを利用したい場合には,
18580 \begin_inset Flex Code
18581 status collapsed
18582
18583 \begin_layout Plain Layout
18584 .cvsrc
18585 \end_layout
18586
18587 \end_inset
18588
18589 ファイルを編集して,
18590 \begin_inset Flex Code
18591 status collapsed
18592
18593 \begin_layout Plain Layout
18594 cvs -r
18595 \end_layout
18596
18597 \end_inset
18598
18599 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18600 コピーを書き込み可能にしているとは限りません.
18601 \end_layout
18602
18603 \begin_layout Standard
18604 \SpecialChar LyX
18605 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18606 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18607 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18608 可能にするためには,
18609 \begin_inset Flex MenuItem
18610 status collapsed
18611
18612 \begin_layout Plain Layout
18613 チェックアウト
18614 \end_layout
18615
18616 \end_inset
18617
18618 メニューを使用しなくてはなりません.その後,
18619 \begin_inset Flex MenuItem
18620 status collapsed
18621
18622 \begin_layout Plain Layout
18623 チェックイン
18624 \end_layout
18625
18626 \end_inset
18627
18628 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18629 \end_layout
18630
18631 \begin_layout Standard
18632 CVSの詳細な情報は,
18633 \begin_inset Flex URL
18634 status collapsed
18635
18636 \begin_layout Plain Layout
18637
18638 http://www.nongnu.org/cvs
18639 \end_layout
18640
18641 \end_inset
18642
18643
18644 \begin_inset Flex URL
18645 status collapsed
18646
18647 \begin_layout Plain Layout
18648
18649 http://ximbiot.com/cvs
18650 \end_layout
18651
18652 \end_inset
18653
18654 にあります.
18655 \end_layout
18656
18657 \begin_layout Standard
18658 以下に言及するサブコマンドとスイッチを理解するには,
18659 \family typewriter
18660 man cvs
18661 \family default
18662 をお読みください.
18663 \end_layout
18664
18665 \begin_layout Subsubsection
18666 登録
18667 \end_layout
18668
18669 \begin_layout Standard
18670 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18671 \family sans
18672 登録
18673 \family default
18674 項目は表示されません.
18675 \end_layout
18676
18677 \begin_layout Standard
18678 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18679 \series bold
18680 \emph on
18681 のみ
18682 \series default
18683 \emph default
18684 (すなわち
18685 \begin_inset Flex Code
18686 status collapsed
18687
18688 \begin_layout Plain Layout
18689 CVS/Entries
18690 \end_layout
18691
18692 \end_inset
18693
18694 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18695 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18696 は文書をRCSに登録します).
18697 \end_layout
18698
18699 \begin_layout Standard
18700 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
18701 \end_layout
18702
18703 \begin_layout Standard
18704 実行されるCVSコマンドは,
18705 \family typewriter
18706 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18707 \family default
18708  です.
18709 \end_layout
18710
18711 \begin_layout Standard
18712 上記および他のすべてのCVSコマンドにおける
18713 \family typewriter
18714 "<ファイル名>"
18715 \family default
18716 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
18717 \end_layout
18718
18719 \begin_layout Subsubsection
18720 変更のチェックイン
18721 \end_layout
18722
18723 \begin_layout Standard
18724 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
18725 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
18726 \begin_inset Flex MenuItem
18727 status collapsed
18728
18729 \begin_layout Plain Layout
18730 チェックアウト
18731 \end_layout
18732
18733 \end_inset
18734
18735 で作られた予備は取り消されます.
18736 \end_layout
18737
18738 \begin_layout Labeling
18739 \labelwidthstring 00.00.0000
18740 CVSコマンド: 
18741 \begin_inset space ~
18742 \end_inset
18743
18744
18745 \begin_inset Newline newline
18746 \end_inset
18747
18748
18749 \begin_inset Flex Code
18750 status collapsed
18751
18752 \begin_layout Plain Layout
18753 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18754 \end_layout
18755
18756 \end_inset
18757
18758 あるいは
18759 \begin_inset Newline newline
18760 \end_inset
18761
18762
18763 \begin_inset Flex Code
18764 status collapsed
18765
18766 \begin_layout Plain Layout
18767 cvs -q unedit "<ファイル名>"
18768 \end_layout
18769
18770 \end_inset
18771
18772
18773 \end_layout
18774
18775 \begin_layout Subsubsection
18776 変更のチェックアウト
18777 \end_layout
18778
18779 \begin_layout Standard
18780 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
18781 \end_layout
18782
18783 \begin_layout Standard
18784 CVSコマンド:
18785 \family typewriter
18786 cvs -q update "<ファイル名>"
18787 \end_layout
18788
18789 \begin_layout Standard
18790 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
18791 \end_layout
18792
18793 \begin_layout Standard
18794 CVSコマンド:
18795 \family typewriter
18796 cvs -q edit "<ファイル名>"
18797 \end_layout
18798
18799 \begin_layout Subsubsection
18800 レポジトリ版に戻す
18801 \end_layout
18802
18803 \begin_layout Standard
18804 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
18805 が実行されます.
18806 \end_layout
18807
18808 \begin_layout Standard
18809 CVSコマンド:
18810 \family typewriter
18811 cvs -q update "<ファイル名>"
18812 \end_layout
18813
18814 \begin_layout Standard
18815 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
18816 \end_layout
18817
18818 \begin_layout Standard
18819 CVSコマンド:
18820 \family typewriter
18821 cvs -q unedit "<ファイル名>"
18822 \end_layout
18823
18824 \begin_layout Subsubsection
18825
18826 \family sans
18827 コピー
18828 \end_layout
18829
18830 \begin_layout Standard
18831 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18832 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18833 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18834 \family sans
18835 ファイル\SpecialChar menuseparator
18836 名前をつけて保存\SpecialChar ldots
18837
18838 \family default
18839 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18840 \end_layout
18841
18842 \begin_layout Labeling
18843 \labelwidthstring 00.00.0000
18844 CVSコマンド: 
18845 \begin_inset space ~
18846 \end_inset
18847
18848
18849 \begin_inset Newline newline
18850 \end_inset
18851
18852
18853 \begin_inset Flex Code
18854 status collapsed
18855
18856 \begin_layout Plain Layout
18857 "<ファイル名>"
18858 \end_layout
18859
18860 \end_inset
18861
18862
18863 \begin_inset Flex Code
18864 status collapsed
18865
18866 \begin_layout Plain Layout
18867 "<新ファイル名>"
18868 \end_layout
18869
18870 \end_inset
18871
18872 にコピーする場合
18873 \begin_inset Newline newline
18874 \end_inset
18875
18876
18877 \begin_inset Flex Code
18878 status collapsed
18879
18880 \begin_layout Plain Layout
18881 cvs -q add "<新ファイル名>"
18882 \end_layout
18883
18884 \end_inset
18885
18886
18887 \end_layout
18888
18889 \begin_layout Subsubsection
18890 ファイル名変更
18891 \end_layout
18892
18893 \begin_layout Standard
18894 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
18895 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
18896 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
18897 スは,(
18898 \family sans
18899 ファイル\SpecialChar menuseparator
18900 名前をつけて保存\SpecialChar ldots
18901
18902 \family default
18903 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
18904 \end_layout
18905
18906 \begin_layout Labeling
18907 \labelwidthstring 00.00.0000
18908 CVSコマンド: 
18909 \begin_inset space ~
18910 \end_inset
18911
18912
18913 \begin_inset Newline newline
18914 \end_inset
18915
18916
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921 "<ファイル名>"
18922 \end_layout
18923
18924 \end_inset
18925
18926
18927 \begin_inset Flex Code
18928 status collapsed
18929
18930 \begin_layout Plain Layout
18931 "<新ファイル名>"
18932 \end_layout
18933
18934 \end_inset
18935
18936 に変更する場合 
18937 \begin_inset space ~
18938 \end_inset
18939
18940
18941 \begin_inset Newline newline
18942 \end_inset
18943
18944
18945 \begin_inset Flex Code
18946 status collapsed
18947
18948 \begin_layout Plain Layout
18949 cvs -q add "<新ファイル名>"
18950 \end_layout
18951
18952 \end_inset
18953
18954  
18955 \begin_inset space ~
18956 \end_inset
18957
18958
18959 \begin_inset Newline newline
18960 \end_inset
18961
18962
18963 \begin_inset Flex Code
18964 status collapsed
18965
18966 \begin_layout Plain Layout
18967 cvs -q remove "<ファイル名>"
18968 \end_layout
18969
18970 \end_inset
18971
18972
18973 \end_layout
18974
18975 \begin_layout Subsubsection
18976 ローカルディレクトリチェックアウトのレポジトリからの更新
18977 \end_layout
18978
18979 \begin_layout Standard
18980 子文書や図を含んだり,外部
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985 .tex
18986 \end_layout
18987
18988 \end_inset
18989
18990 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
18991 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
18992 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
18993 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
18994 慣です.
18995 \end_layout
18996
18997 \begin_layout Standard
18998 コマンド
18999 \begin_inset Flex Code
19000 status collapsed
19001
19002 \begin_layout Plain Layout
19003 レポジトリを使ってローカル辞書を更新
19004 \end_layout
19005
19006 \end_inset
19007
19008 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
19009 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014 <<<<<<<
19015 \end_layout
19016
19017 \end_inset
19018
19019
19020 \begin_inset Flex Code
19021 status collapsed
19022
19023 \begin_layout Plain Layout
19024 >>>>>>>
19025 \end_layout
19026
19027 \end_inset
19028
19029 の対に囲まれ,
19030 \begin_inset Flex Code
19031 status collapsed
19032
19033 \begin_layout Plain Layout
19034 =======
19035 \end_layout
19036
19037 \end_inset
19038
19039 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19040 \begin_inset Flex Code
19041 status collapsed
19042
19043 \begin_layout Plain Layout
19044 >
19045 \end_layout
19046
19047 \end_inset
19048
19049 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19050 \end_layout
19051
19052 \begin_layout Labeling
19053 \labelwidthstring 00.00.0000
19054 CVSコマンド: 
19055 \begin_inset space ~
19056 \end_inset
19057
19058
19059 \begin_inset Newline newline
19060 \end_inset
19061
19062
19063 \begin_inset Flex Code
19064 status collapsed
19065
19066 \begin_layout Plain Layout
19067 cd $path; cvs diff "."
19068 \end_layout
19069
19070 \end_inset
19071
19072 (変更が検出された場合には知らせる)
19073 \begin_inset Newline newline
19074 \end_inset
19075
19076
19077 \begin_inset Flex Code
19078 status collapsed
19079
19080 \begin_layout Plain Layout
19081 cd $path; cvs -q update "."
19082 \end_layout
19083
19084 \end_inset
19085
19086
19087 \end_layout
19088
19089 \begin_layout Standard
19090 ここで
19091 \begin_inset Flex Code
19092 status collapsed
19093
19094 \begin_layout Plain Layout
19095 $path
19096 \end_layout
19097
19098 \end_inset
19099
19100 は文書パスを表します.
19101 \end_layout
19102
19103 \begin_layout Subsubsection
19104 履歴を表示
19105 \end_layout
19106
19107 \begin_layout Standard
19108 これは,CVS文書の全履歴を表示します.
19109 \begin_inset Flex Code
19110 status collapsed
19111
19112 \begin_layout Plain Layout
19113 cvs log 
19114 \begin_inset Quotes eld
19115 \end_inset
19116
19117 <ファイル名>
19118 \begin_inset Quotes erd
19119 \end_inset
19120
19121
19122 \end_layout
19123
19124 \end_inset
19125
19126 の出力がブラウザに表示されます.
19127 \end_layout
19128
19129 \begin_layout Subsubsection
19130 改訂情報
19131 \end_layout
19132
19133 \begin_layout Standard
19134 \SpecialChar LyX
19135 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19136 \family typewriter
19137 cvs log -r <ファイル名>
19138 \family default
19139 によって抽出されます.詳細については,第
19140 \begin_inset CommandInset ref
19141 LatexCommand ref
19142 reference "subsec:VCS改訂情報"
19143
19144 \end_inset
19145
19146 節を参照してください.
19147 \end_layout
19148
19149 \begin_layout Subsection
19150 \SpecialChar LyX
19151 におけるSVNコマンド
19152 \end_layout
19153
19154 \begin_layout Standard
19155 \SpecialChar LyX
19156 は,現在SVNを一部サポートしています.そのコマンドは,
19157 \begin_inset Flex MenuItem
19158 status collapsed
19159
19160 \begin_layout Plain Layout
19161 ファイル\SpecialChar menuseparator
19162 バージョン管理
19163 \end_layout
19164
19165 \end_inset
19166
19167 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19168 は,SVN
19169  1.5・1.6・1.7・1.8に対して試験されています
19170 \begin_inset Foot
19171 status collapsed
19172
19173 \begin_layout Plain Layout
19174 ほとんどのコマンドは,1.4でも動作します.
19175 \begin_inset CommandInset ref
19176 LatexCommand ref
19177 reference "subsec:レポジトリからSVN同期"
19178 plural "false"
19179 caps "false"
19180 noprefix "false"
19181
19182 \end_inset
19183
19184 を参照してください.SVN 1.8では,ファイルがロックされている時にパーミッション変更点を戻してしまうという現時点では未解決の問題が存在しています.
19185 \end_layout
19186
19187 \end_inset
19188
19189
19190 \end_layout
19191
19192 \begin_layout Subsubsection
19193 登録
19194 \end_layout
19195
19196 \begin_layout Standard
19197 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19198 \family sans
19199 登録
19200 \family default
19201 項目は表示されません.
19202 \end_layout
19203
19204 \begin_layout Standard
19205 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19206 \emph on
19207 のみ
19208 \emph default
19209 (すなわち
19210 \begin_inset Flex Code
19211 status collapsed
19212
19213 \begin_layout Plain Layout
19214 .svn/entries
19215 \end_layout
19216
19217 \end_inset
19218
19219 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19220 \end_layout
19221
19222 \begin_layout Standard
19223 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19224 \end_layout
19225
19226 \begin_layout Standard
19227 実行されるSVNコマンドは,
19228 \begin_inset Flex Code
19229 status collapsed
19230
19231 \begin_layout Plain Layout
19232 svn add -q 
19233 \begin_inset Quotes qld
19234 \end_inset
19235
19236 <ファイル名>
19237 \begin_inset Quotes qld
19238 \end_inset
19239
19240
19241 \end_layout
19242
19243 \end_inset
19244
19245 です.
19246 \end_layout
19247
19248 \begin_layout Standard
19249 スイッチの説明は
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254 man svn
19255 \end_layout
19256
19257 \end_inset
19258
19259 をお読みください.
19260 \end_layout
19261
19262 \begin_layout Subsubsection
19263 変更をチェックイン
19264 \end_layout
19265
19266 \begin_layout Standard
19267 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19268 \end_layout
19269
19270 \begin_layout Standard
19271 SVNコマンド
19272 \begin_inset Foot
19273 status collapsed
19274
19275 \begin_layout Plain Layout
19276 ロックが有効になっていない場合です.第
19277 \begin_inset CommandInset ref
19278 LatexCommand ref
19279 reference "subsec:SVNファイルロック"
19280
19281 \end_inset
19282
19283 節をご覧ください.
19284 \end_layout
19285
19286 \end_inset
19287
19288
19289 \begin_inset Flex Code
19290 status collapsed
19291
19292 \begin_layout Plain Layout
19293 svn commit -q -m"<入力した説明文>" "<ファイル名>"
19294 \end_layout
19295
19296 \end_inset
19297
19298
19299 \end_layout
19300
19301 \begin_layout Subsubsection
19302 チェックアウトして編集
19303 \end_layout
19304
19305 \begin_layout Standard
19306 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19307 しておくようにしてください.
19308 \end_layout
19309
19310 \begin_layout Standard
19311 SVNコマンド
19312 \begin_inset Foot
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 svn update --non-interactive 
19327 \begin_inset Quotes qld
19328 \end_inset
19329
19330 <ファイル名>
19331 \begin_inset Quotes qld
19332 \end_inset
19333
19334
19335 \end_layout
19336
19337 \end_inset
19338
19339
19340 \end_layout
19341
19342 \begin_layout Subsubsection
19343 リポジトリ版に戻す
19344 \end_layout
19345
19346 \begin_layout Standard
19347 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19348 \end_layout
19349
19350 \begin_layout Standard
19351 SVNコマンド:
19352 \begin_inset Flex Code
19353 status collapsed
19354
19355 \begin_layout Plain Layout
19356 svn revert -q 
19357 \begin_inset Quotes qld
19358 \end_inset
19359
19360 <ファイル名>
19361 \begin_inset Quotes qld
19362 \end_inset
19363
19364
19365 \end_layout
19366
19367 \end_inset
19368
19369
19370 \end_layout
19371
19372 \begin_layout Subsubsection
19373
19374 \family sans
19375 コピー
19376 \end_layout
19377
19378 \begin_layout Standard
19379 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19380 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19381 ァイルの相対パスは,(
19382 \family sans
19383 ファイル\SpecialChar menuseparator
19384 名前をつけて保存\SpecialChar ldots
19385
19386 \family default
19387 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19388 \end_layout
19389
19390 \begin_layout Labeling
19391 \labelwidthstring 00.00.0000
19392 SVNコマンド: 
19393 \begin_inset space ~
19394 \end_inset
19395
19396
19397 \begin_inset Newline newline
19398 \end_inset
19399
19400
19401 \begin_inset Flex Code
19402 status collapsed
19403
19404 \begin_layout Plain Layout
19405 svn copy -q "<ファイル名>" "<新ファイル名>"
19406 \end_layout
19407
19408 \end_inset
19409
19410
19411 \begin_inset space ~
19412 \end_inset
19413
19414
19415 \begin_inset Newline newline
19416 \end_inset
19417
19418
19419 \begin_inset Flex Code
19420 status collapsed
19421
19422 \begin_layout Plain Layout
19423 svn commit
19424 \end_layout
19425
19426 \end_inset
19427
19428
19429 \end_layout
19430
19431 \begin_layout Subsubsection
19432 ファイル名変更
19433 \end_layout
19434
19435 \begin_layout Standard
19436 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19437 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19438 ァイルの相対パスは,(
19439 \family sans
19440 ファイル\SpecialChar menuseparator
19441 名前をつけて保存\SpecialChar ldots
19442
19443 \family default
19444 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19445 \end_layout
19446
19447 \begin_layout Labeling
19448 \labelwidthstring 00.00.0000
19449 SVNコマンド: 
19450 \begin_inset space ~
19451 \end_inset
19452
19453
19454 \begin_inset Newline newline
19455 \end_inset
19456
19457
19458 \begin_inset Flex Code
19459 status collapsed
19460
19461 \begin_layout Plain Layout
19462 svn move -q add "<ファイル名>" "<新ファイル名>"
19463 \end_layout
19464
19465 \end_inset
19466
19467
19468 \begin_inset Newline newline
19469 \end_inset
19470
19471
19472 \begin_inset Flex Code
19473 status collapsed
19474
19475 \begin_layout Plain Layout
19476 svn commit
19477 \end_layout
19478
19479 \end_inset
19480
19481
19482 \end_layout
19483
19484 \begin_layout Subsubsection
19485 \begin_inset CommandInset label
19486 LatexCommand label
19487 name "subsec:レポジトリからSVN同期"
19488
19489 \end_inset
19490
19491 レポジトリを使ったローカルディレクトリの同期
19492 \begin_inset Foot
19493 status collapsed
19494
19495 \begin_layout Plain Layout
19496 このコマンドは,subversion 
19497 \begin_inset Formula $\geqq1.5$
19498 \end_inset
19499
19500 でのみ動作することに注意してください.
19501 \end_layout
19502
19503 \end_inset
19504
19505
19506 \end_layout
19507
19508 \begin_layout Standard
19509 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19510 \begin_inset Flex Code
19511 status collapsed
19512
19513 \begin_layout Plain Layout
19514 .tex
19515 \end_layout
19516
19517 \end_inset
19518
19519 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19520 は,文書のおいてあるツリー全体の更新をサポートします
19521 \begin_inset Foot
19522 status collapsed
19523
19524 \begin_layout Plain Layout
19525 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19526 \end_layout
19527
19528 \end_inset
19529
19530 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19531
19532 \end_layout
19533
19534 \begin_layout Standard
19535 \begin_inset Flex Code
19536 status collapsed
19537
19538 \begin_layout Plain Layout
19539 ローカル辞書をレポジトリを使って更新
19540 \end_layout
19541
19542 \end_inset
19543
19544 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19545 場合には,更新が開始される前にユーザに警告が与えられます.
19546 \end_layout
19547
19548 \begin_layout Labeling
19549 \labelwidthstring 00.00.0000
19550 SVNコマンド: 
19551 \begin_inset space ~
19552 \end_inset
19553
19554
19555 \begin_inset Newline newline
19556 \end_inset
19557
19558
19559 \begin_inset Flex Code
19560 status collapsed
19561
19562 \begin_layout Plain Layout
19563 svn diff $path(変更が発見された場合には通知します)
19564 \begin_inset Newline newline
19565 \end_inset
19566
19567 svn update --accept mine-full $path
19568 \end_layout
19569
19570 \end_inset
19571
19572
19573 \end_layout
19574
19575 \begin_layout Standard
19576 ここで
19577 \begin_inset Flex Code
19578 status collapsed
19579
19580 \begin_layout Plain Layout
19581 $path
19582 \end_layout
19583
19584 \end_inset
19585
19586 は文書のパスを示します.
19587 \end_layout
19588
19589 \begin_layout Subsubsection
19590 履歴を表示
19591 \end_layout
19592
19593 \begin_layout Standard
19594 これは,SVN文書の全履歴を表示します.
19595 \begin_inset Flex Code
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599 svn log 
19600 \begin_inset Quotes qld
19601 \end_inset
19602
19603 <ファイル名>
19604 \begin_inset Quotes qld
19605 \end_inset
19606
19607
19608 \end_layout
19609
19610 \end_inset
19611
19612 の出力がブラウザに表示されます.
19613 \end_layout
19614
19615 \begin_layout Subsubsection
19616 ファイルロック
19617 \begin_inset CommandInset label
19618 LatexCommand label
19619 name "subsec:SVNファイルロック"
19620
19621 \end_inset
19622
19623
19624 \end_layout
19625
19626 \begin_layout Standard
19627 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19628 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19629 するための,何らかのロック機構を導入することが考えられます.
19630 \end_layout
19631
19632 \begin_layout Standard
19633 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19634 \begin_inset Flex Code
19635 status collapsed
19636
19637 \begin_layout Plain Layout
19638 svn:needs-lock
19639 \end_layout
19640
19641 \end_inset
19642
19643 svnファイル特性に依拠した書き込み権限の自動設定(第
19644 \begin_inset CommandInset ref
19645 LatexCommand ref
19646 reference "subsec:自動ロック特性"
19647
19648 \end_inset
19649
19650 節を参照)です
19651 \begin_inset Foot
19652 status collapsed
19653
19654 \begin_layout Plain Layout
19655 \begin_inset Flex URL
19656 status open
19657
19658 \begin_layout Plain Layout
19659
19660 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19661 \end_layout
19662
19663 \end_inset
19664
19665
19666 \end_layout
19667
19668 \end_inset
19669
19670 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19671 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19672 り替わります.これは特に,\SpecialChar LyX
19673 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19674 \end_layout
19675
19676 \begin_layout Itemize
19677 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19678 \emph on
19679 チェックアウト
19680 \emph default
19681 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19682 \end_layout
19683
19684 \begin_layout Itemize
19685 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19686 \emph on
19687 チェックイン
19688 \emph default
19689 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19690 \begin_inset Foot
19691 status collapsed
19692
19693 \begin_layout Plain Layout
19694 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19695 \end_layout
19696
19697 \end_inset
19698
19699 ,書き込みロックの解放のみが行われます.
19700 \end_layout
19701
19702 \begin_layout Standard
19703 SVNコマンド:
19704 \end_layout
19705
19706 \begin_layout Labeling
19707 \labelwidthstring 00.00.0000
19708 チェックイン: 
19709 \begin_inset Flex Code
19710 status collapsed
19711
19712 \begin_layout Plain Layout
19713 svn commit -q -m
19714 \begin_inset Quotes erd
19715 \end_inset
19716
19717 <説明>
19718 \begin_inset Quotes erd
19719 \end_inset
19720
19721  
19722 \begin_inset Quotes eld
19723 \end_inset
19724
19725 <ファイル名>
19726 \begin_inset Quotes erd
19727 \end_inset
19728
19729
19730 \end_layout
19731
19732 \end_inset
19733
19734
19735 \begin_inset Newline newline
19736 \end_inset
19737
19738
19739 \begin_inset Flex Code
19740 status collapsed
19741
19742 \begin_layout Plain Layout
19743 svn unlock 
19744 \begin_inset Quotes eld
19745 \end_inset
19746
19747 <ファイル名>
19748 \begin_inset Quotes erd
19749 \end_inset
19750
19751
19752 \end_layout
19753
19754 \end_inset
19755
19756
19757 \end_layout
19758
19759 \begin_layout Labeling
19760 \labelwidthstring 00.00.0000
19761 チェックアウト: 
19762 \begin_inset Flex Code
19763 status collapsed
19764
19765 \begin_layout Plain Layout
19766 svn update 
19767 \begin_inset Quotes eld
19768 \end_inset
19769
19770 <ファイル名>
19771 \begin_inset Quotes erd
19772 \end_inset
19773
19774
19775 \end_layout
19776
19777 \end_inset
19778
19779
19780 \begin_inset Newline newline
19781 \end_inset
19782
19783
19784 \begin_inset Flex Code
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 svn unlock 
19789 \begin_inset Quotes eld
19790 \end_inset
19791
19792 <ファイル名>
19793 \begin_inset Quotes erd
19794 \end_inset
19795
19796
19797 \end_layout
19798
19799 \end_inset
19800
19801
19802 \end_layout
19803
19804 \begin_layout Subsubsection
19805 自動ロック特性
19806 \begin_inset CommandInset label
19807 LatexCommand label
19808 name "subsec:自動ロック特性"
19809
19810 \end_inset
19811
19812
19813 \end_layout
19814
19815 \begin_layout Standard
19816 上述したような
19817 \begin_inset Flex Code
19818 status collapsed
19819
19820 \begin_layout Plain Layout
19821 .lyx
19822 \end_layout
19823
19824 \end_inset
19825
19826 ファイルに対する書き込み権限の自動設定は,
19827 \begin_inset Flex MenuItem
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 ファイル\SpecialChar menuseparator
19832 バージョン管理\SpecialChar menuseparator
19833 ロック特性を使用
19834 \end_layout
19835
19836 \end_inset
19837
19838 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
19839 \end_layout
19840
19841 \begin_layout Standard
19842 SVNコマンド:
19843 \end_layout
19844
19845 \begin_layout Labeling
19846 \labelwidthstring 00.00.0000
19847 チェックイン: 
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 svn propset svn:needs-lock ON 
19853 \begin_inset Quotes eld
19854 \end_inset
19855
19856 <ファイル名>
19857 \begin_inset Quotes erd
19858 \end_inset
19859
19860
19861 \end_layout
19862
19863 \end_inset
19864
19865
19866 \end_layout
19867
19868 \begin_layout Labeling
19869 \labelwidthstring 00.00.0000
19870 チェックアウト: 
19871 \begin_inset Flex Code
19872 status collapsed
19873
19874 \begin_layout Plain Layout
19875 svn propdel svn:needs-lock 
19876 \begin_inset Quotes eld
19877 \end_inset
19878
19879 <ファイル名>
19880 \begin_inset Quotes erd
19881 \end_inset
19882
19883
19884 \end_layout
19885
19886 \end_inset
19887
19888
19889 \end_layout
19890
19891 \begin_layout Subsubsection
19892 \begin_inset CommandInset label
19893 LatexCommand label
19894 name "subsec:VCS改訂情報"
19895
19896 \end_inset
19897
19898 文書の改訂情報
19899 \end_layout
19900
19901 \begin_layout Standard
19902 文書中で改訂情報を有効化するにはいくつかの方法があります.
19903 \end_layout
19904
19905 \begin_layout Itemize
19906 \SpecialChar LyX
19907 による直接サポート
19908 \end_layout
19909
19910 \begin_deeper
19911 \begin_layout Itemize
19912 ツリー改訂情報(
19913 \begin_inset Flex Code
19914 status collapsed
19915
19916 \begin_layout Plain Layout
19917 vcs-tree-revision
19918 \end_layout
19919
19920 \end_inset
19921
19922 ).
19923 \begin_inset Flex Code
19924 status collapsed
19925
19926 \begin_layout Plain Layout
19927 svnversion
19928 \end_layout
19929
19930 \end_inset
19931
19932 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
19933 \end_layout
19934
19935 \begin_layout Standard
19936 \align center
19937 \begin_inset Tabular
19938 <lyxtabular version="3" rows="6" columns="2">
19939 <features tabularvalignment="middle">
19940 <column alignment="center" valignment="top">
19941 <column alignment="center" valignment="top">
19942 <row>
19943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19944 \begin_inset Text
19945
19946 \begin_layout Plain Layout
19947 出力
19948 \end_layout
19949
19950 \end_inset
19951 </cell>
19952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19953 \begin_inset Text
19954
19955 \begin_layout Plain Layout
19956 意味
19957 \end_layout
19958
19959 \end_inset
19960 </cell>
19961 </row>
19962 <row>
19963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19964 \begin_inset Text
19965
19966 \begin_layout Plain Layout
19967 4123:4168
19968 \end_layout
19969
19970 \end_inset
19971 </cell>
19972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19973 \begin_inset Text
19974
19975 \begin_layout Plain Layout
19976 改訂版の混合した作業コピー
19977 \end_layout
19978
19979 \end_inset
19980 </cell>
19981 </row>
19982 <row>
19983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19984 \begin_inset Text
19985
19986 \begin_layout Plain Layout
19987 4168M
19988 \end_layout
19989
19990 \end_inset
19991 </cell>
19992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19993 \begin_inset Text
19994
19995 \begin_layout Plain Layout
19996 修正された作業コピー
19997 \end_layout
19998
19999 \end_inset
20000 </cell>
20001 </row>
20002 <row>
20003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20004 \begin_inset Text
20005
20006 \begin_layout Plain Layout
20007 4123S
20008 \end_layout
20009
20010 \end_inset
20011 </cell>
20012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20013 \begin_inset Text
20014
20015 \begin_layout Plain Layout
20016 スイッチされた作業コピー
20017 \end_layout
20018
20019 \end_inset
20020 </cell>
20021 </row>
20022 <row>
20023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20024 \begin_inset Text
20025
20026 \begin_layout Plain Layout
20027 4123P
20028 \end_layout
20029
20030 \end_inset
20031 </cell>
20032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20033 \begin_inset Text
20034
20035 \begin_layout Plain Layout
20036 チェックアウト頻度が低かったことによる不完全な作業コピー
20037 \end_layout
20038
20039 \end_inset
20040 </cell>
20041 </row>
20042 <row>
20043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20044 \begin_inset Text
20045
20046 \begin_layout Plain Layout
20047 4123:4168MS
20048 \end_layout
20049
20050 \end_inset
20051 </cell>
20052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20053 \begin_inset Text
20054
20055 \begin_layout Plain Layout
20056 改訂版が混合し,修正され,スイッチされた作業コピー
20057 \end_layout
20058
20059 \end_inset
20060 </cell>
20061 </row>
20062 </lyxtabular>
20063
20064 \end_inset
20065
20066
20067 \end_layout
20068
20069 \begin_layout Itemize
20070 ファイル改訂情報.
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 svn
20076 \begin_inset space ~
20077 \end_inset
20078
20079 info
20080 \begin_inset space ~
20081 \end_inset
20082
20083 --xml
20084 \begin_inset space ~
20085 \end_inset
20086
20087 file.lyx
20088 \end_layout
20089
20090 \end_inset
20091
20092 の出力を解析したものが返されます.サポートされるフラグは
20093 \end_layout
20094
20095 \begin_deeper
20096 \begin_layout Itemize
20097 最終コミットのバージョン番号(
20098 \begin_inset Flex Code
20099 status collapsed
20100
20101 \begin_layout Plain Layout
20102 vcs-revision
20103 \end_layout
20104
20105 \end_inset
20106
20107
20108 \end_layout
20109
20110 \begin_layout Itemize
20111 最終コミットの著者(
20112 \begin_inset Flex Code
20113 status collapsed
20114
20115 \begin_layout Plain Layout
20116 vcs-author
20117 \end_layout
20118
20119 \end_inset
20120
20121
20122 \end_layout
20123
20124 \begin_layout Itemize
20125 最終コミットの日付(
20126 \begin_inset Flex Code
20127 status collapsed
20128
20129 \begin_layout Plain Layout
20130 vcs-date
20131 \end_layout
20132
20133 \end_inset
20134
20135
20136 \end_layout
20137
20138 \begin_layout Itemize
20139 最終コミットの時間(
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 vcs-time
20145 \end_layout
20146
20147 \end_inset
20148
20149
20150 \end_layout
20151
20152 \end_deeper
20153 \begin_layout Standard
20154 これらの情報は,情報差込枠で得ることができます(例:
20155 \begin_inset Flex Code
20156 status collapsed
20157
20158 \begin_layout Plain Layout
20159 info-insert buffer vcs-date
20160 \end_layout
20161
20162 \end_inset
20163
20164 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20165 \begin_inset Flex Code
20166 status collapsed
20167
20168 \begin_layout Plain Layout
20169 .svn
20170 \end_layout
20171
20172 \end_inset
20173
20174 ディレクトリがあるときのみ)利用可能です.
20175 \end_layout
20176
20177 \end_deeper
20178 \begin_layout Itemize
20179 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20180 \begin_inset Foot
20181 status collapsed
20182
20183 \begin_layout Plain Layout
20184 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20185 \end_layout
20186
20187 \end_inset
20188
20189 .簡単に言えば,ファイルキーワード特性を設定して(例:
20190 \family sans
20191 svn propset svn:keywords 'Rev' file.lyx
20192 \family default
20193 ),文書中にキーワード\SpecialChar TeX
20194 コード
20195 \begin_inset Foot
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199 これは,\SpecialChar LyX
20200 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20201 \end_layout
20202
20203 \end_inset
20204
20205 タグ(例:
20206 \begin_inset Flex Code
20207 status collapsed
20208
20209 \begin_layout Plain Layout
20210 $Rev$
20211 \end_layout
20212
20213 \end_inset
20214
20215 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例:
20216 \begin_inset Flex Code
20217 status collapsed
20218
20219 \begin_layout Plain Layout
20220 $Rev: 59 $
20221 \end_layout
20222
20223 \end_inset
20224
20225 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20226 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20227 中の
20228 \begin_inset Formula $Rev$
20229 \end_inset
20230
20231 という数式表現が,すべて
20232 \begin_inset Formula $Rev:59$
20233 \end_inset
20234
20235 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20236 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev: 59」という文字列全体が表示されてしまいま
20237 す.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20238 がこれを直接サポートすることは,難しそうです.
20239 \end_layout
20240
20241 \begin_layout Subsection
20242 SVNとWindows環境
20243 \end_layout
20244
20245 \begin_layout Quote
20246 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20247  A.
20248  ルービン
20249 \end_layout
20250
20251 \begin_layout Subsubsection
20252 準備
20253 \end_layout
20254
20255 \begin_layout Standard
20256 \SpecialChar LyX
20257 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20258 トプログラムのWindows用インストーラは
20259 \begin_inset CommandInset href
20260 LatexCommand href
20261 name "CollabNet"
20262 target "http://www.collab.net/nonav/downloads/subversion/"
20263 literal "false"
20264
20265 \end_inset
20266
20267 にあります.ユーザは
20268 \begin_inset CommandInset href
20269 LatexCommand href
20270 name "TortoiseSVN"
20271 target "http://tortoisesvn.tigris.org/"
20272 literal "false"
20273
20274 \end_inset
20275
20276 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20277 外部で行う操
20278 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20279 自身が使用するクライアントプログラムの代わりとは成りませんので
20280 ,注意してください.
20281 \end_layout
20282
20283 \begin_layout Subsubsection
20284 文書をSubversion管理下に置くには
20285 \end_layout
20286
20287 \begin_layout Standard
20288 \SpecialChar LyX
20289 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20290 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20291 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20292 の外部で行います
20293 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20294 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20295 既に存在し,新規プロジェクトを
20296 \begin_inset Flex Code
20297 status collapsed
20298
20299 \begin_layout Plain Layout
20300 C:
20301 \backslash
20302 new project
20303 \end_layout
20304
20305 \end_inset
20306
20307 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20308 \begin_inset Flex Code
20309 status collapsed
20310
20311 \begin_layout Plain Layout
20312 svn --help
20313 \end_layout
20314
20315 \end_inset
20316
20317 を実行してください.
20318 \end_layout
20319
20320 \begin_layout Enumerate
20321 Windows Explorerで
20322 \begin_inset Flex Code
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326 C:
20327 \backslash
20328 new project
20329 \end_layout
20330
20331 \end_inset
20332
20333 を見つけ出して右クリックし,
20334 \begin_inset Flex MenuItem
20335 status collapsed
20336
20337 \begin_layout Plain Layout
20338 TortoiseSVN\SpecialChar menuseparator
20339 Repo-browser
20340 \end_layout
20341
20342 \end_inset
20343
20344 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20345 \end_layout
20346
20347 \begin_layout Enumerate
20348 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20349 \begin_inset Flex MenuItem
20350 status collapsed
20351
20352 \begin_layout Plain Layout
20353 Create folder\SpecialChar ldots
20354
20355 \end_layout
20356
20357 \end_inset
20358
20359 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20360 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20361 \end_layout
20362
20363 \begin_layout Enumerate
20364 再度
20365 \begin_inset Flex Code
20366 status collapsed
20367
20368 \begin_layout Plain Layout
20369 C:
20370 \backslash
20371 new project
20372 \end_layout
20373
20374 \end_inset
20375
20376 を右クリックし,今度は
20377 \begin_inset Flex MenuItem
20378 status collapsed
20379
20380 \begin_layout Plain Layout
20381 SVN Checkout\SpecialChar ldots
20382
20383 \end_layout
20384
20385 \end_inset
20386
20387 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20388 \begin_inset Flex Code
20389 status collapsed
20390
20391 \begin_layout Plain Layout
20392 C:
20393 \backslash
20394 new project
20395 \end_layout
20396
20397 \end_inset
20398
20399 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20400 \begin_inset Flex Code
20401 status collapsed
20402
20403 \begin_layout Plain Layout
20404 C:
20405 \backslash
20406 new project
20407 \end_layout
20408
20409 \end_inset
20410
20411 の下に
20412 \begin_inset Flex Code
20413 status collapsed
20414
20415 \begin_layout Plain Layout
20416 .svn
20417 \end_layout
20418
20419 \end_inset
20420
20421 ディレクトリが作成されます.
20422 \end_layout
20423
20424 \begin_layout Enumerate
20425 \SpecialChar LyX
20426 で文書を新規作成するか開くかして,
20427 \begin_inset Flex MenuItem
20428 status collapsed
20429
20430 \begin_layout Plain Layout
20431 ファイル\SpecialChar menuseparator
20432 バージョン管理\SpecialChar menuseparator
20433 登録
20434 \end_layout
20435
20436 \end_inset
20437
20438 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20439 \end_layout
20440
20441 \begin_layout Standard
20442 爾後,
20443 \begin_inset Flex MenuItem
20444 status collapsed
20445
20446 \begin_layout Plain Layout
20447 ファイル\SpecialChar menuseparator
20448 バージョン管理
20449 \end_layout
20450
20451 \end_inset
20452
20453 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20454 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20455 \end_layout
20456
20457 \begin_layout Subsubsection
20458 Windows下でSVNと共にSSHトンネルを使うには
20459 \end_layout
20460
20461 \begin_layout Standard
20462 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20463 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20464 ることを覚悟しておいてください.
20465 \end_layout
20466
20467 \begin_layout Enumerate
20468 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20469 \begin_inset Flex Code
20470 status collapsed
20471
20472 \begin_layout Plain Layout
20473 svn --version
20474 \end_layout
20475
20476 \end_inset
20477
20478 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20479 \end_layout
20480
20481 \begin_layout Enumerate
20482 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20483 \begin_inset Foot
20484 status open
20485
20486 \begin_layout Plain Layout
20487 \begin_inset Flex URL
20488 status collapsed
20489
20490 \begin_layout Plain Layout
20491
20492 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20493 \end_layout
20494
20495 \end_inset
20496
20497
20498 \end_layout
20499
20500 \end_inset
20501
20502 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20503 護などを加えない
20504 \begin_inset Flex Ruby
20505 status collapsed
20506
20507 \begin_layout Plain Layout
20508
20509 \begin_inset Argument post:1
20510 status collapsed
20511
20512 \begin_layout Plain Layout
20513 キー
20514 \end_layout
20515
20516 \end_inset
20517
20518
20519 \end_layout
20520
20521 \end_inset
20522
20523 のみを使用することとします.
20524 \end_layout
20525
20526 \begin_deeper
20527 \begin_layout Enumerate
20528 \begin_inset Flex Code
20529 status collapsed
20530
20531 \begin_layout Plain Layout
20532 puttygen
20533 \end_layout
20534
20535 \end_inset
20536
20537 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20538 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20539 s file:」編集フィールドから,直接サーバの
20540 \begin_inset Flex Code
20541 status collapsed
20542
20543 \begin_layout Plain Layout
20544 ~/.ssh/authorized_keys
20545 \end_layout
20546
20547 \end_inset
20548
20549 または
20550 \begin_inset Flex Code
20551 status collapsed
20552
20553 \begin_layout Plain Layout
20554 authorized_keys2
20555 \end_layout
20556
20557 \end_inset
20558
20559 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20560 \end_layout
20561
20562 \begin_layout Enumerate
20563 Puttyのplinkを入手してください.SVNのconfigファイル
20564 \begin_inset Foot
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568 正確なパスはWindowsのバージョンに依りますが,通常は
20569 \begin_inset Flex Code
20570 status collapsed
20571
20572 \begin_layout Plain Layout
20573 c:
20574 \backslash
20575 Documents and Settings
20576 \backslash
20577 user
20578 \backslash
20579 Application Data
20580 \backslash
20581 Subversion
20582 \backslash
20583 config
20584 \end_layout
20585
20586 \end_inset
20587
20588
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 AppData
20594 \backslash
20595 Roaming
20596 \backslash
20597 Subversion
20598 \end_layout
20599
20600 \end_inset
20601
20602 辺りにあります.
20603 \end_layout
20604
20605 \end_inset
20606
20607 中の
20608 \begin_inset Flex Code
20609 status collapsed
20610
20611 \begin_layout Plain Layout
20612 [tunnels]
20613 \end_layout
20614
20615 \end_inset
20616
20617 セクションにsshコマンドを設定してください.例:
20618 \begin_inset Flex Code
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20623 \end_layout
20624
20625 \end_inset
20626
20627
20628 \begin_inset Foot
20629 status collapsed
20630
20631 \begin_layout Plain Layout
20632 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20633 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20634 \end_layout
20635
20636 \end_inset
20637
20638
20639 \end_layout
20640
20641 \end_deeper
20642 \begin_layout Enumerate
20643 SVNアーカイブをチェックアウトしてください.例:
20644 \begin_inset Newline newline
20645 \end_inset
20646
20647
20648 \begin_inset Flex Code
20649 status collapsed
20650
20651 \begin_layout Plain Layout
20652 svn co svn+ssh://user@server/repository_path
20653 \end_layout
20654
20655 \end_inset
20656
20657
20658 \end_layout
20659
20660 \begin_layout Subsubsection
20661 行末変換
20662 \end_layout
20663
20664 \begin_layout Standard
20665 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20666 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20667 の機能に関する限り問題になりま
20668 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20669 \begin_inset Flex Code
20670 status collapsed
20671
20672 \begin_layout Plain Layout
20673 native
20674 \end_layout
20675
20676 \end_inset
20677
20678 モードに切り替える際
20679 \begin_inset Foot
20680 status collapsed
20681
20682 \begin_layout Plain Layout
20683 手短には
20684 \begin_inset Flex Code
20685 status collapsed
20686
20687 \begin_layout Plain Layout
20688 svn propset svn:eol-style native FILE_NAME
20689 \end_layout
20690
20691 \end_inset
20692
20693
20694 \end_layout
20695
20696 \end_inset
20697
20698 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20699 \begin_inset Foot
20700 status collapsed
20701
20702 \begin_layout Plain Layout
20703 \begin_inset Flex URL
20704 status collapsed
20705
20706 \begin_layout Plain Layout
20707
20708 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20709 \end_layout
20710
20711 \end_inset
20712
20713
20714 \end_layout
20715
20716 \end_inset
20717
20718
20719 \end_layout
20720
20721 \begin_layout Subsection
20722 \SpecialChar LyX
20723 におけるGITコマンド
20724 \end_layout
20725
20726 \begin_layout Standard
20727 \SpecialChar LyX
20728 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
20729 \family sans
20730 ファイル\SpecialChar menuseparator
20731 バージョン管理
20732 \family default
20733 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
20734 は,GIT
20735  1.7に対して試験を行っています
20736 \begin_inset Foot
20737 status collapsed
20738
20739 \begin_layout Plain Layout
20740 Windowsユーザーはgitにパスが通っていることを確認する必要があります.これは,\SpecialChar LyX
20741 中から
20742 \family sans
20743 ツール\SpecialChar menuseparator
20744 設定\SpecialChar menuseparator
20745 パス\SpecialChar menuseparator
20746 PATH接頭辞
20747 \family default
20748 で設定できます.
20749 \end_layout
20750
20751 \end_inset
20752
20753
20754 \end_layout
20755
20756 \begin_layout Standard
20757 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
20758 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
20759 ミットを行います.ローカルリポジトリは,GITコマンドの
20760 \begin_inset Flex Code
20761 status open
20762
20763 \begin_layout Plain Layout
20764 pull
20765 \end_layout
20766
20767 \end_inset
20768
20769 または
20770 \begin_inset Flex Code
20771 status open
20772
20773 \begin_layout Plain Layout
20774 push
20775 \end_layout
20776
20777 \end_inset
20778
20779 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
20780 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
20781 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
20782 \begin_inset Flex Code
20783 status open
20784
20785 \begin_layout Plain Layout
20786 pull
20787 \end_layout
20788
20789 \end_inset
20790
20791 または
20792 \begin_inset Flex Code
20793 status open
20794
20795 \begin_layout Plain Layout
20796 push
20797 \end_layout
20798
20799 \end_inset
20800
20801 の操作を行う必要があります.
20802 \end_layout
20803
20804 \begin_layout Subsubsection
20805 登録
20806 \end_layout
20807
20808 \begin_layout Standard
20809 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20810 \family sans
20811 登録
20812 \family default
20813 項目は表示されません.
20814 \end_layout
20815
20816 \begin_layout Standard
20817 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
20818 \emph on
20819 のみ
20820 \emph default
20821 (すなわち
20822 \begin_inset Flex Code
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 .git/index
20827 \end_layout
20828
20829 \end_inset
20830
20831 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20832 \end_layout
20833
20834 \begin_layout Standard
20835 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20836 \end_layout
20837
20838 \begin_layout Standard
20839 実行されるGITコマンドは,
20840 \begin_inset Flex Code
20841 status collapsed
20842
20843 \begin_layout Plain Layout
20844 git add "<ファイル名>"
20845 \end_layout
20846
20847 \end_inset
20848
20849 です.
20850 \end_layout
20851
20852 \begin_layout Standard
20853 スイッチの説明は
20854 \begin_inset Flex Code
20855 status collapsed
20856
20857 \begin_layout Plain Layout
20858 man git
20859 \end_layout
20860
20861 \end_inset
20862
20863 をお読みください.
20864 \end_layout
20865
20866 \begin_layout Subsubsection
20867 変更をチェックイン
20868 \end_layout
20869
20870 \begin_layout Standard
20871 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20872 \end_layout
20873
20874 \begin_layout Standard
20875 GITコマンド:
20876 \begin_inset Flex Code
20877 status collapsed
20878
20879 \begin_layout Plain Layout
20880 git commit -q -m
20881 \begin_inset Quotes erd
20882 \end_inset
20883
20884 <入力した説明文>
20885 \begin_inset Quotes erd
20886 \end_inset
20887
20888  "<ファイル名>"
20889 \end_layout
20890
20891 \end_inset
20892
20893
20894 \end_layout
20895
20896 \begin_layout Subsubsection
20897 リポジトリ版に戻す
20898 \end_layout
20899
20900 \begin_layout Standard
20901 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20902 \end_layout
20903
20904 \begin_layout Standard
20905 GITコマンド:
20906 \begin_inset Flex Code
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 git checkout -q 
20911 \begin_inset Quotes qld
20912 \end_inset
20913
20914 <ファイル名>
20915 \begin_inset Quotes qld
20916 \end_inset
20917
20918
20919 \end_layout
20920
20921 \end_inset
20922
20923
20924 \end_layout
20925
20926 \begin_layout Subsubsection
20927 ファイル名変更
20928 \end_layout
20929
20930 \begin_layout Standard
20931 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20932 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20933 ァイルの相対パスは,(
20934 \family sans
20935 ファイル\SpecialChar menuseparator
20936 名前をつけて保存\SpecialChar ldots
20937
20938 \family default
20939 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20940 \end_layout
20941
20942 \begin_layout Labeling
20943 \labelwidthstring 00.00.0000
20944 GITコマンド: 
20945 \begin_inset space ~
20946 \end_inset
20947
20948
20949 \begin_inset Newline newline
20950 \end_inset
20951
20952
20953 \begin_inset Flex Code
20954 status collapsed
20955
20956 \begin_layout Plain Layout
20957 git mv "<ファイル名>" "<新ファイル名>"
20958 \end_layout
20959
20960 \end_inset
20961
20962
20963 \begin_inset Newline newline
20964 \end_inset
20965
20966
20967 \begin_inset Flex Code
20968 status collapsed
20969
20970 \begin_layout Plain Layout
20971 git commit
20972 \end_layout
20973
20974 \end_inset
20975
20976
20977 \end_layout
20978
20979 \begin_layout Subsubsection
20980 履歴を表示
20981 \end_layout
20982
20983 \begin_layout Standard
20984 これは,GIT文書の全履歴を表示します.
20985 \begin_inset Flex Code
20986 status collapsed
20987
20988 \begin_layout Plain Layout
20989 git log 
20990 \begin_inset Quotes qld
20991 \end_inset
20992
20993 <ファイル名>
20994 \begin_inset Quotes qld
20995 \end_inset
20996
20997
20998 \end_layout
20999
21000 \end_inset
21001
21002 の出力がブラウザに表示されます.
21003 \end_layout
21004
21005 \begin_layout Subsubsection
21006 改訂情報
21007 \end_layout
21008
21009 \begin_layout Standard
21010 \SpecialChar LyX
21011 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
21012 \begin_inset Flex Code
21013 status collapsed
21014
21015 \begin_layout Plain Layout
21016 git log -n 1 --pretty=format:%H%n%an%n%ai
21017 \end_layout
21018
21019 \end_inset
21020
21021 によって抽出されます.ツリーバージョン情報は,
21022 \begin_inset Flex Code
21023 status collapsed
21024
21025 \begin_layout Plain Layout
21026 git describe --abbrev --dirty --long
21027 \end_layout
21028
21029 \end_inset
21030
21031 で取得されます.詳細については,第
21032 \begin_inset CommandInset ref
21033 LatexCommand ref
21034 reference "subsec:VCS改訂情報"
21035
21036 \end_inset
21037
21038 節を参照してください.
21039 \end_layout
21040
21041 \begin_layout Subsection
21042 さらなる調整
21043 \end_layout
21044
21045 \begin_layout Standard
21046 最近になって
21047 \begin_inset Flex Code
21048 status collapsed
21049
21050 \begin_layout Plain Layout
21051 vc-command
21052 \end_layout
21053
21054 \end_inset
21055
21056 機構が付け加えられたおかげで,\SpecialChar LyX
21057 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21058 \end_layout
21059
21060 \begin_layout Standard
21061 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21062 \end_layout
21063
21064 \begin_layout Description
21065 コミット: 
21066 \begin_inset Flex Code
21067 status collapsed
21068
21069 \begin_layout Plain Layout
21070 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21071 \end_layout
21072
21073 \end_inset
21074
21075
21076 \end_layout
21077
21078 \begin_layout Description
21079 元に戻す: 
21080 \begin_inset Flex Code
21081 status collapsed
21082
21083 \begin_layout Plain Layout
21084 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21085 \end_layout
21086
21087 \end_inset
21088
21089
21090 \end_layout
21091
21092 \begin_layout Subsection
21093 バージョン管理と文書比較
21094 \end_layout
21095
21096 \begin_layout Standard
21097 バージョン管理は,通常
21098 \begin_inset Flex Code
21099 status collapsed
21100
21101 \begin_layout Plain Layout
21102 diff
21103 \end_layout
21104
21105 \end_inset
21106
21107 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21108 ファイルの場合には,あ
21109 まり便利ではありません.そこで,\SpecialChar LyX
21110 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21111
21112 \begin_inset Flex Code
21113 status collapsed
21114
21115 \begin_layout Plain Layout
21116 vc-compare
21117 \end_layout
21118
21119 \end_inset
21120
21121 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21122 関数説明書を参照),もう1つはツールバーアイコン
21123 \begin_inset Info
21124 type  "icon"
21125 arg   "vc-compare"
21126 \end_inset
21127
21128 による方法,さらにはメニュー項目
21129 \begin_inset Info
21130 type  "menu"
21131 arg   "vc-compare"
21132 \end_inset
21133
21134 を使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
21135 \begin_inset Flex MenuItem
21136 status collapsed
21137
21138 \begin_layout Plain Layout
21139 0
21140 \end_layout
21141
21142 \end_inset
21143
21144 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21145 \end_layout
21146
21147 \begin_layout Standard
21148 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21149 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
21150 \begin_inset Flex Code
21151 status collapsed
21152
21153 \begin_layout Plain Layout
21154 HEAD~X
21155 \end_layout
21156
21157 \end_inset
21158
21159
21160 \lang english
21161 .
21162 \lang japanese
21163 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21164 \end_layout
21165
21166 \begin_layout Section
21167 文芸プログラミング
21168 \end_layout
21169
21170 \begin_layout Standard
21171
21172 \noun on
21173 Kayvan Sylvan
21174 \noun default
21175 (kayvan@sylvan.com)改訂 
21176 \noun on
21177 Edmar Wienskoski Jr.
21178 \noun default
21179 (edmar-w-jr@technologist.com)原文
21180 \end_layout
21181
21182 \begin_layout Subsection
21183 はじめに
21184 \end_layout
21185
21186 \begin_layout Standard
21187 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21188 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21189 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21190 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21191 \end_layout
21192
21193 \begin_layout Standard
21194 また,あなたが,\SpecialChar LyX
21195 の設定を変更することを厭わない程度まで\SpecialChar LyX
21196 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21197 するトピックを扱っている,\SpecialChar LyX
21198 の他の説明書で調べてください.
21199 \end_layout
21200
21201 \begin_layout Subsection
21202 文芸プログラミング
21203 \end_layout
21204
21205 \begin_layout Standard
21206 以下は,文芸プログラミング FAQからの抜粋です.
21207 \end_layout
21208
21209 \begin_layout Quotation
21210 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21211 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21212 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21213 ングのWEBスタイルは,D.
21214 \begin_inset space \thinspace{}
21215 \end_inset
21216
21217 E.
21218  Knuthが,\SpecialChar TeX
21219 組版ソフトウエアを開発中に作り出したものです.
21220 \end_layout
21221
21222 \begin_layout Standard
21223 他のエキスパートの発言です.
21224 \end_layout
21225
21226 \begin_layout Quotation
21227
21228 \emph on
21229 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21230 \end_layout
21231
21232 \begin_layout Quotation
21233 3つの際立った特徴があります.重要な順に列挙すれば,
21234 \end_layout
21235
21236 \begin_deeper
21237 \begin_layout Itemize
21238 推敲の順序が柔軟
21239 \end_layout
21240
21241 \begin_layout Itemize
21242 ブラウジングの自動サポート
21243 \end_layout
21244
21245 \begin_layout Itemize
21246 特に図式と数式を含んだドキュメンテーションの組版
21247 \end_layout
21248
21249 \end_deeper
21250 \begin_layout Quotation
21251 などがあります.
21252 \end_layout
21253
21254 \begin_layout Standard
21255 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21256 \end_layout
21257
21258 \begin_layout Subsubsection
21259 書誌情報
21260 \end_layout
21261
21262 \begin_layout Standard
21263 完全な文芸プログラミング FAQは
21264 \end_layout
21265
21266 \begin_layout Quote
21267 Literate Programming FAQ 
21268 \begin_inset Flex URL
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272
21273 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21274 \end_layout
21275
21276 \end_inset
21277
21278
21279 \end_layout
21280
21281 \begin_layout Standard
21282 にあります.
21283 \end_layout
21284
21285 \begin_layout Standard
21286 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21287 を持つものもあります.私は自分で使うのに,いくつかの理由から
21288 \noun on
21289 Noweb
21290 \noun default
21291 を選びました.
21292 \end_layout
21293
21294 \begin_layout Itemize
21295 説明文書を\SpecialChar LaTeX
21296 でもHTMLでも出力できる.
21297 \end_layout
21298
21299 \begin_layout Itemize
21300 オープンアーキテクチャを持っているので,新しいフィルタをプラグインとして加えたり
21301 \begin_inset Foot
21302 status collapsed
21303
21304 \begin_layout Plain Layout
21305
21306 \emph on
21307 フィルタ
21308 \emph default
21309 は,与えられたデータストリームを読み込み,操作されたデータストリームを出力するプログラムです.このようにして,(文芸コードを含んだ)WEBファイルを,Cプログラ
21310 ムコードや\SpecialChar LaTeX
21311 コードのみを含むファイルに変換することができます.
21312 \end_layout
21313
21314 \end_inset
21315
21316 ,自分が必要な特別な処理を実行することが容易である.
21317 \end_layout
21318
21319 \begin_layout Itemize
21320 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21321 \end_layout
21322
21323 \begin_layout Itemize
21324 無料である.
21325 \end_layout
21326
21327 \begin_layout Standard
21328 Nowebのウェブページは
21329 \end_layout
21330
21331 \begin_layout Quote
21332 Nowebホームページ 
21333 \begin_inset Flex URL
21334 status collapsed
21335
21336 \begin_layout Plain Layout
21337
21338 https://www.cs.tufts.edu/~nr/noweb/
21339 \end_layout
21340
21341 \end_inset
21342
21343
21344 \end_layout
21345
21346 \begin_layout Standard
21347 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21348 \end_layout
21349
21350 \begin_layout Subsection
21351 \SpecialChar LyX
21352 とNowebを使った文芸プログラミング
21353 \end_layout
21354
21355 \begin_layout Standard
21356 \SpecialChar LyX
21357 における文芸プログラミングのサポートは,\SpecialChar LyX
21358 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21359 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21360 の機能を利用することができます.
21361 \end_layout
21362
21363 \begin_layout Subsubsection
21364 ドキュメントとコードの生成(weavingおよびtangling)
21365 \end_layout
21366
21367 \begin_layout Paragraph
21368 nowebモジュールの使用
21369 \end_layout
21370
21371 \begin_layout Standard
21372 Nowebと\SpecialChar LyX
21373 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21374 \family sans
21375 文書\SpecialChar menuseparator
21376 設定
21377 \family default
21378 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21379 web」モジュールが表示され,文書に追加できるようになっています.
21380 \end_layout
21381
21382 \begin_layout Paragraph
21383 コードの入力
21384 \end_layout
21385
21386 \begin_layout Standard
21387 \SpecialChar LyX
21388 では,
21389 \begin_inset Flex Noun
21390 status collapsed
21391
21392 \begin_layout Plain Layout
21393 Chunk
21394 \end_layout
21395
21396 \end_inset
21397
21398 という名前の拡張差込枠を使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21399 \end_layout
21400
21401 \begin_layout LyX-Code
21402 <<My code>>=
21403 \end_layout
21404
21405 \begin_layout LyX-Code
21406   code
21407 \end_layout
21408
21409 \begin_layout LyX-Code
21410   more code
21411 \end_layout
21412
21413 \begin_layout LyX-Code
21414   even more code
21415 \end_layout
21416
21417 \begin_layout LyX-Code
21418   @
21419 \end_layout
21420
21421 \begin_layout Standard
21422 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21423 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21424 これも
21425 \begin_inset Flex Noun
21426 status collapsed
21427
21428 \begin_layout Plain Layout
21429 Chunk
21430 \end_layout
21431
21432 \end_inset
21433
21434 によって取り扱われ,通常のテキスト差込枠のように見えますが,自由に空白を入れることができます.
21435 \end_layout
21436
21437 \begin_layout Standard
21438 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21439 \end_layout
21440
21441 \begin_layout LyX-Code
21442 <<My chunk>>=
21443 \end_layout
21444
21445 \begin_layout LyX-Code
21446 def some_function(args):
21447 \end_layout
21448
21449 \begin_layout LyX-Code
21450    "This is the doc string for this function."
21451 \end_layout
21452
21453 \begin_layout LyX-Code
21454    print "My args: ", args
21455 \end_layout
21456
21457 \begin_layout LyX-Code
21458 @ %def some_function
21459 \end_layout
21460
21461 \begin_layout Standard
21462 これをどのように使って,その結果相互参照がどうなるかは
21463 \emph on
21464 LIBDIR/examples/listerrors.lyx
21465 \emph default
21466 の中の文芸pythonプログラムを見るとよくわかります.
21467 \end_layout
21468
21469 \begin_layout Paragraph
21470 説明文書の生成
21471 \end_layout
21472
21473 \begin_layout Standard
21474 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21475 簡単で,通常の文書で行うように
21476 \family sans
21477 文書\SpecialChar menuseparator
21478 表示
21479 \family default
21480 等を選ぶだけです.特別な手続きは必要ありません.
21481 \end_layout
21482
21483 \begin_layout Standard
21484 理解を助けるために,\SpecialChar LyX
21485 の内部で何が起っているかを説明しておきましょう.
21486 \end_layout
21487
21488 \begin_layout Enumerate
21489
21490 \family sans
21491 文書\SpecialChar menuseparator
21492 更新
21493 \family default
21494 が選択されると,\SpecialChar LaTeX
21495 ファイルがつくられます.
21496 \end_layout
21497
21498 \begin_deeper
21499 \begin_layout Standard
21500 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21501 \begin_inset Flex MenuItem
21502 status collapsed
21503
21504 \begin_layout Plain Layout
21505 設定
21506 \end_layout
21507
21508 \end_inset
21509
21510 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21511 \end_layout
21512
21513 \end_deeper
21514 \begin_layout Enumerate
21515 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21516 による特別な処理は必要ありません.
21517 \begin_inset Flex Noun
21518 status collapsed
21519
21520 \begin_layout Plain Layout
21521 Chunk
21522 \end_layout
21523
21524 \end_inset
21525
21526 差込枠でコードを入力するのだけがポイントです.
21527 \end_layout
21528
21529 \begin_layout Enumerate
21530 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21531 は,\SpecialChar LyX
21532 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21533 への変換子
21534 \begin_inset Foot
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538 これらの変換子は,
21539 \family sans
21540 ツール\SpecialChar menuseparator
21541 設定
21542 \family default
21543 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21544 \emph on
21545 カスタマイズ篇
21546 \emph default
21547 』の「
21548 \emph on
21549 変換子
21550 \emph default
21551 」の節をご覧ください.
21552 \end_layout
21553
21554 \end_inset
21555
21556 を使って\SpecialChar LaTeX
21557 ファイルを生成します.
21558 \end_layout
21559
21560 \begin_deeper
21561 \begin_layout Standard
21562 それ以外の場合はこのステップを飛ばします.
21563 \end_layout
21564
21565 \end_deeper
21566 \begin_layout Enumerate
21567 最後に\SpecialChar LaTeX
21568 が実行され,通常の文書と同じ後処理が行われます.
21569 \end_layout
21570
21571 \begin_layout Standard
21572 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21573 \end_layout
21574
21575 \begin_layout Paragraph
21576 コードの生成
21577 \end_layout
21578
21579 \begin_layout Standard
21580 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21581 ファイルが生成されます.それから\SpecialChar LyX
21582
21583 \family typewriter
21584 Noweb->Program
21585 \family default
21586 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21587 \end_layout
21588
21589 \begin_layout Enumerate
21590 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21591 変換します).
21592 \end_layout
21593
21594 \begin_layout Enumerate
21595 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21596 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21597 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21598 \end_layout
21599
21600 \begin_layout Standard
21601 冒頭部,「変換子」設定は
21602 \end_layout
21603
21604 \begin_layout LyX-Code
21605
21606 \family typewriter
21607 build-script $$i $$r
21608 \end_layout
21609
21610 \begin_layout Standard
21611 と指定します.これは基本的に,\SpecialChar LyX
21612
21613 \begin_inset Quotes erd
21614 \end_inset
21615
21616
21617 \family typewriter
21618 build-script
21619 \family default
21620
21621 \begin_inset Quotes erd
21622 \end_inset
21623
21624 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21625 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21626 ファイルのディレクトリパスを使って呼び出すこ
21627 とを意味しています.
21628 \end_layout
21629
21630 \begin_layout Standard
21631 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21632 \end_layout
21633
21634 \begin_layout LyX-Code
21635
21636 \family sans
21637 #!/bin/sh
21638 \end_layout
21639
21640 \begin_layout LyX-Code
21641
21642 \family sans
21643 #
21644 \end_layout
21645
21646 \begin_layout LyX-Code
21647
21648 \family sans
21649 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21650 \end_layout
21651
21652 \begin_layout Standard
21653 変換子設定の次の部分は「フラグ」で,これは
21654 \end_layout
21655
21656 \begin_layout LyX-Code
21657
21658 \family typewriter
21659 parselog=$$s/scripts/listerrors
21660 \end_layout
21661
21662 \begin_layout Standard
21663 に設定されます.
21664 \begin_inset Newline newline
21665 \end_inset
21666
21667 これは,
21668 \begin_inset Quotes erd
21669 \end_inset
21670
21671 build-script
21672 \begin_inset Quotes erd
21673 \end_inset
21674
21675 プロセスが生成したエラーを
21676 \begin_inset Quotes erd
21677 \end_inset
21678
21679 listerrors
21680 \begin_inset Quotes erd
21681 \end_inset
21682
21683 プログラムを介して処理するものです.
21684 \end_layout
21685
21686 \begin_layout Standard
21687 ビルドは,通常\SpecialChar LyX
21688 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21689 は,主要ファイルとみなされるものをコピーして取り出
21690 しますが,
21691 \family typewriter
21692 Noweb→プログラム
21693 \family default
21694 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21695 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21696 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21697 \end_layout
21698
21699 \begin_layout Paragraph
21700 文章中でのプログラムの構築操作の説明
21701 \end_layout
21702
21703 \begin_layout Standard
21704 \SpecialChar LyX
21705 とNowebの統合の最後の部分は,
21706 \begin_inset Quotes eld
21707 \end_inset
21708
21709 build-script
21710 \begin_inset Quotes erd
21711 \end_inset
21712
21713  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
21714 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
21715 \end_layout
21716
21717 \begin_layout Standard
21718 以下に典型的なchunkがどのようなものかを書いておきます.
21719 \end_layout
21720
21721 \begin_layout LyX-Code
21722 <<build-script>>=
21723 \begin_inset Newline newline
21724 \end_inset
21725
21726
21727 \end_layout
21728
21729 \begin_layout LyX-Code
21730 #!/bin/sh
21731 \begin_inset Newline newline
21732 \end_inset
21733
21734
21735 \begin_inset Newline newline
21736 \end_inset
21737
21738 if [ -z "${NOWEB_SOURCE}" ]
21739 \begin_inset Newline newline
21740 \end_inset
21741
21742 then
21743 \end_layout
21744
21745 \begin_layout LyX-Code
21746 NOWEB_SOURCE=myfile.nw
21747 \begin_inset Newline newline
21748 \end_inset
21749
21750 fi
21751 \begin_inset Newline newline
21752 \end_inset
21753
21754 [...
21755  code to extract files ...
21756  use NOWEB_OUTPUT_DIR here ...]
21757 \begin_inset Newline newline
21758 \end_inset
21759
21760 [...
21761  code to compile files ...]
21762 \begin_inset Newline newline
21763 \end_inset
21764
21765 @
21766 \end_layout
21767
21768 \begin_layout Standard
21769
21770 \emph on
21771 LIBDIR/examples/listerrors.lyx
21772 \emph default
21773
21774 \emph on
21775 LIBDIR/examples/Literate.lyx
21776 \emph default
21777 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
21778 ってもらうための例です.また,
21779 \emph on
21780 LIBDIR/examples/noweb2lyx.lyx
21781 \emph default
21782 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
21783 の文芸プログラミングのサポートがプログラム言語に依存しない
21784 ことを示しています.
21785 \end_layout
21786
21787 \begin_layout Subsubsection
21788 \SpecialChar LyX
21789 の設定
21790 \end_layout
21791
21792 \begin_layout Standard
21793 すべての文芸プログラムのための設定は,
21794 \family sans
21795 ツール\SpecialChar menuseparator
21796 設定
21797 \family default
21798 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
21799 \end_layout
21800
21801 \begin_layout Description
21802 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
21803 \family sans
21804 GUI名
21805 \family default
21806
21807 \family typewriter
21808 NoWeb
21809 \family default
21810 に,拡張子を
21811 \family typewriter
21812 .nw
21813 \family default
21814 に設定してください.これによって,\SpecialChar LyX
21815 に変換プロセスの第一段階でつくられるファイルに
21816 \family typewriter
21817 .nw
21818 \family default
21819 という拡張子をつけることを指示します.
21820 \end_layout
21821
21822 \begin_layout Description
21823 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
21824 \end_layout
21825
21826 \begin_layout Description
21827
21828 \family sans
21829 NoWeb
21830 \family default
21831 ->
21832 \family sans
21833 \SpecialChar LaTeX
21834
21835 \family default
21836  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
21837 \family typewriter
21838 noweave -delay -index $$i > $$o
21839 \family default
21840 」に設定されます.
21841 \end_layout
21842
21843 \begin_layout Description
21844
21845 \family sans
21846 NoWeb
21847 \family default
21848 ->
21849 \family sans
21850 Program
21851 \family default
21852  これは「tangling」を行います.上述のように,変換子は「
21853 \family typewriter
21854 build-script $$i $$r
21855 \family default
21856 」,フラグは「
21857 \family typewriter
21858 parselog=$$s/scripts/listerrors
21859 \family default
21860 」となります.
21861 \end_layout
21862
21863 \begin_layout Subsubsection
21864 デバッグ機能拡張
21865 \end_layout
21866
21867 \begin_layout Standard
21868 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21869 サーバに実装されました.
21870 \end_layout
21871
21872 \begin_layout Standard
21873 ddd/gdbでデバッグしているとき,一つの
21874 \begin_inset Flex Ruby
21875 status collapsed
21876
21877 \begin_layout Plain Layout
21878
21879 \begin_inset Argument post:1
21880 status collapsed
21881
21882 \begin_layout Plain Layout
21883 キー
21884 \end_layout
21885
21886 \end_inset
21887
21888
21889 \end_layout
21890
21891 \end_inset
21892
21893 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
21894 \begin_inset Flex MenuItem
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898 ツール\SpecialChar menuseparator
21899 設定\SpecialChar menuseparator
21900 ファイル書式
21901 \end_layout
21902
21903 \end_inset
21904
21905 ウインドウを表示して,
21906 \begin_inset Flex MenuItem
21907 status collapsed
21908
21909 \begin_layout Plain Layout
21910 編集プログラム
21911 \end_layout
21912
21913 \end_inset
21914
21915 エントリを変えると変えることができます.
21916 \end_layout
21917
21918 \begin_layout Standard
21919 新しい\SpecialChar LyX
21920 サーバの関数と,このdddの機能を使うために
21921 \begin_inset Flex MenuItem
21922 status collapsed
21923
21924 \begin_layout Plain Layout
21925 編集プログラム
21926 \end_layout
21927
21928 \end_inset
21929
21930 を次のように設定してください.
21931 \end_layout
21932
21933 \begin_layout LyX-Code
21934
21935 \family sans
21936 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21937 \end_layout
21938
21939 \begin_layout Standard
21940 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21941 サーバに情報を送り,\SpecialChar LyX
21942
21943 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
21944 \end_layout
21945
21946 \begin_layout Standard
21947 この機能が動くには\SpecialChar LyX
21948 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21949 サーバーは使えないようになっています).
21950 \end_layout
21951
21952 \begin_layout Standard
21953
21954 \begin_inset CommandInset ref
21955 LatexCommand ref
21956 reference "sec:サーバーを開始するには"
21957
21958 \end_inset
21959
21960 節にその方法が説明されています.
21961 \end_layout
21962
21963 \begin_layout Subsubsection
21964 ツールバー拡張
21965 \end_layout
21966
21967 \begin_layout Standard
21968 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの4つのボタンは
21969 \family sans
21970 標準
21971 \family default
21972 ・節・
21973 \family sans
21974 \SpecialChar LaTeX
21975
21976 \family default
21977
21978 \family sans
21979 \SpecialChar LyX
21980 コード
21981 \family default
21982 の段落環境へのショートカットであり,1つは拡張差込枠
21983 \family sans
21984 Chunk
21985 \family default
21986 へのショートカットです.最後の一つはファイルメニュー項目の「Build Program」への
21987 \begin_inset Flex Ruby
21988 status collapsed
21989
21990 \begin_layout Plain Layout
21991
21992 \family roman
21993 \series medium
21994 \shape up
21995 \size normal
21996 \emph off
21997 \bar no
21998 \noun off
21999 \color none
22000 捷径
22001 \family default
22002 \series default
22003 \shape default
22004 \size default
22005 \emph default
22006 \bar default
22007 \noun default
22008 \color inherit
22009
22010 \begin_inset Argument post:1
22011 status collapsed
22012
22013 \begin_layout Plain Layout
22014 ショートカット
22015 \end_layout
22016
22017 \end_inset
22018
22019
22020 \end_layout
22021
22022 \end_inset
22023
22024 です.
22025 \end_layout
22026
22027 \begin_layout Standard
22028 \SpecialChar LyX
22029 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22030 \begin_inset Flex MenuItem
22031 status collapsed
22032
22033 \begin_layout Plain Layout
22034 文書\SpecialChar menuseparator
22035 更新\SpecialChar menuseparator
22036 DVI
22037 \end_layout
22038
22039 \end_inset
22040
22041
22042 \begin_inset Flex MenuItem
22043 status collapsed
22044
22045 \begin_layout Plain Layout
22046 文書\SpecialChar menuseparator
22047 表示\SpecialChar menuseparator
22048 DVI
22049 \end_layout
22050
22051 \end_inset
22052
22053 を組み合わせたものになっています.
22054 \end_layout
22055
22056 \begin_layout LyX-Code
22057 Toolbar
22058 \end_layout
22059
22060 \begin_layout LyX-Code
22061   Layouts
22062 \end_layout
22063
22064 \begin_layout LyX-Code
22065   Icon "layout Standard"
22066 \end_layout
22067
22068 \begin_layout LyX-Code
22069   Icon "layout Section"
22070 \end_layout
22071
22072 \begin_layout LyX-Code
22073   Icon "layout latex"
22074 \end_layout
22075
22076 \begin_layout LyX-Code
22077   Icon "layout \SpecialChar LyX
22078 -Code"
22079 \end_layout
22080
22081 \begin_layout LyX-Code
22082   Icon "flex.insert Chunk"
22083 \end_layout
22084
22085 \begin_layout LyX-Code
22086   Separator
22087 \end_layout
22088
22089 \begin_layout LyX-Code
22090   Icon "buffer-view"
22091 \end_layout
22092
22093 \begin_layout LyX-Code
22094   Icon "buffer-typeset"
22095 \end_layout
22096
22097 \begin_layout LyX-Code
22098   Icon "build-program"
22099 \end_layout
22100
22101 \begin_layout LyX-Code
22102   Separator
22103 \end_layout
22104
22105 \begin_layout LyX-Code
22106 .
22107 \end_layout
22108
22109 \begin_layout LyX-Code
22110 .
22111 \end_layout
22112
22113 \begin_layout LyX-Code
22114 .
22115 \end_layout
22116
22117 \begin_layout LyX-Code
22118 End
22119 \end_layout
22120
22121 \begin_layout Subsubsection
22122 色の変更
22123 \end_layout
22124
22125 \begin_layout Standard
22126 \SpecialChar LyX
22127 ではいくつもの色を
22128 \begin_inset Flex MenuItem
22129 status collapsed
22130
22131 \begin_layout Plain Layout
22132 設定
22133 \end_layout
22134
22135 \end_inset
22136
22137 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22138 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22139 フォントを使うことになっていて,文芸プログラミ
22140 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22141 \begin_inset Flex MenuItem
22142 status collapsed
22143
22144 \begin_layout Plain Layout
22145 操作性\SpecialChar menuseparator
22146
22147 \end_layout
22148
22149 \end_inset
22150
22151 タブで変更することができます.
22152 \end_layout
22153
22154 \begin_layout Standard
22155 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22156 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22157 \end_layout
22158
22159 \begin_layout Subsection
22160 \SpecialChar LyX
22161 とknitr/Sweave
22162 \end_layout
22163
22164 \begin_layout Standard
22165 knitrとSweaveへのサポートについては,用例ファイル
22166 \emph on
22167 knitr.lyx
22168 \emph default
22169 とSweave取扱説明書(
22170 \family sans
22171 ヘルプ\SpecialChar menuseparator
22172 用途別説明書
22173 \family default
22174 メニュー)に説明があります.
22175 \end_layout
22176
22177 \begin_layout Chapter
22178 特殊機能
22179 \begin_inset CommandInset label
22180 LatexCommand label
22181 name "chap:Special-features"
22182
22183 \end_inset
22184
22185
22186 \end_layout
22187
22188 \begin_layout Standard
22189 \SpecialChar LyX
22190 では,\SpecialChar LaTeX
22191 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22192 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22193 コードを使用することはできます.本章は,ユーザの興味が
22194 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22195 \emph on
22196 埋込オブジェクト篇
22197 \emph default
22198 』をご参照ください.
22199 \end_layout
22200
22201 \begin_layout Section
22202 多段組
22203 \end_layout
22204
22205 \begin_layout Standard
22206 この機能は,文書設定の
22207 \family sans
22208 本文レイアウト
22209 \family default
22210 にある
22211 \family sans
22212 二段組文書
22213 \family default
22214 とは別の機能です.文書全体に二段組を行いたい場合には,
22215 \family sans
22216 二段組文書
22217 \family default
22218 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22219 \end_layout
22220
22221 \begin_layout Standard
22222 文書中で多段組を行うには,\SpecialChar LaTeX
22223 パッケージ
22224 \begin_inset Flex Code
22225 status collapsed
22226
22227 \begin_layout Plain Layout
22228 multicol
22229 \end_layout
22230
22231 \end_inset
22232
22233
22234 \begin_inset Index idx
22235 status collapsed
22236
22237 \begin_layout Plain Layout
22238 \SpecialChar LaTeX
22239 ぱっけーじ @ \SpecialChar LaTeX
22240 パッケージ ! multicol
22241 \end_layout
22242
22243 \end_inset
22244
22245 を導入した上で,(
22246 \family sans
22247 文書\SpecialChar menuseparator
22248 設定\SpecialChar menuseparator
22249 モジュール
22250 \family default
22251 メニューから)
22252 \family sans
22253 多段組
22254 \family default
22255 モジュールを読み込んでください.
22256 \end_layout
22257
22258 \begin_layout Standard
22259 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22260 \family sans
22261 段をまたぐ
22262 \family default
22263 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22264 \end_layout
22265
22266 \begin_layout Subsection
22267 基本
22268 \end_layout
22269
22270 \begin_layout Standard
22271 文章中で二段組を使用したい場合には,段組を始める場所で
22272 \family sans
22273 挿入\SpecialChar menuseparator
22274 任意設定差込枠\SpecialChar menuseparator
22275 多段組
22276 \family default
22277 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22278 \end_layout
22279
22280 \begin_layout Standard
22281 下記はその用例です.
22282 \end_layout
22283
22284 \begin_layout Standard
22285 \noindent
22286 \begin_inset Flex Multiple Columns
22287 status open
22288
22289 \begin_layout Plain Layout
22290 \noindent
22291
22292 \series bold
22293 \size small
22294 The Adventure of the Empty House
22295 \series default
22296
22297 \begin_inset Newline newline
22298 \end_inset
22299
22300 by Sir Arthur Conan Doyle
22301 \end_layout
22302
22303 \begin_layout Plain Layout
22304
22305 \size small
22306 It was in the spring of the year 1894 that all London was interested, and
22307  the fashionable world dismayed, by the murder of the Honourable Ronald
22308  Adair under most unusual and inexplicable circumstances.
22309  The public has already learned those particulars of the crime which came
22310  out in the police investigation, but a good deal was suppressed upon that
22311  occasion, since the case for the prosecution was so overwhelmingly strong
22312  that it was not necessary to bring forward all the facts.
22313  Only now, at the end of nearly ten years, am I allowed to supply those
22314  missing links which make up the whole of that remarkable chain.
22315  The crime was of interest in itself, but that interest was as nothing to
22316  me compared to the inconceivable sequel, which afforded me the greatest
22317  shock and surprise of any event in my adventurous life.
22318  Even now, after this long interval, I find myself thrilling as I think
22319  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22320 ty which utterly submerged my mind.
22321  Let me say to that public, which has shown some interest in those glimpses
22322  which I have occasionally given them of the thoughts and actions of a very
22323  remarkable man, that they are not to blame me if I have not shared my knowledge
22324  with them, for I should have considered it my first duty to do so, had
22325  I not been barred by a positive prohibition from his own lips, which was
22326  only withdrawn upon the third of last month.
22327 \end_layout
22328
22329 \end_inset
22330
22331
22332 \end_layout
22333
22334 \begin_layout Standard
22335 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22336 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22337 と書きます).
22338 \begin_inset Newline newline
22339 \end_inset
22340
22341 下記は三段組の例です.
22342 \end_layout
22343
22344 \begin_layout Standard
22345 \begin_inset Flex Multiple Columns
22346 status open
22347
22348 \begin_layout Plain Layout
22349
22350 \size footnotesize
22351 \begin_inset Argument 1
22352 status open
22353
22354 \begin_layout Plain Layout
22355
22356 3
22357 \end_layout
22358
22359 \end_inset
22360
22361 It can be imagined that my close intimacy with Sherlock Holmes had interested
22362  me deeply in crime, and that after his disappearance I never failed to
22363  read with care the various problems which came before the public.
22364  And I even attempted, more than once, for my own private satisfaction,
22365  to employ his methods in their solution, though with indifferent success.
22366  There was none, however, which appealed to me like this tragedy of Ronald
22367  Adair.
22368  As I read the evidence at the inquest, which led up to a verdict of willful
22369  murder against some person or persons unknown, I realized more clearly
22370  than I had ever done the loss which the community had sustained by the
22371  death of Sherlock Holmes.
22372  There were points about this strange business which would, I was sure,
22373  have specially appealed to him, and the efforts of the police would have
22374  been supplemented, or more probably anticipated, by the trained observation
22375  and the alert mind of the first criminal agent in Europe.
22376  All day, as I drove upon my round, I turned over the case in my mind and
22377  found no explanation which appeared to me to be adequate.
22378  At the risk of telling a twice-told tale, I will recapitulate the facts
22379  as they were known to the public at the conclusion of the inquest.
22380 \end_layout
22381
22382 \end_inset
22383
22384
22385 \end_layout
22386
22387 \begin_layout Standard
22388 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22389 \end_layout
22390
22391 \begin_layout Standard
22392 \begin_inset Newpage newpage
22393 \end_inset
22394
22395
22396 \end_layout
22397
22398 \begin_layout Subsection
22399 段組中の段組
22400 \end_layout
22401
22402 \begin_layout Standard
22403 また,段中に段を組むこともできます.
22404 \end_layout
22405
22406 \begin_layout Standard
22407 \begin_inset Flex Multiple Columns
22408 status open
22409
22410 \begin_layout Plain Layout
22411
22412 \size footnotesize
22413 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22414  at that time governor of one of the Australian colonies.
22415  Adair's mother had returned from Australia to undergo the operation for
22416  cataract, and she, her son Ronald, and her daughter Hilda were living together
22417  at 427 Park Lane.
22418 \end_layout
22419
22420 \begin_layout Plain Layout
22421 \begin_inset Flex Multiple Columns
22422 status open
22423
22424 \begin_layout Plain Layout
22425
22426 \size footnotesize
22427 The youth moved in the best society
22428 \begin_inset space ~
22429 \end_inset
22430
22431 – had, so far as was known, no enemies and no particular vices.
22432  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22433  had been broken off by mutual consent some months before, and there was
22434  no sign that it had left any very profound feeling behind it.
22435  For the rest {sic} the man's life moved in a narrow and conventional circle,
22436  for his habits were quiet and his nature unemotional.
22437  Yet it was upon this easy-going young aristocrat that death came, in most
22438  strange and unexpected form, between the hours of ten and eleven-twenty
22439  on the night of March 30, 1894.
22440 \end_layout
22441
22442 \end_inset
22443
22444
22445 \end_layout
22446
22447 \begin_layout Plain Layout
22448
22449 \size footnotesize
22450 Ronald Adair was fond of cards
22451 \begin_inset space ~
22452 \end_inset
22453
22454 – playing continually, but never for such stakes as would hurt him.
22455  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22456  It was shown that, after dinner on the day of his death, he had played
22457  a rubber of whist at the latter club.
22458  He had also played there in the afternoon.
22459
22460 \size default
22461  
22462 \size footnotesize
22463 The evidence of those who had played with him
22464 \begin_inset space ~
22465 \end_inset
22466
22467 – Mr.
22468  Murray, Sir John Hardy, and Colonel Moran
22469 \begin_inset space ~
22470 \end_inset
22471
22472 – showed that the game was whist, and that there was a fairly equal fall
22473  of the cards.
22474  Adair might have lost five pounds, but not more.
22475  His fortune was a considerable one, and such a loss could not in any way
22476  affect him.
22477  He had played nearly every day at one club or other, but he was a cautious
22478  player, and usually rose a winner.
22479  It came out in evidence that, in partnership with Colonel Moran, he had
22480  actually won as much as four hundred and twenty pounds in a sitting, some
22481  weeks before, from Godfrey Milner and Lord Balmoral.
22482  So much for his recent history as it came out at the inquest.
22483 \end_layout
22484
22485 \end_inset
22486
22487
22488 \end_layout
22489
22490 \begin_layout Subsection
22491 応用例
22492 \end_layout
22493
22494 \begin_layout Standard
22495 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22496 \end_layout
22497
22498 \begin_layout Standard
22499 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22500 パッケージ
22501 \begin_inset Flex Code
22502 status collapsed
22503
22504 \begin_layout Plain Layout
22505 multicol
22506 \end_layout
22507
22508 \end_inset
22509
22510
22511 \begin_inset CommandInset href
22512 LatexCommand href
22513 name "取扱説明書"
22514 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22515 literal "false"
22516
22517 \end_inset
22518
22519 をご覧ください.
22520 \end_layout
22521
22522 \begin_layout Subsubsection
22523 序文
22524 \end_layout
22525
22526 \begin_layout Standard
22527 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22528 \family sans
22529 挿入\SpecialChar menuseparator
22530 序文
22531 \family default
22532 メニューを使用してください.序文は,この差込枠内に書いてください.
22533 \begin_inset Newline newline
22534 \end_inset
22535
22536 序文のある文章の例を掲げます.
22537 \end_layout
22538
22539 \begin_layout Standard
22540 \begin_inset VSpace bigskip
22541 \end_inset
22542
22543
22544 \end_layout
22545
22546 \begin_layout Standard
22547 \begin_inset Flex Multiple Columns
22548 status open
22549
22550 \begin_layout Plain Layout
22551 \begin_inset Argument 2
22552 status open
22553
22554 \begin_layout Plain Layout
22555 And the story continues and continues and continues and continues\SpecialChar ldots
22556
22557 \end_layout
22558
22559 \end_inset
22560
22561
22562 \size small
22563 On the evening of the crime, he returned from the club exactly at ten.
22564  His mother and sister were out spending the evening with a relation.
22565  The servant deposed that she heard him enter the front room on the second
22566  floor, generally used as his sitting-room.
22567  She had lit a fire there, and as it smoked she had opened the window.
22568  No sound was heard from the room until eleven-twenty, the hour of the return
22569  of Lady Maynooth and her daughter.
22570  Desiring to say good-night, she attempted to enter her son's room.
22571  The door was locked on the inside, and no answer could be got to their
22572  cries and knocking.
22573  Help was obtained, and the door forced.
22574  The unfortunate young man was found lying near the table.
22575  His head had been horribly mutilated by an expanding revolver bullet, but
22576  no weapon of any sort was to be found in the room.
22577 \end_layout
22578
22579 \end_inset
22580
22581
22582 \end_layout
22583
22584 \begin_layout Standard
22585 最初の\SpecialChar TeX
22586 コードの後に,節宣言コマンドを\SpecialChar TeX
22587 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22588 \end_layout
22589
22590 \begin_layout Standard
22591
22592 \series bold
22593
22594 \backslash
22595 subsection{小節見出し}
22596 \end_layout
22597
22598 \begin_layout Standard
22599 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22600 \end_layout
22601
22602 \begin_layout Standard
22603 \begin_inset Flex Multiple Columns
22604 status open
22605
22606 \begin_layout Plain Layout
22607 \begin_inset Argument 2
22608 status open
22609
22610 \begin_layout Plain Layout
22611 \begin_inset ERT
22612 status collapsed
22613
22614 \begin_layout Plain Layout
22615
22616
22617 \backslash
22618 subsubsection{
22619 \end_layout
22620
22621 \end_inset
22622
22623 これは序文の小々節見出しです
22624 \begin_inset ERT
22625 status collapsed
22626
22627 \begin_layout Plain Layout
22628
22629 }
22630 \end_layout
22631
22632 \end_inset
22633
22634
22635 \end_layout
22636
22637 \end_inset
22638
22639
22640 \size small
22641 A minute examination of the circumstances served only to make the case more
22642  complex.
22643  In the first place, no reason could be given why the young man should have
22644  fastened the door upon the inside.
22645  There was the possibility that the murderer had done this, and had afterwards
22646  escaped by the window.
22647  The drop was at least twenty feet, however, and a bed of crocuses in full
22648  bloom lay beneath.
22649  Neither the flowers nor the earth showed any sign of having been disturbed,
22650  nor were there any marks upon the narrow strip of grass which separated
22651  the house from the road.
22652  Apparently, therefore, it was the young man himself who had fastened the
22653  door.
22654  But how did he come by his death? No one could have climbed up to the window
22655  without leaving traces.
22656  Suppose a man had fired through the window, he would indeed be a remarkable
22657  shot who could with a revolver inflict so deadly a wound.
22658  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22659  a hundred yards of the house.
22660  No one had heard a shot.
22661 \end_layout
22662
22663 \end_inset
22664
22665
22666 \end_layout
22667
22668 \begin_layout Standard
22669 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22670 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22671 \family sans
22672 挿入\SpecialChar menuseparator
22673 改頁前の余白
22674 \family default
22675 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22676 \end_layout
22677
22678 \begin_layout Standard
22679 以下の例では,
22680 \begin_inset Flex Code
22681 status collapsed
22682
22683 \begin_layout Plain Layout
22684 7
22685 \backslash
22686 baselineskip
22687 \end_layout
22688
22689 \end_inset
22690
22691 を用いて,必要行数を7行に指定しています(コマンド
22692 \begin_inset Flex Code
22693 status collapsed
22694
22695 \begin_layout Plain Layout
22696
22697 \backslash
22698 baselineskip
22699 \end_layout
22700
22701 \end_inset
22702
22703 は\SpecialChar TeX
22704 コードとして入力する必要があります).
22705 \end_layout
22706
22707 \begin_layout Standard
22708 \begin_inset Flex Multiple Columns
22709 status open
22710
22711 \begin_layout Plain Layout
22712 \begin_inset Argument 3
22713 status open
22714
22715 \begin_layout Plain Layout
22716 7
22717 \begin_inset ERT
22718 status collapsed
22719
22720 \begin_layout Plain Layout
22721
22722
22723 \backslash
22724 baselineskip
22725 \end_layout
22726
22727 \end_inset
22728
22729
22730 \end_layout
22731
22732 \end_inset
22733
22734
22735 \size small
22736 On the evening of the crime, he returned from the club exactly at ten.
22737  His mother and sister were out spending the evening with a relation.
22738  The servant deposed that she heard him enter the front room on the second
22739  floor, generally used as his sitting-room.
22740  She had lit a fire there, and as it smoked she had opened the window.
22741  No sound was heard from the room until eleven-twenty, the hour of the return
22742  of Lady Maynooth and her daughter.
22743  Desiring to say good-night, she attempted to enter her son's room.
22744  The door was locked on the inside, and no answer could be got to their
22745  cries and knocking.
22746  Help was obtained, and the door forced.
22747  The unfortunate young man was found lying near the table.
22748  His head had been horribly mutilated by an expanding revolver bullet, but
22749  no weapon of any sort was to be found in the room.
22750 \end_layout
22751
22752 \end_inset
22753
22754
22755 \end_layout
22756
22757 \begin_layout Subsubsection
22758 周囲の余白
22759 \end_layout
22760
22761 \begin_layout Standard
22762 多段組の前後の余白は,長さ
22763 \begin_inset Flex Code
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767
22768 \backslash
22769 multicolsep
22770 \end_layout
22771
22772 \end_inset
22773
22774 を変えることで変更することができます.例えば,\SpecialChar TeX
22775 コードで書かれたコマンド
22776 \end_layout
22777
22778 \begin_layout LyX-Code
22779
22780 \family sans
22781
22782 \backslash
22783 setlength{
22784 \backslash
22785 multicolsep}{3cm}
22786 \end_layout
22787
22788 \begin_layout Standard
22789 は,その値を3
22790 \begin_inset space \thinspace{}
22791 \end_inset
22792
22793 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
22794 \begin_inset space \thinspace{}
22795 \end_inset
22796
22797 ptです.
22798 \end_layout
22799
22800 \begin_layout Standard
22801 以下の例では,
22802 \begin_inset Flex Code
22803 status collapsed
22804
22805 \begin_layout Plain Layout
22806
22807 \backslash
22808 multicolsep
22809 \end_layout
22810
22811 \end_inset
22812
22813 は2.5
22814 \begin_inset space \thinspace{}
22815 \end_inset
22816
22817 cmに指定されています.
22818 \end_layout
22819
22820 \begin_layout Standard
22821 \begin_inset ERT
22822 status open
22823
22824 \begin_layout Plain Layout
22825
22826
22827 \backslash
22828 setlength{
22829 \backslash
22830 multicolsep}{2.5cm}
22831 \end_layout
22832
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
22844 \size small
22845 All day I turned these facts over in my mind, endeavouring to hit upon some
22846  theory which could reconcile them all, and to find that line of least resistanc
22847 e which my poor friend had declared to be the starting-point of every investigat
22848 ion.
22849  I confess that I made little progress.
22850  In the evening I strolled across the Park, and found myself about six o'clock
22851  at the Oxford Street end of Park Lane.
22852  A group of loafers upon the pavements, all staring up at a particular window,
22853  directed me to the house which I had come to see.
22854  A tall, thin man with coloured glasses, whom I strongly suspected of being
22855  a plain-clothes detective, was pointing out some theory of his own, while
22856  the others crowded round to listen to what he said.
22857  I got as near him as I could, but his observations seemed to me to be absurd,
22858  so I withdrew again in some disgust.
22859  As I did so I struck against an elderly, deformed man, who had been behind
22860  me, and I knocked down several books which he was carrying.
22861 \end_layout
22862
22863 \end_inset
22864
22865
22866 \end_layout
22867
22868 \begin_layout Standard
22869 \begin_inset Note Greyedout
22870 status open
22871
22872 \begin_layout Plain Layout
22873
22874 \series bold
22875 【註】
22876 \series default
22877
22878 \begin_inset Flex Code
22879 status collapsed
22880
22881 \begin_layout Plain Layout
22882
22883 \backslash
22884 setlength
22885 \end_layout
22886
22887 \end_inset
22888
22889 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
22890 \end_layout
22891
22892 \end_inset
22893
22894
22895 \end_layout
22896
22897 \begin_layout Standard
22898 \begin_inset ERT
22899 status collapsed
22900
22901 \begin_layout Plain Layout
22902
22903
22904 \backslash
22905 setlength{
22906 \backslash
22907 multicolsep}{13pt}
22908 \end_layout
22909
22910 \end_inset
22911
22912
22913 \begin_inset Note Note
22914 status collapsed
22915
22916 \begin_layout Plain Layout
22917
22918 \lang english
22919 go back to the default
22920 \end_layout
22921
22922 \end_inset
22923
22924
22925 \end_layout
22926
22927 \begin_layout Standard
22928 \begin_inset Newpage newpage
22929 \end_inset
22930
22931
22932 \end_layout
22933
22934 \begin_layout Subsubsection
22935 改段
22936 \end_layout
22937
22938 \begin_layout Standard
22939 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
22940 コードで,コマンド
22941 \begin_inset Flex Code
22942 status collapsed
22943
22944 \begin_layout Plain Layout
22945
22946 \backslash
22947 columnbreak{}
22948 \end_layout
22949
22950 \end_inset
22951
22952 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
22953 \begin_inset Newline newline
22954 \end_inset
22955
22956 以下が用例です.
22957 \end_layout
22958
22959 \begin_layout Standard
22960 \begin_inset Flex Multiple Columns
22961 status open
22962
22963 \begin_layout Plain Layout
22964
22965 \size small
22966 \begin_inset Quotes eld
22967 \end_inset
22968
22969 You're surprised to see me, sir,
22970 \begin_inset Quotes erd
22971 \end_inset
22972
22973  said he, in a strange, croaking voice.
22974 \end_layout
22975
22976 \begin_layout Plain Layout
22977
22978 \size small
22979 I acknowledged that I was.
22980 \end_layout
22981
22982 \begin_layout Plain Layout
22983
22984 \size small
22985 \begin_inset Quotes eld
22986 \end_inset
22987
22988 Well, I've a conscience, sir, and when I chanced to see you go into this
22989  house, as I came hobbling after you, I thought to myself, I'll just step
22990  in and see that kind gentleman, and tell him that if I was a bit gruff
22991  in my manner there was not any harm meant, and that I am much obliged to
22992  him for picking up my books.
22993 \begin_inset Quotes erd
22994 \end_inset
22995
22996
22997 \end_layout
22998
22999 \begin_layout Plain Layout
23000
23001 \size small
23002 \begin_inset Quotes eld
23003 \end_inset
23004
23005 You make too much of a trifle,
23006 \begin_inset Quotes erd
23007 \end_inset
23008
23009  said I.
23010  
23011 \begin_inset Quotes eld
23012 \end_inset
23013
23014 May I ask how you knew who I was?
23015 \begin_inset Quotes erd
23016 \end_inset
23017
23018  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23019 \begin_inset ERT
23020 status collapsed
23021
23022 \begin_layout Plain Layout
23023
23024
23025 \backslash
23026 columnbreak{}
23027 \end_layout
23028
23029 \end_inset
23030
23031
23032 \end_layout
23033
23034 \begin_layout Plain Layout
23035
23036 \size small
23037 \begin_inset Quotes eld
23038 \end_inset
23039
23040 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23041  you'll find my little bookshop at the corner of Church Street, and very
23042  happy to see you, I am sure.
23043  Maybe you collect yourself, sir.
23044  Here's 
23045 \noun on
23046 British
23047 \begin_inset space ~
23048 \end_inset
23049
23050 Birds
23051 \noun default
23052 , and 
23053 \noun on
23054 Catullus
23055 \noun default
23056 , and 
23057 \noun on
23058 The Holy War
23059 \noun default
23060
23061 \begin_inset space ~
23062 \end_inset
23063
23064 – a bargain, every one of them.
23065  With five volumes you could just fill that gap on that second shelf.
23066  It looks untidy, does it not, sir?
23067 \begin_inset Quotes erd
23068 \end_inset
23069
23070
23071 \end_layout
23072
23073 \end_inset
23074
23075
23076 \end_layout
23077
23078 \begin_layout Subsubsection
23079 段間隔
23080 \end_layout
23081
23082 \begin_layout Standard
23083 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23084 \begin_inset Flex Code
23085 status collapsed
23086
23087 \begin_layout Plain Layout
23088
23089 \backslash
23090 columnsep
23091 \end_layout
23092
23093 \end_inset
23094
23095 を変更することで実現できます.既定値は10
23096 \begin_inset space \thinspace{}
23097 \end_inset
23098
23099 ptです.以下は
23100 \begin_inset Flex Code
23101 status collapsed
23102
23103 \begin_layout Plain Layout
23104
23105 \backslash
23106 columnsep
23107 \end_layout
23108
23109 \end_inset
23110
23111 を3
23112 \begin_inset space \thinspace{}
23113 \end_inset
23114
23115 cmに設定した例です.
23116 \end_layout
23117
23118 \begin_layout Standard
23119 \begin_inset ERT
23120 status open
23121
23122 \begin_layout Plain Layout
23123
23124
23125 \backslash
23126 setlength{
23127 \backslash
23128 columnsep}{3cm}
23129 \end_layout
23130
23131 \end_inset
23132
23133
23134 \end_layout
23135
23136 \begin_layout Standard
23137 \begin_inset Flex Multiple Columns
23138 status open
23139
23140 \begin_layout Plain Layout
23141
23142 \size small
23143 My observations of No.
23144 \begin_inset space \space{}
23145 \end_inset
23146
23147 427 Park Lane did little to clear up the problem in which I was interested.
23148  The house was separated from the street by a low wall and railing, the
23149  whole not more than five feet high.
23150  It was perfectly easy, therefore, for anyone to get into the garden, but
23151  the window was entirely inaccessible, since there was no water pipe or
23152  anything which could help the most active man to climb it.
23153  More puzzled than ever, I retraced my steps to Kensington.
23154  I had not been in my study five minutes when the maid entered to say that
23155  a person desired to see me.
23156  To my astonishment it was none other than my strange old book collector,
23157  his sharp, wizened face peering out from a frame of white hair, and his
23158  precious volumes, a dozen of them at least, wedged under his right arm.
23159 \end_layout
23160
23161 \end_inset
23162
23163
23164 \end_layout
23165
23166 \begin_layout Standard
23167 \begin_inset ERT
23168 status collapsed
23169
23170 \begin_layout Plain Layout
23171
23172
23173 \backslash
23174 setlength{
23175 \backslash
23176 columnsep}{10pt}
23177 \end_layout
23178
23179 \end_inset
23180
23181
23182 \begin_inset Note Note
23183 status collapsed
23184
23185 \begin_layout Plain Layout
23186
23187 \lang english
23188 go back to the default
23189 \end_layout
23190
23191 \end_inset
23192
23193
23194 \end_layout
23195
23196 \begin_layout Subsubsection
23197 垂直線
23198 \end_layout
23199
23200 \begin_layout Standard
23201 段間には,長さ
23202 \begin_inset Flex Code
23203 status collapsed
23204
23205 \begin_layout Plain Layout
23206
23207 \backslash
23208 columnseprule
23209 \end_layout
23210
23211 \end_inset
23212
23213 の幅を持つ罫線が描かれます.罫線幅を0
23214 \begin_inset space \thinspace{}
23215 \end_inset
23216
23217 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23218 \begin_inset space \thinspace{}
23219 \end_inset
23220
23221 pt幅に設定されています.
23222 \end_layout
23223
23224 \begin_layout Standard
23225 \begin_inset ERT
23226 status open
23227
23228 \begin_layout Plain Layout
23229
23230
23231 \backslash
23232 setlength{
23233 \backslash
23234 columnseprule}{2pt}
23235 \end_layout
23236
23237 \end_inset
23238
23239
23240 \end_layout
23241
23242 \begin_layout Standard
23243 \begin_inset Flex Multiple Columns
23244 status open
23245
23246 \begin_layout Plain Layout
23247
23248 \size small
23249 \begin_inset Quotes eld
23250 \end_inset
23251
23252 You're surprised to see me, sir,
23253 \begin_inset Quotes erd
23254 \end_inset
23255
23256  said he, in a strange, croaking voice.
23257 \end_layout
23258
23259 \begin_layout Plain Layout
23260
23261 \size small
23262 I acknowledged that I was.
23263 \end_layout
23264
23265 \begin_layout Plain Layout
23266
23267 \size small
23268 \begin_inset Quotes eld
23269 \end_inset
23270
23271 Well, I've a conscience, sir, and when I chanced to see you go into this
23272  house, as I came hobbling after you, I thought to myself, I'll just step
23273  in and see that kind gentleman, and tell him that if I was a bit gruff
23274  in my manner there was not any harm meant, and that I am much obliged to
23275  him for picking up my books.
23276 \begin_inset Quotes erd
23277 \end_inset
23278
23279
23280 \end_layout
23281
23282 \begin_layout Plain Layout
23283
23284 \size small
23285 \begin_inset Quotes eld
23286 \end_inset
23287
23288 You make too much of a trifle,
23289 \begin_inset Quotes erd
23290 \end_inset
23291
23292  said I.
23293  
23294 \begin_inset Quotes eld
23295 \end_inset
23296
23297 May I ask how you knew who I was?
23298 \begin_inset Quotes erd
23299 \end_inset
23300
23301
23302 \end_layout
23303
23304 \begin_layout Plain Layout
23305
23306 \size small
23307 \begin_inset Quotes eld
23308 \end_inset
23309
23310 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23311  you'll find my little bookshop at the corner of Church Street, and very
23312  happy to see you, I am sure.
23313  Maybe you collect yourself, sir.
23314  Here's 
23315 \noun on
23316 British
23317 \begin_inset space ~
23318 \end_inset
23319
23320 Birds
23321 \noun default
23322 , and 
23323 \noun on
23324 Catullus
23325 \noun default
23326 , and 
23327 \noun on
23328 The Holy War
23329 \noun default
23330
23331 \begin_inset space ~
23332 \end_inset
23333
23334 – a bargain, every one of them.
23335  With five volumes you could just fill that gap on that second shelf.
23336  It looks untidy, does it not, sir?
23337 \begin_inset Quotes erd
23338 \end_inset
23339
23340
23341 \end_layout
23342
23343 \end_inset
23344
23345
23346 \end_layout
23347
23348 \begin_layout Standard
23349 \begin_inset VSpace defskip
23350 \end_inset
23351
23352
23353 \end_layout
23354
23355 \begin_layout Standard
23356 罫線は,コマンド
23357 \begin_inset Flex Code
23358 status collapsed
23359
23360 \begin_layout Plain Layout
23361
23362 \backslash
23363 columnseprulecolor
23364 \end_layout
23365
23366 \end_inset
23367
23368 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23369 コードで以下のコマンドを挿入すれば,実現できます.
23370 \end_layout
23371
23372 \begin_layout LyX-Code
23373
23374 \backslash
23375 renewcommand{
23376 \backslash
23377 columnseprulecolor}{
23378 \backslash
23379 color{red}}
23380 \end_layout
23381
23382 \begin_layout Standard
23383 このコマンド中の
23384 \begin_inset Flex Code
23385 status collapsed
23386
23387 \begin_layout Plain Layout
23388
23389 \backslash
23390 red
23391 \end_layout
23392
23393 \end_inset
23394
23395 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『埋込オブジェクト
23396 篇』の「色付き表」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23397 \end_layout
23398
23399 \begin_layout LyX-Code
23400
23401 \backslash
23402 renewcommand{
23403 \backslash
23404 columnseprulecolor}{
23405 \backslash
23406 normalcolor}
23407 \end_layout
23408
23409 \begin_layout Standard
23410 以下は,シアン色の罫線と1
23411 \begin_inset space \thinspace{}
23412 \end_inset
23413
23414 cmの段間隔を持つ例です.
23415 \end_layout
23416
23417 \begin_layout Standard
23418 \begin_inset ERT
23419 status open
23420
23421 \begin_layout Plain Layout
23422
23423
23424 \backslash
23425 setlength{
23426 \backslash
23427 columnsep}{1cm}
23428 \end_layout
23429
23430 \begin_layout Plain Layout
23431
23432
23433 \backslash
23434 renewcommand{
23435 \backslash
23436 columnseprulecolor}{
23437 \backslash
23438 color{cyan}}
23439 \end_layout
23440
23441 \end_inset
23442
23443
23444 \end_layout
23445
23446 \begin_layout Standard
23447 \begin_inset Flex Multiple Columns
23448 status open
23449
23450 \begin_layout Plain Layout
23451
23452 \size small
23453 \begin_inset Quotes eld
23454 \end_inset
23455
23456 You're surprised to see me, sir,
23457 \begin_inset Quotes erd
23458 \end_inset
23459
23460  said he, in a strange, croaking voice.
23461 \end_layout
23462
23463 \begin_layout Plain Layout
23464
23465 \size small
23466 I acknowledged that I was.
23467 \end_layout
23468
23469 \begin_layout Plain Layout
23470
23471 \size small
23472 \begin_inset Quotes eld
23473 \end_inset
23474
23475 Well, I've a conscience, sir, and when I chanced to see you go into this
23476  house, as I came hobbling after you, I thought to myself, I'll just step
23477  in and see that kind gentleman, and tell him that if I was a bit gruff
23478  in my manner there was not any harm meant, and that I am much obliged to
23479  him for picking up my books.
23480 \begin_inset Quotes erd
23481 \end_inset
23482
23483
23484 \end_layout
23485
23486 \begin_layout Plain Layout
23487
23488 \size small
23489 \begin_inset Quotes eld
23490 \end_inset
23491
23492 You make too much of a trifle,
23493 \begin_inset Quotes erd
23494 \end_inset
23495
23496  said I.
23497  
23498 \begin_inset Quotes eld
23499 \end_inset
23500
23501 May I ask how you knew who I was?
23502 \begin_inset Quotes erd
23503 \end_inset
23504
23505
23506 \end_layout
23507
23508 \begin_layout Plain Layout
23509
23510 \size small
23511 \begin_inset Quotes eld
23512 \end_inset
23513
23514 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23515  you'll find my little bookshop at the corner of Church Street, and very
23516  happy to see you, I am sure.
23517  Maybe you collect yourself, sir.
23518  Here's 
23519 \noun on
23520 British
23521 \begin_inset space ~
23522 \end_inset
23523
23524 Birds
23525 \noun default
23526 , and 
23527 \noun on
23528 Catullus
23529 \noun default
23530 , and 
23531 \noun on
23532 The Holy War
23533 \noun default
23534
23535 \begin_inset space ~
23536 \end_inset
23537
23538 – a bargain, every one of them.
23539  With five volumes you could just fill that gap on that second shelf.
23540  It looks untidy, does it not, sir?
23541 \begin_inset Quotes erd
23542 \end_inset
23543
23544
23545 \end_layout
23546
23547 \end_inset
23548
23549
23550 \end_layout
23551
23552 \begin_layout Standard
23553 \begin_inset ERT
23554 status collapsed
23555
23556 \begin_layout Plain Layout
23557
23558
23559 \backslash
23560 setlength{
23561 \backslash
23562 columnseprule}{0pt}
23563 \end_layout
23564
23565 \begin_layout Plain Layout
23566
23567
23568 \backslash
23569 renewcommand{
23570 \backslash
23571 columnseprulecolor}{
23572 \backslash
23573 normalcolor}
23574 \end_layout
23575
23576 \end_inset
23577
23578
23579 \begin_inset Note Note
23580 status collapsed
23581
23582 \begin_layout Plain Layout
23583
23584 \lang english
23585 go back to the default
23586 \end_layout
23587
23588 \end_inset
23589
23590
23591 \end_layout
23592
23593 \begin_layout Standard
23594 \begin_inset Newpage newpage
23595 \end_inset
23596
23597
23598 \end_layout
23599
23600 \begin_layout Section
23601 標準的でない形の段落
23602 \end_layout
23603
23604 \begin_layout Standard
23605 \noindent
23606 \SpecialChar LaTeX
23607 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23608 できます.これは,文書設定で
23609 \family sans
23610 任意設定の段落形
23611 \family default
23612 モジュールを読み込んで,\SpecialChar LaTeX
23613 パッケージ
23614 \begin_inset Flex Code
23615 status collapsed
23616
23617 \begin_layout Plain Layout
23618 \noindent
23619 shapepar
23620 \end_layout
23621
23622 \end_inset
23623
23624 を使用させるようにすれば,実現できます.
23625 \end_layout
23626
23627 \begin_layout Subsection
23628 既定の形
23629 \end_layout
23630
23631 \begin_layout Standard
23632
23633 \series bold
23634 shapepar
23635 \series default
23636 は,以下の形を提供しています.
23637 \end_layout
23638
23639 \begin_layout Standard
23640 \begin_inset Tabular
23641 <lyxtabular version="3" rows="13" columns="3">
23642 <features booktabs="true" islongtable="true" longtabularalignment="center">
23643 <column alignment="center" valignment="middle" width="16col%">
23644 <column alignment="center" valignment="middle" width="40col%">
23645 <column alignment="center" valignment="middle" width="35col%">
23646 <row endhead="true">
23647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23648 \begin_inset Text
23649
23650 \begin_layout Plain Layout
23651 名称
23652 \end_layout
23653
23654 \end_inset
23655 </cell>
23656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23657 \begin_inset Text
23658
23659 \begin_layout Plain Layout
23660 説明
23661 \end_layout
23662
23663 \end_inset
23664 </cell>
23665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23666 \begin_inset Text
23667
23668 \begin_layout Plain Layout
23669 備考
23670 \end_layout
23671
23672 \end_inset
23673 </cell>
23674 </row>
23675 <row>
23676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23677 \begin_inset Text
23678
23679 \begin_layout Plain Layout
23680 CDlabel
23681 \end_layout
23682
23683 \end_inset
23684 </cell>
23685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23686 \begin_inset Text
23687
23688 \begin_layout Plain Layout
23689 丸い穴の開いたドーナツ型(CD/DVD大)
23690 \end_layout
23691
23692 \end_inset
23693 </cell>
23694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23695 \begin_inset Text
23696
23697 \begin_layout Plain Layout
23698 伸縮不可.多くの文字を入れられないことに注意.
23699 \end_layout
23700
23701 \end_inset
23702 </cell>
23703 </row>
23704 <row>
23705 <cell alignment="center" valignment="top" topline="true" usebox="none">
23706 \begin_inset Text
23707
23708 \begin_layout Plain Layout
23709 Circle
23710 \end_layout
23711
23712 \end_inset
23713 </cell>
23714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23715 \begin_inset Text
23716
23717 \begin_layout Plain Layout
23718
23719 \end_layout
23720
23721 \end_inset
23722 </cell>
23723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23724 \begin_inset Text
23725
23726 \begin_layout Plain Layout
23727 脆弱.計算に失敗することも.
23728 \end_layout
23729
23730 \end_inset
23731 </cell>
23732 </row>
23733 <row>
23734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23735 \begin_inset Text
23736
23737 \begin_layout Plain Layout
23738 Diamond
23739 \end_layout
23740
23741 \end_inset
23742 </cell>
23743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23744 \begin_inset Text
23745
23746 \begin_layout Plain Layout
23747 菱形(シンボル的に
23748 \begin_inset Quotes eld
23749 \end_inset
23750
23751 diamond
23752 \begin_inset Quotes erd
23753 \end_inset
23754
23755 と表記)
23756 \end_layout
23757
23758 \end_inset
23759 </cell>
23760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23761 \begin_inset Text
23762
23763 \begin_layout Plain Layout
23764 -
23765 \end_layout
23766
23767 \end_inset
23768 </cell>
23769 </row>
23770 <row>
23771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23772 \begin_inset Text
23773
23774 \begin_layout Plain Layout
23775 Heart
23776 \end_layout
23777
23778 \end_inset
23779 </cell>
23780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23781 \begin_inset Text
23782
23783 \begin_layout Plain Layout
23784 ハート型
23785 \end_layout
23786
23787 \end_inset
23788 </cell>
23789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23790 \begin_inset Text
23791
23792 \begin_layout Plain Layout
23793 -
23794 \end_layout
23795
23796 \end_inset
23797 </cell>
23798 </row>
23799 <row>
23800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23801 \begin_inset Text
23802
23803 \begin_layout Plain Layout
23804 Hexagon
23805 \end_layout
23806
23807 \end_inset
23808 </cell>
23809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23810 \begin_inset Text
23811
23812 \begin_layout Plain Layout
23813 六角形
23814 \end_layout
23815
23816 \end_inset
23817 </cell>
23818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23819 \begin_inset Text
23820
23821 \begin_layout Plain Layout
23822 -
23823 \end_layout
23824
23825 \end_inset
23826 </cell>
23827 </row>
23828 <row>
23829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23830 \begin_inset Text
23831
23832 \begin_layout Plain Layout
23833 Nut
23834 \end_layout
23835
23836 \end_inset
23837 </cell>
23838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23839 \begin_inset Text
23840
23841 \begin_layout Plain Layout
23842 ナット型(丸い穴の開いた六角形)
23843 \end_layout
23844
23845 \end_inset
23846 </cell>
23847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23848 \begin_inset Text
23849
23850 \begin_layout Plain Layout
23851 -
23852 \end_layout
23853
23854 \end_inset
23855 </cell>
23856 </row>
23857 <row>
23858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23859 \begin_inset Text
23860
23861 \begin_layout Plain Layout
23862 Square
23863 \end_layout
23864
23865 \end_inset
23866 </cell>
23867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23868 \begin_inset Text
23869
23870 \begin_layout Plain Layout
23871 正方形
23872 \end_layout
23873
23874 \end_inset
23875 </cell>
23876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23877 \begin_inset Text
23878
23879 \begin_layout Plain Layout
23880 -
23881 \end_layout
23882
23883 \end_inset
23884 </cell>
23885 </row>
23886 <row>
23887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23888 \begin_inset Text
23889
23890 \begin_layout Plain Layout
23891 Star
23892 \end_layout
23893
23894 \end_inset
23895 </cell>
23896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23897 \begin_inset Text
23898
23899 \begin_layout Plain Layout
23900 五芒星
23901 \end_layout
23902
23903 \end_inset
23904 </cell>
23905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23906 \begin_inset Text
23907
23908 \begin_layout Plain Layout
23909 -
23910 \end_layout
23911
23912 \end_inset
23913 </cell>
23914 </row>
23915 <row>
23916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23917 \begin_inset Text
23918
23919 \begin_layout Plain Layout
23920 Candle
23921 \end_layout
23922
23923 \end_inset
23924 </cell>
23925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23926 \begin_inset Text
23927
23928 \begin_layout Plain Layout
23929 燃えるろうそく
23930 \end_layout
23931
23932 \end_inset
23933 </cell>
23934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23935 \begin_inset Text
23936
23937 \begin_layout Plain Layout
23938 -
23939 \end_layout
23940
23941 \end_inset
23942 </cell>
23943 </row>
23944 <row>
23945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23946 \begin_inset Text
23947
23948 \begin_layout Plain Layout
23949 Drop down/up
23950 \end_layout
23951
23952 \end_inset
23953 </cell>
23954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23955 \begin_inset Text
23956
23957 \begin_layout Plain Layout
23958 雫型/逆雫型
23959 \end_layout
23960
23961 \end_inset
23962 </cell>
23963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23964 \begin_inset Text
23965
23966 \begin_layout Plain Layout
23967 脆弱.計算に失敗することも.
23968 \end_layout
23969
23970 \end_inset
23971 </cell>
23972 </row>
23973 <row>
23974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23975 \begin_inset Text
23976
23977 \begin_layout Plain Layout
23978 \SpecialChar TeX
23979
23980 \end_layout
23981
23982 \end_inset
23983 </cell>
23984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23985 \begin_inset Text
23986
23987 \begin_layout Plain Layout
23988 \SpecialChar TeX
23989 ロゴ
23990 \end_layout
23991
23992 \end_inset
23993 </cell>
23994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23995 \begin_inset Text
23996
23997 \begin_layout Plain Layout
23998 -
23999 \end_layout
24000
24001 \end_inset
24002 </cell>
24003 </row>
24004 <row>
24005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24006 \begin_inset Text
24007
24008 \begin_layout Plain Layout
24009 Triangle up/down/
24010 \begin_inset Newline newline
24011 \end_inset
24012
24013 left/right
24014 \end_layout
24015
24016 \end_inset
24017 </cell>
24018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24019 \begin_inset Text
24020
24021 \begin_layout Plain Layout
24022 各方向の三角形
24023 \end_layout
24024
24025 \end_inset
24026 </cell>
24027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24028 \begin_inset Text
24029
24030 \begin_layout Plain Layout
24031 -
24032 \end_layout
24033
24034 \end_inset
24035 </cell>
24036 </row>
24037 </lyxtabular>
24038
24039 \end_inset
24040
24041
24042 \end_layout
24043
24044 \begin_layout Standard
24045 段落に形を適用するには,\SpecialChar LyX
24046 ツールバー中の環境プルダウンボックスから形を選んでください.
24047 \end_layout
24048
24049 \begin_layout Standard
24050 \begin_inset Newpage newpage
24051 \end_inset
24052
24053
24054 \end_layout
24055
24056 \begin_layout Standard
24057 以下は,ナット型の段落の例です.
24058 \end_layout
24059
24060 \begin_layout Standard
24061 \begin_inset VSpace bigskip
24062 \end_inset
24063
24064
24065 \end_layout
24066
24067 \begin_layout Nut
24068
24069 \lang latin
24070 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24071  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24072  voluptua.
24073  At vero eos et accusam et justo duo dolores et ea rebum.
24074  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24075  sit amet.
24076  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24077  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24078  voluptua.
24079 \end_layout
24080
24081 \begin_layout Standard
24082 \begin_inset VSpace bigskip
24083 \end_inset
24084
24085
24086 \end_layout
24087
24088 \begin_layout Standard
24089 \begin_inset Note Greyedout
24090 status open
24091
24092 \begin_layout Plain Layout
24093
24094 \series bold
24095 【註】
24096 \family sans
24097 \series default
24098 shapepar
24099 \family default
24100 段落は改頁にまたがることはできません.
24101 \end_layout
24102
24103 \end_inset
24104
24105
24106 \end_layout
24107
24108 \begin_layout Standard
24109 \begin_inset VSpace bigskip
24110 \end_inset
24111
24112
24113 \end_layout
24114
24115 \begin_layout Standard
24116 \begin_inset Flex Code
24117 status collapsed
24118
24119 \begin_layout Plain Layout
24120 \noindent
24121 shapepar
24122 \end_layout
24123
24124 \end_inset
24125
24126 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24127 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24128 \end_layout
24129
24130 \begin_layout Standard
24131 \begin_inset Newpage newpage
24132 \end_inset
24133
24134
24135 \end_layout
24136
24137 \begin_layout Nut
24138
24139 \lang latin
24140 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24141  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24142  voluptua.
24143  At vero eos et accusam et justo duo dolores et ea rebum.
24144  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24145  sit amet.
24146  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24147  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24148  voluptua.
24149  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24150  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24151  voluptua.
24152  At vero eos et accusam et justo duo dolores et ea rebum.
24153  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24154  sit amet.
24155  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24156  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24157  voluptua.
24158 \end_layout
24159
24160 \begin_layout Standard
24161 \begin_inset VSpace bigskip
24162 \end_inset
24163
24164
24165 \end_layout
24166
24167 \begin_layout Standard
24168 ただし,
24169 \family sans
24170 CDlabel
24171 \family default
24172 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24173 \begin_inset Newline newline
24174 \end_inset
24175
24176
24177 \family sans
24178 drop
24179 \family default
24180 形と
24181 \family sans
24182 circle
24183 \family default
24184 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24185 \begin_inset Quotes eld
24186 \end_inset
24187
24188 Arithmetic overflow
24189 \begin_inset Quotes erd
24190 \end_inset
24191
24192 という\SpecialChar LaTeX
24193 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24194 \end_layout
24195
24196 \begin_layout Standard
24197 \begin_inset VSpace bigskip
24198 \end_inset
24199
24200
24201 \end_layout
24202
24203 \begin_layout Standard
24204 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24205 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24206 \family sans
24207
24208 \begin_inset Info
24209 type  "shortcut"
24210 arg   "specialchar-insert hyphenation"
24211 \end_inset
24212
24213
24214 \family default
24215 )を指定することが往々にして必要になります.
24216 \end_layout
24217
24218 \begin_layout Standard
24219 \begin_inset VSpace bigskip
24220 \end_inset
24221
24222
24223 \end_layout
24224
24225 \begin_layout Standard
24226 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24227 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24228 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24229 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24230 \end_layout
24231
24232 \begin_layout Standard
24233 \begin_inset Newpage newpage
24234 \end_inset
24235
24236
24237 \end_layout
24238
24239 \begin_layout Heart
24240 \noindent
24241
24242 \lang latin
24243 Lo\SpecialChar softhyphen
24244 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24245  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24246  voluptua.
24247  At vero eos et accusam et justo duo dolores et ea rebum.
24248  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24249  sit amet.
24250 \end_layout
24251
24252 \begin_layout Standard
24253 \begin_inset VSpace bigskip
24254 \end_inset
24255
24256
24257 \end_layout
24258
24259 \begin_layout Standard
24260 \noindent
24261 \align right
24262 \begin_inset Box Frameless
24263 position "t"
24264 hor_pos "c"
24265 has_inner_box 1
24266 inner_pos "t"
24267 use_parbox 1
24268 use_makebox 0
24269 width "42col%"
24270 special "none"
24271 height "1in"
24272 height_special "totalheight"
24273 thickness "0.4pt"
24274 separation "3pt"
24275 shadowsize "4pt"
24276 framecolor "black"
24277 backgroundcolor "none"
24278 status open
24279
24280 \begin_layout Heart
24281 \noindent
24282
24283 \lang latin
24284 Lo\SpecialChar softhyphen
24285 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24286  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24287  voluptua.
24288  At vero eos et accusam et justo duo dolores et ea rebum.
24289  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24290  sit amet.
24291 \end_layout
24292
24293 \end_inset
24294
24295
24296 \end_layout
24297
24298 \begin_layout Subsection
24299 任意の形
24300 \end_layout
24301
24302 \begin_layout Standard
24303 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24304 ように,コンピューターに座標を計算させる方法もあります.
24305 \end_layout
24306
24307 \begin_layout Enumerate
24308 プログラム
24309 \begin_inset CommandInset href
24310 LatexCommand href
24311 name "Jpgfdraw"
24312 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
24313 literal "false"
24314
24315 \end_inset
24316
24317 を導入します.
24318 \end_layout
24319
24320 \begin_layout Enumerate
24321
24322 \family sans
24323 Jpgfdraw
24324 \family default
24325 内で,メニュー
24326 \family sans
24327 TeX/LaTeX\SpecialChar menuseparator
24328 Settings\SpecialChar menuseparator
24329 Set Normal Size
24330 \family default
24331 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24332 \begin_inset space \thinspace{}
24333 \end_inset
24334
24335 pt寸を使用しています.
24336 \end_layout
24337
24338 \begin_layout Enumerate
24339 形を描きます.
24340 \end_layout
24341
24342 \begin_layout Enumerate
24343 メニュー
24344 \family sans
24345 TeX/LaTeX\SpecialChar menuseparator
24346 Shapepar
24347 \family default
24348 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24349 \begin_inset Foot
24350 status collapsed
24351
24352 \begin_layout Plain Layout
24353 詳細については,
24354 \begin_inset CommandInset href
24355 LatexCommand href
24356 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24357 literal "false"
24358
24359 \end_inset
24360
24361 を参照してください.
24362 \end_layout
24363
24364 \end_inset
24365
24366
24367 \end_layout
24368
24369 \begin_layout Standard
24370 座標は\SpecialChar TeX
24371 ファイルに書き込まれます.これを\SpecialChar LyX
24372 文書で使用するには,
24373 \end_layout
24374
24375 \begin_layout Enumerate
24376 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24377 \end_layout
24378
24379 \begin_layout Enumerate
24380 \SpecialChar LyX
24381
24382 \family sans
24383 挿入\SpecialChar menuseparator
24384 ファイル\SpecialChar menuseparator
24385 子文書
24386 \family default
24387 メニューでファイルを選択し,
24388 \family sans
24389 取り込みの型
24390 \family default
24391 として
24392 \family sans
24393 Input
24394 \family default
24395 を選択してください.
24396 \end_layout
24397
24398 \begin_layout Standard
24399 \begin_inset VSpace defskip
24400 \end_inset
24401
24402
24403 \end_layout
24404
24405 \begin_layout Standard
24406 \begin_inset Note Greyedout
24407 status open
24408
24409 \begin_layout Plain Layout
24410
24411 \series bold
24412 【註】
24413 \series default
24414 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24415 \end_layout
24416
24417 \end_inset
24418
24419
24420 \end_layout
24421
24422 \begin_layout Standard
24423 \begin_inset VSpace bigskip
24424 \end_inset
24425
24426
24427 \end_layout
24428
24429 \begin_layout Standard
24430 以下の用例をご覧ください.
24431 \end_layout
24432
24433 \begin_layout Standard
24434 \begin_inset VSpace bigskip
24435 \end_inset
24436
24437
24438 \end_layout
24439
24440 \begin_layout Standard
24441 \begin_inset CommandInset include
24442 LatexCommand input
24443 filename "../SpecialParagraphShape.tex"
24444
24445 \end_inset
24446
24447
24448 \lang latin
24449 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24450  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24451  voluptua.
24452  At vero eos et accusam et justo duo dolores et ea rebum.
24453  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24454  sit amet.
24455  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24456  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24457  voluptua.
24458 \end_layout
24459
24460 \begin_layout Standard
24461 \begin_inset VSpace bigskip
24462 \end_inset
24463
24464
24465 \end_layout
24466
24467 \begin_layout Standard
24468
24469 \series bold
24470 【ヒント】
24471 \family sans
24472 \series default
24473 Jpgfdraw
24474 \family default
24475 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24476 \family sans
24477 Jpgfdraw
24478 \family default
24479 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24480 \end_layout
24481
24482 \begin_layout Standard
24483 \begin_inset VSpace bigskip
24484 \end_inset
24485
24486
24487 \end_layout
24488
24489 \begin_layout Standard
24490
24491 \family sans
24492 任意の段落形
24493 \family default
24494 モジュールは,
24495 \family sans
24496 shapepar
24497 \family default
24498
24499 \family sans
24500 Shapepar
24501 \family default
24502 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24503 \begin_inset Foot
24504 status collapsed
24505
24506 \begin_layout Plain Layout
24507 これらのコマンドは,上述の全ての形で内部的に使用されています.
24508 \end_layout
24509
24510 \end_inset
24511
24512 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24513 \begin_inset Flex Code
24514 status collapsed
24515
24516 \begin_layout Plain Layout
24517 \noindent
24518 shapepar
24519 \end_layout
24520
24521 \end_inset
24522
24523  をご覧ください.
24524 \end_layout
24525
24526 \end_body
24527 \end_document