]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Update documentation to current format
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 501
3 \begin_document
4 \begin_header
5 \origin /systemlyxdir/doc/ja/
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that the manual prints
11 % out as advertised. If you mess with this preamble,
12 % parts of the manual may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 \IfFileExists{pxjahyper.sty}
18 {\usepackage{pxjahyper}}
19
20 % if pdflatex is used
21 \usepackage{ifpdf}
22 \ifpdf
23
24  % set fonts for nicer pdf view
25  \IfFileExists{lmodern.sty}
26   {\usepackage{lmodern}}{}
27
28 \fi % end if pdflatex is used
29
30 % the pages of the TOC are numbered roman
31 % and a PDF-bookmark for the TOC is added
32 \pagenumbering{roman}
33 \let\myTOC\tableofcontents
34 \renewcommand{\tableofcontents}{%
35  \pdfbookmark[1]{\contentsname}{}
36  \myTOC
37  \cleardoublepage
38  \pagenumbering{arabic}}
39
40 % extra space for tables
41 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
42
43 \usepackage{t1enc}
44 \end_preamble
45 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
46 \use_default_options false
47 \begin_modules
48 logicalmkup
49 theorems-ams
50 theorems-ams-extended
51 multicol
52 shapepar
53 \end_modules
54 \maintain_unincluded_children false
55 \begin_local_layout
56 InsetLayout             Flex:MenuItem
57 LyxType         charstyle
58 LabelString           menu
59 LatexType             command
60 LatexName             menuitem
61 Font
62 Family              Sans
63 EndFont
64 Preamble
65 \newcommand*{\menuitem}[1]{{\sffamily #1}}
66 EndPreamble
67 End
68 InsetLayout             Flex:Ruby
69 LyxType         charstyle
70 LatexType               command
71 LatexName               ruby
72 BgColor         none
73 LabelString             "ルビ"
74 Decoration              Conglomerate
75 Argument post:1
76 LabelString     "ルビ文"
77 MenuString      "ルビ文(S)|S"
78 Decoration      Conglomerate
79 Font
80 Size            tiny
81 EndFont
82 LabelFont
83 Size            tiny
84 EndFont
85 Mandatory       1
86 EndArgument
87 Preamble
88 \IfFileExists{okumacro.sty}
89 {\usepackage{okumacro}}
90 {\newcommand{\ruby}[2]{#2}}
91 EndPreamble
92 End
93 \end_local_layout
94 \language japanese
95 \language_package default
96 \inputencoding auto
97 \fontencoding global
98 \font_roman "default" "default"
99 \font_sans "default" "default"
100 \font_typewriter "default" "default"
101 \font_math "auto" "auto"
102 \font_default_family default
103 \use_non_tex_fonts false
104 \font_sc false
105 \font_osf false
106 \font_sf_scale 100 100
107 \font_tt_scale 100 100
108 \graphics default
109 \default_output_format pdf
110 \output_sync 0
111 \bibtex_command default
112 \index_command default
113 \paperfontsize 12
114 \spacing single
115 \use_hyperref true
116 \pdf_title "LyX's Additional Features manual"
117 \pdf_author "LyX Team"
118 \pdf_subject "LyX's additional features documentation"
119 \pdf_keywords "LyX, Documentation, Additional"
120 \pdf_bookmarks false
121 \pdf_bookmarksnumbered true
122 \pdf_bookmarksopen false
123 \pdf_bookmarksopenlevel 1
124 \pdf_breaklinks false
125 \pdf_pdfborder false
126 \pdf_colorlinks true
127 \pdf_backref false
128 \pdf_pdfusetitle false
129 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
130 \papersize default
131 \use_geometry false
132 \use_package amsmath 1
133 \use_package amssymb 1
134 \use_package cancel 0
135 \use_package esint 0
136 \use_package mathdots 1
137 \use_package mathtools 0
138 \use_package mhchem 1
139 \use_package stackrel 0
140 \use_package stmaryrd 0
141 \use_package undertilde 0
142 \cite_engine basic
143 \cite_engine_type default
144 \biblio_style plain
145 \use_bibtopic false
146 \use_indices false
147 \paperorientation portrait
148 \suppress_date false
149 \justification true
150 \use_refstyle 0
151 \notefontcolor #0000ff
152 \index 索引
153 \shortcut idx
154 \color #008000
155 \end_index
156 \secnumdepth 3
157 \tocdepth 3
158 \paragraph_separation indent
159 \paragraph_indentation default
160 \quotes_language english
161 \papercolumns 1
162 \papersides 2
163 \paperpagestyle headings
164 \tracking_changes false
165 \output_changes false
166 \html_math_output 0
167 \html_css_as_file 0
168 \html_be_strict true
169 \end_header
170
171 \begin_body
172
173 \begin_layout Title
174 \SpecialCharNoPassThru LyX
175 の高度な機能
176 \begin_inset Newline newline
177 \end_inset
178
179
180 \size large
181 第2.1.x版
182 \end_layout
183
184 \begin_layout Author
185 \SpecialCharNoPassThru LyX
186 プロジェクトチーム
187 \begin_inset Foot
188 status collapsed
189
190 \begin_layout Plain Layout
191 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、\SpecialCharNoPassThru LyX
192 文書化メーリングリスト
193 \begin_inset Flex Code
194 status open
195
196 \begin_layout Plain Layout
197 \noindent
198
199 \family typewriter
200 <lyx-docs@lists.lyx.org>
201 \end_layout
202
203 \end_inset
204
205 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
206 \end_layout
207
208 \end_inset
209
210  
211 \end_layout
212
213 \begin_layout Standard
214 \begin_inset CommandInset toc
215 LatexCommand tableofcontents
216
217 \end_inset
218
219
220 \end_layout
221
222 \begin_layout Chapter
223 はじめに
224 \end_layout
225
226 \begin_layout Standard
227 いまお読みの取扱説明書『
228 \emph on
229 \SpecialCharNoPassThru LyX
230 拡張機能篇
231 \emph default
232 』は、基本的には『
233 \emph on
234 ユーザーの手引き
235 \emph default
236 』の第二部です。これらの文書を別部とした理由は、単純に『
237 \emph on
238 ユーザーの手引き
239 \emph default
240 』がすでに大部となっていることと、『
241 \emph on
242 ユーザーの手引き
243 \emph default
244 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、\SpecialCharNoPassThru LyX
245 プロジェクトチームは、\SpecialCharNoPassThru LyX
246 を各設定ファイルと外部パッケージ
247 によって拡張可能な状態にしておくことを長期的な目標にしています。つまり、ある\SpecialCharNoPassThru LaTeX
248 パッケージをサポートしたい場合に、\SpecialCharNoPassThru LyX
249 自身に変更を加えることなく、当該パ
250 ッケージ用のレイアウトファイル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています
251 。この取扱説明書は、そのような形での貢献を文書化する冊子として位置付けられています。
252 \end_layout
253
254 \begin_layout Standard
255 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
256 しています。さらに、\SpecialCharNoPassThru LaTeX
257 の強力な機能を直接使って文書を美しく仕上げるための、\SpecialCharNoPassThru LaTeX
258 ツールやテクニックを述べた章も収録しています。つきつめれば、\SpecialCharNoPassThru LyX
259
260 はあくまでWYSIWYMたることを企図しているため、\SpecialCharNoPassThru LaTeX
261 の全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
262 \end_layout
263
264 \begin_layout Standard
265 もし、まだ『
266 \emph on
267 はじめの一歩
268 \emph default
269 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
270 \emph on
271 はじめの一歩
272 \emph default
273 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
274 \emph on
275 ユーザーの手引き
276 \emph default
277 』をよくお読みになって、\SpecialCharNoPassThru LyX
278 の全基本機能を習得してください。
279 \end_layout
280
281 \begin_layout Standard
282 この取扱説明書の取り上げられている話題は、\SpecialCharNoPassThru LyX
283 が\SpecialCharNoPassThru LaTeX
284 にどう関わっているかに強く関係していますので、まず次章では、\SpecialCharNoPassThru LyX
285 の内部動作がどうなっているか、Ly
286 Xに希望する\SpecialCharNoPassThru LaTeX
287 コードを正確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練\SpecialCharNoPassThru LyX
288 ユーザー向けの章となっています。
289 \end_layout
290
291 \begin_layout Chapter
292 \SpecialCharNoPassThru LyX
293 と\SpecialCharNoPassThru LaTeX
294 \end_layout
295
296 \begin_layout Section
297 \SpecialCharNoPassThru LyX
298 は\SpecialCharNoPassThru LaTeX
299 をどう使っているか
300 \end_layout
301
302 \begin_layout Standard
303 本章
304 \family roman
305 \series medium
306 \shape up
307 \size normal
308 \emph off
309 \bar no
310 \noun off
311 \color none
312 は、\SpecialCharNoPassThru TeX
313 熟練者と\SpecialCharNoPassThru LaTeX
314 に興味のある方向けの章です。ここでは、\SpecialCharNoPassThru LyX
315 と\SpecialCharNoPassThru LaTeX
316 が、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全
317 取扱説明書中で本章だけは、\SpecialCharNoPassThru LaTeX
318 のことを多少なりともご存知であることを前提とします。
319 \end_layout
320
321 \begin_layout Standard
322
323 \family roman
324 \series medium
325 \shape up
326 \size normal
327 \emph off
328 \bar no
329 \noun off
330 \color none
331 かつて\SpecialCharNoPassThru LyX
332 は、「\SpecialCharNoPassThru LaTeX
333
334 \family default
335 \series default
336 \shape default
337 \size default
338 \emph default
339 \bar default
340 \noun default
341 \color inherit
342 WYSIWYM
343 \family roman
344 \series medium
345 \shape up
346 \size normal
347 \emph off
348 \bar no
349 \noun off
350 \color none
351 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。\SpecialCharNoPassThru LaTeX
352 のフロントエンドは、いくつも出回っています
353 \begin_inset Foot
354 status collapsed
355
356 \begin_layout Plain Layout
357
358 \family roman
359 \series medium
360 \shape up
361 \size normal
362 \emph off
363 \bar no
364 \noun off
365 \color none
366 有名なものとしては、Linux上の\SpecialCharNoPassThru TeX
367 makerとkile、OSX上の\SpecialCharNoPassThru TeX
368 shopなどがあります。もちろんviとemacsの\SpecialCharNoPassThru LaTeX
369 モードも含まれます。
370 \end_layout
371
372 \end_inset
373
374 。これらは、基本的に\SpecialCharNoPassThru LaTeX
375 を走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。\SpecialCharNoPassThru LyX
376 も、エディタであり、\SpecialCharNoPassThru LaTeX
377 を走
378 らせる機能を有し、ファイル中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
379 \family default
380 \series default
381 \shape default
382 \size default
383 \emph default
384 \bar default
385 \noun default
386 \color inherit
387 ひとつには、
388 \family roman
389 \series medium
390 \shape up
391 \size normal
392 \emph off
393 \bar no
394 \noun off
395 \color none
396 \SpecialCharNoPassThru LyX
397 を効果的に使うのに、\SpecialCharNoPassThru LaTeX
398 の知識が必要とされないことが挙げられます。また\SpecialCharNoPassThru LyX
399 は、それ自身、いくつかの拡張を\SpecialCharNoPassThru LaTeX
400 に加えています。時間のあるときに
401 でも、いちど以下の手順を試してみてください。まず
402 \family sans
403 \series default
404 \shape default
405 \size default
406 \emph default
407 \bar default
408 \noun default
409 \color inherit
410
411 \begin_inset Flex MenuItem
412 status collapsed
413
414 \begin_layout Plain Layout
415
416 \family sans
417 ファイル
418 \end_layout
419
420 \end_inset
421
422
423 \family roman
424 \series medium
425 \shape up
426 \size normal
427 \emph off
428 \bar no
429 \noun off
430 \color none
431 メニューから
432 \family sans
433 \series default
434 \shape default
435 \size default
436 \emph default
437 \bar default
438 \noun default
439 \color inherit
440
441 \begin_inset Flex MenuItem
442 status collapsed
443
444 \begin_layout Plain Layout
445
446 \family sans
447 エクスポート\SpecialChar menuseparator
448 \SpecialCharNoPassThru LaTeX
449 \end_layout
450
451 \end_inset
452
453
454 \family roman
455 \series medium
456 \shape up
457 \size normal
458 \emph off
459 \bar no
460 \noun off
461 \color none
462 (あるいは
463 \family sans
464 \series default
465 \shape default
466 \size default
467 \emph default
468 \bar default
469 \noun default
470 \color inherit
471
472 \begin_inset Flex MenuItem
473 status collapsed
474
475 \begin_layout Plain Layout
476
477 \family sans
478 表示\SpecialChar menuseparator
479 ソースを閲覧
480 \end_layout
481
482 \end_inset
483
484
485 \family roman
486 \series medium
487 \shape up
488 \size normal
489 \emph off
490 \bar no
491 \noun off
492 \color none
493 )を選択し、そこから出力される
494 \begin_inset Flex Code
495 status collapsed
496
497 \begin_layout Plain Layout
498
499 \family typewriter
500 .tex
501 \end_layout
502
503 \end_inset
504
505 ファイルのプリアンブルをご覧ください。\SpecialCharNoPassThru LyX
506 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
507 \family default
508 \series default
509 \shape default
510 \size default
511 \emph default
512 \bar default
513 \noun default
514 \color inherit
515 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
516 \end_layout
517
518 \begin_layout Standard
519
520 \family roman
521 \series medium
522 \shape up
523 \size normal
524 \emph off
525 \bar no
526 \noun off
527 \color none
528 自動的に\SpecialCharNoPassThru LaTeX
529 を実行するコマンドが、以下のようにいくつかあります。
530 \end_layout
531
532 \begin_layout Itemize
533 \begin_inset Flex MenuItem
534 status collapsed
535
536 \begin_layout Plain Layout
537 表示\SpecialChar menuseparator
538
539 \emph on
540 書式
541 \end_layout
542
543 \end_inset
544
545
546 \end_layout
547
548 \begin_layout Itemize
549
550 \family sans
551 \begin_inset Flex MenuItem
552 status collapsed
553
554 \begin_layout Plain Layout
555
556 \bar no
557 表示\SpecialChar menuseparator
558 更新\SpecialChar menuseparator
559
560 \emph on
561 書式
562 \end_layout
563
564 \end_inset
565
566
567 \end_layout
568
569 \begin_layout Itemize
570
571 \family sans
572 \begin_inset Flex MenuItem
573 status collapsed
574
575 \begin_layout Plain Layout
576 ファイル\SpecialChar menuseparator
577 印刷
578 \end_layout
579
580 \end_inset
581
582
583 \end_layout
584
585 \begin_layout Itemize
586
587 \family sans
588 \begin_inset Flex MenuItem
589 status collapsed
590
591 \begin_layout Plain Layout
592 ファイル\SpecialChar menuseparator
593 ファックス
594 \end_layout
595
596 \end_inset
597
598
599 \end_layout
600
601 \begin_layout Standard
602
603 \family roman
604 \series medium
605 \shape up
606 \size normal
607 \emph off
608 \bar no
609 \noun off
610 \color none
611 これらは、最後に\SpecialCharNoPassThru LaTeX
612 を実行してからファイルに変更が加えられた場合のみ、\SpecialCharNoPassThru LaTeX
613 を実行します。
614 \end_layout
615
616 \begin_layout Standard
617
618 \family roman
619 \series medium
620 \shape up
621 \size normal
622 \emph off
623 \bar no
624 \noun off
625 \color none
626 \SpecialCharNoPassThru LyX
627 が編集中のファイルを\SpecialCharNoPassThru LaTeX
628 にかけるとき、\SpecialCharNoPassThru LyX
629 は以下の段階をふみます。
630 \end_layout
631
632 \begin_layout Enumerate
633
634 \family roman
635 \series medium
636 \shape up
637 \size normal
638 \emph off
639 \bar no
640 \noun off
641 \color none
642 文書を\SpecialCharNoPassThru LaTeX
643 に変換し、ファイルの拡張子を
644 \begin_inset Flex Code
645 status collapsed
646
647 \begin_layout Plain Layout
648
649 \family roman
650 \series medium
651 \shape up
652 \size normal
653 \emph off
654 \bar no
655 \noun off
656 \color none
657 .lyx
658 \end_layout
659
660 \end_inset
661
662 から
663 \begin_inset Flex Code
664 status collapsed
665
666 \begin_layout Plain Layout
667
668 \family roman
669 \series medium
670 \shape up
671 \size normal
672 \emph off
673 \bar no
674 \noun off
675 \color none
676 .tex
677 \end_layout
678
679 \end_inset
680
681 に変えて保存。
682 \end_layout
683
684 \begin_layout Enumerate
685
686 \family roman
687 \series medium
688 \shape up
689 \size normal
690 \emph off
691 \bar no
692 \noun off
693 \color none
694 この
695 \begin_inset Flex Code
696 status collapsed
697
698 \begin_layout Plain Layout
699
700 \family roman
701 \series medium
702 \shape up
703 \size normal
704 \emph off
705 \bar no
706 \noun off
707 \color none
708 .tex
709 \end_layout
710
711 \end_inset
712
713 ファイルに対して(必要に応じて複数回)\SpecialCharNoPassThru LaTeX
714 を実行し、\SpecialCharNoPassThru LaTeX
715 ファイルをコンパイルするのに必要な他のコマンド(
716 \begin_inset Flex Code
717 status collapsed
718
719 \begin_layout Plain Layout
720
721 \family roman
722 \series medium
723 \shape up
724 \size normal
725 \emph off
726 \bar no
727 \noun off
728 \color none
729 bibtex
730 \end_layout
731
732 \end_inset
733
734
735 \begin_inset Flex Code
736 status collapsed
737
738 \begin_layout Plain Layout
739
740 \family roman
741 \series medium
742 \shape up
743 \size normal
744 \emph off
745 \bar no
746 \noun off
747 \color none
748 makeindex
749 \end_layout
750
751 \end_inset
752
753 など)を実行。。
754 \end_layout
755
756 \begin_layout Enumerate
757
758 \family roman
759 \series medium
760 \shape up
761 \size normal
762 \emph off
763 \bar no
764 \noun off
765 \color none
766 もしエラーがあれば、エラーログを表示。
767 \end_layout
768
769 \begin_layout Standard
770
771 \family roman
772 \series medium
773 \shape up
774 \size normal
775 \emph off
776 \bar no
777 \noun off
778 \color none
779 \SpecialCharNoPassThru LaTeX
780
781 \family sans
782 \series default
783 \shape default
784 \size default
785 \emph default
786 \bar default
787 \noun default
788 \color inherit
789
790 \begin_inset Flex MenuItem
791 status collapsed
792
793 \begin_layout Plain Layout
794
795 \family sans
796 表示\SpecialChar menuseparator
797 DVI
798 \end_layout
799
800 \end_inset
801
802
803 \family roman
804 \series medium
805 \shape up
806 \size normal
807 \emph off
808 \bar no
809 \noun off
810 \color none
811 を使用して実行した場合には、\SpecialCharNoPassThru LyX
812 はこの後、DVIビューアを実行してDVIファイルを表示します。
813 \begin_inset Flex MenuItem
814 status collapsed
815
816 \begin_layout Plain Layout
817
818 \family roman
819 \series medium
820 \shape up
821 \size normal
822 \emph off
823 \bar no
824 \noun off
825 \color none
826 表示\SpecialChar menuseparator
827 PostScript
828 \end_layout
829
830 \end_inset
831
832 を使用した場合には、\SpecialCharNoPassThru LyX
833 はさらに以下の段階をふみます。
834 \end_layout
835
836 \begin_layout Itemize
837
838 \family roman
839 \series medium
840 \shape up
841 \size normal
842 \emph off
843 \bar no
844 \noun off
845 \color none
846 \begin_inset Flex Code
847 status collapsed
848
849 \begin_layout Plain Layout
850
851 \family typewriter
852 dvips
853 \end_layout
854
855 \end_inset
856
857 を実行して、
858 \family default
859 \series default
860 \shape default
861 \size default
862 \emph default
863 \bar default
864 \noun default
865 \color inherit
866 DVI
867 \family roman
868 \series medium
869 \shape up
870 \size normal
871 \emph off
872 \bar no
873 \noun off
874 \color none
875 ファイルをPostScript®
876 \family default
877 \series default
878 \shape default
879 \size default
880 \emph default
881 \bar default
882 \noun default
883 \color inherit
884 に変換。
885 \end_layout
886
887 \begin_layout Itemize
888
889 \family roman
890 \series medium
891 \shape up
892 \size normal
893 \emph off
894 \bar no
895 \noun off
896 \color none
897 \begin_inset Flex Code
898 status collapsed
899
900 \begin_layout Plain Layout
901
902 \family typewriter
903 ghostview
904 \end_layout
905
906 \end_inset
907
908 などのPostScript®ビューアを実行して、PostScript®
909 \family default
910 \series default
911 \shape default
912 \size default
913 \emph default
914 \bar default
915 \noun default
916 \color inherit
917 ファイルを表示。
918 \end_layout
919
920 \begin_layout Standard
921 \SpecialCharNoPassThru LyX
922 は、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
923 \end_layout
924
925 \begin_layout Section
926 \SpecialCharNoPassThru LaTeX
927 ファイルを\SpecialCharNoPassThru LyX
928 に読み込む
929 \end_layout
930
931 \begin_layout Standard
932 \SpecialCharNoPassThru LyX
933
934 \family sans
935
936 \begin_inset Flex MenuItem
937 status collapsed
938
939 \begin_layout Plain Layout
940
941 \family sans
942 ファイル\SpecialChar menuseparator
943 インポート\SpecialChar menuseparator
944 \SpecialCharNoPassThru LaTeX
945 \end_layout
946
947 \end_inset
948
949
950 \family roman
951 \series medium
952 \shape up
953 \size normal
954 \emph off
955 \bar no
956 \noun off
957 \color none
958 コマンドを使用すると、\SpecialCharNoPassThru LaTeX
959 ファイルを
960 \family default
961 \series default
962 \shape default
963 \size default
964 \emph default
965 \bar default
966 \noun default
967  
968 \family roman
969 \series medium
970 \shape up
971 \size normal
972 \emph off
973 \bar no
974 \noun off
975 \SpecialCharNoPassThru LyX
976 にインポートすることができます。このコマンドは、
977 \family typewriter
978 \series default
979 \shape default
980 \size default
981 \emph default
982 \bar default
983 \noun default
984 \color inherit
985
986 \begin_inset Flex Code
987 status collapsed
988
989 \begin_layout Plain Layout
990
991 \family typewriter
992 tex2lyx
993 \end_layout
994
995 \end_inset
996
997
998 \family roman
999 \series medium
1000 \shape up
1001 \size normal
1002 \emph off
1003 \bar no
1004 \noun off
1005 \color none
1006 というプログラムを呼び出し、
1007 \family typewriter
1008 \series default
1009 \shape default
1010 \size default
1011 \emph default
1012 \bar default
1013 \noun default
1014 \color inherit
1015
1016 \begin_inset Flex Code
1017 status collapsed
1018
1019 \begin_layout Plain Layout
1020
1021 \family typewriter
1022 foo.tex
1023 \end_layout
1024
1025 \end_inset
1026
1027
1028 \family default
1029 などというファイルから
1030 \begin_inset Flex Code
1031 status collapsed
1032
1033 \begin_layout Plain Layout
1034
1035 \family typewriter
1036 foo.lyx
1037 \end_layout
1038
1039 \end_inset
1040
1041 を生成します。\SpecialCharNoPassThru LyX
1042 は、この変換したファイルを開きます
1043 \begin_inset Foot
1044 status collapsed
1045
1046 \begin_layout Plain Layout
1047 \begin_inset Flex Code
1048 status collapsed
1049
1050 \begin_layout Plain Layout
1051 tex2lyx
1052 \end_layout
1053
1054 \end_inset
1055
1056 は、もちろんコマンドラインから実行することもできます。
1057 \end_layout
1058
1059 \end_inset
1060
1061
1062 \end_layout
1063
1064 \begin_layout Standard
1065
1066 \family typewriter
1067 \begin_inset Flex Code
1068 status collapsed
1069
1070 \begin_layout Plain Layout
1071
1072 \family typewriter
1073 tex2lyx
1074 \end_layout
1075
1076 \end_inset
1077
1078
1079 \family roman
1080 \series medium
1081 \shape up
1082 \size normal
1083 \emph off
1084 \bar no
1085 \noun off
1086 \color none
1087 は、文法的に正しい\SpecialCharNoPassThru LaTeX
1088 ファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1089 \family typewriter
1090 \series default
1091 \shape default
1092 \size default
1093 \emph default
1094 \bar default
1095 \noun default
1096 \color inherit
1097
1098 \begin_inset Flex Code
1099 status collapsed
1100
1101 \begin_layout Plain Layout
1102
1103 \family typewriter
1104 tex2lyx
1105 \end_layout
1106
1107 \end_inset
1108
1109
1110 \family roman
1111 \series medium
1112 \shape up
1113 \size normal
1114 \emph off
1115 \bar no
1116 \noun off
1117 \color none
1118 は、理解不能な部分は\SpecialCharNoPassThru TeX
1119 コードボックスの形で残しますので、ファイルを
1120 \family typewriter
1121 \series default
1122 \shape default
1123 \size default
1124 \emph default
1125 \bar default
1126 \noun default
1127 \color inherit
1128
1129 \begin_inset Flex Code
1130 status collapsed
1131
1132 \begin_layout Plain Layout
1133
1134 \family typewriter
1135 tex2lyx
1136 \end_layout
1137
1138 \end_inset
1139
1140
1141 \family roman
1142 \series medium
1143 \shape up
1144 \size normal
1145 \emph off
1146 \bar no
1147 \noun off
1148 \color none
1149 で変換したのち、\SpecialCharNoPassThru TeX
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 \SpecialCharNoPassThru TeX
1164 コードボックスがなにかご存じなければ、次節をお読みください。
1165 \end_layout
1166
1167 \begin_layout Section
1168 \SpecialCharNoPassThru LaTeX
1169 コードを挿入する
1170 \begin_inset CommandInset label
1171 LatexCommand label
1172 name "sec:LaTeXコードを挿入する"
1173
1174 \end_inset
1175
1176
1177 \end_layout
1178
1179 \begin_layout Standard
1180
1181 \family roman
1182 \series medium
1183 \shape up
1184 \size normal
1185 \emph off
1186 \bar no
1187 \noun off
1188 \color none
1189 どの\SpecialCharNoPassThru LyX
1190 文書にもつねに\SpecialCharNoPassThru TeX
1191 コードを挿入することが可能であるというきわめて単純な理由によって、\SpecialCharNoPassThru LaTeX
1192 にできることは、つねに\SpecialCharNoPassThru LyX
1193 でも行うことができます。一
1194 方、\SpecialCharNoPassThru LyX
1195 は、すべての\SpecialCharNoPassThru LaTeX
1196 構成物を\SpecialCharNoPassThru LyX
1197 内に表示できるわけではなく、将来的にもそうならないでしょう。かりに\SpecialCharNoPassThru LaTeX
1198 コマンドを\SpecialCharNoPassThru LyX
1199 文書に挿入する必要が出
1200 てきた場合には、
1201 \begin_inset Flex Code
1202 status collapsed
1203
1204 \begin_layout Plain Layout
1205
1206 \family roman
1207 \series medium
1208 \shape up
1209 \size normal
1210 \emph off
1211 \bar no
1212 \noun off
1213 \color none
1214 \SpecialCharNoPassThru TeX
1215 コード
1216 \end_layout
1217
1218 \end_inset
1219
1220 ボックスを使用してください。これは、
1221 \family sans
1222 \series default
1223 \shape default
1224 \size default
1225 \emph default
1226 \bar default
1227 \noun default
1228 \color inherit
1229
1230 \begin_inset Flex MenuItem
1231 status collapsed
1232
1233 \begin_layout Plain Layout
1234
1235 \family sans
1236 挿入\SpecialChar menuseparator
1237 \SpecialCharNoPassThru TeX
1238 コード
1239 \end_layout
1240
1241 \end_inset
1242
1243
1244 \family roman
1245 \series medium
1246 \shape up
1247 \size normal
1248 \emph off
1249 \bar no
1250 \noun off
1251 \color none
1252 若しくは
1253 \family default
1254 \series default
1255 \shape default
1256 \size default
1257 \emph default
1258 \bar default
1259 \noun default
1260 \color inherit
1261
1262 \begin_inset Flex Ruby
1263 status collapsed
1264
1265 \begin_layout Plain Layout
1266
1267 \family roman
1268 \series medium
1269 \shape up
1270 \size normal
1271 \emph off
1272 \bar no
1273 \noun off
1274 \color none
1275 捷径
1276 \family default
1277 \series default
1278 \shape default
1279 \size default
1280 \emph default
1281 \bar default
1282 \noun default
1283 \color inherit
1284
1285 \begin_inset Argument post:1
1286 status collapsed
1287
1288 \begin_layout Plain Layout
1289 ショートカット
1290 \end_layout
1291
1292 \end_inset
1293
1294
1295 \end_layout
1296
1297 \end_inset
1298
1299
1300 \begin_inset Flex Ruby
1301 status collapsed
1302
1303 \begin_layout Plain Layout
1304
1305 \family roman
1306 \series medium
1307 \shape up
1308 \size normal
1309 \emph off
1310 \bar no
1311 \noun off
1312 \color none
1313
1314 \begin_inset Argument post:1
1315 status collapsed
1316
1317 \begin_layout Plain Layout
1318 キー
1319 \end_layout
1320
1321 \end_inset
1322
1323
1324 \end_layout
1325
1326 \end_inset
1327
1328
1329 \begin_inset Info
1330 type  "shortcut"
1331 arg   "ert-insert"
1332 \end_inset
1333
1334
1335 \family roman
1336 \series medium
1337 \shape up
1338 \size normal
1339 \emph off
1340 \bar no
1341 \noun off
1342 \color none
1343 で、文書中に挿入することができます。
1344 \end_layout
1345
1346 \begin_layout Standard
1347 以下は、\SpecialCharNoPassThru LaTeX
1348 コマンドを\SpecialCharNoPassThru LyX
1349 文書中に挿入する例です。コードは以下のようになっているとしましょう。
1350 \end_layout
1351
1352 \begin_layout LyX-Code
1353
1354 \backslash
1355 begin{tabular}{ll}
1356 \begin_inset Newline newline
1357 \end_inset
1358
1359
1360 \backslash
1361 begin{minipage}{5cm}
1362 \begin_inset Newline newline
1363 \end_inset
1364
1365 これは、ミニページ環境の例です。
1366 \begin_inset Newline newline
1367 \end_inset
1368
1369 これには、
1370 \begin_inset Newline newline
1371 \end_inset
1372
1373 (フロートでない)図表を
1374 \begin_inset Newline newline
1375 \end_inset
1376
1377 含め、ほとんど何でも
1378 \begin_inset Newline newline
1379 \end_inset
1380
1381 入れることができます。 
1382 \begin_inset Newline newline
1383 \end_inset
1384
1385
1386 \backslash
1387 end{minipage}
1388 \begin_inset Newline newline
1389 \end_inset
1390
1391 &
1392 \begin_inset Newline newline
1393 \end_inset
1394
1395
1396 \backslash
1397 begin{minipage}{5cm}
1398 \begin_inset Newline newline
1399 \end_inset
1400
1401
1402 \backslash
1403 begin{verbatim}
1404 \begin_inset Newline newline
1405 \end_inset
1406
1407
1408 \backslash
1409 begin{minipage}{5cm}
1410 \begin_inset Newline newline
1411 \end_inset
1412
1413 これは...
1414  
1415 \begin_inset Newline newline
1416 \end_inset
1417
1418
1419 \backslash
1420 end{minipage}
1421 \begin_inset Newline newline
1422 \end_inset
1423
1424
1425 \backslash
1426 end{verbatim}
1427 \begin_inset Newline newline
1428 \end_inset
1429
1430
1431 \backslash
1432 end{minipage}
1433 \begin_inset Newline newline
1434 \end_inset
1435
1436
1437 \backslash
1438 end{tabular}
1439 \end_layout
1440
1441 \begin_layout LyX-Code
1442
1443 \end_layout
1444
1445 \begin_layout Standard
1446 上記のテキストを含んだ
1447 \begin_inset Flex Code
1448 status collapsed
1449
1450 \begin_layout Plain Layout
1451 \SpecialCharNoPassThru TeX
1452 コード
1453 \end_layout
1454
1455 \end_inset
1456
1457 ボックスが、この段落の直後にあります。この取扱説明書を\SpecialCharNoPassThru LyX
1458 上でご覧になっていれば、\SpecialCharNoPassThru TeX
1459 コード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実
1460 際の結果が見れるはずです。
1461 \end_layout
1462
1463 \begin_layout Standard
1464 \begin_inset VSpace bigskip
1465 \end_inset
1466
1467
1468 \begin_inset ERT
1469 status open
1470
1471 \begin_layout Plain Layout
1472
1473
1474 \backslash
1475 begin{tabular}{ll}
1476 \end_layout
1477
1478 \begin_layout Plain Layout
1479
1480
1481 \backslash
1482 begin{minipage}{5cm}
1483 \end_layout
1484
1485 \begin_layout Plain Layout
1486
1487 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。 
1488 \backslash
1489 end{minipage}
1490 \end_layout
1491
1492 \begin_layout Plain Layout
1493
1494 &
1495 \end_layout
1496
1497 \begin_layout Plain Layout
1498
1499
1500 \backslash
1501 begin{minipage}{5cm}
1502 \end_layout
1503
1504 \begin_layout Plain Layout
1505
1506
1507 \backslash
1508 begin{verbatim}
1509 \end_layout
1510
1511 \begin_layout Plain Layout
1512
1513
1514 \backslash
1515 begin{minipage}{5cm}
1516 \end_layout
1517
1518 \begin_layout Plain Layout
1519
1520 これは...
1521  
1522 \backslash
1523 end{minipage}
1524 \end_layout
1525
1526 \begin_layout Plain Layout
1527
1528
1529 \backslash
1530 end{verbatim}
1531 \end_layout
1532
1533 \begin_layout Plain Layout
1534
1535
1536 \backslash
1537 end{minipage}
1538 \end_layout
1539
1540 \begin_layout Plain Layout
1541
1542
1543 \backslash
1544 end{tabular}
1545 \end_layout
1546
1547 \end_inset
1548
1549
1550 \begin_inset VSpace bigskip
1551 \end_inset
1552
1553
1554 \end_layout
1555
1556 \begin_layout Standard
1557
1558 \family roman
1559 \series medium
1560 \shape up
1561 \size normal
1562 \emph off
1563 \bar no
1564 \noun off
1565 \color none
1566 \SpecialCharNoPassThru TeX
1567 コードを使用する方法に加えて、複雑な\SpecialCharNoPassThru LaTeX
1568 コードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1569 \begin_inset Flex MenuItem
1570 status collapsed
1571
1572 \begin_layout Plain Layout
1573
1574 \family roman
1575 \series medium
1576 \shape up
1577 \size normal
1578 \emph off
1579 \bar no
1580 \noun off
1581 \color none
1582 挿入\SpecialChar menuseparator
1583 ファイル\SpecialChar menuseparator
1584 子文書
1585 \end_layout
1586
1587 \end_inset
1588
1589 を使用する方法もあります(取り込みの型として
1590 \begin_inset Flex Code
1591 status collapsed
1592
1593 \begin_layout Plain Layout
1594
1595 \family roman
1596 \series medium
1597 \shape up
1598 \size normal
1599 \emph off
1600 \bar no
1601 \noun off
1602 \color none
1603 Input
1604 \end_layout
1605
1606 \end_inset
1607
1608 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1609 \family default
1610 \series default
1611 \shape default
1612 \size default
1613 \emph on
1614 \bar default
1615 \noun default
1616 \color inherit
1617 確認できている
1618 \family roman
1619 \series medium
1620 \shape up
1621 \size normal
1622 \emph off
1623 \bar no
1624 \noun off
1625 \color none
1626 場合のみに限った方がよいでしょう。さもないと、\SpecialCharNoPassThru LaTeX
1627 エラーを追跡するたいへんな作業を行わなくてはならなくなります。
1628 \end_layout
1629
1630 \begin_layout Standard
1631
1632 \family roman
1633 \series medium
1634 \shape up
1635 \size normal
1636 \emph off
1637 \bar no
1638 \noun off
1639 \color none
1640 最後に、いくつか強調しておくべきことがあります。
1641 \end_layout
1642
1643 \begin_layout Itemize
1644
1645 \family roman
1646 \series medium
1647 \shape up
1648 \size normal
1649 \emph off
1650 \bar no
1651 \noun off
1652 \color none
1653 \SpecialCharNoPassThru LyX
1654 は、あなたの\SpecialCharNoPassThru LaTeX
1655 コードが正しいかどうかを
1656 \family default
1657 \series default
1658 \shape default
1659 \size default
1660 \emph on
1661 \bar default
1662 \noun default
1663 \color inherit
1664 チェックしません
1665 \family roman
1666 \series medium
1667 \shape up
1668 \size normal
1669 \emph off
1670 \bar no
1671 \noun off
1672 \color none
1673
1674 \end_layout
1675
1676 \begin_layout Itemize
1677
1678 \family roman
1679 \series medium
1680 \shape up
1681 \size normal
1682 \emph off
1683 \bar no
1684 \noun off
1685 \color none
1686 車輪の再発明をしないようにご注意ください。
1687 \end_layout
1688
1689 \begin_layout Standard
1690
1691 \family roman
1692 \series medium
1693 \shape up
1694 \size normal
1695 \emph off
1696 \bar no
1697 \noun off
1698 \color none
1699 二番目の点に関して、\SpecialCharNoPassThru LyX
1700 はひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身で\SpecialCharNoPassThru LaTeX
1701 コードを書かなくてはならないと思い込む前に、L
1702 yXがこれこれの機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありと
1703 あらゆることを行う膨大な数の\SpecialCharNoPassThru LaTeX
1704 パッケージが存在します。
1705 \family default
1706 \series default
1707 \shape default
1708 \size default
1709 \emph default
1710 \bar default
1711 \noun default
1712 \color inherit
1713 詳細については、
1714 \begin_inset CommandInset href
1715 LatexCommand href
1716 name "CTAN"
1717 target "http://www.ctan.org/"
1718
1719 \end_inset
1720
1721
1722 \family roman
1723 \series medium
1724 \shape up
1725 \size normal
1726 \emph off
1727 \bar no
1728 \noun off
1729 \color none
1730 と第
1731 \begin_inset CommandInset ref
1732 LatexCommand ref
1733 reference "chap:Special-features"
1734
1735 \end_inset
1736
1737 節をご覧ください。
1738 \end_layout
1739
1740 \begin_layout Standard
1741
1742 \family roman
1743 \series medium
1744 \shape up
1745 \size normal
1746 \emph off
1747 \bar no
1748 \noun off
1749 \color none
1750 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良い\SpecialCharNoPassThru LaTeX
1751 関連書籍を参考とするようにしてください。『
1752 \family default
1753 \series default
1754 \shape default
1755 \size default
1756 \emph on
1757 \bar default
1758 \noun default
1759 \color inherit
1760 ユーザーの手引き
1761 \family roman
1762 \series medium
1763 \shape up
1764 \size normal
1765 \emph off
1766 \bar no
1767 \noun off
1768 \color none
1769 』の書誌情報に多くの\SpecialCharNoPassThru LaTeX
1770 関連書籍が引用されています。
1771 \end_layout
1772
1773 \begin_layout Section
1774 \SpecialCharNoPassThru LyX
1775 と\SpecialCharNoPassThru LaTeX
1776 プリアンブル
1777 \end_layout
1778
1779 \begin_layout Subsection
1780 \SpecialCharNoPassThru LaTeX
1781 プリアンブルについて
1782 \end_layout
1783
1784 \begin_layout Standard
1785
1786 \family roman
1787 \series medium
1788 \shape up
1789 \size normal
1790 \emph off
1791 \bar no
1792 \noun off
1793 \color none
1794 すでに\SpecialCharNoPassThru LaTeX
1795 についてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は
1796 得られるはずです。詳しくは\SpecialCharNoPassThru LaTeX
1797 関連書籍をご参照ください。いずれにしても、以下で\SpecialCharNoPassThru LyX
1798 文書の\SpecialCharNoPassThru LaTeX
1799 プリアンブルで何ができるか、または何をする必要がないか
1800 説明をしますので、以下の各要点はお読みになった方が良いでしょう。
1801 \end_layout
1802
1803 \begin_layout Standard
1804
1805 \family roman
1806 \series medium
1807 \shape up
1808 \size normal
1809 \emph off
1810 \bar no
1811 \noun off
1812 \color none
1813 \SpecialCharNoPassThru LaTeX
1814 プリアンブルは、\SpecialCharNoPassThru LaTeX
1815 文書のいちばん始め、本文の
1816 \family default
1817 \series default
1818 \shape default
1819 \size default
1820 \emph on
1821 \bar default
1822 \noun default
1823 \color inherit
1824
1825 \family roman
1826 \series medium
1827 \shape up
1828 \size normal
1829 \emph off
1830 \bar no
1831 \noun off
1832 \color none
1833 の部分に来ます。ここでは以下のことを行います。
1834 \end_layout
1835
1836 \begin_layout Itemize
1837
1838 \family roman
1839 \series medium
1840 \shape up
1841 \size normal
1842 \emph off
1843 \bar no
1844 \noun off
1845 \color none
1846 文書クラス(ドキュメントクラス)の宣言。
1847 \begin_inset Newline newline
1848 \end_inset
1849
1850 これは\SpecialCharNoPassThru LyX
1851 がすでに行ってくれています。もしあなたが熟達した\SpecialCharNoPassThru LaTeX
1852 使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1853 \family default
1854 \series default
1855 \shape default
1856 \size default
1857 \emph on
1858 \bar default
1859 \noun default
1860 \color inherit
1861 カスタマイズ篇
1862 \family roman
1863 \series medium
1864 \shape up
1865 \size normal
1866 \emph off
1867 \bar no
1868 \noun off
1869 \color none
1870 』をご覧になれば、\SpecialCharNoPassThru LyX
1871 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1872 \end_layout
1873
1874 \begin_layout Itemize
1875
1876 \family roman
1877 \series medium
1878 \shape up
1879 \size normal
1880 \emph off
1881 \bar no
1882 \noun off
1883 \color none
1884 パッケージ使用の宣言。
1885 \begin_inset Newline newline
1886 \end_inset
1887
1888 \SpecialCharNoPassThru LaTeX
1889 パッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。パッケージをインクルードすると、特別な
1890 コマンドが提供されることに加え、文書に変更を加えることができます。例えば
1891 \family typewriter
1892 \series default
1893 \shape default
1894 \size default
1895 \emph default
1896 \bar default
1897 \noun default
1898 \color inherit
1899
1900 \family roman
1901 \series medium
1902 \shape up
1903 \size normal
1904 \emph off
1905 \bar no
1906 \noun off
1907 \color none
1908
1909 \begin_inset Flex Code
1910 status collapsed
1911
1912 \begin_layout Plain Layout
1913
1914 \family typewriter
1915 indentfirst
1916 \end_layout
1917
1918 \end_inset
1919
1920 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1921 \end_layout
1922
1923 \begin_layout Itemize
1924
1925 \family roman
1926 \series medium
1927 \shape up
1928 \size normal
1929 \emph off
1930 \bar no
1931 \noun off
1932 \color none
1933 カウンタ・変数・長さ・幅の設定。
1934 \begin_inset Newline newline
1935 \end_inset
1936
1937 \SpecialCharNoPassThru LaTeX
1938 のカウンタと変数の中には、プリアンブルでグローバルに
1939 \family default
1940 \series default
1941 \shape default
1942 \size default
1943 \emph default
1944 \bar default
1945 \noun default
1946 \color inherit
1947 設定
1948 \emph on
1949 しないかぎり
1950 \family roman
1951 \series medium
1952 \shape up
1953 \size normal
1954 \emph off
1955 \bar no
1956 \noun off
1957 \color none
1958 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1959 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1960 \end_layout
1961
1962 \begin_layout Itemize
1963
1964 \family roman
1965 \series medium
1966 \shape up
1967 \size normal
1968 \emph off
1969 \bar no
1970 \noun off
1971 \color none
1972 ユーザー定義コマンドの宣言(
1973 \begin_inset Flex Code
1974 status collapsed
1975
1976 \begin_layout Plain Layout
1977
1978 \family roman
1979 \series medium
1980 \shape up
1981 \size normal
1982 \emph off
1983 \bar no
1984 \noun off
1985 \color none
1986
1987 \backslash
1988 newcommand
1989 \end_layout
1990
1991 \end_inset
1992
1993 または
1994 \begin_inset Flex Code
1995 status collapsed
1996
1997 \begin_layout Plain Layout
1998
1999 \family roman
2000 \series medium
2001 \shape up
2002 \size normal
2003 \emph off
2004 \bar no
2005 \noun off
2006 \color none
2007
2008 \backslash
2009 renewcommand
2010 \end_layout
2011
2012 \end_inset
2013
2014 を使用)。
2015 \begin_inset Newline newline
2016 \end_inset
2017
2018 ユーザー定義コマンドは、文書中で頻出する\SpecialCharNoPassThru LaTeX
2019 コマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
2020 \family default
2021 \series default
2022 \shape default
2023 \size default
2024 \emph on
2025 \bar default
2026 \noun default
2027 \color inherit
2028 可能
2029 \family roman
2030 \series medium
2031 \shape up
2032 \size normal
2033 \emph off
2034 \bar no
2035 \noun off
2036 \color none
2037 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生の\SpecialCharNoPassThru LaTeX
2038 コードがあふれている場合には便利でしょう
2039
2040 \end_layout
2041
2042 \begin_layout Standard
2043
2044 \family roman
2045 \series medium
2046 \shape up
2047 \size normal
2048 \emph off
2049 \bar no
2050 \noun off
2051 \color none
2052 \SpecialCharNoPassThru LyX
2053 は、その生成する
2054 \begin_inset Flex Code
2055 status collapsed
2056
2057 \begin_layout Plain Layout
2058
2059 \family roman
2060 \series medium
2061 \shape up
2062 \size normal
2063 \emph off
2064 \bar no
2065 \noun off
2066 \color none
2067 .tex
2068 \end_layout
2069
2070 \end_inset
2071
2072 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、\SpecialCharNoPassThru LyX
2073 の生成する\SpecialCharNoPassThru LaTeX
2074 ファイルの可搬性を高めています。
2075 \end_layout
2076
2077 \begin_layout Subsection
2078 プリアンブルの変更
2079 \end_layout
2080
2081 \begin_layout Standard
2082
2083 \family roman
2084 \series medium
2085 \shape up
2086 \size normal
2087 \emph off
2088 \bar no
2089 \noun off
2090 \color none
2091 \SpecialCharNoPassThru LyX
2092 が\SpecialCharNoPassThru LaTeX
2093 ファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、\SpecialCharNoPassThru LyX
2094 自体にパッチを当てないかぎり変更できないようになっています。しかしな
2095 がら、
2096 \begin_inset Flex MenuItem
2097 status collapsed
2098
2099 \begin_layout Plain Layout
2100
2101 \family roman
2102 \series medium
2103 \shape up
2104 \size normal
2105 \emph off
2106 \bar no
2107 \noun off
2108 \color none
2109 文書\SpecialChar menuseparator
2110 設定
2111 \end_layout
2112
2113 \end_inset
2114
2115 ダイアログの
2116 \begin_inset Flex MenuItem
2117 status collapsed
2118
2119 \begin_layout Plain Layout
2120
2121 \family roman
2122 \series medium
2123 \shape up
2124 \size normal
2125 \emph off
2126 \bar no
2127 \noun off
2128 \color none
2129 \SpecialCharNoPassThru LaTeX
2130 プリアンブル
2131 \end_layout
2132
2133 \end_inset
2134
2135 の項から、プリアンブルに追加をすることはできます。\SpecialCharNoPassThru LyX
2136 は、
2137 \family sans
2138 \series default
2139 \shape default
2140 \size default
2141 \emph default
2142 \bar default
2143 \noun default
2144 \color inherit
2145
2146 \begin_inset Flex MenuItem
2147 status collapsed
2148
2149 \begin_layout Plain Layout
2150
2151 \family sans
2152 プリアンブル
2153 \end_layout
2154
2155 \end_inset
2156
2157
2158 \family roman
2159 \series medium
2160 \shape up
2161 \size normal
2162 \emph off
2163 \bar no
2164 \noun off
2165 \color none
2166 ダイアログ内のすべてのものを、\SpecialCharNoPassThru LyX
2167 埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることを\SpecialCharNoPassThru LyX
2168 がすでにサ
2169 ポートしていないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
2170 \family default
2171 \series default
2172 \shape default
2173 \size default
2174 \emph default
2175 \bar default
2176 \noun default
2177 \color inherit
2178 また、
2179 \emph on
2180 プリアンブルコードが正しいことを確認してください。
2181 \emph default
2182 \SpecialCharNoPassThru LyX
2183 は、プリアンブルをチェックしません。
2184 \family roman
2185 \series medium
2186 \shape up
2187 \size normal
2188 \emph off
2189 \bar no
2190 \noun off
2191 \color none
2192 もしエラーがあれば、「
2193 \begin_inset Flex Code
2194 status collapsed
2195
2196 \begin_layout Plain Layout
2197
2198 \family roman
2199 \series medium
2200 \shape up
2201 \size normal
2202 \emph off
2203 \bar no
2204 \noun off
2205 \color none
2206 Missing 
2207 \backslash
2208 begin{document}
2209 \end_layout
2210
2211 \end_inset
2212
2213 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
2214 \end_layout
2215
2216 \begin_layout Subsection
2217
2218 \end_layout
2219
2220 \begin_layout Standard
2221
2222 \family roman
2223 \series medium
2224 \shape up
2225 \size normal
2226 \emph off
2227 \bar no
2228 \noun off
2229 \color none
2230 以下は、プリアンブルに追加できるものとその効果を示す例です。
2231 \end_layout
2232
2233 \begin_layout Subsubsection
2234 例1:オフセット
2235 \end_layout
2236
2237 \begin_layout Standard
2238
2239 \family roman
2240 \series medium
2241 \shape up
2242 \size normal
2243 \emph off
2244 \bar no
2245 \noun off
2246 \color none
2247 \SpecialCharNoPassThru LaTeX
2248 には
2249 \family default
2250 \series default
2251 \shape default
2252 \size default
2253 \emph default
2254 \bar default
2255 \noun default
2256 \color inherit
2257
2258 \family roman
2259 \series medium
2260 \shape up
2261 \size normal
2262 \emph off
2263 \bar no
2264 \noun off
2265 \color none
2266
2267 \begin_inset Flex Code
2268 status collapsed
2269
2270 \begin_layout Plain Layout
2271
2272 \family typewriter
2273
2274 \backslash
2275 hoffset
2276 \end_layout
2277
2278 \end_inset
2279
2280
2281 \family typewriter
2282 \series default
2283 \shape default
2284 \size default
2285 \emph default
2286 \bar default
2287 \noun default
2288 \color inherit
2289
2290 \begin_inset Flex Code
2291 status collapsed
2292
2293 \begin_layout Plain Layout
2294
2295 \family typewriter
2296
2297 \backslash
2298 voffset
2299 \end_layout
2300
2301 \end_inset
2302
2303
2304 \family roman
2305 \series medium
2306 \shape up
2307 \size normal
2308 \emph off
2309 \bar no
2310 \noun off
2311 \color none
2312 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2313 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2314 \begin_inset Flex Code
2315 status collapsed
2316
2317 \begin_layout Plain Layout
2318
2319 \family typewriter
2320
2321 \backslash
2322 hoffset
2323 \end_layout
2324
2325 \end_inset
2326
2327
2328 \family typewriter
2329 \series default
2330 \shape default
2331 \size default
2332 \emph default
2333 \bar default
2334 \noun default
2335 \color inherit
2336
2337 \begin_inset Flex Code
2338 status collapsed
2339
2340 \begin_layout Plain Layout
2341
2342 \family typewriter
2343
2344 \backslash
2345 voffset
2346 \end_layout
2347
2348 \end_inset
2349
2350
2351 \family default
2352 が役立つわけです。
2353 \end_layout
2354
2355 \begin_layout Standard
2356
2357 \family roman
2358 \series medium
2359 \shape up
2360 \size normal
2361 \emph off
2362 \bar no
2363 \noun off
2364 \color none
2365 \begin_inset Flex Code
2366 status collapsed
2367
2368 \begin_layout Plain Layout
2369
2370 \family typewriter
2371
2372 \backslash
2373 hoffset
2374 \end_layout
2375
2376 \end_inset
2377
2378
2379 \family typewriter
2380 \series default
2381 \shape default
2382 \size default
2383 \emph default
2384 \bar default
2385 \noun default
2386 \color inherit
2387
2388 \begin_inset Flex Code
2389 status collapsed
2390
2391 \begin_layout Plain Layout
2392
2393 \family typewriter
2394
2395 \backslash
2396 voffset
2397 \end_layout
2398
2399 \end_inset
2400
2401
2402 \family roman
2403 \series medium
2404 \shape up
2405 \size normal
2406 \emph off
2407 \bar no
2408 \noun off
2409 \color none
2410 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2411 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムで\SpecialCharNoPassThru LyX
2412 を使用していて、シスアドがお馬鹿さん
2413 である場合には、
2414 \begin_inset Flex Code
2415 status collapsed
2416
2417 \begin_layout Plain Layout
2418
2419 \family typewriter
2420
2421 \backslash
2422 hoffset
2423 \end_layout
2424
2425 \end_inset
2426
2427
2428 \family typewriter
2429 \series default
2430 \shape default
2431 \size default
2432 \emph default
2433 \bar default
2434 \noun default
2435 \color inherit
2436
2437 \begin_inset Flex Code
2438 status collapsed
2439
2440 \begin_layout Plain Layout
2441
2442 \family typewriter
2443
2444 \backslash
2445 voffset
2446 \end_layout
2447
2448 \end_inset
2449
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 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2460 \end_layout
2461
2462 \begin_layout LyX-Code
2463
2464 \backslash
2465 setlength{
2466 \backslash
2467 hoffset}{-0.5 in}
2468 \end_layout
2469
2470 \begin_layout LyX-Code
2471
2472 \backslash
2473 setlength{
2474 \backslash
2475 voffset}{-0.5 in}
2476 \end_layout
2477
2478 \begin_layout Standard
2479
2480 \family roman
2481 \series medium
2482 \shape up
2483 \size normal
2484 \emph off
2485 \bar no
2486 \noun off
2487 \color none
2488 これで余白が修正されます。
2489 \end_layout
2490
2491 \begin_layout Subsubsection
2492 例2:ラベル
2493 \end_layout
2494
2495 \begin_layout Standard
2496
2497 \family roman
2498 \series medium
2499 \shape up
2500 \size normal
2501 \emph off
2502 \bar no
2503 \noun off
2504 \color none
2505 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2506 \begin_inset Flex Code
2507 status collapsed
2508
2509 \begin_layout Plain Layout
2510
2511 \family typewriter
2512 labels.sty
2513 \end_layout
2514
2515 \end_inset
2516
2517 という\SpecialCharNoPassThru LaTeX
2518 パッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお
2519 確かめください。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だ
2520 けお見せすることにします。
2521 \end_layout
2522
2523 \begin_layout Standard
2524
2525 \family roman
2526 \series medium
2527 \shape up
2528 \size normal
2529 \emph off
2530 \bar no
2531 \noun off
2532 \color none
2533 まず、
2534 \begin_inset Flex Code
2535 status collapsed
2536
2537 \begin_layout Plain Layout
2538
2539 \family sans
2540 article
2541 \end_layout
2542
2543 \end_inset
2544
2545 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2546 \end_layout
2547
2548 \begin_layout LyX-Code
2549
2550 \backslash
2551 usepackage{labels}
2552 \end_layout
2553
2554 \begin_layout LyX-Code
2555
2556 \backslash
2557 LabelCols=3
2558 \end_layout
2559
2560 \begin_layout LyX-Code
2561
2562 \backslash
2563 LabelRows=7
2564 \end_layout
2565
2566 \begin_layout LyX-Code
2567
2568 \backslash
2569 LeftBorder=8mm
2570 \end_layout
2571
2572 \begin_layout LyX-Code
2573
2574 \backslash
2575 RightBorder=8mm
2576 \end_layout
2577
2578 \begin_layout LyX-Code
2579
2580 \backslash
2581 TopBorder=9mm
2582 \end_layout
2583
2584 \begin_layout LyX-Code
2585
2586 \backslash
2587 BottomBorder=2mm
2588 \end_layout
2589
2590 \begin_layout Standard
2591
2592 \family roman
2593 \series medium
2594 \shape up
2595 \size normal
2596 \emph off
2597 \bar no
2598 \noun off
2599 \color none
2600 これは
2601 \family default
2602 \series default
2603 \shape default
2604 \size default
2605 \emph default
2606 \bar default
2607 \noun default
2608 \color inherit
2609 Avery®ラベルシートのストック5360
2610 \family roman
2611 \series medium
2612 \shape up
2613 \size normal
2614 \emph off
2615 \bar no
2616 \noun off
2617 \color none
2618 番を使用する場合の設定です。これで、各宛名を
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623
2624 \family typewriter
2625
2626 \backslash
2627 begin{labels}
2628 \end_layout
2629
2630 \end_inset
2631
2632
2633 \family typewriter
2634 \series default
2635 \shape default
2636 \size default
2637 \emph default
2638 \bar default
2639 \noun default
2640 \color inherit
2641
2642 \begin_inset Flex Code
2643 status collapsed
2644
2645 \begin_layout Plain Layout
2646
2647 \family typewriter
2648
2649 \backslash
2650 end{labels}
2651 \end_layout
2652
2653 \end_inset
2654
2655
2656 \family roman
2657 \series medium
2658 \shape up
2659 \size normal
2660 \emph off
2661 \bar no
2662 \noun off
2663 \color none
2664 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2665 \begin_inset Flex Code
2666 status collapsed
2667
2668 \begin_layout Plain Layout
2669
2670 \family typewriter
2671 labels.sty
2672 \end_layout
2673
2674 \end_inset
2675
2676 の取扱説明書に説明されています。
2677 \end_layout
2678
2679 \begin_layout Standard
2680
2681 \family roman
2682 \series medium
2683 \shape up
2684 \size normal
2685 \emph off
2686 \bar no
2687 \noun off
2688 \color none
2689 そのうち誰かが、このパッケージを直接サポートする\SpecialCharNoPassThru LyX
2690 レイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2691 \end_layout
2692
2693 \begin_layout Subsubsection
2694 例3: 段落の字下げ
2695 \end_layout
2696
2697 \begin_layout Standard
2698
2699 \family roman
2700 \series medium
2701 \shape up
2702 \size normal
2703 \emph off
2704 \bar no
2705 \noun off
2706 \color none
2707 アメリカ人は
2708 \family default
2709 \series default
2710 \shape default
2711 \size default
2712 \emph default
2713 \bar default
2714 \noun default
2715 \color inherit
2716
2717 \emph on
2718 すべての
2719 \family roman
2720 \series medium
2721 \shape up
2722 \size normal
2723 \emph off
2724 \bar no
2725 \noun off
2726 \color none
2727 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2728 ゃと文句を言いつづけるのです
2729 \family default
2730 \series default
2731 \shape default
2732 \size default
2733 \emph default
2734 \bar default
2735 \noun default
2736 \color inherit
2737 。(これはユーモアです。(ほんと?)
2738 \emph on
2739 ユーモアですってば
2740 \emph default
2741 。)
2742 \end_layout
2743
2744 \begin_layout Standard
2745
2746 \family roman
2747 \series medium
2748 \shape up
2749 \size normal
2750 \emph off
2751 \bar no
2752 \noun off
2753 \color none
2754 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2755 \family default
2756 \series default
2757 \shape default
2758 \size default
2759 \emph on
2760 \bar default
2761 \noun default
2762 \color inherit
2763 のみ
2764 \family roman
2765 \series medium
2766 \shape up
2767 \size normal
2768 \emph off
2769 \bar no
2770 \noun off
2771 \color none
2772 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2773 、字下げをする必要はないのです。
2774 \end_layout
2775
2776 \begin_layout Standard
2777
2778 \family roman
2779 \series medium
2780 \shape up
2781 \size normal
2782 \emph off
2783 \bar no
2784 \noun off
2785 \color none
2786 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2787 ルに次の行を加えて下さい。
2788 \end_layout
2789
2790 \begin_layout LyX-Code
2791
2792 \backslash
2793 usepackage{indentfirst}
2794 \end_layout
2795
2796 \begin_layout Standard
2797
2798 \family roman
2799 \series medium
2800 \shape up
2801 \size normal
2802 \emph off
2803 \bar no
2804 \noun off
2805 \color none
2806 もしお使いの\SpecialCharNoPassThru TeX
2807 頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2808 \end_layout
2809
2810 \begin_layout Subsubsection
2811 例4:この文書
2812 \end_layout
2813
2814 \begin_layout Standard
2815
2816 \family roman
2817 \series medium
2818 \shape up
2819 \size normal
2820 \emph off
2821 \bar no
2822 \noun off
2823 \color none
2824 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2825 \family default
2826 \series default
2827 \shape default
2828 \size default
2829 \emph default
2830 \bar default
2831 \noun default
2832 \color inherit
2833
2834 \begin_inset CommandInset ref
2835 LatexCommand ref
2836 reference "chap:Special-features"
2837
2838 \end_inset
2839
2840
2841 \family roman
2842 \series medium
2843 \shape up
2844 \size normal
2845 \emph off
2846 \bar no
2847 \noun off
2848 \color none
2849 章には、他の例や、\SpecialCharNoPassThru LaTeX
2850 の各種の「汚い技」があります。
2851 \end_layout
2852
2853 \begin_layout Section
2854 \SpecialCharNoPassThru LyX
2855 および\SpecialCharNoPassThru LaTeX
2856 のエラー
2857 \end_layout
2858
2859 \begin_layout Standard
2860
2861 \family roman
2862 \series medium
2863 \shape up
2864 \size normal
2865 \emph off
2866 \bar no
2867 \noun off
2868 \color none
2869 \SpecialCharNoPassThru LyX
2870 が\SpecialCharNoPassThru LaTeX
2871 を呼び出す際、\SpecialCharNoPassThru LyX
2872 は\SpecialCharNoPassThru LaTeX
2873 に、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後\SpecialCharNoPassThru LyX
2874 は、\SpecialCharNoPassThru LaTeX
2875 の実行ログ
2876 ファイルを事後処理用に使います。ログファイルを分析したのち、\SpecialCharNoPassThru LyX
2877 はエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、\SpecialCharNoPassThru LyX
2878 ファイ
2879 ル中、そのエラーの発生した場所に表示を移動します
2880 \begin_inset Foot
2881 status collapsed
2882
2883 \begin_layout Plain Layout
2884
2885 \family roman
2886 \series medium
2887 \shape up
2888 \size normal
2889 \emph off
2890 \bar no
2891 \noun off
2892 \color none
2893 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、\SpecialCharNoPassThru LyX
2894 はつねに正しい行に連れて行ってくれるとは限りません。ときには、\SpecialCharNoPassThru LaTeX
2895 がある行にエラ
2896 ーがあると報告したとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されま
2897 すが、実際にエラーのある場所よりも後ろでエラーが報告されるのです。
2898 \end_layout
2899
2900 \end_inset
2901
2902
2903 \family default
2904 \series default
2905 \shape default
2906 \size default
2907 \emph default
2908 \bar default
2909 \noun default
2910 \color inherit
2911
2912 \end_layout
2913
2914 \begin_layout Standard
2915
2916 \family roman
2917 \series medium
2918 \shape up
2919 \size normal
2920 \emph off
2921 \bar no
2922 \noun off
2923 \color none
2924 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2925 \begin_inset Flex MenuItem
2926 status collapsed
2927
2928 \begin_layout Plain Layout
2929
2930 \family roman
2931 \series medium
2932 \shape up
2933 \size normal
2934 \emph off
2935 \bar no
2936 \noun off
2937 \color none
2938 文書\SpecialChar menuseparator
2939 \SpecialCharNoPassThru LaTeX
2940 ログ
2941 \end_layout
2942
2943 \end_inset
2944
2945 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La
2946 \SpecialCharNoPassThru TeX
2947 関連の良書を参照してください。
2948 \end_layout
2949
2950 \begin_layout Itemize
2951
2952 \family typewriter
2953 \begin_inset Flex Code
2954 status collapsed
2955
2956 \begin_layout Plain Layout
2957
2958 \family typewriter
2959 LaTe
2960 \begin_inset ERT
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964
2965 {}
2966 \end_layout
2967
2968 \end_inset
2969
2970 X Warning
2971 \end_layout
2972
2973 \end_inset
2974
2975
2976 \family roman
2977 \series medium
2978 \shape up
2979 \size normal
2980 \emph off
2981 \bar no
2982 \noun off
2983 \color none
2984
2985 \begin_inset Newline newline
2986 \end_inset
2987
2988 これで始まるメッセージは、\SpecialCharNoPassThru LaTeX
2989 コード自体を「デバッグ」するための警告メッセージです。相互参照や書誌情報を追加したり変更した場合に、もう一度\SpecialCharNoPassThru LaTeX
2990 を実行
2991 する必要があることを知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2992 \end_layout
2993
2994 \begin_layout Itemize
2995
2996 \family typewriter
2997 \begin_inset Flex Code
2998 status collapsed
2999
3000 \begin_layout Plain Layout
3001
3002 \family typewriter
3003 LaTe
3004 \begin_inset ERT
3005 status collapsed
3006
3007 \begin_layout Plain Layout
3008
3009 {}
3010 \end_layout
3011
3012 \end_inset
3013
3014 X Font Warning
3015 \end_layout
3016
3017 \end_inset
3018
3019
3020 \family roman
3021 \series medium
3022 \shape up
3023 \size normal
3024 \emph off
3025 \bar no
3026 \noun off
3027 \color none
3028
3029 \begin_inset Newline newline
3030 \end_inset
3031
3032 \SpecialCharNoPassThru LaTeX
3033 がフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、\SpecialCharNoPassThru LaTeX
3034 が使用した代替フォントに関する情報が続きます。これ
3035 も無視して構いません。
3036 \end_layout
3037
3038 \begin_layout Itemize
3039
3040 \family roman
3041 \series medium
3042 \shape up
3043 \size normal
3044 \emph off
3045 \bar no
3046 \noun off
3047 \color none
3048 \begin_inset Flex Code
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052
3053 \family typewriter
3054 Overfull 
3055 \backslash
3056 hbox
3057 \end_layout
3058
3059 \end_inset
3060
3061
3062 \begin_inset Newline newline
3063 \end_inset
3064
3065 \SpecialCharNoPassThru LaTeX
3066 は、
3067 \family default
3068 \series default
3069 \shape default
3070 \size default
3071 \emph on
3072 \bar default
3073 \noun default
3074 \color inherit
3075 ほぼどんなときでも
3076 \family roman
3077 \series medium
3078 \shape up
3079 \size normal
3080 \emph off
3081 \bar no
3082 \noun off
3083 \color none
3084 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
3085 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。\SpecialCharNoPassThru LaTeX
3086 は、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
3087 \begin_inset Newline newline
3088 \end_inset
3089
3090 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
3091 \begin_inset Foot
3092 status collapsed
3093
3094 \begin_layout Plain Layout
3095 あるいは、
3096 \begin_inset Flex MenuItem
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100 文書\SpecialChar menuseparator
3101 設定
3102 \end_layout
3103
3104 \end_inset
3105
3106 で「draft」オプションを指定する方法もあります。こうすると、\SpecialCharNoPassThru LaTeX
3107 は、overfullの発生した行の余白に黒い四角を描画します。
3108 \end_layout
3109
3110 \end_inset
3111
3112
3113 \end_layout
3114
3115 \begin_layout Itemize
3116
3117 \family typewriter
3118 \begin_inset Flex Code
3119 status collapsed
3120
3121 \begin_layout Plain Layout
3122
3123 \family typewriter
3124 Underfull 
3125 \backslash
3126 hbox
3127 \end_layout
3128
3129 \end_inset
3130
3131
3132 \begin_inset Newline newline
3133 \end_inset
3134
3135
3136 \family roman
3137 \series medium
3138 \shape up
3139 \size normal
3140 \emph off
3141 \bar no
3142 \noun off
3143 \color none
3144 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、\SpecialCharNoPassThru LaTeX
3145 は1行を短めにする印字するよりは、長めにする方が好きなようです。
3146 \end_layout
3147
3148 \begin_layout Itemize
3149 \begin_inset Flex Code
3150 status collapsed
3151
3152 \begin_layout Plain Layout
3153
3154 \family typewriter
3155 Overfull 
3156 \backslash
3157 vbox
3158 \end_layout
3159
3160 \end_inset
3161
3162
3163 \family typewriter
3164
3165 \begin_inset Flex Code
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169
3170 \family typewriter
3171 Underfull 
3172 \backslash
3173 vbox
3174 \end_layout
3175
3176 \end_inset
3177
3178
3179 \family default
3180
3181 \begin_inset Newline newline
3182 \end_inset
3183
3184
3185 \family roman
3186 \series medium
3187 \shape up
3188 \size normal
3189 \emph off
3190 \bar no
3191 \noun off
3192 \color none
3193 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
3194 \end_layout
3195
3196 \begin_layout Itemize
3197
3198 \family typewriter
3199 \begin_inset Flex Code
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203
3204 \family typewriter
3205 LaTe
3206 \begin_inset ERT
3207 status collapsed
3208
3209 \begin_layout Plain Layout
3210
3211 {}
3212 \end_layout
3213
3214 \end_inset
3215
3216 X Error: File 
3217 \begin_inset Quotes els
3218 \end_inset
3219
3220 Xxxx
3221 \begin_inset Quotes ers
3222 \end_inset
3223
3224  not found
3225 \end_layout
3226
3227 \end_inset
3228
3229
3230 \family roman
3231 \series medium
3232 \shape up
3233 \size normal
3234 \emph off
3235 \bar no
3236 \noun off
3237 \color none
3238
3239 \begin_inset Newline newline
3240 \end_inset
3241
3242 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としている\SpecialCharNoPassThru LaTeX
3243 パッケージに、導入済でないものがある場合に現れます。プリアンブル
3244 に変更を加えておらず、
3245 \begin_inset Flex Code
3246 status collapsed
3247
3248 \begin_layout Plain Layout
3249
3250 \family typewriter
3251
3252 \backslash
3253 usepackage{}
3254 \end_layout
3255
3256 \end_inset
3257
3258 コマンドも使用していないとすれば、\SpecialCharNoPassThru LyX
3259 が読み込もうしているパッケージに存在しないものがあるということです。
3260 \family default
3261 \series default
3262 \shape default
3263 \size default
3264 \emph default
3265 \bar default
3266 \noun default
3267 \color inherit
3268
3269 \begin_inset Flex MenuItem
3270 status collapsed
3271
3272 \begin_layout Plain Layout
3273 ヘルプ\SpecialChar menuseparator
3274 \SpecialCharNoPassThru LaTeX
3275 の設定
3276 \end_layout
3277
3278 \end_inset
3279
3280
3281 \family roman
3282 \series medium
3283 \shape up
3284 \size normal
3285 \emph off
3286 \bar no
3287 \noun off
3288 \color none
3289 を使用して、\SpecialCharNoPassThru LyX
3290 が認識しているパッケージの一覧を得てください。このファイルは、(
3291 \begin_inset Flex MenuItem
3292 status collapsed
3293
3294 \begin_layout Plain Layout
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 ツール\SpecialChar menuseparator
3305 再設定
3306 \end_layout
3307
3308 \end_inset
3309
3310 を使用して)\SpecialCharNoPassThru LyX
3311 の再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3312 \begin_inset Newline newline
3313 \end_inset
3314
3315
3316 \family sans
3317 \series default
3318 \shape default
3319 \size default
3320 \emph default
3321 \bar default
3322 \noun default
3323 \color inherit
3324
3325 \begin_inset Flex Code
3326 status collapsed
3327
3328 \begin_layout Plain Layout
3329
3330 \family sans
3331
3332 \backslash
3333 usepackage{}
3334 \end_layout
3335
3336 \end_inset
3337
3338
3339 \family roman
3340 \series medium
3341 \shape up
3342 \size normal
3343 \emph off
3344 \bar no
3345 \noun off
3346 \color none
3347 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3348 \end_layout
3349
3350 \begin_layout Itemize
3351
3352 \family typewriter
3353 \begin_inset Flex Code
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357
3358 \family typewriter
3359 LaTe
3360 \begin_inset ERT
3361 status collapsed
3362
3363 \begin_layout Plain Layout
3364
3365 {}
3366 \end_layout
3367
3368 \end_inset
3369
3370 X Error: Unknown option
3371 \end_layout
3372
3373 \end_inset
3374
3375
3376 \family roman
3377 \series medium
3378 \shape up
3379 \size normal
3380 \emph off
3381 \bar no
3382 \noun off
3383 \color none
3384
3385 \begin_inset Newline newline
3386 \end_inset
3387
3388 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3389 さい。
3390 \end_layout
3391
3392 \begin_layout Itemize
3393
3394 \family typewriter
3395 \begin_inset Flex Code
3396 status collapsed
3397
3398 \begin_layout Plain Layout
3399
3400 \family typewriter
3401 Undefined control sequence
3402 \end_layout
3403
3404 \end_inset
3405
3406
3407 \family roman
3408 \series medium
3409 \shape up
3410 \size normal
3411 \emph off
3412 \bar no
3413 \noun off
3414 \color none
3415
3416 \begin_inset Newline newline
3417 \end_inset
3418
3419 お使いの文書に\SpecialCharNoPassThru LaTeX
3420 コードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれ
3421 ません。いずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3422 \end_layout
3423
3424 \begin_layout Standard
3425
3426 \family roman
3427 \series medium
3428 \shape up
3429 \size normal
3430 \emph off
3431 \bar no
3432 \noun off
3433 \color none
3434 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、\SpecialCharNoPassThru LaTeX
3435 のメッセージです。何を言っているのかさっぱりわからな
3436 いものもありますが、通常これらは、\SpecialCharNoPassThru TeX
3437 のメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3438 \family default
3439 \series default
3440 \shape default
3441 \size default
3442 \emph on
3443 \bar default
3444 \noun default
3445 \color inherit
3446 まったく
3447 \family roman
3448 \series medium
3449 \shape up
3450 \size normal
3451 \emph off
3452 \bar no
3453 \noun off
3454 \color none
3455 手がかりがありません。誰もわからないのです。
3456 \end_layout
3457
3458 \begin_layout Standard
3459
3460 \family roman
3461 \series medium
3462 \shape up
3463 \size normal
3464 \emph off
3465 \bar no
3466 \noun off
3467 \color none
3468 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3469 \end_layout
3470
3471 \begin_layout Enumerate
3472
3473 \family roman
3474 \series medium
3475 \shape up
3476 \size normal
3477 \emph off
3478 \bar no
3479 \noun off
3480 \color none
3481 ご自分で挿入した\SpecialCharNoPassThru LaTeX
3482 コードに打ち間違いがないかどうか確かめる。
3483 \end_layout
3484
3485 \begin_layout Enumerate
3486
3487 \family roman
3488 \series medium
3489 \shape up
3490 \size normal
3491 \emph off
3492 \bar no
3493 \noun off
3494 \color none
3495 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3496 \end_layout
3497
3498 \begin_layout Enumerate
3499
3500 \family roman
3501 \series medium
3502 \shape up
3503 \size normal
3504 \emph off
3505 \bar no
3506 \noun off
3507 \color none
3508 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には\threehyphens
3509 特に
3510 \begin_inset Flex Code
3511 status collapsed
3512
3513 \begin_layout Plain Layout
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 Missing 
3524 \backslash
3525 begin{document}
3526 \end_layout
3527
3528 \end_inset
3529
3530 が表示されているならば\threehyphens
3531 、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3532 \end_layout
3533
3534 \begin_layout Enumerate
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 プリアンブルに何も追加せず、文書に\SpecialCharNoPassThru LaTeX
3545 コードをまったく挿入しなかった場合には、\SpecialCharNoPassThru LaTeX
3546 頒布版自体をまず疑ってください。導入されていないパッケージを探しだ
3547 して、導入してください。
3548 \end_layout
3549
3550 \begin_layout Enumerate
3551
3552 \family roman
3553 \series medium
3554 \shape up
3555 \size normal
3556 \emph off
3557 \bar no
3558 \noun off
3559 \color none
3560 導入されていないパッケージはなかったものとしましょう。\SpecialCharNoPassThru LyX
3561 を微調整するオプションを使用していますか。特に、手動で
3562 \begin_inset Flex Code
3563 status collapsed
3564
3565 \begin_layout Plain Layout
3566
3567 \family sans
3568 Protected
3569 \begin_inset space ~
3570 \end_inset
3571
3572 Blank
3573 \end_layout
3574
3575 \end_inset
3576
3577
3578 \begin_inset Flex Code
3579 status collapsed
3580
3581 \begin_layout Plain Layout
3582
3583 \family sans
3584 Linebreak
3585 \end_layout
3586
3587 \end_inset
3588
3589
3590 \family sans
3591 \series default
3592 \shape default
3593 \size default
3594 \emph default
3595 \bar default
3596 \noun default
3597 \color inherit
3598
3599 \begin_inset Flex Code
3600 status collapsed
3601
3602 \begin_layout Plain Layout
3603
3604 \family sans
3605 Pagebreak
3606 \end_layout
3607
3608 \end_inset
3609
3610
3611 \family roman
3612 \series medium
3613 \shape up
3614 \size normal
3615 \emph off
3616 \bar no
3617 \noun off
3618 \color none
3619 などをたくさん挿入するなど、微調整オプションを
3620 \family default
3621 \series default
3622 \shape default
3623 \size default
3624 \emph on
3625 \bar default
3626 \noun default
3627 \color inherit
3628 悪用
3629 \family roman
3630 \series medium
3631 \shape up
3632 \size normal
3633 \emph off
3634 \bar no
3635 \noun off
3636 \color none
3637 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3638 \end_layout
3639
3640 \begin_layout Enumerate
3641
3642 \family roman
3643 \series medium
3644 \shape up
3645 \size normal
3646 \emph off
3647 \bar no
3648 \noun off
3649 \color none
3650 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3651 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3652 \end_layout
3653
3654 \begin_layout Enumerate
3655 \SpecialCharNoPassThru LaTeX
3656 が改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、\SpecialCharNoPassThru LaTeX
3657 はかなり嫌います。可能で
3658 あれば、問題が生じないように段落を修正するのが望ましいでしょう。それが難しければ、\SpecialCharNoPassThru LaTeX
3659 が改行しやすく(sloppy)なるように、その部分を
3660 \family typewriter
3661
3662 \begin_inset Flex Code
3663 status collapsed
3664
3665 \begin_layout Plain Layout
3666
3667 \family typewriter
3668
3669 \backslash
3670 sloppypar
3671 \end_layout
3672
3673 \end_inset
3674
3675
3676 \family default
3677 で囲んでください。
3678 \end_layout
3679
3680 \begin_layout Enumerate
3681
3682 \family roman
3683 \series medium
3684 \shape up
3685 \size normal
3686 \emph off
3687 \bar no
3688 \noun off
3689 \color none
3690 入れ子の階層を深くしすぎていませんか。\SpecialCharNoPassThru LyX
3691 は、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら
3692 、それが原因です(\SpecialCharNoPassThru LaTeX
3693 の上限は5段です)。
3694 \end_layout
3695
3696 \begin_layout Enumerate
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 \bar default
3708 \family default
3709 \color inherit
3710 \series default
3711 \shape default
3712 \size default
3713 \begin_inset Separator parbreak
3714 \end_inset
3715
3716 \end_layout
3717
3718 \begin_deeper
3719 \begin_layout Enumerate
3720
3721 \family roman
3722 \series medium
3723 \shape up
3724 \size normal
3725 \emph off
3726 \bar no
3727 \noun off
3728 \color none
3729 図がページに合うように大きさを変える、
3730 \end_layout
3731
3732 \begin_layout Enumerate
3733
3734 \family roman
3735 \series medium
3736 \shape up
3737 \size normal
3738 \emph off
3739 \bar no
3740 \noun off
3741 \color none
3742 表がページに合うように削る、
3743 \end_layout
3744
3745 \begin_layout Standard
3746
3747 \family roman
3748 \series medium
3749 \shape up
3750 \size normal
3751 \emph off
3752 \bar no
3753 \noun off
3754 \color none
3755 などの手段を採る必要があります。
3756 \end_layout
3757
3758 \end_deeper
3759 \begin_layout Enumerate
3760 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3761 \end_layout
3762
3763 \begin_layout Standard
3764
3765 \family roman
3766 \series medium
3767 \shape up
3768 \size normal
3769 \emph off
3770 \bar no
3771 \noun off
3772 \color none
3773 これらすべてが役に立たないとすれば、
3774 \family default
3775 \series default
3776 \shape default
3777 \size default
3778 \emph on
3779 \bar default
3780 \noun default
3781 \color inherit
3782 ひょっとしたら
3783 \family roman
3784 \series medium
3785 \shape up
3786 \size normal
3787 \emph off
3788 \bar no
3789 \noun off
3790 \color none
3791 \SpecialCharNoPassThru LyX
3792 のバグを発見したのかもしれません‥‥。
3793 \end_layout
3794
3795 \begin_layout Chapter
3796 補完ツール
3797 \end_layout
3798
3799 \begin_layout Section
3800 Bib\SpecialCharNoPassThru TeX
3801 による書誌情報のカスタマイズ
3802 \end_layout
3803
3804 \begin_layout Standard
3805 Bib\SpecialCharNoPassThru TeX
3806 の基本的な使用法は、『
3807 \emph on
3808 ユーザーの手引き
3809 \emph default
3810 』の「
3811 \emph on
3812 文献データベース(Bib\SpecialCharNoPassThru TeX
3813 )
3814 \emph default
3815 」の節に説明があります。以下の各小節では、\SpecialCharNoPassThru LyX
3816 でサポートされている書誌情報の特別な機能について説明することとします。
3817 \end_layout
3818
3819 \begin_layout Subsection
3820 他の引用様式
3821 \end_layout
3822
3823 \begin_layout Standard
3824 標準のBib\SpecialCharNoPassThru TeX
3825 は、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。も
3826 っともよく見られるのは、著者-出版年様式(例:Knuth 1984a)です。\SpecialCharNoPassThru LyX
3827 は、この様式を提供する2つのパッケージ
3828 \begin_inset Flex Code
3829 status collapsed
3830
3831 \begin_layout Plain Layout
3832 natbib
3833 \end_layout
3834
3835 \end_inset
3836
3837
3838 \begin_inset Flex Code
3839 status collapsed
3840
3841 \begin_layout Plain Layout
3842 jurabib
3843 \end_layout
3844
3845 \end_inset
3846
3847 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3848 様式が欲しい場合や、無数にある
3849 \begin_inset Flex Code
3850 status collapsed
3851
3852 \begin_layout Plain Layout
3853 natbib
3854 \end_layout
3855
3856 \end_inset
3857
3858 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3859 \begin_inset Flex Code
3860 status collapsed
3861
3862 \begin_layout Plain Layout
3863 natbib
3864 \end_layout
3865
3866 \end_inset
3867
3868 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3869 \emph on
3870 ibid.
3871 \emph default
3872 など、特別な機能が必要な場合には、
3873 \begin_inset Flex Code
3874 status collapsed
3875
3876 \begin_layout Plain Layout
3877 jurabib
3878 \end_layout
3879
3880 \end_inset
3881
3882 パッケージの利用を考えるとよいかもしれません。
3883 \end_layout
3884
3885 \begin_layout Standard
3886 \SpecialCharNoPassThru LyX
3887 での両パッケージの取扱い方は、ほぼ同じです。
3888 \begin_inset Flex MenuItem
3889 status collapsed
3890
3891 \begin_layout Plain Layout
3892 文書\SpecialChar menuseparator
3893 設定
3894 \end_layout
3895
3896 \end_inset
3897
3898 メニューを開き、
3899 \begin_inset Flex MenuItem
3900 status collapsed
3901
3902 \begin_layout Plain Layout
3903 書誌情報
3904 \end_layout
3905
3906 \end_inset
3907
3908 項目から
3909 \begin_inset Flex MenuItem
3910 status collapsed
3911
3912 \begin_layout Plain Layout
3913 Natbib
3914 \end_layout
3915
3916 \end_inset
3917
3918 オプションか
3919 \begin_inset Flex MenuItem
3920 status collapsed
3921
3922 \begin_layout Plain Layout
3923 Jurabib
3924 \end_layout
3925
3926 \end_inset
3927
3928 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3929 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
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 Foot
3942 status collapsed
3943
3944 \begin_layout Plain Layout
3945 \begin_inset Flex URL
3946 status open
3947
3948 \begin_layout Plain Layout
3949
3950 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3951 \end_layout
3952
3953 \end_inset
3954
3955 をご参照ください。
3956 \end_layout
3957
3958 \end_inset
3959
3960
3961 \end_layout
3962
3963 \begin_layout Subsection
3964 節分けされた書誌情報
3965 \end_layout
3966
3967 \begin_layout Standard
3968 場合によっては、書誌情報をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3969 でさえあります。残念ながら、Bib\SpecialCharNoPassThru TeX
3970 自身ではこのようなことができません。しかし、適切な\SpecialCharNoPassThru LaTeX
3971 パッケージの助けを借りると、Bib\SpecialCharNoPassThru TeX
3972 をこのような必要性を
3973 満たすように拡張することができます。
3974 \end_layout
3975
3976 \begin_layout Standard
3977 \SpecialCharNoPassThru LyX
3978 は、このようなパッケージの一つである
3979 \begin_inset Flex Code
3980 status collapsed
3981
3982 \begin_layout Plain Layout
3983 bibtopic
3984 \end_layout
3985
3986 \end_inset
3987
3988
3989 \begin_inset Foot
3990 status collapsed
3991
3992 \begin_layout Plain Layout
3993 \begin_inset Flex URL
3994 status open
3995
3996 \begin_layout Plain Layout
3997
3998 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3999 \end_layout
4000
4001 \end_inset
4002
4003 から入手可能です。
4004 \end_layout
4005
4006 \end_inset
4007
4008 をそのままでサポートします。このパッケージの長所は、(
4009 \begin_inset Flex Code
4010 status collapsed
4011
4012 \begin_layout Plain Layout
4013 multibib
4014 \end_layout
4015
4016 \end_inset
4017
4018 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、書誌情報の違う節には、その節向けの項目を収録した別の文献データ
4019 ベースを用意する必要があります。たとえば、書誌情報を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの文献データベース、たとえば
4020 \begin_inset Flex Code
4021 status collapsed
4022
4023 \begin_layout Plain Layout
4024 souces.bib
4025 \end_layout
4026
4027 \end_inset
4028
4029
4030 \begin_inset Flex Code
4031 status collapsed
4032
4033 \begin_layout Plain Layout
4034 scientific.bib
4035 \end_layout
4036
4037 \end_inset
4038
4039 とを作成する必要があります。
4040 \end_layout
4041
4042 \begin_layout Standard
4043 \begin_inset Flex MenuItem
4044 status collapsed
4045
4046 \begin_layout Plain Layout
4047 文書\SpecialChar menuseparator
4048 設定
4049 \end_layout
4050
4051 \end_inset
4052
4053 を開いて
4054 \begin_inset Flex MenuItem
4055 status collapsed
4056
4057 \begin_layout Plain Layout
4058 書誌情報
4059 \end_layout
4060
4061 \end_inset
4062
4063 の下の
4064 \begin_inset Flex MenuItem
4065 status collapsed
4066
4067 \begin_layout Plain Layout
4068 節分けされた書誌情報
4069 \end_layout
4070
4071 \end_inset
4072
4073 をチェックしてください。すると、書誌情報の各節に一つずつ、複数の書誌情報を挿入することができます。上記の例では、Bib\SpecialCharNoPassThru TeX
4074 書誌情報
4075 \begin_inset Flex Code
4076 status collapsed
4077
4078 \begin_layout Plain Layout
4079 sources.bib
4080 \end_layout
4081
4082 \end_inset
4083
4084 と二つめの文献データベース
4085 \begin_inset Flex Code
4086 status collapsed
4087
4088 \begin_layout Plain Layout
4089 scientific.bib
4090 \end_layout
4091
4092 \end_inset
4093
4094 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、書誌情報の節に、指定したデータベースの「引用されたすべての参照」を載せる
4095 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし書誌情報を「本文に引用
4096 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
4097 ます。
4098 \begin_inset Flex Code
4099 status collapsed
4100
4101 \begin_layout Plain Layout
4102 bibtopic
4103 \end_layout
4104
4105 \end_inset
4106
4107 は、書誌情報用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
4108 \end_layout
4109
4110 \begin_layout Subsection
4111 複数の書誌情報
4112 \end_layout
4113
4114 \begin_layout Standard
4115 文書の節ごとあるいは章ごとの書誌情報など、複数の書誌情報はBib\SpecialCharNoPassThru TeX
4116 自身ではサポートされていません。しかしながら、もし若干の
4117 \begin_inset Flex Code
4118 status collapsed
4119
4120 \begin_layout Plain Layout
4121 \SpecialCharNoPassThru TeX
4122 コード
4123 \end_layout
4124
4125 \end_inset
4126
4127 (第
4128 \begin_inset CommandInset ref
4129 LatexCommand ref
4130 reference "sec:LaTeXコードを挿入する"
4131
4132 \end_inset
4133
4134 節を参照)を利用することを厭わなければ、\SpecialCharNoPassThru LyX
4135 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4136 \begin_inset Flex Code
4137 status collapsed
4138
4139 \begin_layout Plain Layout
4140 bibtopic
4141 \end_layout
4142
4143 \end_inset
4144
4145 パッケージが、この課題を解決する簡単な方法を提供します
4146 \begin_inset Foot
4147 status collapsed
4148
4149 \begin_layout Plain Layout
4150 ほかに、
4151 \begin_inset Flex Code
4152 status collapsed
4153
4154 \begin_layout Plain Layout
4155 chapterbib
4156 \end_layout
4157
4158 \end_inset
4159
4160
4161 \begin_inset Flex Code
4162 status collapsed
4163
4164 \begin_layout Plain Layout
4165 bibunits
4166 \end_layout
4167
4168 \end_inset
4169
4170 パッケージを利用する方法もあります。
4171 \end_layout
4172
4173 \end_inset
4174
4175
4176 \end_layout
4177
4178 \begin_layout Standard
4179 まず
4180 \begin_inset Flex MenuItem
4181 status collapsed
4182
4183 \begin_layout Plain Layout
4184 文書\SpecialChar menuseparator
4185 設定
4186 \end_layout
4187
4188 \end_inset
4189
4190 に行って
4191 \begin_inset Flex MenuItem
4192 status collapsed
4193
4194 \begin_layout Plain Layout
4195 書誌情報
4196 \end_layout
4197
4198 \end_inset
4199
4200 の下の
4201 \begin_inset Flex MenuItem
4202 status collapsed
4203
4204 \begin_layout Plain Layout
4205 節分けされた書誌情報
4206 \end_layout
4207
4208 \end_inset
4209
4210 を有効にしてください。つぎに文書中において、書誌情報(Bib\SpecialCharNoPassThru TeX
4211 書誌情報本体を含む)の入った節を
4212 \begin_inset Flex Code
4213 status collapsed
4214
4215 \begin_layout Plain Layout
4216
4217 \backslash
4218 begin{btUnit}
4219 \end_layout
4220
4221 \end_inset
4222
4223
4224 \begin_inset Flex Code
4225 status collapsed
4226
4227 \begin_layout Plain Layout
4228
4229 \backslash
4230 end{btUnit}
4231 \end_layout
4232
4233 \end_inset
4234
4235 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialCharNoPassThru TeX
4236 コードとして挿入する必要があります)。書誌情報には、現在位置の
4237 \begin_inset Flex Code
4238 status collapsed
4239
4240 \begin_layout Plain Layout
4241 btUnit
4242 \end_layout
4243
4244 \end_inset
4245
4246 において引用されたすべての参照が含まれることになります。
4247 \series bold
4248 (註)
4249 \series default
4250 この方法を用いる場合には、すべての参照はいずれかの
4251 \begin_inset Flex Code
4252 status collapsed
4253
4254 \begin_layout Plain Layout
4255 btUnit
4256 \end_layout
4257
4258 \end_inset
4259
4260 内部になくてはなりません。また、
4261 \begin_inset Flex Code
4262 status collapsed
4263
4264 \begin_layout Plain Layout
4265 btUnit
4266 \end_layout
4267
4268 \end_inset
4269
4270 は入れ子構造にすることができません。
4271 \end_layout
4272
4273 \begin_layout Section
4274 複合文書
4275 \end_layout
4276
4277 \begin_layout Subsection
4278 一般的な操作
4279 \end_layout
4280
4281 \begin_layout Standard
4282 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
4283 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
4284 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々の\SpecialCharNoPassThru LyX
4285 ファイルにして、タイトル・著者・概要・書誌情報等と、これら五つのインクルード
4286 \begin_inset Foot
4287 status collapsed
4288
4289 \begin_layout Plain Layout
4290
4291 \series bold
4292 (訳註)
4293 \series default
4294 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
4295 ま使用します。
4296 \end_layout
4297
4298 \end_inset
4299
4300 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
4301 独でも出力したり印刷したりすることのできる完全な\SpecialCharNoPassThru LyX
4302 ファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりませ
4303 ん。articleクラスとbookクラスを混在させるようなことはなさらないでください。\SpecialCharNoPassThru LaTeX
4304 ファイルをインクルードすることもできますが、このファイルにはプリ
4305 アンブルがあってはなりません(
4306 \begin_inset Flex Code
4307 status collapsed
4308
4309 \begin_layout Plain Layout
4310
4311 \backslash
4312 begin{document}
4313 \end_layout
4314
4315 \end_inset
4316
4317 行とその前のすべて、および
4318 \begin_inset Flex Code
4319 status collapsed
4320
4321 \begin_layout Plain Layout
4322
4323 \backslash
4324 end{document}行
4325 \end_layout
4326
4327 \end_inset
4328
4329 は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
4330 \end_layout
4331
4332 \begin_layout Standard
4333 \SpecialCharNoPassThru LyX
4334 では、
4335 \family sans
4336 挿入\SpecialChar menuseparator
4337 ファイル\SpecialChar menuseparator
4338 子文書
4339 \family default
4340 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
4341 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
4342 \end_layout
4343
4344 \begin_layout Standard
4345 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
4346 「input」の違いは、正確には\SpecialCharNoPassThru LaTeX
4347 の達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁
4348 から組版されるのに対し、「input」されたファイルは現在のページから組版される点です。
4349 \end_layout
4350
4351 \begin_layout Standard
4352 一般に、マスターファイルは、組版前に完全な\SpecialCharNoPassThru LaTeX
4353 ファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たない\SpecialCharNoPassThru LaTeX
4354 ファイル
4355 に変換されます。
4356 \end_layout
4357
4358 \begin_layout Standard
4359 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
4360 \begin_inset Flex Code
4361 status collapsed
4362
4363 \begin_layout Plain Layout
4364 verbatim
4365 \end_layout
4366
4367 \end_inset
4368
4369 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常の\SpecialCharNoPassThru LyX
4370 での空白の取扱いとは違って、連続した複数の空白がそのまま出力される
4371 ものの、単なる見えない空白です。ただし、
4372 \family sans
4373
4374 \begin_inset Flex MenuItem
4375 status collapsed
4376
4377 \begin_layout Plain Layout
4378
4379 \family sans
4380 出力の空白に印付けをする
4381 \end_layout
4382
4383 \end_inset
4384
4385
4386 \family default
4387 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4388 \end_layout
4389
4390 \begin_layout Subsection
4391 ファイル間の相互参照
4392 \end_layout
4393
4394 \begin_layout Standard
4395 \begin_inset Box Shadowbox
4396 position "t"
4397 hor_pos "c"
4398 has_inner_box 1
4399 inner_pos "t"
4400 use_parbox 0
4401 use_makebox 0
4402 width "100col%"
4403 special "none"
4404 height "1in"
4405 height_special "totalheight"
4406 thickness "0.4pt"
4407 separation "3pt"
4408 shadowsize "4pt"
4409 framecolor "black"
4410 backgroundcolor "none"
4411 status open
4412
4413 \begin_layout Plain Layout
4414 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4415 \end_layout
4416
4417 \end_inset
4418
4419
4420 \end_layout
4421
4422 \begin_layout Standard
4423 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4424 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4425 」を選んでください。
4426 \end_layout
4427
4428 \begin_layout Subsection
4429 すべての子文書での書誌情報
4430 \end_layout
4431
4432 \begin_layout Standard
4433 \begin_inset Box Shadowbox
4434 position "t"
4435 hor_pos "c"
4436 has_inner_box 1
4437 inner_pos "t"
4438 use_parbox 0
4439 use_makebox 0
4440 width "100col%"
4441 special "none"
4442 height "1in"
4443 height_special "totalheight"
4444 thickness "0.4pt"
4445 separation "3pt"
4446 shadowsize "4pt"
4447 framecolor "black"
4448 backgroundcolor "none"
4449 status open
4450
4451 \begin_layout Plain Layout
4452 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4453 \end_layout
4454
4455 \end_inset
4456
4457
4458 \end_layout
4459
4460 \begin_layout Standard
4461 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし、それをコメントに変更してください。このようにすることで、\SpecialCharNoPassThru LyX
4462 は.bibファイルを見つけることができ、書
4463 誌情報一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4464 \end_layout
4465
4466 \begin_layout Standard
4467 書誌情報一覧がコメントにあるために、\SpecialCharNoPassThru LaTeX
4468 はそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメ
4469 ントをインクルードする\SpecialCharNoPassThru LaTeX
4470 パッケージの
4471 \begin_inset Flex Code
4472 status collapsed
4473
4474 \begin_layout Plain Layout
4475 comment
4476 \end_layout
4477
4478 \end_inset
4479
4480 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4481 \end_layout
4482
4483 \begin_layout LyX-Code
4484
4485 \backslash
4486 usepackage{comment}
4487 \end_layout
4488
4489 \begin_layout LyX-Code
4490
4491 \backslash
4492 includecomment{comment}
4493 \end_layout
4494
4495 \begin_layout Standard
4496 \begin_inset Flex URL
4497 status collapsed
4498
4499 \begin_layout Plain Layout
4500
4501 http://wiki.lyx.org/FAQ/Unsorted#toc31
4502 \end_layout
4503
4504 \end_inset
4505
4506 も参照してください。
4507 \end_layout
4508
4509 \begin_layout Section
4510 \SpecialCharNoPassThru LyX
4511 書庫
4512 \end_layout
4513
4514 \begin_layout Standard
4515 しばしばユーザーは、出版社に送ったり、共著者とやりとりするために、\SpecialCharNoPassThru LyX
4516 ファイルを、その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあり
4517 ます。\SpecialCharNoPassThru LyX
4518  2.0には、この過程を自動化するPythonスクリプト(
4519 \begin_inset Flex Code
4520 status collapsed
4521
4522 \begin_layout Plain Layout
4523 lyxpak.py
4524 \end_layout
4525
4526 \end_inset
4527
4528 )が含まれています。これを使うには、
4529 \begin_inset Flex Code
4530 status collapsed
4531
4532 \begin_layout Plain Layout
4533 zipfile
4534 \end_layout
4535
4536 \end_inset
4537
4538  pythonモジュールまたは
4539 \begin_inset Flex Code
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543 tarfile
4544 \end_layout
4545
4546 \end_inset
4547
4548  pythonモジュールが、システムに導入済みであることが必要です。既定設定では、Unix系システムでは、
4549 \begin_inset Flex Code
4550 status collapsed
4551
4552 \begin_layout Plain Layout
4553 gzip
4554 \end_layout
4555
4556 \end_inset
4557
4558 圧縮
4559 \begin_inset Flex Code
4560 status collapsed
4561
4562 \begin_layout Plain Layout
4563 tar
4564 \end_layout
4565
4566 \end_inset
4567
4568 ファイル形式が優先され、Windowsでは
4569 \begin_inset Flex Code
4570 status collapsed
4571
4572 \begin_layout Plain Layout
4573 zip
4574 \end_layout
4575
4576 \end_inset
4577
4578 形式が優先されます。
4579 \end_layout
4580
4581 \begin_layout Standard
4582 \SpecialCharNoPassThru LyX
4583 の環境構成時には、「\SpecialCharNoPassThru LyX
4584 書庫」を書き出すことができるようにスクリプトが準備され、
4585 \begin_inset Flex MenuItem
4586 status collapsed
4587
4588 \begin_layout Plain Layout
4589 ファイル\SpecialChar menuseparator
4590 書き出し
4591 \end_layout
4592
4593 \end_inset
4594
4595 の下で利用可能となります。
4596 \end_layout
4597
4598 \begin_layout Standard
4599 \begin_inset Flex MenuItem
4600 status collapsed
4601
4602 \begin_layout Plain Layout
4603 ツール\SpecialChar menuseparator
4604 設定\SpecialChar menuseparator
4605 ファイル処理\SpecialChar menuseparator
4606 変換子
4607 \end_layout
4608
4609 \end_inset
4610
4611
4612 \begin_inset Flex MenuItem
4613 status collapsed
4614
4615 \begin_layout Plain Layout
4616 \SpecialCharNoPassThru LyX
4617 \SpecialChar menuseparator
4618 \SpecialCharNoPassThru LyX
4619 書庫
4620 \end_layout
4621
4622 \end_inset
4623
4624 変換子に、
4625 \begin_inset Flex Code
4626 status collapsed
4627
4628 \begin_layout Plain Layout
4629 -t
4630 \end_layout
4631
4632 \end_inset
4633
4634 スイッチや
4635 \begin_inset Flex Code
4636 status collapsed
4637
4638 \begin_layout Plain Layout
4639 -z
4640 \end_layout
4641
4642 \end_inset
4643
4644 スイッチを加えることで、プラットホームとは独立に、
4645 \begin_inset Flex Code
4646 status collapsed
4647
4648 \begin_layout Plain Layout
4649 tar
4650 \end_layout
4651
4652 \end_inset
4653
4654 形式や
4655 \begin_inset Flex Code
4656 status collapsed
4657
4658 \begin_layout Plain Layout
4659 zip
4660 \end_layout
4661
4662 \end_inset
4663
4664 形式を強制することができます(スイッチは、スクリプト名の前ではなく、後ろに加えてください)。
4665 \end_layout
4666
4667 \begin_layout Section
4668 装飾的なヘッダ・フッタ
4669 \end_layout
4670
4671 \begin_layout Standard
4672 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4673 \begin_inset Flex Code
4674 status collapsed
4675
4676 \begin_layout Plain Layout
4677 article
4678 \end_layout
4679
4680 \end_inset
4681
4682 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4683 に着飾るには、『
4684 \emph on
4685 ユーザーの手引き
4686 \emph default
4687 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、\SpecialCharNoPassThru LaTeX
4688 プリアンブ
4689 ルに挿入する必要のある\SpecialCharNoPassThru LaTeX
4690 コードについて解説します。
4691 \end_layout
4692
4693 \begin_layout Standard
4694 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4695 に分類されています。これらのフィールドをもっとも簡単に設定する\SpecialCharNoPassThru LaTeX
4696 コマンドには、
4697 \family typewriter
4698
4699 \begin_inset Flex Code
4700 status collapsed
4701
4702 \begin_layout Plain Layout
4703
4704 \family typewriter
4705
4706 \backslash
4707 lhead
4708 \end_layout
4709
4710 \end_inset
4711
4712
4713 \family default
4714
4715 \family typewriter
4716
4717 \begin_inset Flex Code
4718 status collapsed
4719
4720 \begin_layout Plain Layout
4721
4722 \family typewriter
4723
4724 \backslash
4725 chead
4726 \end_layout
4727
4728 \end_inset
4729
4730
4731 \family default
4732
4733 \family typewriter
4734
4735 \begin_inset Flex Code
4736 status collapsed
4737
4738 \begin_layout Plain Layout
4739
4740 \family typewriter
4741
4742 \backslash
4743 rhead
4744 \end_layout
4745
4746 \end_inset
4747
4748
4749 \family default
4750
4751 \begin_inset Flex Code
4752 status collapsed
4753
4754 \begin_layout Plain Layout
4755
4756 \backslash
4757 lfoot
4758 \end_layout
4759
4760 \end_inset
4761
4762 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4763 \end_layout
4764
4765 \begin_layout Standard
4766
4767 \family typewriter
4768
4769 \backslash
4770 lhead{物書 はじめ}
4771 \end_layout
4772
4773 \begin_layout Standard
4774 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4775 れるだけです。すなわち、
4776 \end_layout
4777
4778 \begin_layout Standard
4779
4780 \family typewriter
4781
4782 \backslash
4783 cfoot{}
4784 \begin_inset Newline newline
4785 \end_inset
4786
4787
4788 \family default
4789 とします。
4790 \end_layout
4791
4792 \begin_layout Standard
4793 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4794 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4795 \end_layout
4796
4797 \begin_layout Standard
4798
4799 \family typewriter
4800
4801 \backslash
4802 lhead{第
4803 \backslash
4804 thesection 節}
4805 \end_layout
4806
4807 \begin_layout Standard
4808
4809 \family typewriter
4810
4811 \backslash
4812 chead{}
4813 \end_layout
4814
4815 \begin_layout Standard
4816
4817 \family typewriter
4818
4819 \backslash
4820 rhead{
4821 \backslash
4822 thepage ページ}
4823 \end_layout
4824
4825 \begin_layout Standard
4826
4827 \family typewriter
4828
4829 \backslash
4830 lfoot{物書 はじめ}
4831 \end_layout
4832
4833 \begin_layout Standard
4834
4835 \family typewriter
4836
4837 \backslash
4838 cfoot{}
4839 \end_layout
4840
4841 \begin_layout Standard
4842
4843 \family typewriter
4844
4845 \backslash
4846 rfoot{
4847 \backslash
4848 today}
4849 \end_layout
4850
4851 \begin_layout Standard
4852 コマンド
4853 \family typewriter
4854
4855 \begin_inset Flex Code
4856 status collapsed
4857
4858 \begin_layout Plain Layout
4859
4860 \family typewriter
4861
4862 \backslash
4863 thesecti
4864 \family default
4865 o
4866 \family typewriter
4867 n
4868 \end_layout
4869
4870 \end_inset
4871
4872
4873 \family default
4874
4875 \begin_inset Flex Code
4876 status collapsed
4877
4878 \begin_layout Plain Layout
4879
4880 \family typewriter
4881
4882 \backslash
4883 thepa
4884 \family default
4885 ge
4886 \end_layout
4887
4888 \end_inset
4889
4890 は、それぞれ\SpecialCharNoPassThru LaTeX
4891 の節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4892 \begin_inset Flex Code
4893 status collapsed
4894
4895 \begin_layout Plain Layout
4896
4897 \family typewriter
4898
4899 \backslash
4900 tod
4901 \family default
4902 ay
4903 \end_layout
4904
4905 \end_inset
4906
4907 は、今日の日付を印字するものです。
4908 \end_layout
4909
4910 \begin_layout Standard
4911 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4912 フッタ罫線は0ptです。太さを変更するには、
4913 \family typewriter
4914
4915 \begin_inset Flex Code
4916 status collapsed
4917
4918 \begin_layout Plain Layout
4919
4920 \family typewriter
4921
4922 \backslash
4923 renewcommand{
4924 \backslash
4925 headrulewidth}{0.4pt}
4926 \end_layout
4927
4928 \end_inset
4929
4930
4931 \family default
4932
4933 \family typewriter
4934
4935 \begin_inset Flex Code
4936 status collapsed
4937
4938 \begin_layout Plain Layout
4939
4940 \family typewriter
4941
4942 \backslash
4943 renewcommand{
4944 \backslash
4945 footrulewidth}{0.4pt}
4946 \end_layout
4947
4948 \end_inset
4949
4950
4951 \family default
4952 のようなコマンドを使用してください。
4953 \end_layout
4954
4955 \begin_layout Standard
4956 \begin_inset Flex Code
4957 status collapsed
4958
4959 \begin_layout Plain Layout
4960
4961 \family typewriter
4962
4963 \backslash
4964 thispagestyle{empty}
4965 \end_layout
4966
4967 \end_inset
4968
4969
4970 \begin_inset Flex Code
4971 status collapsed
4972
4973 \begin_layout Plain Layout
4974
4975 \family typewriter
4976
4977 \backslash
4978 thispagestyle{plain}
4979 \end_layout
4980
4981 \end_inset
4982
4983
4984 \begin_inset Flex Code
4985 status collapsed
4986
4987 \begin_layout Plain Layout
4988
4989 \family typewriter
4990
4991 \backslash
4992 thispagestyle{fancy}
4993 \end_layout
4994
4995 \end_inset
4996
4997 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドを\SpecialCharNoPassThru TeX
4998 コード
4999 として挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプ
5000 レーン(plain)になるように設定されているのです。
5001 \end_layout
5002
5003 \begin_layout Standard
5004 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
5005 \begin_inset Flex Code
5006 status collapsed
5007
5008 \begin_layout Plain Layout
5009
5010 \family typewriter
5011 fancyhdr
5012 \end_layout
5013
5014 \end_inset
5015
5016 パッケージの取扱説明書をご参照ください(
5017 \begin_inset Flex Code
5018 status collapsed
5019
5020 \begin_layout Plain Layout
5021 fancyhdr.dvi
5022 \end_layout
5023
5024 \end_inset
5025
5026 を探してください)。
5027 \end_layout
5028
5029 \begin_layout Standard
5030 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
5031 \end_layout
5032
5033 \begin_layout Standard
5034
5035 \family typewriter
5036
5037 \backslash
5038 lhead{
5039 \backslash
5040 resizebox{1in}{!}{
5041 \backslash
5042 includegraphics{logo.eps}}}
5043 \end_layout
5044
5045 \begin_layout Standard
5046 \noindent
5047 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
5048 \begin_inset Newline newline
5049 \end_inset
5050
5051
5052 \begin_inset Flex Code
5053 status collapsed
5054
5055 \begin_layout Plain Layout
5056 \noindent
5057
5058 \family typewriter
5059
5060 \backslash
5061 usepackage{graphics}
5062 \end_layout
5063
5064 \end_inset
5065
5066 をプリアンブルに宣言する必要があります)。
5067 \end_layout
5068
5069 \begin_layout Section
5070 箇条書き(記号)ブリットの指定
5071 \begin_inset CommandInset label
5072 LatexCommand label
5073 name "sec:ブリット"
5074
5075 \end_inset
5076
5077
5078 \end_layout
5079
5080 \begin_layout Standard
5081
5082 \noun on
5083 Allan Rae文
5084 \end_layout
5085
5086 \begin_layout Subsection
5087 はじめに
5088 \end_layout
5089
5090 \begin_layout Standard
5091 \SpecialCharNoPassThru LyX
5092 には、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形
5093 を変更することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
5094 \begin_inset Foot
5095 status collapsed
5096
5097 \begin_layout Plain Layout
5098 正確には可能ですが、手動で行う必要があります。
5099 \end_layout
5100
5101 \end_inset
5102
5103
5104 \end_layout
5105
5106 \begin_layout Subsection
5107 外見
5108 \end_layout
5109
5110 \begin_layout Standard
5111 メニュー項目の
5112 \begin_inset Flex MenuItem
5113 status collapsed
5114
5115 \begin_layout Plain Layout
5116 文書\SpecialChar menuseparator
5117 設定
5118 \end_layout
5119
5120 \end_inset
5121
5122 を選択してダイアログを開き、
5123 \begin_inset Flex MenuItem
5124 status collapsed
5125
5126 \begin_layout Plain Layout
5127 ブリット
5128 \end_layout
5129
5130 \end_inset
5131
5132 タブを選択してください。
5133 \end_layout
5134
5135 \begin_layout Standard
5136 このダイアログは、ブリット形の一覧表を提示します。
5137 \begin_inset Flex MenuItem
5138 status collapsed
5139
5140 \begin_layout Plain Layout
5141 フォント
5142 \end_layout
5143
5144 \end_inset
5145
5146 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
5147 \begin_inset Flex MenuItem
5148 status collapsed
5149
5150 \begin_layout Plain Layout
5151 階層
5152 \end_layout
5153
5154 \end_inset
5155
5156 パネルは、変更したい階層を選択するものです。
5157 \begin_inset Flex MenuItem
5158 status collapsed
5159
5160 \begin_layout Plain Layout
5161 任意のブリット
5162 \end_layout
5163
5164 \end_inset
5165
5166 では、指定したい\SpecialCharNoPassThru LaTeX
5167 表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージを\SpecialCharNoPassThru LaTeX
5168 プリアンブルで指定する必
5169 要があります。
5170 \end_layout
5171
5172 \begin_layout Standard
5173 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名と\SpecialCharNoPassThru LaTeX
5174 パッケージの対応表です。
5175 \begin_inset Separator parbreak
5176 \end_inset
5177
5178 \end_layout
5179
5180 \begin_layout Standard
5181 \align center
5182 \begin_inset Tabular
5183 <lyxtabular version="3" rows="7" columns="2">
5184 <features rotate="0" tabularvalignment="middle">
5185 <column alignment="center" valignment="top" width="0pt">
5186 <column alignment="center" valignment="top" width="0pt">
5187 <row>
5188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5189 \begin_inset Text
5190
5191 \begin_layout Plain Layout
5192 フォント
5193 \end_layout
5194
5195 \end_inset
5196 </cell>
5197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5198 \begin_inset Text
5199
5200 \begin_layout Plain Layout
5201
5202 \family roman
5203 \series medium
5204 \shape up
5205 \size normal
5206 \emph off
5207 \bar no
5208 \noun off
5209 \color none
5210 必要とするパッケージ
5211 \end_layout
5212
5213 \end_inset
5214 </cell>
5215 </row>
5216 <row>
5217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5218 \begin_inset Text
5219
5220 \begin_layout Plain Layout
5221
5222 \family sans
5223 標準
5224 \end_layout
5225
5226 \end_inset
5227 </cell>
5228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5229 \begin_inset Text
5230
5231 \begin_layout Plain Layout
5232
5233 \series medium
5234 \shape up
5235 \size normal
5236 \emph off
5237 \bar no
5238 \noun off
5239 \color none
5240 \SpecialCharNoPassThru LaTeX
5241 \family roman
5242 本体
5243 \end_layout
5244
5245 \end_inset
5246 </cell>
5247 </row>
5248 <row>
5249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5250 \begin_inset Text
5251
5252 \begin_layout Plain Layout
5253
5254 \family sans
5255 \series medium
5256 \shape up
5257 \size normal
5258 \emph off
5259 \bar no
5260 \noun off
5261 \color none
5262 数式
5263 \end_layout
5264
5265 \end_inset
5266 </cell>
5267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5268 \begin_inset Text
5269
5270 \begin_layout Plain Layout
5271
5272 \family typewriter
5273 \series medium
5274 \shape up
5275 \size normal
5276 \emph off
5277 \bar no
5278 \noun off
5279 \color none
5280 amssymb.sty
5281 \end_layout
5282
5283 \end_inset
5284 </cell>
5285 </row>
5286 <row>
5287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5288 \begin_inset Text
5289
5290 \begin_layout Plain Layout
5291
5292 \family sans
5293 \series medium
5294 \shape up
5295 \size normal
5296 \emph off
5297 \bar no
5298 \noun off
5299 \color none
5300 絵文字1
5301 \end_layout
5302
5303 \end_inset
5304 </cell>
5305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5306 \begin_inset Text
5307
5308 \begin_layout Plain Layout
5309
5310 \family typewriter
5311 \series medium
5312 \shape up
5313 \size normal
5314 \emph off
5315 \bar no
5316 \noun off
5317 \color none
5318 pifont.sty
5319 \end_layout
5320
5321 \end_inset
5322 </cell>
5323 </row>
5324 <row>
5325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5326 \begin_inset Text
5327
5328 \begin_layout Plain Layout
5329
5330 \family sans
5331 \series medium
5332 \shape up
5333 \size normal
5334 \emph off
5335 \bar no
5336 \noun off
5337 \color none
5338 絵文字2
5339 \end_layout
5340
5341 \end_inset
5342 </cell>
5343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5344 \begin_inset Text
5345
5346 \begin_layout Plain Layout
5347
5348 \family typewriter
5349 \series medium
5350 \shape up
5351 \size normal
5352 \emph off
5353 \bar no
5354 \noun off
5355 \color none
5356 pifont.sty
5357 \end_layout
5358
5359 \end_inset
5360 </cell>
5361 </row>
5362 <row>
5363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5364 \begin_inset Text
5365
5366 \begin_layout Plain Layout
5367
5368 \family sans
5369 \series medium
5370 \shape up
5371 \size normal
5372 \emph off
5373 \bar no
5374 \noun off
5375 \color none
5376 絵文字3
5377 \end_layout
5378
5379 \end_inset
5380 </cell>
5381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5382 \begin_inset Text
5383
5384 \begin_layout Plain Layout
5385
5386 \family typewriter
5387 \series medium
5388 \shape up
5389 \size normal
5390 \emph off
5391 \bar no
5392 \noun off
5393 \color none
5394 pifont.sty
5395 \end_layout
5396
5397 \end_inset
5398 </cell>
5399 </row>
5400 <row>
5401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5402 \begin_inset Text
5403
5404 \begin_layout Plain Layout
5405
5406 \family sans
5407 \series medium
5408 \shape up
5409 \size normal
5410 \emph off
5411 \bar no
5412 \noun off
5413 \color none
5414 絵文字4
5415 \end_layout
5416
5417 \end_inset
5418 </cell>
5419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5420 \begin_inset Text
5421
5422 \begin_layout Plain Layout
5423
5424 \family typewriter
5425 \series medium
5426 \shape up
5427 \size normal
5428 \emph off
5429 \bar no
5430 \noun off
5431 \color none
5432 pifont.sty
5433 \end_layout
5434
5435 \end_inset
5436 </cell>
5437 </row>
5438 </lyxtabular>
5439
5440 \end_inset
5441
5442
5443 \end_layout
5444
5445 \begin_layout Standard
5446 \SpecialCharNoPassThru LyX
5447 は、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときに\SpecialCharNoPassThru LaTeX
5448 エラーが
5449 出るようならば、パッケージが導入されていない可能性が大です
5450 \begin_inset Foot
5451 status collapsed
5452
5453 \begin_layout Plain Layout
5454 \SpecialCharNoPassThru LyX
5455 が、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
5456 \end_layout
5457
5458 \end_inset
5459
5460
5461 \end_layout
5462
5463 \begin_layout Subsection
5464 使用法
5465 \end_layout
5466
5467 \begin_layout Standard
5468 変更したいブリット階層を選んで、ブリット形と寸法を選択してください。何らかの変更を加えたとしても、\SpecialCharNoPassThru LyX
5469 上には反映されませんが、文書の表示を行えば確認されます。
5470 \end_layout
5471
5472 \begin_layout Standard
5473 ブリット形は、適切な階層のブリットボタンをマウスで右クリックすれば、簡単に既定値に初期化することができます
5474 \begin_inset Foot
5475 status collapsed
5476
5477 \begin_layout Plain Layout
5478 もし
5479 \emph on
5480 本当に
5481 \emph default
5482 段落ごとに異なるブリットの形を使いたいならば、\SpecialCharNoPassThru TeX
5483 コードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTe
5484 Xコードを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
5485 \end_layout
5486
5487 \begin_layout Plain Layout
5488 \begin_inset ERT
5489 status open
5490
5491 \begin_layout Plain Layout
5492
5493
5494 \backslash
5495 let
5496 \backslash
5497 savelabelitemi=
5498 \backslash
5499 labelitemi
5500 \end_layout
5501
5502 \end_inset
5503
5504
5505 \end_layout
5506
5507 \begin_layout Plain Layout
5508 \begin_inset ERT
5509 status open
5510
5511 \begin_layout Plain Layout
5512
5513
5514 \backslash
5515 renewcommand
5516 \backslash
5517 labelitemi[0]{
5518 \backslash
5519 small
5520 \backslash
5521 (
5522 \backslash
5523 sharp
5524 \backslash
5525 )}
5526 \end_layout
5527
5528 \end_inset
5529
5530
5531 \end_layout
5532
5533 \begin_layout Itemize
5534 特定の階層の新しいブリット形を指定するには、\SpecialCharNoPassThru LaTeX
5535 コマンド
5536 \begin_inset Flex Code
5537 status collapsed
5538
5539 \begin_layout Plain Layout
5540
5541 \family typewriter
5542
5543 \backslash
5544 renewcommand{}{}
5545 \end_layout
5546
5547 \end_inset
5548
5549 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
5550 更するために、以下の\SpecialCharNoPassThru LaTeX
5551 コードが使用されています。
5552 \family default
5553 \begin_inset Separator parbreak
5554 \end_inset
5555
5556 \end_layout
5557
5558 \begin_deeper
5559 \begin_layout LyX-Code
5560
5561 \family typewriter
5562
5563 \backslash
5564 let
5565 \backslash
5566 savelabelitemi=
5567 \backslash
5568 labelitemi
5569 \end_layout
5570
5571 \begin_layout LyX-Code
5572
5573 \family typewriter
5574
5575 \backslash
5576 renewcommand
5577 \backslash
5578 labelitemi[0]{
5579 \backslash
5580 small
5581 \backslash
5582 (
5583 \backslash
5584 sharp
5585 \backslash
5586 )}
5587 \end_layout
5588
5589 \end_deeper
5590 \begin_layout Itemize
5591 箇条書き(記号)の階層は、
5592 \begin_inset Flex Code
5593 status collapsed
5594
5595 \begin_layout Plain Layout
5596
5597 \backslash
5598 labelitem
5599 \end_layout
5600
5601 \end_inset
5602
5603 コマンドの一部にローマ数字で指定されていることに注意してください。
5604 \end_layout
5605
5606 \begin_layout Itemize
5607 \begin_inset ERT
5608 status open
5609
5610 \begin_layout Plain Layout
5611
5612 [
5613 \backslash
5614 (
5615 \backslash
5616 star
5617 \backslash
5618 )]
5619 \end_layout
5620
5621 \end_inset
5622
5623 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5624 \begin_inset Flex Code
5625 status collapsed
5626
5627 \begin_layout Plain Layout
5628 \SpecialCharNoPassThru TeX
5629 コード
5630 \end_layout
5631
5632 \end_inset
5633
5634 として挿入してください。たとえば、この項目の行頭には
5635 \family typewriter
5636
5637 \begin_inset Flex Code
5638 status collapsed
5639
5640 \begin_layout Plain Layout
5641
5642 \family typewriter
5643 [
5644 \backslash
5645 (
5646 \backslash
5647 star
5648 \backslash
5649 )]
5650 \end_layout
5651
5652 \end_inset
5653
5654
5655 \family default
5656 が指定されています。
5657 \end_layout
5658
5659 \begin_layout Plain Layout
5660 \begin_inset ERT
5661 status open
5662
5663 \begin_layout Plain Layout
5664
5665
5666 \backslash
5667 renewcommand
5668 \backslash
5669 labelitemi[0]{
5670 \backslash
5671 savelabelitemi}
5672 \end_layout
5673
5674 \end_inset
5675
5676
5677 \end_layout
5678
5679 \begin_layout Plain Layout
5680 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5681 \end_layout
5682
5683 \begin_layout LyX-Code
5684
5685 \family typewriter
5686
5687 \backslash
5688 renewcommand
5689 \backslash
5690 labelitemi[0]{
5691 \backslash
5692 savelabelitemi}
5693 \end_layout
5694
5695 \end_inset
5696
5697
5698 \end_layout
5699
5700 \begin_layout Chapter
5701 \SpecialCharNoPassThru LyX
5702 とインターネット網
5703 \end_layout
5704
5705 \begin_layout Standard
5706 \SpecialCharNoPassThru LyX
5707 は、これまでも長い間、HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました。しかしながら、第2.0版以前では、HTMLへの書
5708 き出しは、常に外部変換子を用いることで実現されていました
5709 \begin_inset Foot
5710 status collapsed
5711
5712 \begin_layout Plain Layout
5713 \SpecialCharNoPassThru LyX
5714 で外部変換子を使うことについての詳細は、取扱説明書『
5715 \emph on
5716 カスタマイズ篇
5717 \emph default
5718 』の「
5719 \emph on
5720 変換子
5721 \emph default
5722 」の節をご覧ください。
5723 \end_layout
5724
5725 \end_inset
5726
5727 。これらは2つのグループに大別できます。1つは、
5728 \begin_inset Flex Code
5729 status collapsed
5730
5731 \begin_layout Plain Layout
5732 htlatex
5733 \end_layout
5734
5735 \end_inset
5736
5737
5738 \begin_inset Flex Code
5739 status collapsed
5740
5741 \begin_layout Plain Layout
5742 html2latex
5743 \end_layout
5744
5745 \end_inset
5746
5747
5748 \begin_inset Flex Code
5749 status collapsed
5750
5751 \begin_layout Plain Layout
5752 plastex
5753 \end_layout
5754
5755 \end_inset
5756
5757 のように、\SpecialCharNoPassThru LaTeX
5758 を中間形式として用い、その\SpecialCharNoPassThru LaTeX
5759 を生成するのに\SpecialCharNoPassThru LyX
5760 を用いるもの。2つめは、
5761 \begin_inset Flex Code
5762 status collapsed
5763
5764 \begin_layout Plain Layout
5765 e\SpecialCharNoPassThru LyX
5766 er
5767 \end_layout
5768
5769 \end_inset
5770
5771 のように、直接\SpecialCharNoPassThru LyX
5772 ファイルに働きかける変換子です。これらは、それぞれに長所・短所を有しています。
5773 \end_layout
5774
5775 \begin_layout Standard
5776 \SpecialCharNoPassThru LaTeX
5777 ベースの変換子は、原則として、\SpecialCharNoPassThru LaTeX
5778 が書きだす文書についてのすべてを知っているという長所があります。この種の変換子は、例えば、特定のコードのくだり
5779 が、\SpecialCharNoPassThru LyX
5780 によって生成されたのか、\SpecialCharNoPassThru TeX
5781 コードで書かれたのかについては気にしません。これらの変換子は、
5782 \begin_inset Flex Code
5783 status collapsed
5784
5785 \begin_layout Plain Layout
5786 aux
5787 \end_layout
5788
5789 \end_inset
5790
5791 ファイルやカウンタや参照を取り扱うことができ、Bib\SpecialCharNoPassThru TeX
5792 が生成する
5793 \begin_inset Flex Code
5794 status collapsed
5795
5796 \begin_layout Plain Layout
5797 bbl
5798 \end_layout
5799
5800 \end_inset
5801
5802 ファイルも利用することがよくあります。一方で、\SpecialCharNoPassThru LaTeX
5803 は解析の非常に難しい言語であり\threehyphens
5804 \SpecialCharNoPassThru TeX
5805 自身だけが\SpecialCharNoPassThru TeX
5806 を理解することができると言われたりすることがあ
5807 ります\threehyphens
5808 、\SpecialCharNoPassThru LaTeX
5809 ベースの変換子は、非常に簡単な文法に見えるものでさえ飲み込めず、複雑なものになると全く歯が立たないこともあります。例えば、この現行を書い
5810 ている時点では、取扱説明書『
5811 \emph on
5812 埋込オブジェクト篇
5813 \emph default
5814 』は、他の変換子では書き出しができるのに、
5815 \begin_inset Flex Code
5816 status collapsed
5817
5818 \begin_layout Plain Layout
5819 htlatex
5820 \end_layout
5821
5822 \end_inset
5823
5824 では行うことができません。他には、数式をどう取り扱うかという問題があります。これらの変換子の典型的なものは、数式を小さな画像に変換して、HTML文書からこれらの
5825 画像へのリンクを張ります。これらの画像は、実は\SpecialCharNoPassThru LaTeX
5826 によって生成されているので、正確です。しかしながら、これらはうまく伸縮できないので、実際の文書の中で表現
5827 されるように\threehyphens
5828 フォント寸が凡そ正しくなるように\threehyphens
5829 見せようとすると、大変な苦労を伴います。
5830 \end_layout
5831
5832 \begin_layout Standard
5833 Alex Fernandezの
5834 \begin_inset Flex Code
5835 status collapsed
5836
5837 \begin_layout Plain Layout
5838 e\SpecialCharNoPassThru LyX
5839 er
5840 \end_layout
5841
5842 \end_inset
5843
5844  (
5845 \begin_inset CommandInset href
5846 LatexCommand href
5847 name "http://elyxer.nongnu.org/"
5848 target "http://elyxer.nongnu.org/"
5849
5850 \end_inset
5851
5852 )は、これらの問題の一部を解決します。特に、これは数式を画像に変換するのではなく、HTMLとCSSを組み合わせて数式を生成するので、生成される数式は完璧な大きさ
5853 に伸縮されて表示されます。しかしながら、ちょっとだけ複雑な数式でさえ、
5854 \begin_inset Flex Code
5855 status collapsed
5856
5857 \begin_layout Plain Layout
5858 htlatex
5859 \end_layout
5860
5861 \end_inset
5862
5863 よりも質が落ちます。これはHTMLの限界を示しています
5864 \begin_inset Foot
5865 status collapsed
5866
5867 \begin_layout Plain Layout
5868 とはいえ、
5869 \begin_inset Flex Code
5870 status collapsed
5871
5872 \begin_layout Plain Layout
5873 e\SpecialCharNoPassThru LyX
5874 er
5875 \end_layout
5876
5877 \end_inset
5878
5879 では、数式用にjsMathとMathJaxを使用することもできます。ただし、この設定はグローバルにしか設定することができず、バックエンドで実行させるサーバへのア
5880 クセスが利用できる必要があります。
5881 \end_layout
5882
5883 \end_inset
5884
5885 。さらに重要なことは(少なくとも第1.1.1版においては)、
5886 \begin_inset Flex Code
5887 status collapsed
5888
5889 \begin_layout Plain Layout
5890 e\SpecialCharNoPassThru LyX
5891 er
5892 \end_layout
5893
5894 \end_inset
5895
5896 は数式マクロを一部しかサポートしておらず、ユーザ定義の段落様式や文字様式をサポートしていません。これらの制約によって、\SpecialCharNoPassThru LyX
5897 ユーザが生成する文書の多くにとっては
5898
5899 \begin_inset Flex Code
5900 status collapsed
5901
5902 \begin_layout Plain Layout
5903 e\SpecialCharNoPassThru LyX
5904 er
5905 \end_layout
5906
5907 \end_inset
5908
5909 は不向きなものになっています。もちろん、原理的に、これらの問題を解決することもできたのですが、\SpecialCharNoPassThru LyX
5910 開発陣は別の方法を採ることとし、\SpecialCharNoPassThru LyX
5911 が\SpecialCharNoPassThru LaTeX
5912 やDocB
5913 ook、平文を書き出すことができるのと同様に、\SpecialCharNoPassThru LyX
5914 自身にXHTMLを書きだす能力を身につけさせることとしたのです。
5915 \end_layout
5916
5917 \begin_layout Standard
5918 この原稿執筆時点では、XHTML出力は開発途上であり、おそらく「実験的」機能として解されるべきでしょう
5919 \begin_inset Foot
5920 status collapsed
5921
5922 \begin_layout Plain Layout
5923 \SpecialCharNoPassThru LyX
5924 ソースツリーもしくは
5925 \begin_inset CommandInset href
5926 LatexCommand href
5927 name "オンラインでのアクセス"
5928 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5929
5930 \end_inset
5931
5932 にある
5933 \begin_inset Flex Code
5934 status collapsed
5935
5936 \begin_layout Plain Layout
5937 development/HTML.notes
5938 \end_layout
5939
5940 \end_inset
5941
5942 ファイルには、通常、XHTML出力の現状についての最新の情報が収録されています。
5943 \begin_inset CommandInset href
5944 LatexCommand href
5945 name "バグ追跡ページ"
5946 target "http://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"
5947
5948 \end_inset
5949
5950 にあるXHTML関連バグ一覧も参照のこと。
5951 \end_layout
5952
5953 \end_inset
5954
5955 。それでもこのアプローチは、他の2つの方法よりも、潜在的な利点がいくつもあるので、開発陣はこの方法を選択したのです。
5956 \end_layout
5957
5958 \begin_layout Standard
5959 これらの利点は、主に、XHTML出力ルーチンが\SpecialCharNoPassThru LyX
5960 の一部となっているため、\SpecialCharNoPassThru LyX
5961 が出力する文書について\SpecialCharNoPassThru LyX
5962 が関知しているところのものは、すべて知り得るという
5963 ところから来ています
5964 \begin_inset Foot
5965 status collapsed
5966
5967 \begin_layout Plain Layout
5968 他には、これらのルーチンが\SpecialCharNoPassThru LyX
5969 内部にあるため、\SpecialCharNoPassThru LyX
5970 ファイル形式や既存の差込枠の文法に変更があっても、影響を受けずに済むという利点もあります。
5971 \end_layout
5972
5973 \end_inset
5974
5975 。つまり、XHTML出力ルーチンは、(文書構造に表示されるような形での)目次や、それぞれの段落様式に関連付けられたカウンタや、ユーザ定義の様式についても知ってい
5976 るのです。XHTML出力ルーチンは、国際化について\SpecialCharNoPassThru LyX
5977 が関知しているものも知っているので、ちょうどその時に有効になっている言語に依存して、「Chapter
5978  1」と出力されたり、「Kapitel 1」と出力されたりするのです。
5979 \end_layout
5980
5981 \begin_layout Standard
5982 汎く一般的に、出力ルーチンは、\SpecialCharNoPassThru LyX
5983 が文書レイアウトについて関知しているものは知っており、したがって、文書が画面上にどのように描画されるかも知っています。文書を
5984 XHTMLに出力するときには、この情報を利用します。特に、\SpecialCharNoPassThru LyX
5985 は、文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5986 \emph on
5987 自動的に
5988 \emph default
5989 生成します。もし節見出しが、\SpecialCharNoPassThru LyX
5990 中でサンセリフ体かつボールド体であるとすると、(既定では)ウェブブラウザに表示した時にも、サンセリフでボールドになります。これ
5991 は、節のような定義済み様式だけでなく、ユーザ定義のものも含めて、すべての様式でそうです。実際、XHTML出力ルーチンは、ユーザ定義の段落・文字様式と、\SpecialCharNoPassThru LyX
5992 自身
5993 の定義済み様式とを区別しません。どちらの場合も、\SpecialCharNoPassThru LyX
5994 が様式について関知しているところのものは、全てレイアウトファイルに含まれています。これは、脚注のような定義
5995 済み差込枠や、各種ユーザ設定差込枠でもそうです。
5996 \end_layout
5997
5998 \begin_layout Standard
5999 結果として、XHTML出力は、レイアウトファイルやモジュールを通して、\SpecialCharNoPassThru LaTeX
6000 出力と全く同じように、ユーザが設定したり拡張したりすることができるのです。詳細に
6001 ついては、取扱説明書『
6002 \emph on
6003 カスタマイズ篇
6004 \emph default
6005 』の第5章をごらんください。
6006 \end_layout
6007
6008 \begin_layout Standard
6009 本章の残りでは、XHTML出力についての、さらに詳細な情報について取り扱い、その制約や、制約の回避の仕方を取り扱います。
6010 \end_layout
6011
6012 \begin_layout Section
6013 XHTMLにおける数式出力
6014 \end_layout
6015
6016 \begin_layout Standard
6017 \SpecialCharNoPassThru LyX
6018 では、数式描画に4つの方法を選択できます。以下に示すように、それぞれに利点と欠点があります。
6019 \end_layout
6020
6021 \begin_layout Itemize
6022 MathML
6023 \begin_inset Newline newline
6024 \end_inset
6025
6026 MathMLは、ウェブ上で数学を用いるために、特にデザインされたXMLの一方言であり、これをサポートするブラウザ上では、通常、特に美しい表現が得られます。欠点は
6027 、すべてのブラウザがMathMLをサポートしているわけではないという事と、FirefoxのようなGeckoベースのブラウザでも、サポートが完璧ではないという事で
6028 す。
6029 \begin_inset Newline newline
6030 \end_inset
6031
6032 例えば、数式が
6033 \begin_inset Flex Code
6034 status collapsed
6035
6036 \begin_layout Plain Layout
6037 xymatrix
6038 \end_layout
6039
6040 \end_inset
6041
6042 パッケージを使用していたり、\SpecialCharNoPassThru TeX
6043 コードを使用しているなどで、もし\SpecialCharNoPassThru LyX
6044 が数式をMathMLとして描画できないとすると、\SpecialCharNoPassThru LyX
6045 は数式を代わりに画像として出力しま
6046 す。 
6047 \end_layout
6048
6049 \begin_layout Itemize
6050 HTML
6051 \begin_inset Newline newline
6052 \end_inset
6053
6054 前述のとおり、
6055 \begin_inset Flex Code
6056 status collapsed
6057
6058 \begin_layout Plain Layout
6059 elyxer
6060 \end_layout
6061
6062 \end_inset
6063
6064 は、数式をCSSで装飾したHTMLとして出力します
6065 \begin_inset Foot
6066 status collapsed
6067
6068 \begin_layout Plain Layout
6069 \SpecialCharNoPassThru LyX
6070 は、
6071 \begin_inset Flex Code
6072 status collapsed
6073
6074 \begin_layout Plain Layout
6075 elyxer
6076 \end_layout
6077
6078 \end_inset
6079
6080 からのHTML出力のために、CSSの一部を拝借しています。
6081 \end_layout
6082
6083 \end_inset
6084
6085 。簡単な数式では、これは非常にうまく行きますが、少し複雑な数式になると、
6086 \begin_inset Flex Code
6087 status collapsed
6088
6089 \begin_layout Plain Layout
6090 elyxer
6091 \end_layout
6092
6093 \end_inset
6094
6095 は歯が立たなくなります。それでも、この方法は非常に広くサポートされているという利点があり、かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう。
6096 \begin_inset Newline newline
6097 \end_inset
6098
6099 例えば、数式が
6100 \begin_inset Flex Code
6101 status collapsed
6102
6103 \begin_layout Plain Layout
6104 xymatrix
6105 \end_layout
6106
6107 \end_inset
6108
6109 パッケージを使用していたり、\SpecialCharNoPassThru TeX
6110 コードを使用しているなどで、もし\SpecialCharNoPassThru LyX
6111 が数式をHTMLとして描画できないとすると、\SpecialCharNoPassThru LyX
6112 は数式を代わりに画像として出力します。
6113  
6114 \end_layout
6115
6116 \begin_layout Itemize
6117 画像
6118 \begin_inset Newline newline
6119 \end_inset
6120
6121
6122 \begin_inset Flex Code
6123 status collapsed
6124
6125 \begin_layout Plain Layout
6126 htlatex
6127 \end_layout
6128
6129 \end_inset
6130
6131 のように、\SpecialCharNoPassThru LyX
6132 は数式を画像としても出力できます。この画像は、実は、自動プレビューで使用されているものと全く同じです
6133 \begin_inset Foot
6134 status collapsed
6135
6136 \begin_layout Plain Layout
6137 ただし、画像を出力に使うために、自動プレビューを入にしておく必要は
6138 \emph on
6139 ありません
6140 \emph default
6141
6142 \end_layout
6143
6144 \end_inset
6145
6146 。この方法の利点は、画像が他ならぬ\SpecialCharNoPassThru LaTeX
6147 によって生成されているので、非常に正確であることです。欠点は、前述したとおり、画像がビットマップなので、伸縮が全くう
6148 まく行かなかったり、コピーが出来なかったりといったことがあります(執筆時点においては、数式の付番にも問題があります。
6149 \begin_inset CommandInset href
6150 LatexCommand href
6151 name "バグ 6894"
6152 target "http://www.lyx.org/trac/ticket/6894"
6153
6154 \end_inset
6155
6156 を参照のこと。)。
6157 \begin_inset Newline newline
6158 \end_inset
6159
6160 画像の寸法は、
6161 \begin_inset Flex MenuItem
6162 status collapsed
6163
6164 \begin_layout Plain Layout
6165 文書\SpecialChar menuseparator
6166 設定\SpecialChar menuseparator
6167 出力
6168 \end_layout
6169
6170 \end_inset
6171
6172 の「数式画像の伸縮」パラメータを変更することで制御できます
6173 \begin_inset Foot
6174 status collapsed
6175
6176 \begin_layout Plain Layout
6177 必要な方のために述べておくと、これは、画像の解像度をdpi (1インチあたりドット数)で制御するためのもので、75dpiを基準としています。
6178 \end_layout
6179
6180 \end_inset
6181
6182
6183 \begin_inset Newline newline
6184 \end_inset
6185
6186 もし\SpecialCharNoPassThru LyX
6187 が、何らかの理由によって数式の画像を生成できない(例えば、必要な\SpecialCharNoPassThru LaTeX
6188 パッケージが導入済みでないなど)ときは、回避策として、生の\SpecialCharNoPassThru LaTeX
6189 を出力し
6190 ます。
6191 \end_layout
6192
6193 \begin_layout Itemize
6194 \SpecialCharNoPassThru LaTeX
6195 \begin_inset Newline newline
6196 \end_inset
6197
6198 最後に、\SpecialCharNoPassThru LyX
6199 は、数式を\SpecialCharNoPassThru LaTeX
6200 としても出力することができます。この方法は、最終手段としての出力方法である一方で、HTML文書に埋め込まれた\SpecialCharNoPassThru LaTeX
6201 を描画す
6202 るのにJavaScriptを使用する、
6203 \begin_inset CommandInset href
6204 LatexCommand href
6205 name "jsMath"
6206 target "http://www.math.union.edu/~dpvc/jsMath/"
6207
6208 \end_inset
6209
6210 のようなツールとともに使用することもできます。\SpecialCharNoPassThru LyX
6211 は、jsMathで必要とされているのと同じように、\SpecialCharNoPassThru LaTeX
6212 部分を、
6213 \begin_inset Flex Code
6214 status collapsed
6215
6216 \begin_layout Plain Layout
6217 span
6218 \end_layout
6219
6220 \end_inset
6221
6222 (行内数式用)または
6223 \begin_inset Flex Code
6224 status collapsed
6225
6226 \begin_layout Plain Layout
6227 div
6228 \end_layout
6229
6230 \end_inset
6231
6232 (別行立て数式用)に
6233 \begin_inset Flex Code
6234 status collapsed
6235
6236 \begin_layout Plain Layout
6237 class='math'
6238 \end_layout
6239
6240 \end_inset
6241
6242 を指定したもので、包んで出力します。
6243 \end_layout
6244
6245 \begin_layout Standard
6246 これらの出力方法のいずれかを
6247 \begin_inset Flex MenuItem
6248 status collapsed
6249
6250 \begin_layout Plain Layout
6251 文書\SpecialChar menuseparator
6252 設定\SpecialChar menuseparator
6253 出力
6254 \end_layout
6255
6256 \end_inset
6257
6258 で選択しなくてはなりません。既定では、\SpecialCharNoPassThru LyX
6259 はMathMLで出力を行います。これは、文書全体に適用される設定となります。
6260 \end_layout
6261
6262 \begin_layout Standard
6263 最後に、\SpecialCharNoPassThru LyX
6264 では、例えば、MathMLではあまりうまく出力されないような差込枠に対して、別の出力方法を選択できる選択肢が用意されています
6265 \begin_inset Foot
6266 status collapsed
6267
6268 \begin_layout Plain Layout
6269 その他にも、\SpecialCharNoPassThru LyX
6270 は、差込枠に\SpecialCharNoPassThru TeX
6271 コードが含まれていると画像出力に回帰するので、数式中に
6272 \begin_inset Formula $a=b\relax$
6273 \end_inset
6274
6275 のような無害な\SpecialCharNoPassThru TeX
6276 コードを挿入することによって、画像出力を強制することができます。
6277 \end_layout
6278
6279 \end_inset
6280
6281
6282 \end_layout
6283
6284 \begin_layout Section
6285 書誌情報と引用
6286 \end_layout
6287
6288 \begin_layout Standard
6289 XHTML出力は、書誌情報と引用を完全にサポートしています。
6290 \end_layout
6291
6292 \begin_layout Standard
6293 引用ラベルは、\SpecialCharNoPassThru LyX
6294 画面上のラベルを生成するのと同じ機構で生成されているので、出力中のラベルは、\SpecialCharNoPassThru LyX
6295 中の外見と同質またはそれよりも上質な仕上がりとなっています
6296 。連番引用を使用している場合には、\SpecialCharNoPassThru LyX
6297 は、画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく、[1]や[17]などの連番ラベルを出力し
6298 ます。著者-出版年形式の引用を使用している場合で、同じ著者-出版年の組み合わせが複数ある場合、\SpecialCharNoPassThru LyX
6299 は、Bib\SpecialCharNoPassThru TeX
6300 が行うように出版年に小文字を付します。ラベル
6301 は、書誌情報項目とともに印字されます。現在のところ、角括弧を丸括弧に変更するなど、ラベルの外見を変更する手段はありませんのでご注意ください。
6302 \end_layout
6303
6304 \begin_layout Standard
6305 書誌情報出力は、引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので、XHTML出力は、引用ダイアログで特定の文献項目を表示させた時のものに
6306 非常によく似ています。整形の仕方は、レイアウトファイルや望ましくはモジュールでカスタマイズすることができます。詳細については、取扱説明書『カスタマイズ篇』をご覧
6307 ください。
6308 \end_layout
6309
6310 \begin_layout Standard
6311 現在のところ、主だった瑕疵は、相互参照された情報が、関連した項目の全てに印字されてしまうことです。つまり、以下のような表示が為されます。
6312 \end_layout
6313
6314 \begin_layout Quote
6315 Jason Stanley, 
6316 \begin_inset Quotes eld
6317 \end_inset
6318
6319 Context and Logical Form
6320 \begin_inset Quotes erd
6321 \end_inset
6322
6323 , in 
6324 \emph on
6325 Language in Context: Selected Essays
6326 \emph default
6327  (Oxford: Oxford University Press, 2007), pp.
6328  30\twohyphens
6329 68.
6330 \end_layout
6331
6332 \begin_layout Quote
6333 Jason Stanley, 
6334 \begin_inset Quotes eld
6335 \end_inset
6336
6337 Semantics in Context
6338 \begin_inset Quotes erd
6339 \end_inset
6340
6341 , in 
6342 \emph on
6343 Language in Context: Selected Essays
6344 \emph default
6345  (Oxford: Oxford University Press, 2007), pp.
6346  201\twohyphens
6347 30.
6348 \end_layout
6349
6350 \begin_layout Standard
6351 これは、遠くないうちに修正されるでしょう。
6352 \end_layout
6353
6354 \begin_layout Standard
6355 現在のところ、節ごとの書誌情報出力はサポートされていません。複数の書誌情報がある場合には、\SpecialCharNoPassThru LyX
6356 は同じ情報を繰り返し出力してしまいます。
6357 \end_layout
6358
6359 \begin_layout Section
6360 索引
6361 \end_layout
6362
6363 \begin_layout Standard
6364 \SpecialCharNoPassThru LyX
6365 は、索引をXHTMLとして書きだすことができますが、現在のところ、若干の制約があります。
6366 \end_layout
6367
6368 \begin_layout Standard
6369 索引の書き出しは、
6370 \emph on
6371 ユーザーの手引き
6372 \emph default
6373 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが、信頼性が保てます
6374 \begin_inset Foot
6375 status collapsed
6376
6377 \begin_layout Plain Layout
6378 ここでの主な問題は、これらの操作の際に、\SpecialCharNoPassThru LyX
6379 自身は何もしていないという点です。つまり、生の\SpecialCharNoPassThru LaTeX
6380 で入力しなくてはならないようなものをそのまま入力しているの
6381 です。
6382 \end_layout
6383
6384 \end_inset
6385
6386 。当該節の小節見出しに沿って、それらがどう処理されるかを説明しましょう。
6387 \end_layout
6388
6389 \begin_layout Itemize
6390 索引項目のグループ化(下層項目): \SpecialCharNoPassThru LyX
6391 はこれらをサポートしようと努めていますが、項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません。これは、そ
6392 うしないと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです。
6393 \end_layout
6394
6395 \begin_layout Itemize
6396 ページ範囲: ページ範囲については、XHTMLでは意味がないので、全くサポートされません。その代わりに、引用項目のはじめと終わりの頁それぞれに、2つの索引項目が
6397 得られるだけです。
6398 \end_layout
6399
6400 \begin_layout Itemize
6401 相互参照: 相互参照のサポートはありません。\SpecialCharNoPassThru LyX
6402 が「|see\SpecialChar ldots
6403 」という下だりを持つ項目を検出すると、その部分はただ無視されて、残りの部分が通常の索引項目だとみな
6404 されます。
6405 \end_layout
6406
6407 \begin_layout Itemize
6408 索引項目の整序: \SpecialCharNoPassThru LyX
6409 は整序順の変更をサポートします。\SpecialCharNoPassThru LyX
6410 は、最初に検出した「@」の前の部分を取り出して、それを整序に用い、最初の「@」の後の部分を実際の項
6411 目として取り出します。現在のところ、\SpecialCharNoPassThru LyX
6412 はエスケープされた「@」を取り扱わないので、電子メールアドレスを索引に使わないでください。
6413 \end_layout
6414
6415 \begin_layout Itemize
6416 索引項目のレイアウト: 項目は、テキスト様式ダイアログを使うなり、\SpecialCharNoPassThru LyX
6417 内で使用可能な方法を用いることで、索引項目を成形することができます。「項目|textbf
6418 」のような文法はサポートされません。\SpecialCharNoPassThru LyX
6419 は、項目内にパイプ記号「|」を検出すると、パイプ記号とその後に続くものすべてを削除してしまいます。
6420 \end_layout
6421
6422 \begin_layout Itemize
6423 複数の索引: 複数の索引はサポートされていません。すべての項目は、ひとつの大きな索引として印字されます。索引が何度も印字されることを防ぐため、中心となる索引だけ
6424 を印字しますので、その索引は必ず置くようにしてください。
6425 \end_layout
6426
6427 \begin_layout Section
6428 記号一覧および用語集
6429 \end_layout
6430
6431 \begin_layout Standard
6432 現在のところ、用語集のサポートはありません。この機能の追加は、比較的容易だと思われますので、あなたの貢献をお待ちしております。
6433 \end_layout
6434
6435 \begin_layout Chapter
6436 \SpecialCharNoPassThru LyX
6437 サーバー
6438 \begin_inset CommandInset label
6439 LatexCommand label
6440 name "chap:LyXサーバー"
6441
6442 \end_inset
6443
6444
6445 \end_layout
6446
6447 \begin_layout Section
6448 はじめに
6449 \end_layout
6450
6451 \begin_layout Standard
6452 「\SpecialCharNoPassThru LyX
6453 サーバー」を使用すると、他のプログラムが、\SpecialCharNoPassThru LyX
6454 と通信したり、\SpecialCharNoPassThru LyX
6455 コマンドを実行させたり、\SpecialCharNoPassThru LyX
6456 の内部状態に関する情報を取得したりすることができるよう
6457 になります。これは熟練したユーザー向けの機能ですが、便利なはずです。たとえば、\SpecialCharNoPassThru LyX
6458 サーバーに書き込むことによって、JabRefのような書誌情報管理ソフトが、L
6459 yXに文献引用を「押し込む」ことが可能となります。
6460 \end_layout
6461
6462 \begin_layout Section
6463 \SpecialCharNoPassThru LyX
6464 サーバーを開始するには
6465 \end_layout
6466
6467 \begin_layout Standard
6468 \SpecialCharNoPassThru LyX
6469 サーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6470 \begin_inset Flex Code
6471 status collapsed
6472
6473 \begin_layout Plain Layout
6474 UserDir
6475 \end_layout
6476
6477 \end_inset
6478
6479 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6480 \emph on
6481 ローカルの
6482 \emph default
6483 パイプは
6484 \begin_inset Flex Code
6485 status collapsed
6486
6487 \begin_layout Plain Layout
6488
6489 \backslash
6490
6491 \backslash
6492 .
6493 \backslash
6494 pipe
6495 \end_layout
6496
6497 \end_inset
6498
6499 に特別なオブジェクトとして置かれます)、「
6500 \begin_inset Flex Code
6501 status collapsed
6502
6503 \begin_layout Plain Layout
6504 .lyxpipe.in
6505 \end_layout
6506
6507 \end_inset
6508
6509 」および「
6510 \begin_inset Flex Code
6511 status collapsed
6512
6513 \begin_layout Plain Layout
6514 .lyxpipe.out
6515 \end_layout
6516
6517 \end_inset
6518
6519 」という名前がついています。外部プログラムは、
6520 \begin_inset Flex Code
6521 status collapsed
6522
6523 \begin_layout Plain Layout
6524 .lyxpipe.in
6525 \end_layout
6526
6527 \end_inset
6528
6529 に書き込みを行い、戻りデータを
6530 \begin_inset Flex Code
6531 status collapsed
6532
6533 \begin_layout Plain Layout
6534 .lyxpipe.out
6535 \end_layout
6536
6537 \end_inset
6538
6539 から読み出します。パイプ名の語幹は、
6540 \begin_inset Flex MenuItem
6541 status collapsed
6542
6543 \begin_layout Plain Layout
6544 ツール\SpecialChar menuseparator
6545 設定
6546 \end_layout
6547
6548 \end_inset
6549
6550 から、たとえば「
6551 \begin_inset Flex Code
6552 status collapsed
6553
6554 \begin_layout Plain Layout
6555 /home/myhome/lyxpipe
6556 \end_layout
6557
6558 \end_inset
6559
6560 」あるいはWindowsでは「
6561 \begin_inset Flex Code
6562 status collapsed
6563
6564 \begin_layout Plain Layout
6565
6566 \backslash
6567
6568 \backslash
6569 .
6570 \backslash
6571 pipe
6572 \backslash
6573 lyxpipe
6574 \end_layout
6575
6576 \end_inset
6577
6578 」などに設定することができます。サーバーを開始するためには、これを
6579 \emph on
6580 手動で設定しなくてはなりません
6581 \emph default
6582
6583 \end_layout
6584
6585 \begin_layout Standard
6586 \SpecialCharNoPassThru LyX
6587 は、パイプを生成するに際して、「
6588 \begin_inset Flex Code
6589 status collapsed
6590
6591 \begin_layout Plain Layout
6592 .in
6593 \end_layout
6594
6595 \end_inset
6596
6597 」および「
6598 \begin_inset Flex Code
6599 status collapsed
6600
6601 \begin_layout Plain Layout
6602 .out
6603 \end_layout
6604
6605 \end_inset
6606
6607 」を付け加えます。パイプがすでに存在していれば、\SpecialCharNoPassThru LyX
6608 は他の\SpecialCharNoPassThru LyX
6609 プロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システ
6610 ムでは、なんらかの理由で、\SpecialCharNoPassThru LyX
6611 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、\SpecialCharNoPassThru LyX
6612 はこれを削除しようとします。何らかの理由でこれが
6613 失敗した場合、手動でパイプを削除したのちに、\SpecialCharNoPassThru LyX
6614 を再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削
6615 除するので、「古い」パイプが残ることはありません。
6616 \end_layout
6617
6618 \begin_layout Standard
6619 サーバーを使用する\SpecialCharNoPassThru LyX
6620 プロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6621 \begin_inset Flex Code
6622 status collapsed
6623
6624 \begin_layout Plain Layout
6625 preferences
6626 \end_layout
6627
6628 \end_inset
6629
6630 ファイルを使用させるなど、別々の設定を使用する必要があります。
6631 \end_layout
6632
6633 \begin_layout Standard
6634 クライアントプログラムを開発しようとされているのであれば、\SpecialCharNoPassThru LyX
6635 サーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6636 \begin_inset Flex Code
6637 status collapsed
6638
6639 \begin_layout Plain Layout
6640 lyx -dbg lyxserver
6641 \end_layout
6642
6643 \end_inset
6644
6645 として起動してください。
6646 \end_layout
6647
6648 \begin_layout Standard
6649 C言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6650 \begin_inset Newline newline
6651 \end_inset
6652
6653
6654 \begin_inset Flex Code
6655 status collapsed
6656
6657 \begin_layout Plain Layout
6658 development/lyxserver/server_monitor.c
6659 \end_layout
6660
6661 \end_inset
6662
6663 にあります。
6664 \end_layout
6665
6666 \begin_layout Standard
6667 もう一つの便利なツールとして、
6668 \begin_inset Flex Code
6669 status collapsed
6670
6671 \begin_layout Plain Layout
6672 src/client/lyxclient
6673 \end_layout
6674
6675 \end_inset
6676
6677 にあるコマンドラインベースのクライアントがあります。
6678 \end_layout
6679
6680 \begin_layout Section
6681 通常の通信
6682 \end_layout
6683
6684 \begin_layout Standard
6685 \SpecialCharNoPassThru LyX
6686 コールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6687 \end_layout
6688
6689 \begin_layout Quote
6690 LYXCMD:
6691 \emph on
6692 クライアント名
6693 \emph default
6694 :
6695 \emph on
6696 関数
6697 \emph default
6698 :
6699 \emph on
6700 引数
6701 \end_layout
6702
6703 \begin_layout Description
6704 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、\SpecialCharNoPassThru LyX
6705 が返
6706 答をする際、クライアント名をエコーするときだけです。
6707 \end_layout
6708
6709 \begin_layout Description
6710 関数 は、\SpecialCharNoPassThru LyX
6711 に実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6712 \end_layout
6713
6714 \begin_layout Description
6715 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6716 \end_layout
6717
6718 \begin_layout Standard
6719 \SpecialCharNoPassThru LyX
6720 からの返答は、出力パイプに送り出され、
6721 \end_layout
6722
6723 \begin_layout Quote
6724 INFO:
6725 \emph on
6726 クライアント名
6727 \emph default
6728 :
6729 \emph on
6730 関数
6731 \emph default
6732 :
6733 \emph on
6734 データ
6735 \end_layout
6736
6737 \begin_layout Standard
6738 の書式をしています。ここで
6739 \emph on
6740 クライアント名
6741 \emph default
6742
6743 \emph on
6744 関数
6745 \emph default
6746 は、コマンド要求からそのままエコーされますが、
6747 \emph on
6748 データ
6749 \emph default
6750 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、\SpecialCharNoPassThru LyX
6751 の内部状態に関する情報を返しますが、空のデー
6752 タ応答を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6753 \end_layout
6754
6755 \begin_layout Standard
6756 エラーが発生した場合の\SpecialCharNoPassThru LyX
6757 の返答は
6758 \end_layout
6759
6760 \begin_layout Quote
6761 ERROR:
6762 \emph on
6763 クライアント名
6764 \emph default
6765 :
6766 \emph on
6767 関数
6768 \emph default
6769 :
6770 \emph on
6771 エラーメッセージ
6772 \end_layout
6773
6774 \begin_layout Standard
6775 の書式をしており、
6776 \emph on
6777 エラーメッセージ
6778 \emph default
6779 には、なぜコマンドが失敗したかの説明が入っているはずです。
6780 \end_layout
6781
6782 \begin_layout Standard
6783 (例)
6784 \end_layout
6785
6786 \begin_layout LyX-Code
6787 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6788 \begin_inset Newline newline
6789 \end_inset
6790
6791 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6792 \begin_inset Newline newline
6793 \end_inset
6794
6795 read a <~/.lyxpipe.out
6796 \begin_inset Newline newline
6797 \end_inset
6798
6799 echo $a
6800 \end_layout
6801
6802 \begin_layout Section
6803 通知
6804 \end_layout
6805
6806 \begin_layout Standard
6807 \SpecialCharNoPassThru LyX
6808 は、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがある
6809 \begin_inset Flex Ruby
6810 status collapsed
6811
6812 \begin_layout Plain Layout
6813
6814 \begin_inset Argument post:1
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818 キー
6819 \end_layout
6820
6821 \end_inset
6822
6823
6824 \end_layout
6825
6826 \end_inset
6827
6828 列を関数「notify」に割り当てているときのみ、\SpecialCharNoPassThru LyX
6829 はこの通知を行います。\SpecialCharNoPassThru LyX
6830 が送る文字列の書式は
6831 \end_layout
6832
6833 \begin_layout Quote
6834 \begin_inset Flex Code
6835 status collapsed
6836
6837 \begin_layout Plain Layout
6838 NOTIFY:
6839 \end_layout
6840
6841 \end_inset
6842
6843
6844 \emph on
6845 鍵列
6846 \end_layout
6847
6848 \begin_layout Standard
6849 となっていて、
6850 \emph on
6851 鍵列
6852 \emph default
6853 は、ユーザーが実際に打鍵した鍵列の印字表現になります。
6854 \end_layout
6855
6856 \begin_layout Standard
6857 この機構は、\SpecialCharNoPassThru LyX
6858 のコマンド群を拡張してマクロを実装するのに使用することができます。なんらかの鍵列を「notify」に割り当ててください。それから出力パイプで待
6859 機するクライアントを起動し、鍵列に応じたコマンドを読み込み、一つないし複数の\SpecialCharNoPassThru LyX
6860 コマンドを発行する\SpecialCharNoPassThru LyX
6861 要求と\SpecialCharNoPassThru LyX
6862 コールを使用する関数を開始するのです。
6863 \end_layout
6864
6865 \begin_layout Section
6866 単純な\SpecialCharNoPassThru LyX
6867 サーバープロトコル
6868 \end_layout
6869
6870 \begin_layout Standard
6871 \SpecialCharNoPassThru LyX
6872 は、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6873 \end_layout
6874
6875 \begin_layout Quote
6876 LYXSRV:
6877 \emph on
6878 クライアント名
6879 \emph default
6880 :
6881 \emph on
6882 プロトコルメッセージ
6883 \end_layout
6884
6885 \begin_layout Standard
6886 の書式をしており、
6887 \emph on
6888 プロトコルメッセージ
6889 \emph default
6890 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、\SpecialCharNoPassThru LyX
6891 はメッセージを聴いていることをクライアントに伝えるために返答をし、\SpecialCharNoPassThru LyX
6892 が終了することをクライアントに伝えるのには、\SpecialCharNoPassThru LyX
6893 が「bye」を送信します。
6894 \end_layout
6895
6896 \begin_layout Section
6897 DVIとPDFの遡及検索
6898 \end_layout
6899
6900 \begin_layout Standard
6901 DVI/PDFビューア
6902 \begin_inset Foot
6903 status collapsed
6904
6905 \begin_layout Plain Layout
6906 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularとMac OS X上のSkim、Windows上のSumatraPDFがありま
6907 す。
6908 \end_layout
6909
6910 \end_inset
6911
6912 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6913 特定の場所をクリックすることによって、\SpecialCharNoPassThru LyX
6914 の文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアは\SpecialCharNoPassThru LyX
6915 と情報交換を行う必
6916 要があります。これは、命名パイプ(
6917 \emph on
6918 lyxpipe
6919 \emph default
6920 )を使用するか、\SpecialCharNoPassThru LyX
6921 が作業ディレクトリに生成するUNIXドメインソケット(
6922 \emph on
6923 lyxsocket
6924 \emph default
6925 )を使用する(これは
6926 \begin_inset Flex Code
6927 status collapsed
6928
6929 \begin_layout Plain Layout
6930 lyxclient
6931 \end_layout
6932
6933 \end_inset
6934
6935 プログラムが\SpecialCharNoPassThru LyX
6936 と通信するのに使用している方法です)ことで、\SpecialCharNoPassThru LyX
6937 サーバを経由して実現することができます。場合によっては、ビューアと\SpecialCharNoPassThru LyX
6938 を橋渡しする補助スク
6939 リプトを必要とすることがあるかもしれませんが、それ以外は、ビューアは\SpecialCharNoPassThru LyX
6940 と直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必
6941 要とされるビューアの設定法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その
6942 前に、DVI/PDF出力で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6943 \end_layout
6944
6945 \begin_layout Subsection
6946 \begin_inset CommandInset label
6947 LatexCommand label
6948 name "subsec:遡及検索"
6949
6950 \end_inset
6951
6952 自動有効化
6953 \end_layout
6954
6955 \begin_layout Standard
6956 \begin_inset Flex MenuItem
6957 status collapsed
6958
6959 \begin_layout Plain Layout
6960 文書\SpecialChar menuseparator
6961 設定\SpecialChar menuseparator
6962 出力
6963 \end_layout
6964
6965 \end_inset
6966
6967 メニューで
6968 \begin_inset Flex MenuItem
6969 status collapsed
6970
6971 \begin_layout Plain Layout
6972 出力と同期
6973 \end_layout
6974
6975 \end_inset
6976
6977 オプションを有効にすれば、ほとんどの場合、\SpecialCharNoPassThru LyX
6978 がすべてをうまくこなしてくれます。その場合、\SpecialCharNoPassThru LyX
6979 は、自動的に、必要なSync\SpecialCharNoPassThru TeX
6980 マクロ(PDFの場合)や、s
6981 rcltxパッケージ(DVIの場合)を挿入してくれます。このオプションは、
6982 \begin_inset Flex MenuItem
6983 status collapsed
6984
6985 \begin_layout Plain Layout
6986 表示/更新
6987 \end_layout
6988
6989 \end_inset
6990
6991 ツールバーからも容易にアクセスすることができます。
6992 \end_layout
6993
6994 \begin_layout Standard
6995 もし、これとは別の設定が必要な場合には、
6996 \begin_inset Flex MenuItem
6997 status collapsed
6998
6999 \begin_layout Plain Layout
7000 文書\SpecialChar menuseparator
7001 設定\SpecialChar menuseparator
7002 出力\SpecialChar menuseparator
7003 出力と同期
7004 \end_layout
7005
7006 \end_inset
7007
7008 の直下にあるドロップダウンボックスから、自製マクロを選択ないし入力することができます。
7009 \end_layout
7010
7011 \begin_layout Standard
7012 方式として
7013 \begin_inset Flex Code
7014 status collapsed
7015
7016 \begin_layout Plain Layout
7017
7018 \backslash
7019 synctex=1
7020 \end_layout
7021
7022 \end_inset
7023
7024 を用いると、gzip圧縮が有効となることに注意してください。使用しているビューアがgzip圧縮をサポートしていない場合には、代わりに
7025 \begin_inset Flex Code
7026 status collapsed
7027
7028 \begin_layout Plain Layout
7029
7030 \backslash
7031 synctex=-1
7032 \end_layout
7033
7034 \end_inset
7035
7036 を指定してください。
7037 \end_layout
7038
7039 \begin_layout Standard
7040 また、
7041 \begin_inset Flex Code
7042 status collapsed
7043
7044 \begin_layout Plain Layout
7045 srcltx
7046 \end_layout
7047
7048 \end_inset
7049
7050 パッケージや
7051 \begin_inset Flex Code
7052 status collapsed
7053
7054 \begin_layout Plain Layout
7055 src-specials
7056 \end_layout
7057
7058 \end_inset
7059
7060 を取り込むと、組版上、不具合が生じることがあるのでご注意ください。したがって、
7061 \begin_inset Flex Code
7062 status collapsed
7063
7064 \begin_layout Plain Layout
7065 srcltx
7066 \end_layout
7067
7068 \end_inset
7069
7070 パッケージや
7071 \begin_inset Flex Code
7072 status collapsed
7073
7074 \begin_layout Plain Layout
7075 src-specials
7076 \end_layout
7077
7078 \end_inset
7079
7080 を使用している場合には、最終版を組版する際には、出力同期を無効にするべきです。
7081 \end_layout
7082
7083 \begin_layout Standard
7084 自動設定でカバーされている範囲よりも、さらに特殊なものが必要な場合には、出力同期を手動で設定する仕方を述べた次節をお読みください。自動設定で事足りる場合には、自
7085 動設定・手動設定ともに必要となるビューア上の設定を述べた、第
7086 \begin_inset CommandInset ref
7087 LatexCommand ref
7088 reference "subsec:特定のビューアを設定して使うには"
7089
7090 \end_inset
7091
7092 節に進むことができます。
7093 \end_layout
7094
7095 \begin_layout Subsection
7096 手動有効化
7097 \end_layout
7098
7099 \begin_layout Standard
7100 \SpecialCharNoPassThru LaTeX
7101 は、遡及検索のために複数の方法を提供しています。ある方法は
7102 \begin_inset Flex Code
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106 latex/pdflatex
7107 \end_layout
7108
7109 \end_inset
7110
7111 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いの\SpecialCharNoPassThru LaTeX
7112 頒布版が既に特定の方法を提供しているか(組
7113 み込みによる方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
7114 \end_layout
7115
7116 \begin_layout Subsubsection*
7117 src-special経由のDVI組み込み検索(DVIのみ)
7118 \end_layout
7119
7120 \begin_layout Standard
7121 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前の\SpecialCharNoPassThru LaTeX
7122 から利用可能となっており(比較的最近の\SpecialCharNoPassThru LaTeX
7123 頒布版はすべて対
7124 応しています)、安定して動作します。これを有効にするには、
7125 \begin_inset Flex MenuItem
7126 status collapsed
7127
7128 \begin_layout Plain Layout
7129 設定\SpecialChar menuseparator
7130 ファイル処理\SpecialChar menuseparator
7131 変換子
7132 \end_layout
7133
7134 \end_inset
7135
7136
7137 \begin_inset Flex MenuItem
7138 status collapsed
7139
7140 \begin_layout Plain Layout
7141 LaT
7142 \begin_inset ERT
7143 status collapsed
7144
7145 \begin_layout Plain Layout
7146
7147 {}
7148 \end_layout
7149
7150 \end_inset
7151
7152 eX (plain)->DVI
7153 \end_layout
7154
7155 \end_inset
7156
7157 ないし
7158 \begin_inset Flex MenuItem
7159 status collapsed
7160
7161 \begin_layout Plain Layout
7162 LaT
7163 \begin_inset ERT
7164 status collapsed
7165
7166 \begin_layout Plain Layout
7167
7168 {}
7169 \end_layout
7170
7171 \end_inset
7172
7173 eX (plain)->DraftDVI
7174 \end_layout
7175
7176 \end_inset
7177
7178 変換子を
7179 \begin_inset Flex Code
7180 status collapsed
7181
7182 \begin_layout Plain Layout
7183 latex -src-specials $$i
7184 \end_layout
7185
7186 \end_inset
7187
7188 に変更します。もしこれが動作しないときは、お使いの\SpecialCharNoPassThru LaTeX
7189 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあり
7190 ます)。
7191 \end_layout
7192
7193 \begin_layout Subsubsection*
7194 外部パッケージ(PDFSyncおよびsrcltx)
7195 \end_layout
7196
7197 \begin_layout Standard
7198
7199 \emph on
7200 pdfsync
7201 \emph default
7202 および
7203 \emph on
7204 srcltx
7205 \emph default
7206 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、\SpecialCharNoPassThru LyX
7207 プリアンブルで以下のようにパッケージを読み
7208 込んでください。
7209 \end_layout
7210
7211 \begin_layout Itemize
7212 PDFの遡及検索には
7213 \begin_inset Flex Code
7214 status collapsed
7215
7216 \begin_layout Plain Layout
7217
7218 \backslash
7219 usepackage{pdfsync}
7220 \end_layout
7221
7222 \end_inset
7223
7224
7225 \end_layout
7226
7227 \begin_layout Itemize
7228 DVIの遡及検索には
7229 \begin_inset Flex Code
7230 status collapsed
7231
7232 \begin_layout Plain Layout
7233
7234 \backslash
7235 usepackage[active]{srcltx}
7236 \end_layout
7237
7238 \end_inset
7239
7240
7241 \end_layout
7242
7243 \begin_layout Standard
7244 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
7245 \end_layout
7246
7247 \begin_layout LyX-Code
7248
7249 \backslash
7250 usepackage{ifpdf}
7251 \begin_inset Newline newline
7252 \end_inset
7253
7254
7255 \backslash
7256 ifpdf
7257 \begin_inset Newline newline
7258 \end_inset
7259
7260   
7261 \backslash
7262 usepackage{pdfsync}
7263 \begin_inset Newline newline
7264 \end_inset
7265
7266
7267 \backslash
7268 else
7269 \begin_inset Newline newline
7270 \end_inset
7271
7272   
7273 \backslash
7274 usepackage[active]{srcltx}
7275 \begin_inset Newline newline
7276 \end_inset
7277
7278
7279 \backslash
7280 fi
7281 \end_layout
7282
7283 \begin_layout Standard
7284 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
7285 \end_layout
7286
7287 \begin_layout Standard
7288 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
7289
7290 \end_layout
7291
7292 \begin_layout Subsubsection*
7293 Sync\SpecialCharNoPassThru TeX
7294 を使った組み込み遡及検索(DVIおよびPDF)
7295 \end_layout
7296
7297 \begin_layout Standard
7298 \begin_inset Flex Code
7299 status collapsed
7300
7301 \begin_layout Plain Layout
7302 (pdf)latex
7303 \end_layout
7304
7305 \end_inset
7306
7307 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
7308 \emph on
7309 Sync\SpecialCharNoPassThru TeX
7310 \emph default
7311 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
7312 るためには、少なくとも\SpecialCharNoPassThru TeX
7313 Live 2008か最近のMik\SpecialCharNoPassThru TeX
7314 頒布版が必要です。また、既にSync\SpecialCharNoPassThru TeX
7315 サポートを提供しているPDFビューアは少ししかありま
7316 せん(Mac上のSkimとWindows上のSumatraPDF)。
7317 \end_layout
7318
7319 \begin_layout Standard
7320 DVI出力でSync\SpecialCharNoPassThru TeX
7321 を有効にするには、
7322 \begin_inset Flex MenuItem
7323 status collapsed
7324
7325 \begin_layout Plain Layout
7326 設定\SpecialChar menuseparator
7327 ファイル処理\SpecialChar menuseparator
7328 変換子
7329 \end_layout
7330
7331 \end_inset
7332
7333
7334 \begin_inset Flex MenuItem
7335 status collapsed
7336
7337 \begin_layout Plain Layout
7338 LaT
7339 \begin_inset ERT
7340 status collapsed
7341
7342 \begin_layout Plain Layout
7343
7344 {}
7345 \end_layout
7346
7347 \end_inset
7348
7349 eX (plain)->DVI
7350 \end_layout
7351
7352 \end_inset
7353
7354 ないし
7355 \begin_inset Flex MenuItem
7356 status collapsed
7357
7358 \begin_layout Plain Layout
7359 LaT
7360 \begin_inset ERT
7361 status collapsed
7362
7363 \begin_layout Plain Layout
7364
7365 {}
7366 \end_layout
7367
7368 \end_inset
7369
7370 eX (plain)->DraftDVI
7371 \end_layout
7372
7373 \end_inset
7374
7375 変換子を
7376 \begin_inset Flex Code
7377 status collapsed
7378
7379 \begin_layout Plain Layout
7380 latex -synctex=1 $$i
7381 \end_layout
7382
7383 \end_inset
7384
7385 に変更します。PDF出力用には、
7386 \begin_inset Flex MenuItem
7387 status collapsed
7388
7389 \begin_layout Plain Layout
7390 LaT
7391 \begin_inset ERT
7392 status collapsed
7393
7394 \begin_layout Plain Layout
7395
7396 {}
7397 \end_layout
7398
7399 \end_inset
7400
7401 eX (pdflatex)->PDF (pdflatex)
7402 \end_layout
7403
7404 \end_inset
7405
7406 変換子を
7407 \begin_inset Flex Code
7408 status collapsed
7409
7410 \begin_layout Plain Layout
7411 pdflatex -synctex=1 $$i
7412 \end_layout
7413
7414 \end_inset
7415
7416 に変更してください。また、ビューアをSync\SpecialCharNoPassThru TeX
7417 で使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
7418 \begin_inset Foot
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 \begin_inset Flex Code
7423 status collapsed
7424
7425 \begin_layout Plain Layout
7426 -synctex=1
7427 \end_layout
7428
7429 \end_inset
7430
7431 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
7432 \begin_inset Flex Code
7433 status collapsed
7434
7435 \begin_layout Plain Layout
7436 -synctex=-1
7437 \end_layout
7438
7439 \end_inset
7440
7441 を使用してください。
7442 \end_layout
7443
7444 \end_inset
7445
7446
7447 \end_layout
7448
7449 \begin_layout Subsection
7450 特定のビューアを設定して使うには
7451 \begin_inset CommandInset label
7452 LatexCommand label
7453 name "subsec:特定のビューアを設定して使うには"
7454
7455 \end_inset
7456
7457
7458 \end_layout
7459
7460 \begin_layout Subsubsection*
7461 Xdvi(全プラットフォーム)
7462 \end_layout
7463
7464 \begin_layout Standard
7465 \SpecialCharNoPassThru LyX
7466 は、
7467 \begin_inset Flex Code
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471 lyxclient
7472 \end_layout
7473
7474 \end_inset
7475
7476 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7477 \begin_inset Flex Code
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 xdvi
7482 \end_layout
7483
7484 \end_inset
7485
7486 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7487 、Mac OS X上ではAlt-クリックで始動します)。
7488 \end_layout
7489
7490 \begin_layout Standard
7491 しかし、何らかの理由で、\SpecialCharNoPassThru LyX
7492 と通信するのにソケットではなく命名パイプを使用したい場合には、
7493 \begin_inset Flex MenuItem
7494 status collapsed
7495
7496 \begin_layout Plain Layout
7497 設定\SpecialChar menuseparator
7498 ファイル処理\SpecialChar menuseparator
7499 ファイル書式
7500 \end_layout
7501
7502 \end_inset
7503
7504 のDVIビューアを
7505 \begin_inset Flex Code
7506 status collapsed
7507
7508 \begin_layout Plain Layout
7509 xdvi -editor "lyxeditor.sh %f %l"
7510 \end_layout
7511
7512 \end_inset
7513
7514 (
7515 \begin_inset Flex Code
7516 status collapsed
7517
7518 \begin_layout Plain Layout
7519 lyxeditor.sh
7520 \end_layout
7521
7522 \end_inset
7523
7524 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7525 \end_layout
7526
7527 \begin_layout LyX-Code
7528 #!/bin/sh
7529 \begin_inset Newline newline
7530 \end_inset
7531
7532 LYXPIPE="/path/to/lyxpipe"
7533 \begin_inset Newline newline
7534 \end_inset
7535
7536 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7537 \begin_inset Newline newline
7538 \end_inset
7539
7540 echo "$COMMAND" > "${LYXPIPE}".in || exit
7541 \begin_inset Newline newline
7542 \end_inset
7543
7544 read TMP < "${LYXPIPE}".out || exit
7545 \end_layout
7546
7547 \begin_layout Standard
7548 のようになります。ここで
7549 \begin_inset Flex Code
7550 status collapsed
7551
7552 \begin_layout Plain Layout
7553 /path/to/lyxpipe
7554 \end_layout
7555
7556 \end_inset
7557
7558 は、
7559 \begin_inset Flex MenuItem
7560 status collapsed
7561
7562 \begin_layout Plain Layout
7563 設定\SpecialChar menuseparator
7564 パス
7565 \end_layout
7566
7567 \end_inset
7568
7569 で指定したLy
7570 \begin_inset ERT
7571 status open
7572
7573 \begin_layout Plain Layout
7574
7575 {}
7576 \end_layout
7577
7578 \end_inset
7579
7580 XServerパイプのパスを指定してください
7581 \begin_inset Foot
7582 status collapsed
7583
7584 \begin_layout Plain Layout
7585 ソース頒布版の
7586 \begin_inset Flex Code
7587 status collapsed
7588
7589 \begin_layout Plain Layout
7590 development/tools
7591 \end_layout
7592
7593 \end_inset
7594
7595 フォルダには、ユーザが設定した
7596 \emph on
7597 lyxpipe
7598 \emph default
7599 を探し出す
7600 \begin_inset Flex Code
7601 status collapsed
7602
7603 \begin_layout Plain Layout
7604 lyxeditor
7605 \end_layout
7606
7607 \end_inset
7608
7609 スクリプトがあります。
7610 \end_layout
7611
7612 \end_inset
7613
7614
7615 \end_layout
7616
7617 \begin_layout Subsubsection*
7618 MacDviX(Mac OS X)
7619 \end_layout
7620
7621 \begin_layout Standard
7622 \begin_inset Flex Code
7623 status collapsed
7624
7625 \begin_layout Plain Layout
7626 /Applications/MacDviX_Folder/calleditor.script
7627 \end_layout
7628
7629 \end_inset
7630
7631 の終わりに
7632 \end_layout
7633
7634 \begin_layout LyX-Code
7635 /Applications/Ly
7636 \begin_inset ERT
7637 status collapsed
7638
7639 \begin_layout Plain Layout
7640
7641 {}
7642 \end_layout
7643
7644 \end_inset
7645
7646 X.app/Contents/MacOS/lyxeditor "$2" $1
7647 \begin_inset Newline newline
7648 \end_inset
7649
7650 exit 1
7651 \end_layout
7652
7653 \begin_layout Standard
7654 という行を付け加えてください。Applicationsフォルダ以外の場所に\SpecialCharNoPassThru LyX
7655 を導入した場合には、それに従って上記の行を修正してください。
7656 \end_layout
7657
7658 \begin_layout Standard
7659 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7660 \end_layout
7661
7662 \begin_layout Subsubsection*
7663 Skim(Mac OS X)
7664 \end_layout
7665
7666 \begin_layout Standard
7667 \begin_inset Flex MenuItem
7668 status collapsed
7669
7670 \begin_layout Plain Layout
7671 設定\SpecialChar menuseparator
7672 ファイル処理\SpecialChar menuseparator
7673 ファイル書式\SpecialChar menuseparator
7674 PDF (pdflatex)
7675 \end_layout
7676
7677 \end_inset
7678
7679 のビューア設定に
7680 \begin_inset Flex Code
7681 status collapsed
7682
7683 \begin_layout Plain Layout
7684 open -a Skim.app $$i
7685 \end_layout
7686
7687 \end_inset
7688
7689 と入力し、
7690 \begin_inset Flex MenuItem
7691 status collapsed
7692
7693 \begin_layout Plain Layout
7694 Skim\SpecialChar menuseparator
7695 設定\SpecialChar menuseparator
7696 Sync
7697 \end_layout
7698
7699 \end_inset
7700
7701 でLy
7702 \begin_inset ERT
7703 status collapsed
7704
7705 \begin_layout Plain Layout
7706
7707 {}
7708 \end_layout
7709
7710 \end_inset
7711
7712 Xを選択してください。
7713 \end_layout
7714
7715 \begin_layout Standard
7716 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7717 \end_layout
7718
7719 \begin_layout Subsubsection*
7720 Okular (KDE)
7721 \end_layout
7722
7723 \begin_layout Standard
7724 \begin_inset Flex MenuItem
7725 status collapsed
7726
7727 \begin_layout Plain Layout
7728 設定\SpecialChar menuseparator
7729 Okularを設定\SpecialChar ldots
7730 \SpecialChar menuseparator
7731 編集
7732 \end_layout
7733
7734 \end_inset
7735
7736 で「カスタムテキストエディタ」を選択し、コマンドに
7737 \begin_inset Flex Code
7738 status collapsed
7739
7740 \begin_layout Plain Layout
7741 lyxclient -g %f %l
7742 \end_layout
7743
7744 \end_inset
7745
7746 を加えてください。
7747 \end_layout
7748
7749 \begin_layout Standard
7750 遡及検索は、SHIFT-クリックで始動します。
7751 \end_layout
7752
7753 \begin_layout Subsubsection*
7754 YAP(Windows)
7755 \end_layout
7756
7757 \begin_layout Standard
7758 yapを起動し、
7759 \begin_inset Flex MenuItem
7760 status collapsed
7761
7762 \begin_layout Plain Layout
7763 View\SpecialChar menuseparator
7764 Options
7765 \end_layout
7766
7767 \end_inset
7768
7769 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7770 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialCharNoPassThru LyX
7771  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7772 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7773 \begin_inset Flex Code
7774 status collapsed
7775
7776 \begin_layout Plain Layout
7777 lyxeditor.bat
7778 \end_layout
7779
7780 \end_inset
7781
7782 (以下参照)のあるディレクトリを見つけます。
7783 \begin_inset Flex Code
7784 status collapsed
7785
7786 \begin_layout Plain Layout
7787 lyxeditor.bat
7788 \end_layout
7789
7790 \end_inset
7791
7792 を選択してプログラムの引数を
7793 \begin_inset Flex Code
7794 status collapsed
7795
7796 \begin_layout Plain Layout
7797 %f %l
7798 \end_layout
7799
7800 \end_inset
7801
7802 と指定してください。
7803 \begin_inset Flex Code
7804 status collapsed
7805
7806 \begin_layout Plain Layout
7807 lyxeditor.bat
7808 \end_layout
7809
7810 \end_inset
7811
7812 は、
7813 \emph on
7814 lyxpipe
7815 \emph default
7816 を通じて\SpecialCharNoPassThru LyX
7817 と通信するためのラッパとして使用され、以下のようになっています。
7818 \end_layout
7819
7820 \begin_layout LyX-Code
7821 @echo off
7822 \begin_inset Newline newline
7823 \end_inset
7824
7825 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7826 \backslash
7827
7828 \backslash
7829 .
7830 \backslash
7831 pipe
7832 \backslash
7833 lyxpipe.in
7834 \begin_inset Newline newline
7835 \end_inset
7836
7837 type 
7838 \backslash
7839
7840 \backslash
7841 .
7842 \backslash
7843 pipe
7844 \backslash
7845 lyxpipe.out
7846 \end_layout
7847
7848 \begin_layout Standard
7849 \SpecialCharNoPassThru LyX
7850 で指定した\SpecialCharNoPassThru LyX
7851 Serverパイプパスが、
7852 \begin_inset Flex Code
7853 status collapsed
7854
7855 \begin_layout Plain Layout
7856
7857 \backslash
7858
7859 \backslash
7860 .
7861 \backslash
7862 pipe
7863 \backslash
7864 lyxpipe
7865 \end_layout
7866
7867 \end_inset
7868
7869 となっていることを確認するか、
7870 \begin_inset Flex Code
7871 status collapsed
7872
7873 \begin_layout Plain Layout
7874 lyxeditor.bat
7875 \end_layout
7876
7877 \end_inset
7878
7879 ラッパの方を適切に修正してください。
7880 \end_layout
7881
7882 \begin_layout Standard
7883 yapでは、遡及検索はダブルクリックで始動します。
7884 \end_layout
7885
7886 \begin_layout Subsubsection*
7887 SumatraPDF(Windows)
7888 \end_layout
7889
7890 \begin_layout Standard
7891 SumatraPDFを遡及検索で使用するためには、
7892 \begin_inset Flex MenuItem
7893 status collapsed
7894
7895 \begin_layout Plain Layout
7896 設定\SpecialChar menuseparator
7897 ファイル処理\SpecialChar menuseparator
7898 ファイル書式\SpecialChar menuseparator
7899 PDF (pdflatex)
7900 \end_layout
7901
7902 \end_inset
7903
7904 のビューア設定で
7905 \begin_inset Flex Code
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909 SumatraPDF -inverse-search 
7910 \begin_inset Quotes eld
7911 \end_inset
7912
7913 lyxeditor.bat %f %l
7914 \begin_inset Quotes erd
7915 \end_inset
7916
7917
7918 \end_layout
7919
7920 \end_inset
7921
7922 (
7923 \begin_inset Flex Code
7924 status collapsed
7925
7926 \begin_layout Plain Layout
7927 lyxeditor.bat
7928 \end_layout
7929
7930 \end_inset
7931
7932 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7933 \end_layout
7934
7935 \begin_layout Standard
7936 遡及検索はダブルクリックで始動します。
7937 \end_layout
7938
7939 \begin_layout Subsubsection*
7940 YAP(Cygwin)
7941 \end_layout
7942
7943 \begin_layout Standard
7944 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7945 \begin_inset Flex MenuItem
7946 status collapsed
7947
7948 \begin_layout Plain Layout
7949 View\SpecialChar menuseparator
7950 Options
7951 \end_layout
7952
7953 \end_inset
7954
7955 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7956 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialCharNoPassThru LyX
7957  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7958 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7959 \begin_inset Flex Code
7960 status collapsed
7961
7962 \begin_layout Plain Layout
7963 lyxeditor.exe
7964 \end_layout
7965
7966 \end_inset
7967
7968 プログラム(これは、Cygwinでは既定で\SpecialCharNoPassThru LyX
7969 実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7970 \begin_inset Flex Code
7971 status collapsed
7972
7973 \begin_layout Plain Layout
7974 lyxeditor.exe
7975 \end_layout
7976
7977 \end_inset
7978
7979 を選択してプログラムの引数を
7980 \begin_inset Flex Code
7981 status collapsed
7982
7983 \begin_layout Plain Layout
7984 -g %f %l
7985 \end_layout
7986
7987 \end_inset
7988
7989 と指定してください。これによって、\SpecialCharNoPassThru LyX
7990 との通信に
7991 \emph on
7992 lyxsocket
7993 \emph default
7994 が使用されるようになります。何らかの理由で
7995 \emph on
7996 lyxpipe
7997 \emph default
7998 を使用したい場合には、
7999 \begin_inset Flex Code
8000 status collapsed
8001
8002 \begin_layout Plain Layout
8003 -g
8004 \end_layout
8005
8006 \end_inset
8007
8008 オプションを削除して、\SpecialCharNoPassThru LyX
8009 設定で\SpecialCharNoPassThru LyX
8010 Serverパイプパスを指定することを忘れないでください。
8011 \end_layout
8012
8013 \begin_layout Standard
8014 yapでは、遡及検索はダブルクリックで始動します。
8015 \end_layout
8016
8017 \begin_layout Subsubsection*
8018 SumatraPDF(Cygwin)
8019 \end_layout
8020
8021 \begin_layout Standard
8022 SumatraPDFを遡及検索で使用するためには、
8023 \begin_inset Flex MenuItem
8024 status collapsed
8025
8026 \begin_layout Plain Layout
8027 設定\SpecialChar menuseparator
8028 ファイル処理\SpecialChar menuseparator
8029 ファイル書式\SpecialChar menuseparator
8030 PDF (pdflatex)
8031 \end_layout
8032
8033 \end_inset
8034
8035 のビューア設定で
8036 \begin_inset Flex Code
8037 status collapsed
8038
8039 \begin_layout Plain Layout
8040 SumatraPDF.sh
8041 \end_layout
8042
8043 \end_inset
8044
8045 と入力してください。ここで
8046 \begin_inset Flex Code
8047 status collapsed
8048
8049 \begin_layout Plain Layout
8050 SumatraPDF.sh
8051 \end_layout
8052
8053 \end_inset
8054
8055 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
8056 \begin_inset Flex Code
8057 status collapsed
8058
8059 \begin_layout Plain Layout
8060 /usr/local/bin
8061 \end_layout
8062
8063 \end_inset
8064
8065 がもっとも良い選択肢でしょう)。
8066 \end_layout
8067
8068 \begin_layout LyX-Code
8069 #!/bin/bash
8070 \begin_inset Newline newline
8071 \end_inset
8072
8073 cd $(dirname $1)
8074 \begin_inset Newline newline
8075 \end_inset
8076
8077 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8078 \end_layout
8079
8080 \begin_layout Standard
8081 SumatraPDFは、Windowsネイティブのアプリケーションであり、\SpecialCharNoPassThru LyX
8082 のCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが
8083 必要となります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
8084 \begin_inset Flex Code
8085 status collapsed
8086
8087 \begin_layout Plain Layout
8088 -g
8089 \end_layout
8090
8091 \end_inset
8092
8093
8094 \emph on
8095 lyxsocket
8096 \emph default
8097 経由の通信を有効にします。ここでも、
8098 \emph on
8099 lyxpipe
8100 \emph default
8101 を使用したい場合には、
8102 \begin_inset Flex Code
8103 status collapsed
8104
8105 \begin_layout Plain Layout
8106 -g
8107 \end_layout
8108
8109 \end_inset
8110
8111 オプションを削除して、\SpecialCharNoPassThru LyX
8112 設定で\SpecialCharNoPassThru LyX
8113 Serverパイプパスを指定することを忘れないでください。
8114 \end_layout
8115
8116 \begin_layout Standard
8117 遡及検索はダブルクリックで始動します。
8118 \end_layout
8119
8120 \begin_layout Section
8121 順検索
8122 \end_layout
8123
8124 \begin_layout Standard
8125 順検索とは、名前が示すとおり、いわば遡及検索の「逆」を意味します。すなわち、\SpecialCharNoPassThru LyX
8126 内部から、ビューアに特定の箇所を表示させることを可能にします。(以下に説明する
8127 ように)もし順検索の準備ができていれば、カーソルを\SpecialCharNoPassThru LyX
8128 文書の好きなところに置いて、
8129 \begin_inset Flex MenuItem
8130 status collapsed
8131
8132 \begin_layout Plain Layout
8133 移動\SpecialChar menuseparator
8134 順検索
8135 \end_layout
8136
8137 \end_inset
8138
8139 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8140 \begin_inset Flex MenuItem
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 順検索
8145 \end_layout
8146
8147 \end_inset
8148
8149 を選択してもよい)、ビューアも同じ箇所に移動します。もちろん、使用しているビューアが、この機能をサポートしていなくてはなりません。
8150 \end_layout
8151
8152 \begin_layout Standard
8153 順検索を有効にするためには、生成されたPDF/DVI出力ファイルに、\SpecialCharNoPassThru TeX
8154 ソースに関する情報を追加する必要があります。これは、第
8155 \begin_inset CommandInset ref
8156 LatexCommand ref
8157 reference "subsec:遡及検索"
8158
8159 \end_inset
8160
8161 節に述べられている方法で実行することができます。
8162 \end_layout
8163
8164 \begin_layout Standard
8165 次に、
8166 \begin_inset Flex MenuItem
8167 status collapsed
8168
8169 \begin_layout Plain Layout
8170 ツール\SpecialChar menuseparator
8171 設定\SpecialChar menuseparator
8172 出力\SpecialChar menuseparator
8173 一般
8174 \end_layout
8175
8176 \end_inset
8177
8178 で自分の使うビューアを利用するように、\SpecialCharNoPassThru LyX
8179 を設定する必要があります。いくつかのビューアについては、試験済みの設定が前もって準備されており、ドロップダウンリスト
8180 から選択することができます。これらの設定の何れも意にそぐわない場合には、ご自身で適切な設定を見つけ出して入力しなくてはなりません。定義文法は、以下の変数を使用し
8181 ます。
8182 \end_layout
8183
8184 \begin_layout Itemize
8185 \begin_inset Flex Code
8186 status collapsed
8187
8188 \begin_layout Plain Layout
8189 $$n
8190 \end_layout
8191
8192 \end_inset
8193
8194 :行番号
8195 \end_layout
8196
8197 \begin_layout Itemize
8198 \begin_inset Flex Code
8199 status collapsed
8200
8201 \begin_layout Plain Layout
8202 $$t
8203 \end_layout
8204
8205 \end_inset
8206
8207 :書き出された(一時).texファイル名(パスを除く)
8208 \end_layout
8209
8210 \begin_layout Itemize
8211 \begin_inset Flex Code
8212 status collapsed
8213
8214 \begin_layout Plain Layout
8215 $$f
8216 \end_layout
8217
8218 \end_inset
8219
8220 :書き出された(一時).texファイル名(パスを含む)
8221 \end_layout
8222
8223 \begin_layout Itemize
8224 \begin_inset Flex Code
8225 status collapsed
8226
8227 \begin_layout Plain Layout
8228 $$o
8229 \end_layout
8230
8231 \end_inset
8232
8233 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して、dviあるいはpdf)。
8234 \end_layout
8235
8236 \begin_layout Standard
8237 yap・xdvi・okular
8238 \begin_inset Foot
8239 status collapsed
8240
8241 \begin_layout Plain Layout
8242 \begin_inset Flex MenuItem
8243 status collapsed
8244
8245 \begin_layout Plain Layout
8246 ツール\SpecialChar menuseparator
8247 設定\SpecialChar menuseparator
8248 ファイル処理\SpecialChar menuseparator
8249 ファイル形式
8250 \end_layout
8251
8252 \end_inset
8253
8254
8255 \begin_inset Flex Code
8256 status collapsed
8257
8258 \begin_layout Plain Layout
8259 okular \twohyphens
8260 unique
8261 \end_layout
8262
8263 \end_inset
8264
8265 と設定すると良いかもしれません。
8266 \end_layout
8267
8268 \end_inset
8269
8270 ・Sumatra PDFなど、一部のビューアでしか、完全な順検索機能は提供されていないことに注意してください
8271 \begin_inset Foot
8272 status collapsed
8273
8274 \begin_layout Plain Layout
8275 Sumatraの場合には、
8276 \begin_inset CommandInset href
8277 LatexCommand href
8278 target "http://www.istri.fr/zip/CMCDDE.zip"
8279
8280 \end_inset
8281
8282 からダウンロードできるCMCDDEが必要です。
8283 \end_layout
8284
8285 \end_inset
8286
8287 。広く使われているPDFビューアの多く(特にAdobe Reader)は、順検索を全く提供していませんが、他の一部のビューア(たとえばEvinceやxpdf)で
8288 は、少なくとも、文書を読み込み直したり、ファイルの特定ページに移動することはできますので、少なくとも「近く」には移動することができます。この後者の機能は、syn
8289 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください)。
8290 \end_layout
8291
8292 \begin_layout Standard
8293 順検索は、DVI出力とPDF出力の双方で動作します。\SpecialCharNoPassThru LyX
8294 は、過去にあなたが使用したプレビュー形式をチェックして(つまり、一時ディレクトリにどちらの形式が存在す
8295 るかをチェックして)、その形式に適切な設定を選択します。
8296 \end_layout
8297
8298 \begin_layout Chapter
8299 特別な文書クラス
8300 \end_layout
8301
8302 \begin_layout Section
8303 A&Aの論文
8304 \end_layout
8305
8306 \begin_layout Standard
8307
8308 \noun on
8309 Peter Sütterlin文
8310 \end_layout
8311
8312 \begin_layout Subsection
8313 はじめに
8314 \end_layout
8315
8316 \begin_layout Standard
8317 この節では、文書クラス
8318 \family typewriter
8319 aa.cls
8320 \family default
8321 第5.01版を使用して科学雑誌
8322 \emph on
8323 Astronomy and Astrophysics
8324 \emph default
8325 (『天文学と宇宙物理学』:www.edpsciences.fr/aa/ 
8326 \begin_inset Flex URL
8327 status collapsed
8328
8329 \begin_layout Plain Layout
8330
8331 http://www.edpsciences.fr/aa/
8332 \end_layout
8333
8334 \end_inset
8335
8336 )に投稿する論文を執筆するための\SpecialCharNoPassThru LyX
8337 の使用法を説明します。このパッケージは、FTPサイト
8338 \family default
8339 \begin_inset Separator parbreak
8340 \end_inset
8341
8342 \end_layout
8343
8344 \begin_layout Standard
8345 \align center
8346 \begin_inset VSpace medskip
8347 \end_inset
8348
8349
8350 \begin_inset Flex URL
8351 status collapsed
8352
8353 \begin_layout Plain Layout
8354
8355 ftp://ftp.edpsciences.org/pub/aa/readme.html
8356 \end_layout
8357
8358 \end_inset
8359
8360
8361 \begin_inset VSpace medskip
8362 \end_inset
8363
8364
8365 \end_layout
8366
8367 \begin_layout Standard
8368 \noindent
8369 からダウンロードすることができます。
8370 \end_layout
8371
8372 \begin_layout Standard
8373 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
8374 書であるに過ぎません。
8375 \end_layout
8376
8377 \begin_layout Standard
8378 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
8379 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。\SpecialCharNoPassThru LyX
8380 のaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています
8381 。もし古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
8382 \family sans
8383 article (A&A V4)
8384 \family default
8385 として残してあります。
8386 \family typewriter
8387 $\SpecialCharNoPassThru LyX
8388 Dir/layouts/aapaper.layout
8389 \family default
8390 のコメントをご参照ください。
8391 \end_layout
8392
8393 \begin_layout Subsection
8394 最初の一歩
8395 \end_layout
8396
8397 \begin_layout Standard
8398 \SpecialCharNoPassThru LyX
8399 とともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
8400 \end_layout
8401
8402 \begin_layout Itemize
8403
8404 \family sans
8405 文書\SpecialChar menuseparator
8406 設定
8407 \family default
8408 ダイアログで
8409 \family sans
8410 article (A&A)
8411 \family default
8412 を選択してください(まぁ、これは自明ですね)。
8413 \end_layout
8414
8415 \begin_layout Itemize
8416
8417 \family sans
8418 ページレイアウト
8419 \family default
8420 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
8421 \end_layout
8422
8423 \begin_layout Subsection
8424 へッダ部
8425 \end_layout
8426
8427 \begin_layout Standard
8428 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
8429 \end_layout
8430
8431 \begin_layout Itemize
8432
8433 \family sans
8434 タイトル
8435 \family default
8436 :[必須]
8437 \end_layout
8438
8439 \begin_layout Itemize
8440
8441 \family sans
8442 サブタイトル
8443 \family default
8444 :[非必須]
8445 \end_layout
8446
8447 \begin_layout Itemize
8448
8449 \family sans
8450 著者
8451 \family default
8452 :[必須]
8453 \end_layout
8454
8455 \begin_layout Itemize
8456
8457 \family sans
8458 住所
8459 \family default
8460 :[必須]
8461 \end_layout
8462
8463 \begin_layout Itemize
8464
8465 \family sans
8466 抜き刷り
8467 \family default
8468 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
8469 \end_layout
8470
8471 \begin_layout Itemize
8472
8473 \family sans
8474 メール
8475 \family default
8476 :[非必須]連絡用の電子メールアドレス。
8477 \end_layout
8478
8479 \begin_layout Itemize
8480
8481 \family sans
8482 日付
8483 \family default
8484 :[必須]推奨されるフォーマットは、
8485 \family typewriter
8486 Received: <日付>; Accepted <日付>
8487 \family default
8488 です。
8489 \end_layout
8490
8491 \begin_layout Standard
8492
8493 \family typewriter
8494
8495 \backslash
8496 maketitle
8497 \family default
8498 コマンドは、へッダが終了した場所に、\SpecialCharNoPassThru LyX
8499 が自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書
8500 のレイアウトに合わせるために、上記の順序を維持しておくと良いでしょう。
8501 \end_layout
8502
8503 \begin_layout Standard
8504 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
8505 \family sans
8506 挿入\SpecialChar menuseparator
8507 脚注
8508 \family default
8509 を使用して標準の脚注を挿入してください。この場合には、\SpecialCharNoPassThru LyX
8510 は自動的に
8511 \family typewriter
8512
8513 \backslash
8514 thanks{}
8515 \family default
8516 を使用します。
8517 \end_layout
8518
8519 \begin_layout Standard
8520 これらのトピックの他に、このマクロは、\SpecialCharNoPassThru LyX
8521 が対応していない、以下の3つの\SpecialCharNoPassThru LaTeX
8522 コマンドを使用します。
8523 \end_layout
8524
8525 \begin_layout Itemize
8526 複数の著者名あるいは所属名を区切るための
8527 \family typewriter
8528
8529 \backslash
8530 and
8531 \end_layout
8532
8533 \begin_layout Itemize
8534 著者と所属の対応付けをするための
8535 \family typewriter
8536
8537 \backslash
8538 inst{<番号>}
8539 \family default
8540 。所属は、
8541 \family sans
8542 住所
8543 \family default
8544 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
8545 \end_layout
8546
8547 \begin_layout Itemize
8548
8549 \family typewriter
8550
8551 \backslash
8552 email{アドレス}
8553 \family default
8554 は、至急連絡用に電子メールアドレスを付記します。
8555 \end_layout
8556
8557 \begin_layout Standard
8558 いずれの場合にも、\SpecialCharNoPassThru LyX
8559 中に対応したコマンドを入力し、\SpecialCharNoPassThru LaTeX
8560 コードとしてマークしてください。
8561 \begin_inset Flex Code
8562 status collapsed
8563
8564 \begin_layout Plain Layout
8565 $\SpecialCharNoPassThru LyX
8566 Dir/examples
8567 \end_layout
8568
8569 \end_inset
8570
8571 にある用例を参照してください。
8572 \end_layout
8573
8574 \begin_layout Subsection
8575 概要
8576 \end_layout
8577
8578 \begin_layout Standard
8579 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
8580 れなくてはなりません。これは、まだ\SpecialCharNoPassThru LyX
8581 では実装されていないため、\SpecialCharNoPassThru LaTeX
8582 コマンド
8583 \family typewriter
8584
8585 \backslash
8586 keywords{}
8587 \family default
8588 を手動で入力し、\SpecialCharNoPassThru LaTeX
8589 コードとしてマークする必要があります。用例にある論文を参照してください。
8590 \end_layout
8591
8592 \begin_layout Subsection
8593 サポートされる環境
8594 \end_layout
8595
8596 \begin_layout Standard
8597 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
8598 \end_layout
8599
8600 \begin_layout Itemize
8601
8602 \family sans
8603 標準
8604 \end_layout
8605
8606 \begin_layout Itemize
8607
8608 \family sans
8609
8610 \end_layout
8611
8612 \begin_layout Itemize
8613
8614 \family sans
8615 小節
8616 \end_layout
8617
8618 \begin_layout Itemize
8619
8620 \family sans
8621 小々節
8622 \end_layout
8623
8624 \begin_layout Itemize
8625
8626 \family sans
8627 箇条書き(記号)
8628 \end_layout
8629
8630 \begin_layout Itemize
8631
8632 \family sans
8633 箇条書き(連番)
8634 \end_layout
8635
8636 \begin_layout Itemize
8637
8638 \family sans
8639 箇条書き(記述)
8640 \end_layout
8641
8642 \begin_layout Itemize
8643
8644 \family sans
8645 キャプション
8646 \end_layout
8647
8648 \begin_layout Itemize
8649
8650 \family sans
8651 概要
8652 \end_layout
8653
8654 \begin_layout Itemize
8655
8656 \family sans
8657 謝辞(Acknowledgment)
8658 \end_layout
8659
8660 \begin_layout Itemize
8661
8662 \family sans
8663 書誌情報
8664 \end_layout
8665
8666 \begin_layout Itemize
8667
8668 \family sans
8669 \SpecialCharNoPassThru LaTeX
8670 \end_layout
8671
8672 \begin_layout Subsection
8673 \SpecialCharNoPassThru LyX
8674 でサポートされていないコマンド
8675 \end_layout
8676
8677 \begin_layout Standard
8678 \SpecialCharNoPassThru LyX
8679
8680 \family sans
8681 article (A&A)
8682 \family default
8683 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8684 \end_layout
8685
8686 \begin_layout Itemize
8687
8688 \family typewriter
8689
8690 \backslash
8691 and
8692 \end_layout
8693
8694 \begin_layout Itemize
8695
8696 \family typewriter
8697
8698 \backslash
8699 email
8700 \end_layout
8701
8702 \begin_layout Itemize
8703
8704 \family typewriter
8705
8706 \backslash
8707 appendix
8708 \end_layout
8709
8710 \begin_layout Itemize
8711
8712 \family typewriter
8713
8714 \backslash
8715 authorrunning
8716 \end_layout
8717
8718 \begin_layout Itemize
8719
8720 \family typewriter
8721
8722 \backslash
8723 inst{}
8724 \end_layout
8725
8726 \begin_layout Itemize
8727
8728 \family typewriter
8729
8730 \backslash
8731 keywords{}
8732 \end_layout
8733
8734 \begin_layout Itemize
8735
8736 \family typewriter
8737
8738 \backslash
8739 object{}
8740 \end_layout
8741
8742 \begin_layout Itemize
8743
8744 \family typewriter
8745
8746 \backslash
8747 titlerunning{}
8748 \end_layout
8749
8750 \begin_layout Standard
8751 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8752 \series bold
8753 これを\SpecialCharNoPassThru LaTeX
8754 コマンドとしてマークすることを忘れないで下さい。
8755 \end_layout
8756
8757 \begin_layout Subsection
8758 図フロートおよび表フロート
8759 \end_layout
8760
8761 \begin_layout Standard
8762 \SpecialCharNoPassThru LyX
8763 は、必要なフロート環境
8764 \family sans
8765 figure
8766 \family default
8767
8768 \family sans
8769 figure*
8770 \family default
8771
8772 \family sans
8773 table
8774 \family default
8775
8776 \family sans
8777 table*
8778 \family default
8779 をサポートしていますので、ここでは詳しい説明はしません。
8780 \emph on
8781 ユーザーの手引き
8782 \emph default
8783 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8784 \family sans
8785 編集\SpecialChar menuseparator
8786 段落設定
8787 \family default
8788 で配置を変更してください。
8789 \end_layout
8790
8791 \begin_layout Standard
8792 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8793 \end_layout
8794
8795 \begin_layout Enumerate
8796
8797 \family sans
8798 挿入\SpecialChar menuseparator
8799 フロート\SpecialChar menuseparator
8800
8801 \family default
8802 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8803 \begin_inset Flex MenuItem
8804 status collapsed
8805
8806 \begin_layout Plain Layout
8807 設定\SpecialChar ldots
8808
8809 \end_layout
8810
8811 \end_inset
8812
8813 を選択し、それで開かれる
8814 \family sans
8815 フロートの設定
8816 \family default
8817 ダイアログで
8818 \family sans
8819 段をまたぐ
8820 \family default
8821 を有効にして、
8822 \family sans
8823 OK
8824 \family default
8825 ボタンを押します。
8826 \end_layout
8827
8828 \begin_layout Enumerate
8829 キャプション文を入力します。
8830 \end_layout
8831
8832 \begin_layout Enumerate
8833 キャプションの前にカーソルを移動し、
8834 \family sans
8835 Return
8836 \family default
8837 を押して、カーソルをキャプションの上に移動します。
8838 \end_layout
8839
8840 \begin_layout Enumerate
8841 図を挿入します。
8842 \end_layout
8843
8844 \begin_layout Enumerate
8845 カーソルを図の後ろに置いて、
8846 \family sans
8847 挿入\SpecialChar menuseparator
8848 整形
8849 \bar under
8850 \SpecialChar menuseparator
8851
8852 \bar default
8853 水平方向の空白
8854 \family default
8855 を選択して
8856 \family sans
8857 水平方向の空白の設定
8858 \family default
8859 ダイアログを開き、
8860 \family sans
8861 空白
8862 \family default
8863 ドロップダウンから
8864 \family sans
8865 水平フィル
8866 \family default
8867 を選択して、水平フィルを挿入します。
8868 \end_layout
8869
8870 \begin_layout Enumerate
8871
8872 \family sans
8873 挿入\SpecialChar menuseparator
8874 \SpecialCharNoPassThru TeX
8875 コード
8876 \family default
8877 を選択して、\SpecialCharNoPassThru TeX
8878 差込枠を挿入します。
8879 \end_layout
8880
8881 \begin_layout Enumerate
8882 \SpecialCharNoPassThru TeX
8883 差込枠中に
8884 \family typewriter
8885
8886 \backslash
8887 parbox[b]{55mm}{
8888 \family default
8889 と入力します。
8890 \series bold
8891 ここでは波括弧を閉じないでください。
8892 \end_layout
8893
8894 \begin_layout Enumerate
8895 カーソルをキャプション文の後ろに移動し、
8896 \family sans
8897 挿入\SpecialChar menuseparator
8898 \SpecialCharNoPassThru TeX
8899 コード
8900 \family default
8901 を選択して、別の\SpecialCharNoPassThru TeX
8902 差込枠を挿入し、その中に閉じ括弧を入力します 。
8903 \end_layout
8904
8905 \begin_layout Standard
8906 例示用論文中の図もご参照ください。
8907 \end_layout
8908
8909 \begin_layout Subsection
8910 Refereeレイアウト
8911 \end_layout
8912
8913 \begin_layout Standard
8914 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8915 \family typewriter
8916 referee
8917 \family default
8918 オプションを与える必要があります。これは、
8919 \family sans
8920 文書\SpecialChar menuseparator
8921 設定
8922 \family default
8923 ダイアログの
8924 \family sans
8925 任意設定
8926 \family default
8927 クラスオプションフィールドを使って行うことができます。この欄に
8928 \family typewriter
8929 referee
8930 \family default
8931 と云う文字列を入力してください。
8932 \end_layout
8933
8934 \begin_layout Subsection
8935 例示用論文
8936 \end_layout
8937
8938 \begin_layout Standard
8939
8940 \family sans
8941 Examples
8942 \family default
8943 ディレクトリには、\SpecialCharNoPassThru LyX
8944 で書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文を\SpecialCharNoPassThru LyX
8945 用に直したものです。これはヒントを得るために使用
8946 したり、元の \SpecialCharNoPassThru LaTeX
8947 コードと\SpecialCharNoPassThru LyX
8948 での書き方の比較に使ったりしてください。
8949 \end_layout
8950
8951 \begin_layout Section
8952 AAS\SpecialCharNoPassThru TeX
8953 \end_layout
8954
8955 \begin_layout Standard
8956
8957 \noun on
8958 Mike Ressler
8959 \noun default
8960
8961 \end_layout
8962
8963 \begin_layout Subsection
8964 はじめに
8965 \end_layout
8966
8967 \begin_layout Standard
8968 AAS\SpecialCharNoPassThru TeX
8969 は、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑
8970 誌)同誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of
8971  the Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集
8972 です。\SpecialCharNoPassThru LyX
8973 は、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。\SpecialCharNoPassThru LyX
8974 は、同マクロ第5.0版以降を
8975 必要としており、できればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、\SpecialCharNoPassThru LaTeX
8976 2.09で使用するよう企図されているため、根本的に\SpecialCharNoPassThru LyX
8977 とは互
8978 換性がありません。AAS\SpecialCharNoPassThru TeX
8979 パッケージは、以下のAAS\SpecialCharNoPassThru TeX
8980 ウェブサイトからダウンロードできるでしょう。
8981 \begin_inset Separator parbreak
8982 \end_inset
8983
8984 \end_layout
8985
8986 \begin_layout Standard
8987 \align center
8988 \begin_inset VSpace medskip
8989 \end_inset
8990
8991
8992 \begin_inset Flex URL
8993 status collapsed
8994
8995 \begin_layout Plain Layout
8996
8997 http://www.journals.uchicago.edu/AAS/AAS\SpecialCharNoPassThru TeX
8998 \end_layout
8999
9000 \end_inset
9001
9002
9003 \begin_inset VSpace medskip
9004 \end_inset
9005
9006
9007 \end_layout
9008
9009 \begin_layout Standard
9010 パッケージ中には、完備したユーザーの手引きが収録されていますので、\SpecialCharNoPassThru LyX
9011 で論文を書き始める前に、その中身を完全に理解しておく必要があります。\SpecialCharNoPassThru LyX
9012 は、AASTe
9013 Xの全コマンドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりの\SpecialCharNoPassThru LaTeX
9014 文書が、論文を投稿しようとしているジャーナルの要
9015 求事項に完全に合致していることを確認するのは、あなたの責任です。
9016 \end_layout
9017
9018 \begin_layout Subsection
9019 新しい論文を書き始める
9020 \end_layout
9021
9022 \begin_layout Standard
9023 論文を書き始めるには、AAS\SpecialCharNoPassThru TeX
9024 ひな型ファイルを土台に始めることを強くお勧めします。
9025 \begin_inset Flex MenuItem
9026 status collapsed
9027
9028 \begin_layout Plain Layout
9029 ファイル\SpecialChar menuseparator
9030 新規(ひな型使用)
9031 \end_layout
9032
9033 \end_inset
9034
9035 をクリックして、新しいファイル名を入力し、ひな型
9036 \family typewriter
9037 aastex.lyx
9038 \family default
9039 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
9040 \family typewriter
9041 <>
9042 \family default
9043 を含む)を正しい情報で上書きしてください。AAS\SpecialCharNoPassThru TeX
9044 コマンド・AAS\SpecialCharNoPassThru TeX
9045 環境の多くは、\SpecialCharNoPassThru LyX
9046 中で直接実行することができますが、特に
9047 \family typewriter
9048
9049 \backslash
9050 altaffilmark
9051 \family default
9052
9053 \family typewriter
9054
9055 \backslash
9056 altaffiltext
9057 \family default
9058 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
9059 a\SpecialCharNoPassThru TeX
9060 コードを入力して、それを\SpecialCharNoPassThru TeX
9061 コードとしてマークしなければなりません。このようなコマンドは、\SpecialCharNoPassThru TeX
9062 コードあるいはEvil Red Text(邪悪な赤い文
9063 )と呼ばれます。AAS\SpecialCharNoPassThru TeX
9064 文書に必要とされる \SpecialCharNoPassThru TeX
9065 コードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
9066 \end_layout
9067
9068 \begin_layout Subsection
9069 論文を書き終わったら
9070 \end_layout
9071
9072 \begin_layout Standard
9073 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
9074 \end_layout
9075
9076 \begin_layout Enumerate
9077 論文を \SpecialCharNoPassThru LaTeX
9078 ファイルとして書き出します(
9079 \family sans
9080 ファイル\SpecialChar menuseparator
9081 書き出し\SpecialChar menuseparator
9082 LateX
9083 \family default
9084 )。
9085 \end_layout
9086
9087 \begin_layout Enumerate
9088 出力した
9089 \family typewriter
9090 .tex
9091 \family default
9092 ファイルを好きなエディタで編集します。
9093 \family default
9094 \begin_inset Separator parbreak
9095 \end_inset
9096
9097 \end_layout
9098
9099 \begin_deeper
9100 \begin_layout Enumerate
9101
9102 \family typewriter
9103
9104 \backslash
9105 documentclass
9106 \family default
9107 コマンドよりも前のコメント行を削除します。
9108 \end_layout
9109
9110 \begin_layout Enumerate
9111
9112 \family typewriter
9113
9114 \backslash
9115 usepackage...{fontenc}
9116 \family default
9117 という行があれば(通常は
9118 \family typewriter
9119
9120 \backslash
9121 documentclass
9122 \family default
9123 の直後にあります)削除します。また、
9124 \family typewriter
9125
9126 \backslash
9127 secnumdepth
9128 \family default
9129 行があれば、これも削除します。
9130 \end_layout
9131
9132 \begin_layout Enumerate
9133 \SpecialCharNoPassThru LaTeX
9134 プリアンブル中に意図的に置いたコマンド(
9135 \family typewriter
9136 .tex
9137 \family default
9138 ファイル中、「User specified \SpecialCharNoPassThru LaTeX
9139  commands」というコメントの直後にあります)を除いて、
9140 \family typewriter
9141
9142 \backslash
9143 makeatletter
9144 \family default
9145
9146 \family typewriter
9147
9148 \backslash
9149 makeatother
9150 \family default
9151 の間のもの(これらのコマンドを含む)をすべて削除します。
9152 \end_layout
9153
9154 \end_deeper
9155 \begin_layout Enumerate
9156 編集後のファイルを \SpecialCharNoPassThru LaTeX
9157 にかけて、正しく処理されることを確認します。
9158 \end_layout
9159
9160 \begin_layout Enumerate
9161 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
9162 \end_layout
9163
9164 \begin_layout Enumerate
9165 投稿してください。
9166 \end_layout
9167
9168 \begin_layout Subsection
9169 特定のコマンドに関するコメント
9170 \end_layout
9171
9172 \begin_layout Standard
9173 AAS\SpecialCharNoPassThru TeX
9174 ユーザーの手引き(
9175 \family typewriter
9176 aasguide.tex
9177 \family default
9178 )に、各AAS\SpecialCharNoPassThru TeX
9179 コマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を
9180 列挙して、必要なところだけコメントを加えることにしましょう。
9181 \end_layout
9182
9183 \begin_layout Subsubsection
9184 期待通りに動作するもの
9185 \end_layout
9186
9187 \begin_layout Standard
9188 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
9189 \family typewriter
9190
9191 \backslash
9192 documentclass
9193 \family default
9194  (2.1.1)・
9195 \family typewriter
9196
9197 \backslash
9198 begin{document}
9199 \family default
9200  (2.2)・
9201 \family typewriter
9202
9203 \backslash
9204 title
9205 \family default
9206  (2.3)・
9207 \family typewriter
9208
9209 \backslash
9210 author
9211 \family default
9212  (2.3)・
9213 \family typewriter
9214
9215 \backslash
9216 affil
9217 \family default
9218  (2.3)・
9219 \family typewriter
9220
9221 \backslash
9222 abstract
9223 \family default
9224  (2.4)・
9225 \family typewriter
9226
9227 \backslash
9228 keywords
9229 \family default
9230  (2.5)・
9231 \family typewriter
9232
9233 \backslash
9234 section
9235 \family default
9236  (2.7)・
9237 \family typewriter
9238
9239 \backslash
9240 subsection
9241 \family default
9242  (2.7)・
9243 \family typewriter
9244
9245 \backslash
9246 subsubsection
9247 \family default
9248  (2.7)・
9249 \family typewriter
9250
9251 \backslash
9252 paragraph
9253 \family default
9254  (2.7)・
9255 \family typewriter
9256
9257 \backslash
9258 facility
9259 \family default
9260  (2.10)・
9261 \family typewriter
9262
9263 \backslash
9264 begin{displaymath}
9265 \family default
9266  (2.12)・
9267 \family typewriter
9268
9269 \backslash
9270 begin{equation}
9271 \family default
9272  (2.12)・
9273 \family typewriter
9274
9275 \backslash
9276 begin{eqnarray}
9277 \family default
9278  (2.12)・
9279 \family typewriter
9280
9281 \backslash
9282 begin{mathletters}
9283 \family default
9284  (2.12)・
9285 \family typewriter
9286
9287 \backslash
9288 begin{thebibliography}
9289 \family default
9290  (2.13.1)・
9291 \family typewriter
9292
9293 \backslash
9294 bibitem
9295 \family default
9296  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9297 \family typewriter
9298
9299 \backslash
9300 begin{table}
9301 \family default
9302  (2.15.4)・
9303 \family typewriter
9304
9305 \backslash
9306 begin{tabular}
9307 \family default
9308  (2.15.4)・
9309 \family typewriter
9310
9311 \backslash
9312 caption
9313 \family default
9314  (2.15.4)・
9315 \family typewriter
9316
9317 \backslash
9318 label
9319 \family default
9320  (他にもあるが特に2.15.4)・
9321 \family typewriter
9322
9323 \backslash
9324 tablerefs
9325 \family default
9326  (2.15.5)・
9327 \family typewriter
9328
9329 \backslash
9330 tablecomments
9331 \family default
9332  (2.15.5)・
9333 \family typewriter
9334
9335 \backslash
9336 url
9337 \family default
9338  (2.17.4)・
9339 \family typewriter
9340
9341 \backslash
9342 end{document}
9343 \family default
9344  (2.18)。
9345 \end_layout
9346
9347 \begin_layout Standard
9348 以下のスタイルオプションも正しく動作します。
9349 \family typewriter
9350 longabstract
9351 \family default
9352  (2.4)・
9353 \family typewriter
9354 preprint
9355 \family default
9356  (3.2.1)・
9357 \family typewriter
9358 preprint2
9359 \family default
9360  (3.2.2)・
9361 \family typewriter
9362 eqsecnum
9363 \family default
9364  (3.3)・
9365 \family typewriter
9366 flushrt
9367 \family default
9368  (3.4)。これらは、
9369 \begin_inset Flex MenuItem
9370 status collapsed
9371
9372 \begin_layout Plain Layout
9373 文書\SpecialChar menuseparator
9374 設定
9375 \end_layout
9376
9377 \end_inset
9378
9379 にある、
9380 \family sans
9381 クラスオプション
9382 \family default
9383
9384 \family sans
9385 任意設定
9386 \family default
9387 ボックスに入力してください。
9388 \end_layout
9389
9390 \begin_layout Subsubsection
9391 動作するが、若干説明が必要なもの
9392 \end_layout
9393
9394 \begin_layout Standard
9395 以下のコマンドは動作しますが、若干の説明が必要です。
9396 \end_layout
9397
9398 \begin_layout Itemize
9399 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、\SpecialCharNoPassThru LaTeX
9400 プリアンブルに入れることができます。
9401 \family typewriter
9402
9403 \backslash
9404 received
9405 \family default
9406
9407 \family typewriter
9408
9409 \backslash
9410 revised
9411 \family default
9412
9413 \family typewriter
9414
9415 \backslash
9416 accepted
9417 \family default
9418
9419 \family typewriter
9420
9421 \backslash
9422 ccc
9423 \family default
9424
9425 \family typewriter
9426 cpright
9427 \family default
9428 (すべて 2.1.3)。
9429 \end_layout
9430
9431 \begin_layout Itemize
9432 以下の項目は、\SpecialCharNoPassThru LaTeX
9433 のプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
9434 \family typewriter
9435
9436 \backslash
9437 slugcomment
9438 \family default
9439 (2.1.4)・
9440 \family typewriter
9441
9442 \backslash
9443 shorttitle
9444 \family default
9445 (2.1.5)・
9446 \family typewriter
9447
9448 \backslash
9449 shortauthors
9450 \family default
9451 (2.1.5)。
9452 \end_layout
9453
9454 \begin_layout Itemize
9455
9456 \family typewriter
9457
9458 \backslash
9459 email
9460 \family default
9461 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialCharNoPassThru TeX
9462 コードを使用してください。
9463 \end_layout
9464
9465 \begin_layout Itemize
9466
9467 \family typewriter
9468
9469 \backslash
9470 and
9471 \family default
9472 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9473 \end_layout
9474
9475 \begin_layout Itemize
9476
9477 \family typewriter
9478
9479 \backslash
9480 notetoeditor
9481 \family default
9482 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialCharNoPassThru TeX
9483 コードを使用してください。
9484 \end_layout
9485
9486 \begin_layout Itemize
9487
9488 \family typewriter
9489
9490 \backslash
9491 placetable
9492 \family default
9493 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
9494 \end_layout
9495
9496 \begin_layout Itemize
9497
9498 \family typewriter
9499
9500 \backslash
9501 placefigure
9502 \family default
9503 (2.8)—
9504 \family typewriter
9505
9506 \backslash
9507 placetable
9508 \family default
9509 と同様。
9510 \end_layout
9511
9512 \begin_layout Itemize
9513
9514 \family typewriter
9515
9516 \backslash
9517 acknowledgements
9518 \family default
9519 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9520 \end_layout
9521
9522 \begin_layout Itemize
9523
9524 \family typewriter
9525
9526 \backslash
9527 appendix
9528 \family default
9529 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9530 \end_layout
9531
9532 \begin_layout Itemize
9533
9534 \family typewriter
9535
9536 \backslash
9537 figcaption
9538 \family default
9539 (2.14.2)―文章のはじめにカーソルを置いて
9540 \begin_inset Flex MenuItem
9541 status collapsed
9542
9543 \begin_layout Plain Layout
9544 挿入\SpecialChar menuseparator
9545 短縮タイトル
9546 \end_layout
9547
9548 \end_inset
9549
9550 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
9551 \family typewriter
9552
9553 \backslash
9554 figcaption
9555 \family default
9556 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
9557 \end_layout
9558
9559 \begin_layout Itemize
9560
9561 \family typewriter
9562
9563 \backslash
9564 objectname
9565 \family default
9566 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9567 \family typewriter
9568
9569 \backslash
9570 figcaption
9571 \family default
9572 と同様。
9573 \end_layout
9574
9575 \begin_layout Itemize
9576
9577 \family typewriter
9578
9579 \backslash
9580 dataset
9581 \family default
9582 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9583 \family typewriter
9584
9585 \backslash
9586 figcaption
9587 \family default
9588 と同様。
9589 \end_layout
9590
9591 \begin_layout Subsubsection
9592 実装されていないため、\SpecialCharNoPassThru TeX
9593 コードを使用するもの
9594 \end_layout
9595
9596 \begin_layout Standard
9597
9598 \family typewriter
9599
9600 \backslash
9601 altaffilmark
9602 \family default
9603 (2.3)・
9604 \family typewriter
9605
9606 \backslash
9607 altaffiltext
9608 \family default
9609 (2.3)・
9610 \family typewriter
9611
9612 \backslash
9613 eqnum
9614 \family default
9615 (2.12)・
9616 \family typewriter
9617
9618 \backslash
9619 setcounter{equation}
9620 \family default
9621 (2.12)・学術誌名略語(2.12.4)・
9622 \family typewriter
9623
9624 \backslash
9625 figurenum
9626 \family default
9627 (2.14.1)・
9628 \family typewriter
9629
9630 \backslash
9631 epsscale
9632 \family default
9633 (2.14.1)・
9634 \family typewriter
9635
9636 \backslash
9637 plotone
9638 \family default
9639 (2.14.1)・
9640 \family typewriter
9641
9642 \backslash
9643 plottwo
9644 \family default
9645 (2.14.1)・
9646 \family typewriter
9647
9648 \backslash
9649 tablenum
9650 \family default
9651 (2.15.4)・
9652 \family typewriter
9653
9654 \backslash
9655 tableline
9656 \family default
9657 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、\SpecialCharNoPassThru LyX
9658 の方法は使わないでください)・
9659 \family typewriter
9660
9661 \backslash
9662 tablenotemark
9663 \family default
9664 (2.15.5)・
9665 \family typewriter
9666
9667 \backslash
9668 tablenotetext
9669 \family default
9670 (2.15.5)・補遺(2.17)の大半(
9671 \family typewriter
9672
9673 \backslash
9674 objectname
9675 \family default
9676
9677 \family typewriter
9678
9679 \backslash
9680 dataset
9681 \family default
9682
9683 \family typewriter
9684
9685 \backslash
9686 url
9687 \family default
9688
9689 \family typewriter
9690
9691 \backslash
9692 email
9693 \family default
9694 を除く。上記参照)・
9695 \family typewriter
9696
9697 \backslash
9698 singlespace
9699 \family default
9700 (3.1)・
9701 \family typewriter
9702
9703 \backslash
9704 doublespace
9705 \family default
9706 (3.1)・
9707 \family typewriter
9708
9709 \backslash
9710 onecolumn
9711 \family default
9712 (3.2)・
9713 \family typewriter
9714
9715 \backslash
9716 twocolumn
9717 \family default
9718 (3.2)
9719 \end_layout
9720
9721 \begin_layout Subsubsection
9722 実装できないもの
9723 \end_layout
9724
9725 \begin_layout Standard
9726 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9727 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9728 \begin_inset Flex MenuItem
9729 status collapsed
9730
9731 \begin_layout Plain Layout
9732 挿入\SpecialChar menuseparator
9733 ファイル
9734 \begin_inset Formula $\text{\textipa{}}$
9735 \end_inset
9736
9737 \SpecialChar menuseparator
9738 子文書
9739 \end_layout
9740
9741 \end_inset
9742
9743 を使用して、\SpecialCharNoPassThru LyX
9744 ファイルに読み込むことを推奨します。この実例は、
9745 \family typewriter
9746 aas_sample.lyx
9747 \family default
9748 ファイルをご参照ください。
9749 \end_layout
9750
9751 \begin_layout Subsection
9752 FAQとヒントと技とその他の考察
9753 \end_layout
9754
9755 \begin_layout Subsubsection
9756 \SpecialCharNoPassThru LyX
9757 をAAS\SpecialCharNoPassThru TeX
9758 と協調させる
9759 \end_layout
9760
9761 \begin_layout Standard
9762 \SpecialCharNoPassThru LyX
9763 に、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9764 \end_layout
9765
9766 \begin_layout Enumerate
9767 \SpecialCharNoPassThru LaTeX
9768 が、AAS\SpecialCharNoPassThru TeX
9769 を検出できることを確認してください。AAS\SpecialCharNoPassThru TeX
9770 頒布版に含まれる
9771 \family typewriter
9772 sample.tex
9773 \family default
9774 (あるいは
9775 \family typewriter
9776 table.tex
9777 \family default
9778 でも可)を、\SpecialCharNoPassThru LaTeX
9779 やAAS\SpecialCharNoPassThru TeX
9780 とまったく関係のないディレクトリにコピーして、
9781 \family typewriter
9782 sample.tex
9783 \family default
9784 を\SpecialCharNoPassThru LaTeX
9785 にかけてください。
9786 \end_layout
9787
9788 \begin_layout Enumerate
9789
9790 \family typewriter
9791 aastex.layout
9792 \family default
9793 が、\SpecialCharNoPassThru LyX
9794
9795 \family typewriter
9796 layouts
9797 \family default
9798 フォルダにあることを確認してください。
9799 \end_layout
9800
9801 \begin_layout Enumerate
9802 \SpecialCharNoPassThru LyX
9803 中から
9804 \family sans
9805 ツール\SpecialChar menuseparator
9806 環境構成
9807 \family default
9808 を再度実行し、\SpecialCharNoPassThru LyX
9809 を再起動してください。
9810 \end_layout
9811
9812 \begin_layout Enumerate
9813 ひな型ではなく、通常の新規ファイルを開いてください。AAS\SpecialCharNoPassThru TeX
9814 が、
9815 \family sans
9816 文書\SpecialChar menuseparator
9817 設定
9818 \family default
9819 のクラス一覧に表示されていますか?
9820 \end_layout
9821
9822 \begin_layout Standard
9823 既存のAAS\SpecialCharNoPassThru TeX
9824 文書を処理する際に、AAS\SpecialCharNoPassThru TeX
9825 レイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が
9826 出るようであれば、正しい導入が行われていません。
9827 \end_layout
9828
9829 \begin_layout Subsubsection
9830 表を処理する際の\SpecialCharNoPassThru LaTeX
9831 エラー
9832 \end_layout
9833
9834 \begin_layout Standard
9835 既定では、\SpecialCharNoPassThru LyX
9836 は、表のキャプションやタイトルを中央揃えにしようと試みます。これはAAS\SpecialCharNoPassThru TeX
9837 と悪い相互干渉を発生させるようですので、キャプションやタイトルのど
9838 こかをクリックして、
9839 \family sans
9840 編集\SpecialChar menuseparator
9841 段落設定
9842 \family default
9843 を選択し、
9844 \family sans
9845 配置
9846 \family default
9847
9848 \family sans
9849 両端揃え
9850 \family default
9851 に設定してください。私のところではこれで解決しました。
9852 \end_layout
9853
9854 \begin_layout Subsubsection
9855 書誌情報
9856 \end_layout
9857
9858 \begin_layout Standard
9859 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9860 ースを
9861 \emph on
9862 入れない
9863 \emph default
9864 ようにしてください。たとえば、
9865 \family typewriter
9866 Ressler(1992)
9867 \family default
9868 はいいですが、
9869 \family typewriter
9870 Ressler (1992)
9871 \family default
9872 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9873 \family sans
9874 書誌情報
9875 \family default
9876 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい書誌情
9877 報を追加するには、既存の書誌情報の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9878 \end_layout
9879
9880 \begin_layout Subsubsection
9881 EPSファイルの読み込み
9882 \end_layout
9883
9884 \begin_layout Standard
9885 AAS\SpecialCharNoPassThru TeX
9886 には、自前の図関連コマンド(たとえば
9887 \family typewriter
9888
9889 \backslash
9890 plotone
9891 \family default
9892 )がありますが、私は(既定のgraphicxを使った)\SpecialCharNoPassThru LaTeX
9893 の標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、\SpecialCharNoPassThru TeX
9894 コードで
9895 \family typewriter
9896
9897 \backslash
9898 plotone
9899 \family default
9900 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、\SpecialCharNoPassThru LyX
9901 は、
9902 \family typewriter
9903
9904 \backslash
9905 usepackage{graphics}
9906 \family default
9907 コマンドを\SpecialCharNoPassThru LaTeX
9908 プリアンブルに挿入し、図を\SpecialCharNoPassThru LaTeX2e
9909 の標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図
9910 を受け入れていますが、AJはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9911 \end_layout
9912
9913 \begin_layout Subsubsection
9914 可能だったが、実装しなかったもの
9915 \end_layout
9916
9917 \begin_layout Standard
9918 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、\SpecialCharNoPassThru LyX
9919 ウィン
9920 ドウ中で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。
9921 いずれにしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9922 \end_layout
9923
9924 \begin_layout Subsection
9925 最後に
9926 \end_layout
9927
9928 \begin_layout Standard
9929 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98
9930 \begin_inset space \thinspace{}
9931 \end_inset
9932
9933 %は\SpecialCharNoPassThru LyX
9934 上で為されました。残りの2
9935 \begin_inset space \thinspace{}
9936 \end_inset
9937
9938 %が、\SpecialCharNoPassThru LaTeX
9939 での後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですから
9940 、がんばって発表してください!
9941 \end_layout
9942
9943 \begin_layout Section
9944 AMS \SpecialCharNoPassThru LaTeX
9945 \end_layout
9946
9947 \begin_layout Standard
9948
9949 \noun on
9950 David Johnson
9951 \noun default
9952 文 
9953 \noun on
9954 Richard Heck
9955 \noun default
9956 改訂
9957 \begin_inset VSpace bigskip
9958 \end_inset
9959
9960
9961 \end_layout
9962
9963 \begin_layout Standard
9964 AMS \SpecialCharNoPassThru LaTeX
9965 レイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウ
9966 トは、特定の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、\SpecialCharNoPassThru TeX
9967 出力中
9968 の一行を変更する必要があるだけです)。AMSの説明書は、ウェブWeb上の
9969 \begin_inset Flex URL
9970 status open
9971
9972 \begin_layout Plain Layout
9973
9974 http://www.ams.org
9975 \end_layout
9976
9977 \end_inset
9978
9979 か、FTPで
9980 \begin_inset Flex URL
9981 status open
9982
9983 \begin_layout Plain Layout
9984
9985 ftp://ftp.ams.org/pub/tex/amslatex/
9986 \end_layout
9987
9988 \end_inset
9989
9990 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9991 \end_layout
9992
9993 \begin_layout Standard
9994 基本となるAMS \SpecialCharNoPassThru LaTeX
9995 レイアウトには、以下の二つがあります。
9996 \end_layout
9997
9998 \begin_layout Itemize
9999 amsart:標準のAMS article書式。
10000 \end_layout
10001
10002 \begin_layout Itemize
10003 amsbook:標準のAMS book(実際はモノグラフ)書式。
10004 \end_layout
10005
10006 \begin_layout Standard
10007 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
10008 m」環境は、何一つ含まれていません。これらは、代わりに
10009 \begin_inset Flex Code
10010 status collapsed
10011
10012 \begin_layout Plain Layout
10013 定理(AMS)
10014 \end_layout
10015
10016 \end_inset
10017
10018 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
10019 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
10020 \begin_inset Flex Code
10021 status collapsed
10022
10023 \begin_layout Plain Layout
10024 定理(AMS拡張)
10025 \end_layout
10026
10027 \end_inset
10028
10029 モジュールがあり、これは手動で読み込む必要があります。
10030 \end_layout
10031
10032 \begin_layout Standard
10033 既定では、定理類は、文書を通して連番が振られますが、これは
10034 \begin_inset Flex Code
10035 status collapsed
10036
10037 \begin_layout Plain Layout
10038 定理(節毎連番)
10039 \end_layout
10040
10041 \end_inset
10042
10043 モジュールを読み込めば変更することができ、
10044 \begin_inset Flex Code
10045 status collapsed
10046
10047 \begin_layout Plain Layout
10048 book (AMS)
10049 \end_layout
10050
10051 \end_inset
10052
10053 を使用している場合には
10054 \begin_inset Flex Code
10055 status collapsed
10056
10057 \begin_layout Plain Layout
10058 定理(章毎連番)
10059 \end_layout
10060
10061 \end_inset
10062
10063 を用いても変更することができます。これらを用いると、出力は
10064 \begin_inset Formula $n.m$
10065 \end_inset
10066
10067 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
10068 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
10069 \emph on
10070 のみ
10071 \emph default
10072 が欲しい場合には、
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 定理(連番なし)
10078 \end_layout
10079
10080 \end_inset
10081
10082 モジュールを用います。
10083 \end_layout
10084
10085 \begin_layout Standard
10086 これらのモジュールは、AMSクラスで使用する
10087 \emph on
10088 必要はない
10089 \emph default
10090 ことに注意してください。
10091 \begin_inset Flex Code
10092 status collapsed
10093
10094 \begin_layout Plain Layout
10095 定理(AMS)
10096 \end_layout
10097
10098 \end_inset
10099
10100 モジュールや上述の他のモジュールは、他のクラス、たとえば
10101 \begin_inset Flex Code
10102 status collapsed
10103
10104 \begin_layout Plain Layout
10105 article
10106 \end_layout
10107
10108 \end_inset
10109
10110
10111 \begin_inset Flex Code
10112 status collapsed
10113
10114 \begin_layout Plain Layout
10115 report
10116 \end_layout
10117
10118 \end_inset
10119
10120
10121 \begin_inset Flex Code
10122 status collapsed
10123
10124 \begin_layout Plain Layout
10125 book (KOMA-script)
10126 \end_layout
10127
10128 \end_inset
10129
10130 などで問題なく使用することができます。
10131 \end_layout
10132
10133 \begin_layout Subsection
10134 これらのレイアウトが提供するもの
10135 \end_layout
10136
10137 \begin_layout Standard
10138 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-\SpecialCharNoPassThru LaTeX
10139 では、実のところ、「theorem」環境の派生型を際限なく定義していくこ
10140 とが可能です。しかし、AMSは、\SpecialCharNoPassThru LyX
10141 で利用可能になっている環境のみを使用することを推奨しています。
10142 \end_layout
10143
10144 \begin_layout Standard
10145 \begin_inset Flex Code
10146 status collapsed
10147
10148 \begin_layout Plain Layout
10149 article (AMS)
10150 \end_layout
10151
10152 \end_inset
10153
10154
10155 \begin_inset Flex Code
10156 status collapsed
10157
10158 \begin_layout Plain Layout
10159 book (AMS)
10160 \end_layout
10161
10162 \end_inset
10163
10164 には、\threehyphens
10165 \threehyphens
10166 \begin_inset space ~
10167 \end_inset
10168
10169
10170 \begin_inset Flex Noun
10171 status collapsed
10172
10173 \begin_layout Plain Layout
10174
10175 \end_layout
10176
10177 \end_inset
10178
10179
10180 \begin_inset Flex Noun
10181 status collapsed
10182
10183 \begin_layout Plain Layout
10184 書誌情報
10185 \end_layout
10186
10187 \end_inset
10188
10189
10190 \begin_inset Flex Noun
10191 status collapsed
10192
10193 \begin_layout Plain Layout
10194 タイトル
10195 \end_layout
10196
10197 \end_inset
10198
10199
10200 \begin_inset Flex Noun
10201 status collapsed
10202
10203 \begin_layout Plain Layout
10204 著者
10205 \end_layout
10206
10207 \end_inset
10208
10209
10210 \begin_inset Flex Noun
10211 status collapsed
10212
10213 \begin_layout Plain Layout
10214 日付
10215 \end_layout
10216
10217 \end_inset
10218
10219 のような標準環境の他に
10220 \begin_inset space ~
10221 \end_inset
10222
10223 \threehyphens
10224 \threehyphens
10225 \begin_inset space ~
10226 \end_inset
10227
10228 以下の環境があります。
10229 \end_layout
10230
10231 \begin_layout Description
10232 住所 これは著者の恒久的な住所です。
10233 \end_layout
10234
10235 \begin_layout Description
10236 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
10237 \end_layout
10238
10239 \begin_layout Description
10240 電子メール 著者の電子メールアドレス
10241 \end_layout
10242
10243 \begin_layout Description
10244 URL 著者のウェブアドレス。任意。
10245 \end_layout
10246
10247 \begin_layout Description
10248 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
10249 \end_layout
10250
10251 \begin_layout Description
10252 分野分類 
10253 \emph on
10254 Mathematical Reviews
10255 \emph default
10256 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
10257 す。
10258 \end_layout
10259
10260 \begin_layout Description
10261 謝辞
10262 \end_layout
10263
10264 \begin_layout Description
10265 献呈
10266 \end_layout
10267
10268 \begin_layout Description
10269 翻訳者
10270 \end_layout
10271
10272 \begin_layout Standard
10273 以下の環境は、
10274 \begin_inset Flex Code
10275 status collapsed
10276
10277 \begin_layout Plain Layout
10278 定理
10279 \end_layout
10280
10281 \end_inset
10282
10283 モジュールと
10284 \begin_inset Flex Code
10285 status collapsed
10286
10287 \begin_layout Plain Layout
10288 定理(AMS)
10289 \end_layout
10290
10291 \end_inset
10292
10293 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
10294 \begin_inset Flex Code
10295 status collapsed
10296
10297 \begin_layout Plain Layout
10298 定理(連番なし)
10299 \end_layout
10300
10301 \end_inset
10302
10303 モジュールでは、同環境の星付き版だけが提供されます。
10304 \end_layout
10305
10306 \begin_layout Theorem
10307 これは、通常、得られた主要な結果を叙述するのに使用されます。
10308 \end_layout
10309
10310 \begin_layout Corollary*
10311 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
10312 \end_layout
10313
10314 \begin_layout Lemma
10315 他の叙述を証明するために必要とされる、比較的小さな結果です。
10316 \end_layout
10317
10318 \begin_layout Proposition
10319 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
10320 \end_layout
10321
10322 \begin_layout Conjecture
10323 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
10324 \end_layout
10325
10326 \begin_layout Definition*
10327 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
10328 \end_layout
10329
10330 \begin_layout Problem
10331 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
10332 \end_layout
10333
10334 \begin_layout Exercise*
10335 この環境の説明を記述せよ。
10336 \end_layout
10337
10338 \begin_layout Note
10339 この環境もtheorem型、通常は重要性の低い所見に用いられます。
10340 \end_layout
10341
10342 \begin_layout Claim*
10343 より大きな結果の証明を与える途中で、しばしば用いられます。
10344 \end_layout
10345
10346 \begin_layout Case
10347 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
10348 \end_layout
10349
10350 \begin_layout Case
10351 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
10352 \end_layout
10353
10354 \begin_layout Proof
10355 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい\threehyphens
10356 \threehyphens
10357 たとえばケース環境など\threehyphens
10358 \threehyphens
10359 場合で、証了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
10360 \emph on
10361 ユーザーの手引き
10362 \emph default
10363
10364 \emph on
10365 環境を入れ子にする
10366 \emph default
10367 の節をご覧ください。
10368 \end_layout
10369
10370 \begin_layout Standard
10371 そして、以下は
10372 \begin_inset Flex Code
10373 status collapsed
10374
10375 \begin_layout Plain Layout
10376 定理(AMS拡張)
10377 \end_layout
10378
10379 \end_inset
10380
10381 で提供されるものです。
10382 \end_layout
10383
10384 \begin_layout Criterion*
10385 必要とされる条件です。
10386 \end_layout
10387
10388 \begin_layout Algorithm*
10389 使用する一般的手順です。
10390 \end_layout
10391
10392 \begin_layout Axiom*
10393 議論されている系内部で真と仮定される性質や命題です。
10394 \end_layout
10395
10396 \begin_layout Condition*
10397 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
10398 \end_layout
10399
10400 \begin_layout Note*
10401 注記と同様です。
10402 \end_layout
10403
10404 \begin_layout Notation*
10405 表記法の説明に用いられます。
10406 \end_layout
10407
10408 \begin_layout Summary
10409 本当に説明する必要がありますか?
10410 \end_layout
10411
10412 \begin_layout Acknowledgement*
10413 謝辞(acknowledgement)です。
10414 \end_layout
10415
10416 \begin_layout Conclusion*
10417 長い議論の終わりに時々用いられます。
10418 \end_layout
10419
10420 \begin_layout Fact
10421 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
10422 \end_layout
10423
10424 \begin_layout Standard
10425 さらに、AMSクラスは、AMS \SpecialCharNoPassThru LaTeX
10426 パッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能
10427 となっている必要があります。
10428 \end_layout
10429
10430 \begin_layout Section
10431 AGU各誌(
10432 \family sans
10433 aguplus)
10434 \end_layout
10435
10436 \begin_layout Standard
10437
10438 \noun on
10439 Martin Vermeer
10440 \noun default
10441
10442 \end_layout
10443
10444 \begin_layout Subsection
10445 概要
10446 \end_layout
10447
10448 \begin_layout Standard
10449 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
10450 AGUplusの両方(これらは
10451 \begin_inset Flex URL
10452 status collapsed
10453
10454 \begin_layout Plain Layout
10455
10456 http://publications.agu.org/files/2013/08/AGU-\SpecialCharNoPassThru LaTeX
10457 .zip
10458 \end_layout
10459
10460 \end_inset
10461
10462 にあります)が導入されていることが必要です。
10463 \end_layout
10464
10465 \begin_layout Subsection
10466 新しいスタイル
10467 \end_layout
10468
10469 \begin_layout Standard
10470
10471 \family sans
10472 段落
10473 \family default
10474 および
10475 \family sans
10476 段落*
10477 \family default
10478 は、定義し直されています。\SpecialCharNoPassThru LyX
10479 の画面では、依然として
10480 \family sans
10481 段落
10482 \family default
10483
10484 \family sans
10485 段落*
10486 \family default
10487 と表示されますが、AGUクラスにおける\SpecialCharNoPassThru LaTeX
10488 の対応物は、
10489 \family sans
10490 Subsubsubsection
10491 \family default
10492
10493 \family sans
10494 Subsubsubsection*
10495 \family default
10496 です。
10497 \end_layout
10498
10499 \begin_layout Standard
10500 新しく定義されたスタイルには、
10501 \family sans
10502 左ヘッダ
10503 \family default
10504
10505 \family sans
10506 右ヘッダ
10507 \family default
10508
10509 \family sans
10510 受理日
10511 \family default
10512
10513 \family sans
10514 改訂
10515 \family default
10516
10517 \family sans
10518 採択日
10519 \family default
10520
10521 \family sans
10522 CCC
10523 \family default
10524
10525 \family sans
10526 論文ID
10527 \family default
10528
10529 \family sans
10530 著者住所
10531 \family default
10532
10533 \family sans
10534 廃棄用コメント
10535 \family default
10536 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
10537 \end_layout
10538
10539 \begin_layout Standard
10540 おそらく、これはまだ恐ろしく不完全です。
10541 \end_layout
10542
10543 \begin_layout Subsection
10544 新しいフロート
10545 \end_layout
10546
10547 \begin_layout Standard
10548
10549 \family sans
10550 平面表(Planotable
10551 \family default
10552 )と
10553 \family sans
10554 挿絵
10555 \family default
10556 (Plate)が新しいフロートです。また、
10557 \family sans
10558 表キャプション
10559 \family default
10560 も付け加えられています。
10561 \end_layout
10562
10563 \begin_layout Subsection
10564 サポートされている学術誌
10565 \end_layout
10566
10567 \begin_layout Itemize
10568
10569 \emph on
10570 Journal of Geophysical Research
10571 \emph default
10572
10573 \family typewriter
10574 jgrga.layout
10575 \family default
10576  \threehyphens
10577  Martin Vermeer
10578 \end_layout
10579
10580 \begin_layout Standard
10581 ここにあなたの作ったものを加えてください。難しくはありません。
10582 \family typewriter
10583 jgrga.layout
10584 \family default
10585 と 
10586 \family typewriter
10587 aguplus.inc
10588 \family default
10589 を用例として見てください。
10590 \end_layout
10591
10592 \begin_layout Subsection
10593 バグと注意すべきこと
10594 \end_layout
10595
10596 \begin_layout Standard
10597 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
10598 \end_layout
10599
10600 \begin_layout Enumerate
10601
10602 \emph on
10603 babelを無効にしてください。
10604 \emph default
10605 これは、
10606 \family sans
10607 ツール\SpecialChar menuseparator
10608 設定
10609 \family default
10610 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
10611 \emph on
10612 選ばないで下さい
10613 \emph default
10614 )。
10615 \end_layout
10616
10617 \begin_layout Enumerate
10618 使用文書の追加オプションフィールドに
10619 \family typewriter
10620 jgrga
10621 \family default
10622 と入力してください(すみません、これはバグです)。
10623 \end_layout
10624
10625 \begin_layout Enumerate
10626 Bib\SpecialCharNoPassThru TeX
10627 差込枠の2番目のフィールドに
10628 \family sans
10629 agu
10630 \family default
10631 と入力して、書誌情報のスタイルに
10632 \family typewriter
10633 agu.bst
10634 \family default
10635 を使用していることを確認してください。標準スタイルはうまく動作しません。
10636 \end_layout
10637
10638 \begin_layout Section
10639 Broadway
10640 \end_layout
10641
10642 \begin_layout Standard
10643
10644 \noun on
10645 Garst Reese
10646 \noun default
10647
10648 \end_layout
10649
10650 \begin_layout Subsection
10651 はじめに
10652 \end_layout
10653
10654 \begin_layout Standard
10655 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
10656 \end_layout
10657
10658 \begin_layout Subsection
10659 特別な問題
10660 \end_layout
10661
10662 \begin_layout Standard
10663 Hollywoodと同様です。
10664 \end_layout
10665
10666 \begin_layout Subsection
10667 特別の機能
10668 \end_layout
10669
10670 \begin_layout Standard
10671
10672 \family sans
10673 話者
10674 \family default
10675 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
10676 \end_layout
10677
10678 \begin_layout Subsection
10679 用紙寸法と余白
10680 \end_layout
10681
10682 \begin_layout Standard
10683 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
10684 \end_layout
10685
10686 \begin_layout Subsection
10687 環境
10688 \end_layout
10689
10690 \begin_layout Standard
10691 以下の環境を使うことができます。右に記してある
10692 \begin_inset Flex Ruby
10693 status collapsed
10694
10695 \begin_layout Plain Layout
10696
10697 \begin_inset Argument post:1
10698 status collapsed
10699
10700 \begin_layout Plain Layout
10701 キー
10702 \end_layout
10703
10704 \end_inset
10705
10706
10707 \end_layout
10708
10709 \end_inset
10710
10711 割当ては、broadway.bindを使った場合のものです。
10712 \end_layout
10713
10714 \begin_layout Itemize
10715
10716 \family sans
10717 標準
10718 \begin_inset Newline newline
10719 \end_inset
10720
10721
10722 \family default
10723 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
10724 \end_layout
10725
10726 \begin_layout Itemize
10727
10728 \family sans
10729 ト書き
10730 \begin_inset space \hfill{}
10731 \end_inset
10732
10733 M-z n
10734 \begin_inset Newline newline
10735 \end_inset
10736
10737
10738 \family default
10739 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10740 \end_layout
10741
10742 \begin_layout Itemize
10743
10744 \family sans
10745
10746 \begin_inset space \hfill{}
10747 \end_inset
10748
10749 M-z a
10750 \begin_inset Newline newline
10751 \end_inset
10752
10753
10754 \family default
10755 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10756 \end_layout
10757
10758 \begin_layout Itemize
10759
10760 \family sans
10761 幕*
10762 \begin_inset space \hfill{}
10763 \end_inset
10764
10765 M-z S at
10766 \begin_inset Newline newline
10767 \end_inset
10768
10769
10770 \family default
10771 幕の副題です。単に中央揃えの文になります。
10772 \end_layout
10773
10774 \begin_layout Itemize
10775
10776 \family sans
10777 場面
10778 \begin_inset space \hfill{}
10779 \end_inset
10780
10781 M-z S-S
10782 \begin_inset Newline newline
10783 \end_inset
10784
10785
10786 \family default
10787 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10788 \end_layout
10789
10790 \begin_layout Itemize
10791
10792 \family sans
10793 幕開きに:
10794 \begin_inset space \hfill{}
10795 \end_inset
10796
10797 M-z S-R
10798 \begin_inset Newline newline
10799 \end_inset
10800
10801
10802 \family default
10803 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10804 \end_layout
10805
10806 \begin_layout Itemize
10807
10808 \family sans
10809 話者
10810 \begin_inset space \hfill{}
10811 \end_inset
10812
10813 M-z s
10814 \begin_inset Newline newline
10815 \end_inset
10816
10817
10818 \family default
10819 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10820 \end_layout
10821
10822 \begin_layout Itemize
10823
10824 \family sans
10825 括弧付き
10826 \begin_inset space \hfill{}
10827 \end_inset
10828
10829 M-z p
10830 \begin_inset Newline newline
10831 \end_inset
10832
10833
10834 \family default
10835 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10836 \family sans
10837 対話
10838 \family default
10839 の中だけで使用されます。 
10840 \end_layout
10841
10842 \begin_layout Itemize
10843
10844 \family sans
10845 対話
10846 \begin_inset space \hfill{}
10847 \end_inset
10848
10849 M-z d
10850 \begin_inset Newline newline
10851 \end_inset
10852
10853
10854 \family default
10855 話者の言う内容。
10856 \end_layout
10857
10858 \begin_layout Itemize
10859
10860 \family sans
10861 幕切れ
10862 \begin_inset space \hfill{}
10863 \end_inset
10864
10865 M-z S-C
10866 \begin_inset Newline newline
10867 \end_inset
10868
10869
10870 \family default
10871 幕が降ります。
10872 \end_layout
10873
10874 \begin_layout Itemize
10875
10876 \family sans
10877 タイトル
10878 \begin_inset space \hfill{}
10879 \end_inset
10880
10881 M-z S-T
10882 \end_layout
10883
10884 \begin_layout Itemize
10885
10886 \family sans
10887 著者
10888 \begin_inset space \hfill{}
10889 \end_inset
10890
10891 M-z S-A
10892 \end_layout
10893
10894 \begin_layout Itemize
10895
10896 \family sans
10897 右寄せ住所
10898 \begin_inset space \hfill{}
10899 \end_inset
10900
10901 M-z r
10902 \end_layout
10903
10904 \begin_layout Section
10905 Dinbrief
10906 \end_layout
10907
10908 \begin_layout Standard
10909 文書クラス
10910 \family sans
10911 dinbrief
10912 \family default
10913 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10914 \family typewriter
10915 .../lyx/share/templates
10916 \family default
10917 にあるので、それを土台として使用してください。
10918 \end_layout
10919
10920 \begin_layout Section
10921 EGS各誌
10922 \family sans
10923 (egs)
10924 \end_layout
10925
10926 \begin_layout Standard
10927
10928 \noun on
10929 Martin Vermeer
10930 \noun default
10931
10932 \end_layout
10933
10934 \begin_layout Subsection
10935 概要
10936 \end_layout
10937
10938 \begin_layout Standard
10939 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10940 \family typewriter
10941 egs.cls
10942 \family default
10943 は、EGSのウェブサイト
10944 \begin_inset Flex URL
10945 status collapsed
10946
10947 \begin_layout Plain Layout
10948
10949 http://www.copernicus.org/
10950 \end_layout
10951
10952 \end_inset
10953
10954 からダウンロードできます。
10955 \end_layout
10956
10957 \begin_layout Subsection
10958 新しいスタイル
10959 \end_layout
10960
10961 \begin_layout Standard
10962 新しいスタイルとして、
10963 \family sans
10964 右寄せ住所
10965 \family default
10966
10967 \family sans
10968 \SpecialCharNoPassThru LaTeX
10969 タイトル
10970 \family default
10971
10972 \family sans
10973 所属
10974 \family default
10975
10976 \family sans
10977 学術誌名
10978 \family default
10979
10980 \family sans
10981 原稿番号
10982 \family default
10983
10984 \family sans
10985 筆頭著者
10986 \family default
10987
10988 \family sans
10989 受理日
10990 \family default
10991
10992 \family sans
10993 採択日
10994 \family default
10995
10996 \family sans
10997 オフセット
10998 \family default
10999 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
11000 \family typewriter
11001 std*.inc
11002 \family default
11003 ファイルを読み込む形に変えた方が便利になると思われます。
11004 \end_layout
11005
11006 \begin_layout Section
11007 Elsevier各誌
11008 \end_layout
11009
11010 \begin_layout Standard
11011 \SpecialCharNoPassThru LyX
11012 ひな型ファイルの
11013 \family typewriter
11014 elsarticle.lyx
11015 \family default
11016 を参照してください。必要な情報は全てそこにあります。
11017 \end_layout
11018
11019 \begin_layout Section
11020 Foils (別名Foil\SpecialCharNoPassThru TeX
11021 )
11022 \begin_inset CommandInset label
11023 LatexCommand label
11024 name "sec:foiltex"
11025
11026 \end_inset
11027
11028
11029 \end_layout
11030
11031 \begin_layout Standard
11032
11033 \noun on
11034 Allan Rae
11035 \noun default
11036
11037 \end_layout
11038
11039 \begin_layout Subsection
11040 はじめに
11041 \end_layout
11042
11043 \begin_layout Standard
11044 本節では、プレゼンテーション用のスライドを作るための、\SpecialCharNoPassThru LyX
11045 の使用法を解説します。スライドを作ることのできる文書クラスには、slides・Foil\SpecialCharNoPassThru TeX
11046 ・sem
11047 inar・beamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
11048 \end_layout
11049
11050 \begin_layout Standard
11051 誤解のないように、わかりやすく明確に、もう一度言っておきます。
11052 \end_layout
11053
11054 \begin_layout Standard
11055 \begin_inset VSpace bigskip
11056 \end_inset
11057
11058
11059 \end_layout
11060
11061 \begin_layout Standard
11062 \align center
11063
11064 \size large
11065 本節は「
11066 \family sans
11067 presentation (FoilT
11068 \size default
11069
11070 \begin_inset ERT
11071 status collapsed
11072
11073 \begin_layout Plain Layout
11074
11075 {}
11076 \end_layout
11077
11078 \end_inset
11079
11080
11081 \size large
11082 eX)
11083 \family default
11084 」クラス
11085 \emph on
11086 のみの
11087 \emph default
11088 解説を行います。
11089 \end_layout
11090
11091 \begin_layout Standard
11092 \begin_inset VSpace bigskip
11093 \end_inset
11094
11095
11096 \end_layout
11097
11098 \begin_layout Standard
11099
11100 \family sans
11101 transparencies (slides)
11102 \family default
11103 」の解説をお探しであれば、第
11104 \begin_inset CommandInset ref
11105 LatexCommand ref
11106 reference "sec:slitex"
11107
11108 \end_inset
11109
11110 節をご覧ください。お使いのコンピュータに
11111 \family sans
11112 foils
11113 \family default
11114 クラス(
11115 \family sans
11116 presentation (FoilT
11117 \begin_inset ERT
11118 status collapsed
11119
11120 \begin_layout Plain Layout
11121
11122 {}
11123 \end_layout
11124
11125 \end_inset
11126
11127 eX)
11128 \family default
11129 )が導入されていなければ、
11130 \family sans
11131 foils
11132 \family default
11133 ほど良くはありませんが、おそらく
11134 \family sans
11135 slides
11136 \family default
11137 クラスを使わざるをえないでしょう。
11138 \end_layout
11139
11140 \begin_layout Standard
11141
11142 \family sans
11143 foils
11144 \family default
11145 クラスは、\SpecialCharNoPassThru LaTeX2e
11146 の一部として含まれている\SpecialCharNoPassThru LaTeX
11147 クラスファイル
11148 \family sans
11149 foils.cls
11150 \family default
11151 の第2.1版とともに使われるように設計されています。
11152 \end_layout
11153
11154 \begin_layout Subsection
11155 最初の一歩
11156 \end_layout
11157
11158 \begin_layout Standard
11159 いうまでもなく、この文書クラスを使うには、
11160 \family sans
11161 文書\SpecialChar menuseparator
11162 設定\SpecialChar menuseparator
11163 文書クラス
11164 \family default
11165 メニューの
11166 \family sans
11167 文書クラス
11168 \family default
11169 ドロップダウンで「
11170 \family sans
11171 presentation (FoilT
11172 \begin_inset ERT
11173 status collapsed
11174
11175 \begin_layout Plain Layout
11176
11177 {}
11178 \end_layout
11179
11180 \end_inset
11181
11182 eX)
11183 \family default
11184 」を選択する必要があります。また、
11185 \family sans
11186 文書設定
11187 \family default
11188 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
11189 \end_layout
11190
11191 \begin_layout Itemize
11192
11193 \family sans
11194 文書設定
11195 \family default
11196 ダイアログ中の、
11197 \family sans
11198 両面文書
11199 \family default
11200 オプションと
11201 \family sans
11202 二段組文書
11203 \family default
11204 オプションは変更しないでください。これらは 
11205 \family sans
11206 foils
11207 \family default
11208 クラスでは無視されます。
11209 \end_layout
11210
11211 \begin_layout Itemize
11212 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
11213 \end_layout
11214
11215 \begin_layout Itemize
11216 既定のフォントは
11217 \family sans
11218 sans
11219 \family default
11220  
11221 \family sans
11222 serif
11223 \family default
11224 ですが、数式ではすべて、通常のローマン体が使用されます。
11225 \end_layout
11226
11227 \begin_layout Itemize
11228 Foil\SpecialCharNoPassThru TeX
11229 は、35
11230 \begin_inset space \thinspace{}
11231 \end_inset
11232
11233 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
11234 \end_layout
11235
11236 \begin_layout Itemize
11237
11238 \family sans
11239 フロートの配置
11240 \family default
11241 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
11242 \end_layout
11243
11244 \begin_layout Itemize
11245 このクラスの
11246 \family sans
11247 ページレイアウト
11248 \family default
11249 の設定は、若干異なった挙動を示します。Foil\SpecialCharNoPassThru TeX
11250 では、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
11251 \begin_inset CommandInset ref
11252 LatexCommand ref
11253 reference "sec:foilfoot"
11254
11255 \end_inset
11256
11257 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
11258 \emph on
11259 つねに
11260 \emph default
11261 付けられず、(ロゴが定義されていれば)ロゴは、
11262 \emph on
11263 つねに
11264 \emph default
11265 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
11266 \family default
11267 \begin_inset Separator parbreak
11268 \end_inset
11269
11270 \end_layout
11271
11272 \begin_deeper
11273 \begin_layout Labeling
11274 \labelwidthstring MMMMMMM
11275
11276 \family sans
11277 \series bold
11278 empty
11279 \family default
11280 \series default
11281  最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
11282 \end_layout
11283
11284 \begin_layout Labeling
11285 \labelwidthstring MMMMMMM
11286
11287 \family sans
11288 \series bold
11289 plain
11290 \family default
11291 \series default
11292  最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
11293 \end_layout
11294
11295 \begin_layout Labeling
11296 \labelwidthstring MMMMMMM
11297
11298 \series bold
11299 foilheadings
11300 \series default
11301  ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
11302 \end_layout
11303
11304 \begin_layout Labeling
11305 \labelwidthstring MMMMMMM
11306
11307 \series bold
11308 fancy
11309 \series default
11310  これは
11311 \family sans
11312 fancyheadings
11313 \family default
11314 パッケージを使えるようにします。ただし、Foil\SpecialCharNoPassThru TeX
11315 パッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています
11316
11317 \end_layout
11318
11319 \end_deeper
11320 \begin_layout Subsubsection
11321 任意設定クラスオプション
11322 \end_layout
11323
11324 \begin_layout Standard
11325 以下のオプションは
11326 \family sans
11327 文書設定
11328 \family default
11329 ダイアログの任意設定クラスオプションボックスで使うことができます。
11330 \end_layout
11331
11332 \begin_layout Labeling
11333 \labelwidthstring MMMMMMx
11334
11335 \series bold
11336 35mmSlide
11337 \series default
11338  これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
11339 \begin_inset space \space{}
11340 \end_inset
11341
11342 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
11343 \end_layout
11344
11345 \begin_layout Labeling
11346 \labelwidthstring MMMMMMx
11347
11348 \series bold
11349 headrule
11350 \series default
11351  タイトルページを除くすべてのページのへッダの下に罫線を入れます。
11352 \end_layout
11353
11354 \begin_layout Labeling
11355 \labelwidthstring MMMMMMx
11356
11357 \series bold
11358 footrule
11359 \series default
11360  タイトルページを除くすべてのページのフッタの上に罫線を入れます。
11361 \end_layout
11362
11363 \begin_layout Labeling
11364 \labelwidthstring MMMMMMx
11365
11366 \series bold
11367 dvips
11368 \series default
11369  これは、新規
11370 \family sans
11371 foils
11372 \family default
11373 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoil\SpecialCharNoPassThru TeX
11374 に指示します。
11375 \end_layout
11376
11377 \begin_layout Labeling
11378 \labelwidthstring MMMMMMx
11379
11380 \series bold
11381 landscape
11382 \series default
11383  このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
11384 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
11385 \family sans
11386 Foilhead
11387 \family default
11388 環境と
11389 \family sans
11390 Rotatefoilhead
11391 \family default
11392 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
11393 \end_layout
11394
11395 \begin_layout Labeling
11396 \labelwidthstring MMMMMMx
11397
11398 \series bold
11399 leqno
11400 \series default
11401  数式番号を左側に付けます。
11402 \end_layout
11403
11404 \begin_layout Labeling
11405 \labelwidthstring MMMMMMx
11406
11407 \series bold
11408 fleqn
11409 \series default
11410  数式を左揃えにします。
11411 \end_layout
11412
11413 \begin_layout Subsection
11414 サポートされる環境
11415 \end_layout
11416
11417 \begin_layout Standard
11418 他のクラスで標準的にサポートされている環境は、
11419 \family sans
11420 foils
11421 \family default
11422 クラスでもサポートされています。それ以外に、Foil\SpecialCharNoPassThru TeX
11423 が提供している環境と、\SpecialCharNoPassThru LyX
11424 が付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
11425 \end_layout
11426
11427 \begin_layout Standard
11428
11429 \family sans
11430 \begin_inset Flex Multiple Columns
11431 status open
11432
11433 \begin_layout Itemize
11434
11435 \family sans
11436 標準
11437 \end_layout
11438
11439 \begin_layout Itemize
11440
11441 \family sans
11442 箇条書き(記号)
11443 \end_layout
11444
11445 \begin_layout Itemize
11446
11447 \family sans
11448 箇条書き(連番)
11449 \end_layout
11450
11451 \begin_layout Itemize
11452
11453 \family sans
11454 箇条書き(記述)
11455 \end_layout
11456
11457 \begin_layout Itemize
11458
11459 \family sans
11460 箇条書き(リスト)
11461 \end_layout
11462
11463 \begin_layout Itemize
11464
11465 \family sans
11466 \SpecialCharNoPassThru LyX
11467 コード
11468 \end_layout
11469
11470 \begin_layout Itemize
11471
11472 \family sans
11473 詩句
11474 \end_layout
11475
11476 \begin_layout Itemize
11477
11478 \family sans
11479 引用(字下げあり)
11480 \end_layout
11481
11482 \begin_layout Itemize
11483
11484 \family sans
11485 引用(字下げなし)
11486 \end_layout
11487
11488 \begin_layout Itemize
11489
11490 \family sans
11491 タイトル
11492 \end_layout
11493
11494 \begin_layout Itemize
11495
11496 \family sans
11497 著者
11498 \end_layout
11499
11500 \begin_layout Itemize
11501
11502 \family sans
11503 日付
11504 \end_layout
11505
11506 \begin_layout Itemize
11507
11508 \family sans
11509 概要
11510 \end_layout
11511
11512 \begin_layout Itemize
11513
11514 \family sans
11515 書誌情報
11516 \end_layout
11517
11518 \begin_layout Itemize
11519
11520 \family sans
11521 住所
11522 \end_layout
11523
11524 \begin_layout Itemize
11525
11526 \family sans
11527 右寄せ住所
11528 \end_layout
11529
11530 \begin_layout Itemize
11531
11532 \family sans
11533 キャプション
11534 \end_layout
11535
11536 \begin_layout Itemize
11537
11538 \family sans
11539 コメント
11540 \end_layout
11541
11542 \end_inset
11543
11544
11545 \end_layout
11546
11547 \begin_layout Standard
11548 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
11549 \family sans
11550 Foil
11551 \family default
11552 \SpecialCharNoPassThru TeX
11553 は新しいスライドを始める以下のようなコマンドを備えています。
11554 \end_layout
11555
11556 \begin_layout Itemize
11557
11558 \family sans
11559 スライドタイトル(Foilhead)
11560 \end_layout
11561
11562 \begin_layout Itemize
11563
11564 \family sans
11565 横置きスライドタイトル(Rotatefoilhead)
11566 \end_layout
11567
11568 \begin_layout Standard
11569 \SpecialCharNoPassThru LyX
11570 は、以下のような、これらを若干修正した環境も用意しています。
11571 \end_layout
11572
11573 \begin_layout Itemize
11574
11575 \family sans
11576 スライドタイトル(小)(ShortFoilhead)
11577 \end_layout
11578
11579 \begin_layout Itemize
11580
11581 \family sans
11582 横置きスライドタイトル(小)(ShortRotatefoilhead)
11583 \end_layout
11584
11585 \begin_layout Standard
11586 これらの違いは次節で説明します。
11587 \end_layout
11588
11589 \begin_layout Standard
11590 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
11591 \family sans
11592 Foil
11593 \family default
11594 \SpecialCharNoPassThru TeX
11595 はそれらを説明するのに便利な環境を幅広く用意しています。
11596 \end_layout
11597
11598 \begin_layout Standard
11599
11600 \family sans
11601 \begin_inset Flex Multiple Columns
11602 status open
11603
11604 \begin_layout Itemize
11605
11606 \family sans
11607 定理
11608 \end_layout
11609
11610 \begin_layout Itemize
11611
11612 \family sans
11613 補題
11614 \end_layout
11615
11616 \begin_layout Itemize
11617
11618 \family sans
11619
11620 \end_layout
11621
11622 \begin_layout Itemize
11623
11624 \family sans
11625 命題
11626 \end_layout
11627
11628 \begin_layout Itemize
11629
11630 \family sans
11631 定義
11632 \end_layout
11633
11634 \begin_layout Itemize
11635
11636 \family sans
11637 証明
11638 \end_layout
11639
11640 \begin_layout Itemize
11641
11642 \family sans
11643 定理*
11644 \end_layout
11645
11646 \begin_layout Itemize
11647
11648 \family sans
11649 補題*
11650 \end_layout
11651
11652 \begin_layout Itemize
11653
11654 \family sans
11655 系*
11656 \end_layout
11657
11658 \begin_layout Itemize
11659
11660 \family sans
11661 命題*
11662 \end_layout
11663
11664 \begin_layout Itemize
11665
11666 \family sans
11667 定義*
11668 \end_layout
11669
11670 \end_inset
11671
11672
11673 \end_layout
11674
11675 \begin_layout Standard
11676 星付き版は連番が振られず、星なし版は連番が振られます。他に、\SpecialCharNoPassThru LyX
11677 で追加された以下の2つの箇条書き環境があります。
11678 \end_layout
11679
11680 \begin_layout Itemize
11681
11682 \family sans
11683 箇条書き(チック)
11684 \end_layout
11685
11686 \begin_layout Itemize
11687
11688 \family sans
11689 箇条書き(クロス)
11690 \end_layout
11691
11692 \begin_layout Standard
11693 Foil\SpecialCharNoPassThru TeX
11694 には、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれら
11695 の設定を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
11696 \end_layout
11697
11698 \begin_layout Standard
11699 この目的のためには、以下のコマンドスタイルがあります(
11700 \shape smallcaps
11701 Martin Vermeer)。
11702 \end_layout
11703
11704 \begin_layout Standard
11705 \begin_inset Flex Multiple Columns
11706 status open
11707
11708 \begin_layout Itemize
11709
11710 \family sans
11711 グラフィックスロゴ
11712 \end_layout
11713
11714 \begin_layout Itemize
11715
11716 \family sans
11717 配布制限
11718 \end_layout
11719
11720 \begin_layout Itemize
11721
11722 \family sans
11723 右フッタ
11724 \end_layout
11725
11726 \begin_layout Itemize
11727
11728 \family sans
11729 右ヘッダ
11730 \end_layout
11731
11732 \begin_layout Itemize
11733
11734 \family sans
11735 左ヘッダ
11736 \family default
11737 \begin_inset Separator parbreak
11738 \end_inset
11739
11740 \end_layout
11741
11742 \begin_deeper
11743 \begin_layout Plain Layout
11744 \begin_inset space ~
11745 \end_inset
11746
11747
11748 \end_layout
11749
11750 \end_deeper
11751 \end_inset
11752
11753
11754 \end_layout
11755
11756 \begin_layout Standard
11757 Foil\SpecialCharNoPassThru TeX
11758 が提供しているコマンドで、\SpecialCharNoPassThru LyX
11759 が直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11760 \begin_inset CommandInset ref
11761 LatexCommand ref
11762 reference "sec:unsuppfoils"
11763
11764 \end_inset
11765
11766 節で行います。
11767 \end_layout
11768
11769 \begin_layout Subsection
11770 スライドの組を作る
11771 \end_layout
11772
11773 \begin_layout Standard
11774 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、\SpecialCharNoPassThru LyX
11775
11776 \family typewriter
11777 examples
11778 \family default
11779 フォルダにある
11780 \family typewriter
11781 Foils.lyx
11782 \family default
11783 ファイルをご覧ください。
11784 \end_layout
11785
11786 \begin_layout Subsubsection
11787 タイトルページを作る
11788 \end_layout
11789
11790 \begin_layout Standard
11791
11792 \family sans
11793 タイトル
11794 \family default
11795
11796 \family sans
11797 著者
11798 \family default
11799
11800 \family sans
11801 日付
11802 \family default
11803
11804 \family sans
11805 概要
11806 \family default
11807 環境のある他のクラスとは異なり、
11808 \family sans
11809 foils
11810 \family default
11811 は独立したページにタイトルを作成します。
11812 \family sans
11813 日付
11814 \family default
11815 環境を使用しなかった場合には、\SpecialCharNoPassThru LaTeX
11816 は(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11817 \end_layout
11818
11819 \begin_layout Subsubsection
11820 新しいスライドを開始する
11821 \end_layout
11822
11823 \begin_layout Standard
11824 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11825 \family sans
11826 スライドタイトル(Foilhead)
11827 \family default
11828
11829 \family sans
11830 スライドタイトル(小)(ShortFoilhead)
11831 \family default
11832 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11833 \end_layout
11834
11835 \begin_layout Standard
11836 横向きのスライドは、
11837 \family sans
11838 横向きスライドタイトル(Rotatefoilhead)
11839 \family default
11840 か横向きスライドタイトル(小)(
11841 \family sans
11842 ShortRotatefoilhead)
11843 \family default
11844 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11845 (約1.27cm)小さくなります。
11846 \end_layout
11847
11848 \begin_layout Standard
11849 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11850 \family typewriter
11851 dvips
11852 \family default
11853 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11854 \family typewriter
11855 dvips
11856 \family default
11857 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11858 \end_layout
11859
11860 \begin_layout Subsubsection
11861 定理・補題・証明など
11862 \end_layout
11863
11864 \begin_layout Standard
11865 \SpecialCharNoPassThru LyX
11866 中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いて
11867 も、2つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章
11868 を置くか、あるいは二つの間に「
11869 \family typewriter
11870 %
11871 \family default
11872 」だけから成る\SpecialCharNoPassThru LaTeX
11873 環境を置くことです。これによって、\SpecialCharNoPassThru LyX
11874 は2つの別々の環境を生成するように強制され、正しい\SpecialCharNoPassThru LaTeX
11875 出力を得ることができます。\SpecialCharNoPassThru LyX
11876 頒布
11877 版に含まれる用例ファイルに例があります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11878 \end_layout
11879
11880 \begin_layout Subsubsection
11881 箇条書き
11882 \end_layout
11883
11884 \begin_layout Standard
11885 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11886 他の箇条書き環境について詳しく知りたい場合には、
11887 \emph on
11888 ユーザーの手引き
11889 \emph default
11890 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11891 \begin_inset CommandInset ref
11892 LatexCommand ref
11893 reference "sec:ブリット"
11894
11895 \end_inset
11896
11897 節の
11898 \family sans
11899 箇条書き(記号)ブリットの指定
11900 \family default
11901 の節も、読まれることが望ましいでしょう。
11902 \end_layout
11903
11904 \begin_layout Standard
11905
11906 \family sans
11907 箇条書き(チック)
11908 \family default
11909
11910 \family sans
11911 箇条書き(クロス)
11912 \family default
11913 の二つの新しい様式は、チェック印や
11914 \begin_inset Formula $\times$
11915 \end_inset
11916
11917 印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これらの箇条書きは、
11918 \family sans
11919 箇条書き(記号)
11920 \family default
11921 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11922 \family typewriter
11923 psnfss
11924 \family default
11925 パッケージが導入済であることを要求します。
11926 \end_layout
11927
11928 \begin_layout Subsubsection
11929 図と表
11930 \end_layout
11931
11932 \begin_layout Standard
11933 Foil\SpecialCharNoPassThru TeX
11934 では、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないように
11935 なっています。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11936 \end_layout
11937
11938 \begin_layout Subsubsection
11939 ページヘッダおよびページフッタ
11940 \begin_inset CommandInset label
11941 LatexCommand label
11942 name "sec:foilfoot"
11943
11944 \end_inset
11945
11946
11947 \end_layout
11948
11949 \begin_layout Standard
11950
11951 \family sans
11952 グラフィックスロゴ
11953 \family default
11954
11955 \family sans
11956 配布制限
11957 \family default
11958 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by 
11959 \family sans
11960 Foil
11961 \family default
11962 \SpecialCharNoPassThru TeX
11963 -」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11964 \end_layout
11965
11966 \begin_layout Standard
11967 スライドの残り三隅には、
11968 \family sans
11969 右フッタ
11970 \family default
11971 (既定ではページ番号)・
11972 \family sans
11973 右ヘッダ
11974 \family default
11975 (右上)・
11976 \family sans
11977 左ヘッダ
11978 \family default
11979 (左上)を使って文字を入れることができます。
11980 \end_layout
11981
11982 \begin_layout Subsection
11983 サポートされない 
11984 \family sans
11985 Foil
11986 \family default
11987 \SpecialCharNoPassThru TeX
11988 機能
11989 \begin_inset CommandInset label
11990 LatexCommand label
11991 name "sec:unsuppfoils"
11992
11993 \end_inset
11994
11995
11996 \end_layout
11997
11998 \begin_layout Standard
11999 以下で言及されているコマンドは、
12000 \family sans
12001 \SpecialCharNoPassThru LaTeX
12002 \family default
12003 環境内で設定されるか、他の環境中の
12004 \family sans
12005 \SpecialCharNoPassThru TeX
12006 コード
12007 \family default
12008 として設定される必要があります。
12009 \end_layout
12010
12011 \begin_layout Subsubsection
12012 長さ
12013 \end_layout
12014
12015 \begin_layout Standard
12016 長さは、すべて
12017 \family typewriter
12018
12019 \backslash
12020 setlength{
12021 \family default
12022 \emph on
12023 長さ名
12024 \family typewriter
12025 \emph default
12026 }{
12027 \family default
12028 \emph on
12029 新規長さ
12030 \family typewriter
12031 \emph default
12032 }
12033 \family default
12034 コマンドで調節されます。ここで
12035 \emph on
12036 長さ名
12037 \emph default
12038 は、変更したい長さに付けられている名前で置き換え、
12039 \emph on
12040 新規長さ
12041 \emph default
12042 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
12043 \family typewriter
12044
12045 \backslash
12046 textwidth
12047 \family default
12048 のように文書比あるいはフォント基準の長さで指定する必要があります。
12049 \end_layout
12050
12051 \begin_layout Standard
12052
12053 \family typewriter
12054
12055 \backslash
12056 foilheadskip
12057 \family default
12058 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
12059 \begin_inset space \space{}
12060 \end_inset
12061
12062 inだけスライド本文に近づけるには、プリアンブルに
12063 \family typewriter
12064
12065 \backslash
12066 setlength{
12067 \backslash
12068 foilheadskip}{-0.5in}
12069 \family default
12070 と書き込みます。
12071 \end_layout
12072
12073 \begin_layout Standard
12074 フロート周囲の余白は、以下の長さを設定することで調整することができます。
12075 \end_layout
12076
12077 \begin_layout Labeling
12078 \labelwidthstring MMMMMMMMMMM
12079
12080 \family typewriter
12081
12082 \backslash
12083 abovefloatskip
12084 \family default
12085  本文とフロート上辺との間隔
12086 \end_layout
12087
12088 \begin_layout Labeling
12089 \labelwidthstring MMMMMMMMMMM
12090
12091 \family typewriter
12092
12093 \backslash
12094 abovecaptionskip
12095 \family default
12096  フロートとキャプションとの間隔
12097 \end_layout
12098
12099 \begin_layout Labeling
12100 \labelwidthstring MMMMMMMMMMM
12101
12102 \family typewriter
12103
12104 \backslash
12105 belowcaptionskip
12106 \family default
12107  キャプションとそれに続く本文との間隔
12108 \end_layout
12109
12110 \begin_layout Labeling
12111 \labelwidthstring MMMMMMMMMMM
12112
12113 \family typewriter
12114
12115 \backslash
12116 captionwidth
12117 \family default
12118  この長さを調整することでキャプションを、周囲の本文より短くすることができます。
12119 \family typewriter
12120
12121 \backslash
12122 textwidth
12123 \family default
12124 に対する相対的な長さで調整するのが最も良いでしょう。
12125 \end_layout
12126
12127 \begin_layout Standard
12128 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
12129 \end_layout
12130
12131 \begin_layout Labeling
12132 \labelwidthstring MMMMMMMMMMM
12133
12134 \family typewriter
12135
12136 \backslash
12137 abovetitleskip
12138 \family default
12139  へッダとタイトルとの間隔
12140 \end_layout
12141
12142 \begin_layout Labeling
12143 \labelwidthstring MMMMMMMMMMM
12144
12145 \family typewriter
12146
12147 \backslash
12148 titleauthorskip
12149 \family default
12150  
12151 \family sans
12152 タイトル
12153 \family default
12154 環境と
12155 \family sans
12156 著者
12157 \family default
12158 環境との間隔
12159 \end_layout
12160
12161 \begin_layout Labeling
12162 \labelwidthstring MMMMMMMMMMM
12163
12164 \family typewriter
12165
12166 \backslash
12167 authorauthorskip
12168 \family default
12169  著者が複数いる場合の
12170 \family sans
12171 著者
12172 \family default
12173 行の間隔
12174 \end_layout
12175
12176 \begin_layout Labeling
12177 \labelwidthstring MMMMMMMMMMM
12178
12179 \family typewriter
12180
12181 \backslash
12182 authordateskip
12183 \family default
12184  
12185 \family sans
12186 著者
12187 \family default
12188
12189 \family sans
12190 日付
12191 \family default
12192 との間隔
12193 \end_layout
12194
12195 \begin_layout Labeling
12196 \labelwidthstring MMMMMMMMMMM
12197
12198 \family typewriter
12199
12200 \backslash
12201 dateabstractskip
12202 \family default
12203  
12204 \family sans
12205 日付
12206 \family default
12207
12208 \family sans
12209 概要
12210 \family default
12211 との間隔
12212 \end_layout
12213
12214 \begin_layout Standard
12215 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
12216 \family typewriter
12217
12218 \backslash
12219 zerolistvertdimens
12220 \family default
12221 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
12222 \family typewriter
12223
12224 \backslash
12225 setlength
12226 \family default
12227 を使う必要がないことに注意してください。
12228 \end_layout
12229
12230 \begin_layout Subsubsection
12231 へッダとフッタ
12232 \end_layout
12233
12234 \begin_layout Standard
12235
12236 \family typewriter
12237
12238 \backslash
12239 LogoOn
12240 \family default
12241 および
12242 \family typewriter
12243
12244 \backslash
12245 LogoOff
12246 \family default
12247 は、
12248 \family typewriter
12249 MyLogo
12250 \family default
12251 で定義したロゴを特定のページに入れるかどうかを制御します。
12252 \family typewriter
12253
12254 \backslash
12255 LogoOff
12256 \family default
12257 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
12258 \family typewriter
12259
12260 \backslash
12261 LogoOff
12262 \family default
12263 を置き、次のスライドタイトルの直後に直接
12264 \family typewriter
12265
12266 \backslash
12267 LogoOn
12268 \family default
12269 を置いてください。
12270 \end_layout
12271
12272 \begin_layout Standard
12273
12274 \family sans
12275 文書レイアウト
12276 \family default
12277 ダイアログで
12278 \family sans
12279 fancy
12280 \family default
12281 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
12282 \family typewriter
12283
12284 \backslash
12285 let
12286 \backslash
12287 headwidth
12288 \backslash
12289 textwidth
12290 \family default
12291 を加える必要があるでしょう。これは、
12292 \family sans
12293 fancyheadings
12294 \family default
12295 パッケージが提供するページレイアウトと
12296 \family sans
12297 foils
12298 \family default
12299 クラスの提供するページレイアウトの間に衝突が発生するためです。
12300 \end_layout
12301
12302 \begin_layout Section
12303 Hollywood(Hollywoodスペック・スクリプト)
12304 \end_layout
12305
12306 \begin_layout Standard
12307
12308 \noun on
12309 Garst Reese
12310 \noun default
12311
12312 \end_layout
12313
12314 \begin_layout Subsection
12315 はじめに
12316 \end_layout
12317
12318 \begin_layout Standard
12319 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
12320 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
12321 urier 12
12322 \begin_inset space \space{}
12323 \end_inset
12324
12325 ptフォントを使わなければならず、イタリック体は用いてはいけません。
12326 \end_layout
12327
12328 \begin_layout Subsection
12329 特別な問題
12330 \end_layout
12331
12332 \begin_layout Standard
12333 話者の行は、文の途中で改行することは
12334 \emph on
12335 決して
12336 \emph default
12337 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
12338 \family sans
12339 話者
12340 \family default
12341 名を再度書き、その後に(Cont'd)と加えます。
12342 \end_layout
12343
12344 \begin_layout Subsection
12345 特別な機能
12346 \end_layout
12347
12348 \begin_layout Standard
12349
12350 \family sans
12351 話者
12352 \family default
12353 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
12354 きに話者名を挿入するのにも使用することができます。
12355 \end_layout
12356
12357 \begin_layout Subsection
12358 用紙寸法と余白
12359 \end_layout
12360
12361 \begin_layout Standard
12362 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
12363 \end_layout
12364
12365 \begin_layout Subsection
12366 環境
12367 \end_layout
12368
12369 \begin_layout Standard
12370 以下の環境が利用可能です。右に示されている
12371 \begin_inset Flex Ruby
12372 status collapsed
12373
12374 \begin_layout Plain Layout
12375
12376 \begin_inset Argument post:1
12377 status collapsed
12378
12379 \begin_layout Plain Layout
12380 キー
12381 \end_layout
12382
12383 \end_inset
12384
12385
12386 \end_layout
12387
12388 \end_inset
12389
12390 割当てを使用するには、hollywood.bindを使用してください。
12391 \end_layout
12392
12393 \begin_layout Itemize
12394
12395 \family sans
12396 一般
12397 \begin_inset Newline newline
12398 \end_inset
12399
12400
12401 \family default
12402 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
12403 \end_layout
12404
12405 \begin_layout Itemize
12406 フェイドイン:
12407 \begin_inset space \hfill{}
12408 \end_inset
12409
12410
12411 \family sans
12412 M-z S-I
12413 \family default
12414
12415 \begin_inset Newline newline
12416 \end_inset
12417
12418 通常、この後には「Sallyは目を覚ますと」のように続きます。
12419 \end_layout
12420
12421 \begin_layout Itemize
12422
12423 \family sans
12424 屋内:
12425 \begin_inset space \hfill{}
12426 \end_inset
12427
12428 M-z i
12429 \begin_inset Newline newline
12430 \end_inset
12431
12432
12433 \family default
12434 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
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 e
12446 \begin_inset Newline newline
12447 \end_inset
12448
12449
12450 \family default
12451 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
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 s
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 p
12478 \begin_inset Newline newline
12479 \end_inset
12480
12481 話者
12482 \family default
12483 への指示。自動的に括弧()が挿入されますが、\SpecialCharNoPassThru LyX
12484 上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
12485 \end_layout
12486
12487 \begin_layout Itemize
12488
12489 \family sans
12490 対話
12491 \begin_inset space \hfill{}
12492 \end_inset
12493
12494 M-z d
12495 \begin_inset Newline newline
12496 \end_inset
12497
12498 話者
12499 \family default
12500 が話す内容。
12501 \end_layout
12502
12503 \begin_layout Itemize
12504
12505 \family sans
12506 画面遷移
12507 \begin_inset space \hfill{}
12508 \end_inset
12509
12510 M-z t
12511 \begin_inset Newline newline
12512 \end_inset
12513
12514
12515 \family default
12516 カメラの動きの指示。例:CUT TO:。
12517 \end_layout
12518
12519 \begin_layout Itemize
12520
12521 \family sans
12522 フェイドアウト:
12523 \begin_inset space \hfill{}
12524 \end_inset
12525
12526 M-z S-I
12527 \end_layout
12528
12529 \begin_layout Itemize
12530
12531 \family sans
12532 著者
12533 \begin_inset space \hfill{}
12534 \end_inset
12535
12536 M-z S-A
12537 \end_layout
12538
12539 \begin_layout Itemize
12540
12541 \family sans
12542 タイトル
12543 \begin_inset space \hfill{}
12544 \end_inset
12545
12546 M-z S-T
12547 \end_layout
12548
12549 \begin_layout Itemize
12550
12551 \family sans
12552 右寄せ住所
12553 \begin_inset space \hfill{}
12554 \end_inset
12555
12556 M-z r
12557 \end_layout
12558
12559 \begin_layout Subsection
12560 脚本で使われる特別な用語
12561 \end_layout
12562
12563 \begin_layout Itemize
12564 (O.S) — off screen
12565 \end_layout
12566
12567 \begin_layout Itemize
12568 (V.0) — voice over
12569 \end_layout
12570
12571 \begin_layout Itemize
12572 b.g.
12573  — background
12574 \end_layout
12575
12576 \begin_layout Itemize
12577 C.U.
12578  — close-up
12579 \end_layout
12580
12581 \begin_layout Itemize
12582 PAN — camera movement
12583 \end_layout
12584
12585 \begin_layout Itemize
12586 INSERT — cut to close-up of
12587 \end_layout
12588
12589 \begin_layout Section
12590 ijmpcおよびijmpd
12591 \end_layout
12592
12593 \begin_layout Standard
12594
12595 \noun on
12596 Panayotis Papasotiriou
12597 \noun default
12598
12599 \end_layout
12600
12601 \begin_layout Subsection
12602 概観
12603 \end_layout
12604
12605 \begin_layout Standard
12606 ijpmcパッケージは、
12607 \emph on
12608 International Journal of Modern Physics C
12609 \emph default
12610 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
12611 \emph on
12612 International Journal of Modern Physics D
12613 \emph default
12614 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
12615 \family typewriter
12616 ws-ijmpc.cls
12617 \family default
12618 および
12619 \family typewriter
12620 ws-ijmpd.cls
12621 \family default
12622 です。これらのファイルは、著者のための指針とともに、
12623 \begin_inset Flex URL
12624 status collapsed
12625
12626 \begin_layout Plain Layout
12627
12628 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12629 \end_layout
12630
12631 \end_inset
12632
12633 および
12634 \begin_inset Flex URL
12635 status collapsed
12636
12637 \begin_layout Plain Layout
12638
12639 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12640 \end_layout
12641
12642 \end_inset
12643
12644 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。\SpecialCharNoPassThru LyX
12645 は、これら
12646 のパッケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文を\SpecialCharNoPassThru LyX
12647 で書き上げましたが、何らの問題も生じませんでした。
12648 \end_layout
12649
12650 \begin_layout Subsection
12651 論文を書く
12652 \end_layout
12653
12654 \begin_layout Standard
12655 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
12656 \family sans
12657 ファイル\SpecialChar menuseparator
12658 新規(ひな型使用)
12659 \family default
12660 をクリックして、ひな型
12661 \family typewriter
12662 ijmpc.lyx
12663 \family default
12664 もしくは
12665 \family typewriter
12666 ijmpd.lyx
12667 \family default
12668 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
12669 \family typewriter
12670 <>
12671 \family default
12672 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
12673 \end_layout
12674
12675 \begin_layout Enumerate
12676 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、\SpecialCharNoPassThru LyX
12677 中でこれらを変更することはできません。
12678 \end_layout
12679
12680 \begin_layout Enumerate
12681 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
12682 \family sans
12683 ツール\SpecialChar menuseparator
12684 設定
12685 \family default
12686 をクリックして、
12687 \family sans
12688 言語オプション
12689 \family default
12690 タブを選択し、言語設定で
12691 \family sans
12692 Babelを使う
12693 \family default
12694 チェックボックスを無効にしてから、
12695 \family sans
12696 適用
12697 \family default
12698 をクリックすれば、設定することができます(この変更を固定するなら
12699 \family sans
12700 保存
12701 \family default
12702 を押してください)。
12703 \end_layout
12704
12705 \begin_layout Enumerate
12706 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
12707 \end_layout
12708
12709 \begin_layout Enumerate
12710 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
12711 ートされていませんので、ご注意ください。
12712 \end_layout
12713
12714 \begin_layout Enumerate
12715 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12716 きます。これらの使い方は、大凡自明でしょう。\SpecialCharNoPassThru LyX
12717 は、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
12718 \end_layout
12719
12720 \begin_layout Enumerate
12721 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。\SpecialCharNoPassThru LyX
12722 中では、引用参照は通常通り表示されますが、出力では上付き文字とし
12723 て表示されます。引用に通常の本文を使用したい場合には、「See Ref.
12724 \begin_inset space \space{}
12725 \end_inset
12726
12727
12728 \family typewriter
12729
12730 \backslash
12731 refcite{
12732 \family default
12733
12734 \begin_inset Flex Ruby
12735 status collapsed
12736
12737 \begin_layout Plain Layout
12738
12739 \family typewriter
12740
12741 \family default
12742
12743 \begin_inset Argument post:1
12744 status collapsed
12745
12746 \begin_layout Plain Layout
12747 キー
12748 \end_layout
12749
12750 \end_inset
12751
12752
12753 \end_layout
12754
12755 \end_inset
12756
12757
12758 \family typewriter
12759 }
12760 \family default
12761 」のように
12762 \family typewriter
12763 refcite
12764 \family default
12765 コマンドを使用してください。
12766 \end_layout
12767
12768 \begin_layout Enumerate
12769 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12770 \end_layout
12771
12772 \begin_layout Enumerate
12773 付録は、論文中、謝辞の
12774 \emph on
12775
12776 \emph default
12777 かつ書誌情報の
12778 \emph on
12779
12780 \emph default
12781 であれば、入れることができます。\SpecialCharNoPassThru LyX
12782 上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしてお
12783 かなくてはなりません。この環境は、\SpecialCharNoPassThru LaTeX
12784 コマンドを書き出すだけで、実際に出力は行いません。\SpecialCharNoPassThru LyX
12785 上では、青字で「Appendix」という単語が表示され、この
12786 箇所より後の節はすべて付録であることを明示します。「付録領域」は、最初の付録の前に
12787 \emph on
12788 なくてはならない
12789 \emph default
12790 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12791 \end_layout
12792
12793 \begin_layout Enumerate
12794 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12795 \family typewriter
12796 tbl
12797 \family default
12798 コマンドを使用します。そのため、\SpecialCharNoPassThru LyX
12799 が作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、\SpecialCharNoPassThru TeX
12800 コードを少し使えば、この問題を回避して、
12801 キャプションを望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりに\SpecialCharNoPassThru TeX
12802 コードで
12803 \family typewriter
12804
12805 \backslash
12806 tbl{表キャプション}{
12807 \family default
12808 (ママ)と入れます。そこに表の内容を入れて、直後を\SpecialCharNoPassThru TeX
12809 コード
12810 \family typewriter
12811 }
12812 \family default
12813 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12814 欲しい場合に、表フロート全体を
12815 \family typewriter
12816 .tex
12817 \family default
12818 ファイルに収め、このファイルを\SpecialCharNoPassThru LyX
12819 文書に取り込んでください(
12820 \family sans
12821 挿入\SpecialChar menuseparator
12822 ファイル\SpecialChar menuseparator
12823 子文書
12824 \family default
12825 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12826 \family typewriter
12827 ws-ijmpc.tex
12828 \family default
12829 または
12830 \family typewriter
12831 ws-ijmpd.tex
12832 \family default
12833 ファイルをご覧ください。
12834 \end_layout
12835
12836 \begin_layout Subsection
12837 原稿を投稿するための準備
12838 \end_layout
12839
12840 \begin_layout Standard
12841 論文を投稿する前には、\SpecialCharNoPassThru LyX
12842 文書を\SpecialCharNoPassThru LaTeX
12843 ファイルに書き出し(
12844 \family sans
12845 ファイル\SpecialChar menuseparator
12846 書き出し\SpecialChar menuseparator
12847 \SpecialCharNoPassThru LaTeX
12848 \family default
12849 )
12850 \begin_inset Foot
12851 status open
12852
12853 \begin_layout Plain Layout
12854 実は、\SpecialCharNoPassThru LaTeX
12855  (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がP
12856 DF形式に変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12857 \end_layout
12858
12859 \end_inset
12860
12861 、その
12862 \family typewriter
12863 .tex
12864 \family default
12865 ファイルに以下の変更を加える必要があります。
12866 \end_layout
12867
12868 \begin_layout Enumerate
12869
12870 \family typewriter
12871
12872 \backslash
12873 documentclass
12874 \family default
12875 コマンドより前にあるコメント行を削除する。
12876 \end_layout
12877
12878 \begin_layout Enumerate
12879 自身で明示的に\SpecialCharNoPassThru LaTeX
12880 プリアンブルに置いたコマンドを除き、
12881 \family typewriter
12882
12883 \backslash
12884 makeatletter
12885 \family default
12886 コマンドと
12887 \family typewriter
12888
12889 \backslash
12890 makeatother
12891 \family default
12892 コマンドの間にあるものをすべて削除する。
12893 \end_layout
12894
12895 \begin_layout Standard
12896 こうして修正を加えた
12897 \family typewriter
12898 .tex
12899 \family default
12900 ファイルを保存し、必要な回数\SpecialCharNoPassThru LaTeX
12901 で処理してください。それによって得られた
12902 \family typewriter
12903 .dvi
12904 \family default
12905 文書も確認された方がよろしいでしょう。
12906 \end_layout
12907
12908 \begin_layout Subsection
12909 \SpecialCharNoPassThru TeX
12910 コードの使用
12911 \end_layout
12912
12913 \begin_layout Standard
12914 \SpecialCharNoPassThru TeX
12915 コードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12916 \family typewriter
12917 ijmpc.lyx
12918 \family default
12919 または
12920 \family typewriter
12921 ijmpd.lyx
12922 \family default
12923 を使用して書き始めた場合には、これら必要な\SpecialCharNoPassThru TeX
12924 コードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めの\SpecialCharNoPassThru TeX
12925 コードのみが
12926 、奇数ページおよび偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。この\SpecialCharNoPassThru TeX
12927 コードは、
12928 \family typewriter
12929
12930 \backslash
12931 markboth{著者名}{論文の短縮タイトル}
12932 \family default
12933 という形である必要があります。
12934 \end_layout
12935
12936 \begin_layout Section
12937 iopart
12938 \end_layout
12939
12940 \begin_layout Standard
12941
12942 \noun on
12943 Uwe Stöhr
12944 \noun default
12945
12946 \end_layout
12947
12948 \begin_layout Subsection
12949 概要
12950 \end_layout
12951
12952 \begin_layout Standard
12953 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12954 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12955 \begin_inset Flex URL
12956 status collapsed
12957
12958 \begin_layout Plain Layout
12959
12960 ftp://ftp.iop.org/pub/journals/latex2e
12961 \end_layout
12962
12963 \end_inset
12964
12965 からiopartパッケージとともにダウンロード可能です。
12966 \end_layout
12967
12968 \begin_layout Subsection
12969 論文を書く
12970 \end_layout
12971
12972 \begin_layout Standard
12973 論文を書くもっとも簡単な方法は、\SpecialCharNoPassThru LyX
12974 の用例ファイルフォルダにある
12975 \emph on
12976 IOP-article.lyx
12977 \emph default
12978 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12979 な助言として、以下の点にご注意ください。
12980 \end_layout
12981
12982 \begin_layout Itemize
12983 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12984 \family sans
12985 数式オプション
12986 \family default
12987 で、二つの
12988 \family sans
12989 AMS mathパッケージを使う
12990 \family default
12991 関連オプションが有効になっていないことを確認してください!
12992 \end_layout
12993
12994 \begin_layout Itemize
12995 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12996 \begin_inset Separator parbreak
12997 \end_inset
12998
12999 \end_layout
13000
13001 \begin_deeper
13002 \begin_layout Itemize
13003 論文用には
13004 \family sans
13005 タイトル
13006 \end_layout
13007
13008 \begin_layout Itemize
13009 Review用には
13010 \family sans
13011 Review
13012 \end_layout
13013
13014 \begin_layout Itemize
13015 Topical review用には
13016 \family sans
13017 Topical
13018 \end_layout
13019
13020 \begin_layout Itemize
13021 Comment用には
13022 \family sans
13023 Comment
13024 \end_layout
13025
13026 \begin_layout Itemize
13027 Note用には
13028 \family sans
13029 注釈
13030 \end_layout
13031
13032 \begin_layout Itemize
13033 論文用には
13034 \family sans
13035 Paper
13036 \family default
13037 (タイトルと同じ)
13038 \end_layout
13039
13040 \begin_layout Itemize
13041 Preliminary communication用には
13042 \family sans
13043 Prelim
13044 \end_layout
13045
13046 \begin_layout Itemize
13047 Rapid communication用には
13048 \family sans
13049 Rapid
13050 \end_layout
13051
13052 \begin_layout Itemize
13053 編集者へのLetterには
13054 \family sans
13055 書簡
13056 \end_layout
13057
13058 \end_deeper
13059 \begin_layout Itemize
13060
13061 \family sans
13062 書簡
13063 \family default
13064 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
13065 \end_layout
13066
13067 \begin_layout Itemize
13068 \SpecialCharNoPassThru LyX
13069 では直接にサポートされていませんが、一般的なタイトル環境として
13070 \family sans
13071 Article
13072 \family default
13073 があります。執筆する文書が、他のタイトル型にそぐわない場合には、\SpecialCharNoPassThru TeX
13074 コードでこれを指定することができます。
13075 \end_layout
13076
13077 \begin_layout Standard
13078 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
13079 \end_layout
13080
13081 \begin_layout Section
13082 Kluwer
13083 \end_layout
13084
13085 \begin_layout Standard
13086
13087 \noun on
13088 Panayotis Papasotiriou
13089 \noun default
13090
13091 \end_layout
13092
13093 \begin_layout Subsection
13094 概要
13095 \end_layout
13096
13097 \begin_layout Standard
13098 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
13099 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
13100 \emph on
13101 Astrophysics and Space Science
13102 \emph default
13103 (『宇宙物理学と宇宙科学』)と
13104 \emph on
13105 Solar Physics
13106 \emph default
13107 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
13108 \begin_inset Flex URL
13109 status collapsed
13110
13111 \begin_layout Plain Layout
13112
13113 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13114 \end_layout
13115
13116 \end_inset
13117
13118 に全覧があります)。Kluwerパッケージは、
13119 \begin_inset Flex URL
13120 status collapsed
13121
13122 \begin_layout Plain Layout
13123
13124 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13125 \end_layout
13126
13127 \end_inset
13128
13129 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
13130 \end_layout
13131
13132 \begin_layout Standard
13133 \SpecialCharNoPassThru LyX
13134 は、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、\SpecialCharNoPassThru TeX
13135 コードを必要とするのは、パッケージ中のいくつかの「変わった」コマ
13136 ンドだけになりました(
13137 \begin_inset CommandInset ref
13138 LatexCommand ref
13139 reference "subsec:kluwer_peculiarities"
13140
13141 \end_inset
13142
13143 参照)。最近、私は\SpecialCharNoPassThru LyX
13144 を使って書いた論文を
13145 \emph on
13146 Astrophysics and Space Science
13147 \emph default
13148 に投稿しましたが、何らの問題も発生しませんでした。
13149 \end_layout
13150
13151 \begin_layout Subsection
13152 論文を書く
13153 \end_layout
13154
13155 \begin_layout Standard
13156 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
13157 \family sans
13158 ファイル\SpecialChar menuseparator
13159 新規(ひな型使用)
13160 \family default
13161 をクリックし、ひな型
13162 \family typewriter
13163 kluwer.lyx
13164 \family default
13165 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
13166 様に、既存の文章を(括弧
13167 \family typewriter
13168 <>
13169 \family default
13170 を含む)正しい情報で上書きしてください。
13171 \end_layout
13172
13173 \begin_layout Subsection
13174 投稿の準備
13175 \end_layout
13176
13177 \begin_layout Standard
13178 AAS\SpecialCharNoPassThru TeX
13179 パッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
13180 \end_layout
13181
13182 \begin_layout Enumerate
13183
13184 \family sans
13185 ファイル\SpecialChar menuseparator
13186 書き出し\SpecialChar menuseparator
13187 LateX
13188 \family default
13189 をクリックして、論文を\SpecialCharNoPassThru LaTeX
13190 ファイルに書き出す。
13191 \end_layout
13192
13193 \begin_layout Enumerate
13194 生成された
13195 \family typewriter
13196 .tex
13197 \family default
13198 ファイルに、テキストエディタを使用して、以下のような変更を加える。
13199 \family default
13200 \begin_inset Separator parbreak
13201 \end_inset
13202
13203 \end_layout
13204
13205 \begin_deeper
13206 \begin_layout Enumerate
13207
13208 \family typewriter
13209
13210 \backslash
13211 documentclass
13212 \family default
13213 コマンドより前にあるコメント行を削除する。
13214 \end_layout
13215
13216 \begin_layout Enumerate
13217 意図的に\SpecialCharNoPassThru LaTeX
13218 プリアンブルに加えたコマンドを除き、
13219 \family typewriter
13220
13221 \backslash
13222 makeatletter
13223 \family default
13224 から 
13225 \family typewriter
13226
13227 \backslash
13228 makeatother
13229 \family default
13230 の間にあるものを、これらのコマンドも含め、すべて削除する。
13231 \end_layout
13232
13233 \begin_layout Standard
13234 変更した
13235 \family typewriter
13236 .tex
13237 \family default
13238 ファイルを保存する。
13239 \end_layout
13240
13241 \end_deeper
13242 \begin_layout Enumerate
13243 この
13244 \family typewriter
13245 .tex
13246 \family default
13247 ファイルを必要な回数(通常3回以内)だけ\SpecialCharNoPassThru LaTeX
13248 にかける。
13249 \end_layout
13250
13251 \begin_layout Enumerate
13252 生成された
13253 \family typewriter
13254 .dvi
13255 \family default
13256 ファイルを
13257 \family sans
13258 xdvi
13259 \family default
13260 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
13261 \end_layout
13262
13263 \begin_layout Subsection
13264 Kluwerパッケージの「風変わり」な特徴
13265 \begin_inset CommandInset label
13266 LatexCommand label
13267 name "subsec:kluwer_peculiarities"
13268
13269 \end_inset
13270
13271
13272 \end_layout
13273
13274 \begin_layout Standard
13275 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
13276 \end_layout
13277
13278 \begin_layout Enumerate
13279 複数の論文を1つの\SpecialCharNoPassThru LaTeX
13280 ファイルへ入れることができます
13281 \begin_inset Foot
13282 status collapsed
13283
13284 \begin_layout Plain Layout
13285 わざわざこんなことをする必要はないでしょう。
13286 \end_layout
13287
13288 \end_inset
13289
13290 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
13291 \family typewriter
13292
13293 \backslash
13294 begin{article}
13295 \family default
13296 で始まり、
13297 \family typewriter
13298
13299 \backslash
13300 end{article}
13301 \family default
13302 で終わります。この環境を\SpecialCharNoPassThru LyX
13303 に実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
13304 \family typewriter
13305
13306 \backslash
13307 begin{article}
13308 \family default
13309
13310 \family typewriter
13311
13312 \backslash
13313 end{article}
13314 \family default
13315 )は、直接本文中に入力して、\SpecialCharNoPassThru LaTeX
13316 コード(「\SpecialCharNoPassThru TeX
13317 コード」のことです)としてマークする必要があります。
13318 \end_layout
13319
13320 \begin_layout Enumerate
13321 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
13322 はなりません。これは\SpecialCharNoPassThru LyX
13323 では実装されていませんので、タイトルやサブタイトルなどは、2つの\SpecialCharNoPassThru TeX
13324 コード行(
13325 \family typewriter
13326
13327 \backslash
13328 begin{opening}
13329 \family default
13330 および
13331 \family typewriter
13332
13333 \backslash
13334 end{opening}
13335 \family default
13336 )の間に入れる必要があります。
13337 \end_layout
13338
13339 \begin_layout Enumerate
13340 ユーザーの手引きによれば、書誌情報の各項目のラベルは、
13341 \family typewriter
13342
13343 \begin_inset Newline newline
13344 \end_inset
13345
13346
13347 \backslash
13348 protect
13349 \backslash
13350 citeauthoryear{
13351 \family default
13352 \emph on
13353 著者名
13354 \family typewriter
13355 \emph default
13356 }{
13357 \family default
13358 \emph on
13359
13360 \family typewriter
13361 \emph default
13362 }
13363 \family default
13364  と書く必要があります。
13365 \end_layout
13366
13367 \begin_layout Standard
13368 ひな型
13369 \family typewriter
13370 kluwer.lyx
13371 \family default
13372 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
13373 てください。
13374 \end_layout
13375
13376 \begin_layout Enumerate
13377 ひな型にある\SpecialCharNoPassThru TeX
13378 コードを削除しないでください。
13379 \end_layout
13380
13381 \begin_layout Enumerate
13382 新しい書誌情報項目を入力する場合には、ひな型に例示されている書誌情報項目をコピーして、必要に応じて修正してください。
13383 \end_layout
13384
13385 \begin_layout Section
13386 Koma-Script
13387 \end_layout
13388
13389 \begin_layout Standard
13390
13391 \noun on
13392 Bernd Rellermeyer
13393 \noun default
13394
13395 \end_layout
13396
13397 \begin_layout Subsection
13398 概要
13399 \end_layout
13400
13401 \begin_layout Standard
13402 \SpecialCharNoPassThru LyX
13403 の文書クラス
13404 \emph on
13405 article (koma-script)
13406 \emph default
13407
13408 \emph on
13409 report (koma-script)
13410 \emph default
13411
13412 \emph on
13413 book
13414 \emph default
13415  
13416 \emph on
13417 (koma-script)
13418 \emph default
13419
13420 \emph on
13421 letter
13422 \emph default
13423  
13424 \emph on
13425 (koma-script)
13426 \emph default
13427 は、それぞれKoma-Scriptファミリーの\SpecialCharNoPassThru LaTeX
13428 文書クラス
13429 \family typewriter
13430 scrartcl.cls
13431 \family default
13432
13433 \family typewriter
13434 scrreprt.cls
13435 \family default
13436
13437 \family typewriter
13438 scrbook.cls
13439 \family default
13440
13441 \family typewriter
13442 scrlettr.cls
13443 \family default
13444 に対応しています。これらは、標準文書クラス
13445 \family typewriter
13446 article.cls
13447 \family default
13448
13449 \family typewriter
13450 report.cls
13451 \family default
13452
13453 \family typewriter
13454 book.cls
13455 \family default
13456
13457 \family typewriter
13458 letter.cls
13459 \family default
13460 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
13461 \end_layout
13462
13463 \begin_layout Itemize
13464 標準文字寸法は、
13465 \emph on
13466 article (koma-script)
13467 \emph default
13468
13469 \emph on
13470 report (koma-script)
13471 \emph default
13472
13473 \emph on
13474 book (koma-script)
13475 \emph default
13476 で11pt、
13477 \emph on
13478 letter (koma-script)
13479 \emph default
13480 で12ptです。
13481 \end_layout
13482
13483 \begin_layout Itemize
13484 見出しや箇条書き(記述)環境のラベル、および
13485 \emph on
13486 letter (koma-script)
13487 \emph default
13488 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
13489 \begin_inset Foot
13490 status collapsed
13491
13492 \begin_layout Plain Layout
13493 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
13494 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
13495 \shape smallcaps
13496 Walter Schmidt
13497 \shape default
13498 作の\SpecialCharNoPassThru LaTeX
13499 パッケージ
13500 \family typewriter
13501 cmsd.sty
13502 \family default
13503 が役立ちます。
13504 \end_layout
13505
13506 \end_inset
13507
13508 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar ldots
13509 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
13510 とができます(\SpecialCharNoPassThru LyX
13511 では、
13512 \family sans
13513 文書\SpecialChar menuseparator
13514 設定
13515 \family default
13516 ダイアログの
13517 \family sans
13518 クラスオプション
13519 \family default
13520 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
13521 \emph on
13522 scrguide
13523 \emph default
13524 にあります。
13525 \end_layout
13526
13527 \begin_layout Itemize
13528 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
13529 \family sans
13530 BCOR
13531 \family default
13532 オプションまたは
13533 \family sans
13534 DIV
13535 \family default
13536 オプションを使う方法です(\SpecialCharNoPassThru LyX
13537 では、
13538 \family sans
13539 文書\SpecialChar menuseparator
13540 設定
13541 \family default
13542 ダイアログの
13543 \family sans
13544 クラスオプション
13545 \family default
13546 フィールドで指定します)。これらのオプションは
13547 \family sans
13548 文書\SpecialChar menuseparator
13549 設定
13550 \family default
13551 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
13552 扱説明書
13553 \emph on
13554 scrguide
13555 \emph default
13556 にあります。
13557 \end_layout
13558
13559 \begin_layout Itemize
13560 Koma-Scriptファミリーの\SpecialCharNoPassThru LaTeX
13561 文書クラスには、多くの追加コマンドが定義されています。それらのうち、\SpecialCharNoPassThru LyX
13562 で意味を持つものは、対応する段落環境として
13563 実装されています。
13564 \end_layout
13565
13566 \begin_layout Standard
13567 Koma-Scriptファミリーの\SpecialCharNoPassThru LaTeX
13568 文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
13569 \emph on
13570 scrguide
13571 \emph default
13572 にあります
13573 \begin_inset Foot
13574 status collapsed
13575
13576 \begin_layout Plain Layout
13577 英語翻訳版の
13578 \emph on
13579 screnggu
13580 \emph default
13581 もありますが、完訳ではありません。
13582 \end_layout
13583
13584 \end_inset
13585
13586 。以下の各節では、\SpecialCharNoPassThru LyX
13587 に関係する側面のみ説明致します。
13588 \end_layout
13589
13590 \begin_layout Subsection
13591 article (koma-script)・report (koma-script)・book (koma-script)
13592 \end_layout
13593
13594 \begin_layout Standard
13595 文書クラス
13596 \emph on
13597 article (koma-script)
13598 \emph default
13599
13600 \emph on
13601 report (koma-script)
13602 \emph default
13603
13604 \emph on
13605 book
13606 \emph default
13607  
13608 \emph on
13609 (koma-script)
13610 \emph default
13611 は、それぞれレイアウトファイル
13612 \family typewriter
13613 scrartcl.layout
13614 \family default
13615
13616 \family typewriter
13617 scrreprt.layou
13618 \family default
13619 t・
13620 \family typewriter
13621 crbook.layout
13622 \family default
13623 によって実装されています。これらは、対応する標準文書クラス
13624 \emph on
13625 article
13626 \emph default
13627
13628 \emph on
13629 report
13630 \emph default
13631
13632 \emph on
13633 book
13634 \emph default
13635 の段落環境を、若干の修正を加えた上ですべて含んでいますが、\SpecialCharNoPassThru LyX
13636 固有の
13637 \family sans
13638 箇条書き(一覧)
13639 \family default
13640 環境は例外であり、同じ機能を持つ新しい
13641 \family sans
13642 ラベリング
13643 \family default
13644 環境で置き換えられています。この
13645 \family sans
13646 ラベリング
13647 \family default
13648 環境以外にも、新しい段落環境が多く追加されています。これらは、
13649 \emph on
13650 letter (koma-script)
13651 \emph default
13652 には含まれていないのでご注意ください。
13653 \end_layout
13654
13655 \begin_layout Itemize
13656
13657 \family sans
13658 部(addpart)
13659 \family default
13660
13661 \family sans
13662 章(addchap)
13663 \family default
13664
13665 \family sans
13666 節(addsec)
13667 \family default
13668 :これらは、それぞれ
13669 \family sans
13670 部*
13671 \family default
13672
13673 \family sans
13674 章*
13675 \family default
13676
13677 \family sans
13678 節*
13679 \family default
13680 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
13681 \family sans
13682 部(addpart)
13683 \family default
13684
13685 \family sans
13686 章(addchap)
13687 \family default
13688 は、
13689 \emph on
13690 article (koma-script)
13691 \emph default
13692 には収録されていません。
13693 \end_layout
13694
13695 \begin_layout Itemize
13696
13697 \family sans
13698 章(addchap*)
13699 \family default
13700
13701 \family sans
13702 節(addsec*)
13703 \family default
13704 :これらは、
13705 \family sans
13706 章(addchap
13707 \family default
13708 )と
13709 \family sans
13710 節(addsec)
13711 \family default
13712 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
13713 \family sans
13714 章(addchap*)
13715 \family default
13716 は、 
13717 \emph on
13718 article (koma-script)
13719 \emph default
13720 には収録されていません
13721 \begin_inset Foot
13722 status collapsed
13723
13724 \begin_layout Plain Layout
13725
13726 \emph on
13727 book (koma-script)
13728 \emph default
13729
13730 \emph on
13731 report (koma-script)
13732 \emph default
13733 には、
13734 \family typewriter
13735
13736 \backslash
13737 addpart*
13738 \family default
13739 コマンドもありますが、これは
13740 \family sans
13741 Part*
13742 \family default
13743 と同一なので、\SpecialCharNoPassThru LyX
13744 では実装されていません。
13745 \end_layout
13746
13747 \end_inset
13748
13749
13750 \end_layout
13751
13752 \begin_layout Itemize
13753
13754 \family sans
13755 小見出し(minisec)
13756 \family default
13757 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
13758 \end_layout
13759
13760 \begin_layout Itemize
13761
13762 \family sans
13763 上部キャプション
13764 \family default
13765
13766 \family sans
13767 下部キャプション
13768 \family default
13769 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
13770 ねに表の上に置くべきでしょう)。また、クラスオプション
13771 \family typewriter
13772 tablecaptionsabove
13773 \family default
13774 を用いれば、キャプションを指定すると、表には
13775 \family sans
13776 上部キャプション
13777 \family default
13778 が、図には
13779 \family sans
13780 下部キャプション
13781 \family default
13782 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13783 \end_layout
13784
13785 \begin_layout Itemize
13786
13787 \family sans
13788 格言(dictum)
13789 \family default
13790 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
13791 \family sans
13792 挿入\SpecialChar menuseparator
13793 短縮タイトル
13794 \family default
13795 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13796 \family sans
13797 格言(dictum)
13798 \family default
13799 は、
13800 \emph on
13801 article (koma-script)
13802 \emph default
13803 には収録されていません。
13804 \end_layout
13805
13806 \begin_layout Standard
13807 以下の各環境は、標準の
13808 \family sans
13809 タイトル
13810 \family default
13811
13812 \family sans
13813 著者
13814 \family default
13815
13816 \family sans
13817 日付
13818 \family default
13819 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13820 \begin_inset Foot
13821 status collapsed
13822
13823 \begin_layout Plain Layout
13824 つまり、対応する\SpecialCharNoPassThru LaTeX
13825 コマンドが
13826 \family typewriter
13827
13828 \backslash
13829 maketitle
13830 \family default
13831 コマンドよりも前に現れなくてはなりません。
13832 \end_layout
13833
13834 \end_inset
13835
13836 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13837 \family sans
13838 タイトル
13839 \family default
13840
13841 \family sans
13842 著者
13843 \family default
13844
13845 \family sans
13846 日付
13847 \family default
13848 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13849 \end_layout
13850
13851 \begin_layout Itemize
13852
13853 \family sans
13854 主題
13855 \family default
13856 :通常のタイトル部(
13857 \family sans
13858 タイトル
13859 \family default
13860
13861 \family sans
13862 著者
13863 \family default
13864
13865 \family sans
13866 日付
13867 \family default
13868 )の上に、文書の主題用の中央揃えの段落を生成します。
13869 \end_layout
13870
13871 \begin_layout Itemize
13872
13873 \family sans
13874 出版社
13875 \family default
13876 :通常のタイトル部(
13877 \family sans
13878 タイトル
13879 \family default
13880
13881 \family sans
13882 著者
13883 \family default
13884
13885 \family sans
13886 日付
13887 \family default
13888 )の下に、出版社名用の中央揃えの段落を生成します。
13889 \end_layout
13890
13891 \begin_layout Itemize
13892
13893 \family sans
13894 献呈
13895 \family default
13896
13897 \emph on
13898 report (koma-script)
13899 \emph default
13900
13901 \emph on
13902 book (koma-script)
13903 \emph default
13904 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13905 \emph on
13906 article (koma-script)
13907 \emph default
13908 の場合は、通常のタイトル部(
13909 \family sans
13910 タイトル
13911 \family default
13912
13913 \family sans
13914 著者
13915 \family default
13916
13917 \family sans
13918 日付
13919 \family default
13920 )の下に献辞用の中央揃えの段落を生成します。
13921 \end_layout
13922
13923 \begin_layout Itemize
13924
13925 \family sans
13926 タイトル頭書き
13927 \family default
13928 :通常のタイトル部(
13929 \family sans
13930 タイトル
13931 \family default
13932
13933 \family sans
13934 著者
13935 \family default
13936
13937 \family sans
13938 日付
13939 \family default
13940 )の上に、文書頭書き用の左揃えの段落を生成します。
13941 \end_layout
13942
13943 \begin_layout Itemize
13944
13945 \family sans
13946 扉裏上部
13947 \family default
13948
13949 \emph on
13950 report (koma-script)
13951 \emph default
13952 や 
13953 \emph on
13954 book (koma-script)
13955 \emph default
13956 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13957 \emph on
13958 article (koma-script)
13959 \emph default
13960 では何の効果も生じません。
13961 \end_layout
13962
13963 \begin_layout Itemize
13964
13965 \family sans
13966 扉裏下部
13967 \family default
13968
13969 \emph on
13970 report (koma-script)
13971 \emph default
13972 や 
13973 \emph on
13974 book (koma-script)
13975 \emph default
13976 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13977 \emph on
13978 article (koma-script)
13979 \emph default
13980 では何の効果も生じません。
13981 \end_layout
13982
13983 \begin_layout Itemize
13984
13985 \family sans
13986 追加タイトル
13987 \family default
13988 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13989 \end_layout
13990
13991 \begin_layout Standard
13992 文書クラス
13993 \emph on
13994 article (koma-script)
13995 \emph default
13996
13997 \emph on
13998 report (koma-script)
13999 \emph default
14000
14001 \emph on
14002 book (koma-script)
14003 \emph default
14004 の 各レイアウトファイルは、
14005 \family typewriter
14006 scrmacros.inc
14007 \family default
14008 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
14009 \family typewriter
14010 crmacros.inc
14011 \family default
14012 を、個人用レイアウトディレクトリにコピーして編集してください!
14013 \end_layout
14014
14015 \begin_layout Subsection
14016 letter (koma-script)
14017 \end_layout
14018
14019 \begin_layout Standard
14020 \noindent
14021 文書クラス
14022 \emph on
14023 letter (koma-script)
14024 \emph default
14025 は、レイアウトファイル 
14026 \family typewriter
14027 scrlettr.layout
14028 \family default
14029 で実装されています。このレイアウトファイルには、対応する標準文書クラス
14030 \emph on
14031 letter
14032 \emph default
14033 の全段落環境が、部分的に変更を加えた形で収録されていますが、\SpecialCharNoPassThru LyX
14034 固有環境の
14035 \family sans
14036 \SpecialCharNoPassThru LyX
14037 コード
14038 \family default
14039
14040 \family sans
14041 コメント
14042 \family default
14043
14044 \family sans
14045 箇条書き(一覧
14046 \family default
14047 )は、新しく
14048 \family sans
14049 ラベリング
14050 \family default
14051 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
14052 \family sans
14053 \SpecialCharNoPassThru LaTeX
14054 \family default
14055
14056 \family sans
14057 引用(字下げあり)
14058 \family default
14059
14060 \family sans
14061 引用(字下げなし)
14062 \family default
14063
14064 \family sans
14065 詩句
14066 \family default
14067 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
14068 \end_layout
14069
14070 \begin_layout Standard
14071 この文書クラスで作成した書簡の外観は、様々な\SpecialCharNoPassThru LaTeX
14072 コマンドを\SpecialCharNoPassThru LaTeX
14073 プリアンブルに置くことで制御することができます
14074 \begin_inset Foot
14075 status collapsed
14076
14077 \begin_layout Plain Layout
14078 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
14079 す。
14080 \end_layout
14081
14082 \begin_layout LyX-Code
14083
14084 \backslash
14085 firsthead{
14086 \backslash
14087 parbox[b]{
14088 \backslash
14089 textwidth}
14090 \end_layout
14091
14092 \begin_layout LyX-Code
14093   {
14094 \backslash
14095 ignorespaces 
14096 \backslash
14097 fromname
14098 \backslash
14099
14100 \backslash
14101  
14102 \backslash
14103 ignorespaces 
14104 \backslash
14105 fromaddress}} 
14106 \end_layout
14107
14108 \begin_layout LyX-Code
14109
14110 \backslash
14111 nexthead{
14112 \backslash
14113 parbox[b]{
14114 \backslash
14115 textwidth}
14116 \end_layout
14117
14118 \begin_layout LyX-Code
14119   {
14120 \backslash
14121 ignorespaces 
14122 \backslash
14123 fromname 
14124 \backslash
14125 hfill 
14126 \backslash
14127 ignorespaces 
14128 \backslash
14129 pagename
14130 \backslash
14131
14132 \end_layout
14133
14134 \begin_layout LyX-Code
14135
14136 \backslash
14137 thepage}}
14138 \end_layout
14139
14140 \end_inset
14141
14142 。これらの\SpecialCharNoPassThru LaTeX
14143 コマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
14144 \emph on
14145 scrguide
14146 \emph default
14147 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
14148 \end_layout
14149
14150 \begin_layout Standard
14151
14152 \family sans
14153 書簡
14154 \family default
14155 環境および
14156 \family sans
14157 頭語
14158 \family default
14159 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。\SpecialCharNoPassThru LyX
14160 文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
14161 \shape italic
14162 L
14163 \shape default
14164
14165 \shape italic
14166 O
14167 \shape default
14168 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
14169 \family sans
14170 頭語
14171 \family default
14172 環境は、同じ受取人への書簡を新しく書き出すものであり、
14173 \family sans
14174 書簡
14175 \family default
14176 環境は、新しい受取人を生成するものです。
14177 \family sans
14178 結語
14179 \family default
14180
14181 \family sans
14182 PS
14183 \family default
14184
14185 \family sans
14186 CC
14187 \family default
14188
14189 \family sans
14190 Encl
14191 \family default
14192 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
14193 \end_layout
14194
14195 \begin_layout Itemize
14196
14197 \family sans
14198 書簡
14199 \family default
14200 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
14201 \end_layout
14202
14203 \begin_layout Itemize
14204
14205 \family sans
14206 頭語
14207 \family default
14208 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
14209 \end_layout
14210
14211 \begin_layout Itemize
14212
14213 \family sans
14214 結語
14215 \family default
14216 :結語のための段落をつくります。
14217 \end_layout
14218
14219 \begin_layout Itemize
14220
14221 \family sans
14222 PS
14223 \family default
14224 :追伸のための段落をつくります。
14225 \end_layout
14226
14227 \begin_layout Itemize
14228
14229 \family sans
14230 CC
14231 \family default
14232 :同報一覧のための段落をつくります。
14233 \end_layout
14234
14235 \begin_layout Itemize
14236
14237 \family sans
14238 Encl
14239 \family default
14240 :同封物のための段落をつくります。
14241 \end_layout
14242
14243 \begin_layout Standard
14244
14245 \family sans
14246 名前
14247 \family default
14248
14249 \family sans
14250 署名
14251 \family default
14252
14253 \family sans
14254 住所
14255 \family default
14256
14257 \family sans
14258 電話
14259 \family default
14260
14261 \family sans
14262 場所(Place
14263 \family default
14264 )・
14265 \family sans
14266 返送先住所
14267 \family default
14268
14269 \family sans
14270 配送手段(Specialmail)
14271 \family default
14272
14273 \family sans
14274 場所
14275 \family default
14276
14277 \family sans
14278 タイトル
14279 \family default
14280
14281 \family sans
14282 主題
14283 \family default
14284 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
14285 \begin_inset Foot
14286 status collapsed
14287
14288 \begin_layout Plain Layout
14289 上述の
14290 \family sans
14291 書簡
14292 \family default
14293
14294 \family sans
14295 頭語
14296 \family default
14297 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
14298 一文字をマークした通常の段落環境として実装しました。さらに、
14299 \family sans
14300 頭語
14301 \family default
14302 環境と
14303 \family sans
14304 結語
14305 \family default
14306 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
14307 \end_layout
14308
14309 \end_inset
14310
14311 。これらの環境は、対応する
14312 \family sans
14313 頭語
14314 \family default
14315 環境の前に置く必要があります。
14316 \end_layout
14317
14318 \begin_layout Standard
14319 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
14320 ん。たとえば、
14321 \family sans
14322 署名
14323 \family default
14324 環境で入力した署名は、標準的な挙動では、同じ書簡に
14325 \family sans
14326 結語
14327 \family default
14328 環境も使用されているときのみ、書簡の出力に現れます。
14329 \family sans
14330 電話
14331 \family default
14332 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
14333 \end_layout
14334
14335 \begin_layout Standard
14336 入力環境は、空の段落として使うことができます。これは、たとえば
14337 \family sans
14338 署名
14339 \family default
14340 環境の場合に有効です。
14341 \family sans
14342 署名
14343 \family default
14344 環境を全く使用しない場合は、標準的な挙動では、
14345 \family sans
14346 名前
14347 \family default
14348 環境の値が署名として使用されますが、空の
14349 \family sans
14350 署名
14351 \family default
14352 環境を作成しておくと、署名の値は無定義となりません。
14353 \end_layout
14354
14355 \begin_layout Standard
14356 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
14357 \end_layout
14358
14359 \begin_layout Itemize
14360
14361 \family sans
14362 名前
14363 \family default
14364 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
14365 \end_layout
14366
14367 \begin_layout Itemize
14368
14369 \family sans
14370 署名
14371 \family default
14372 :送り主の署名。標準的な挙動では、
14373 \family sans
14374 結語
14375 \family default
14376 環境の下に表示されます。
14377 \family sans
14378 署名
14379 \family default
14380 環境を使用しないと、代わりに
14381 \family sans
14382 名前
14383 \family default
14384 環境の値が表示されます。
14385 \end_layout
14386
14387 \begin_layout Itemize
14388
14389 \family sans
14390 住所
14391 \family default
14392 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
14393 \end_layout
14394
14395 \begin_layout Itemize
14396
14397 \family sans
14398 電話
14399 \family default
14400 :送り主の電話番号。標準的な挙動では、\SpecialCharNoPassThru LaTeX
14401 変数
14402 \family typewriter
14403
14404 \backslash
14405 telephonenum
14406 \family default
14407 を設定するだけです。
14408 \end_layout
14409
14410 \begin_layout Itemize
14411
14412 \family sans
14413 場所(Place)
14414 \family default
14415 :書簡を書いた場所。
14416 \end_layout
14417
14418 \begin_layout Itemize
14419
14420 \family sans
14421 日付
14422 \family default
14423 :書簡を書いた日付。
14424 \family sans
14425 場所(Place)
14426 \family default
14427
14428 \family sans
14429 日付
14430 \family default
14431 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
14432 \family sans
14433 日付
14434 \family default
14435 環境を作成しておくと、
14436 \family sans
14437 場所(Place)
14438 \family default
14439 の値如何に関わらず、場所も日付も表示されません。
14440 \family sans
14441 日付
14442 \family default
14443 環境を使用しない場合には、書簡を出力した日付が使用されます。
14444 \end_layout
14445
14446 \begin_layout Itemize
14447
14448 \family sans
14449 返送先住所
14450 \family default
14451 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
14452 \end_layout
14453
14454 \begin_layout Itemize
14455
14456 \family sans
14457 特別便
14458 \family default
14459 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
14460 \end_layout
14461
14462 \begin_layout Itemize
14463
14464 \family sans
14465 場所
14466 \family default
14467 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
14468 \end_layout
14469
14470 \begin_layout Itemize
14471
14472 \family sans
14473 タイトル
14474 \family default
14475 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
14476 \end_layout
14477
14478 \begin_layout Itemize
14479
14480 \family sans
14481 主題
14482 \family default
14483 :書簡の主題。標準的な挙動では、
14484 \family sans
14485 頭語
14486 \family default
14487 環境の上にボールド体で表示されます。
14488 \end_layout
14489
14490 \begin_layout Standard
14491
14492 \family sans
14493 Yourref・Yourmail・Myref・顧客・インボイス
14494 \family default
14495 といった環境は、
14496 \family sans
14497 タイトル
14498 \family default
14499 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14500 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
14501 \family sans
14502 日付
14503 \family default
14504 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
14505 \family sans
14506 場所(Place)
14507 \family default
14508 の値は書簡には表示されなくなり、\SpecialCharNoPassThru LaTeX
14509 変数
14510 \family typewriter
14511
14512 \backslash
14513 fromplace
14514 \family default
14515 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
14516 て実装されており、対応する
14517 \family sans
14518 頭語
14519 \family default
14520 環境よりも前に置く必要があります。
14521 \end_layout
14522
14523 \begin_layout Itemize
14524
14525 \family sans
14526 Yourref
14527 \family default
14528 : Your ref.
14529 \end_layout
14530
14531 \begin_layout Itemize
14532
14533 \family sans
14534 Yourmail
14535 \family default
14536 : Your letter of.
14537 \end_layout
14538
14539 \begin_layout Itemize
14540
14541 \family sans
14542 Myref
14543 \family default
14544 : Our ref.
14545 \end_layout
14546
14547 \begin_layout Itemize
14548
14549 \family sans
14550 Customer
14551 \family default
14552 : Customer no.
14553 \end_layout
14554
14555 \begin_layout Itemize
14556
14557 \family sans
14558 Invoice
14559 \family default
14560 : Invoice no.
14561 \end_layout
14562
14563 \begin_layout Subsection
14564 新しいletterクラス:letter (koma-script v.2)
14565 \end_layout
14566
14567 \begin_layout Standard
14568 by 
14569 \noun on
14570 Jürgen Spitzmüller
14571 \begin_inset VSpace medskip
14572 \end_inset
14573
14574
14575 \end_layout
14576
14577 \begin_layout Standard
14578 \noindent
14579 Koma-Script第2.8版では、新しいletterクラス
14580 \family typewriter
14581 scrlttr2
14582 \family default
14583 が導入されたため、
14584 \family typewriter
14585 scrlettr
14586 \family default
14587 は廃止されてサポート対象外となりました。これは—\SpecialCharNoPassThru LaTeX
14588 側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、\SpecialCharNoPassThru LyX
14589 は両者
14590 をサポートしていますが、新しい方のクラスを使用することを推奨します。
14591 \end_layout
14592
14593 \begin_layout Standard
14594 このクラスは、
14595 \emph on
14596 letter (koma-script)
14597 \emph default
14598 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
14599 \family sans
14600 住所
14601 \family default
14602 (受取人の住所、旧レイアウトの
14603 \family sans
14604 書簡
14605 \family default
14606 と同じ)・
14607 \family sans
14608 頭語
14609 \family default
14610
14611 \family sans
14612 結語
14613 \family default
14614 です。
14615 \family sans
14616 次の住所
14617 \family default
14618 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
14619 \family sans
14620 電子メール
14621 \family default
14622
14623 \family sans
14624 URL
14625 \family default
14626
14627 \family sans
14628 ファックス
14629 \family default
14630
14631 \family sans
14632 銀行
14633 \family default
14634 、およびヘッダに(
14635 \family sans
14636 挿入\SpecialChar menuseparator
14637
14638 \family default
14639 で)
14640 \family sans
14641 ロゴ
14642 \family default
14643 を入れることができるようになった点です。
14644 \end_layout
14645
14646 \begin_layout Standard
14647 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
14648 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
14649 \family typewriter
14650 *.lco
14651 \family default
14652 )によって設定することができます
14653 \begin_inset Foot
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 KOMAパッケージには、既定の
14658 \family typewriter
14659 *.lco
14660 \family default
14661 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
14662 \family typewriter
14663 DIN.lco
14664 \family default
14665 や、旧
14666 \family typewriter
14667 scrlettr
14668 \family default
14669 クラスの既定レイアウトを提供する
14670 \family typewriter
14671 KOMAold.lco
14672 \family default
14673 などです。たとえば後者は、
14674 \family sans
14675 文書\SpecialChar menuseparator
14676 設定\SpecialChar menuseparator
14677 文書クラス\SpecialChar menuseparator
14678 クラスオプション
14679 \family default
14680 フィールドにクラスオプション
14681 \family typewriter
14682 KOMAold
14683 \family default
14684 を加えることで読み込むことができます。
14685 \end_layout
14686
14687 \end_inset
14688
14689 。用例としては、\SpecialCharNoPassThru LyX
14690 に収録されているひな型
14691 \emph on
14692 koma-letter2
14693 \emph default
14694 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
14695 \emph on
14696 scrguide
14697 \emph default
14698 )にあります。
14699 \end_layout
14700
14701 \begin_layout Subsection
14702 問題点
14703 \end_layout
14704
14705 \begin_layout Standard
14706 Koma-Script文書クラスを\SpecialCharNoPassThru LyX
14707 上に表示する上で、\SpecialCharNoPassThru LyX
14708 の内部処理が若干の問題を生じめます。
14709 \end_layout
14710
14711 \begin_layout Itemize
14712
14713 \family sans
14714
14715 \family default
14716 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
14717 \family sans
14718 Counter_Chapter
14719 \family default
14720 ラベル型に対する\SpecialCharNoPassThru LyX
14721 の内部処理が原因です。
14722 \end_layout
14723
14724 \begin_layout Itemize
14725
14726 \family sans
14727 章(addchap)
14728 \family default
14729
14730 \family sans
14731 節(addsec)
14732 \family default
14733 環境の見出しは、「本当の」\SpecialCharNoPassThru LaTeX
14734 の目次には追加されますが、\SpecialCharNoPassThru LyX
14735 の目次(
14736 \family sans
14737 移動
14738 \family default
14739 メニュー)には追加されません。
14740 \end_layout
14741
14742 \begin_layout Itemize
14743
14744 \emph on
14745 letter
14746 \emph default
14747 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別な\SpecialCharNoPassThru LaTeX
14748 コマンドは必要ありません。しか
14749 し、
14750 \family sans
14751 文書\SpecialChar menuseparator
14752 設定
14753 \family default
14754 ダイアログでは、対応するラジオボタンは
14755 \family sans
14756 字下げ
14757 \family default
14758 に設定されています。
14759 \family sans
14760 垂直スペース
14761 \family default
14762 は、隙間を空けるために、文書に\SpecialCharNoPassThru LaTeX
14763 コマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
14764 \end_layout
14765
14766 \begin_layout Section
14767 Memoir
14768 \end_layout
14769
14770 \begin_layout Standard
14771
14772 \noun on
14773 Jürgen Spitzmüller
14774 \noun default
14775
14776 \end_layout
14777
14778 \begin_layout Subsection
14779 概観
14780 \end_layout
14781
14782 \begin_layout Standard
14783 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
14784 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
14785 す(以下参照)。
14786 \end_layout
14787
14788 \begin_layout Standard
14789 Memoir開発者であるPeter Wilsonは、\SpecialCharNoPassThru LaTeX
14790 の世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに
14791 統合されました。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、\SpecialCharNoPassThru LyX
14792 は、これらすべての素晴らしい機能を
14793 ネイティブでサポートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
14794 \begin_inset Foot
14795 status collapsed
14796
14797 \begin_layout Plain Layout
14798 もし提案があれば、ぜひ
14799 \begin_inset Flex URL
14800 status collapsed
14801
14802 \begin_layout Plain Layout
14803
14804 lyx-devel@lists.lyx.org
14805 \end_layout
14806
14807 \end_inset
14808
14809 までお送り下さい。
14810 \end_layout
14811
14812 \end_inset
14813
14814 、\SpecialCharNoPassThru LyX
14815 のフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブな\SpecialCharNoPassThru LaTeX
14816 コマンド(\SpecialCharNoPassThru TeX
14817
14818 ード
14819 \begin_inset Foot
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823 【参考】詳細は、第
14824 \begin_inset CommandInset ref
14825 LatexCommand ref
14826 reference "sec:LaTeXコードを挿入する"
14827
14828 \end_inset
14829
14830 節参照。
14831 \end_layout
14832
14833 \end_inset
14834
14835 )の助けを借りれば、全機能を使用できます。この節では、\SpecialCharNoPassThru LyX
14836 がネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)に
14837 ついては、Memoirクラスの詳しい取扱説明書
14838 \begin_inset Foot
14839 status collapsed
14840
14841 \begin_layout Plain Layout
14842 【参考】
14843 \begin_inset Flex URL
14844 status collapsed
14845
14846 \begin_layout Plain Layout
14847
14848 CTAN:/macros/latex/memoir/memman.pdf
14849 \end_layout
14850
14851 \end_inset
14852
14853
14854 \end_layout
14855
14856 \end_inset
14857
14858 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14859 た用例となっています。
14860 \end_layout
14861
14862 \begin_layout Subsection
14863 基本的な機能と制約
14864 \end_layout
14865
14866 \begin_layout Standard
14867 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14868 \end_layout
14869
14870 \begin_layout Description
14871 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14872 \end_layout
14873
14874 \begin_layout Description
14875 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、\SpecialCharNoPassThru LaTeX
14876 が混乱さ
14877 せられます)、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14878 \family sans
14879 文書\SpecialChar menuseparator
14880 設定\SpecialChar menuseparator
14881 ページレイアウト
14882 \family default
14883 参照)。これらを章題ページに使用したい場合には、コマンド
14884 \family typewriter
14885
14886 \backslash
14887 chapterstyle
14888 \family default
14889 を、本文またはプリアンブルに記述する必要があります(例えば、
14890 \family typewriter
14891
14892 \backslash
14893 chapterstyle{companion}
14894 \family default
14895 など)。
14896 \end_layout
14897
14898 \begin_layout Description
14899 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14900 ます(たとえば、タイトルが長すぎる場合などに用います)。\SpecialCharNoPassThru LyX
14901 では、章や節の始めで
14902 \family sans
14903 挿入\SpecialChar menuseparator
14904 短縮タイトル
14905 \family default
14906 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14907 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14908 のものにヘッダ用短縮タイトルを入れてください。
14909 \end_layout
14910
14911 \begin_layout Description
14912 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14913 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14914 \end_layout
14915
14916 \begin_layout Description
14917 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式)。タイトル頁に丁付けを行いた
14918 くない場合には、プリアンブルに
14919 \family typewriter
14920
14921 \backslash
14922 aliaspagestyle{title}{empty}
14923 \family default
14924 と入力してください。
14925 \end_layout
14926
14927 \begin_layout Description
14928 Article: クラスオプション
14929 \emph on
14930 article
14931 \emph default
14932 を用いる(
14933 \family sans
14934 文書\SpecialChar menuseparator
14935 設定\SpecialChar menuseparator
14936 クラスオプション
14937 \family default
14938 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14939 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14940 \end_layout
14941
14942 \begin_layout Description
14943 Oldfontcommands: \SpecialCharNoPassThru LaTeX
14944 旧2.09版で使用されていた旧いフォントコマンド(
14945 \family typewriter
14946
14947 \backslash
14948 rm
14949 \family default
14950
14951 \family typewriter
14952
14953 \backslash
14954 it
14955 \family default
14956 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発して\SpecialCharNoPassThru LaTeX
14957 を停止させます。しかし、
14958 クラスオプション
14959 \emph on
14960 oldfontcommands
14961 \emph default
14962 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくとも\SpecialCharNoPassThru LaTeX
14963 は停止しなくなります)。まだ、多くのパッ
14964 ケージと、就中多くのBib\SpecialCharNoPassThru TeX
14965 スタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14966 \end_layout
14967
14968 \begin_layout Subsection
14969 追加された機能
14970 \end_layout
14971
14972 \begin_layout Standard
14973 \SpecialCharNoPassThru LyX
14974 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14975 \begin_inset Foot
14976 status collapsed
14977
14978 \begin_layout Plain Layout
14979 \begin_inset Flex URL
14980 status collapsed
14981
14982 \begin_layout Plain Layout
14983
14984 CTAN:/macros/latex/memoir/memman.pdf
14985 \end_layout
14986
14987 \end_inset
14988
14989
14990 \end_layout
14991
14992 \end_inset
14993
14994 を見てください。
14995 \end_layout
14996
14997 \begin_layout Description
14998 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14999 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
15000 \end_layout
15001
15002 \begin_layout Description
15003 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
15004 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
15005 \end_layout
15006
15007 \begin_layout Description
15008 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
15009 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでも\SpecialCharNoPassThru LyX
15010 を少しだます必要があります。ここでは、2つの引数の間に、
15011 \emph on
15012 <標語>
15013 \family typewriter
15014 \emph default
15015 }{
15016 \family default
15017 \emph on
15018 <標語の著者>
15019 \emph default
15020 のように、(\SpecialCharNoPassThru TeX
15021 モードで)波括弧を入れなくてはなりません。
15022 \end_layout
15023
15024 \begin_layout Description
15025 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、\SpecialCharNoPassThru LyX
15026 は、そのうちいくつかしかサポートしていません。詩題はその一
15027 つです。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためには\SpecialCharNoPassThru TeX
15028 コー
15029 ドを使用しなくてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、\SpecialCharNoPassThru LyX
15030 ではそれができないためです)。
15031 \end_layout
15032
15033 \begin_layout Description
15034 詩題*: 目次に現れない他は詩題と同じです。
15035 \end_layout
15036
15037 \begin_layout Section
15038 Article (mwart)・book (mwbk)・report (mwrep)
15039 \begin_inset Argument status
15040 status collapsed
15041
15042 \begin_layout Plain Layout
15043 The 
15044 \family typewriter
15045 mw
15046 \family default
15047  Classes
15048 \end_layout
15049
15050 \end_inset
15051
15052
15053 \end_layout
15054
15055 \begin_layout Standard
15056
15057 \noun on
15058 Tomasz Luczak
15059 \noun default
15060
15061 \end_layout
15062
15063 \begin_layout Standard
15064 \SpecialCharNoPassThru LyX
15065 文書クラス
15066 \emph on
15067 article (mwart)
15068 \emph default
15069
15070 \emph on
15071 report (mwrep)・book
15072 \emph default
15073  
15074 \emph on
15075 (mwbk)
15076 \emph default
15077 は、それぞれ\SpecialCharNoPassThru LaTeX
15078 文書クラス
15079 \family typewriter
15080 mwart.cls
15081 \family default
15082
15083 \family typewriter
15084 mwrep.cls
15085 \family default
15086
15087 \family typewriter
15088 mwbk.cls
15089 \family default
15090 に対応しています。これらは、標準の
15091 \family typewriter
15092 article.cls
15093 \family default
15094
15095 \family typewriter
15096 report.cls
15097 \family default
15098
15099 \family typewriter
15100 book.cls
15101 \family default
15102 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
15103 \end_layout
15104
15105 \begin_layout Standard
15106 基本的な違いは、次の点です。
15107 \end_layout
15108
15109 \begin_layout Itemize
15110 付番のない見出し(
15111 \family sans
15112 節*
15113 \family default
15114 などの星付き)も目次に加えられます。
15115 \end_layout
15116
15117 \begin_layout Itemize
15118 以下のページスタイルの追加
15119 \begin_inset Separator parbreak
15120 \end_inset
15121
15122 \end_layout
15123
15124 \begin_deeper
15125 \begin_layout Description
15126 uheadings 分離線付きヘッダ
15127 \end_layout
15128
15129 \begin_layout Description
15130 myheadings 
15131 \family typewriter
15132
15133 \backslash
15134 markright
15135 \family default
15136 コマンドおよび
15137 \family typewriter
15138
15139 \backslash
15140 markboth
15141 \family default
15142 コマンドで設定するカスタムヘッダ
15143 \end_layout
15144
15145 \begin_layout Description
15146 myuheadings 分離線付きカスタムヘッダ
15147 \end_layout
15148
15149 \begin_layout Description
15150 outer ページの外側にページ番号
15151 \end_layout
15152
15153 \end_deeper
15154 \begin_layout Itemize
15155 オプション
15156 \begin_inset Separator parbreak
15157 \end_inset
15158
15159 \end_layout
15160
15161 \begin_deeper
15162 \begin_layout Description
15163 rmheadings セリフ体見出し \threehyphens
15164  既定
15165 \end_layout
15166
15167 \begin_layout Description
15168 sfheadings サンセリフ体見出し
15169 \end_layout
15170
15171 \begin_layout Description
15172 authortitle タイトルページは、著者名・タイトルの順で配置 \threehyphens
15173  既定
15174 \end_layout
15175
15176 \begin_layout Description
15177 titleauthor タイトルページは、タイトル・著者名の順で配置
15178 \end_layout
15179
15180 \begin_layout Description
15181 withmarginpar ページ上に余白のための場所を確保
15182 \end_layout
15183
15184 \end_deeper
15185 \begin_layout Section
15186 Paper
15187 \end_layout
15188
15189 \begin_layout Standard
15190
15191 \family sans
15192 paper
15193 \family default
15194 文書クラスは標準
15195 \family sans
15196 article
15197 \family default
15198 クラスの代替となるものです。これは
15199 \family sans
15200 同様の
15201 \family default
15202 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
15203 \end_layout
15204
15205 \begin_layout Section
15206 Rev\SpecialCharNoPassThru TeX
15207 4
15208 \end_layout
15209
15210 \begin_layout Standard
15211 by 
15212 \noun on
15213 Amir Karger
15214 \end_layout
15215
15216 \begin_layout Standard
15217 \begin_inset VSpace bigskip
15218 \end_inset
15219
15220
15221 \end_layout
15222
15223 \begin_layout Standard
15224 \noindent
15225
15226 \family sans
15227 Revtex
15228 \begin_inset space ~
15229 \end_inset
15230
15231 4
15232 \family default
15233 テキストクラスは、アメリカ物理学会のRev\SpecialCharNoPassThru TeX
15234  4.0(1999年5月の
15235 \begin_inset Formula $\beta$
15236 \end_inset
15237
15238 リリース)クラスで動作します。
15239 \end_layout
15240
15241 \begin_layout Standard
15242 \SpecialCharNoPassThru LyX
15243 には、Rev\SpecialCharNoPassThru TeX
15244  3.1で動作する
15245 \family sans
15246 Revtex
15247 \family default
15248 テキストクラスもあります。しかしながら、第3.1版は\SpecialCharNoPassThru LaTeX
15249  2.09で動作するものであり、基本的に時代遅れなものになっています。\SpecialCharNoPassThru LyX
15250 は\SpecialCharNoPassThru LaTeX2e
15251 を必要とす
15252 ることから、第3.1版は\SpecialCharNoPassThru LyX
15253 とうまく協調しないことを意味しますが、動作するようには調整してあります。Rev\SpecialCharNoPassThru TeX
15254  4.0は、\SpecialCharNoPassThru LaTeX2e
15255 で素直に動作するようにデ
15256 ザインされているので、\SpecialCharNoPassThru LyX
15257
15258 \family sans
15259 Rev\SpecialCharNoPassThru TeX
15260 \begin_inset space ~
15261 \end_inset
15262
15263 4
15264 \family default
15265 テキストクラスの組で使用するのは、たいへん簡単です。
15266 \end_layout
15267
15268 \begin_layout Standard
15269 この取扱説明書は、Rev\SpecialCharNoPassThru TeX
15270  4.0の説明書の
15271 \emph on
15272 補完
15273 \emph default
15274 として使用されることを前提としています。したがって、ここではRev\SpecialCharNoPassThru TeX
15275 固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとし
15276 て説明します。
15277 \end_layout
15278
15279 \begin_layout Subsection
15280 導入
15281 \end_layout
15282
15283 \begin_layout Standard
15284 Rev\SpecialCharNoPassThru TeX
15285  4パッケージのREADMEファイルにあるとおり、ともかくRev\SpecialCharNoPassThru TeX
15286  4を導入しなくてはなりません。パッケージは、The Rev\SpecialCharNoPassThru TeX
15287  4 Web Site 
15288 \begin_inset Flex URL
15289 status collapsed
15290
15291 \begin_layout Plain Layout
15292
15293 http://publish.aps.org/revtex4/
15294 \end_layout
15295
15296 \end_inset
15297
15298 から入手することができます。これを\SpecialCharNoPassThru LaTeX
15299 が検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのと
15300 は異なるディレクトリ)で簡単なRev\SpecialCharNoPassThru TeX
15301  4文書を \SpecialCharNoPassThru LaTeX
15302 でコンパイルできるかどうか確認してください。この後、\SpecialCharNoPassThru LyX
15303 を環境構成すると、クラスファイルを検出
15304 し、Rev\SpecialCharNoPassThru TeX
15305 4テキストクラスが使用できるようになるはずです。
15306 \end_layout
15307
15308 \begin_layout Standard
15309 使い始めるには、
15310 \family typewriter
15311 tex2lyx
15312 \family default
15313 を使ってRev\SpecialCharNoPassThru TeX
15314  4文書を読み込むか、またはひな型ディレクトリにある
15315 \family sans
15316 Revtex
15317 \begin_inset space ~
15318 \end_inset
15319
15320 4
15321 \family default
15322 のひな型を使うのが、おそらく一番簡単な方法でしょう。
15323 \end_layout
15324
15325 \begin_layout Subsection
15326 プリアンブルに関すること
15327 \end_layout
15328
15329 \begin_layout Standard
15330
15331 \family typewriter
15332
15333 \backslash
15334 documentclass
15335 \family default
15336 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
15337 \family sans
15338 文書\SpecialChar menuseparator
15339 設定\SpecialChar menuseparator
15340 文書クラス
15341 \family default
15342
15343 \family sans
15344 クラスオプション
15345 \family default
15346 フィールドに入れます。Rev\SpecialCharNoPassThru TeX
15347 では、少なくとも一つの非必須引数が必要なことに注意してください。
15348 \end_layout
15349
15350 \begin_layout Standard
15351
15352 \family typewriter
15353
15354 \backslash
15355 draft
15356 \family default
15357 など他のプリアンブルは、他のクラス同様、
15358 \family sans
15359 文書\SpecialChar menuseparator
15360 設定\SpecialChar menuseparator
15361 \SpecialCharNoPassThru LaTeX
15362 プリアンブル
15363 \family default
15364 に入れてください。
15365 \end_layout
15366
15367 \begin_layout Subsection
15368 レイアウト
15369 \end_layout
15370
15371 \begin_layout Standard
15372 レイアウトは、基本的にRev\SpecialCharNoPassThru TeX
15373 4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
15374 \family typewriter
15375
15376 \backslash
15377 email{}
15378 \family default
15379 に対応しています。(少なくともRev\SpecialCharNoPassThru TeX
15380  4.0 Beta現在では)
15381 \family sans
15382 住所
15383 \family default
15384
15385 \family sans
15386 所属
15387 \family default
15388 はまったく同じものなので、両方を使う必要はありません
15389 \begin_inset Foot
15390 status collapsed
15391
15392 \begin_layout Plain Layout
15393 ついでながら、
15394 \family typewriter
15395 tex2lyx
15396 \family default
15397 は両方とも対応しているので、
15398 \family typewriter
15399
15400 \backslash
15401 address
15402 \family default
15403
15404 \family typewriter
15405
15406 \backslash
15407 affiliation
15408 \family default
15409 のどちらも翻訳することができます。
15410 \end_layout
15411
15412 \end_inset
15413
15414
15415 \end_layout
15416
15417 \begin_layout Subsection
15418 重要な注意
15419 \end_layout
15420
15421 \begin_layout Standard
15422 Rev\SpecialCharNoPassThru TeX
15423  4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、\SpecialCharNoPassThru LyX
15424 ではさらに気をつけなくてはなりません。
15425 \end_layout
15426
15427 \begin_layout Standard
15428 Rev\SpecialCharNoPassThru TeX
15429 では、
15430 \family typewriter
15431
15432 \backslash
15433 thanks
15434 \family default
15435 コマンドは、
15436 \family typewriter
15437
15438 \backslash
15439 author
15440 \family default
15441 コマンドの
15442 \emph on
15443 外側
15444 \emph default
15445 に来なくてはなりません。\SpecialCharNoPassThru LyX
15446 では、独立した
15447 \family sans
15448 感謝
15449 \family default
15450 レイアウトがこの働きをします。直接
15451 \family sans
15452 、著者
15453 \family default
15454 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、Rev\SpecialCharNoPassThru TeX
15455  4の取扱説明書をご覧ください。
15456 \end_layout
15457
15458 \begin_layout Standard
15459 また、
15460 \family sans
15461 著者電子メール
15462 \family default
15463
15464 \family sans
15465 著者URL・感謝(thanks)
15466 \family default
15467 レイアウトは、
15468 \family sans
15469 著者
15470 \family default
15471 レイアウトと
15472 \family sans
15473 住所(
15474 \family default
15475 または同等の
15476 \family sans
15477 所属
15478 \family default
15479 )レイアウトの間に置かなければなりません。
15480 \family sans
15481 感謝(thanks)
15482 \family default
15483
15484 \family sans
15485 住所
15486 \family default
15487 の後に置いてしまうと、\SpecialCharNoPassThru LaTeX
15488 はコンパイルに失敗します。
15489 \end_layout
15490
15491 \begin_layout Subsection
15492 問題点
15493 \end_layout
15494
15495 \begin_layout Standard
15496 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
15497 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルを\SpecialCharNoPassThru LaTeX
15498 ファイル
15499 に変換した後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使って\SpecialCharNoPassThru LaTeX
15500 ファイルを編集し、非必須引数を書き加えなくては
15501 ならないということです。これらのレイアウトがないと、
15502 \family typewriter
15503
15504 \backslash
15505 altaffiliation
15506 \family default
15507 (またそれと同等な
15508 \family typewriter
15509
15510 \backslash
15511 altaddress
15512 \family default
15513 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
15514 \begin_inset Foot
15515 status collapsed
15516
15517 \begin_layout Plain Layout
15518
15519 \emph on
15520 JMarcからの註:
15521 \emph default
15522  実は、\SpecialCharNoPassThru LyX
15523  1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
15524 \end_layout
15525
15526 \end_inset
15527
15528
15529 \end_layout
15530
15531 \begin_layout Section
15532 Springer学術誌(
15533 \family sans
15534 svjour)
15535 \end_layout
15536
15537 \begin_layout Standard
15538
15539 \noun on
15540 Martin Vermeer
15541 \noun default
15542
15543 \end_layout
15544
15545 \begin_layout Subsection
15546 説明
15547 \end_layout
15548
15549 \begin_layout Standard
15550 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
15551 \begin_inset Flex URL
15552 status collapsed
15553
15554 \begin_layout Plain Layout
15555
15556 http://www.springer.de/author/tex/help-journals.html
15557 \end_layout
15558
15559 \end_inset
15560
15561 に必要なクラスファイル(\SpecialCharNoPassThru LaTeX2e
15562 用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共
15563 通部分は
15564 \family typewriter
15565 svjour.inc
15566 \family default
15567 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15568 \family typewriter
15569 svjog.layout
15570 \family default
15571 など)から取り込むことができます。
15572 \end_layout
15573
15574 \begin_layout Standard
15575 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
15576 \family typewriter
15577 svjog.layout
15578 \family default
15579 に書かれている指示に従って、自作の
15580 \family typewriter
15581 sv
15582 \family default
15583 <学術誌名>
15584 \family typewriter
15585 .layout
15586 \family default
15587 を書くだけで良いことを意味します。
15588 \end_layout
15589
15590 \begin_layout Standard
15591 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
15592 \family typewriter
15593 svjour
15594 \family default
15595
15596 \family typewriter
15597 svjog
15598 \family default
15599 は、標準\SpecialCharNoPassThru LyX
15600 頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、\SpecialCharNoPassThru LaTeX
15601 を再設定した後(teT
15602 eXの場合は、必要に応じてroot権限で
15603 \family typewriter
15604 texhash
15605 \family default
15606 を実行します)、\SpecialCharNoPassThru LyX
15607 を環境構成すれば、動作するはずです。
15608 \end_layout
15609
15610 \begin_layout Subsection
15611 新スタイル
15612 \end_layout
15613
15614 \begin_layout Standard
15615 多くの定理環境 \threehyphens
15616  
15617 \family sans
15618 主張
15619 \family default
15620
15621 \family sans
15622 推論
15623 \family default
15624 ・\SpecialChar ldots
15625
15626 \family sans
15627 定理
15628 \family default
15629
15630 \end_layout
15631
15632 \begin_layout Standard
15633
15634 \family sans
15635 ヘッドノート
15636 \family default
15637
15638 \family sans
15639 献呈
15640 \family default
15641
15642 \family sans
15643 サブタイトル・ヘッダ用\SpecialCharNoPassThru LaTeX
15644 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(ackno
15645 wledgement)
15646 \family default
15647 。詳しくは Springerのクラスファイルの説明書を読んでください。
15648 \end_layout
15649
15650 \begin_layout Subsection
15651 サポートしているジャーナル
15652 \end_layout
15653
15654 \begin_layout Itemize
15655
15656 \emph on
15657 Journal of Geodesy
15658 \emph default
15659
15660 \family typewriter
15661 svjog.layout
15662 \family default
15663  \threehyphens
15664  Martin Vermeer
15665 \end_layout
15666
15667 \begin_layout Itemize
15668
15669 \emph on
15670 Probability Theory and Related Fields
15671 \emph default
15672
15673 \family typewriter
15674 svprobth.layout
15675 \family default
15676  \threehyphens
15677  Jean-Marc Lasgouttes
15678 \end_layout
15679
15680 \begin_layout Standard
15681 あなた自身のレイアウトファイルをつくってください。難しくはありません。
15682 \end_layout
15683
15684 \begin_layout Subsection
15685 Credits
15686 \end_layout
15687
15688 \begin_layout Standard
15689 これらのファイルは、以前の 
15690 \family typewriter
15691 ejour2.layout
15692 \family default
15693 をもとにしています。
15694 \family typewriter
15695 ejour2.layout
15696 \family default
15697 は Springerの\SpecialCharNoPassThru LaTeX
15698  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Mar
15699 c Lasgouttesのおかげで \SpecialCharNoPassThru LyX
15700 のレイアウトファイルのメカニズムをよりよく理解することができました。
15701 \end_layout
15702
15703 \begin_layout Subsection
15704 バグ
15705 \end_layout
15706
15707 \begin_layout Standard
15708 多分あります。以前の 
15709 \family typewriter
15710 ejour2
15711 \family default
15712 よりは少なくなっているとは思いますが。
15713 \end_layout
15714
15715 \begin_layout Standard
15716 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
15717 \end_layout
15718
15719 \begin_layout Section
15720 Slides (別名
15721 \noun on
15722 Sli\SpecialCharNoPassThru TeX
15723 \noun default
15724 )
15725 \begin_inset Foot
15726 status collapsed
15727
15728 \begin_layout Plain Layout
15729 (訳註)この節の内容は、全般的に古くなっています。
15730 \end_layout
15731
15732 \end_inset
15733
15734
15735 \begin_inset CommandInset label
15736 LatexCommand label
15737 name "sec:slitex"
15738
15739 \end_inset
15740
15741
15742 \end_layout
15743
15744 \begin_layout Standard
15745
15746 \noun on
15747 John Weiss
15748 \noun default
15749
15750 \end_layout
15751
15752 \begin_layout Subsection
15753 はじめに
15754 \end_layout
15755
15756 \begin_layout Standard
15757 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、\SpecialCharNoPassThru LyX
15758 をどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
15759 \family sans
15760 Foil\SpecialCharNoPassThru TeX
15761 \family default
15762 スライドクラスの2つがあります。本節は前者について説明を行います。
15763 \end_layout
15764
15765 \begin_layout Standard
15766 誤解のないように、正しく明確に、もう一度言っておきます。
15767 \end_layout
15768
15769 \begin_layout Standard
15770 \begin_inset VSpace bigskip
15771 \end_inset
15772
15773
15774 \end_layout
15775
15776 \begin_layout Standard
15777 \align center
15778
15779 \size large
15780 本節は文書クラス
15781 \begin_inset Quotes eld
15782 \end_inset
15783
15784
15785 \family sans
15786 transparencies (slides)
15787 \family default
15788
15789 \begin_inset Quotes erd
15790 \end_inset
15791
15792
15793 \emph on
15794 のみ
15795 \emph default
15796 を説明しています。
15797 \end_layout
15798
15799 \begin_layout Standard
15800 \begin_inset VSpace bigskip
15801 \end_inset
15802
15803
15804 \end_layout
15805
15806 \begin_layout Standard
15807
15808 \family sans
15809 「slides (Foil\SpecialCharNoPassThru TeX
15810 )
15811 \family default
15812 」の説明をお探しならば、第
15813 \begin_inset CommandInset ref
15814 LatexCommand ref
15815 reference "sec:foiltex"
15816
15817 \end_inset
15818
15819 節をご覧ください。
15820 \family sans
15821 foils
15822 \family default
15823 クラス「
15824 \family sans
15825 slides (Foil\SpecialCharNoPassThru TeX
15826 )
15827 \family default
15828 」は、実際、本節で説明している既定
15829 \family sans
15830 slides
15831 \family default
15832 クラスよりも良いようです
15833 \begin_inset Foot
15834 status collapsed
15835
15836 \begin_layout Plain Layout
15837 \SpecialChar ldots
15838
15839 \family sans
15840 Foil\SpecialCharNoPassThru TeX
15841 \family default
15842 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
15843 \end_layout
15844
15845 \end_inset
15846
15847
15848 \end_layout
15849
15850 \begin_layout Standard
15851 このクラスは、旧SLI\SpecialCharNoPassThru TeX
15852 パッケージを\SpecialCharNoPassThru LaTeX2e
15853 用に改良したものです。\SpecialCharNoPassThru LaTeX2e
15854 頒布版すべてが、このクラス(以下では単に「
15855 \family sans
15856 slides
15857 \family default
15858 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
15859 \family sans
15860 foils
15861 \family default
15862 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
15863 他のクラスにはできないが
15864 \family sans
15865 slides
15866 \family default
15867 ならばできることもあります。詳しくは以下をお読みください。
15868 \end_layout
15869
15870 \begin_layout Subsection
15871 使い始めるには
15872 \begin_inset CommandInset label
15873 LatexCommand label
15874 name "sec:slidesetup"
15875
15876 \end_inset
15877
15878
15879 \end_layout
15880
15881 \begin_layout Standard
15882 当然ながら、この文書クラスを使用するには、
15883 \family sans
15884 文書\SpecialChar menuseparator
15885 設定
15886 \family default
15887 ダイアログのクラスリストから「
15888 \family sans
15889 transparencies (slides)
15890 \family default
15891 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
15892 \end_layout
15893
15894 \begin_layout Itemize
15895
15896 \family sans
15897 用紙方向
15898 \family default
15899
15900 \family sans
15901 二段組文書
15902 \family default
15903 の各オプションは、あえて変更する必要はありません。これらのオプションは、
15904 \family sans
15905 slides
15906 \family default
15907 クラスではサポートされていないので、効果がありません。
15908 \end_layout
15909
15910 \begin_layout Itemize
15911
15912 \family sans
15913 ヘディング様式
15914 \family default
15915 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15916 \family default
15917 \begin_inset Separator parbreak
15918 \end_inset
15919
15920 \end_layout
15921
15922 \begin_deeper
15923 \begin_layout Description
15924 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15925 \end_layout
15926
15927 \begin_layout Description
15928 設定(headings)
15929 \family sans
15930  プレーン(plain)
15931 \family default
15932 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15933 \end_layout
15934
15935 \begin_layout Description
15936 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15937 \end_layout
15938
15939 \end_deeper
15940 \begin_layout Itemize
15941
15942 \family sans
15943 slides
15944 \family default
15945 クラスには、もう一つ
15946 \family typewriter
15947 clock
15948 \family default
15949 というオプションがあります。これを使用するには、
15950 \family sans
15951 クラスオプション
15952 \family default
15953 に「
15954 \family typewriter
15955 clock
15956 \family default
15957 」と入力してください。
15958 \family default
15959 \begin_inset Separator parbreak
15960 \end_inset
15961
15962 \end_layout
15963
15964 \begin_deeper
15965 \begin_layout Standard
15966 このオプションを使うと、
15967 \family sans
15968 注釈
15969 \family default
15970 にタイムマーカーを加えることができます。詳細は、第
15971 \begin_inset CommandInset ref
15972 LatexCommand ref
15973 reference "sec:スライド注釈"
15974
15975 \end_inset
15976
15977 節をご覧ください。
15978 \end_layout
15979
15980 \end_deeper
15981 \begin_layout Standard
15982
15983 \family sans
15984 slides
15985 \family default
15986 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15987 \family typewriter
15988 slides.lyx
15989 \family default
15990 」を使用することもできます(新規ファイルを開く際に
15991 \family sans
15992 ファイル\SpecialChar menuseparator
15993 新規(ひな型使用)
15994 \family default
15995 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
15996 \end_layout
15997
15998 \begin_layout Subsection
15999 段落環境
16000 \end_layout
16001
16002 \begin_layout Subsubsection
16003
16004 \family sans
16005 サポートされている環境
16006 \end_layout
16007
16008 \begin_layout Standard
16009 新しく
16010 \family sans
16011 slides
16012 \family default
16013 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
16014 \family sans
16015 サンセリフ体
16016 \family default
16017 フォントの
16018 \family sans
16019 極大
16020 \family default
16021 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
16022 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
16023 \end_layout
16024
16025 \begin_layout Standard
16026 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
16027 ます。これは、
16028 \family sans
16029 slides
16030 \family default
16031 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
16032 \end_layout
16033
16034 \begin_layout Itemize
16035
16036 \family sans
16037 標準
16038 \end_layout
16039
16040 \begin_layout Itemize
16041
16042 \family sans
16043 箇条書き(記号)
16044 \end_layout
16045
16046 \begin_layout Itemize
16047
16048 \family sans
16049 箇条書き(連番)
16050 \end_layout
16051
16052 \begin_layout Itemize
16053
16054 \family sans
16055 箇条書き(記述)
16056 \end_layout
16057
16058 \begin_layout Itemize
16059
16060 \family sans
16061 箇条書き(一覧)
16062 \end_layout
16063
16064 \begin_layout Itemize
16065
16066 \family sans
16067 引用(字下げあり)
16068 \end_layout
16069
16070 \begin_layout Itemize
16071
16072 \family sans
16073 引用(字下げなし)
16074 \end_layout
16075
16076 \begin_layout Itemize
16077
16078 \family sans
16079 詩句
16080 \end_layout
16081
16082 \begin_layout Itemize
16083
16084 \family sans
16085 キャプション
16086 \end_layout
16087
16088 \begin_layout Itemize
16089
16090 \family sans
16091 \SpecialCharNoPassThru LyX
16092 コード
16093 \end_layout
16094
16095 \begin_layout Itemize
16096
16097 \family sans
16098 コメント
16099 \end_layout
16100
16101 \begin_layout Standard
16102 これ以外の標準的な環境、例えば節見出し用の環境などは
16103 \family sans
16104 slides
16105 \family default
16106 クラスでは使えません。
16107 \end_layout
16108
16109 \begin_layout Standard
16110 一方、以下の新しい環境があります。
16111 \end_layout
16112
16113 \begin_layout Itemize
16114
16115 \family sans
16116 スライド
16117 \end_layout
16118
16119 \begin_layout Itemize
16120
16121 \family sans
16122 オーバーレイ
16123 \end_layout
16124
16125 \begin_layout Itemize
16126
16127 \family sans
16128 注釈
16129 \end_layout
16130
16131 \begin_layout Itemize
16132
16133 \family sans
16134 不可視文
16135 \end_layout
16136
16137 \begin_layout Itemize
16138
16139 \family sans
16140 可視文
16141 \end_layout
16142
16143 \begin_layout Standard
16144 これら5つの環境は、\SpecialCharNoPassThru LyX
16145 の「機能」のために使い方に癖があります。ご存じのように、\SpecialCharNoPassThru LyX
16146 では、空の段落環境に他の環境を入れることができません。それ自体は素晴らし
16147 いデザインなのですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「\SpecialCharNoPassThru LaTeX
16148 マジック」が必要に
16149 なります。
16150 \end_layout
16151
16152 \begin_layout Subsubsection
16153 新環境の癖
16154 \begin_inset CommandInset label
16155 LatexCommand label
16156 name "sec:スライドの癖"
16157
16158 \end_inset
16159
16160
16161 \end_layout
16162
16163 \begin_layout Standard
16164 5つの新しい環境にはすべて、\SpecialCharNoPassThru LyX
16165 現行版の制約に由来する癖があります。いま述べたように、\SpecialCharNoPassThru LyX
16166 では、環境を別の環境で開始することが禁止されています。これを回避す
16167 るために、
16168 \family sans
16169 スライド
16170 \family default
16171 環境は『
16172 \emph on
16173 ユーザーの手引き
16174 \emph default
16175 』で述べられているような段落環境ではなくなっています。
16176 \end_layout
16177
16178 \begin_layout Standard
16179
16180 \family sans
16181 スライド
16182 \family default
16183
16184 \family sans
16185 オーバーレイ
16186 \family default
16187
16188 \family sans
16189 注釈
16190 \family default
16191 は「疑似環境」だとお考えください。これらは節見出しや「
16192 \family sans
16193 キャプション
16194 \family default
16195 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
16196 \family sans
16197 不可視文
16198 \family default
16199
16200 \family sans
16201 可視文
16202 \family default
16203 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
16204 \end_layout
16205
16206 \begin_layout Standard
16207
16208 \family sans
16209 スライド
16210 \family default
16211
16212 \family sans
16213 オーバーレイ
16214 \family default
16215
16216 \family sans
16217 注釈
16218 \family default
16219
16220 \family sans
16221 不可視文
16222 \family default
16223
16224 \family sans
16225 可視文
16226 \family default
16227 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
16228 \family sans
16229 スライド
16230 \family default
16231
16232 \family sans
16233 オーバーレイ
16234 \family default
16235
16236 \family sans
16237 注釈
16238 \family default
16239
16240 \family sans
16241 不可視文
16242 \family default
16243
16244 \family sans
16245 可視文
16246 \family default
16247 では、まったく意味がなく、\SpecialCharNoPassThru LyX
16248 はこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
16249 \end_layout
16250
16251 \begin_layout Standard
16252 長めのラベルの後に文章を入れる
16253 \emph on
16254 必要は
16255 \emph default
16256 まったく
16257 \emph on
16258 ない
16259 \emph default
16260 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
16261
16262 \family sans
16263 Return
16264 \family default
16265 を押してください。
16266 \end_layout
16267
16268 \begin_layout Standard
16269 一方、説明文を入れたくない場合には、\SpecialCharNoPassThru LyX
16270 の制約に直面します。自然が真空を憎むように、\SpecialCharNoPassThru LyX
16271 では、古い環境に何かを置くまでは、その中に新しい環境を入れることがで
16272 きません。そこで以下のようにしてください。
16273 \end_layout
16274
16275 \begin_layout Itemize
16276 新しい
16277 \family sans
16278 スライド
16279 \family default
16280
16281 \family sans
16282 オーバーレイ
16283 \family default
16284
16285 \family sans
16286 注釈
16287 \family default
16288
16289 \family sans
16290 不可視文
16291 \family default
16292
16293 \family sans
16294 可視文
16295 \family default
16296
16297 \emph on
16298 中に入れる
16299 \emph default
16300 文章を入力してください。
16301 \end_layout
16302
16303 \begin_layout Itemize
16304 段落の先頭に移動します。
16305 \end_layout
16306
16307 \begin_layout Itemize
16308 次に
16309 \family sans
16310 Return
16311 \family default
16312 を押します。
16313 \end_layout
16314
16315 \begin_layout Itemize
16316 最後に、この新しい空の段落を
16317 \family sans
16318 スライド
16319 \family default
16320
16321 \family sans
16322 オーバーレイ
16323 \family default
16324
16325 \family sans
16326 注釈
16327 \family default
16328
16329 \family sans
16330 不可視文
16331 \family default
16332
16333 \family sans
16334 可視文
16335 \family default
16336 に変更します。
16337 \end_layout
16338
16339 \begin_layout Standard
16340 将来の\SpecialCharNoPassThru LyX
16341 では、このような癖が解決されることを祈っています\SpecialChar ldots
16342
16343 \begin_inset Foot
16344 status collapsed
16345
16346 \begin_layout Plain Layout
16347 (訳註)ここの記述は古くなっています。
16348 \end_layout
16349
16350 \end_inset
16351
16352
16353 \end_layout
16354
16355 \begin_layout Subsection
16356
16357 \family sans
16358 スライド
16359 \family default
16360
16361 \family sans
16362 オーバーレイ
16363 \family default
16364
16365 \family sans
16366 注釈で発表用のスライドを作る
16367 \end_layout
16368
16369 \begin_layout Subsubsection
16370
16371 \family sans
16372 スライド
16373 \family default
16374 環境を使う
16375 \end_layout
16376
16377 \begin_layout Standard
16378 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
16379 料を準備するうえで
16380 \family sans
16381 slides
16382 \family default
16383 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれも\SpecialCharNoPassThru LyX
16384 の哲学です)。
16385 \end_layout
16386
16387 \begin_layout Standard
16388
16389 \family sans
16390 スライド
16391 \family default
16392 環境を選択すれば(方法は第
16393 \begin_inset CommandInset ref
16394 LatexCommand ref
16395 reference "sec:スライドの癖"
16396
16397 \end_inset
16398
16399 節参照のこと)、\SpecialCharNoPassThru LyX
16400 は新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境
16401 や段落環境は、すべて新規スライドに入ります。簡単ですよね。
16402 \end_layout
16403
16404 \begin_layout Standard
16405 Slidesは、おそらく\SpecialCharNoPassThru LyX
16406 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16407 \family sans
16408 段落レイアウト
16409 \family default
16410 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16411 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
16412 、一枚に収まらないスライドでは、
16413 \family sans
16414 オーバーレイ
16415 \family default
16416 を使用すると干渉する恐れがあります。
16417 \end_layout
16418
16419 \begin_layout Standard
16420
16421 \family sans
16422 オーバーレイ
16423 \family default
16424 環境と
16425 \family sans
16426 注釈
16427 \family default
16428 環境も、
16429 \family sans
16430 スライド
16431 \family default
16432 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
16433 \noun on
16434 新規オーバーレイ
16435 \noun default
16436 :」ないし「
16437 \noun on
16438 新規注釈:
16439 \noun default
16440 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
16441 \end_layout
16442
16443 \begin_layout Standard
16444
16445 \family sans
16446 スライド
16447 \family default
16448 と同様に、
16449 \family sans
16450 オーバーレイ
16451 \family default
16452
16453 \family sans
16454 注釈
16455 \family default
16456 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
16457 \family sans
16458 注釈
16459 \family default
16460
16461 \family sans
16462 オーバーレイ
16463 \family default
16464 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
16465 \end_layout
16466
16467 \begin_layout Subsubsection
16468
16469 \family sans
16470 スライドでオーバーレイを使用する
16471 \end_layout
16472
16473 \begin_layout Standard
16474
16475 \family sans
16476 オーバーレイ
16477 \family default
16478 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
16479 \family sans
16480 スライド
16481 \family default
16482 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
16483 \family sans
16484 スライド
16485 \family default
16486 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
16487 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
16488 \family sans
16489 オーバーレイ
16490 \family default
16491 環境を使えば、もっと楽になります。
16492 \end_layout
16493
16494 \begin_layout Standard
16495
16496 \family sans
16497 オーバーレイ
16498 \family default
16499 は、「親」
16500 \family sans
16501 スライド
16502 \family default
16503 のページ番号を引継ぎ、その後に「
16504 \family typewriter
16505 -a
16506 \family default
16507 」を付け加えます
16508 \begin_inset Foot
16509 status collapsed
16510
16511 \begin_layout Plain Layout
16512 想像できるように、複数のオーバーレイがあれば、「
16513 \family typewriter
16514 -a
16515 \family default
16516 」「
16517 \family typewriter
16518 -b
16519 \family default
16520 」「
16521 \family typewriter
16522 -c
16523 \family default
16524 」などが親スライドのページ番号に付け加えられます。
16525 \end_layout
16526
16527 \end_inset
16528
16529 。当然のことながら、
16530 \family sans
16531 スライド
16532 \family default
16533
16534 \family sans
16535 オーバーレイ
16536 \family default
16537 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
16538 \family sans
16539 オーバーレイ
16540 \family default
16541
16542 \family sans
16543 スライド
16544 \family default
16545 の「一部」であると考えるのがよいでしょう。\SpecialCharNoPassThru LyX
16546 では、
16547 \family sans
16548 オーバーレイ
16549 \family default
16550 のラベルを
16551 \family sans
16552 スライド
16553 \family default
16554 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
16555 \family sans
16556 オーバーレイ
16557 \family default
16558 と親
16559 \family sans
16560 スライド
16561 \family default
16562 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
16563 \end_layout
16564
16565 \begin_layout Standard
16566 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
16567 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
16568 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
16569 \family sans
16570 不可視文
16571 \family default
16572
16573 \family sans
16574 可視文
16575 \family default
16576 を使用する方法があります。
16577 \end_layout
16578
16579 \begin_layout Standard
16580 これらの名前が意味するとおり、
16581 \family sans
16582 不可視文
16583 \family default
16584
16585 \family sans
16586 可視文
16587 \family default
16588 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
16589 \begin_inset CommandInset ref
16590 LatexCommand ref
16591 reference "sec:スライドの癖"
16592
16593 \end_inset
16594
16595 節で述べたように、この2つの環境の
16596 \emph on
16597
16598 \emph default
16599 には何も置くことができません。
16600 \family sans
16601 不可視文
16602 \family default
16603 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
16604 \family sans
16605 スライド
16606 \family default
16607 (あるいは
16608 \family sans
16609 オーバーレイ
16610 \family default
16611 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
16612 \end_layout
16613
16614 \begin_layout Standard
16615
16616 \family sans
16617 可視文
16618 \family default
16619 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
16620 \family sans
16621 スライド
16622 \family default
16623
16624 \family sans
16625 オーバーレイ
16626 \family default
16627
16628 \family sans
16629 注釈
16630 \family default
16631 を開始すると、
16632 \family sans
16633 不可視文
16634 \family default
16635 は自動的に終了されることに注意してください。したがって、
16636 \family sans
16637 スライド
16638 \family default
16639 の終わりでは、
16640 \family sans
16641 可視文
16642 \family default
16643 を使用する必要はありません。
16644 \end_layout
16645
16646 \begin_layout Standard
16647 ここまでで、
16648 \family sans
16649 スライド
16650 \family default
16651
16652 \family sans
16653 オーバーレイ
16654 \family default
16655 上で
16656 \family sans
16657 不可視文
16658 \family default
16659
16660 \family sans
16661 可視文
16662 \family default
16663 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
16664 \end_layout
16665
16666 \begin_layout Enumerate
16667 メインのスライドか
16668 \family sans
16669 オーバーレイ
16670 \family default
16671 かに関わらず、スライド上に現れるすべてを含んだ
16672 \family sans
16673 スライド
16674 \family default
16675 を作成します。
16676 \end_layout
16677
16678 \begin_layout Enumerate
16679
16680 \family sans
16681 オーバーレイ
16682 \family default
16683 のみに表示するすべての図や段落の前に、
16684 \family sans
16685 不可視文
16686 \family default
16687 環境を挿入し、必要ならば、
16688 \family sans
16689 オーバーレイ
16690 \family default
16691 のみの文章の後に
16692 \family sans
16693 可視文
16694 \family default
16695 環境を挿入します。
16696 \end_layout
16697
16698 \begin_layout Enumerate
16699
16700 \family sans
16701 スライド
16702 \family default
16703 の直後から、
16704 \family sans
16705 オーバーレイ
16706 \family default
16707 を開始します。
16708 \end_layout
16709
16710 \begin_layout Enumerate
16711 この
16712 \family sans
16713 スライド
16714 \family default
16715 の内容を
16716 \family sans
16717 オーバーレイ
16718 \family default
16719 にコピーします。
16720 \end_layout
16721
16722 \begin_layout Enumerate
16723
16724 \family sans
16725 オーバーレイ
16726 \family default
16727 内部の
16728 \family sans
16729 不可視文
16730 \family default
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 \end_layout
16745
16746 \begin_layout Standard
16747 これだけです。これで
16748 \family sans
16749 オーバーレイ
16750 \family default
16751 ができあがりました。
16752 \end_layout
16753
16754 \begin_layout Standard
16755 \SpecialCharNoPassThru LyX
16756  
16757 \family sans
16758 slides
16759 \family default
16760 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
16761 実現するためには、\SpecialCharNoPassThru LaTeX
16762 コードを埋め込む必要があります
16763 \begin_inset Foot
16764 status collapsed
16765
16766 \begin_layout Plain Layout
16767 このコマンドは、
16768 \end_layout
16769
16770 \begin_layout Itemize
16771
16772 \family typewriter
16773 {
16774 \backslash
16775 invisible \SpecialChar ldots
16776  }
16777 \end_layout
16778
16779 \begin_layout Itemize
16780
16781 \family typewriter
16782 {
16783 \backslash
16784 visible \SpecialChar ldots
16785  }
16786 \end_layout
16787
16788 \begin_layout Plain Layout
16789 \SpecialChar ldots
16790 のような形となり、\SpecialCharNoPassThru TeX
16791 としてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
16792 \family typewriter
16793
16794 \backslash
16795 invisible
16796 \family default
16797 ないし
16798 \family typewriter
16799
16800 \backslash
16801 visible
16802 \family default
16803 コマンドの後ろ)に入れます。\SpecialCharNoPassThru TeX
16804 としてマークする方法がわからない場合は、
16805 \emph on
16806 ユーザーの手引き
16807 \emph default
16808 をご参照ください。
16809 \end_layout
16810
16811 \end_inset
16812
16813
16814 \end_layout
16815
16816 \begin_layout Subsubsection
16817
16818 \family sans
16819 スライドで注釈を使う
16820 \family default
16821
16822 \begin_inset CommandInset label
16823 LatexCommand label
16824 name "sec:スライド注釈"
16825
16826 \end_inset
16827
16828
16829 \end_layout
16830
16831 \begin_layout Standard
16832
16833 \family sans
16834 オーバーレイ
16835 \family default
16836 と同様、
16837 \family sans
16838 注釈
16839 \family default
16840 も「親」
16841 \family sans
16842 スライド
16843 \family default
16844 に関連付けられています。ここでも\SpecialCharNoPassThru LyX
16845 \family sans
16846 スライド
16847 \family default
16848 クラスは視覚的な効果を与えています。
16849 \family sans
16850 注釈
16851 \family default
16852 のラベルは
16853 \family sans
16854 スライド
16855 \family default
16856 よりも短く(オーバーレイのラベルよりも長いですが)、
16857 \family sans
16858 オーバーレイ
16859 \family default
16860 のラベルと同様、派手な赤紫色です。加えて、印刷した
16861 \family sans
16862 注釈
16863 \family default
16864 には、「親」スライドのページ番号に「
16865 \family typewriter
16866 -
16867 \family default
16868 1」「
16869 \family typewriter
16870 -
16871 \family default
16872 2」「
16873 \family typewriter
16874 -
16875 \family default
16876 3」等を付けたページ番号が付けられます。1つの
16877 \family sans
16878 スライド
16879 \family default
16880 には、複数の
16881 \family sans
16882 注釈
16883 \family default
16884 を関連付けることができるので、
16885 \family sans
16886 スライド
16887 \family default
16888
16889 \family sans
16890 オーバーレイ
16891 \family default
16892 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
16893 \end_layout
16894
16895 \begin_layout Standard
16896
16897 \family sans
16898 注釈
16899 \family default
16900 の目的は明らかです。
16901 \family sans
16902 スライド
16903 \family default
16904 に関して付け加えたいことを書き留めておくことです。特定の
16905 \family sans
16906 スライド
16907 \family default
16908 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、\SpecialCharNoPassThru LyX
16909
16910 \family sans
16911 スライド
16912 \family default
16913 クラスは、
16914 \noun on
16915 Sli
16916 \noun default
16917 \SpecialCharNoPassThru TeX
16918 の機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、\SpecialCharNoPassThru LaTeX
16919 コードを使用することに頼らなくてはなりません。
16920 \end_layout
16921
16922 \begin_layout Standard
16923 タイムマーカを使用するには、クラスオプション「
16924 \family typewriter
16925 clock
16926 \family default
16927 」を追加指定する必要があります(第
16928 \begin_inset CommandInset ref
16929 LatexCommand ref
16930 reference "sec:slidesetup"
16931
16932 \end_inset
16933
16934 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
16935 \family sans
16936 注釈
16937 \family default
16938 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、\SpecialCharNoPassThru LaTeX
16939 コマンド「
16940 \family typewriter
16941
16942 \backslash
16943 settime{}
16944 \family default
16945 」および「
16946 \family typewriter
16947
16948 \backslash
16949 addtime{}
16950 \family default
16951 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16952 \family typewriter
16953
16954 \backslash
16955 settime{}
16956 \family default
16957 」は、タイムマーカを特定の時間に設定し、「
16958 \family typewriter
16959
16960 \backslash
16961 addtime{}
16962 \family default
16963 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16964 \family sans
16965 注釈
16966 \family default
16967 を用いれば、特定の
16968 \family sans
16969 スライド
16970 \family default
16971 にどれだけの時間をかけるのか忘れないでいられます。
16972 \end_layout
16973
16974 \begin_layout Standard
16975 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16976 \family sans
16977 スライド
16978 \family default
16979
16980 \family sans
16981 オーバーレイ
16982 \family default
16983 はすべてスライドに、
16984 \family sans
16985 注釈
16986 \family default
16987 はすべて普通の紙に印刷したいはずです。しかしながら、
16988 \family sans
16989 注釈
16990 \family default
16991 は関連付けられた親スライドの直後に
16992 \emph on
16993 来なくてはなりません
16994 \emph default
16995 。ユーザーはどうしたら良いのでしょうか。
16996 \end_layout
16997
16998 \begin_layout Standard
16999 幸いなことに、どれを印刷するか選択することを可能にする\SpecialCharNoPassThru LaTeX
17000 コマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
17001 \family typewriter
17002
17003 \backslash
17004 onlyslides{
17005 \backslash
17006 slides}
17007 \family default
17008 」は、出力に
17009 \family sans
17010 スライド
17011 \family default
17012
17013 \family sans
17014 オーバーレイ
17015 \family default
17016 のみが含まれるようにするものです。同様に、「
17017 \family typewriter
17018
17019 \backslash
17020 onlynotes{
17021 \backslash
17022 notes}
17023 \family default
17024 」は
17025 \family sans
17026 注釈
17027 \family default
17028 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
17029 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
17030 らば、まず
17031 \family typewriter
17032
17033 \backslash
17034 onlyslides{
17035 \backslash
17036 slides}
17037 \family default
17038 のコメントを外して、現ファイル名に「*
17039 \family typewriter
17040 -slides
17041 \family default
17042 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
17043 \family typewriter
17044
17045 \backslash
17046 onlynotes{
17047 \backslash
17048 notes
17049 \family default
17050 }」のコメントを外して、これを「
17051 \family typewriter
17052 *-notes.ps
17053 \family default
17054 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
17055 \end_layout
17056
17057 \begin_layout Standard
17058
17059 \family typewriter
17060
17061 \backslash
17062 onlyslides{}
17063 \family default
17064 」および「
17065 \family typewriter
17066
17067 \backslash
17068 onlynotes{}
17069 \family default
17070 」コマンドには、他の引数を与えることもできます。詳しくは、\SpecialCharNoPassThru LaTeX
17071 の良書をご覧ください。
17072 \end_layout
17073
17074 \begin_layout Subsection
17075
17076 \family sans
17077 slides
17078 \family default
17079 クラスのひな型ファイル
17080 \end_layout
17081
17082 \begin_layout Standard
17083
17084 \family sans
17085 slides
17086 \family default
17087 クラス用のひな型ファイルとして「
17088 \family typewriter
17089 slides.lyx
17090 \family default
17091 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
17092 \family sans
17093 ファイル\SpecialChar menuseparator
17094 新規(ひな型使用)
17095 \family default
17096 メニューを選択してください。すると新規ファイルには、
17097 \family sans
17098 スライド
17099 \family default
17100
17101 \family sans
17102 オーバーレイ
17103 \family default
17104
17105 \family sans
17106 注釈
17107 \family default
17108 の組が、例として含まれており、
17109 \family sans
17110 スライド
17111 \family default
17112
17113 \family sans
17114 オーバーレイ
17115 \family default
17116 には、さらに
17117 \family sans
17118 不可視文
17119 \family default
17120
17121 \family sans
17122 可視文
17123 \family default
17124 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
17125 \end_layout
17126
17127 \begin_layout LyX-Code
17128 % Uncomment to print out only slides and overlays
17129 \end_layout
17130
17131 \begin_layout LyX-Code
17132 %
17133 \end_layout
17134
17135 \begin_layout LyX-Code
17136 %
17137 \backslash
17138 onlyslides{
17139 \backslash
17140 slides}
17141 \begin_inset Newline newline
17142 \end_inset
17143
17144  
17145 \end_layout
17146
17147 \begin_layout LyX-Code
17148 % Uncomment to print out only notes
17149 \end_layout
17150
17151 \begin_layout LyX-Code
17152 %
17153 \end_layout
17154
17155 \begin_layout LyX-Code
17156 %
17157 \backslash
17158 onlynotes{
17159 \backslash
17160 notes}
17161 \end_layout
17162
17163 \begin_layout Standard
17164 最後に、私はこの文書クラスを、\SpecialCharNoPassThru LaTeX2e
17165 の組み込みクラスである「
17166 \noun on
17167 Sli\SpecialCharNoPassThru TeX
17168 \noun default
17169 エミュレーション」クラスをサポートする目的で作成しました。私も\SpecialCharNoPassThru LyX
17170 チームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするも
17171 のではありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
17172 \family sans
17173 Foils
17174 \family default
17175 クラス(第
17176 \begin_inset CommandInset ref
17177 LatexCommand ref
17178 reference "sec:foiltex"
17179
17180 \end_inset
17181
17182 節参照)や「
17183 \family typewriter
17184 seminar
17185 \family default
17186 」パッケージ(一部の\SpecialCharNoPassThru TeX
17187 頒布版に含まれています)のように、他の\SpecialCharNoPassThru LaTeX2e
17188 クラスも存在します。私はこれらについては知らないのですが、他にどのようなことができ
17189 るのか試してみてください。
17190 \end_layout
17191
17192 \begin_layout Chapter
17193 ソフトウェアを追加する必要がある \SpecialCharNoPassThru LyX
17194 機能
17195 \end_layout
17196
17197 \begin_layout Section
17198 \SpecialCharNoPassThru TeX
17199 のチェック
17200 \end_layout
17201
17202 \begin_layout Standard
17203
17204 \noun on
17205 Asger Alstrup
17206 \noun default
17207
17208 \end_layout
17209
17210 \begin_layout Subsection
17211 はじめに
17212 \end_layout
17213
17214 \begin_layout Standard
17215
17216 \family typewriter
17217 chktex
17218 \family default
17219 プログラムが導入されていると
17220 \begin_inset Foot
17221 status collapsed
17222
17223 \begin_layout Plain Layout
17224 \SpecialCharNoPassThru LaTeX
17225 頒布版としてMiK\SpecialCharNoPassThru TeX
17226 を使用している場合には、
17227 \family typewriter
17228 chktex
17229 \family default
17230 はまだ利用可能ではありません。
17231 \end_layout
17232
17233 \end_inset
17234
17235
17236 \family sans
17237 ツール
17238 \family default
17239 メニューの下に、
17240 \family sans
17241 \SpecialCharNoPassThru TeX
17242 構文チェック
17243 \family default
17244 という項目が表示されます。
17245 \family typewriter
17246 chktex
17247 \family default
17248 は、CTAN
17249 \begin_inset Newline newline
17250 \end_inset
17251
17252
17253 \begin_inset CommandInset href
17254 LatexCommand href
17255 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17256
17257 \end_inset
17258
17259 から入手することができます。
17260 \end_layout
17261
17262 \begin_layout Standard
17263
17264 \family sans
17265 Chk\SpecialCharNoPassThru TeX
17266 \family default
17267 パッケージは、\SpecialCharNoPassThru LaTeX
17268 の構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
17269 \begin_inset Flex Noun
17270 status collapsed
17271
17272 \begin_layout Plain Layout
17273 Jens T.
17274  Berger Thielemann
17275 \end_layout
17276
17277 \end_inset
17278
17279 が書いたプログラムです。このプログラムは、\SpecialCharNoPassThru LaTeX
17280 ファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTe
17281 Xにおける
17282 \family typewriter
17283 lint
17284 \family default
17285 であるとも言えます。
17286 \end_layout
17287
17288 \begin_layout Standard
17289 さて、\SpecialCharNoPassThru LyX
17290 はつねに正しい\SpecialCharNoPassThru LaTeX
17291 ファイルを生成するはずなのに、文法チェッカーは\SpecialCharNoPassThru LyX
17292 で何をするというのでしょうか。答えは簡単です。
17293 \family typewriter
17294 lint
17295 \family default
17296 がC言語プログラムの
17297 \emph on
17298 文法
17299 \emph default
17300 をチェックするだけでなく、打ち間違いによる
17301 \emph on
17302 意味上の
17303 \emph default
17304 チェックも行うように、
17305 \family sans
17306 Chk\SpecialCharNoPassThru TeX
17307 \family default
17308 は、文法エラーの他に犯しがちな
17309 \emph on
17310 写植上の
17311 \emph default
17312 誤りも検出してくれるからです。
17313 \family sans
17314 Chk\SpecialCharNoPassThru TeX
17315 \family default
17316 は、以下のような誤りを検出することができます。
17317 \end_layout
17318
17319 \begin_layout Itemize
17320 省略記号の検出:
17321 \begin_inset Newline newline
17322 \end_inset
17323
17324 ...ではなく\SpecialChar ldots
17325 を使わなくてはなりません
17326 \end_layout
17327
17328 \begin_layout Itemize
17329 括弧の前後にスペースを置かない:
17330 \begin_inset Newline newline
17331 \end_inset
17332
17333 ( wrong spacing ):誤った空白
17334 \end_layout
17335
17336 \begin_layout Itemize
17337 よく使われる省略形の後ろは通常スペースにする:
17338 \begin_inset Newline newline
17339 \end_inset
17340
17341 e.
17342 \begin_inset space \thinspace{}
17343 \end_inset
17344
17345 g.
17346 \begin_inset space \space{}
17347 \end_inset
17348
17349 is too wide spacing.:広すぎる空白
17350 \end_layout
17351
17352 \begin_layout Itemize
17353 直前の文章が大文字で終わっているときに、文末スペースに直す:
17354 \begin_inset Newline newline
17355 \end_inset
17356
17357 This is a TEST.
17358  And this is wrong spacing.:誤った空白
17359 \end_layout
17360
17361 \begin_layout Itemize
17362 ラベルや類似コマンドの前のスペース:
17363 \begin_inset Newline newline
17364 \end_inset
17365
17366 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。 
17367 \begin_inset CommandInset label
17368 LatexCommand label
17369 name "sec:chktex"
17370
17371 \end_inset
17372
17373  
17374 \begin_inset Foot
17375 status collapsed
17376
17377 \begin_layout Plain Layout
17378 この脚注は、正しくないページに行ってしまう恐れがあります。
17379 \end_layout
17380
17381 \end_inset
17382
17383  このラベルは離れすぎです。
17384 \end_layout
17385
17386 \begin_layout Itemize
17387 参照の前にハードスペースではなくスペース:
17388 \begin_inset Newline newline
17389 \end_inset
17390
17391 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
17392 \begin_inset CommandInset ref
17393 LatexCommand ref
17394 reference "sec:chktex"
17395
17396 \end_inset
17397
17398 節をご覧ください。
17399 \end_layout
17400
17401 \begin_layout Itemize
17402 数字のあいだで
17403 \begin_inset Formula $\times$
17404 \end_inset
17405
17406 ではなく「x」が使われている:
17407 \begin_inset Newline newline
17408 \end_inset
17409
17410 2x2は、
17411 \begin_inset Formula $2\times2$
17412 \end_inset
17413
17414 よりも安っぽく見えます。
17415 \end_layout
17416
17417 \begin_layout Standard
17418 などなど\SpecialChar ldots
17419
17420 \family sans
17421 Chk\SpecialCharNoPassThru TeX
17422 \family default
17423 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
17424 \end_layout
17425
17426 \begin_layout Subsection
17427 使いかた
17428 \end_layout
17429
17430 \begin_layout Standard
17431 このプログラムを導入したならば、使うのは
17432 \family sans
17433 ツール\SpecialChar menuseparator
17434 \SpecialCharNoPassThru TeX
17435 構文チェック
17436 \family default
17437 を選択するだけなので簡単です。こうすると、\SpecialCharNoPassThru LyX
17438 は使用中の文書の\SpecialCharNoPassThru LaTeX
17439 ファイルを生成して、
17440 \family sans
17441 Chk\SpecialCharNoPassThru TeX
17442 \family default
17443 を起動し、当該ファイルを検査しますが、
17444 \family sans
17445 Chk\SpecialCharNoPassThru TeX
17446 \family default
17447 から警告があった場合には、それを含んだ「エラーボックス」を\SpecialCharNoPassThru LyX
17448 中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
17449 \family sans
17450 移動\SpecialChar menuseparator
17451 エラー
17452 \family default
17453 を選択するか、既定の
17454 \family typewriter
17455 cua
17456 \family default
17457
17458 \begin_inset Flex Ruby
17459 status collapsed
17460
17461 \begin_layout Plain Layout
17462
17463 \begin_inset Argument post:1
17464 status collapsed
17465
17466 \begin_layout Plain Layout
17467 キー
17468 \end_layout
17469
17470 \end_inset
17471
17472
17473 \end_layout
17474
17475 \end_inset
17476
17477 設定ファイルならば
17478 \begin_inset Flex Ruby
17479 status collapsed
17480
17481 \begin_layout Plain Layout
17482
17483 \family roman
17484 \series medium
17485 \shape up
17486 \size normal
17487 \emph off
17488 \bar no
17489 \noun off
17490 \color none
17491 捷径
17492 \family default
17493 \series default
17494 \shape default
17495 \size default
17496 \emph default
17497 \bar default
17498 \noun default
17499 \color inherit
17500
17501 \begin_inset Argument post:1
17502 status collapsed
17503
17504 \begin_layout Plain Layout
17505 ショートカット
17506 \end_layout
17507
17508 \end_inset
17509
17510
17511 \end_layout
17512
17513 \end_inset
17514
17515
17516 \family sans
17517 C-g
17518 \family default
17519 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
17520 \family typewriter
17521 cua
17522 \family default
17523 鍵設定の場合には捷径鍵
17524 \family sans
17525 C-i
17526 \family default
17527
17528 \family typewriter
17529 emacs
17530 \family default
17531 鍵設定の場合は捷径鍵
17532 \family sans
17533 C-o
17534 \family default
17535 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
17536 \family sans
17537 Chk\SpecialCharNoPassThru TeX
17538 \family default
17539 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
17540 があるのです。
17541 \end_layout
17542
17543 \begin_layout Standard
17544 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
17545 警告のほとんどは実際には警告に値しません。
17546 \end_layout
17547
17548 \begin_layout Subsection
17549 微調整のしかた
17550 \end_layout
17551
17552 \begin_layout Standard
17553 場合によっては、
17554 \family sans
17555 Chk\SpecialCharNoPassThru TeX
17556 \family default
17557 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
17558 \family sans
17559 Chk\SpecialCharNoPassThru TeX
17560 \family default
17561 を無効にするか、あなたにもう少し合うように
17562 \family sans
17563 Chk\SpecialCharNoPassThru TeX
17564 \family default
17565 を調整することができます。
17566 \end_layout
17567
17568 \begin_layout Standard
17569
17570 \family sans
17571 Chk\SpecialCharNoPassThru TeX
17572 \family default
17573 は調整や拡張がひじょうに柔軟なのですが、\SpecialCharNoPassThru LyX
17574 における
17575 \family sans
17576 Chk\SpecialCharNoPassThru TeX
17577 \family default
17578 関連の問題が、それですべて解決すると思うべきではありません。\SpecialCharNoPassThru LyX
17579 は、
17580 \family sans
17581 Chk\SpecialCharNoPassThru TeX
17582 \family default
17583 出力
17584 \begin_inset Foot
17585 status collapsed
17586
17587 \begin_layout Plain Layout
17588
17589 \family sans
17590 chktex
17591 \family default
17592 の実際の出力は、
17593 \family sans
17594 chktex
17595 \family default
17596 を実行した直後に
17597 \family sans
17598 文書\SpecialChar menuseparator
17599 \SpecialCharNoPassThru LaTeX
17600 ログ
17601 \family default
17602 を使えば見ることができます。
17603 \end_layout
17604
17605 \end_inset
17606
17607 から得た行番号と内部構造を一致させるため、やや特殊な\SpecialCharNoPassThru LaTeX
17608 ファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これ
17609 に対処するためには、以下の2つの方法があります。
17610 \end_layout
17611
17612 \begin_layout Itemize
17613
17614 \family sans
17615 \begin_inset Flex MenuItem
17616 status collapsed
17617
17618 \begin_layout Plain Layout
17619
17620 \family sans
17621 ツール\SpecialChar menuseparator
17622 設定\SpecialChar menuseparator
17623 出力\SpecialChar menuseparator
17624 \SpecialCharNoPassThru LaTeX
17625 \SpecialChar menuseparator
17626 Check\SpecialCharNoPassThru TeX
17627 コマンド
17628 \end_layout
17629
17630 \end_inset
17631
17632
17633 \family default
17634 中の
17635 \family sans
17636 Chk\SpecialCharNoPassThru TeX
17637 \family default
17638 起動コマンドラインを調整するか、グローバルな
17639 \family sans
17640 Chk\SpecialCharNoPassThru TeX
17641 \family default
17642 の設定ファイル(通常は
17643 \begin_inset Flex Code
17644 status collapsed
17645
17646 \begin_layout Plain Layout
17647 chktexrc
17648 \end_layout
17649
17650 \end_inset
17651
17652 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
17653 \end_layout
17654
17655 \begin_layout Itemize
17656
17657 \family sans
17658 ファイル\SpecialChar menuseparator
17659 書き出し\SpecialChar menuseparator
17660 \SpecialCharNoPassThru LaTeX
17661 \family default
17662 を使って文書を\SpecialCharNoPassThru LaTeX
17663 ファイルに変換し、そのファイルに対して
17664 \family typewriter
17665 chktex
17666 \family default
17667 を手動で実行します。このようにすると、\SpecialCharNoPassThru LyX
17668 文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
17669 \end_layout
17670
17671 \begin_layout Standard
17672 以下は、
17673 \family sans
17674 設定
17675 \family default
17676 で有効化・無効化できる警告メッセージです。警告を無効にするには
17677 \family typewriter
17678 -n#
17679 \family default
17680 、有効にするには
17681 \family typewriter
17682 -w#
17683 \family default
17684 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
17685 \family typewriter
17686 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17687 \family default
17688 "です。
17689 \end_layout
17690
17691 \begin_layout Standard
17692 \SpecialCharNoPassThru LyX
17693 は、
17694 \family typewriter
17695 chktex
17696 \family default
17697 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
17698 \end_layout
17699
17700 \begin_layout Enumerate
17701
17702 \size small
17703 \emph on
17704 Command terminated with space.
17705 \end_layout
17706
17707 \begin_layout Enumerate
17708
17709 \size small
17710 Non-breaking space (
17711 \begin_inset Quotes eld
17712 \end_inset
17713
17714
17715 \family typewriter
17716 ~
17717 \family default
17718
17719 \begin_inset Quotes erd
17720 \end_inset
17721
17722 ) should have been used.
17723 \end_layout
17724
17725 \begin_layout Enumerate
17726
17727 \size small
17728 \emph on
17729 You should enclose the previous parenthesis with 
17730 \begin_inset Quotes eld
17731 \end_inset
17732
17733
17734 \family typewriter
17735 {}
17736 \family default
17737
17738 \begin_inset Quotes erd
17739 \end_inset
17740
17741 .
17742 \end_layout
17743
17744 \begin_layout Enumerate
17745
17746 \size small
17747 Italic correction (
17748 \begin_inset Quotes eld
17749 \end_inset
17750
17751
17752 \family typewriter
17753
17754 \backslash
17755 /
17756 \family default
17757
17758 \begin_inset Quotes erd
17759 \end_inset
17760
17761 ) found in non-italic buffer.
17762 \end_layout
17763
17764 \begin_layout Enumerate
17765
17766 \size small
17767 Italic correction (
17768 \begin_inset Quotes eld
17769 \end_inset
17770
17771
17772 \family typewriter
17773
17774 \backslash
17775 /
17776 \family default
17777
17778 \begin_inset Quotes erd
17779 \end_inset
17780
17781 ) found more than once.
17782 \end_layout
17783
17784 \begin_layout Enumerate
17785
17786 \size small
17787 \emph on
17788 No italic correction (
17789 \begin_inset Quotes eld
17790 \end_inset
17791
17792
17793 \family typewriter
17794
17795 \backslash
17796 /
17797 \family default
17798
17799 \begin_inset Quotes erd
17800 \end_inset
17801
17802 ) found.
17803 \end_layout
17804
17805 \begin_layout Enumerate
17806
17807 \size small
17808 Accent command 
17809 \begin_inset Quotes eld
17810 \end_inset
17811
17812
17813 \family typewriter
17814 cmd
17815 \family default
17816
17817 \begin_inset Quotes erd
17818 \end_inset
17819
17820  needs use of 
17821 \begin_inset Quotes eld
17822 \end_inset
17823
17824
17825 \family typewriter
17826 cmd
17827 \family default
17828
17829 \begin_inset Quotes erd
17830 \end_inset
17831
17832 .
17833 \end_layout
17834
17835 \begin_layout Enumerate
17836
17837 \size small
17838 Wrong length of dash may have been used.
17839 \end_layout
17840
17841 \begin_layout Enumerate
17842
17843 \size small
17844 \emph on
17845 \begin_inset Quotes eld
17846 \end_inset
17847
17848
17849 \family typewriter
17850 %s
17851 \family default
17852
17853 \begin_inset Quotes erd
17854 \end_inset
17855
17856  expected, found 
17857 \begin_inset Quotes eld
17858 \end_inset
17859
17860
17861 \family typewriter
17862 %s
17863 \family default
17864
17865 \begin_inset Quotes erd
17866 \end_inset
17867
17868 .
17869 \end_layout
17870
17871 \begin_layout Enumerate
17872
17873 \size small
17874 Solo 
17875 \begin_inset Quotes eld
17876 \end_inset
17877
17878
17879 \family typewriter
17880 %s
17881 \family default
17882
17883 \begin_inset Quotes erd
17884 \end_inset
17885
17886  found.
17887 \end_layout
17888
17889 \begin_layout Enumerate
17890
17891 \size small
17892 You should use 
17893 \begin_inset Quotes eld
17894 \end_inset
17895
17896
17897 \family typewriter
17898 %s
17899 \family default
17900
17901 \begin_inset Quotes erd
17902 \end_inset
17903
17904  to achieve an ellipsis.
17905 \end_layout
17906
17907 \begin_layout Enumerate
17908
17909 \size small
17910 Inter-word spacing (
17911 \begin_inset Quotes eld
17912 \end_inset
17913
17914
17915 \family typewriter
17916
17917 \backslash
17918
17919 \family default
17920  
17921 \begin_inset Quotes eld
17922 \end_inset
17923
17924 ) should perhaps be used.
17925 \end_layout
17926
17927 \begin_layout Enumerate
17928
17929 \size small
17930 Inter-sentence spacing (
17931 \begin_inset Quotes eld
17932 \end_inset
17933
17934
17935 \family typewriter
17936
17937 \backslash
17938 @
17939 \family default
17940
17941 \begin_inset Quotes erd
17942 \end_inset
17943
17944 ) should perhaps be used.
17945 \end_layout
17946
17947 \begin_layout Enumerate
17948
17949 \size small
17950 Could not find argument for command.
17951 \end_layout
17952
17953 \begin_layout Enumerate
17954
17955 \size small
17956 No match found for 
17957 \begin_inset Quotes eld
17958 \end_inset
17959
17960
17961 \family typewriter
17962 %s
17963 \family default
17964
17965 \begin_inset Quotes erd
17966 \end_inset
17967
17968 .
17969 \end_layout
17970
17971 \begin_layout Enumerate
17972
17973 \size small
17974 Math mode still on at end of \SpecialCharNoPassThru LaTeX
17975  file.
17976 \end_layout
17977
17978 \begin_layout Enumerate
17979
17980 \size small
17981 Number of 
17982 \begin_inset Quotes eld
17983 \end_inset
17984
17985
17986 \family typewriter
17987 char
17988 \family default
17989
17990 \begin_inset Quotes erd
17991 \end_inset
17992
17993  doesn't match the number of 
17994 \begin_inset Quotes eld
17995 \end_inset
17996
17997
17998 \family typewriter
17999 char
18000 \family default
18001
18002 \begin_inset Quotes erd
18003 \end_inset
18004
18005 .
18006 \end_layout
18007
18008 \begin_layout Enumerate
18009
18010 \size small
18011 You should use either 
18012 \family typewriter
18013
18014 \begin_inset Quotes eld
18015 \end_inset
18016
18017
18018 \family default
18019  or 
18020 \family typewriter
18021
18022 \begin_inset Quotes erd
18023 \end_inset
18024
18025
18026 \family default
18027  as an alternative to 
18028 \begin_inset Quotes eld
18029 \end_inset
18030
18031
18032 \family typewriter
18033 "
18034 \family default
18035
18036 \begin_inset Quotes erd
18037 \end_inset
18038
18039 .
18040 \end_layout
18041
18042 \begin_layout Enumerate
18043
18044 \size small
18045 You should use "
18046 \family typewriter
18047 '
18048 \family default
18049 " (ASCII 39) instead of "" (ASCII 180).
18050 \end_layout
18051
18052 \begin_layout Enumerate
18053
18054 \size small
18055 User-specified pattern found.
18056 \end_layout
18057
18058 \begin_layout Enumerate
18059
18060 \size small
18061 This command might not be intended.
18062 \end_layout
18063
18064 \begin_layout Enumerate
18065
18066 \size small
18067 \emph on
18068 Comment displayed.
18069 \end_layout
18070
18071 \begin_layout Enumerate
18072
18073 \size small
18074 Either 
18075 \family typewriter
18076 ''
18077 \backslash
18078 ,'
18079 \family default
18080  or 
18081 \family typewriter
18082 '
18083 \backslash
18084 ,''
18085 \family default
18086  will look better.
18087 \end_layout
18088
18089 \begin_layout Enumerate
18090
18091 \size small
18092 Delete this space to maintain correct page references.
18093 \end_layout
18094
18095 \begin_layout Enumerate
18096
18097 \size small
18098 \emph on
18099 You might wish to put this between a pair of 
18100 \begin_inset Quotes eld
18101 \end_inset
18102
18103
18104 \family typewriter
18105 {}
18106 \family default
18107
18108 \begin_inset Quotes erd
18109 \end_inset
18110
18111 .
18112 \end_layout
18113
18114 \begin_layout Enumerate
18115
18116 \size small
18117 You ought to remove spaces in front of punctuation.
18118 \end_layout
18119
18120 \begin_layout Enumerate
18121
18122 \size small
18123 Could not execute \SpecialCharNoPassThru LaTeX
18124  command.
18125 \end_layout
18126
18127 \begin_layout Enumerate
18128
18129 \size small
18130 Don't use 
18131 \family typewriter
18132
18133 \backslash
18134 /
18135 \family default
18136  in front of small punctuation.
18137 \end_layout
18138
18139 \begin_layout Enumerate
18140
18141 \family typewriter
18142 \size small
18143 $
18144 \backslash
18145 times$
18146 \family default
18147  may look prettier here.
18148 \end_layout
18149
18150 \begin_layout Enumerate
18151
18152 \size small
18153 \emph on
18154 Multiple spaces detected in output.
18155 \end_layout
18156
18157 \begin_layout Enumerate
18158
18159 \size small
18160 This text may be ignored.
18161 \end_layout
18162
18163 \begin_layout Enumerate
18164
18165 \size small
18166 Use 
18167 \family typewriter
18168
18169 \begin_inset Quotes eld
18170 \end_inset
18171
18172
18173 \family default
18174  to begin quotation, not 
18175 \family typewriter
18176 '
18177 \family default
18178 .
18179 \end_layout
18180
18181 \begin_layout Enumerate
18182
18183 \size small
18184 Use 
18185 \family typewriter
18186 '
18187 \family default
18188  to end quotation, not 
18189 \family typewriter
18190
18191 \begin_inset Quotes eld
18192 \end_inset
18193
18194
18195 \family default
18196 .
18197 \end_layout
18198
18199 \begin_layout Enumerate
18200
18201 \size small
18202 Don't mix quotes.
18203 \end_layout
18204
18205 \begin_layout Enumerate
18206
18207 \size small
18208 You should perhaps use 
18209 \begin_inset Quotes eld
18210 \end_inset
18211
18212
18213 \family typewriter
18214 cmd
18215 \family default
18216
18217 \begin_inset Quotes erd
18218 \end_inset
18219
18220  instead.
18221 \end_layout
18222
18223 \begin_layout Enumerate
18224
18225 \size small
18226 You should put a space in front of/after parenthesis.
18227 \end_layout
18228
18229 \begin_layout Enumerate
18230
18231 \size small
18232 You should avoid spaces in front of/after parenthesis.
18233 \end_layout
18234
18235 \begin_layout Enumerate
18236
18237 \size small
18238 \emph on
18239 You should not use punctuation in front of/after quotes.
18240 \end_layout
18241
18242 \begin_layout Enumerate
18243
18244 \size small
18245 Double space found.
18246 \end_layout
18247
18248 \begin_layout Enumerate
18249
18250 \size small
18251 You should put punctuation outside inner/inside display math mode.
18252 \end_layout
18253
18254 \begin_layout Enumerate
18255
18256 \size small
18257 You ought to not use primitive \SpecialCharNoPassThru TeX
18258  in \SpecialCharNoPassThru LaTeX
18259  code.
18260 \end_layout
18261
18262 \begin_layout Enumerate
18263
18264 \size small
18265 You should remove spaces in front of 
18266 \begin_inset Quotes eld
18267 \end_inset
18268
18269
18270 \family typewriter
18271 %s
18272 \family default
18273
18274 \begin_inset Quotes erd
18275 \end_inset
18276
18277
18278 \end_layout
18279
18280 \begin_layout Enumerate
18281
18282 \size small
18283 \begin_inset Quotes eld
18284 \end_inset
18285
18286
18287 \family typewriter
18288 %s
18289 \family default
18290
18291 \begin_inset Quotes erd
18292 \end_inset
18293
18294  is normally not followed by 
18295 \begin_inset Quotes eld
18296 \end_inset
18297
18298
18299 \family typewriter
18300 %c
18301 \family default
18302
18303 \begin_inset Quotes erd
18304 \end_inset
18305
18306 .
18307 \end_layout
18308
18309 \begin_layout Standard
18310 \SpecialCharNoPassThru LyX
18311 の将来の版では、このツール(およびその縮小版
18312 \family typewriter
18313 lacheck
18314 \family default
18315 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
18316 書に使用してみていただければ、きっと驚かれることでしょう。
18317 \end_layout
18318
18319 \begin_layout Section
18320 \SpecialCharNoPassThru LyX
18321 でのバージョン管理
18322 \end_layout
18323
18324 \begin_layout Standard
18325
18326 \noun on
18327 Lars Bullik Bjønnes
18328 \noun default
18329 および
18330 \noun on
18331 Pavel Sanda
18332 \noun default
18333
18334 \end_layout
18335
18336 \begin_layout Subsection
18337 はじめに
18338 \end_layout
18339
18340 \begin_layout Standard
18341 \SpecialCharNoPassThru LyX
18342 は、今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上から手動で行
18343 う必要があります。
18344 \end_layout
18345
18346 \begin_layout Standard
18347 また、CVSのサポートは、subversionのサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SV
18348 N Book
18349 \begin_inset Foot
18350 status open
18351
18352 \begin_layout Plain Layout
18353 \begin_inset CommandInset href
18354 LatexCommand href
18355 target "http://svnbook.red-bean.com/"
18356
18357 \end_inset
18358
18359
18360 \end_layout
18361
18362 \end_inset
18363
18364 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
18365 \family typewriter
18366 man rcsintro
18367 \family default
18368 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
18369 \family typewriter
18370 ,v
18371 \family default
18372 で終わるファイルです)の概念に注意を払ってください。
18373 \end_layout
18374
18375 \begin_layout Standard
18376 \SpecialCharNoPassThru LyX
18377 で実際にバージョン管理機能を使い始める前に、RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません。\SpecialCharNoPassThru LyX
18378 で\SpecialCharNoPassThru LyX
18379 への実装においては、GN
18380 U RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のところ操作後には表示されません。確
18381 認したい場合には、メッセージ面で確かめてください。バージョン管理を常用するユーザーには、VCツールバーが便利でしょう。これは
18382 \family sans
18383 表示\SpecialChar menuseparator
18384 ツールバー\SpecialChar menuseparator
18385 バージョン管理
18386 \family default
18387 で有効にできます。
18388 \end_layout
18389
18390 \begin_layout Standard
18391 自製の外部コマンドを導入したい場合には、\SpecialCharNoPassThru LyX
18392 関数説明書のvcコマンドを確認してください。
18393 \end_layout
18394
18395 \begin_layout Subsection
18396 \SpecialCharNoPassThru LyX
18397 におけるRCSコマンド
18398 \end_layout
18399
18400 \begin_layout Standard
18401 以下の節では\SpecialCharNoPassThru LyX
18402 でサポートされているRCSコマンドを説明します。それらのコマンドは
18403 \family sans
18404 ファイル\SpecialChar menuseparator
18405 バージョン管理
18406 \family default
18407 のサブメニューにあります。\SpecialCharNoPassThru LyX
18408 は、RCS 5.7/5.8に対して試験されています。
18409 \begin_inset Foot
18410 status open
18411
18412 \begin_layout Plain Layout
18413 古いDOS / MS Windowsビルド(5.7)では、\SpecialCharNoPassThru LyX
18414 で適切に動作させるためには、環境変数を設定する必要があります。とくに、標準時間帯(TZ)を設定し、
18415 さらに大事なことは、アーカイブの既定位置を変更する場合には、RCSINITを設定しなくてはなりません("SET RCSINIT=-x,v/")。\threehyphens
18416  \SpecialCharNoPassThru LyX
18417 は、文書のあるディレクトリのfile.lyx,vに、アーカイブがあるものと期待します。Windows RCSバイナリ付属のREADMEもご覧ください。
18418 \end_layout
18419
18420 \end_inset
18421
18422
18423 \end_layout
18424
18425 \begin_layout Subsubsection
18426
18427 \family sans
18428 登録
18429 \end_layout
18430
18431 \begin_layout Standard
18432 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
18433 \family sans
18434 登録
18435 \family default
18436 は不可視になります。
18437 \end_layout
18438
18439 \begin_layout Standard
18440 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
18441 書は読み込み専用モードになるので、変更を加えるためには
18442 \family sans
18443 チェックアウトして編集
18444 \family default
18445 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
18446 \end_layout
18447
18448 \begin_layout Standard
18449 実行されるRCSコマンドは:
18450 \family typewriter
18451
18452 \begin_inset Newline newline
18453 \end_inset
18454
18455 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18456 \end_layout
18457
18458 \begin_layout Standard
18459 スイッチについて知りたい場合は、
18460 \family typewriter
18461 man ci
18462 \family default
18463 を読んでください。
18464 \end_layout
18465
18466 \begin_layout Subsubsection
18467
18468 \family sans
18469 変更をチェックインする
18470 \end_layout
18471
18472 \begin_layout Standard
18473 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
18474 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
18475 \end_layout
18476
18477 \begin_layout Standard
18478 RCSコマンド:
18479 \family typewriter
18480 ci -q -u -m"<説明文>" <ファイル名>
18481 \end_layout
18482
18483 \begin_layout Subsubsection
18484
18485 \family sans
18486 チェックアウトして編集
18487 \end_layout
18488
18489 \begin_layout Standard
18490 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
18491 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
18492 \end_layout
18493
18494 \begin_layout Standard
18495 RCSコマンド:
18496 \family typewriter
18497 co -q -l <ファイル名>
18498 \end_layout
18499
18500 \begin_layout Subsubsection
18501
18502 \family sans
18503 リポジトリのバージョンに戻す
18504 \end_layout
18505
18506 \begin_layout Standard
18507 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
18508 \end_layout
18509
18510 \begin_layout Standard
18511 RCSコマンド:
18512 \family typewriter
18513 co -f -u<バージョン> <ファイル名>
18514 \end_layout
18515
18516 \begin_layout Subsubsection
18517
18518 \family sans
18519 コピー
18520 \end_layout
18521
18522 \begin_layout Standard
18523 これは、現行文書のコピーを生成します。RCSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18524 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18525 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18526 \family sans
18527 ファイル\SpecialChar menuseparator
18528 名前をつけて保存\SpecialChar ldots
18529
18530 \family default
18531 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18532 \end_layout
18533
18534 \begin_layout Labeling
18535 \labelwidthstring 00.00.0000
18536 RCSコマンド:
18537 \begin_inset Flex Code
18538 status collapsed
18539
18540 \begin_layout Plain Layout
18541 "ファイル名"
18542 \end_layout
18543
18544 \end_inset
18545
18546
18547 \family typewriter
18548 "新ファイル名"
18549 \family default
18550 にコピーする場合
18551 \end_layout
18552
18553 \begin_layout Labeling
18554 \labelwidthstring 00.00.0000
18555 \begin_inset Flex Code
18556 status collapsed
18557
18558 \begin_layout Plain Layout
18559 ci -q -u -i "<新ファイル名>"
18560 \end_layout
18561
18562 \end_inset
18563
18564
18565 \end_layout
18566
18567 \begin_layout Subsubsection
18568
18569 \family sans
18570 最後のチェックインを取り消す
18571 \end_layout
18572
18573 \begin_layout Standard
18574 これは、最後のチェックインがあたかも為されなかったかのようにします。\SpecialCharNoPassThru LyX
18575 に読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョン
18576 が削除されます。
18577 \end_layout
18578
18579 \begin_layout Standard
18580 RCSコマンド:
18581 \family typewriter
18582 rcs -o<バージョン> <ファイル名>
18583 \end_layout
18584
18585 \begin_layout Subsubsection
18586
18587 \family sans
18588 履歴を表示
18589 \end_layout
18590
18591 \begin_layout Standard
18592 RCS文書の完全な履歴を表示します。ブラウザ中に、
18593 \family typewriter
18594 rlog <ファイル名>
18595 \family default
18596 の出力が表示されます。詳細は
18597 \family typewriter
18598 man rlog
18599 \family default
18600 をご覧ください。
18601 \end_layout
18602
18603 \begin_layout Subsubsection
18604 改訂情報
18605 \end_layout
18606
18607 \begin_layout Standard
18608 \SpecialCharNoPassThru LyX
18609 は、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
18610 \begin_inset CommandInset ref
18611 LatexCommand ref
18612 reference "subsec:VCS改訂情報"
18613
18614 \end_inset
18615
18616 を参照。
18617 \end_layout
18618
18619 \begin_layout Subsection
18620 \SpecialCharNoPassThru LyX
18621 におけるCVSコマンド
18622 \end_layout
18623
18624 \begin_layout Standard
18625 \SpecialCharNoPassThru LyX
18626 は、現在CVSを一部サポートしています。そのコマンドは、
18627 \family sans
18628 ファイル\SpecialChar menuseparator
18629 バージョン管理
18630 \family default
18631 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
18632 \end_layout
18633
18634 \begin_layout Subsubsection
18635 CVSの一般的な利用法
18636 \end_layout
18637
18638 \begin_layout Standard
18639 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
18640 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
18641 \end_layout
18642
18643 \begin_layout Standard
18644 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
18645 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
18646 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
18647 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
18648 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
18649 インすると、作業コピーは読み込み専用状態に戻ります。\SpecialCharNoPassThru LyX
18650 で予備付きチェックアウトを利用したい場合には、
18651 \begin_inset Flex Code
18652 status collapsed
18653
18654 \begin_layout Plain Layout
18655 .cvsrc
18656 \end_layout
18657
18658 \end_inset
18659
18660 ファイルを編集して、
18661 \begin_inset Flex Code
18662 status collapsed
18663
18664 \begin_layout Plain Layout
18665 cvs -r
18666 \end_layout
18667
18668 \end_inset
18669
18670 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
18671 コピーを書き込み可能にしているとは限りません。
18672 \end_layout
18673
18674 \begin_layout Standard
18675 \SpecialCharNoPassThru LyX
18676 は、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になって
18677 いるか、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているもの
18678 と仮定し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書
18679 き込み可能にするためには、
18680 \begin_inset Flex MenuItem
18681 status collapsed
18682
18683 \begin_layout Plain Layout
18684 チェックアウト
18685 \end_layout
18686
18687 \end_inset
18688
18689 メニューを使用しなくてはなりません。その後、
18690 \begin_inset Flex MenuItem
18691 status collapsed
18692
18693 \begin_layout Plain Layout
18694 チェックイン
18695 \end_layout
18696
18697 \end_inset
18698
18699 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
18700 \end_layout
18701
18702 \begin_layout Standard
18703 CVSの詳細な情報は、
18704 \begin_inset Flex URL
18705 status collapsed
18706
18707 \begin_layout Plain Layout
18708
18709 http://www.nongnu.org/cvs
18710 \end_layout
18711
18712 \end_inset
18713
18714
18715 \begin_inset Flex URL
18716 status collapsed
18717
18718 \begin_layout Plain Layout
18719
18720 http://ximbiot.com/cvs
18721 \end_layout
18722
18723 \end_inset
18724
18725 にあります。
18726 \end_layout
18727
18728 \begin_layout Standard
18729 以下に言及するサブコマンドとスイッチを理解するには、
18730 \family typewriter
18731 man cvs
18732 \family default
18733 をお読みください。
18734 \end_layout
18735
18736 \begin_layout Subsubsection
18737 登録
18738 \end_layout
18739
18740 \begin_layout Standard
18741 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
18742 \family sans
18743 登録
18744 \family default
18745 項目は表示されません。
18746 \end_layout
18747
18748 \begin_layout Standard
18749 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
18750 \series bold
18751 \emph on
18752 のみ
18753 \series default
18754 \emph default
18755 (すなわち
18756 \begin_inset Flex Code
18757 status collapsed
18758
18759 \begin_layout Plain Layout
18760 CVS/Entries
18761 \end_layout
18762
18763 \end_inset
18764
18765 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18766 を意味します(このステップを忘れてしまうと、\SpecialCharNoPassThru LyX
18767 は文書をRCSに登録します)。
18768 \end_layout
18769
18770 \begin_layout Standard
18771 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
18772 \end_layout
18773
18774 \begin_layout Standard
18775 実行されるCVSコマンドは、
18776 \family typewriter
18777 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18778 \family default
18779  です。
18780 \end_layout
18781
18782 \begin_layout Standard
18783 上記および他のすべてのCVSコマンドにおける
18784 \family typewriter
18785 "<ファイル名>"
18786 \family default
18787 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
18788 \end_layout
18789
18790 \begin_layout Subsubsection
18791 変更のチェックイン
18792 \end_layout
18793
18794 \begin_layout Standard
18795 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
18796 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
18797 \begin_inset Flex MenuItem
18798 status collapsed
18799
18800 \begin_layout Plain Layout
18801 チェックアウト
18802 \end_layout
18803
18804 \end_inset
18805
18806 で作られた予備は取り消されます。
18807 \end_layout
18808
18809 \begin_layout Labeling
18810 \labelwidthstring 00.00.0000
18811 CVSコマンド: 
18812 \begin_inset space ~
18813 \end_inset
18814
18815
18816 \begin_inset Newline newline
18817 \end_inset
18818
18819
18820 \begin_inset Flex Code
18821 status collapsed
18822
18823 \begin_layout Plain Layout
18824 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18825 \end_layout
18826
18827 \end_inset
18828
18829 あるいは
18830 \begin_inset Newline newline
18831 \end_inset
18832
18833
18834 \begin_inset Flex Code
18835 status collapsed
18836
18837 \begin_layout Plain Layout
18838 cvs -q unedit "<ファイル名>"
18839 \end_layout
18840
18841 \end_inset
18842
18843
18844 \end_layout
18845
18846 \begin_layout Subsubsection
18847 変更のチェックアウト
18848 \end_layout
18849
18850 \begin_layout Standard
18851 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
18852 \end_layout
18853
18854 \begin_layout Standard
18855 CVSコマンド:
18856 \family typewriter
18857 cvs -q update "<ファイル名>"
18858 \end_layout
18859
18860 \begin_layout Standard
18861 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
18862 \end_layout
18863
18864 \begin_layout Standard
18865 CVSコマンド:
18866 \family typewriter
18867 cvs -q edit "<ファイル名>"
18868 \end_layout
18869
18870 \begin_layout Subsubsection
18871 レポジトリ版に戻す
18872 \end_layout
18873
18874 \begin_layout Standard
18875 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
18876 が実行されます。
18877 \end_layout
18878
18879 \begin_layout Standard
18880 CVSコマンド:
18881 \family typewriter
18882 cvs -q update "<ファイル名>"
18883 \end_layout
18884
18885 \begin_layout Standard
18886 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
18887 \end_layout
18888
18889 \begin_layout Standard
18890 CVSコマンド:
18891 \family typewriter
18892 cvs -q unedit "<ファイル名>"
18893 \end_layout
18894
18895 \begin_layout Subsubsection
18896
18897 \family sans
18898 コピー
18899 \end_layout
18900
18901 \begin_layout Standard
18902 これは、現行文書のコピーを生成します。CVSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18903 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18904 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18905 \family sans
18906 ファイル\SpecialChar menuseparator
18907 名前をつけて保存\SpecialChar ldots
18908
18909 \family default
18910 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18911 \end_layout
18912
18913 \begin_layout Labeling
18914 \labelwidthstring 00.00.0000
18915 CVSコマンド:
18916 \end_layout
18917
18918 \begin_layout Labeling
18919 \labelwidthstring 00.00.0000
18920 \begin_inset Flex Code
18921 status collapsed
18922
18923 \begin_layout Plain Layout
18924 "ファイル名"
18925 \end_layout
18926
18927 \end_inset
18928
18929
18930 \begin_inset Flex Code
18931 status collapsed
18932
18933 \begin_layout Plain Layout
18934 "新ファイル名"
18935 \end_layout
18936
18937 \end_inset
18938
18939 にコピーする場合
18940 \end_layout
18941
18942 \begin_layout Labeling
18943 \labelwidthstring 00.00.0000
18944 \begin_inset Flex Code
18945 status collapsed
18946
18947 \begin_layout Plain Layout
18948 cvs -q add "<新ファイル名>"
18949 \end_layout
18950
18951 \end_inset
18952
18953
18954 \end_layout
18955
18956 \begin_layout Subsubsection
18957 ファイル名変更
18958 \end_layout
18959
18960 \begin_layout Standard
18961 これは、現行文書のファイル名を変更します。CVSは、ファイル名変更操作を自前ではサポートしませんので、バージョン履歴には保存されず、名称変更後のファイルは、新規
18962 ファイルとして追加されます。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され
18963 、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パ
18964 スは、(
18965 \family sans
18966 ファイル\SpecialChar menuseparator
18967 名前をつけて保存\SpecialChar ldots
18968
18969 \family default
18970 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
18971 \end_layout
18972
18973 \begin_layout Labeling
18974 \labelwidthstring 00.00.0000
18975 CVSコマンド:
18976 \end_layout
18977
18978 \begin_layout Labeling
18979 \labelwidthstring 00.00.0000
18980 \begin_inset Flex Code
18981 status collapsed
18982
18983 \begin_layout Plain Layout
18984 "ファイル名"
18985 \end_layout
18986
18987 \end_inset
18988
18989
18990 \begin_inset Flex Code
18991 status collapsed
18992
18993 \begin_layout Plain Layout
18994 "新ファイル名"
18995 \end_layout
18996
18997 \end_inset
18998
18999 に変更する場合
19000 \end_layout
19001
19002 \begin_layout Labeling
19003 \labelwidthstring 00.00.0000
19004 \begin_inset Flex Code
19005 status collapsed
19006
19007 \begin_layout Plain Layout
19008 cvs -q add "<新ファイル名>"
19009 \end_layout
19010
19011 \end_inset
19012
19013
19014 \end_layout
19015
19016 \begin_layout Labeling
19017 \labelwidthstring 00.00.0000
19018 \begin_inset Flex Code
19019 status collapsed
19020
19021 \begin_layout Plain Layout
19022 cvs -q remove "<ファイル名>"
19023 \end_layout
19024
19025 \end_inset
19026
19027
19028 \end_layout
19029
19030 \begin_layout Subsubsection
19031 ローカルディレクトリチェックアウトのレポジトリからの更新
19032 \end_layout
19033
19034 \begin_layout Standard
19035 子文書や図を含んだり、外部
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040 .tex
19041 \end_layout
19042
19043 \end_inset
19044
19045 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。\SpecialCharNoPassThru LyX
19046 は、文書が存在するツリー全体の更新をサポートします。これは、CVSの
19047 使用法について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部フ
19048 ァイルが、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ま
19049 しい習慣です。
19050 \end_layout
19051
19052 \begin_layout Standard
19053 コマンド
19054 \begin_inset Flex Code
19055 status collapsed
19056
19057 \begin_layout Plain Layout
19058 レポジトリを使ってローカル辞書を更新
19059 \end_layout
19060
19061 \end_inset
19062
19063 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
19064 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
19065 \begin_inset Flex Code
19066 status collapsed
19067
19068 \begin_layout Plain Layout
19069 <<<<<<<
19070 \end_layout
19071
19072 \end_inset
19073
19074
19075 \begin_inset Flex Code
19076 status collapsed
19077
19078 \begin_layout Plain Layout
19079 >>>>>>>
19080 \end_layout
19081
19082 \end_inset
19083
19084 の対に囲まれ、
19085 \begin_inset Flex Code
19086 status collapsed
19087
19088 \begin_layout Plain Layout
19089 =======
19090 \end_layout
19091
19092 \end_inset
19093
19094 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
19095 \begin_inset Flex Code
19096 status collapsed
19097
19098 \begin_layout Plain Layout
19099 >
19100 \end_layout
19101
19102 \end_inset
19103
19104 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
19105 \end_layout
19106
19107 \begin_layout Labeling
19108 \labelwidthstring 00.00.0000
19109 CVSコマンド: 
19110 \begin_inset space ~
19111 \end_inset
19112
19113
19114 \begin_inset Newline newline
19115 \end_inset
19116
19117
19118 \begin_inset Flex Code
19119 status collapsed
19120
19121 \begin_layout Plain Layout
19122 cd $path; cvs diff "."
19123 \end_layout
19124
19125 \end_inset
19126
19127 (変更が検出された場合には知らせる)
19128 \begin_inset Newline newline
19129 \end_inset
19130
19131
19132 \begin_inset Flex Code
19133 status collapsed
19134
19135 \begin_layout Plain Layout
19136 cd $path; cvs -q update "."
19137 \end_layout
19138
19139 \end_inset
19140
19141
19142 \end_layout
19143
19144 \begin_layout Standard
19145 ここで
19146 \begin_inset Flex Code
19147 status collapsed
19148
19149 \begin_layout Plain Layout
19150 $path
19151 \end_layout
19152
19153 \end_inset
19154
19155 は文書パスを表します。
19156 \end_layout
19157
19158 \begin_layout Subsubsection
19159 履歴を表示
19160 \end_layout
19161
19162 \begin_layout Standard
19163 これは、CVS文書の全履歴を表示します。
19164 \begin_inset Flex Code
19165 status collapsed
19166
19167 \begin_layout Plain Layout
19168 cvs log 
19169 \begin_inset Quotes eld
19170 \end_inset
19171
19172 <ファイル名>
19173 \begin_inset Quotes erd
19174 \end_inset
19175
19176
19177 \end_layout
19178
19179 \end_inset
19180
19181 の出力がブラウザに表示されます。
19182 \end_layout
19183
19184 \begin_layout Subsubsection
19185 改訂情報
19186 \end_layout
19187
19188 \begin_layout Standard
19189 \SpecialCharNoPassThru LyX
19190 は、CVS版数・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
19191 \family typewriter
19192 cvs log -r <ファイル名>
19193 \family default
19194 によって抽出されます。詳細については、第
19195 \begin_inset CommandInset ref
19196 LatexCommand ref
19197 reference "subsec:VCS改訂情報"
19198
19199 \end_inset
19200
19201 節を参照してください。
19202 \end_layout
19203
19204 \begin_layout Subsection
19205 \SpecialCharNoPassThru LyX
19206 におけるSVNコマンド
19207 \end_layout
19208
19209 \begin_layout Standard
19210 \SpecialCharNoPassThru LyX
19211 は、現在SVNを一部サポートしています。そのコマンドは、
19212 \begin_inset Flex MenuItem
19213 status collapsed
19214
19215 \begin_layout Plain Layout
19216 ファイル\SpecialChar menuseparator
19217 バージョン管理
19218 \end_layout
19219
19220 \end_inset
19221
19222 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。\SpecialCharNoPassThru LyX
19223 は、SVN
19224  1.5および1.6に対して試験されています。
19225 \end_layout
19226
19227 \begin_layout Subsubsection
19228 登録
19229 \end_layout
19230
19231 \begin_layout Standard
19232 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
19233 \family sans
19234 登録
19235 \family default
19236 項目は表示されません。
19237 \end_layout
19238
19239 \begin_layout Standard
19240 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
19241 \emph on
19242 のみ
19243 \emph default
19244 (すなわち
19245 \begin_inset Flex Code
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249 .svn/entries
19250 \end_layout
19251
19252 \end_inset
19253
19254 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
19255 \end_layout
19256
19257 \begin_layout Standard
19258 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
19259 \end_layout
19260
19261 \begin_layout Standard
19262 実行されるSVNコマンドは、
19263 \begin_inset Flex Code
19264 status collapsed
19265
19266 \begin_layout Plain Layout
19267 svn add -q 
19268 \begin_inset Quotes eld
19269 \end_inset
19270
19271 <ファイル名>
19272 \begin_inset Quotes erd
19273 \end_inset
19274
19275
19276 \end_layout
19277
19278 \end_inset
19279
19280 です。
19281 \end_layout
19282
19283 \begin_layout Standard
19284 スイッチの説明は
19285 \begin_inset Flex Code
19286 status collapsed
19287
19288 \begin_layout Plain Layout
19289 man svn
19290 \end_layout
19291
19292 \end_inset
19293
19294 をお読みください。
19295 \end_layout
19296
19297 \begin_layout Subsubsection
19298 変更をチェックイン
19299 \end_layout
19300
19301 \begin_layout Standard
19302 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
19303 \end_layout
19304
19305 \begin_layout Standard
19306 SVNコマンド
19307 \begin_inset Foot
19308 status collapsed
19309
19310 \begin_layout Plain Layout
19311 ロックが有効になっていない場合です。第
19312 \begin_inset CommandInset ref
19313 LatexCommand ref
19314 reference "subsec:SVNファイルロック"
19315
19316 \end_inset
19317
19318 節をご覧ください。
19319 \end_layout
19320
19321 \end_inset
19322
19323
19324 \begin_inset Flex Code
19325 status collapsed
19326
19327 \begin_layout Plain Layout
19328 svn commit -q -m
19329 \begin_inset Quotes erd
19330 \end_inset
19331
19332 <入力した説明文>
19333 \begin_inset Quotes erd
19334 \end_inset
19335
19336  
19337 \begin_inset Quotes eld
19338 \end_inset
19339
19340 <ファイル名>
19341 \begin_inset Quotes erd
19342 \end_inset
19343
19344
19345 \end_layout
19346
19347 \end_inset
19348
19349
19350 \end_layout
19351
19352 \begin_layout Subsubsection
19353 チェックアウトして編集
19354 \end_layout
19355
19356 \begin_layout Standard
19357 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
19358 しておくようにしてください。
19359 \end_layout
19360
19361 \begin_layout Standard
19362 SVNコマンド
19363 \begin_inset Foot
19364 status collapsed
19365
19366 \begin_layout Plain Layout
19367 同上。
19368 \end_layout
19369
19370 \end_inset
19371
19372
19373 \begin_inset Flex Code
19374 status collapsed
19375
19376 \begin_layout Plain Layout
19377 svn update \twohyphens
19378 non-interactive 
19379 \begin_inset Quotes eld
19380 \end_inset
19381
19382 <ファイル名>
19383 \begin_inset Quotes erd
19384 \end_inset
19385
19386
19387 \end_layout
19388
19389 \end_inset
19390
19391
19392 \end_layout
19393
19394 \begin_layout Subsubsection
19395 リポジトリ版に戻す
19396 \end_layout
19397
19398 \begin_layout Standard
19399 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
19400 \end_layout
19401
19402 \begin_layout Standard
19403 SVNコマンド:
19404 \begin_inset Flex Code
19405 status collapsed
19406
19407 \begin_layout Plain Layout
19408 svn revert -q 
19409 \begin_inset Quotes eld
19410 \end_inset
19411
19412 <ファイル名>
19413 \begin_inset Quotes erd
19414 \end_inset
19415
19416
19417 \end_layout
19418
19419 \end_inset
19420
19421
19422 \end_layout
19423
19424 \begin_layout Subsubsection
19425
19426 \family sans
19427 コピー
19428 \end_layout
19429
19430 \begin_layout Standard
19431 これは、現行文書のコピーを生成します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するよ
19432 うに促され、その後、新コピーがローカルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19433 ァイルの相対パスは、(
19434 \family sans
19435 ファイル\SpecialChar menuseparator
19436 名前をつけて保存\SpecialChar ldots
19437
19438 \family default
19439 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
19440 \end_layout
19441
19442 \begin_layout Labeling
19443 \labelwidthstring 00.00.0000
19444 SVNコマンド:
19445 \end_layout
19446
19447 \begin_layout Labeling
19448 \labelwidthstring 00.00.0000
19449 \begin_inset Flex Code
19450 status collapsed
19451
19452 \begin_layout Plain Layout
19453 svn copy -q "<ファイル名>" "<新ファイル名>"
19454 \end_layout
19455
19456 \end_inset
19457
19458
19459 \end_layout
19460
19461 \begin_layout Labeling
19462 \labelwidthstring 00.00.0000
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 svn commit
19468 \end_layout
19469
19470 \end_inset
19471
19472
19473 \end_layout
19474
19475 \begin_layout Subsubsection
19476 ファイル名変更
19477 \end_layout
19478
19479 \begin_layout Standard
19480 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
19481 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19482 ァイルの相対パスは、(
19483 \family sans
19484 ファイル\SpecialChar menuseparator
19485 名前をつけて保存\SpecialChar ldots
19486
19487 \family default
19488 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19489 \end_layout
19490
19491 \begin_layout Labeling
19492 \labelwidthstring 00.00.0000
19493 SVNコマンド:
19494 \end_layout
19495
19496 \begin_layout Labeling
19497 \labelwidthstring 00.00.0000
19498 \begin_inset Flex Code
19499 status collapsed
19500
19501 \begin_layout Plain Layout
19502 svn move -q add "<ファイル名>" "<新ファイル名>"
19503 \end_layout
19504
19505 \end_inset
19506
19507
19508 \end_layout
19509
19510 \begin_layout Labeling
19511 \labelwidthstring 00.00.0000
19512 \begin_inset Flex Code
19513 status collapsed
19514
19515 \begin_layout Plain Layout
19516 svn commit
19517 \end_layout
19518
19519 \end_inset
19520
19521
19522 \end_layout
19523
19524 \begin_layout Subsubsection
19525 \begin_inset CommandInset label
19526 LatexCommand label
19527 name "subsec:レポジトリからSVN同期"
19528
19529 \end_inset
19530
19531 レポジトリを使ったローカルディレクトリの同期
19532 \begin_inset Foot
19533 status collapsed
19534
19535 \begin_layout Plain Layout
19536 このコマンドは、subversion 
19537 \begin_inset Formula $\geqq1.5$
19538 \end_inset
19539
19540 でのみ動作することに注意してください。
19541 \end_layout
19542
19543 \end_inset
19544
19545
19546 \end_layout
19547
19548 \begin_layout Standard
19549 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
19550 \begin_inset Flex Code
19551 status collapsed
19552
19553 \begin_layout Plain Layout
19554 .tex
19555 \end_layout
19556
19557 \end_inset
19558
19559 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこで\SpecialCharNoPassThru LyX
19560 は、文書のおいてあるツリー全体の更新をサポートします
19561 \begin_inset Foot
19562 status collapsed
19563
19564 \begin_layout Plain Layout
19565 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
19566 \end_layout
19567
19568 \end_inset
19569
19570 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
19571
19572 \end_layout
19573
19574 \begin_layout Standard
19575 \begin_inset Flex Code
19576 status collapsed
19577
19578 \begin_layout Plain Layout
19579 ローカル辞書をレポジトリを使って更新
19580 \end_layout
19581
19582 \end_inset
19583
19584 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
19585 場合には、更新が開始される前にユーザに警告が与えられます。
19586 \end_layout
19587
19588 \begin_layout Labeling
19589 \labelwidthstring 00.00.0000
19590 SVNコマンド: 
19591 \begin_inset space ~
19592 \end_inset
19593
19594
19595 \begin_inset Newline newline
19596 \end_inset
19597
19598
19599 \begin_inset Flex Code
19600 status collapsed
19601
19602 \begin_layout Plain Layout
19603 svn diff $path(変更が発見された場合には通知します)
19604 \begin_inset Newline newline
19605 \end_inset
19606
19607 svn update \twohyphens
19608 accept mine-full $path
19609 \end_layout
19610
19611 \end_inset
19612
19613
19614 \end_layout
19615
19616 \begin_layout Standard
19617 ここで
19618 \begin_inset Flex Code
19619 status collapsed
19620
19621 \begin_layout Plain Layout
19622 $path
19623 \end_layout
19624
19625 \end_inset
19626
19627 は文書のパスを示します。
19628 \end_layout
19629
19630 \begin_layout Subsubsection
19631 履歴を表示
19632 \end_layout
19633
19634 \begin_layout Standard
19635 これは、SVN文書の全履歴を表示します。
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 svn log 
19641 \begin_inset Quotes eld
19642 \end_inset
19643
19644 <ファイル名>
19645 \begin_inset Quotes erd
19646 \end_inset
19647
19648
19649 \end_layout
19650
19651 \end_inset
19652
19653 の出力がブラウザに表示されます。
19654 \end_layout
19655
19656 \begin_layout Subsubsection
19657 ファイルロック
19658 \begin_inset CommandInset label
19659 LatexCommand label
19660 name "subsec:SVNファイルロック"
19661
19662 \end_inset
19663
19664
19665 \end_layout
19666
19667 \begin_layout Standard
19668 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
19669 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19670 するための、何らかのロック機構を導入することが考えられます。
19671 \end_layout
19672
19673 \begin_layout Standard
19674 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
19675 \begin_inset Flex Code
19676 status collapsed
19677
19678 \begin_layout Plain Layout
19679 svn:needs-lock
19680 \end_layout
19681
19682 \end_inset
19683
19684 svnファイル特性に依拠した書き込み権限の自動設定(第
19685 \begin_inset CommandInset ref
19686 LatexCommand ref
19687 reference "subsec:自動ロック特性"
19688
19689 \end_inset
19690
19691 節を参照)です
19692 \begin_inset Foot
19693 status open
19694
19695 \begin_layout Plain Layout
19696 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19697 \end_layout
19698
19699 \end_inset
19700
19701 。ある文書について、この特性が検出されたときには、\SpecialCharNoPassThru LyX
19702 は自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組
19703 みに切り替わります。これは特に、\SpecialCharNoPassThru LyX
19704 でのファイルの使われ方に以下の二つのモードがあることを意味します。
19705 \end_layout
19706
19707 \begin_layout Itemize
19708 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
19709 \emph on
19710 チェックアウト
19711 \emph default
19712 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
19713 \end_layout
19714
19715 \begin_layout Itemize
19716 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
19717 \emph on
19718 チェックイン
19719 \emph default
19720 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
19721 \begin_inset Foot
19722 status collapsed
19723
19724 \begin_layout Plain Layout
19725 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
19726 \end_layout
19727
19728 \end_inset
19729
19730 、書き込みロックの解放のみが行われます。
19731 \end_layout
19732
19733 \begin_layout Standard
19734 SVNコマンド:
19735 \end_layout
19736
19737 \begin_layout Labeling
19738 \labelwidthstring 00.00.0000
19739 チェックイン: 
19740 \begin_inset Flex Code
19741 status collapsed
19742
19743 \begin_layout Plain Layout
19744 svn commit -q -m
19745 \begin_inset Quotes erd
19746 \end_inset
19747
19748 <説明>
19749 \begin_inset Quotes erd
19750 \end_inset
19751
19752  
19753 \begin_inset Quotes eld
19754 \end_inset
19755
19756 <ファイル名>
19757 \begin_inset Quotes erd
19758 \end_inset
19759
19760
19761 \end_layout
19762
19763 \end_inset
19764
19765
19766 \begin_inset Newline newline
19767 \end_inset
19768
19769
19770 \begin_inset Flex Code
19771 status collapsed
19772
19773 \begin_layout Plain Layout
19774 svn unlock 
19775 \begin_inset Quotes eld
19776 \end_inset
19777
19778 <ファイル名>
19779 \begin_inset Quotes erd
19780 \end_inset
19781
19782
19783 \end_layout
19784
19785 \end_inset
19786
19787
19788 \end_layout
19789
19790 \begin_layout Labeling
19791 \labelwidthstring 00.00.0000
19792 チェックアウト: 
19793 \begin_inset Flex Code
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797 svn update 
19798 \begin_inset Quotes eld
19799 \end_inset
19800
19801 <ファイル名>
19802 \begin_inset Quotes erd
19803 \end_inset
19804
19805
19806 \end_layout
19807
19808 \end_inset
19809
19810
19811 \begin_inset Newline newline
19812 \end_inset
19813
19814
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 svn unlock 
19820 \begin_inset Quotes eld
19821 \end_inset
19822
19823 <ファイル名>
19824 \begin_inset Quotes erd
19825 \end_inset
19826
19827
19828 \end_layout
19829
19830 \end_inset
19831
19832
19833 \end_layout
19834
19835 \begin_layout Subsubsection
19836 自動ロック特性
19837 \begin_inset CommandInset label
19838 LatexCommand label
19839 name "subsec:自動ロック特性"
19840
19841 \end_inset
19842
19843
19844 \end_layout
19845
19846 \begin_layout Standard
19847 上述したような
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 .lyx
19853 \end_layout
19854
19855 \end_inset
19856
19857 ファイルに対する書き込み権限の自動設定は、
19858 \begin_inset Flex MenuItem
19859 status collapsed
19860
19861 \begin_layout Plain Layout
19862 ファイル\SpecialChar menuseparator
19863 バージョン管理\SpecialChar menuseparator
19864 ロック特性を使用
19865 \end_layout
19866
19867 \end_inset
19868
19869 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
19870 \end_layout
19871
19872 \begin_layout Standard
19873 SVNコマンド:
19874 \end_layout
19875
19876 \begin_layout Labeling
19877 \labelwidthstring 00.00.0000
19878 チェックイン: 
19879 \begin_inset Flex Code
19880 status collapsed
19881
19882 \begin_layout Plain Layout
19883 svn propset svn:needs-lock ON 
19884 \begin_inset Quotes eld
19885 \end_inset
19886
19887 <ファイル名>
19888 \begin_inset Quotes erd
19889 \end_inset
19890
19891
19892 \end_layout
19893
19894 \end_inset
19895
19896
19897 \end_layout
19898
19899 \begin_layout Labeling
19900 \labelwidthstring 00.00.0000
19901 チェックアウト: 
19902 \begin_inset Flex Code
19903 status collapsed
19904
19905 \begin_layout Plain Layout
19906 svn propdel svn:needs-lock 
19907 \begin_inset Quotes eld
19908 \end_inset
19909
19910 <ファイル名>
19911 \begin_inset Quotes erd
19912 \end_inset
19913
19914
19915 \end_layout
19916
19917 \end_inset
19918
19919
19920 \end_layout
19921
19922 \begin_layout Subsubsection
19923 \begin_inset CommandInset label
19924 LatexCommand label
19925 name "subsec:VCS改訂情報"
19926
19927 \end_inset
19928
19929 文書の改訂情報
19930 \end_layout
19931
19932 \begin_layout Standard
19933 文書中で改訂情報を有効化するにはいくつかの方法があります。
19934 \end_layout
19935
19936 \begin_layout Itemize
19937 \SpecialCharNoPassThru LyX
19938 による直接サポート
19939 \begin_inset Separator parbreak
19940 \end_inset
19941
19942 \end_layout
19943
19944 \begin_deeper
19945 \begin_layout Itemize
19946 ツリー改訂情報(
19947 \begin_inset Flex Code
19948 status collapsed
19949
19950 \begin_layout Plain Layout
19951 vcs-tree-revision
19952 \end_layout
19953
19954 \end_inset
19955
19956 )。
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 svnversion
19962 \end_layout
19963
19964 \end_inset
19965
19966 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
19967 \end_layout
19968
19969 \begin_layout Standard
19970 \align center
19971 \begin_inset Tabular
19972 <lyxtabular version="3" rows="6" columns="2">
19973 <features rotate="0" tabularvalignment="middle">
19974 <column alignment="center" valignment="top">
19975 <column alignment="center" valignment="top">
19976 <row>
19977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19978 \begin_inset Text
19979
19980 \begin_layout Plain Layout
19981 出力
19982 \end_layout
19983
19984 \end_inset
19985 </cell>
19986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19987 \begin_inset Text
19988
19989 \begin_layout Plain Layout
19990 意味
19991 \end_layout
19992
19993 \end_inset
19994 </cell>
19995 </row>
19996 <row>
19997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19998 \begin_inset Text
19999
20000 \begin_layout Plain Layout
20001 4123:4168
20002 \end_layout
20003
20004 \end_inset
20005 </cell>
20006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20007 \begin_inset Text
20008
20009 \begin_layout Plain Layout
20010 改訂版の混合した作業コピー
20011 \end_layout
20012
20013 \end_inset
20014 </cell>
20015 </row>
20016 <row>
20017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20018 \begin_inset Text
20019
20020 \begin_layout Plain Layout
20021 4168M
20022 \end_layout
20023
20024 \end_inset
20025 </cell>
20026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20027 \begin_inset Text
20028
20029 \begin_layout Plain Layout
20030 修正された作業コピー
20031 \end_layout
20032
20033 \end_inset
20034 </cell>
20035 </row>
20036 <row>
20037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20038 \begin_inset Text
20039
20040 \begin_layout Plain Layout
20041 4123S
20042 \end_layout
20043
20044 \end_inset
20045 </cell>
20046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20047 \begin_inset Text
20048
20049 \begin_layout Plain Layout
20050 スイッチされた作業コピー
20051 \end_layout
20052
20053 \end_inset
20054 </cell>
20055 </row>
20056 <row>
20057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20058 \begin_inset Text
20059
20060 \begin_layout Plain Layout
20061 4123P
20062 \end_layout
20063
20064 \end_inset
20065 </cell>
20066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20067 \begin_inset Text
20068
20069 \begin_layout Plain Layout
20070 チェックアウト頻度が低かったことによる不完全な作業コピー
20071 \end_layout
20072
20073 \end_inset
20074 </cell>
20075 </row>
20076 <row>
20077 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20078 \begin_inset Text
20079
20080 \begin_layout Plain Layout
20081 4123:4168MS
20082 \end_layout
20083
20084 \end_inset
20085 </cell>
20086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20087 \begin_inset Text
20088
20089 \begin_layout Plain Layout
20090 改訂版が混合し、修正され、スイッチされた作業コピー
20091 \end_layout
20092
20093 \end_inset
20094 </cell>
20095 </row>
20096 </lyxtabular>
20097
20098 \end_inset
20099
20100
20101 \end_layout
20102
20103 \begin_layout Itemize
20104 ファイル改訂情報。
20105 \begin_inset Flex Code
20106 status collapsed
20107
20108 \begin_layout Plain Layout
20109 svn
20110 \begin_inset space ~
20111 \end_inset
20112
20113 info
20114 \begin_inset space ~
20115 \end_inset
20116
20117 \twohyphens
20118 xml
20119 \begin_inset space ~
20120 \end_inset
20121
20122 file.lyx
20123 \end_layout
20124
20125 \end_inset
20126
20127 の出力を解析したものが返されます。サポートされるフラグは
20128 \begin_inset Separator parbreak
20129 \end_inset
20130
20131 \end_layout
20132
20133 \begin_deeper
20134 \begin_layout Itemize
20135 最終コミットのバージョン番号(
20136 \begin_inset Flex Code
20137 status collapsed
20138
20139 \begin_layout Plain Layout
20140 vcs-revision
20141 \end_layout
20142
20143 \end_inset
20144
20145 )
20146 \end_layout
20147
20148 \begin_layout Itemize
20149 最終コミットの著者(
20150 \begin_inset Flex Code
20151 status collapsed
20152
20153 \begin_layout Plain Layout
20154 vcs-author
20155 \end_layout
20156
20157 \end_inset
20158
20159 )
20160 \end_layout
20161
20162 \begin_layout Itemize
20163 最終コミットの日付(
20164 \begin_inset Flex Code
20165 status collapsed
20166
20167 \begin_layout Plain Layout
20168 vcs-date
20169 \end_layout
20170
20171 \end_inset
20172
20173 )
20174 \end_layout
20175
20176 \begin_layout Itemize
20177 最終コミットの時間(
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 vcs-time
20183 \end_layout
20184
20185 \end_inset
20186
20187 )
20188 \end_layout
20189
20190 \end_deeper
20191 \begin_layout Standard
20192 これらの情報は、情報差込枠で得ることができます(例:
20193 \begin_inset Flex Code
20194 status collapsed
20195
20196 \begin_layout Plain Layout
20197 info-insert buffer vcs-date
20198 \end_layout
20199
20200 \end_inset
20201
20202 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20203 \begin_inset Flex Code
20204 status collapsed
20205
20206 \begin_layout Plain Layout
20207 .svn
20208 \end_layout
20209
20210 \end_inset
20211
20212 ディレクトリがあるときのみ)利用可能です。
20213 \end_layout
20214
20215 \end_deeper
20216 \begin_layout Itemize
20217 もう一つの\threehyphens
20218 ハッカー的な\threehyphens
20219 方法は、SVNキーワードを使用する方法です
20220 \begin_inset Foot
20221 status collapsed
20222
20223 \begin_layout Plain Layout
20224 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20225 \end_layout
20226
20227 \end_inset
20228
20229 。簡単に言えば、ファイルキーワード特性を設定して(例:
20230 \family sans
20231 svn propset svn:keywords 'Rev' file.lyx
20232 \family default
20233 )、文書中にキーワード\SpecialCharNoPassThru TeX
20234 コード
20235 \begin_inset Foot
20236 status collapsed
20237
20238 \begin_layout Plain Layout
20239 これは、\SpecialCharNoPassThru LyX
20240 がキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
20241 \end_layout
20242
20243 \end_inset
20244
20245 タグ(例:
20246 \begin_inset ERT
20247 status open
20248
20249 \begin_layout Plain Layout
20250
20251 $Rev$
20252 \end_layout
20253
20254 \end_inset
20255
20256 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20257 \begin_inset ERT
20258 status open
20259
20260 \begin_layout Plain Layout
20261
20262 $Rev: 59 $
20263 \end_layout
20264
20265 \end_inset
20266
20267 )。このアプローチにはいくつか問題があります。第一に、\SpecialCharNoPassThru TeX
20268 の世界では「$」文字は数式を表すのに使われるので、\SpecialCharNoPassThru LyX
20269 中の
20270 \begin_inset Formula $Rev$
20271 \end_inset
20272
20273 という数式表現が、すべて
20274 \begin_inset Formula $Rev:59$
20275 \end_inset
20276
20277 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
20278 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20279 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、\SpecialCharNoPassThru LyX
20280 がこれを直接サポートすることは、難しそうです。
20281 \end_layout
20282
20283 \begin_layout Subsection
20284 SVNとWindows環境
20285 \end_layout
20286
20287 \begin_layout Quote
20288 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。\threehyphens
20289 P.
20290  A.
20291  ルービン
20292 \end_layout
20293
20294 \begin_layout Subsubsection
20295 準備
20296 \end_layout
20297
20298 \begin_layout Standard
20299 \SpecialCharNoPassThru LyX
20300 を導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クラ
20301 イアントプログラムのWindows用インストーラは
20302 \begin_inset CommandInset href
20303 LatexCommand href
20304 name "CollabNet"
20305 target "http://www.collab.net/nonav/downloads/subversion/"
20306
20307 \end_inset
20308
20309 にあります。ユーザは
20310 \begin_inset CommandInset href
20311 LatexCommand href
20312 name "TortoiseSVN"
20313 target "http://tortoisesvn.tigris.org/"
20314
20315 \end_inset
20316
20317 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。\SpecialCharNoPassThru LyX
20318 外部で
20319 行う操作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、\SpecialCharNoPassThru LyX
20320 自身が使用するクライアントプログラムの代わりとは成
20321 りませんので、注意してください。
20322 \end_layout
20323
20324 \begin_layout Subsubsection
20325 文書をSubversion管理下に置くには
20326 \end_layout
20327
20328 \begin_layout Standard
20329 \SpecialCharNoPassThru LyX
20330 文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロ
20331 ジェクトに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下
20332 にない場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、\SpecialCharNoPassThru LyX
20333 の外
20334 部で行います。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、
20335 DOSプロンプトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。
20336 レポジトリは既に存在し、新規プロジェクトを
20337 \begin_inset Flex Code
20338 status collapsed
20339
20340 \begin_layout Plain Layout
20341 C:
20342 \backslash
20343 new project
20344 \end_layout
20345
20346 \end_inset
20347
20348 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
20349 \begin_inset Flex Code
20350 status collapsed
20351
20352 \begin_layout Plain Layout
20353 svn \twohyphens
20354 help
20355 \end_layout
20356
20357 \end_inset
20358
20359 を実行してください。
20360 \end_layout
20361
20362 \begin_layout Enumerate
20363 Windows Explorerで
20364 \begin_inset Flex Code
20365 status collapsed
20366
20367 \begin_layout Plain Layout
20368 C:
20369 \backslash
20370 new project
20371 \end_layout
20372
20373 \end_inset
20374
20375 を見つけ出して右クリックし、
20376 \begin_inset Flex MenuItem
20377 status collapsed
20378
20379 \begin_layout Plain Layout
20380 TortoiseSVN\SpecialChar menuseparator
20381 Repo-browser
20382 \end_layout
20383
20384 \end_inset
20385
20386 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
20387 \end_layout
20388
20389 \begin_layout Enumerate
20390 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
20391 \begin_inset Flex MenuItem
20392 status collapsed
20393
20394 \begin_layout Plain Layout
20395 Create folder\SpecialChar ldots
20396
20397 \end_layout
20398
20399 \end_inset
20400
20401 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
20402 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
20403 \end_layout
20404
20405 \begin_layout Enumerate
20406 再度
20407 \begin_inset Flex Code
20408 status collapsed
20409
20410 \begin_layout Plain Layout
20411 C:
20412 \backslash
20413 new project
20414 \end_layout
20415
20416 \end_inset
20417
20418 を右クリックし、今度は
20419 \begin_inset Flex MenuItem
20420 status collapsed
20421
20422 \begin_layout Plain Layout
20423 SVN Checkout\SpecialChar ldots
20424
20425 \end_layout
20426
20427 \end_inset
20428
20429 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
20430 \begin_inset Flex Code
20431 status collapsed
20432
20433 \begin_layout Plain Layout
20434 C:
20435 \backslash
20436 new project
20437 \end_layout
20438
20439 \end_inset
20440
20441 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
20442 \begin_inset Flex Code
20443 status collapsed
20444
20445 \begin_layout Plain Layout
20446 C:
20447 \backslash
20448 new project
20449 \end_layout
20450
20451 \end_inset
20452
20453 の下に
20454 \begin_inset Flex Code
20455 status collapsed
20456
20457 \begin_layout Plain Layout
20458 .svn
20459 \end_layout
20460
20461 \end_inset
20462
20463 ディレクトリが作成されます。
20464 \end_layout
20465
20466 \begin_layout Enumerate
20467 \SpecialCharNoPassThru LyX
20468 で文書を新規作成するか開くかして、
20469 \begin_inset Flex MenuItem
20470 status collapsed
20471
20472 \begin_layout Plain Layout
20473 ファイル\SpecialChar menuseparator
20474 バージョン管理\SpecialChar menuseparator
20475 登録
20476 \end_layout
20477
20478 \end_inset
20479
20480 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
20481 \end_layout
20482
20483 \begin_layout Standard
20484 爾後、
20485 \begin_inset Flex MenuItem
20486 status collapsed
20487
20488 \begin_layout Plain Layout
20489 ファイル\SpecialChar menuseparator
20490 バージョン管理
20491 \end_layout
20492
20493 \end_inset
20494
20495 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
20496 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
20497 \end_layout
20498
20499 \begin_layout Subsubsection
20500 Windows下でSVNと共にSSHトンネルを使うには
20501 \end_layout
20502
20503 \begin_layout Standard
20504 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
20505 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
20506 ることを覚悟しておいてください。
20507 \end_layout
20508
20509 \begin_layout Enumerate
20510 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
20511 \begin_inset Flex Code
20512 status collapsed
20513
20514 \begin_layout Plain Layout
20515 svn \twohyphens
20516 version
20517 \end_layout
20518
20519 \end_inset
20520
20521 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
20522 \end_layout
20523
20524 \begin_layout Enumerate
20525 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
20526 \begin_inset Foot
20527 status open
20528
20529 \begin_layout Plain Layout
20530 \begin_inset Flex URL
20531 status collapsed
20532
20533 \begin_layout Plain Layout
20534
20535 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20536 \end_layout
20537
20538 \end_inset
20539
20540
20541 \end_layout
20542
20543 \end_inset
20544
20545 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
20546 護などを加えない
20547 \begin_inset Flex Ruby
20548 status collapsed
20549
20550 \begin_layout Plain Layout
20551
20552 \begin_inset Argument post:1
20553 status collapsed
20554
20555 \begin_layout Plain Layout
20556 キー
20557 \end_layout
20558
20559 \end_inset
20560
20561
20562 \end_layout
20563
20564 \end_inset
20565
20566 のみを使用することとします。
20567 \begin_inset Separator parbreak
20568 \end_inset
20569
20570 \end_layout
20571
20572 \begin_deeper
20573 \begin_layout Enumerate
20574 \begin_inset Flex Code
20575 status collapsed
20576
20577 \begin_layout Plain Layout
20578 puttygen
20579 \end_layout
20580
20581 \end_inset
20582
20583 を使って鍵を生成します。.ppkプライベート鍵ファイルを保存し、パブリック鍵ファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブリック
20584 鍵の書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized_key
20585 s file:」編集フィールドから、直接サーバの
20586 \begin_inset Flex Code
20587 status collapsed
20588
20589 \begin_layout Plain Layout
20590 ~/.ssh/authorized_keys
20591 \end_layout
20592
20593 \end_inset
20594
20595 または
20596 \begin_inset Flex Code
20597 status collapsed
20598
20599 \begin_layout Plain Layout
20600 authorized_keys2
20601 \end_layout
20602
20603 \end_inset
20604
20605 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
20606 \end_layout
20607
20608 \begin_layout Enumerate
20609 Puttyのplinkを入手してください。SVNのconfigファイル
20610 \begin_inset Foot
20611 status collapsed
20612
20613 \begin_layout Plain Layout
20614 正確なパスはWindowsのバージョンに依りますが、通常は
20615 \begin_inset Flex Code
20616 status collapsed
20617
20618 \begin_layout Plain Layout
20619 c:
20620 \backslash
20621 Documents and Settings
20622 \backslash
20623 user
20624 \backslash
20625 Application Data
20626 \backslash
20627 Subversion
20628 \backslash
20629 config
20630 \end_layout
20631
20632 \end_inset
20633
20634
20635 \begin_inset Flex Code
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639 AppData
20640 \backslash
20641 Roaming
20642 \backslash
20643 Subversion
20644 \end_layout
20645
20646 \end_inset
20647
20648 辺りにあります。
20649 \end_layout
20650
20651 \end_inset
20652
20653 中の
20654 \begin_inset Flex Code
20655 status collapsed
20656
20657 \begin_layout Plain Layout
20658 [tunnels]
20659 \end_layout
20660
20661 \end_inset
20662
20663 セクションにsshコマンドを設定してください。例:
20664 \begin_inset Flex Code
20665 status collapsed
20666
20667 \begin_layout Plain Layout
20668 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20669 \end_layout
20670
20671 \end_inset
20672
20673
20674 \begin_inset Foot
20675 status collapsed
20676
20677 \begin_layout Plain Layout
20678 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
20679 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
20680 \end_layout
20681
20682 \end_inset
20683
20684
20685 \end_layout
20686
20687 \end_deeper
20688 \begin_layout Enumerate
20689 SVNアーカイブをチェックアウトしてください。例:
20690 \begin_inset Newline newline
20691 \end_inset
20692
20693
20694 \begin_inset Flex Code
20695 status collapsed
20696
20697 \begin_layout Plain Layout
20698 svn co svn+ssh://user@server/repository_path
20699 \end_layout
20700
20701 \end_inset
20702
20703
20704 \end_layout
20705
20706 \begin_layout Subsubsection
20707 行末変換
20708 \end_layout
20709
20710 \begin_layout Standard
20711 共著者同士がLinuxとWindowsを混在させているとき、\SpecialCharNoPassThru LyX
20712 は.lyxファイル中で異なった行末記号を使用することになります。これは、\SpecialCharNoPassThru LyX
20713 の機能に関する限り
20714 問題になりませんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
20715 \begin_inset Flex Code
20716 status collapsed
20717
20718 \begin_layout Plain Layout
20719 native
20720 \end_layout
20721
20722 \end_inset
20723
20724 モードに切り替える際
20725 \begin_inset Foot
20726 status collapsed
20727
20728 \begin_layout Plain Layout
20729 手短には
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 svn propset svn:eol-style native FILE_NAME
20735 \end_layout
20736
20737 \end_inset
20738
20739
20740 \end_layout
20741
20742 \end_inset
20743
20744 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20745 \begin_inset Foot
20746 status collapsed
20747
20748 \begin_layout Plain Layout
20749 \begin_inset Flex URL
20750 status collapsed
20751
20752 \begin_layout Plain Layout
20753
20754 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20755 \end_layout
20756
20757 \end_inset
20758
20759
20760 \end_layout
20761
20762 \end_inset
20763
20764
20765 \end_layout
20766
20767 \begin_layout Subsection
20768 \SpecialCharNoPassThru LyX
20769 におけるGITコマンド
20770 \end_layout
20771
20772 \begin_layout Standard
20773 \SpecialCharNoPassThru LyX
20774 で、最小限のGITコマンドがサポートされるようになりました。これらのコマンドは、
20775 \family sans
20776 ファイル\SpecialChar menuseparator
20777 バージョン管理
20778 \family default
20779 にあります。リポジトリのアクセスに、パスワード保護されたsshを使用している場合には、ターミナルウィンドウでの操作をするように促されます。\SpecialCharNoPassThru LyX
20780 は、GIT
20781  1.7に対して試験を行っています。
20782 \end_layout
20783
20784 \begin_layout Standard
20785 GITと他のバージョン管理システムとの大きな相違点は、GITの配布形態にあります。伝統的なバージョン管理システムでは、リポジトリをホストする、中心となるサーバー
20786 があります。ユーザーは変更点をサーバーにコミットし、他のユーザーが行った更新分をサーバーから受け取ります。一方、GITでは、ユーザーは、ローカルのリポジトリにコ
20787 ミットを行います。ローカルリポジトリは、GITコマンドの
20788 \begin_inset Flex Code
20789 status open
20790
20791 \begin_layout Plain Layout
20792 pull
20793 \end_layout
20794
20795 \end_inset
20796
20797 または
20798 \begin_inset Flex Code
20799 status open
20800
20801 \begin_layout Plain Layout
20802 push
20803 \end_layout
20804
20805 \end_inset
20806
20807 を使って、1つ以上のリモートリポジトリと同期されます。\SpecialCharNoPassThru LyX
20808 は、リモートのGITリポジトリとは、一切関わりません。CVSやSVNの集権的リポジトリに対して行うの
20809 と同じことを、ローカルのリポジトリに対してのみ行います。リモートのGITリポジトリを使用している場合には、お好みのGITクライアントを使用して、
20810 \begin_inset Flex Code
20811 status open
20812
20813 \begin_layout Plain Layout
20814 pull
20815 \end_layout
20816
20817 \end_inset
20818
20819 または
20820 \begin_inset Flex Code
20821 status open
20822
20823 \begin_layout Plain Layout
20824 push
20825 \end_layout
20826
20827 \end_inset
20828
20829 の操作を行う必要があります。
20830 \end_layout
20831
20832 \begin_layout Subsubsection
20833 登録
20834 \end_layout
20835
20836 \begin_layout Standard
20837 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
20838 \family sans
20839 登録
20840 \family default
20841 項目は表示されません。
20842 \end_layout
20843
20844 \begin_layout Standard
20845 本コマンドは、既に文書のあるディレクトリをGIT管理下に置いている場合に
20846 \emph on
20847 のみ
20848 \emph default
20849 (すなわち
20850 \begin_inset Flex Code
20851 status collapsed
20852
20853 \begin_layout Plain Layout
20854 .git/index
20855 \end_layout
20856
20857 \end_inset
20858
20859 ファイルが存在する場合にのみ)、お使いの文書をGITに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
20860 \end_layout
20861
20862 \begin_layout Standard
20863 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
20864 \end_layout
20865
20866 \begin_layout Standard
20867 実行されるGITコマンドは、
20868 \begin_inset Flex Code
20869 status collapsed
20870
20871 \begin_layout Plain Layout
20872 git add "<ファイル名>"
20873 \end_layout
20874
20875 \end_inset
20876
20877 です。
20878 \end_layout
20879
20880 \begin_layout Standard
20881 スイッチの説明は
20882 \begin_inset Flex Code
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886 man git
20887 \end_layout
20888
20889 \end_inset
20890
20891 をお読みください。
20892 \end_layout
20893
20894 \begin_layout Subsubsection
20895 変更をチェックイン
20896 \end_layout
20897
20898 \begin_layout Standard
20899 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
20900 \end_layout
20901
20902 \begin_layout Standard
20903 GITコマンド:
20904 \begin_inset Flex Code
20905 status collapsed
20906
20907 \begin_layout Plain Layout
20908 git commit -q -m
20909 \begin_inset Quotes erd
20910 \end_inset
20911
20912 <入力した説明文>
20913 \begin_inset Quotes erd
20914 \end_inset
20915
20916  "<ファイル名>"
20917 \end_layout
20918
20919 \end_inset
20920
20921
20922 \end_layout
20923
20924 \begin_layout Subsubsection
20925 リポジトリ版に戻す
20926 \end_layout
20927
20928 \begin_layout Standard
20929 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
20930 \end_layout
20931
20932 \begin_layout Standard
20933 GITコマンド:
20934 \begin_inset Flex Code
20935 status collapsed
20936
20937 \begin_layout Plain Layout
20938 git checkout -q 
20939 \begin_inset Quotes eld
20940 \end_inset
20941
20942 <ファイル名>
20943 \begin_inset Quotes erd
20944 \end_inset
20945
20946
20947 \end_layout
20948
20949 \end_inset
20950
20951
20952 \end_layout
20953
20954 \begin_layout Subsubsection
20955 ファイル名変更
20956 \end_layout
20957
20958 \begin_layout Standard
20959 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
20960 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
20961 ァイルの相対パスは、(
20962 \family sans
20963 ファイル\SpecialChar menuseparator
20964 名前をつけて保存\SpecialChar ldots
20965
20966 \family default
20967 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
20968 \end_layout
20969
20970 \begin_layout Labeling
20971 \labelwidthstring 00.00.0000
20972 GITコマンド:
20973 \end_layout
20974
20975 \begin_layout Labeling
20976 \labelwidthstring 00.00.0000
20977 \begin_inset Flex Code
20978 status collapsed
20979
20980 \begin_layout Plain Layout
20981 git mv "<ファイル名>" "<新ファイル名>"
20982 \end_layout
20983
20984 \end_inset
20985
20986
20987 \end_layout
20988
20989 \begin_layout Labeling
20990 \labelwidthstring 00.00.0000
20991 \begin_inset Flex Code
20992 status collapsed
20993
20994 \begin_layout Plain Layout
20995 git commit
20996 \end_layout
20997
20998 \end_inset
20999
21000
21001 \end_layout
21002
21003 \begin_layout Subsubsection
21004 履歴を表示
21005 \end_layout
21006
21007 \begin_layout Standard
21008 これは、GIT文書の全履歴を表示します。
21009 \begin_inset Flex Code
21010 status collapsed
21011
21012 \begin_layout Plain Layout
21013 git log 
21014 \begin_inset Quotes eld
21015 \end_inset
21016
21017 <ファイル名>
21018 \begin_inset Quotes erd
21019 \end_inset
21020
21021
21022 \end_layout
21023
21024 \end_inset
21025
21026 の出力がブラウザに表示されます。
21027 \end_layout
21028
21029 \begin_layout Subsubsection
21030 改訂情報
21031 \end_layout
21032
21033 \begin_layout Standard
21034 \SpecialCharNoPassThru LyX
21035 は、ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
21036 \family typewriter
21037 git log -n 1 \twohyphens
21038 pretty=format:%H%n%an%n%ai
21039 \family default
21040 によって抽出されます。ツリーバージョン情報は、
21041 \family typewriter
21042 git describe \twohyphens
21043 abbrev \twohyphens
21044 dirty \twohyphens
21045 long
21046 \family default
21047 で取得されます。詳細については、第
21048 \begin_inset CommandInset ref
21049 LatexCommand ref
21050 reference "subsec:VCS改訂情報"
21051
21052 \end_inset
21053
21054 節を参照してください。
21055 \end_layout
21056
21057 \begin_layout Subsection
21058 さらなる調整
21059 \end_layout
21060
21061 \begin_layout Standard
21062 vcコマンド機構が最近になって付け加えられたおかげで、\SpecialCharNoPassThru LyX
21063 のパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
21064 \end_layout
21065
21066 \begin_layout Standard
21067 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
21068 \end_layout
21069
21070 \begin_layout Description
21071 コミット: 
21072 \begin_inset Flex Code
21073 status collapsed
21074
21075 \begin_layout Plain Layout
21076 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21077 \end_layout
21078
21079 \end_inset
21080
21081
21082 \end_layout
21083
21084 \begin_layout Description
21085 元に戻す: 
21086 \begin_inset Flex Code
21087 status collapsed
21088
21089 \begin_layout Plain Layout
21090 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21091 \end_layout
21092
21093 \end_inset
21094
21095
21096 \end_layout
21097
21098 \begin_layout Subsection
21099 バージョン管理と文書比較
21100 \end_layout
21101
21102 \begin_layout Standard
21103 バージョン管理は、通常
21104 \begin_inset Flex Code
21105 status collapsed
21106
21107 \begin_layout Plain Layout
21108 diff
21109 \end_layout
21110
21111 \end_inset
21112
21113 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つ\SpecialCharNoPassThru LyX
21114 ファイルの場合に
21115 は、あまり便利ではありません。そこで、\SpecialCharNoPassThru LyX
21116 は独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、\SpecialCharNoPassThru LyX
21117
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 VC_COMPARE
21123 \end_layout
21124
21125 \end_inset
21126
21127 関数を直接呼び出す方法であり(詳細は\SpecialCharNoPassThru LyX
21128 関数説明書を参照)、もう1つは
21129 \begin_inset Flex MenuItem
21130 status collapsed
21131
21132 \begin_layout Plain Layout
21133 旧改訂と比較\SpecialChar ldots
21134
21135 \end_layout
21136
21137 \end_inset
21138
21139 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
21140 とき改訂版遡及数「
21141 \begin_inset Flex MenuItem
21142 status collapsed
21143
21144 \begin_layout Plain Layout
21145 0
21146 \end_layout
21147
21148 \end_inset
21149
21150 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
21151 \end_layout
21152
21153 \begin_layout Standard
21154 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
21155 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。現在のところ、改訂のGIT表記はサポートされておらず、HEAD~
21156 Xの形で表記されるXステップ前の改訂版を、編集中文書と比較することのみが可能です。
21157 \end_layout
21158
21159 \begin_layout Section
21160 文芸プログラミング
21161 \end_layout
21162
21163 \begin_layout Standard
21164
21165 \noun on
21166 Kayvan Sylvan
21167 \noun default
21168 (kayvan@sylvan.com)改訂 
21169 \noun on
21170 Edmar Wienskoski Jr.
21171 \noun default
21172 (edmar-w-jr@technologist.com)原文
21173 \end_layout
21174
21175 \begin_layout Subsection
21176 はじめに
21177 \end_layout
21178
21179 \begin_layout Standard
21180 この節の主な目的は、文芸的プログラミング(literate programming)のために、\SpecialCharNoPassThru LyX
21181 をどう使えばよいかをお見せすることです。ここでは、あなたがこ
21182 のプログラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあ
21183 るウェブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
21184 \end_layout
21185
21186 \begin_layout Standard
21187 また、あなたが、\SpecialCharNoPassThru LyX
21188 の設定を変更することを厭わない程度まで\SpecialCharNoPassThru LyX
21189 に習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あ
21190 なたの必要とするトピックを扱っている、\SpecialCharNoPassThru LyX
21191 の他の説明書で調べてください。
21192 \end_layout
21193
21194 \begin_layout Subsection
21195 文芸プログラミング
21196 \end_layout
21197
21198 \begin_layout Standard
21199 以下は、文芸プログラミング FAQからの抜粋です。
21200 \end_layout
21201
21202 \begin_layout Quotation
21203 文芸プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加し
21204 たいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸プログラムは、ソースとドキュメンテーションを同一ファイル上に結合したもの
21205 です。そして、文芸プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸プログラミ
21206 ングのWEBスタイルは、D.
21207 \begin_inset space \thinspace{}
21208 \end_inset
21209
21210 E.
21211  Knuthが、\SpecialCharNoPassThru TeX
21212 組版ソフトウエアを開発中に作り出したものです。
21213 \end_layout
21214
21215 \begin_layout Standard
21216 他のエキスパートの発言です。
21217 \end_layout
21218
21219 \begin_layout Quotation
21220
21221 \emph on
21222 文芸プログラミングは、冗長なコメント付けと何が違いますか?
21223 \end_layout
21224
21225 \begin_layout Quotation
21226 3つの際立った特徴があります。重要な順に列挙すれば、
21227 \begin_inset Separator parbreak
21228 \end_inset
21229
21230 \end_layout
21231
21232 \begin_deeper
21233 \begin_layout Itemize
21234 推敲の順序が柔軟
21235 \end_layout
21236
21237 \begin_layout Itemize
21238 ブラウジングの自動サポート
21239 \end_layout
21240
21241 \begin_layout Itemize
21242 特に図式と数式を含んだドキュメンテーションの組版
21243 \end_layout
21244
21245 \end_deeper
21246 \begin_layout Quotation
21247 などがあります。
21248 \end_layout
21249
21250 \begin_layout Standard
21251 あなたの興味に火を付けたところで書誌情報を見てみましょう。
21252 \end_layout
21253
21254 \begin_layout Subsubsection
21255 書誌情報
21256 \end_layout
21257
21258 \begin_layout Standard
21259 完全な文芸プログラミング FAQは
21260 \end_layout
21261
21262 \begin_layout Quote
21263 Literate Programming FAQ 
21264 \begin_inset Flex URL
21265 status collapsed
21266
21267 \begin_layout Plain Layout
21268
21269 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21270 \end_layout
21271
21272 \end_inset
21273
21274
21275 \end_layout
21276
21277 \begin_layout Standard
21278 にあります。
21279 \end_layout
21280
21281 \begin_layout Standard
21282 このFAQには、23(二十三です!)の文芸プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対象
21283 を持つものもあります。私は自分で使うのに、いくつかの理由から
21284 \noun on
21285 Noweb
21286 \noun default
21287 を選びました。
21288 \end_layout
21289
21290 \begin_layout Itemize
21291 説明文書を\SpecialCharNoPassThru LaTeX
21292 でもHTMLでも出力できる。
21293 \end_layout
21294
21295 \begin_layout Itemize
21296 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
21297 \end_layout
21298
21299 \begin_layout Itemize
21300 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
21301 \end_layout
21302
21303 \begin_layout Itemize
21304 無料である。
21305 \end_layout
21306
21307 \begin_layout Standard
21308 Nowebのウェブページは
21309 \end_layout
21310
21311 \begin_layout Quote
21312 Nowebホームページ 
21313 \begin_inset Flex URL
21314 status collapsed
21315
21316 \begin_layout Plain Layout
21317
21318 http://www.cs.virginia.edu/~nr/noweb/
21319 \end_layout
21320
21321 \end_inset
21322
21323
21324 \end_layout
21325
21326 \begin_layout Standard
21327 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸プログラミングの用例にたどり着くことができます。
21328 \end_layout
21329
21330 \begin_layout Subsection
21331 \SpecialCharNoPassThru LyX
21332 とNowebを使った文芸プログラミング
21333 \end_layout
21334
21335 \begin_layout Standard
21336 \SpecialCharNoPassThru LyX
21337 における文芸プログラミングのサポートは、\SpecialCharNoPassThru LyX
21338 の汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、Ly
21339 Xの設定を変更するだけで、自分の好きな他の文芸プログラミングツールを使って、この新しい\SpecialCharNoPassThru LyX
21340 の機能を利用することができます。
21341 \end_layout
21342
21343 \begin_layout Subsubsection
21344 ドキュメントとコードの生成(weavingおよびtangling)
21345 \end_layout
21346
21347 \begin_layout Paragraph
21348 nowebモジュールの使用
21349 \end_layout
21350
21351 \begin_layout Standard
21352 Nowebと\SpecialCharNoPassThru LyX
21353 の導入に成功したならば、新規文書を開いたときにはいつも、文書クラスを選択した後、
21354 \family sans
21355 文書\SpecialChar menuseparator
21356 設定
21357 \family default
21358 メニューで「noweb」モジュールを追加するようにしてください。Nowebが正しく導入されていれば、「モジュール」リンクをクリックした際、利用可能リストに「no
21359 web」モジュールが表示され、文書に追加できるようになっています。
21360 \end_layout
21361
21362 \begin_layout Paragraph
21363 コードの入力
21364 \end_layout
21365
21366 \begin_layout Standard
21367 \SpecialCharNoPassThru LyX
21368 では、
21369 \begin_inset Flex Noun
21370 status collapsed
21371
21372 \begin_layout Plain Layout
21373 Chunk
21374 \end_layout
21375
21376 \end_inset
21377
21378 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
21379 \end_layout
21380
21381 \begin_layout LyX-Code
21382 <<My code>>=
21383 \end_layout
21384
21385 \begin_layout LyX-Code
21386   code
21387 \end_layout
21388
21389 \begin_layout LyX-Code
21390   more code
21391 \end_layout
21392
21393 \begin_layout LyX-Code
21394   even more code
21395 \end_layout
21396
21397 \begin_layout LyX-Code
21398   @
21399 \end_layout
21400
21401 \begin_layout Standard
21402 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまり、\SpecialCharNoPassThru LyX
21403 は、この間に書かれたものを特別に解釈することは決してあってはなりま
21404 せん。これも
21405 \begin_inset Flex Noun
21406 status collapsed
21407
21408 \begin_layout Plain Layout
21409 Chunk
21410 \end_layout
21411
21412 \end_inset
21413
21414 によって取り扱われ、通常の段落のように見えますが、自由に空白を入れることができます。
21415 \end_layout
21416
21417 \begin_layout Standard
21418 特殊な注釈として、chunk内でNowebの「%def」を使えば、Nowebのidentifierの相互参照に項目を加えることができます。次の例を見てください。
21419 \end_layout
21420
21421 \begin_layout LyX-Code
21422 <<My chunk>>=
21423 \end_layout
21424
21425 \begin_layout LyX-Code
21426 def some_function(args):
21427 \end_layout
21428
21429 \begin_layout LyX-Code
21430    "This is the doc string for this function."
21431 \end_layout
21432
21433 \begin_layout LyX-Code
21434    print "My args: ", args
21435 \end_layout
21436
21437 \begin_layout LyX-Code
21438 @ %def some_function
21439 \end_layout
21440
21441 \begin_layout Standard
21442 これをどのように使って、その結果相互参照がどうなるかは
21443 \emph on
21444 LIBDIR/examples/listerrors.lyx
21445 \emph default
21446 の中の文芸pythonプログラムを見るとよくわかります。
21447 \end_layout
21448
21449 \begin_layout Paragraph
21450 説明文書の生成
21451 \end_layout
21452
21453 \begin_layout Standard
21454 この時点で、適切な文書クラスを持ち、いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです。これをどうやって印刷したらいいのでしょう。答えは
21455 簡単で、通常の文書で行うように
21456 \family sans
21457 文書\SpecialChar menuseparator
21458 表示
21459 \family default
21460 等を選ぶだけです。特別な手続きは必要ありません。
21461 \end_layout
21462
21463 \begin_layout Standard
21464 理解を助けるために、\SpecialCharNoPassThru LyX
21465 の内部で何が起っているかを説明しておきましょう。
21466 \end_layout
21467
21468 \begin_layout Enumerate
21469
21470 \family sans
21471 文書\SpecialChar menuseparator
21472 更新
21473 \family default
21474 が選択されると、\SpecialCharNoPassThru LaTeX
21475 ファイルがつくられます。
21476 \family default
21477 \begin_inset Separator parbreak
21478 \end_inset
21479
21480 \end_layout
21481
21482 \begin_deeper
21483 \begin_layout Standard
21484 文書が文芸プログラミング用のクラスであった場合には、拡張子に(
21485 \begin_inset Flex MenuItem
21486 status collapsed
21487
21488 \begin_layout Plain Layout
21489 設定
21490 \end_layout
21491
21492 \end_inset
21493
21494 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
21495 \end_layout
21496
21497 \end_deeper
21498 \begin_layout Enumerate
21499 違いがファイル名だけなのに注意してください。\SpecialCharNoPassThru LyX
21500 による特別な処理は必要ありません。
21501 \begin_inset Flex Noun
21502 status collapsed
21503
21504 \begin_layout Plain Layout
21505 Chunk
21506 \end_layout
21507
21508 \end_inset
21509
21510 環境でコードを入力するのだけがポイントです。
21511 \end_layout
21512
21513 \begin_layout Enumerate
21514 文書が何らかの文芸プログラムクラスなら、\SpecialCharNoPassThru LyX
21515 は、\SpecialCharNoPassThru LyX
21516 からNowebへの内部変換子を用い、それからNowebから\SpecialCharNoPassThru LaTeX
21517 への変換子
21518 \begin_inset Foot
21519 status collapsed
21520
21521 \begin_layout Plain Layout
21522 これらの変換子は、
21523 \family sans
21524 ツール\SpecialChar menuseparator
21525 設定
21526 \family default
21527 パネルの変換子タブに定義されています。変換子の一般的な情報については、取扱説明書『
21528 \emph on
21529 カスタマイズ篇
21530 \emph default
21531 』の「
21532 \emph on
21533 変換子
21534 \emph default
21535 」の節をご覧ください。
21536 \end_layout
21537
21538 \end_inset
21539
21540 を使って\SpecialCharNoPassThru LaTeX
21541 ファイルを生成します。
21542 \family default
21543 \begin_inset Separator parbreak
21544 \end_inset
21545
21546 \end_layout
21547
21548 \begin_deeper
21549 \begin_layout Standard
21550 それ以外の場合はこのステップを飛ばします。
21551 \end_layout
21552
21553 \end_deeper
21554 \begin_layout Enumerate
21555 最後に\SpecialCharNoPassThru LaTeX
21556 が実行され、通常の文書と同じ後処理が行われます。
21557 \end_layout
21558
21559 \begin_layout Standard
21560 様々な変換子が実行するコマンドを変更すれば、簡単に、特定の「文芸プログラムツール」から変更することができます。
21561 \end_layout
21562
21563 \begin_layout Paragraph
21564 コードの生成
21565 \end_layout
21566
21567 \begin_layout Standard
21568 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様に\SpecialCharNoPassThru LaTeX
21569 ファイルが生成されます。それから\SpecialCharNoPassThru LyX
21570
21571 \family typewriter
21572 Noweb->Program
21573 \family default
21574 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
21575 \end_layout
21576
21577 \begin_layout Enumerate
21578 変換プログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマットへ
21579 変換します)。
21580 \end_layout
21581
21582 \begin_layout Enumerate
21583 エラーログ解析子。これはエラーメッセージを\SpecialCharNoPassThru LyX
21584 が理解できる形へ書き直します。これによって、\SpecialCharNoPassThru LyX
21585 はファイルバッファの正しい位置へエラーボックスを配置することが
21586 できます。
21587 \end_layout
21588
21589 \begin_layout Standard
21590 冒頭部、「変換子」設定は
21591 \begin_inset Newline newline
21592 \end_inset
21593
21594
21595 \begin_inset Quotes eld
21596 \end_inset
21597
21598
21599 \family typewriter
21600 build-script $$i $$r
21601 \family default
21602
21603 \begin_inset Quotes erd
21604 \end_inset
21605
21606
21607 \begin_inset Newline newline
21608 \end_inset
21609
21610 と指定します。これは基本的に、\SpecialCharNoPassThru LyX
21611
21612 \begin_inset Quotes erd
21613 \end_inset
21614
21615
21616 \family typewriter
21617 build-script
21618 \family default
21619
21620 \begin_inset Quotes erd
21621 \end_inset
21622
21623 (プログラムかスクリプト名)を(一般には\SpecialCharNoPassThru LyX
21624 の一時ファイル用のディレクトリにつくられる)、Nowebファイルの名前と元の\SpecialCharNoPassThru LyX
21625 ファイルのディレクトリパスを使っ
21626 て呼び出すことを意味しています。
21627 \end_layout
21628
21629 \begin_layout Standard
21630 以下に「build-script」の一例を書いておきます。パスが通っているディレクトリに置いて使います。
21631 \end_layout
21632
21633 \begin_layout Standard
21634 \begin_inset VSpace defskip
21635 \end_inset
21636
21637
21638 \begin_inset Newpage pagebreak
21639 \end_inset
21640
21641
21642 \end_layout
21643
21644 \begin_layout Standard
21645
21646 \family sans
21647 #!/bin/sh
21648 \end_layout
21649
21650 \begin_layout Standard
21651
21652 \family sans
21653 #
21654 \end_layout
21655
21656 \begin_layout Standard
21657
21658 \family sans
21659 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21660 \end_layout
21661
21662 \begin_layout Standard
21663 \begin_inset VSpace defskip
21664 \end_inset
21665
21666
21667 \end_layout
21668
21669 \begin_layout Standard
21670 変換子設定の次の部分は「フラグ」で、これは
21671 \begin_inset Quotes erd
21672 \end_inset
21673
21674
21675 \family typewriter
21676 parselog=$$s/scripts/listerrors
21677 \family default
21678
21679 \begin_inset Quotes erd
21680 \end_inset
21681
21682 に設定されます。
21683 \begin_inset Newline newline
21684 \end_inset
21685
21686 これは、
21687 \begin_inset Quotes erd
21688 \end_inset
21689
21690 build-script
21691 \begin_inset Quotes erd
21692 \end_inset
21693
21694 プロセスが生成したエラーを
21695 \begin_inset Quotes erd
21696 \end_inset
21697
21698 listerrors
21699 \begin_inset Quotes erd
21700 \end_inset
21701
21702 プログラムを介して処理するものです。
21703 \end_layout
21704
21705 \begin_layout Standard
21706 ビルドは、通常\SpecialCharNoPassThru LyX
21707 の一時ディレクトリで行われるので、変換によって生成されたファイルはそのディレクトリに置かれます。\SpecialCharNoPassThru LyX
21708 は、主要ファイルとみなされるものをコピ
21709 ーして取り出しますが、
21710 \family typewriter
21711 Noweb→プログラム
21712 \family default
21713 変換は複数のファイルを生成することがあるので、\SpecialCharNoPassThru LyX
21714 を閉じる際に大半が削除される可能性があります。これが、NOWEB_OUTPUT_DIR環境変数を渡して、bu
21715 ild-script chunkが生成したファイルをその場所に置かれるようにする理由です。
21716 \end_layout
21717
21718 \begin_layout Paragraph
21719 文章中でのプログラムの構築操作の説明
21720 \end_layout
21721
21722 \begin_layout Standard
21723 \SpecialCharNoPassThru LyX
21724 とNowebの統合の最後の部分は、
21725 \begin_inset Quotes eld
21726 \end_inset
21727
21728 build-script
21729 \begin_inset Quotes erd
21730 \end_inset
21731
21732  chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
21733 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
21734 \end_layout
21735
21736 \begin_layout Standard
21737 以下に典型的なchunkがどのようなものかを書いておきます。
21738 \end_layout
21739
21740 \begin_layout LyX-Code
21741 <<build-script>>=
21742 \begin_inset Newline newline
21743 \end_inset
21744
21745
21746 \end_layout
21747
21748 \begin_layout LyX-Code
21749 #!/bin/sh
21750 \begin_inset Newline newline
21751 \end_inset
21752
21753
21754 \begin_inset Newline newline
21755 \end_inset
21756
21757 if [ -z "${NOWEB_SOURCE}" ]
21758 \begin_inset Newline newline
21759 \end_inset
21760
21761 then
21762 \end_layout
21763
21764 \begin_layout LyX-Code
21765 NOWEB_SOURCE=myfile.nw
21766 \begin_inset Newline newline
21767 \end_inset
21768
21769 fi
21770 \begin_inset Newline newline
21771 \end_inset
21772
21773 [...
21774  code to extract files ...
21775  use NOWEB_OUTPUT_DIR here ...]
21776 \begin_inset Newline newline
21777 \end_inset
21778
21779 [...
21780  code to compile files ...]
21781 \begin_inset Newline newline
21782 \end_inset
21783
21784 @
21785 \end_layout
21786
21787 \begin_layout Standard
21788
21789 \emph on
21790 LIBDIR/examples/listerrors.lyx
21791 \emph default
21792
21793 \emph on
21794 LIBDIR/examples/Literate.lyx
21795 \emph default
21796 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
21797 ってもらうための例です。また、
21798 \emph on
21799 LIBDIR/examples/noweb2lyx.lyx
21800 \emph default
21801 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、\SpecialCharNoPassThru LyX
21802 の文芸プログラミングのサポートがプログラム言語に依存
21803 しないことを示しています。
21804 \end_layout
21805
21806 \begin_layout Subsubsection
21807 \SpecialCharNoPassThru LyX
21808 の設定
21809 \end_layout
21810
21811 \begin_layout Standard
21812 すべての文芸プログラムのための設定は、
21813 \family sans
21814 ツール\SpecialChar menuseparator
21815 設定
21816 \family default
21817 パネルの「ファイル処理」タブですることができます。重要な部分を見ておきましょう。
21818 \end_layout
21819
21820 \begin_layout Description
21821 「NoWeb」形式 ファイル形式タブで設定します。ここで、Noweb特有の設定を行います。
21822 \family sans
21823 GUI名
21824 \family default
21825
21826 \family typewriter
21827 NoWeb
21828 \family default
21829 に、拡張子を
21830 \family typewriter
21831 .nw
21832 \family default
21833 に設定してください。これによって、\SpecialCharNoPassThru LyX
21834 に変換プロセスの第一段階でつくられるファイルに
21835 \family typewriter
21836 .nw
21837 \family default
21838 という拡張子をつけることを指示します。
21839 \end_layout
21840
21841 \begin_layout Description
21842 プログラム形式 これは、変換の終着点を示すためだけの、空の形式です(これがあることで、変換子を作ることができます)。
21843 \end_layout
21844
21845 \begin_layout Description
21846
21847 \family sans
21848 NoWeb
21849 \family default
21850 ->
21851 \family sans
21852 \SpecialCharNoPassThru LaTeX
21853 \family default
21854  この変換子は、文芸的文書の「weaving」を行います。Nowebの場合、「
21855 \family typewriter
21856 noweave -delay -index $$i > $$o
21857 \family default
21858 」に設定されます。
21859 \end_layout
21860
21861 \begin_layout Description
21862
21863 \family sans
21864 NoWeb
21865 \family default
21866 ->
21867 \family sans
21868 Program
21869 \family default
21870  これは「tangling」を行います。上述のように、変換子は「
21871 \family typewriter
21872 build-script $$i $$r
21873 \family default
21874 」、フラグは「
21875 \family typewriter
21876 parselog=$$s/scripts/listerrors
21877 \family default
21878 」となります。
21879 \end_layout
21880
21881 \begin_layout Subsubsection
21882 デバッグ機能拡張
21883 \end_layout
21884
21885 \begin_layout Standard
21886 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialCharNoPassThru LyX
21887 サーバに実装されました。
21888 \end_layout
21889
21890 \begin_layout Standard
21891 ddd/gdbでデバッグしているとき、一つの
21892 \begin_inset Flex Ruby
21893 status collapsed
21894
21895 \begin_layout Plain Layout
21896
21897 \begin_inset Argument post:1
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901 キー
21902 \end_layout
21903
21904 \end_inset
21905
21906
21907 \end_layout
21908
21909 \end_inset
21910
21911 ストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-Vになっています。この設定はdddで
21912 \begin_inset Flex MenuItem
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916 ツール\SpecialChar menuseparator
21917 設定\SpecialChar menuseparator
21918 ファイル書式
21919 \end_layout
21920
21921 \end_inset
21922
21923 ウインドウを表示して、
21924 \begin_inset Flex MenuItem
21925 status collapsed
21926
21927 \begin_layout Plain Layout
21928 編集プログラム
21929 \end_layout
21930
21931 \end_inset
21932
21933 エントリを変えると変えることができます。
21934 \end_layout
21935
21936 \begin_layout Standard
21937 新しい\SpecialCharNoPassThru LyX
21938 サーバの関数と、このdddの機能を使うために
21939 \begin_inset Flex MenuItem
21940 status collapsed
21941
21942 \begin_layout Plain Layout
21943 編集プログラム
21944 \end_layout
21945
21946 \end_inset
21947
21948 を次のように設定してください。
21949 \end_layout
21950
21951 \begin_layout Standard
21952 \begin_inset VSpace defskip
21953 \end_inset
21954
21955
21956 \end_layout
21957
21958 \begin_layout Standard
21959
21960 \family sans
21961 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21962 \end_layout
21963
21964 \begin_layout Standard
21965 \begin_inset VSpace defskip
21966 \end_inset
21967
21968
21969 \end_layout
21970
21971 \begin_layout Standard
21972 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialCharNoPassThru LyX
21973 サーバに情報を
21974 送り、\SpecialCharNoPassThru LyX
21975 は同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります
21976
21977 \end_layout
21978
21979 \begin_layout Standard
21980 この機能が動くには\SpecialCharNoPassThru LyX
21981 サーバが利用可能でなければなりません(既定では\SpecialCharNoPassThru LyX
21982 サーバーは使えないようになっています)。\SpecialCharNoPassThru LyX
21983 サーバを使えるようにするには、
21984 \family sans
21985
21986 \begin_inset Flex MenuItem
21987 status collapsed
21988
21989 \begin_layout Plain Layout
21990
21991 \family sans
21992 設定
21993 \end_layout
21994
21995 \end_inset
21996
21997
21998 \family default
21999 (
22000 \family sans
22001
22002 \begin_inset Flex MenuItem
22003 status collapsed
22004
22005 \begin_layout Plain Layout
22006
22007 \family sans
22008 パス
22009 \end_layout
22010
22011 \end_inset
22012
22013
22014 \family default
22015 タブ)の
22016 \family sans
22017
22018 \begin_inset Flex MenuItem
22019 status collapsed
22020
22021 \begin_layout Plain Layout
22022
22023 \family sans
22024 \SpecialCharNoPassThru LyX
22025 サーバーパイプ
22026 \family default
22027
22028 \end_layout
22029
22030 \end_inset
22031
22032
22033 \family default
22034
22035 \begin_inset Quotes eld
22036 \end_inset
22037
22038
22039 \family typewriter
22040 /home/<your-home-directory>/.lyx/lyxpipe
22041 \family default
22042
22043 \begin_inset Quotes erd
22044 \end_inset
22045
22046  のようにパスを指定してください。
22047 \end_layout
22048
22049 \begin_layout Standard
22050 詳しくは第
22051 \begin_inset CommandInset ref
22052 LatexCommand ref
22053 reference "chap:LyXサーバー"
22054
22055 \end_inset
22056
22057 章を読んでください。
22058 \end_layout
22059
22060 \begin_layout Subsubsection
22061 ツールバー拡張
22062 \end_layout
22063
22064 \begin_layout Standard
22065 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
22066 \family sans
22067 標準
22068 \family default
22069 ・節・
22070 \family sans
22071 \SpecialCharNoPassThru LaTeX
22072 \family default
22073
22074 \family sans
22075 \SpecialCharNoPassThru LyX
22076 コード
22077 \family default
22078
22079 \family sans
22080 Chunk
22081 \family default
22082 環境用のボタンを用意しています。最後の一つはファイルメニュー項目の「Build Program」への
22083 \begin_inset Flex Ruby
22084 status collapsed
22085
22086 \begin_layout Plain Layout
22087
22088 \family roman
22089 \series medium
22090 \shape up
22091 \size normal
22092 \emph off
22093 \bar no
22094 \noun off
22095 \color none
22096 捷径
22097 \family default
22098 \series default
22099 \shape default
22100 \size default
22101 \emph default
22102 \bar default
22103 \noun default
22104 \color inherit
22105
22106 \begin_inset Argument post:1
22107 status collapsed
22108
22109 \begin_layout Plain Layout
22110 ショートカット
22111 \end_layout
22112
22113 \end_inset
22114
22115
22116 \end_layout
22117
22118 \end_inset
22119
22120 です。
22121 \end_layout
22122
22123 \begin_layout Standard
22124 \SpecialCharNoPassThru LyX
22125 はツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
22126 \begin_inset Flex MenuItem
22127 status collapsed
22128
22129 \begin_layout Plain Layout
22130 文書\SpecialChar menuseparator
22131 更新\SpecialChar menuseparator
22132 DVI
22133 \end_layout
22134
22135 \end_inset
22136
22137
22138 \begin_inset Flex MenuItem
22139 status collapsed
22140
22141 \begin_layout Plain Layout
22142 文書\SpecialChar menuseparator
22143 表示\SpecialChar menuseparator
22144 DVI
22145 \end_layout
22146
22147 \end_inset
22148
22149 を組み合わせたものになっています。
22150 \end_layout
22151
22152 \begin_layout LyX-Code
22153 Toolbar
22154 \end_layout
22155
22156 \begin_layout LyX-Code
22157   Layouts
22158 \end_layout
22159
22160 \begin_layout LyX-Code
22161   Icon "layout Standard"
22162 \end_layout
22163
22164 \begin_layout LyX-Code
22165   Icon "layout Section"
22166 \end_layout
22167
22168 \begin_layout LyX-Code
22169   Icon "layout \SpecialCharNoPassThru LaTeX
22170 "
22171 \end_layout
22172
22173 \begin_layout LyX-Code
22174   Icon "layout \SpecialCharNoPassThru LyX
22175 -Code"
22176 \end_layout
22177
22178 \begin_layout LyX-Code
22179   Icon "layout Chunk"
22180 \end_layout
22181
22182 \begin_layout LyX-Code
22183   Separator
22184 \end_layout
22185
22186 \begin_layout LyX-Code
22187   Icon "buffer-view"
22188 \end_layout
22189
22190 \begin_layout LyX-Code
22191   Icon "buffer-typeset"
22192 \end_layout
22193
22194 \begin_layout LyX-Code
22195   Icon "build-program"
22196 \end_layout
22197
22198 \begin_layout LyX-Code
22199   Separator
22200 \end_layout
22201
22202 \begin_layout LyX-Code
22203 .
22204 \end_layout
22205
22206 \begin_layout LyX-Code
22207 .
22208 \end_layout
22209
22210 \begin_layout LyX-Code
22211 .
22212 \end_layout
22213
22214 \begin_layout LyX-Code
22215 End
22216 \end_layout
22217
22218 \begin_layout Subsubsection
22219 色の変更
22220 \end_layout
22221
22222 \begin_layout Standard
22223 \SpecialCharNoPassThru LyX
22224 ではいくつもの色を
22225 \begin_inset Flex MenuItem
22226 status collapsed
22227
22228 \begin_layout Plain Layout
22229 設定
22230 \end_layout
22231
22232 \end_inset
22233
22234 で変えることができます。人々が困りがちなのは、\SpecialCharNoPassThru LaTeX
22235 フォント色でしょう。これは、既定では赤になっていますが、chunkは\SpecialCharNoPassThru LaTeX
22236 フォントを使うことになって
22237 いて、文芸プログラミング文書には多くのchunkが現れるために、すべて赤で見ていると疲れてしまうかもしれません。これは、
22238 \begin_inset Flex MenuItem
22239 status collapsed
22240
22241 \begin_layout Plain Layout
22242 操作性\SpecialChar menuseparator
22243
22244 \end_layout
22245
22246 \end_inset
22247
22248 タブで変更することができます。
22249 \end_layout
22250
22251 \begin_layout Standard
22252 もう一つは、改行文字が画面に表示されていることでしょう。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少
22253 し違う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
22254 \end_layout
22255
22256 \begin_layout Subsection
22257 \SpecialCharNoPassThru LyX
22258 とknitr/Sweave
22259 \end_layout
22260
22261 \begin_layout Standard
22262 knitrとSweaveへのサポートについては、用例ファイル
22263 \emph on
22264 knitr.lyx
22265 \emph default
22266 とSweave取扱説明書(
22267 \family sans
22268 ヘルプ\SpecialChar menuseparator
22269 用途別説明書
22270 \family default
22271 メニュー)に説明があります。
22272 \end_layout
22273
22274 \begin_layout Chapter
22275 特殊機能
22276 \begin_inset CommandInset label
22277 LatexCommand label
22278 name "chap:Special-features"
22279
22280 \end_inset
22281
22282
22283 \end_layout
22284
22285 \begin_layout Standard
22286 \SpecialCharNoPassThru LyX
22287 では、\SpecialCharNoPassThru LaTeX
22288 で可能なことは何でも出来ます。すべての\SpecialCharNoPassThru LaTeX
22289 の機能を直接サポートできるわけではありませんが、どんな場合でも\SpecialCharNoPassThru TeX
22290 コードを使用することは
22291 できます。本章は、ユーザの興味が有りそうな特別な機能について、若干取り上げます。図表やフロート、ボックス、注釈に関する特別な機能については、取扱説明書『
22292 \emph on
22293 埋込オブジェクト篇
22294 \emph default
22295 』をご参照ください。
22296 \end_layout
22297
22298 \begin_layout Section
22299 多段組
22300 \end_layout
22301
22302 \begin_layout Standard
22303 この機能は、文書設定の
22304 \family sans
22305 本文レイアウト
22306 \family default
22307 にある
22308 \family sans
22309 二段組文書
22310 \family default
22311 とは別の機能です。文書全体に二段組を行いたい場合には、
22312 \family sans
22313 二段組文書
22314 \family default
22315 オプションを利用することをお勧めします。その他の場合には、本機能をご使用ください。
22316 \end_layout
22317
22318 \begin_layout Standard
22319 文書中で多段組を行うには、\SpecialCharNoPassThru LaTeX
22320 パッケージ
22321 \series bold
22322 multicol
22323 \series default
22324
22325 \begin_inset Index idx
22326 status collapsed
22327
22328 \begin_layout Plain Layout
22329 \SpecialCharNoPassThru LaTeX
22330 ぱっけーじ @ \SpecialCharNoPassThru LaTeX
22331 パッケージ ! multicol
22332 \end_layout
22333
22334 \end_inset
22335
22336 を導入した上で、(
22337 \family sans
22338 文書\SpecialChar menuseparator
22339 設定\SpecialChar menuseparator
22340 モジュール
22341 \family default
22342 メニューから)
22343 \family sans
22344 多段組
22345 \family default
22346 モジュールを読み込んでください。
22347 \end_layout
22348
22349 \begin_layout Standard
22350 多段組中の脚注は、ページ下部に置かれ、各段の下ごとには置かれません。各段においては、フロートに
22351 \family sans
22352 段をまたぐ
22353 \family default
22354 オプションを使用する必要があるほかは、通常通りの使用をすることができます。
22355 \end_layout
22356
22357 \begin_layout Subsection
22358 基本
22359 \end_layout
22360
22361 \begin_layout Standard
22362 文章中で二段組を使用したい場合には、段組を始める場所で
22363 \family sans
22364 挿入\SpecialChar menuseparator
22365 任意設定差込枠\SpecialChar menuseparator
22366 多段組
22367 \family default
22368 メニューを使用して、多段組差込枠を挿入してください。二段組で印字されるべき文章は、全てこの差込枠の中に書いてください。
22369 \end_layout
22370
22371 \begin_layout Standard
22372 下記はその用例です。
22373 \end_layout
22374
22375 \begin_layout Standard
22376 \noindent
22377 \begin_inset Flex Multiple Columns
22378 status open
22379
22380 \begin_layout Plain Layout
22381 \noindent
22382
22383 \series bold
22384 \size small
22385 The Adventure of the Empty House
22386 \series default
22387
22388 \begin_inset Newline newline
22389 \end_inset
22390
22391 by Sir Arthur Conan Doyle
22392 \end_layout
22393
22394 \begin_layout Plain Layout
22395
22396 \size small
22397 It was in the spring of the year 1894 that all London was interested, and
22398  the fashionable world dismayed, by the murder of the Honourable Ronald
22399  Adair under most unusual and inexplicable circumstances.
22400  The public has already learned those particulars of the crime which came
22401  out in the police investigation, but a good deal was suppressed upon that
22402  occasion, since the case for the prosecution was so overwhelmingly strong
22403  that it was not necessary to bring forward all the facts.
22404  Only now, at the end of nearly ten years, am I allowed to supply those
22405  missing links which make up the whole of that remarkable chain.
22406  The crime was of interest in itself, but that interest was as nothing to
22407  me compared to the inconceivable sequel, which afforded me the greatest
22408  shock and surprise of any event in my adventurous life.
22409  Even now, after this long interval, I find myself thrilling as I think
22410  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22411 ty which utterly submerged my mind.
22412  Let me say to that public, which has shown some interest in those glimpses
22413  which I have occasionally given them of the thoughts and actions of a very
22414  remarkable man, that they are not to blame me if I have not shared my knowledge
22415  with them, for I should have considered it my first duty to do so, had
22416  I not been barred by a positive prohibition from his own lips, which was
22417  only withdrawn upon the third of last month.
22418 \end_layout
22419
22420 \end_inset
22421
22422
22423 \end_layout
22424
22425 \begin_layout Standard
22426 三段以上にするには、カーソルを多段組差込枠の内部において、挿入\SpecialChar menuseparator
22427 段数メニューを使用してください。この差込枠の中に、欲しい段数を書き入れます(三段組の場合には「3」
22428 と書きます)。
22429 \begin_inset Newline newline
22430 \end_inset
22431
22432 下記は三段組の例です。
22433 \end_layout
22434
22435 \begin_layout Standard
22436 \begin_inset Flex Multiple Columns
22437 status open
22438
22439 \begin_layout Plain Layout
22440
22441 \size footnotesize
22442 \begin_inset Argument 1
22443 status open
22444
22445 \begin_layout Plain Layout
22446 3
22447 \end_layout
22448
22449 \end_inset
22450
22451 It can be imagined that my close intimacy with Sherlock Holmes had interested
22452  me deeply in crime, and that after his disappearance I never failed to
22453  read with care the various problems which came before the public.
22454  And I even attempted, more than once, for my own private satisfaction,
22455  to employ his methods in their solution, though with indifferent success.
22456  There was none, however, which appealed to me like this tragedy of Ronald
22457  Adair.
22458  As I read the evidence at the inquest, which led up to a verdict of willful
22459  murder against some person or persons unknown, I realized more clearly
22460  than I had ever done the loss which the community had sustained by the
22461  death of Sherlock Holmes.
22462  There were points about this strange business which would, I was sure,
22463  have specially appealed to him, and the efforts of the police would have
22464  been supplemented, or more probably anticipated, by the trained observation
22465  and the alert mind of the first criminal agent in Europe.
22466  All day, as I drove upon my round, I turned over the case in my mind and
22467  found no explanation which appeared to me to be adequate.
22468  At the risk of telling a twice-told tale, I will recapitulate the facts
22469  as they were known to the public at the conclusion of the inquest.
22470 \end_layout
22471
22472 \end_inset
22473
22474
22475 \end_layout
22476
22477 \begin_layout Standard
22478 お望みならば10段組まで組むことができますが、文書の読者にとっては、あまり気持ちのいいものではないでしょう。
22479 \end_layout
22480
22481 \begin_layout Standard
22482 \begin_inset Newpage newpage
22483 \end_inset
22484
22485
22486 \end_layout
22487
22488 \begin_layout Subsection
22489 段組中の段組
22490 \end_layout
22491
22492 \begin_layout Standard
22493 また、段中に段を組むこともできます。
22494 \end_layout
22495
22496 \begin_layout Standard
22497 \begin_inset Flex Multiple Columns
22498 status open
22499
22500 \begin_layout Plain Layout
22501
22502 \size footnotesize
22503 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22504  at that time governor of one of the Australian colonies.
22505  Adair's mother had returned from Australia to undergo the operation for
22506  cataract, and she, her son Ronald, and her daughter Hilda were living together
22507  at 427 Park Lane.
22508 \end_layout
22509
22510 \begin_layout Plain Layout
22511 \begin_inset Flex Multiple Columns
22512 status open
22513
22514 \begin_layout Plain Layout
22515
22516 \size footnotesize
22517 The youth moved in the best society–had, so far as was known, no enemies
22518  and no particular vices.
22519  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22520  had been broken off by mutual consent some months before, and there was
22521  no sign that it had left any very profound feeling behind it.
22522  For the rest {sic} the man's life moved in a narrow and conventional circle,
22523  for his habits were quiet and his nature unemotional.
22524  Yet it was upon this easy-going young aristocrat that death came, in most
22525  strange and unexpected form, between the hours of ten and eleven-twenty
22526  on the night of March 30, 1894.
22527 \end_layout
22528
22529 \end_inset
22530
22531
22532 \end_layout
22533
22534 \begin_layout Plain Layout
22535
22536 \size footnotesize
22537 Ronald Adair was fond of cards–playing continually, but never for such stakes
22538  as would hurt him.
22539  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22540  It was shown that, after dinner on the day of his death, he had played
22541  a rubber of whist at the latter club.
22542  He had also played there in the afternoon.
22543
22544 \size default
22545  
22546 \size footnotesize
22547 The evidence of those who had played with him– Mr.
22548  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22549  and that there was a fairly equal fall of the cards.
22550  Adair might have lost five pounds, but not more.
22551  His fortune was a considerable one, and such a loss could not in any way
22552  affect him.
22553  He had played nearly every day at one club or other, but he was a cautious
22554  player, and usually rose a winner.
22555  It came out in evidence that, in partnership with Colonel Moran, he had
22556  actually won as much as four hundred and twenty pounds in a sitting, some
22557  weeks before, from Godfrey Milner and Lord Balmoral.
22558  So much for his recent history as it came out at the inquest.
22559 \end_layout
22560
22561 \end_inset
22562
22563
22564 \end_layout
22565
22566 \begin_layout Subsection
22567 応用例
22568 \end_layout
22569
22570 \begin_layout Standard
22571 本節の用例は、多段組のさらに特別な機能を示すためのものです。
22572 \end_layout
22573
22574 \begin_layout Standard
22575 多段組機能についてさらに知りたい場合には、\SpecialCharNoPassThru LaTeX
22576 パッケージ
22577 \series bold
22578 multicol
22579 \series default
22580
22581 \begin_inset CommandInset citation
22582 LatexCommand cite
22583 key "multicol"
22584
22585 \end_inset
22586
22587 の取扱説明書をご覧ください。
22588 \end_layout
22589
22590 \begin_layout Subsubsection
22591 序文
22592 \end_layout
22593
22594 \begin_layout Standard
22595 多段組に序文を追記するには、カーソルを多段組差込枠内部に置き、
22596 \family sans
22597 挿入\SpecialChar menuseparator
22598 序文
22599 \family default
22600 メニューを使用してください。序文は、この差込枠内に書いてください。
22601 \begin_inset Newline newline
22602 \end_inset
22603
22604 序文のある文章の例を掲げます。
22605 \end_layout
22606
22607 \begin_layout Standard
22608 \begin_inset VSpace bigskip
22609 \end_inset
22610
22611
22612 \end_layout
22613
22614 \begin_layout Standard
22615 \begin_inset Flex Multiple Columns
22616 status open
22617
22618 \begin_layout Plain Layout
22619 \begin_inset Argument 2
22620 status open
22621
22622 \begin_layout Plain Layout
22623 And the story continues and continues and continues and continues\SpecialChar ldots
22624
22625 \end_layout
22626
22627 \end_inset
22628
22629
22630 \size small
22631 On the evening of the crime, he returned from the club exactly at ten.
22632  His mother and sister were out spending the evening with a relation.
22633  The servant deposed that she heard him enter the front room on the second
22634  floor, generally used as his sitting-room.
22635  She had lit a fire there, and as it smoked she had opened the window.
22636  No sound was heard from the room until eleven-twenty, the hour of the return
22637  of Lady Maynooth and her daughter.
22638  Desiring to say good-night, she attempted to enter her son's room.
22639  The door was locked on the inside, and no answer could be got to their
22640  cries and knocking.
22641  Help was obtained, and the door forced.
22642  The unfortunate young man was found lying near the table.
22643  His head had been horribly mutilated by an expanding revolver bullet, but
22644  no weapon of any sort was to be found in the room.
22645 \end_layout
22646
22647 \end_inset
22648
22649
22650 \end_layout
22651
22652 \begin_layout Standard
22653 最初の\SpecialCharNoPassThru TeX
22654 コードの後に、節宣言コマンドを\SpecialCharNoPassThru TeX
22655 コードとして使用すれば、節見出しを前書きとして使用することができます。例えば、
22656 \end_layout
22657
22658 \begin_layout Standard
22659
22660 \series bold
22661
22662 \backslash
22663 subsection{小節見出し}
22664 \end_layout
22665
22666 \begin_layout Standard
22667 というコマンドは、小節を生成します。以下の例では、前書きが小々節になっています。
22668 \end_layout
22669
22670 \begin_layout Standard
22671 \begin_inset Flex Multiple Columns
22672 status open
22673
22674 \begin_layout Plain Layout
22675 \begin_inset Argument 2
22676 status open
22677
22678 \begin_layout Plain Layout
22679 \begin_inset ERT
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683
22684
22685 \backslash
22686 subsubsection{
22687 \end_layout
22688
22689 \end_inset
22690
22691 これは序文の小々節見出しです
22692 \begin_inset ERT
22693 status collapsed
22694
22695 \begin_layout Plain Layout
22696
22697 }
22698 \end_layout
22699
22700 \end_inset
22701
22702
22703 \end_layout
22704
22705 \end_inset
22706
22707
22708 \size small
22709 A minute examination of the circumstances served only to make the case more
22710  complex.
22711  In the first place, no reason could be given why the young man should have
22712  fastened the door upon the inside.
22713  There was the possibility that the murderer had done this, and had afterwards
22714  escaped by the window.
22715  The drop was at least twenty feet, however, and a bed of crocuses in full
22716  bloom lay beneath.
22717  Neither the flowers nor the earth showed any sign of having been disturbed,
22718  nor were there any marks upon the narrow strip of grass which separated
22719  the house from the road.
22720  Apparently, therefore, it was the young man himself who had fastened the
22721  door.
22722  But how did he come by his death? No one could have climbed up to the window
22723  without leaving traces.
22724  Suppose a man had fired through the window, he would indeed be a remarkable
22725  shot who could with a revolver inflict so deadly a wound.
22726  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22727  a hundred yards of the house.
22728  No one had heard a shot.
22729 \end_layout
22730
22731 \end_inset
22732
22733
22734 \end_layout
22735
22736 \begin_layout Standard
22737 多段組を開始する部分に、必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合、多段組の前に改行が挿入されます。前書きの行数如何では、この必
22738 要行数を変更したいかもしれません。これは、カーソルを多段組差込枠内部の(もしあれば)序文の後に置き、
22739 \family sans
22740 挿入\SpecialChar menuseparator
22741 改頁前の余白
22742 \family default
22743 メニューを使用することで設定できます。この差込枠に、余白の大きさを「5cm」などと書き込んでください。
22744 \end_layout
22745
22746 \begin_layout Standard
22747 以下の例では、「7
22748 \backslash
22749 baselineskip」を用いて、必要行数を7行に指定しています(コマンド
22750 \series bold
22751
22752 \backslash
22753 baselineskip
22754 \series default
22755 は\SpecialCharNoPassThru TeX
22756 コードとして入力する必要があります)。
22757 \end_layout
22758
22759 \begin_layout Standard
22760 \begin_inset Flex Multiple Columns
22761 status open
22762
22763 \begin_layout Plain Layout
22764 \begin_inset Argument 3
22765 status open
22766
22767 \begin_layout Plain Layout
22768 7
22769 \begin_inset ERT
22770 status collapsed
22771
22772 \begin_layout Plain Layout
22773
22774
22775 \backslash
22776 baselineskip
22777 \end_layout
22778
22779 \end_inset
22780
22781
22782 \end_layout
22783
22784 \end_inset
22785
22786
22787 \size small
22788 On the evening of the crime, he returned from the club exactly at ten.
22789  His mother and sister were out spending the evening with a relation.
22790  The servant deposed that she heard him enter the front room on the second
22791  floor, generally used as his sitting-room.
22792  She had lit a fire there, and as it smoked she had opened the window.
22793  No sound was heard from the room until eleven-twenty, the hour of the return
22794  of Lady Maynooth and her daughter.
22795  Desiring to say good-night, she attempted to enter her son's room.
22796  The door was locked on the inside, and no answer could be got to their
22797  cries and knocking.
22798  Help was obtained, and the door forced.
22799  The unfortunate young man was found lying near the table.
22800  His head had been horribly mutilated by an expanding revolver bullet, but
22801  no weapon of any sort was to be found in the room.
22802 \end_layout
22803
22804 \end_inset
22805
22806
22807 \end_layout
22808
22809 \begin_layout Subsubsection
22810 周囲の余白
22811 \end_layout
22812
22813 \begin_layout Standard
22814 多段組の前後の余白は、長さ
22815 \series bold
22816
22817 \backslash
22818 multicolsep
22819 \series default
22820 を変えることで変更することができます。例えば、\SpecialCharNoPassThru TeX
22821 コードで書かれたコマンド
22822 \end_layout
22823
22824 \begin_layout Standard
22825
22826 \series bold
22827
22828 \backslash
22829 setlength{
22830 \backslash
22831 multicolsep}{3cm}
22832 \end_layout
22833
22834 \begin_layout Standard
22835 は、その値を3
22836 \begin_inset space \thinspace{}
22837 \end_inset
22838
22839 cmに変更します。この変更は、多段組が始まる前に指定しなくてはなりません。既定値は13
22840 \begin_inset space \thinspace{}
22841 \end_inset
22842
22843 ptです。
22844 \end_layout
22845
22846 \begin_layout Standard
22847 以下の例では、
22848 \series bold
22849
22850 \backslash
22851 multicolsep
22852 \series default
22853 は2.5
22854 \begin_inset space \thinspace{}
22855 \end_inset
22856
22857 cmに指定されています。
22858 \end_layout
22859
22860 \begin_layout Standard
22861 \begin_inset ERT
22862 status open
22863
22864 \begin_layout Plain Layout
22865
22866
22867 \backslash
22868 setlength{
22869 \backslash
22870 multicolsep}{2.5cm}
22871 \end_layout
22872
22873 \end_inset
22874
22875
22876 \end_layout
22877
22878 \begin_layout Standard
22879 \begin_inset Flex Multiple Columns
22880 status open
22881
22882 \begin_layout Plain Layout
22883
22884 \size small
22885 All day I turned these facts over in my mind, endeavouring to hit upon some
22886  theory which could reconcile them all, and to find that line of least resistanc
22887 e which my poor friend had declared to be the starting-point of every investigat
22888 ion.
22889  I confess that I made little progress.
22890  In the evening I strolled across the Park, and found myself about six o'clock
22891  at the Oxford Street end of Park Lane.
22892  A group of loafers upon the pavements, all staring up at a particular window,
22893  directed me to the house which I had come to see.
22894  A tall, thin man with coloured glasses, whom I strongly suspected of being
22895  a plain-clothes detective, was pointing out some theory of his own, while
22896  the others crowded round to listen to what he said.
22897  I got as near him as I could, but his observations seemed to me to be absurd,
22898  so I withdrew again in some disgust.
22899  As I did so I struck against an elderly, deformed man, who had been behind
22900  me, and I knocked down several books which he was carrying.
22901 \end_layout
22902
22903 \end_inset
22904
22905
22906 \end_layout
22907
22908 \begin_layout Standard
22909 \begin_inset Note Greyedout
22910 status open
22911
22912 \begin_layout Plain Layout
22913
22914 \series bold
22915 【註】
22916 \backslash
22917 setlength
22918 \series default
22919 で指定した値は、再度変更されるまでは、以降のすべての多段組で使用されます。
22920 \end_layout
22921
22922 \end_inset
22923
22924
22925 \end_layout
22926
22927 \begin_layout Standard
22928 \begin_inset ERT
22929 status collapsed
22930
22931 \begin_layout Plain Layout
22932
22933
22934 \backslash
22935 setlength{
22936 \backslash
22937 multicolsep}{13pt}
22938 \end_layout
22939
22940 \end_inset
22941
22942
22943 \begin_inset Note Note
22944 status collapsed
22945
22946 \begin_layout Plain Layout
22947
22948 \lang english
22949 go back to the default
22950 \end_layout
22951
22952 \end_inset
22953
22954
22955 \end_layout
22956
22957 \begin_layout Standard
22958 \begin_inset Newpage newpage
22959 \end_inset
22960
22961
22962 \end_layout
22963
22964 \begin_layout Subsubsection
22965 改段
22966 \end_layout
22967
22968 \begin_layout Standard
22969 改段は、文章中の階段を行いたい位置に、\SpecialCharNoPassThru TeX
22970 コードで、コマンド
22971 \series bold
22972
22973 \backslash
22974 columnbreak{}
22975 \series default
22976 を挿入すれば、強制的に行うことができます。ただし、多くの場合、文章中に空白が挿入されることに注意してください。
22977 \begin_inset Newline newline
22978 \end_inset
22979
22980 以下が用例です。
22981 \end_layout
22982
22983 \begin_layout Standard
22984 \begin_inset Flex Multiple Columns
22985 status open
22986
22987 \begin_layout Plain Layout
22988
22989 \size small
22990 \begin_inset Quotes eld
22991 \end_inset
22992
22993 You're surprised to see me, sir,
22994 \begin_inset Quotes erd
22995 \end_inset
22996
22997  said he, in a strange, croaking voice.
22998 \end_layout
22999
23000 \begin_layout Plain Layout
23001
23002 \size small
23003 I acknowledged that I was.
23004 \end_layout
23005
23006 \begin_layout Plain Layout
23007
23008 \size small
23009 \begin_inset Quotes eld
23010 \end_inset
23011
23012 Well, I've a conscience, sir, and when I chanced to see you go into this
23013  house, as I came hobbling after you, I thought to myself, I'll just step
23014  in and see that kind gentleman, and tell him that if I was a bit gruff
23015  in my manner there was not any harm meant, and that I am much obliged to
23016  him for picking up my books.
23017 \begin_inset Quotes erd
23018 \end_inset
23019
23020
23021 \end_layout
23022
23023 \begin_layout Plain Layout
23024
23025 \size small
23026 \begin_inset Quotes eld
23027 \end_inset
23028
23029 You make too much of a trifle,
23030 \begin_inset Quotes erd
23031 \end_inset
23032
23033  said I.
23034  
23035 \begin_inset Quotes eld
23036 \end_inset
23037
23038 May I ask how you knew who I was?
23039 \begin_inset Quotes erd
23040 \end_inset
23041
23042  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23043 \begin_inset ERT
23044 status collapsed
23045
23046 \begin_layout Plain Layout
23047
23048
23049 \backslash
23050 columnbreak{}
23051 \end_layout
23052
23053 \end_inset
23054
23055
23056 \end_layout
23057
23058 \begin_layout Plain Layout
23059
23060 \size small
23061 \begin_inset Quotes eld
23062 \end_inset
23063
23064 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23065  you'll find my little bookshop at the corner of Church Street, and very
23066  happy to see you, I am sure.
23067  Maybe you collect yourself, sir.
23068  Here's 
23069 \noun on
23070 British
23071 \begin_inset space ~
23072 \end_inset
23073
23074 Birds
23075 \noun default
23076 , and 
23077 \noun on
23078 Catullus
23079 \noun default
23080 , and 
23081 \noun on
23082 The Holy War
23083 \noun default
23084 \twohyphens
23085 a bargain, every one of them.
23086  With five volumes you could just fill that gap on that second shelf.
23087  It looks untidy, does it not, sir?
23088 \begin_inset Quotes erd
23089 \end_inset
23090
23091
23092 \end_layout
23093
23094 \end_inset
23095
23096
23097 \end_layout
23098
23099 \begin_layout Subsubsection
23100 段間隔
23101 \end_layout
23102
23103 \begin_layout Standard
23104 段幅は自動的に計算されますが、段の間の余白は指定することができます。これは、長さ
23105 \series bold
23106
23107 \backslash
23108 columnsep
23109 \series default
23110 を変更することで実現できます。既定値は10
23111 \begin_inset space \thinspace{}
23112 \end_inset
23113
23114 ptです。以下は
23115 \series bold
23116
23117 \backslash
23118 columnsep
23119 \series default
23120 を3
23121 \begin_inset space \thinspace{}
23122 \end_inset
23123
23124 cmに設定した例です。
23125 \end_layout
23126
23127 \begin_layout Standard
23128 \begin_inset ERT
23129 status open
23130
23131 \begin_layout Plain Layout
23132
23133
23134 \backslash
23135 setlength{
23136 \backslash
23137 columnsep}{3cm}
23138 \end_layout
23139
23140 \end_inset
23141
23142
23143 \end_layout
23144
23145 \begin_layout Standard
23146 \begin_inset Flex Multiple Columns
23147 status open
23148
23149 \begin_layout Plain Layout
23150
23151 \size small
23152 My observations of No.
23153 \begin_inset space \space{}
23154 \end_inset
23155
23156 427 Park Lane did little to clear up the problem in which I was interested.
23157  The house was separated from the street by a low wall and railing, the
23158  whole not more than five feet high.
23159  It was perfectly easy, therefore, for anyone to get into the garden, but
23160  the window was entirely inaccessible, since there was no water pipe or
23161  anything which could help the most active man to climb it.
23162  More puzzled than ever, I retraced my steps to Kensington.
23163  I had not been in my study five minutes when the maid entered to say that
23164  a person desired to see me.
23165  To my astonishment it was none other than my strange old book collector,
23166  his sharp, wizened face peering out from a frame of white hair, and his
23167  precious volumes, a dozen of them at least, wedged under his right arm.
23168 \end_layout
23169
23170 \end_inset
23171
23172
23173 \end_layout
23174
23175 \begin_layout Standard
23176 \begin_inset ERT
23177 status collapsed
23178
23179 \begin_layout Plain Layout
23180
23181
23182 \backslash
23183 setlength{
23184 \backslash
23185 columnsep}{10pt}
23186 \end_layout
23187
23188 \end_inset
23189
23190
23191 \begin_inset Note Note
23192 status collapsed
23193
23194 \begin_layout Plain Layout
23195
23196 \lang english
23197 go back to the default
23198 \end_layout
23199
23200 \end_inset
23201
23202
23203 \end_layout
23204
23205 \begin_layout Subsubsection
23206 垂直線
23207 \end_layout
23208
23209 \begin_layout Standard
23210 段間には、長さ
23211 \series bold
23212
23213 \backslash
23214 columnseprule
23215 \series default
23216 の幅を持つ罫線が描かれます。罫線幅を0
23217 \begin_inset space \thinspace{}
23218 \end_inset
23219
23220 ptにすると(これが既定値です)、罫線は出力されません。以下の例では、段を分かつ線は2
23221 \begin_inset space \thinspace{}
23222 \end_inset
23223
23224 pt幅に設定されています。
23225 \end_layout
23226
23227 \begin_layout Standard
23228 \begin_inset ERT
23229 status open
23230
23231 \begin_layout Plain Layout
23232
23233
23234 \backslash
23235 setlength{
23236 \backslash
23237 columnseprule}{2pt}
23238 \end_layout
23239
23240 \end_inset
23241
23242
23243 \end_layout
23244
23245 \begin_layout Standard
23246 \begin_inset Flex Multiple Columns
23247 status open
23248
23249 \begin_layout Plain Layout
23250
23251 \size small
23252 \begin_inset Quotes eld
23253 \end_inset
23254
23255 You're surprised to see me, sir,
23256 \begin_inset Quotes erd
23257 \end_inset
23258
23259  said he, in a strange, croaking voice.
23260 \end_layout
23261
23262 \begin_layout Plain Layout
23263
23264 \size small
23265 I acknowledged that I was.
23266 \end_layout
23267
23268 \begin_layout Plain Layout
23269
23270 \size small
23271 \begin_inset Quotes eld
23272 \end_inset
23273
23274 Well, I've a conscience, sir, and when I chanced to see you go into this
23275  house, as I came hobbling after you, I thought to myself, I'll just step
23276  in and see that kind gentleman, and tell him that if I was a bit gruff
23277  in my manner there was not any harm meant, and that I am much obliged to
23278  him for picking up my books.
23279 \begin_inset Quotes erd
23280 \end_inset
23281
23282
23283 \end_layout
23284
23285 \begin_layout Plain Layout
23286
23287 \size small
23288 \begin_inset Quotes eld
23289 \end_inset
23290
23291 You make too much of a trifle,
23292 \begin_inset Quotes erd
23293 \end_inset
23294
23295  said I.
23296  
23297 \begin_inset Quotes eld
23298 \end_inset
23299
23300 May I ask how you knew who I was?
23301 \begin_inset Quotes erd
23302 \end_inset
23303
23304
23305 \end_layout
23306
23307 \begin_layout Plain Layout
23308
23309 \size small
23310 \begin_inset Quotes eld
23311 \end_inset
23312
23313 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23314  you'll find my little bookshop at the corner of Church Street, and very
23315  happy to see you, I am sure.
23316  Maybe you collect yourself, sir.
23317  Here's 
23318 \noun on
23319 British
23320 \begin_inset space ~
23321 \end_inset
23322
23323 Birds
23324 \noun default
23325 , and 
23326 \noun on
23327 Catullus
23328 \noun default
23329 , and 
23330 \noun on
23331 The Holy War
23332 \noun default
23333 \twohyphens
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 \series bold
23358
23359 \backslash
23360 columnseprulecolor
23361 \series default
23362 を再定義すれば、着色することができます。これは、多段組差込枠の前に\SpecialCharNoPassThru TeX
23363 コードで以下のコマンドを挿入すれば、実現できます。
23364 \begin_inset Newline newline
23365 \end_inset
23366
23367
23368 \series bold
23369
23370 \backslash
23371 renewcommand{
23372 \backslash
23373 columnseprulecolor}{
23374 \backslash
23375 color{red}}
23376 \series default
23377
23378 \begin_inset Newline newline
23379 \end_inset
23380
23381 このコマンド中の
23382 \series bold
23383 red
23384 \series default
23385 をお好みの色に変更してください。既定色とユーザー定義色の全てを使用することができます。既定色とユーザー定義色についての詳細な情報は、取扱説明書『
23386 \emph on
23387 埋込オブジェクト篇
23388 \emph default
23389 』の「
23390 \emph on
23391 色付き表
23392 \emph default
23393 」の節をご覧ください。既定色に戻すには、以下のコマンドを挿入してください。
23394 \begin_inset Newline newline
23395 \end_inset
23396
23397
23398 \series bold
23399
23400 \backslash
23401 renewcommand{
23402 \backslash
23403 columnseprulecolor}{
23404 \backslash
23405 normalcolor}
23406 \series default
23407
23408 \begin_inset Newline newline
23409 \end_inset
23410
23411 以下は、シアン色の罫線と1
23412 \begin_inset space \thinspace{}
23413 \end_inset
23414
23415 cmの段間隔を持つ例です。
23416 \end_layout
23417
23418 \begin_layout Standard
23419 \begin_inset ERT
23420 status open
23421
23422 \begin_layout Plain Layout
23423
23424
23425 \backslash
23426 setlength{
23427 \backslash
23428 columnsep}{1cm}
23429 \end_layout
23430
23431 \begin_layout Plain Layout
23432
23433
23434 \backslash
23435 renewcommand{
23436 \backslash
23437 columnseprulecolor}{
23438 \backslash
23439 color{cyan}}
23440 \end_layout
23441
23442 \end_inset
23443
23444
23445 \end_layout
23446
23447 \begin_layout Standard
23448 \begin_inset Flex Multiple Columns
23449 status open
23450
23451 \begin_layout Plain Layout
23452
23453 \size small
23454 \begin_inset Quotes eld
23455 \end_inset
23456
23457 You're surprised to see me, sir,
23458 \begin_inset Quotes erd
23459 \end_inset
23460
23461  said he, in a strange, croaking voice.
23462 \end_layout
23463
23464 \begin_layout Plain Layout
23465
23466 \size small
23467 I acknowledged that I was.
23468 \end_layout
23469
23470 \begin_layout Plain Layout
23471
23472 \size small
23473 \begin_inset Quotes eld
23474 \end_inset
23475
23476 Well, I've a conscience, sir, and when I chanced to see you go into this
23477  house, as I came hobbling after you, I thought to myself, I'll just step
23478  in and see that kind gentleman, and tell him that if I was a bit gruff
23479  in my manner there was not any harm meant, and that I am much obliged to
23480  him for picking up my books.
23481 \begin_inset Quotes erd
23482 \end_inset
23483
23484
23485 \end_layout
23486
23487 \begin_layout Plain Layout
23488
23489 \size small
23490 \begin_inset Quotes eld
23491 \end_inset
23492
23493 You make too much of a trifle,
23494 \begin_inset Quotes erd
23495 \end_inset
23496
23497  said I.
23498  
23499 \begin_inset Quotes eld
23500 \end_inset
23501
23502 May I ask how you knew who I was?
23503 \begin_inset Quotes erd
23504 \end_inset
23505
23506
23507 \end_layout
23508
23509 \begin_layout Plain Layout
23510
23511 \size small
23512 \begin_inset Quotes eld
23513 \end_inset
23514
23515 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23516  you'll find my little bookshop at the corner of Church Street, and very
23517  happy to see you, I am sure.
23518  Maybe you collect yourself, sir.
23519  Here's 
23520 \noun on
23521 British
23522 \begin_inset space ~
23523 \end_inset
23524
23525 Birds
23526 \noun default
23527 , and 
23528 \noun on
23529 Catullus
23530 \noun default
23531 , and 
23532 \noun on
23533 The Holy War
23534 \noun default
23535 \twohyphens
23536 a bargain, every one of them.
23537  With five volumes you could just fill that gap on that second shelf.
23538  It looks untidy, does it not, sir?
23539 \begin_inset Quotes erd
23540 \end_inset
23541
23542
23543 \end_layout
23544
23545 \end_inset
23546
23547
23548 \end_layout
23549
23550 \begin_layout Standard
23551 \begin_inset ERT
23552 status collapsed
23553
23554 \begin_layout Plain Layout
23555
23556
23557 \backslash
23558 setlength{
23559 \backslash
23560 columnseprule}{0pt}
23561 \end_layout
23562
23563 \begin_layout Plain Layout
23564
23565
23566 \backslash
23567 renewcommand{
23568 \backslash
23569 columnseprulecolor}{
23570 \backslash
23571 normalcolor}
23572 \end_layout
23573
23574 \end_inset
23575
23576
23577 \begin_inset Note Note
23578 status collapsed
23579
23580 \begin_layout Plain Layout
23581
23582 \lang english
23583 go back to the default
23584 \end_layout
23585
23586 \end_inset
23587
23588
23589 \end_layout
23590
23591 \begin_layout Standard
23592 \begin_inset Newpage newpage
23593 \end_inset
23594
23595
23596 \end_layout
23597
23598 \begin_layout Section
23599 標準的でない形の段落
23600 \end_layout
23601
23602 \begin_layout Standard
23603 \noindent
23604 \SpecialCharNoPassThru LaTeX
23605 は、他のテキストプロセッサと同様に、既定で長方形の段落を使用します。しかし、例えば、ポスターや招待状、詩などの特殊な場合には、段落の形を好きなように変
23606 えることができます。これは、文書設定で
23607 \family sans
23608 任意設定の段落形
23609 \family default
23610 モジュールを読み込んで、\SpecialCharNoPassThru LaTeX
23611 パッケージ
23612 \series bold
23613 shapepar
23614 \series default
23615 を使用させるようにすれば、実現できます。
23616 \end_layout
23617
23618 \begin_layout Subsection
23619 既定の形
23620 \end_layout
23621
23622 \begin_layout Standard
23623
23624 \series bold
23625 shapepar
23626 \series default
23627 は、以下の形を提供しています。
23628 \end_layout
23629
23630 \begin_layout Standard
23631 \begin_inset Tabular
23632 <lyxtabular version="3" rows="13" columns="3">
23633 <features rotate="0" booktabs="true" islongtable="true" longtabularalignment="center">
23634 <column alignment="center" valignment="middle" width="16col%">
23635 <column alignment="center" valignment="middle" width="40col%">
23636 <column alignment="center" valignment="middle" width="35col%">
23637 <row endhead="true">
23638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23639 \begin_inset Text
23640
23641 \begin_layout Plain Layout
23642 名称
23643 \end_layout
23644
23645 \end_inset
23646 </cell>
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" rightline="true" usebox="none">
23657 \begin_inset Text
23658
23659 \begin_layout Plain Layout
23660 備考
23661 \end_layout
23662
23663 \end_inset
23664 </cell>
23665 </row>
23666 <row>
23667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23668 \begin_inset Text
23669
23670 \begin_layout Plain Layout
23671 CDlabel
23672 \end_layout
23673
23674 \end_inset
23675 </cell>
23676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23677 \begin_inset Text
23678
23679 \begin_layout Plain Layout
23680 丸い穴の開いたドーナツ型(CD/DVD大)
23681 \end_layout
23682
23683 \end_inset
23684 </cell>
23685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23686 \begin_inset Text
23687
23688 \begin_layout Plain Layout
23689 伸縮不可。多くの文字を入れられないことに注意。
23690 \end_layout
23691
23692 \end_inset
23693 </cell>
23694 </row>
23695 <row>
23696 <cell alignment="center" valignment="top" topline="true" usebox="none">
23697 \begin_inset Text
23698
23699 \begin_layout Plain Layout
23700 Circle
23701 \end_layout
23702
23703 \end_inset
23704 </cell>
23705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23706 \begin_inset Text
23707
23708 \begin_layout Plain Layout
23709
23710 \end_layout
23711
23712 \end_inset
23713 </cell>
23714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23715 \begin_inset Text
23716
23717 \begin_layout Plain Layout
23718 脆弱。計算に失敗することも。
23719 \end_layout
23720
23721 \end_inset
23722 </cell>
23723 </row>
23724 <row>
23725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23726 \begin_inset Text
23727
23728 \begin_layout Plain Layout
23729 Diamond
23730 \end_layout
23731
23732 \end_inset
23733 </cell>
23734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23735 \begin_inset Text
23736
23737 \begin_layout Plain Layout
23738 菱形(シンボル的に
23739 \begin_inset Quotes eld
23740 \end_inset
23741
23742 diamond
23743 \begin_inset Quotes erd
23744 \end_inset
23745
23746 と表記)
23747 \end_layout
23748
23749 \end_inset
23750 </cell>
23751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23752 \begin_inset Text
23753
23754 \begin_layout Plain Layout
23755 -
23756 \end_layout
23757
23758 \end_inset
23759 </cell>
23760 </row>
23761 <row>
23762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23763 \begin_inset Text
23764
23765 \begin_layout Plain Layout
23766 Heart
23767 \end_layout
23768
23769 \end_inset
23770 </cell>
23771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23772 \begin_inset Text
23773
23774 \begin_layout Plain Layout
23775 ハート型
23776 \end_layout
23777
23778 \end_inset
23779 </cell>
23780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23781 \begin_inset Text
23782
23783 \begin_layout Plain Layout
23784 -
23785 \end_layout
23786
23787 \end_inset
23788 </cell>
23789 </row>
23790 <row>
23791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23792 \begin_inset Text
23793
23794 \begin_layout Plain Layout
23795 Hexagon
23796 \end_layout
23797
23798 \end_inset
23799 </cell>
23800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23801 \begin_inset Text
23802
23803 \begin_layout Plain Layout
23804 六角形
23805 \end_layout
23806
23807 \end_inset
23808 </cell>
23809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23810 \begin_inset Text
23811
23812 \begin_layout Plain Layout
23813 -
23814 \end_layout
23815
23816 \end_inset
23817 </cell>
23818 </row>
23819 <row>
23820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23821 \begin_inset Text
23822
23823 \begin_layout Plain Layout
23824 Nut
23825 \end_layout
23826
23827 \end_inset
23828 </cell>
23829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23830 \begin_inset Text
23831
23832 \begin_layout Plain Layout
23833 ナット型(丸い穴の開いた六角形)
23834 \end_layout
23835
23836 \end_inset
23837 </cell>
23838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23839 \begin_inset Text
23840
23841 \begin_layout Plain Layout
23842 -
23843 \end_layout
23844
23845 \end_inset
23846 </cell>
23847 </row>
23848 <row>
23849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23850 \begin_inset Text
23851
23852 \begin_layout Plain Layout
23853 Square
23854 \end_layout
23855
23856 \end_inset
23857 </cell>
23858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23859 \begin_inset Text
23860
23861 \begin_layout Plain Layout
23862 正方形
23863 \end_layout
23864
23865 \end_inset
23866 </cell>
23867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23868 \begin_inset Text
23869
23870 \begin_layout Plain Layout
23871 -
23872 \end_layout
23873
23874 \end_inset
23875 </cell>
23876 </row>
23877 <row>
23878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23879 \begin_inset Text
23880
23881 \begin_layout Plain Layout
23882 Star
23883 \end_layout
23884
23885 \end_inset
23886 </cell>
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 五芒星
23892 \end_layout
23893
23894 \end_inset
23895 </cell>
23896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23897 \begin_inset Text
23898
23899 \begin_layout Plain Layout
23900 -
23901 \end_layout
23902
23903 \end_inset
23904 </cell>
23905 </row>
23906 <row>
23907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23908 \begin_inset Text
23909
23910 \begin_layout Plain Layout
23911 Candle
23912 \end_layout
23913
23914 \end_inset
23915 </cell>
23916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23917 \begin_inset Text
23918
23919 \begin_layout Plain Layout
23920 燃えるろうそく
23921 \end_layout
23922
23923 \end_inset
23924 </cell>
23925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23926 \begin_inset Text
23927
23928 \begin_layout Plain Layout
23929 -
23930 \end_layout
23931
23932 \end_inset
23933 </cell>
23934 </row>
23935 <row>
23936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23937 \begin_inset Text
23938
23939 \begin_layout Plain Layout
23940 Drop down/up
23941 \end_layout
23942
23943 \end_inset
23944 </cell>
23945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23946 \begin_inset Text
23947
23948 \begin_layout Plain Layout
23949 雫型/逆雫型
23950 \end_layout
23951
23952 \end_inset
23953 </cell>
23954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23955 \begin_inset Text
23956
23957 \begin_layout Plain Layout
23958 脆弱。計算に失敗することも。
23959 \end_layout
23960
23961 \end_inset
23962 </cell>
23963 </row>
23964 <row>
23965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23966 \begin_inset Text
23967
23968 \begin_layout Plain Layout
23969 \SpecialCharNoPassThru TeX
23970 \end_layout
23971
23972 \end_inset
23973 </cell>
23974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23975 \begin_inset Text
23976
23977 \begin_layout Plain Layout
23978 \SpecialCharNoPassThru TeX
23979 ロゴ
23980 \end_layout
23981
23982 \end_inset
23983 </cell>
23984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23985 \begin_inset Text
23986
23987 \begin_layout Plain Layout
23988 -
23989 \end_layout
23990
23991 \end_inset
23992 </cell>
23993 </row>
23994 <row>
23995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23996 \begin_inset Text
23997
23998 \begin_layout Plain Layout
23999 Triangle up/down/
24000 \begin_inset Newline newline
24001 \end_inset
24002
24003 left/right
24004 \end_layout
24005
24006 \end_inset
24007 </cell>
24008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24009 \begin_inset Text
24010
24011 \begin_layout Plain Layout
24012 各方向の三角形
24013 \end_layout
24014
24015 \end_inset
24016 </cell>
24017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24018 \begin_inset Text
24019
24020 \begin_layout Plain Layout
24021 -
24022 \end_layout
24023
24024 \end_inset
24025 </cell>
24026 </row>
24027 </lyxtabular>
24028
24029 \end_inset
24030
24031
24032 \end_layout
24033
24034 \begin_layout Standard
24035 段落に形を適用するには、\SpecialCharNoPassThru LyX
24036 ツールバー中の環境プルダウンボックスから形を選んでください。
24037 \end_layout
24038
24039 \begin_layout Standard
24040 \begin_inset Newpage newpage
24041 \end_inset
24042
24043
24044 \end_layout
24045
24046 \begin_layout Standard
24047 以下は、ナット型の段落の例です。
24048 \end_layout
24049
24050 \begin_layout Standard
24051 \begin_inset VSpace bigskip
24052 \end_inset
24053
24054
24055 \end_layout
24056
24057 \begin_layout Nut
24058
24059 \lang latin
24060 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24061  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24062  voluptua.
24063  At vero eos et accusam et justo duo dolores et ea rebum.
24064  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24065  sit amet.
24066  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24067  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24068  voluptua.
24069 \end_layout
24070
24071 \begin_layout Standard
24072 \begin_inset VSpace bigskip
24073 \end_inset
24074
24075
24076 \end_layout
24077
24078 \begin_layout Standard
24079 \begin_inset Note Greyedout
24080 status open
24081
24082 \begin_layout Plain Layout
24083
24084 \series bold
24085 【註】
24086 \series default
24087 shapepar段落は改頁にまたがることはできません。
24088 \end_layout
24089
24090 \end_inset
24091
24092
24093 \end_layout
24094
24095 \begin_layout Standard
24096 \begin_inset VSpace bigskip
24097 \end_inset
24098
24099
24100 \end_layout
24101
24102 \begin_layout Standard
24103
24104 \series bold
24105 shapepar
24106 \series default
24107 は、段落中にどれだけ文章が含まれようとも、常に形を維持しようとします。したがって、段落の大きさは、含まれている文章量によって変化しますので、段落の大きさがページ
24108 余白にはみ出してしまうことがあります。寸法が伸縮することを示すために、文章量を二倍にした例を見てみましょう。
24109 \end_layout
24110
24111 \begin_layout Standard
24112 \begin_inset Newpage newpage
24113 \end_inset
24114
24115
24116 \end_layout
24117
24118 \begin_layout Nut
24119
24120 \lang latin
24121 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24122  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24123  voluptua.
24124  At vero eos et accusam et justo duo dolores et ea rebum.
24125  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24126  sit amet.
24127  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24128  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24129  voluptua.
24130  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24131  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24132  voluptua.
24133  At vero eos et accusam et justo duo dolores et ea rebum.
24134  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24135  sit amet.
24136  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24137  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24138  voluptua.
24139 \end_layout
24140
24141 \begin_layout Standard
24142 \begin_inset VSpace bigskip
24143 \end_inset
24144
24145
24146 \end_layout
24147
24148 \begin_layout Standard
24149 ただし、
24150 \family sans
24151 CDlabel
24152 \family default
24153 形は例外です。これは、CD/DVDの寸法に収まらなくてはならないので、伸縮しません。したがって、形に収まる文章量は限られています。
24154 \begin_inset Newline newline
24155 \end_inset
24156
24157
24158 \family sans
24159 drop
24160 \family default
24161 形と
24162 \family sans
24163 circle
24164 \family default
24165 形は脆弱で、文章量によっては寸法計算が失敗する可能性があります。この場合、
24166 \begin_inset Quotes eld
24167 \end_inset
24168
24169 Arithmetic overflow
24170 \begin_inset Quotes erd
24171 \end_inset
24172
24173 という\SpecialCharNoPassThru LaTeX
24174 エラーが発生します。この時は、文章の一部を追加したり削除したりするか、どれもうまくいかなければ別の形を使用してください。
24175 \end_layout
24176
24177 \begin_layout Standard
24178 \begin_inset VSpace bigskip
24179 \end_inset
24180
24181
24182 \end_layout
24183
24184 \begin_layout Standard
24185 先端のある形では、先端部の文字列で、\SpecialCharNoPassThru LaTeX
24186 のハイフネーションルーチンが失敗することがあります。したがって、この部分の文章には、ハイフネーション位置
24187 \family sans
24188 (
24189 \begin_inset Info
24190 type  "shortcut"
24191 arg   "specialchar-insert hyphenation"
24192 \end_inset
24193
24194
24195 \family default
24196 )を指定することが往々にして必要になります。
24197 \end_layout
24198
24199 \begin_layout Standard
24200 \begin_inset VSpace bigskip
24201 \end_inset
24202
24203
24204 \end_layout
24205
24206 \begin_layout Standard
24207 Shapepar段落は、常に中央揃えか、左の縁が左ページ余白に接するように配置されます。したがって、これらの段落を揃えるのに段落ダイアログを使用することはできま
24208 せん。解決方法としては、段落をミニページかparboxの中において、このボックスを揃えることです。ここでの問題は、ボックスの正しい幅を見出すことです。もしボック
24209 スの幅が広すぎれば、ボックスを中央揃えにしたとしても、ボックスの左側が付いてしまうので中央揃えになりません。そこで、正しい幅を見出すまでは、若干試行錯誤しなくて
24210 はならないかもしれません。以下は、二つのハート形の段落です。一つ目は揃え指定がなく、二つ目は右揃えにしてあります。
24211 \end_layout
24212
24213 \begin_layout Standard
24214 \begin_inset Newpage newpage
24215 \end_inset
24216
24217
24218 \end_layout
24219
24220 \begin_layout Heart
24221 \noindent
24222
24223 \lang latin
24224 Lo\SpecialChar softhyphen
24225 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24226  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24227  voluptua.
24228  At vero eos et accusam et justo duo dolores et ea rebum.
24229  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24230  sit amet.
24231 \end_layout
24232
24233 \begin_layout Standard
24234 \begin_inset VSpace bigskip
24235 \end_inset
24236
24237
24238 \end_layout
24239
24240 \begin_layout Standard
24241 \noindent
24242 \align right
24243 \begin_inset Box Frameless
24244 position "t"
24245 hor_pos "c"
24246 has_inner_box 1
24247 inner_pos "t"
24248 use_parbox 1
24249 use_makebox 0
24250 width "42col%"
24251 special "none"
24252 height "1in"
24253 height_special "totalheight"
24254 thickness "0.4pt"
24255 separation "3pt"
24256 shadowsize "4pt"
24257 framecolor "black"
24258 backgroundcolor "none"
24259 status open
24260
24261 \begin_layout Heart
24262 \noindent
24263
24264 \lang latin
24265 Lo\SpecialChar softhyphen
24266 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24267  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24268  voluptua.
24269  At vero eos et accusam et justo duo dolores et ea rebum.
24270  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24271  sit amet.
24272 \end_layout
24273
24274 \end_inset
24275
24276
24277 \end_layout
24278
24279 \begin_layout Subsection
24280 任意の形
24281 \end_layout
24282
24283 \begin_layout Standard
24284 ユーザーは、どのような形であれ、定義することができます。これを手動で行うのは、全ての座標を指定しなくてはならないので、かなりの労力を必要とします。しかし、以下の
24285 ように、コンピューターに座標を計算させる方法もあります。
24286 \end_layout
24287
24288 \begin_layout Enumerate
24289 プログラム
24290 \begin_inset CommandInset href
24291 LatexCommand href
24292 name "Jpgfdraw"
24293 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24294
24295 \end_inset
24296
24297 を導入します。
24298 \end_layout
24299
24300 \begin_layout Enumerate
24301
24302 \family sans
24303 Jpgfdraw
24304 \family default
24305 内で、メニュー
24306 \family sans
24307 Te
24308 \begin_inset ERT
24309 status collapsed
24310
24311 \begin_layout Plain Layout
24312
24313 {}
24314 \end_layout
24315
24316 \end_inset
24317
24318 X/LaT
24319 \begin_inset ERT
24320 status collapsed
24321
24322 \begin_layout Plain Layout
24323
24324 {}
24325 \end_layout
24326
24327 \end_inset
24328
24329 eX\SpecialChar menuseparator
24330 Settings\SpecialChar menuseparator
24331 Set Normal Size
24332 \family default
24333 で文書中で使用しているフォント寸を選択します。例えば、この文書は12
24334 \begin_inset space \thinspace{}
24335 \end_inset
24336
24337 pt寸を使用しています。
24338 \end_layout
24339
24340 \begin_layout Enumerate
24341 形を描きます。
24342 \end_layout
24343
24344 \begin_layout Enumerate
24345 メニュー
24346 \family sans
24347 Te
24348 \begin_inset ERT
24349 status collapsed
24350
24351 \begin_layout Plain Layout
24352
24353 {}
24354 \end_layout
24355
24356 \end_inset
24357
24358 X/LaT
24359 \begin_inset ERT
24360 status collapsed
24361
24362 \begin_layout Plain Layout
24363
24364 {}
24365 \end_layout
24366
24367 \end_inset
24368
24369 eX\SpecialChar menuseparator
24370 Shapepar
24371 \family default
24372 を使用して、形の座標をエクスポートします。現れるダイアログで、形の外枠を座標に使うか、パス自体を使うかを指定します。
24373 \begin_inset Foot
24374 status collapsed
24375
24376 \begin_layout Plain Layout
24377 詳細については、
24378 \begin_inset CommandInset href
24379 LatexCommand href
24380 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24381
24382 \end_inset
24383
24384 を参照してください。
24385 \end_layout
24386
24387 \end_inset
24388
24389
24390 \end_layout
24391
24392 \begin_layout Standard
24393 座標は\SpecialCharNoPassThru TeX
24394 ファイルに書き込まれます。これを\SpecialCharNoPassThru LyX
24395 文書で使用するには、
24396 \end_layout
24397
24398 \begin_layout Enumerate
24399 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます。
24400 \end_layout
24401
24402 \begin_layout Enumerate
24403 \SpecialCharNoPassThru LyX
24404
24405 \family sans
24406 挿入\SpecialChar menuseparator
24407 ファイル\SpecialChar menuseparator
24408 子文書
24409 \family default
24410 メニューでファイルを選択し、
24411 \family sans
24412 取り込みの型
24413 \family default
24414 として
24415 \family sans
24416 Input
24417 \family default
24418 を選択してください。
24419 \end_layout
24420
24421 \begin_layout Standard
24422 \begin_inset VSpace defskip
24423 \end_inset
24424
24425
24426 \end_layout
24427
24428 \begin_layout Standard
24429 \begin_inset Note Greyedout
24430 status open
24431
24432 \begin_layout Plain Layout
24433
24434 \series bold
24435 【註】
24436 \series default
24437 変更した形は、現在の段落にのみ適用されます。次の段落では全て通常に戻ります。したがって、段落定義ファイルは、形を変えたい段落全てで読み込まれなくてはなりません。
24438 \end_layout
24439
24440 \end_inset
24441
24442
24443 \end_layout
24444
24445 \begin_layout Standard
24446 \begin_inset VSpace bigskip
24447 \end_inset
24448
24449
24450 \end_layout
24451
24452 \begin_layout Standard
24453 以下の用例をご覧ください。
24454 \end_layout
24455
24456 \begin_layout Standard
24457 \begin_inset VSpace bigskip
24458 \end_inset
24459
24460
24461 \end_layout
24462
24463 \begin_layout Standard
24464 \begin_inset CommandInset include
24465 LatexCommand input
24466 filename "../SpecialParagraphShape.tex"
24467
24468 \end_inset
24469
24470
24471 \lang latin
24472 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24473  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24474  voluptua.
24475  At vero eos et accusam et justo duo dolores et ea rebum.
24476  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24477  sit amet.
24478  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24479  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24480  voluptua.
24481 \end_layout
24482
24483 \begin_layout Standard
24484 \begin_inset VSpace bigskip
24485 \end_inset
24486
24487
24488 \end_layout
24489
24490 \begin_layout Standard
24491
24492 \series bold
24493 【ヒント】
24494 \family sans
24495 \series default
24496 Jpgfdraw
24497 \family default
24498 で複雑な形を描く場合、まず形を好きなプログラムで描き、出来上がった画像を
24499 \family sans
24500 Jpgfdraw
24501 \family default
24502 に読み込む方法があります。この場合、画像の外枠に沿って、直線またはスプラインを描くだけですみます。
24503 \end_layout
24504
24505 \begin_layout Standard
24506 \begin_inset VSpace bigskip
24507 \end_inset
24508
24509
24510 \end_layout
24511
24512 \begin_layout Standard
24513
24514 \family sans
24515 任意の段落形
24516 \family default
24517 モジュールは、
24518 \family sans
24519 shapepar
24520 \family default
24521
24522 \family sans
24523 Shapepar
24524 \family default
24525 の二つのコマンドも提供していて、任意の形を座標毎に定義するのに使用することができます。
24526 \begin_inset Foot
24527 status collapsed
24528
24529 \begin_layout Plain Layout
24530 これらのコマンドは、上述の全ての形で内部的に使用されています。
24531 \end_layout
24532
24533 \end_inset
24534
24535 これらのスタイルがどのように使われていて、どのような設定ができるのかについての詳しい情報は、
24536 \series bold
24537 shapepar
24538 \series default
24539 パッケージの取扱説明書
24540 \begin_inset CommandInset citation
24541 LatexCommand cite
24542 key "shapepar"
24543
24544 \end_inset
24545
24546 をご覧ください。
24547 \end_layout
24548
24549 \begin_layout Bibliography
24550 \begin_inset CommandInset bibitem
24551 LatexCommand bibitem
24552 key "multicol"
24553
24554 \end_inset
24555
24556 \SpecialCharNoPassThru LaTeX
24557 パッケージ
24558 \begin_inset CommandInset href
24559 LatexCommand href
24560 name "multicol"
24561 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24562
24563 \end_inset
24564
24565 の取扱説明書
24566 \end_layout
24567
24568 \begin_layout Bibliography
24569 \begin_inset CommandInset bibitem
24570 LatexCommand bibitem
24571 key "shapepar"
24572
24573 \end_inset
24574
24575 \SpecialCharNoPassThru LaTeX
24576 パッケージ
24577 \begin_inset CommandInset href
24578 LatexCommand href
24579 name "shapepar"
24580 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24581
24582 \end_inset
24583
24584 の取扱説明書
24585 \end_layout
24586
24587 \end_body
24588 \end_document