]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
* MergedManuals.lyx from Koji
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 614
3 \begin_document
4 \begin_header
5 \save_transient_properties false
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30
31 % Improve line breaking
32 \tolerance 1414
33 \hbadness 1414
34 \emergencystretch 1.5em
35 \hfuzz 0.3pt
36
37 % additional setting for Japanese manual
38 \IfFileExists{pxjahyper.sty}
39 {\usepackage{pxjahyper}}
40
41 \usepackage{t1enc}
42 \end_preamble
43 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,bookmarkpackage=false
44 \use_default_options false
45 \begin_modules
46 logicalmkup
47 theorems-ams
48 theorems-ams-extended
49 multicol
50 shapepar
51 graphicboxes
52 enumitem
53 hanging
54 initials
55 ruby
56 \end_modules
57 \maintain_unincluded_children no
58 \begin_local_layout
59 Format 35
60 InsetLayout             Flex:MenuItem
61 LyxType         charstyle
62 LabelString           menu
63 LatexType             command
64 LatexName             menuitem
65 Font
66 Family              Sans
67 Series              Bold
68 EndFont
69 Preamble
70 \newcommand*{\menuitem}[1]{{\sffamily #1}}
71 EndPreamble
72 End
73 InsetLayout Flex:圏点
74   LyxType       charstyle
75   LatexType     command
76   LatexName     kenten
77   HTMLTag       kenten
78   HTMLAttr      ""
79   HTMLInnerTag  kt
80   HTMLInnerAttr ""
81   BgColor       none
82   LabelString   "圏点"
83   Decoration    Conglomerate
84   Preamble
85     \usepackage{pxrubrica}
86   EndPreamble
87   Argument  post:1
88     LabelString  "Kenten option"
89     MenuString  "圏点オプション"
90     Tooltip    "Emphasize Chinese characters."
91     Decoration  Conglomerate
92     Font
93       Size    tiny
94     EndFont
95     LabelFont
96       Size    tiny
97     EndFont
98     Mandatory  0
99   EndArgument
100 End
101 \end_local_layout
102 \language japanese
103 \language_package default
104 \inputencoding utf8
105 \fontencoding auto
106 \font_roman "lmodern" "IPAexMincho"
107 \font_sans "default" "IPAexGothic"
108 \font_typewriter "default" "default"
109 \font_math "auto" "auto"
110 \font_default_family default
111 \use_non_tex_fonts false
112 \font_sc false
113 \font_roman_osf false
114 \font_sans_osf false
115 \font_typewriter_osf false
116 \font_sf_scale 100 100
117 \font_tt_scale 100 100
118 \use_microtype false
119 \use_dash_ligatures false
120 \graphics default
121 \default_output_format default
122 \output_sync 1
123 \output_sync_macro "\synctex=1"
124 \bibtex_command default
125 \index_command default
126 \float_placement class
127 \float_alignment class
128 \paperfontsize 12
129 \spacing single
130 \use_hyperref true
131 \pdf_title "LyX's Additional Features manual"
132 \pdf_author "LyX Team"
133 \pdf_subject "LyX's additional features documentation"
134 \pdf_keywords "LyX, Documentation, Additional"
135 \pdf_bookmarks false
136 \pdf_bookmarksnumbered true
137 \pdf_bookmarksopen false
138 \pdf_bookmarksopenlevel 1
139 \pdf_breaklinks false
140 \pdf_pdfborder false
141 \pdf_colorlinks true
142 \pdf_backref false
143 \pdf_pdfusetitle false
144 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
145 \papersize default
146 \use_geometry false
147 \use_package amsmath 1
148 \use_package amssymb 1
149 \use_package cancel 1
150 \use_package esint 1
151 \use_package mathdots 1
152 \use_package mathtools 1
153 \use_package mhchem 1
154 \use_package stackrel 1
155 \use_package stmaryrd 1
156 \use_package undertilde 1
157 \cite_engine basic
158 \cite_engine_type default
159 \biblio_style plain
160 \use_bibtopic false
161 \use_indices false
162 \paperorientation portrait
163 \suppress_date false
164 \justification true
165 \use_refstyle 0
166 \use_minted 0
167 \use_lineno 0
168 \notefontcolor #0000ff
169 \index 索引
170 \shortcut idx
171 \color #008000
172 \end_index
173 \secnumdepth 3
174 \tocdepth 3
175 \paragraph_separation indent
176 \paragraph_indentation default
177 \is_math_indent 1
178 \math_indentation default
179 \math_numbering_side default
180 \quotes_style english
181 \dynamic_quotes 0
182 \papercolumns 1
183 \papersides 2
184 \paperpagestyle headings
185 \tablestyle default
186 \tracking_changes false
187 \output_changes false
188 \change_bars false
189 \postpone_fragile_content false
190 \html_math_output 0
191 \html_css_as_file 0
192 \html_be_strict true
193 \docbook_table_output 0
194 \docbook_mathml_prefix 1
195 \end_header
196
197 \begin_body
198
199 \begin_layout Title
200 \SpecialChar LyX
201 の高度な機能
202 \begin_inset Newline newline
203 \end_inset
204
205
206 \size large
207 第2.4.x版
208 \end_layout
209
210 \begin_layout Author
211 \SpecialChar LyX
212 プロジェクトチーム
213 \begin_inset Foot
214 status collapsed
215
216 \begin_layout Plain Layout
217 このファイルは主にRichard Kimberly Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,
218 \SpecialChar LyX
219 文書化メーリングリスト
220 \begin_inset Flex Code
221 status open
222
223 \begin_layout Plain Layout
224
225 \family typewriter
226 <lyx-docs@lists.lyx.org>
227 \end_layout
228
229 \end_inset
230
231 に英文にてお知らせ下さい.この文書の翻訳は,
232 当初人見光太郎氏が行った貢献に基づいています.
233 \end_layout
234
235 \end_inset
236
237  
238 \end_layout
239
240 \begin_layout Standard
241 \begin_inset CommandInset toc
242 LatexCommand tableofcontents
243
244 \end_inset
245
246
247 \end_layout
248
249 \begin_layout Chapter
250 はじめに
251 \end_layout
252
253 \begin_layout Standard
254 いまお読みの取扱説明書『\SpecialChar LyX
255 拡張機能篇』は,
256 基本的には『ユーザーの手引き』の第二部です.これらの文書を別部とした理由は,
257 単純に『ユーザーの手引き』がすでに大部となっていることと,
258 『ユーザーの手引き』が,
259 ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,
260 \SpecialChar LyX
261 プロジェクトチームは,
262 \SpecialChar LyX
263 を各設定ファイルと外部パッケージによって拡張可能な状態にしておくことを長期的な目標にしています.つまり,
264 ある\SpecialChar LaTeX
265 パッケージをサポートしたい場合に,
266 \SpecialChar LyX
267 自身に変更を加えることなく,
268 当該パッケージ用のレイアウトファイル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,
269 いくつもの新機能がユーザーによって追加されています.この取扱説明書は,
270 そのような形での貢献を文書化する冊子として位置付けられています.
271 \end_layout
272
273 \begin_layout Standard
274 この取扱説明書では,
275 ファックスのサポート・バージョン管理のような,
276 正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明しています.さらに,
277 \SpecialChar LaTeX
278 の強力な機能を直接使って文書を美しく仕上げるための,
279 \SpecialChar LaTeX
280 ツールやテクニックを述べた章も収録しています.つきつめれば,
281 \SpecialChar LyX
282 とはあくまでWYSIWYMたることを企図しているため,
283 \SpecialChar LaTeX
284 の全機能の一部へのインタフェースは用意するものの,
285 すべてを用意することはないでしょう.
286 \end_layout
287
288 \begin_layout Standard
289 もし,
290 まだ『はじめの一歩』をお読みでなかったら,
291 この取扱説明書から読みはじめるのは誤りです.『はじめの一歩』には,
292 全取扱説明書に共通の表記法と書式が説明されていますので,
293 まずそれからお読みください.さらに,
294 この取扱説明書を読もうとする前に,
295 『ユーザーの手引き』をよくお読みになって,
296 \SpecialChar LyX
297 の全基本機能を習得してください.
298 \end_layout
299
300 \begin_layout Standard
301 この取扱説明書の取り上げられている話題は,
302 \SpecialChar LyX
303 が\SpecialChar LaTeX
304 にどう関わっているかに強く関係していますので,
305 まず次章では,
306 \SpecialChar LyX
307 の内部動作がどうなっているか,
308 LyXに希望する\SpecialChar LaTeX
309 コードを正確に生成させるにはどうしたらいいかを収録しています.本章は,
310 あきらかに熟練\SpecialChar LyX
311 ユーザー向けの章となっています.
312 \end_layout
313
314 \begin_layout Chapter
315 \SpecialChar LyX
316 と\SpecialChar LaTeX
317
318 \end_layout
319
320 \begin_layout Section
321 \SpecialChar LyX
322 は\SpecialChar LaTeX
323 をどう使っているか
324 \end_layout
325
326 \begin_layout Standard
327 本章
328 \family roman
329 \series medium
330 \shape up
331 \size normal
332 \emph off
333 \bar no
334 \noun off
335 \color none
336 は,
337 \SpecialChar TeX
338 熟練者と\SpecialChar LaTeX
339 に興味のある方向けの章です.ここでは,
340 \SpecialChar LyX
341 と\SpecialChar LaTeX
342 が,
343 印刷可能な出力を生成するのに,
344 どのように協働しているのかを説明します.全取扱説明書中で本章だけは,
345 \SpecialChar LaTeX
346 のことを多少なりともご存知であることを前提とします.
347 \end_layout
348
349 \begin_layout Standard
350
351 \family roman
352 \series medium
353 \shape up
354 \size normal
355 \emph off
356 \bar no
357 \noun off
358 \color none
359 かつて\SpecialChar LyX
360 は,
361 「\SpecialChar LaTeX
362
363 \family default
364 \series default
365 \shape default
366 \size default
367 \emph default
368 \bar default
369 \noun default
370 \color inherit
371 WYSIWYM
372 \family roman
373 \series medium
374 \shape up
375 \size normal
376 \emph off
377 \bar no
378 \noun off
379 \color none
380 なフロントエンド」と呼ばれていましたが,
381 いまではこれは正しくありません.\SpecialChar LaTeX
382 のフロントエンドは,
383 いくつも出回っています
384 \begin_inset Foot
385 status collapsed
386
387 \begin_layout Plain Layout
388
389 \family roman
390 \series medium
391 \shape up
392 \size normal
393 \emph off
394 \bar no
395 \noun off
396 \color none
397 有名なものとしては,
398 Linux上の\SpecialChar TeX
399 makerとkile,
400 OSX上の\SpecialChar TeX
401 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
402 モードも含まれます.
403 \end_layout
404
405 \end_inset
406
407 .これらは,
408 基本的に\SpecialChar LaTeX
409 を走らせる機能を有し,
410 編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
411 も,
412 エディタであり,
413 \SpecialChar LaTeX
414 を走らせる機能を有し,
415 ファイル中のエラーを指摘しますが,
416 それ以上にもっともっと多くのことをしてくれます.
417 \family default
418 \series default
419 \shape default
420 \size default
421 \emph default
422 \bar default
423 \noun default
424 \color inherit
425 ひとつには,
426
427 \family roman
428 \series medium
429 \shape up
430 \size normal
431 \emph off
432 \bar no
433 \noun off
434 \color none
435 \SpecialChar LyX
436 を効果的に使うのに,
437 \SpecialChar LaTeX
438 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
439 は,
440 それ自身,
441 いくつかの拡張を\SpecialChar LaTeX
442 に加えています.時間のあるときにでも,
443 いちど以下の手順を試してみてください.まず
444 \family sans
445 \series default
446 \shape default
447 \size default
448 \emph default
449 \bar default
450 \noun default
451 \color inherit
452
453 \begin_inset Flex MenuItem
454 status collapsed
455
456 \begin_layout Plain Layout
457
458 \family sans
459 ファイル
460 \end_layout
461
462 \end_inset
463
464
465 \family roman
466 \series medium
467 \shape up
468 \size normal
469 \emph off
470 \bar no
471 \noun off
472 \color none
473 メニューから
474 \family sans
475 \series default
476 \shape default
477 \size default
478 \emph default
479 \bar default
480 \noun default
481 \color inherit
482
483 \begin_inset Flex MenuItem
484 status collapsed
485
486 \begin_layout Plain Layout
487
488 \family sans
489 エクスポート\SpecialChar menuseparator
490 LaTeX
491 \end_layout
492
493 \end_inset
494
495
496 \family roman
497 \series medium
498 \shape up
499 \size normal
500 \emph off
501 \bar no
502 \noun off
503 \color none
504 (あるいは
505 \family sans
506 \series default
507 \shape default
508 \size default
509 \emph default
510 \bar default
511 \noun default
512 \color inherit
513
514 \begin_inset Flex MenuItem
515 status collapsed
516
517 \begin_layout Plain Layout
518
519 \family sans
520 表示\SpecialChar menuseparator
521 ソースを閲覧
522 \end_layout
523
524 \end_inset
525
526
527 \family roman
528 \series medium
529 \shape up
530 \size normal
531 \emph off
532 \bar no
533 \noun off
534 \color none
535 )を選択し,
536 そこから出力される
537 \begin_inset Flex Code
538 status collapsed
539
540 \begin_layout Plain Layout
541
542 \family typewriter
543 .tex
544 \end_layout
545
546 \end_inset
547
548 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
549 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
550 \family default
551 \series default
552 \shape default
553 \size default
554 \emph default
555 \bar default
556 \noun default
557 \color inherit
558 .これらのマクロは,
559 文書中で使用する機能に応じて,
560 自動的に定義されます.
561 \end_layout
562
563 \begin_layout Standard
564
565 \family roman
566 \series medium
567 \shape up
568 \size normal
569 \emph off
570 \bar no
571 \noun off
572 \color none
573 自動的に\SpecialChar LaTeX
574 を実行するコマンドが,
575 以下のようにいくつかあります.
576 \end_layout
577
578 \begin_layout Itemize
579 \begin_inset Flex MenuItem
580 status collapsed
581
582 \begin_layout Plain Layout
583 表示\SpecialChar menuseparator
584 書式
585 \end_layout
586
587 \end_inset
588
589
590 \end_layout
591
592 \begin_layout Itemize
593
594 \family sans
595 \begin_inset Flex MenuItem
596 status collapsed
597
598 \begin_layout Plain Layout
599
600 \bar no
601 表示\SpecialChar menuseparator
602 更新\SpecialChar menuseparator
603
604 \bar default
605 書式
606 \end_layout
607
608 \end_inset
609
610
611 \end_layout
612
613 \begin_layout Standard
614
615 \family roman
616 \series medium
617 \shape up
618 \size normal
619 \emph off
620 \bar no
621 \noun off
622 \color none
623 これらは,
624 最後に\SpecialChar LaTeX
625 を実行してからファイルに変更が加えられた場合のみ,
626 \SpecialChar LaTeX
627 を実行します.
628 \end_layout
629
630 \begin_layout Standard
631
632 \family roman
633 \series medium
634 \shape up
635 \size normal
636 \emph off
637 \bar no
638 \noun off
639 \color none
640 \SpecialChar LyX
641 が編集中のファイルを\SpecialChar LaTeX
642 にかけるとき,
643 \SpecialChar LyX
644 は以下の段階をふみます.
645 \end_layout
646
647 \begin_layout Enumerate
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 文書を\SpecialChar LaTeX
658 に変換し,
659 ファイルの拡張子を
660 \begin_inset Flex Code
661 status collapsed
662
663 \begin_layout Plain Layout
664
665 \family roman
666 \series medium
667 \shape up
668 \size normal
669 \emph off
670 \bar no
671 \noun off
672 \color none
673 .lyx
674 \end_layout
675
676 \end_inset
677
678 から
679 \begin_inset Flex Code
680 status collapsed
681
682 \begin_layout Plain Layout
683
684 \family roman
685 \series medium
686 \shape up
687 \size normal
688 \emph off
689 \bar no
690 \noun off
691 \color none
692 .tex
693 \end_layout
694
695 \end_inset
696
697 に変えて保存.
698 \end_layout
699
700 \begin_layout Enumerate
701
702 \family roman
703 \series medium
704 \shape up
705 \size normal
706 \emph off
707 \bar no
708 \noun off
709 \color none
710 この
711 \begin_inset Flex Code
712 status collapsed
713
714 \begin_layout Plain Layout
715
716 \family roman
717 \series medium
718 \shape up
719 \size normal
720 \emph off
721 \bar no
722 \noun off
723 \color none
724 .tex
725 \end_layout
726
727 \end_inset
728
729 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
730 を実行し,
731 \SpecialChar LaTeX
732 ファイルをコンパイルするのに必要な他のコマンド(
733 \begin_inset Flex Code
734 status collapsed
735
736 \begin_layout Plain Layout
737
738 \family roman
739 \series medium
740 \shape up
741 \size normal
742 \emph off
743 \bar no
744 \noun off
745 \color none
746 bibtex
747 \end_layout
748
749 \end_inset
750
751
752 \begin_inset Flex Code
753 status collapsed
754
755 \begin_layout Plain Layout
756
757 \family roman
758 \series medium
759 \shape up
760 \size normal
761 \emph off
762 \bar no
763 \noun off
764 \color none
765 makeindex
766 \end_layout
767
768 \end_inset
769
770 など)を実行..
771 \end_layout
772
773 \begin_layout Enumerate
774
775 \family roman
776 \series medium
777 \shape up
778 \size normal
779 \emph off
780 \bar no
781 \noun off
782 \color none
783 もしエラーがあれば,
784 エラーログを表示.
785 \end_layout
786
787 \begin_layout Standard
788
789 \family roman
790 \series medium
791 \shape up
792 \size normal
793 \emph off
794 \bar no
795 \noun off
796 \color none
797 \SpecialChar LaTeX
798
799 \family sans
800 \series default
801 \shape default
802 \size default
803 \emph default
804 \bar default
805 \noun default
806 \color inherit
807
808 \begin_inset Flex MenuItem
809 status collapsed
810
811 \begin_layout Plain Layout
812
813 \family sans
814 表示\SpecialChar menuseparator
815 DVI
816 \end_layout
817
818 \end_inset
819
820
821 \family roman
822 \series medium
823 \shape up
824 \size normal
825 \emph off
826 \bar no
827 \noun off
828 \color none
829 を使用して実行した場合には,
830 \SpecialChar LyX
831 はこの後,
832 DVIビューアを実行してDVIファイルを表示します.
833 \begin_inset Flex MenuItem
834 status collapsed
835
836 \begin_layout Plain Layout
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 表示\SpecialChar menuseparator
847 PostScript
848 \end_layout
849
850 \end_inset
851
852 を使用した場合には,
853 \SpecialChar LyX
854 はさらに以下の段階をふみます.
855 \end_layout
856
857 \begin_layout Itemize
858
859 \family roman
860 \series medium
861 \shape up
862 \size normal
863 \emph off
864 \bar no
865 \noun off
866 \color none
867 \begin_inset Flex Code
868 status collapsed
869
870 \begin_layout Plain Layout
871
872 \family typewriter
873 dvips
874 \end_layout
875
876 \end_inset
877
878 を実行して,
879
880 \family default
881 \series default
882 \shape default
883 \size default
884 \emph default
885 \bar default
886 \noun default
887 \color inherit
888 DVI
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 ファイルをPostScript
898 \family default
899 \series default
900 \shape default
901 \size default
902 \emph default
903 \bar default
904 \noun default
905 \color inherit
906 に変換.
907 \end_layout
908
909 \begin_layout Itemize
910
911 \family roman
912 \series medium
913 \shape up
914 \size normal
915 \emph off
916 \bar no
917 \noun off
918 \color none
919 \begin_inset Flex Code
920 status collapsed
921
922 \begin_layout Plain Layout
923
924 \family typewriter
925 ghostview
926 \end_layout
927
928 \end_inset
929
930 などのPostScriptビューアを実行して,
931 PostScript
932 \family default
933 \series default
934 \shape default
935 \size default
936 \emph default
937 \bar default
938 \noun default
939 \color inherit
940 ファイルを表示.
941 \end_layout
942
943 \begin_layout Standard
944 \SpecialChar LyX
945 は,
946 他の書式を表示したりエクスポートしたりする際にも,
947 同様のことを行います.
948 \end_layout
949
950 \begin_layout Section
951 \SpecialChar LaTeX
952 ファイルを\SpecialChar LyX
953 に読み込む
954 \end_layout
955
956 \begin_layout Standard
957 \SpecialChar LyX
958
959 \family sans
960
961 \begin_inset Flex MenuItem
962 status collapsed
963
964 \begin_layout Plain Layout
965
966 \family sans
967 ファイル\SpecialChar menuseparator
968 インポート\SpecialChar menuseparator
969 LaTeX
970 \end_layout
971
972 \end_inset
973
974
975 \family roman
976 \series medium
977 \shape up
978 \size normal
979 \emph off
980 \bar no
981 \noun off
982 \color none
983 コマンドを使用すると,
984 \SpecialChar LaTeX
985 ファイルを
986 \family default
987 \series default
988 \shape default
989 \size default
990 \emph default
991 \bar default
992 \noun default
993  
994 \family roman
995 \series medium
996 \shape up
997 \size normal
998 \emph off
999 \bar no
1000 \noun off
1001 \SpecialChar LyX
1002 にインポートすることができます.このコマンドは,
1003
1004 \family typewriter
1005 \series default
1006 \shape default
1007 \size default
1008 \emph default
1009 \bar default
1010 \noun default
1011 \color inherit
1012
1013 \begin_inset Flex Code
1014 status collapsed
1015
1016 \begin_layout Plain Layout
1017
1018 \family typewriter
1019 tex2lyx
1020 \end_layout
1021
1022 \end_inset
1023
1024
1025 \family roman
1026 \series medium
1027 \shape up
1028 \size normal
1029 \emph off
1030 \bar no
1031 \noun off
1032 \color none
1033 というプログラムを呼び出し,
1034
1035 \family typewriter
1036 \series default
1037 \shape default
1038 \size default
1039 \emph default
1040 \bar default
1041 \noun default
1042 \color inherit
1043
1044 \begin_inset Flex Code
1045 status collapsed
1046
1047 \begin_layout Plain Layout
1048
1049 \family typewriter
1050 foo.tex
1051 \end_layout
1052
1053 \end_inset
1054
1055
1056 \family default
1057 などというファイルから
1058 \begin_inset Flex Code
1059 status collapsed
1060
1061 \begin_layout Plain Layout
1062
1063 \family typewriter
1064 foo.lyx
1065 \end_layout
1066
1067 \end_inset
1068
1069 を生成します.\SpecialChar LyX
1070 は,
1071 この変換したファイルを開きます
1072 \begin_inset Foot
1073 status collapsed
1074
1075 \begin_layout Plain Layout
1076 \begin_inset Flex Code
1077 status collapsed
1078
1079 \begin_layout Plain Layout
1080 tex2lyx
1081 \end_layout
1082
1083 \end_inset
1084
1085 は,
1086 もちろんコマンドラインから実行することもできます.
1087 \end_layout
1088
1089 \end_inset
1090
1091
1092 \end_layout
1093
1094 \begin_layout Standard
1095
1096 \family typewriter
1097 \begin_inset Flex Code
1098 status collapsed
1099
1100 \begin_layout Plain Layout
1101
1102 \family typewriter
1103 tex2lyx
1104 \end_layout
1105
1106 \end_inset
1107
1108
1109 \family roman
1110 \series medium
1111 \shape up
1112 \size normal
1113 \emph off
1114 \bar no
1115 \noun off
1116 \color none
1117 は,
1118 文法的に正しい\SpecialChar LaTeX
1119 ファイルのほとんどを変換することができますが,
1120 すべてを変換できるわけではありません.
1121 \family typewriter
1122 \series default
1123 \shape default
1124 \size default
1125 \emph default
1126 \bar default
1127 \noun default
1128 \color inherit
1129
1130 \begin_inset Flex Code
1131 status collapsed
1132
1133 \begin_layout Plain Layout
1134
1135 \family typewriter
1136 tex2lyx
1137 \end_layout
1138
1139 \end_inset
1140
1141
1142 \family roman
1143 \series medium
1144 \shape up
1145 \size normal
1146 \emph off
1147 \bar no
1148 \noun off
1149 \color none
1150 は,
1151 理解不能な部分は\SpecialChar TeX
1152 コードボックスの形で残しますので,
1153 ファイルを
1154 \family typewriter
1155 \series default
1156 \shape default
1157 \size default
1158 \emph default
1159 \bar default
1160 \noun default
1161 \color inherit
1162
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167
1168 \family typewriter
1169 tex2lyx
1170 \end_layout
1171
1172 \end_inset
1173
1174
1175 \family roman
1176 \series medium
1177 \shape up
1178 \size normal
1179 \emph off
1180 \bar no
1181 \noun off
1182 \color none
1183 で変換したのち,
1184 \SpecialChar TeX
1185 コードボックスを探して,
1186 手動で正しく編集してください.
1187 \end_layout
1188
1189 \begin_layout Standard
1190
1191 \family roman
1192 \series medium
1193 \shape up
1194 \size normal
1195 \emph off
1196 \bar no
1197 \noun off
1198 \color none
1199 \SpecialChar TeX
1200 コードボックスがなにかご存じなければ,
1201 次節をお読みください.
1202 \end_layout
1203
1204 \begin_layout Section
1205 \SpecialChar LyX
1206 文書に\SpecialChar TeX
1207 コードを挿入する
1208 \begin_inset CommandInset label
1209 LatexCommand label
1210 name "sec:TeXコードを挿入する"
1211
1212 \end_inset
1213
1214
1215 \end_layout
1216
1217 \begin_layout Standard
1218
1219 \family roman
1220 \series medium
1221 \shape up
1222 \size normal
1223 \emph off
1224 \bar no
1225 \noun off
1226 \color none
1227 どの\SpecialChar LyX
1228 文書にもつねに\SpecialChar TeX
1229 コードを挿入することが可能であるというきわめて単純な理由によって,
1230 \SpecialChar LaTeX
1231 にできることは,
1232 つねに\SpecialChar LyX
1233 でも行うことができます.一方,
1234 \SpecialChar LyX
1235 は,
1236 すべての\SpecialChar LaTeX
1237 構成物を\SpecialChar LyX
1238 内に表示できるわけではなく,
1239 将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1240 コマンドを\SpecialChar LyX
1241 文書に挿入する必要が出てきた場合には,
1242
1243 \begin_inset Flex Code
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247
1248 \family roman
1249 \series medium
1250 \shape up
1251 \size normal
1252 \emph off
1253 \bar no
1254 \noun off
1255 \color none
1256 \SpecialChar TeX
1257 コード
1258 \end_layout
1259
1260 \end_inset
1261
1262 ボックスを使用してください.これは,
1263
1264 \family sans
1265 \series default
1266 \shape default
1267 \size default
1268 \emph default
1269 \bar default
1270 \noun default
1271 \color inherit
1272
1273 \begin_inset Flex MenuItem
1274 status collapsed
1275
1276 \begin_layout Plain Layout
1277
1278 \family sans
1279 挿入\SpecialChar menuseparator
1280 TeXコード
1281 \end_layout
1282
1283 \end_inset
1284
1285
1286 \family roman
1287 \series medium
1288 \shape up
1289 \size normal
1290 \emph off
1291 \bar no
1292 \noun off
1293 \color none
1294 若しくは
1295 \family default
1296 \series default
1297 \shape default
1298 \size default
1299 \emph default
1300 \bar default
1301 \noun default
1302 \color inherit
1303 ショートカットキー
1304 \begin_inset Info
1305 type  "shortcut"
1306 arg   "ert-insert"
1307 \end_inset
1308
1309
1310 \family roman
1311 \series medium
1312 \shape up
1313 \size normal
1314 \emph off
1315 \bar no
1316 \noun off
1317 \color none
1318 で,
1319 文書中に挿入することができます.
1320 \end_layout
1321
1322 \begin_layout Standard
1323 以下は,
1324 \SpecialChar LaTeX
1325 コマンドを\SpecialChar LyX
1326 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1327 \end_layout
1328
1329 \begin_layout LyX-Code
1330
1331 \backslash
1332 begin{tabular}{ll}
1333 \begin_inset Newline newline
1334 \end_inset
1335
1336
1337 \backslash
1338 begin{minipage}{5cm}
1339 \begin_inset Newline newline
1340 \end_inset
1341
1342 これは,
1343 ミニページ環境の例です.
1344 \begin_inset Newline newline
1345 \end_inset
1346
1347 これには,
1348
1349 \begin_inset Newline newline
1350 \end_inset
1351
1352 (フロートでない)図表を
1353 \begin_inset Newline newline
1354 \end_inset
1355
1356 含め,
1357 ほとんど何でも
1358 \begin_inset Newline newline
1359 \end_inset
1360
1361 入れることができます. 
1362 \begin_inset Newline newline
1363 \end_inset
1364
1365
1366 \backslash
1367 end{minipage}
1368 \begin_inset Newline newline
1369 \end_inset
1370
1371 &
1372 \begin_inset Newline newline
1373 \end_inset
1374
1375
1376 \backslash
1377 begin{minipage}{5cm}
1378 \begin_inset Newline newline
1379 \end_inset
1380
1381
1382 \backslash
1383 begin{verbatim}
1384 \begin_inset Newline newline
1385 \end_inset
1386
1387
1388 \backslash
1389 begin{minipage}{5cm}
1390 \begin_inset Newline newline
1391 \end_inset
1392
1393 これは...
1394  
1395 \begin_inset Newline newline
1396 \end_inset
1397
1398
1399 \backslash
1400 end{minipage}
1401 \begin_inset Newline newline
1402 \end_inset
1403
1404
1405 \backslash
1406 end{verbatim}
1407 \begin_inset Newline newline
1408 \end_inset
1409
1410
1411 \backslash
1412 end{minipage}
1413 \begin_inset Newline newline
1414 \end_inset
1415
1416
1417 \backslash
1418 end{tabular}
1419 \end_layout
1420
1421 \begin_layout LyX-Code
1422
1423 \end_layout
1424
1425 \begin_layout Standard
1426 上記のテキストを含んだ
1427 \begin_inset Flex Code
1428 status collapsed
1429
1430 \begin_layout Plain Layout
1431 \SpecialChar TeX
1432 コード
1433 \end_layout
1434
1435 \end_inset
1436
1437 ボックスが,
1438 この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1439 上でご覧になっていれば,
1440 \SpecialChar TeX
1441 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,
1442 実際の結果が見れるはずです.
1443 \end_layout
1444
1445 \begin_layout Standard
1446 \begin_inset VSpace bigskip
1447 \end_inset
1448
1449
1450 \begin_inset ERT
1451 status open
1452
1453 \begin_layout Plain Layout
1454
1455
1456 \backslash
1457 begin{tabular}{ll}
1458 \end_layout
1459
1460 \begin_layout Plain Layout
1461
1462
1463 \backslash
1464 begin{minipage}{5cm}
1465 \end_layout
1466
1467 \begin_layout Plain Layout
1468
1469 これは,
1470 ミニページ環境の例です.これには,
1471 (フロートでない)図表を含め,
1472 ほとんど何でも入れることができます. 
1473 \backslash
1474 end{minipage}
1475 \end_layout
1476
1477 \begin_layout Plain Layout
1478
1479 &
1480 \end_layout
1481
1482 \begin_layout Plain Layout
1483
1484
1485 \backslash
1486 begin{minipage}{5cm}
1487 \end_layout
1488
1489 \begin_layout Plain Layout
1490
1491
1492 \backslash
1493 begin{verbatim}
1494 \end_layout
1495
1496 \begin_layout Plain Layout
1497
1498
1499 \backslash
1500 begin{minipage}{5cm}
1501 \end_layout
1502
1503 \begin_layout Plain Layout
1504
1505 これは...
1506 \end_layout
1507
1508 \begin_layout Plain Layout
1509
1510
1511 \backslash
1512 end{minipage}
1513 \end_layout
1514
1515 \begin_layout Plain Layout
1516
1517
1518 \backslash
1519 end{verbatim}
1520 \end_layout
1521
1522 \begin_layout Plain Layout
1523
1524
1525 \backslash
1526 end{minipage}
1527 \end_layout
1528
1529 \begin_layout Plain Layout
1530
1531
1532 \backslash
1533 end{tabular}
1534 \end_layout
1535
1536 \end_inset
1537
1538
1539 \begin_inset VSpace bigskip
1540 \end_inset
1541
1542
1543 \end_layout
1544
1545 \begin_layout Standard
1546
1547 \family roman
1548 \series medium
1549 \shape up
1550 \size normal
1551 \emph off
1552 \bar no
1553 \noun off
1554 \color none
1555 \SpecialChar TeX
1556 コードを使用する方法に加えて,
1557 複雑な\SpecialChar LaTeX
1558 コードを含む部分を別ファイルとして作成しておき,
1559 そのファイルをインクルードするのに
1560 \begin_inset Flex MenuItem
1561 status collapsed
1562
1563 \begin_layout Plain Layout
1564
1565 \family roman
1566 \series medium
1567 \shape up
1568 \size normal
1569 \emph off
1570 \bar no
1571 \noun off
1572 \color none
1573 挿入\SpecialChar menuseparator
1574 ファイル\SpecialChar menuseparator
1575 子文書
1576 \end_layout
1577
1578 \end_inset
1579
1580 を使用する方法もあります(取り込みの型として
1581 \begin_inset Flex Code
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585
1586 \family roman
1587 \series medium
1588 \shape up
1589 \size normal
1590 \emph off
1591 \bar no
1592 \noun off
1593 \color none
1594 Input
1595 \end_layout
1596
1597 \end_inset
1598
1599 を選択しなくてはなりません).この方法をとる場合には,
1600 .texファイルが正しく動作することが
1601 \family default
1602 \series default
1603 \shape default
1604 \size default
1605 \emph on
1606 \bar default
1607 \noun default
1608 \color inherit
1609 確認できている
1610 \family roman
1611 \series medium
1612 \shape up
1613 \size normal
1614 \emph off
1615 \bar no
1616 \noun off
1617 \color none
1618 場合のみに限った方がよいでしょう.さもないと,
1619 \SpecialChar LaTeX
1620 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1621 \end_layout
1622
1623 \begin_layout Standard
1624
1625 \family roman
1626 \series medium
1627 \shape up
1628 \size normal
1629 \emph off
1630 \bar no
1631 \noun off
1632 \color none
1633 最後に,
1634 いくつか強調しておくべきことがあります.
1635 \end_layout
1636
1637 \begin_layout Itemize
1638
1639 \family roman
1640 \series medium
1641 \shape up
1642 \size normal
1643 \emph off
1644 \bar no
1645 \noun off
1646 \color none
1647 \SpecialChar LyX
1648 は,
1649 あなたの\SpecialChar LaTeX
1650 コードが正しいかどうかを
1651 \family default
1652 \series default
1653 \shape default
1654 \size default
1655 \emph default
1656 \bar default
1657 \noun default
1658 \color inherit
1659 チェック
1660 \begin_inset Flex 圏点
1661 status open
1662
1663 \begin_layout Plain Layout
1664 しません
1665 \end_layout
1666
1667 \end_inset
1668
1669
1670 \family roman
1671 \series medium
1672 \shape up
1673 \size normal
1674 \emph off
1675 \bar no
1676 \noun off
1677 \color none
1678
1679 \end_layout
1680
1681 \begin_layout Itemize
1682
1683 \family roman
1684 \series medium
1685 \shape up
1686 \size normal
1687 \emph off
1688 \bar no
1689 \noun off
1690 \color none
1691 車輪の再発明をしないようにご注意ください.
1692 \end_layout
1693
1694 \begin_layout Standard
1695
1696 \family roman
1697 \series medium
1698 \shape up
1699 \size normal
1700 \emph off
1701 \bar no
1702 \noun off
1703 \color none
1704 二番目の点に関して,
1705 \SpecialChar LyX
1706 はひじょうにたくさんの機能を装備しており,
1707 その数は増えつづけています.ご自身で\SpecialChar LaTeX
1708 コードを書かなくてはならないと思い込む前に,
1709 LyXがこれこれの機能をもっていないことを,
1710 取扱説明書で確実に確かめてください.さらに世の中には,
1711 封筒のラベルから美しい複数ページにわたる表を作るものまで,
1712 ありとあらゆることを行う膨大な数の\SpecialChar LaTeX
1713 パッケージが存在します.
1714 \family default
1715 \series default
1716 \shape default
1717 \size default
1718 \emph default
1719 \bar default
1720 \noun default
1721 \color inherit
1722 詳細については,
1723
1724 \begin_inset CommandInset href
1725 LatexCommand href
1726 name "CTAN"
1727 target "https://www.ctan.org/"
1728 literal "false"
1729
1730 \end_inset
1731
1732
1733 \family roman
1734 \series medium
1735 \shape up
1736 \size normal
1737 \emph off
1738 \bar no
1739 \noun off
1740 \color none
1741 をご覧ください.
1742 \end_layout
1743
1744 \begin_layout Standard
1745
1746 \family roman
1747 \series medium
1748 \shape up
1749 \size normal
1750 \emph off
1751 \bar no
1752 \noun off
1753 \color none
1754 もし,
1755 文書中で例外的に手の込んだことをなさりたければ,
1756 かならず良い\SpecialChar LaTeX
1757 関連書籍を参考とするようにしてください.『
1758 \family default
1759 \series default
1760 \shape default
1761 \size default
1762 \emph default
1763 \bar default
1764 \noun default
1765 \color inherit
1766 ユーザーの手引き
1767 \family roman
1768 \series medium
1769 \shape up
1770 \size normal
1771 \emph off
1772 \bar no
1773 \noun off
1774 \color none
1775 』の書誌情報に多くの\SpecialChar LaTeX
1776 関連書籍が引用されています.
1777 \end_layout
1778
1779 \begin_layout Section
1780 \SpecialChar LyX
1781 と\SpecialChar LaTeX
1782 プリアンブル
1783 \end_layout
1784
1785 \begin_layout Subsection
1786 \SpecialChar LaTeX
1787 プリアンブルについて
1788 \end_layout
1789
1790 \begin_layout Standard
1791
1792 \family roman
1793 \series medium
1794 \shape up
1795 \size normal
1796 \emph off
1797 \bar no
1798 \noun off
1799 \color none
1800 すでに\SpecialChar LaTeX
1801 についてご存知であれば,
1802 ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,
1803 以下の説明で大まかな理解は得られるはずです.詳しくは\SpecialChar LaTeX
1804 関連書籍をご参照ください.いずれにしても,
1805 以下で\SpecialChar LyX
1806 文書の\SpecialChar LaTeX
1807 プリアンブルで何ができるか,
1808 または何をする必要がないか説明をしますので,
1809 以下の各要点はお読みになった方が良いでしょう.
1810 \end_layout
1811
1812 \begin_layout Standard
1813
1814 \family roman
1815 \series medium
1816 \shape up
1817 \size normal
1818 \emph off
1819 \bar no
1820 \noun off
1821 \color none
1822 \SpecialChar LaTeX
1823 プリアンブルは,
1824 \SpecialChar LaTeX
1825 文書のいちばん始め,
1826 本文の
1827 \family default
1828 \series default
1829 \shape default
1830 \size default
1831 \emph on
1832 \bar default
1833 \noun default
1834 \color inherit
1835
1836 \family roman
1837 \series medium
1838 \shape up
1839 \size normal
1840 \emph off
1841 \bar no
1842 \noun off
1843 \color none
1844 の部分に来ます.ここでは以下のことを行います.
1845 \end_layout
1846
1847 \begin_layout Itemize
1848
1849 \family roman
1850 \series medium
1851 \shape up
1852 \size normal
1853 \emph off
1854 \bar no
1855 \noun off
1856 \color none
1857 文書クラス(ドキュメントクラス)の宣言.
1858 \begin_inset Newline newline
1859 \end_inset
1860
1861 これは\SpecialChar LyX
1862 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1863 使いであり,
1864 自作の文書クラスを使いたい場合には,
1865 取扱説明書『
1866 \family default
1867 \series default
1868 \shape default
1869 \size default
1870 \emph on
1871 \bar default
1872 \noun default
1873 \color inherit
1874 カスタマイズ篇
1875 \family roman
1876 \series medium
1877 \shape up
1878 \size normal
1879 \emph off
1880 \bar no
1881 \noun off
1882 \color none
1883 』をご覧になれば,
1884 \SpecialChar LyX
1885 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1886 \end_layout
1887
1888 \begin_layout Itemize
1889
1890 \family roman
1891 \series medium
1892 \shape up
1893 \size normal
1894 \emph off
1895 \bar no
1896 \noun off
1897 \color none
1898 パッケージ使用の宣言.
1899 \begin_inset Newline newline
1900 \end_inset
1901
1902 \SpecialChar LaTeX
1903 パッケージは,
1904 パッケージがプリアンブルで宣言された場合のみ,
1905 文書中で利用可能となる,
1906 追加コマンド群を提供します.パッケージをインクルードすると,
1907 特別なコマンドが提供されることに加え,
1908 文書に変更を加えることができます.例えば
1909 \family typewriter
1910 \series default
1911 \shape default
1912 \size default
1913 \emph default
1914 \bar default
1915 \noun default
1916 \color inherit
1917
1918
1919 \family roman
1920 \series medium
1921 \shape up
1922 \size normal
1923 \emph off
1924 \bar no
1925 \noun off
1926 \color none
1927
1928 \begin_inset Flex Code
1929 status collapsed
1930
1931 \begin_layout Plain Layout
1932
1933 \family typewriter
1934 indentfirst
1935 \end_layout
1936
1937 \end_inset
1938
1939 パッケージは,
1940 すべての段落の最初の行を字下げします.他にも,
1941 ラベルや宛名書き,
1942 余白設定等の様々なパッケージがあります.
1943 \end_layout
1944
1945 \begin_layout Itemize
1946
1947 \family roman
1948 \series medium
1949 \shape up
1950 \size normal
1951 \emph off
1952 \bar no
1953 \noun off
1954 \color none
1955 カウンタ・変数・長さ・幅の設定.
1956 \begin_inset Newline newline
1957 \end_inset
1958
1959 \SpecialChar LaTeX
1960 のカウンタと変数の中には,
1961 プリアンブルでグローバルに
1962 \family default
1963 \series default
1964 \shape default
1965 \size default
1966 \emph default
1967 \bar default
1968 \noun default
1969 \color inherit
1970 設定
1971 \emph on
1972 しないかぎり
1973 \family roman
1974 \series medium
1975 \shape up
1976 \size normal
1977 \emph off
1978 \bar no
1979 \noun off
1980 \color none
1981
1982 望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,
1983 プリアンブルで設定しなくてはならない変数の代表例です.他には,
1984 箇条書きに付けるラベル書式が挙げられます.じつは,
1985 この設定は文書中どこでもできるのですが,
1986 プリアンブルでいちどだけ設定するのが望ましい方法です.
1987 \end_layout
1988
1989 \begin_layout Itemize
1990
1991 \family roman
1992 \series medium
1993 \shape up
1994 \size normal
1995 \emph off
1996 \bar no
1997 \noun off
1998 \color none
1999 ユーザー定義コマンドの宣言(
2000 \begin_inset Flex Code
2001 status collapsed
2002
2003 \begin_layout Plain Layout
2004
2005 \family roman
2006 \series medium
2007 \shape up
2008 \size normal
2009 \emph off
2010 \bar no
2011 \noun off
2012 \color none
2013
2014 \backslash
2015 newcommand
2016 \end_layout
2017
2018 \end_inset
2019
2020 または
2021 \begin_inset Flex Code
2022 status collapsed
2023
2024 \begin_layout Plain Layout
2025
2026 \family roman
2027 \series medium
2028 \shape up
2029 \size normal
2030 \emph off
2031 \bar no
2032 \noun off
2033 \color none
2034
2035 \backslash
2036 renewcommand
2037 \end_layout
2038
2039 \end_inset
2040
2041 を使用).
2042 \begin_inset Newline newline
2043 \end_inset
2044
2045 ユーザー定義コマンドは,
2046 文書中で頻出する\SpecialChar LaTeX
2047 コマンドの短縮形です.このようなコマンドを宣言するには,
2048 プリアンブルが適した場所ですが,
2049 どこで宣言することも
2050 \family default
2051 \series default
2052 \shape default
2053 \size default
2054 \emph on
2055 \bar default
2056 \noun default
2057 \color inherit
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 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,
2068 お使いの文書中に生の\SpecialChar LaTeX
2069 コードがあふれている場合には便利でしょう.
2070 \end_layout
2071
2072 \begin_layout Standard
2073
2074 \family roman
2075 \series medium
2076 \shape up
2077 \size normal
2078 \emph off
2079 \bar no
2080 \noun off
2081 \color none
2082 \SpecialChar LyX
2083 は,
2084 その生成する
2085 \begin_inset Flex Code
2086 status collapsed
2087
2088 \begin_layout Plain Layout
2089
2090 \family roman
2091 \series medium
2092 \shape up
2093 \size normal
2094 \emph off
2095 \bar no
2096 \noun off
2097 \color none
2098 .tex
2099 \end_layout
2100
2101 \end_inset
2102
2103 ファイルのプリアンブルに,
2104 それ自身の定義を追加します.これによって,
2105 \SpecialChar LyX
2106 の生成する\SpecialChar LaTeX
2107 ファイルの可搬性を高めています.
2108 \end_layout
2109
2110 \begin_layout Subsection
2111 プリアンブルの変更
2112 \end_layout
2113
2114 \begin_layout Standard
2115
2116 \family roman
2117 \series medium
2118 \shape up
2119 \size normal
2120 \emph off
2121 \bar no
2122 \noun off
2123 \color none
2124 \SpecialChar LyX
2125 が\SpecialChar LaTeX
2126 ファイルのプリアンブルに追加するコマンドは,
2127 つねに同じです.これは,
2128 \SpecialChar LyX
2129 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2130
2131 \begin_inset Flex MenuItem
2132 status collapsed
2133
2134 \begin_layout Plain Layout
2135
2136 \family roman
2137 \series medium
2138 \shape up
2139 \size normal
2140 \emph off
2141 \bar no
2142 \noun off
2143 \color none
2144 文書\SpecialChar menuseparator
2145 設定
2146 \end_layout
2147
2148 \end_inset
2149
2150 ダイアログの
2151 \begin_inset Flex MenuItem
2152 status collapsed
2153
2154 \begin_layout Plain Layout
2155
2156 \family roman
2157 \series medium
2158 \shape up
2159 \size normal
2160 \emph off
2161 \bar no
2162 \noun off
2163 \color none
2164 \SpecialChar LaTeX
2165 プリアンブル
2166 \end_layout
2167
2168 \end_inset
2169
2170 の項から,
2171 プリアンブルに追加をすることはできます.\SpecialChar LyX
2172 は,
2173
2174 \family sans
2175 \series default
2176 \shape default
2177 \size default
2178 \emph default
2179 \bar default
2180 \noun default
2181 \color inherit
2182
2183 \begin_inset Flex MenuItem
2184 status collapsed
2185
2186 \begin_layout Plain Layout
2187
2188 \family sans
2189 プリアンブル
2190 \end_layout
2191
2192 \end_inset
2193
2194
2195 \family roman
2196 \series medium
2197 \shape up
2198 \size normal
2199 \emph off
2200 \bar no
2201 \noun off
2202 \color none
2203 ダイアログ内のすべてのものを,
2204 \SpecialChar LyX
2205 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,
2206 あなたがしようとしていることを\SpecialChar LyX
2207 がすでにサポートしていないかどうか確認してください(車輪の再発明をしないように,
2208 とはすでに申しあげたことです).
2209 \family default
2210 \series default
2211 \shape default
2212 \size default
2213 \emph default
2214 \bar default
2215 \noun default
2216 \color inherit
2217 また,
2218
2219 \emph on
2220 プリアンブルコードが正しいことを確認してください.
2221 \emph default
2222 \SpecialChar LyX
2223 は,
2224 プリアンブルをチェックしません.
2225 \family roman
2226 \series medium
2227 \shape up
2228 \size normal
2229 \emph off
2230 \bar no
2231 \noun off
2232 \color none
2233 もしエラーがあれば,
2234
2235 \begin_inset Flex Code
2236 status collapsed
2237
2238 \begin_layout Plain Layout
2239
2240 \family roman
2241 \series medium
2242 \shape up
2243 \size normal
2244 \emph off
2245 \bar no
2246 \noun off
2247 \color none
2248 Missing 
2249 \backslash
2250 begin{document}
2251 \end_layout
2252
2253 \end_inset
2254
2255 」といったエラーが出ることでしょう.このようなエラーが出たときは,
2256 プリアンブルを再確認してください.
2257 \end_layout
2258
2259 \begin_layout Subsection
2260
2261 \end_layout
2262
2263 \begin_layout Standard
2264
2265 \family roman
2266 \series medium
2267 \shape up
2268 \size normal
2269 \emph off
2270 \bar no
2271 \noun off
2272 \color none
2273 以下は,
2274 プリアンブルに追加できるものとその効果を示す例です.
2275 \end_layout
2276
2277 \begin_layout Subsubsection
2278 例1:
2279 オフセット
2280 \end_layout
2281
2282 \begin_layout Standard
2283
2284 \family roman
2285 \series medium
2286 \shape up
2287 \size normal
2288 \emph off
2289 \bar no
2290 \noun off
2291 \color none
2292 \SpecialChar LaTeX
2293 には
2294 \family default
2295 \series default
2296 \shape default
2297 \size default
2298 \emph default
2299 \bar default
2300 \noun default
2301 \color inherit
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
2313 \begin_inset Flex Code
2314 status collapsed
2315
2316 \begin_layout Plain Layout
2317
2318 \family typewriter
2319
2320 \backslash
2321 hoffset
2322 \end_layout
2323
2324 \end_inset
2325
2326
2327 \family typewriter
2328 \series default
2329 \shape default
2330 \size default
2331 \emph default
2332 \bar default
2333 \noun default
2334 \color inherit
2335
2336 \begin_inset Flex Code
2337 status collapsed
2338
2339 \begin_layout Plain Layout
2340
2341 \family typewriter
2342
2343 \backslash
2344 voffset
2345 \end_layout
2346
2347 \end_inset
2348
2349
2350 \family roman
2351 \series medium
2352 \shape up
2353 \size normal
2354 \emph off
2355 \bar no
2356 \noun off
2357 \color none
2358 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,
2359 ラベルを印刷するときなどに便利です.往々にして,
2360 印刷用紙の寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2361 \begin_inset Flex Code
2362 status collapsed
2363
2364 \begin_layout Plain Layout
2365
2366 \family typewriter
2367
2368 \backslash
2369 hoffset
2370 \end_layout
2371
2372 \end_inset
2373
2374
2375 \family typewriter
2376 \series default
2377 \shape default
2378 \size default
2379 \emph default
2380 \bar default
2381 \noun default
2382 \color inherit
2383
2384 \begin_inset Flex Code
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388
2389 \family typewriter
2390
2391 \backslash
2392 voffset
2393 \end_layout
2394
2395 \end_inset
2396
2397
2398 \family default
2399 が役立つわけです.
2400 \end_layout
2401
2402 \begin_layout Standard
2403
2404 \family roman
2405 \series medium
2406 \shape up
2407 \size normal
2408 \emph off
2409 \bar no
2410 \noun off
2411 \color none
2412 \begin_inset Flex Code
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416
2417 \family typewriter
2418
2419 \backslash
2420 hoffset
2421 \end_layout
2422
2423 \end_inset
2424
2425
2426 \family typewriter
2427 \series default
2428 \shape default
2429 \size default
2430 \emph default
2431 \bar default
2432 \noun default
2433 \color inherit
2434
2435 \begin_inset Flex Code
2436 status collapsed
2437
2438 \begin_layout Plain Layout
2439
2440 \family typewriter
2441
2442 \backslash
2443 voffset
2444 \end_layout
2445
2446 \end_inset
2447
2448
2449 \family roman
2450 \series medium
2451 \shape up
2452 \size normal
2453 \emph off
2454 \bar no
2455 \noun off
2456 \color none
2457 の既定値はともに0ポイント,
2458 つまりページをシフトしません.残念ながら,
2459 DVIドライバによってはつねにページをシフトすることがあるようです.我々には,
2460 どうしてそのようなことをするのか,
2461 そしてシスアドがどうしてそれを修正しないのか理解できませんが,
2462 もし個人的に管理できないシステムで\SpecialChar LyX
2463 を使用していて,
2464 シスアドがお馬鹿さんである場合には,
2465
2466 \begin_inset Flex Code
2467 status collapsed
2468
2469 \begin_layout Plain Layout
2470
2471 \family typewriter
2472
2473 \backslash
2474 hoffset
2475 \end_layout
2476
2477 \end_inset
2478
2479
2480 \family typewriter
2481 \series default
2482 \shape default
2483 \size default
2484 \emph default
2485 \bar default
2486 \noun default
2487 \color inherit
2488
2489 \begin_inset Flex Code
2490 status collapsed
2491
2492 \begin_layout Plain Layout
2493
2494 \family typewriter
2495
2496 \backslash
2497 voffset
2498 \end_layout
2499
2500 \end_inset
2501
2502
2503 \family roman
2504 \series medium
2505 \shape up
2506 \size normal
2507 \emph off
2508 \bar no
2509 \noun off
2510 \color none
2511 が役に立ちます.かりに,
2512 上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,
2513 以下をプリアンブルに追加するとよいでしょう.
2514 \end_layout
2515
2516 \begin_layout LyX-Code
2517
2518 \backslash
2519 setlength{
2520 \backslash
2521 hoffset}{-0.5 in}
2522 \end_layout
2523
2524 \begin_layout LyX-Code
2525
2526 \backslash
2527 setlength{
2528 \backslash
2529 voffset}{-0.5 in}
2530 \end_layout
2531
2532 \begin_layout Standard
2533
2534 \family roman
2535 \series medium
2536 \shape up
2537 \size normal
2538 \emph off
2539 \bar no
2540 \noun off
2541 \color none
2542 これで余白が修正されます.
2543 \end_layout
2544
2545 \begin_layout Subsubsection
2546 例2:
2547 ラベル
2548 \end_layout
2549
2550 \begin_layout Standard
2551
2552 \family roman
2553 \series medium
2554 \shape up
2555 \size normal
2556 \emph off
2557 \bar no
2558 \noun off
2559 \color none
2560 いま,
2561 たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2562 \begin_inset Flex Code
2563 status collapsed
2564
2565 \begin_layout Plain Layout
2566
2567 \family typewriter
2568 labels.sty
2569 \end_layout
2570
2571 \end_inset
2572
2573 という\SpecialChar LaTeX
2574 パッケージが,
2575 お近くのCTANアーカイブで入手可能です.お使いのシステムには,
2576 既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめください.また,
2577 このパッケージの取扱説明書を読まれたいかもしれませんが,
2578 それもご自身にお任せします.これは使用例ですので,
2579 このパッケージをどう使うかの例だけお見せすることにします.
2580 \end_layout
2581
2582 \begin_layout Standard
2583
2584 \family roman
2585 \series medium
2586 \shape up
2587 \size normal
2588 \emph off
2589 \bar no
2590 \noun off
2591 \color none
2592 まず,
2593
2594 \begin_inset Flex Code
2595 status collapsed
2596
2597 \begin_layout Plain Layout
2598
2599 \family sans
2600 article
2601 \end_layout
2602
2603 \end_inset
2604
2605 文書クラスを使用していることをご確認ください.次に,
2606 以下のような設定をプリアンブルに追加しなければなりません.
2607 \end_layout
2608
2609 \begin_layout LyX-Code
2610
2611 \backslash
2612 usepackage{labels}
2613 \end_layout
2614
2615 \begin_layout LyX-Code
2616
2617 \backslash
2618 LabelCols=3
2619 \end_layout
2620
2621 \begin_layout LyX-Code
2622
2623 \backslash
2624 LabelRows=7
2625 \end_layout
2626
2627 \begin_layout LyX-Code
2628
2629 \backslash
2630 LeftBorder=8mm
2631 \end_layout
2632
2633 \begin_layout LyX-Code
2634
2635 \backslash
2636 RightBorder=8mm
2637 \end_layout
2638
2639 \begin_layout LyX-Code
2640
2641 \backslash
2642 TopBorder=9mm
2643 \end_layout
2644
2645 \begin_layout LyX-Code
2646
2647 \backslash
2648 BottomBorder=2mm
2649 \end_layout
2650
2651 \begin_layout Standard
2652
2653 \family roman
2654 \series medium
2655 \shape up
2656 \size normal
2657 \emph off
2658 \bar no
2659 \noun off
2660 \color none
2661 これは
2662 \family default
2663 \series default
2664 \shape default
2665 \size default
2666 \emph default
2667 \bar default
2668 \noun default
2669 \color inherit
2670 Averyラベルシートのストック5360
2671 \family roman
2672 \series medium
2673 \shape up
2674 \size normal
2675 \emph off
2676 \bar no
2677 \noun off
2678 \color none
2679 番を使用する場合の設定です.これで,
2680 各宛名を
2681 \begin_inset Flex Code
2682 status collapsed
2683
2684 \begin_layout Plain Layout
2685
2686 \family typewriter
2687
2688 \backslash
2689 begin{labels}
2690 \end_layout
2691
2692 \end_inset
2693
2694
2695 \family typewriter
2696 \series default
2697 \shape default
2698 \size default
2699 \emph default
2700 \bar default
2701 \noun default
2702 \color inherit
2703
2704 \begin_inset Flex Code
2705 status collapsed
2706
2707 \begin_layout Plain Layout
2708
2709 \family typewriter
2710
2711 \backslash
2712 end{labels}
2713 \end_layout
2714
2715 \end_inset
2716
2717
2718 \family roman
2719 \series medium
2720 \shape up
2721 \size normal
2722 \emph off
2723 \bar no
2724 \noun off
2725 \color none
2726 で囲めば,
2727 宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2728
2729 \begin_inset Flex Code
2730 status collapsed
2731
2732 \begin_layout Plain Layout
2733
2734 \family typewriter
2735 labels.sty
2736 \end_layout
2737
2738 \end_inset
2739
2740 の取扱説明書に説明されています.
2741 \end_layout
2742
2743 \begin_layout Standard
2744
2745 \family roman
2746 \series medium
2747 \shape up
2748 \size normal
2749 \emph off
2750 \bar no
2751 \noun off
2752 \color none
2753 そのうち誰かが,
2754 このパッケージを直接サポートする\SpecialChar LyX
2755 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2756 \end_layout
2757
2758 \begin_layout Subsubsection
2759 例3:
2760  段落の字下げ
2761 \end_layout
2762
2763 \begin_layout Standard
2764
2765 \family roman
2766 \series medium
2767 \shape up
2768 \size normal
2769 \emph off
2770 \bar no
2771 \noun off
2772 \color none
2773 アメリカ人は
2774 \family default
2775 \series default
2776 \shape default
2777 \size default
2778 \emph default
2779 \bar default
2780 \noun default
2781 \color inherit
2782
2783
2784 \emph on
2785 すべての
2786 \family roman
2787 \series medium
2788 \shape up
2789 \size normal
2790 \emph off
2791 \bar no
2792 \noun off
2793 \color none
2794 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,
2795 いつものようにすべての段落の最初の行を下げるまで,
2796 アメリカ人はごちゃごちゃと文句を言いつづけるのです
2797 \family default
2798 \series default
2799 \shape default
2800 \size default
2801 \emph default
2802 \bar default
2803 \noun default
2804 \color inherit
2805 .(これはユーモアです.(ほんと?
2806
2807 \emph on
2808 ユーモアですってば
2809 \emph default
2810 .)
2811 \end_layout
2812
2813 \begin_layout Standard
2814
2815 \family roman
2816 \series medium
2817 \shape up
2818 \size normal
2819 \emph off
2820 \bar no
2821 \noun off
2822 \color none
2823 もちろん,
2824 これは標準的な組版ルールではありません.書籍では,
2825 典型的には,
2826 他の段落のあとにくる段落
2827 \family default
2828 \series default
2829 \shape default
2830 \size default
2831 \emph on
2832 \bar default
2833 \noun default
2834 \color inherit
2835 のみ
2836 \family roman
2837 \series medium
2838 \shape up
2839 \size normal
2840 \emph off
2841 \bar no
2842 \noun off
2843 \color none
2844 字下げを行ないます.一行めを字下げをするそもそもの目的は,
2845 隣接する段落から区別するためです.したがって,
2846 図のあとや節の最初の段落など,
2847 先行する段落がない場合には,
2848 字下げをする必要はないのです.
2849 \end_layout
2850
2851 \begin_layout Standard
2852
2853 \family roman
2854 \series medium
2855 \shape up
2856 \size normal
2857 \emph off
2858 \bar no
2859 \noun off
2860 \color none
2861 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!
2862 ),
2863 そのような小難しいことはかまわずに,
2864 いつもどおりの字下げをせずにはいられないでしょう!
2865 プリアンブルに次の行を加えて下さい.
2866 \end_layout
2867
2868 \begin_layout LyX-Code
2869
2870 \backslash
2871 usepackage{indentfirst}
2872 \end_layout
2873
2874 \begin_layout Standard
2875
2876 \family roman
2877 \series medium
2878 \shape up
2879 \size normal
2880 \emph off
2881 \bar no
2882 \noun off
2883 \color none
2884 もしお使いの\SpecialChar TeX
2885 頒布版が脳死状態でなければ,
2886 このパッケージが入っているはずなので,
2887 建国の父たちが意図したように,
2888 すべての段落が字下げされます.
2889 \end_layout
2890
2891 \begin_layout Subsubsection
2892 例4:
2893 この文書
2894 \end_layout
2895
2896 \begin_layout Standard
2897
2898 \family roman
2899 \series medium
2900 \shape up
2901 \size normal
2902 \emph off
2903 \bar no
2904 \noun off
2905 \color none
2906 この文書のプリアンブルを見てみると,
2907 どのような高度な設定ができるか,
2908 おおまかな理解が得られるでしょう.
2909 \end_layout
2910
2911 \begin_layout Section
2912 \SpecialChar LyX
2913 および\SpecialChar LaTeX
2914 のエラー
2915 \end_layout
2916
2917 \begin_layout Standard
2918
2919 \family roman
2920 \series medium
2921 \shape up
2922 \size normal
2923 \emph off
2924 \bar no
2925 \noun off
2926 \color none
2927 \SpecialChar LyX
2928 が\SpecialChar LaTeX
2929 を呼び出す際,
2930 \SpecialChar LyX
2931 は\SpecialChar LaTeX
2932 に,
2933 かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2934 は,
2935 \SpecialChar LaTeX
2936 の実行ログファイルを事後処理用に使います.ログファイルを分析したのち,
2937 \SpecialChar LyX
2938 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,
2939 \SpecialChar LyX
2940 ファイル中,
2941 そのエラーの発生した場所に表示を移動します
2942 \begin_inset Foot
2943 status collapsed
2944
2945 \begin_layout Plain Layout
2946
2947 \family roman
2948 \series medium
2949 \shape up
2950 \size normal
2951 \emph off
2952 \bar no
2953 \noun off
2954 \color none
2955 正確にいうと,
2956 通常は,
2957 です.ログファイルの分析は難しい仕事ですので,
2958 \SpecialChar LyX
2959 はつねに正しい行に連れて行ってくれるとは限りません.ときには,
2960 \SpecialChar LaTeX
2961 がある行にエラーがあると報告したとしても,
2962 実際のエラーはそれよりも前であることもあります.これは,
2963 プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,
2964 実際にエラーのある場所よりも後ろでエラーが報告されるのです.
2965 \end_layout
2966
2967 \end_inset
2968
2969
2970 \family default
2971 \series default
2972 \shape default
2973 \size default
2974 \emph default
2975 \bar default
2976 \noun default
2977 \color inherit
2978
2979 \end_layout
2980
2981 \begin_layout Standard
2982
2983 \family roman
2984 \series medium
2985 \shape up
2986 \size normal
2987 \emph off
2988 \bar no
2989 \noun off
2990 \color none
2991 人によっては,
2992 ログファイルを直接ご覧になりたいかもしれません.これは,
2993
2994 \begin_inset Flex MenuItem
2995 status collapsed
2996
2997 \begin_layout Plain Layout
2998
2999 \family roman
3000 \series medium
3001 \shape up
3002 \size normal
3003 \emph off
3004 \bar no
3005 \noun off
3006 \color none
3007 文書\SpecialChar menuseparator
3008 LaTeXログ
3009 \end_layout
3010
3011 \end_inset
3012
3013 で見ることができます.エラーメッセージや警告には,
3014 よく見かけるものがいくつかありますので,
3015 それらをここに収録しておきます.ここにないエラーや警告に関しては,
3016 La\SpecialChar TeX
3017 関連の良書を参照してください.
3018 \end_layout
3019
3020 \begin_layout Itemize
3021
3022 \family typewriter
3023 \begin_inset Flex Code
3024 status collapsed
3025
3026 \begin_layout Plain Layout
3027
3028 \family typewriter
3029 LaTeX Warning
3030 \end_layout
3031
3032 \end_inset
3033
3034
3035 \family roman
3036 \series medium
3037 \shape up
3038 \size normal
3039 \emph off
3040 \bar no
3041 \noun off
3042 \color none
3043
3044 \begin_inset Newline newline
3045 \end_inset
3046
3047 これで始まるメッセージは,
3048 \SpecialChar LaTeX
3049 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,
3050 もう一度\SpecialChar LaTeX
3051 を実行する必要があることを知らせるために,
3052 このようなメッセージが表示されます.このメッセージは,
3053 だいたいにおいて無視しても大丈夫です.
3054 \end_layout
3055
3056 \begin_layout Itemize
3057
3058 \family typewriter
3059 \begin_inset Flex Code
3060 status collapsed
3061
3062 \begin_layout Plain Layout
3063
3064 \family typewriter
3065 LaTeX Font Warning
3066 \end_layout
3067
3068 \end_inset
3069
3070
3071 \family roman
3072 \series medium
3073 \shape up
3074 \size normal
3075 \emph off
3076 \bar no
3077 \noun off
3078 \color none
3079
3080 \begin_inset Newline newline
3081 \end_inset
3082
3083 \SpecialChar LaTeX
3084 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,
3085 このメッセージの後に,
3086 \SpecialChar LaTeX
3087 が使用した代替フォントに関する情報が続きます.これも無視して構いません.
3088 \end_layout
3089
3090 \begin_layout Itemize
3091
3092 \family roman
3093 \series medium
3094 \shape up
3095 \size normal
3096 \emph off
3097 \bar no
3098 \noun off
3099 \color none
3100 \begin_inset Flex Code
3101 status collapsed
3102
3103 \begin_layout Plain Layout
3104
3105 \family typewriter
3106 Overfull 
3107 \backslash
3108 hbox
3109 \end_layout
3110
3111 \end_inset
3112
3113
3114 \begin_inset Newline newline
3115 \end_inset
3116
3117 \SpecialChar LaTeX
3118 は,
3119
3120 \family default
3121 \series default
3122 \shape default
3123 \size default
3124 \emph on
3125 \bar default
3126 \noun default
3127 \color inherit
3128 ほぼどんなときでも
3129 \family roman
3130 \series medium
3131 \shape up
3132 \size normal
3133 \emph off
3134 \bar no
3135 \noun off
3136 \color none
3137 この警告を吐き出します.どんな文書を書いたとしても,
3138 このメッセージは,
3139 少なくとも1つは出てくるようです.これは,
3140 一行が長すぎて右余白にはみ出してしまったという警告であり,
3141
3142 \family default
3143 \series default
3144 \shape default
3145 \size default
3146 \emph default
3147 \bar default
3148 \noun default
3149 \color inherit
3150 \SpecialChar LaTeX
3151
3152 \family roman
3153 \series medium
3154 \shape up
3155 \size normal
3156 \emph off
3157 \bar no
3158 \noun off
3159 \color none
3160 が適切な改行方法を見つけられなかった時に生じます(タイプライタ体では自動改行を許されないため頻発することが知られています).ほとんどの場合,
3161 最終出力を見ても判別できないくらい(せいぜい1ポイントか2ポイント)です.しかしながら,
3162 時には目に見えて余白にはみ出してしまうこともあるので,
3163 その場合には,
3164 最終出力では修正したいと思うことでしょう.
3165 \begin_inset Newline newline
3166 \end_inset
3167
3168 全体的にoverfull行の数をできるだけ少なくする方法はいくつかあります.
3169 \family sans
3170 \series default
3171 \shape default
3172 \size default
3173 \emph default
3174 \bar default
3175 \noun default
3176 \color inherit
3177 文書\SpecialChar menuseparator
3178 設定\SpecialChar menuseparator
3179 フォント
3180 \family roman
3181 \series medium
3182 \shape up
3183 \size normal
3184 \emph off
3185 \bar no
3186 \noun off
3187 \color none
3188
3189 \family sans
3190 \series default
3191 \shape default
3192 \size default
3193 \emph default
3194 \bar default
3195 \noun default
3196 \color inherit
3197 マイクロタイポグラフィ拡張を有効にする
3198 \family roman
3199 \series medium
3200 \shape up
3201 \size normal
3202 \emph off
3203 \bar no
3204 \noun off
3205 \color none
3206 をクリックすると,
3207 大幅な改善が見込めます.さらに,
3208
3209 \family sans
3210 \series default
3211 \shape default
3212 \size default
3213 \emph default
3214 \bar default
3215 \noun default
3216 \color inherit
3217 文書\SpecialChar menuseparator
3218 設定\SpecialChar menuseparator
3219 プリアンブル
3220 \family roman
3221 \series medium
3222 \shape up
3223 \size normal
3224 \emph off
3225 \bar no
3226 \noun off
3227 \color none
3228 に以下のような
3229 \family default
3230 \series default
3231 \shape default
3232 \size default
3233 \emph default
3234 \bar default
3235 \noun default
3236 \color inherit
3237 \SpecialChar LaTeX
3238
3239 \family roman
3240 \series medium
3241 \shape up
3242 \size normal
3243 \emph off
3244 \bar no
3245 \noun off
3246 \color none
3247 コードを書いても,
3248 overfull行の数は,
3249 通常,
3250 大幅に減少します(この文書のプリアンブルにも使用しています).
3251 \end_layout
3252
3253 \begin_deeper
3254 \begin_layout LyX-Code
3255
3256 \backslash
3257 tolerance 1414
3258 \begin_inset Newline newline
3259 \end_inset
3260
3261
3262 \backslash
3263 hbadness 1414
3264 \begin_inset Newline newline
3265 \end_inset
3266
3267
3268 \backslash
3269 emergencystretch 1.5em
3270 \begin_inset Newline newline
3271 \end_inset
3272
3273
3274 \backslash
3275 hfuzz 0.3pt
3276 \end_layout
3277
3278 \begin_layout Standard
3279 しかしながら,
3280 場合によっては,
3281 改行が正しく行われるように,
3282 文章そのものを書き換えなくてはならない場合もあります
3283 \begin_inset Foot
3284 status collapsed
3285
3286 \begin_layout Plain Layout
3287 詳細は,
3288
3289 \begin_inset Flex URL
3290 status open
3291
3292 \begin_layout Plain Layout
3293
3294 http://www.tex.ac.uk/FAQ-overfull.html
3295 \end_layout
3296
3297 \end_inset
3298
3299 を参照してください.
3300 \end_layout
3301
3302 \end_inset
3303
3304
3305 \end_layout
3306
3307 \begin_layout Standard
3308 何れにしても,
3309 少なくとも文書の完成版では,
3310 各行の確認を行うべきです.はみ出過ぎているものがあれば,
3311 目で見ればわかるでしょう
3312 \begin_inset Foot
3313 status collapsed
3314
3315 \begin_layout Plain Layout
3316
3317 \family sans
3318 文書\SpecialChar menuseparator
3319 設定
3320 \family default
3321 で「draft」オプションを有効にすることもできます.すると,
3322 overfull行の余白には,
3323 \SpecialChar LaTeX
3324 が黒い四角を描画してくれます.
3325 \end_layout
3326
3327 \end_inset
3328
3329
3330 \end_layout
3331
3332 \end_deeper
3333 \begin_layout Itemize
3334
3335 \family typewriter
3336 \begin_inset Flex Code
3337 status collapsed
3338
3339 \begin_layout Plain Layout
3340
3341 \family typewriter
3342 Underfull 
3343 \backslash
3344 hbox
3345 \end_layout
3346
3347 \end_inset
3348
3349
3350 \begin_inset Newline newline
3351 \end_inset
3352
3353
3354 \family roman
3355 \series medium
3356 \shape up
3357 \size normal
3358 \emph off
3359 \bar no
3360 \noun off
3361 \color none
3362 これは上の警告と違ってあまり出てきません.これも,
3363
3364 \family default
3365 \series default
3366 \shape default
3367 \size default
3368 \emph default
3369 \bar default
3370 \noun default
3371 \color inherit
3372 \SpecialChar LaTeX
3373
3374 \family roman
3375 \series medium
3376 \shape up
3377 \size normal
3378 \emph off
3379 \bar no
3380 \noun off
3381 \color none
3382 が適切な改行方法を見つけられずに,
3383 間延びした行を生成せざるを得なかった時に起こります.overfull行と同様,
3384 外見上の問題がないかどうか確認してください.
3385 \end_layout
3386
3387 \begin_layout Itemize
3388 \begin_inset Flex Code
3389 status collapsed
3390
3391 \begin_layout Plain Layout
3392
3393 \family typewriter
3394 Overfull 
3395 \backslash
3396 vbox
3397 \end_layout
3398
3399 \end_inset
3400
3401
3402 \family typewriter
3403
3404 \begin_inset Flex Code
3405 status collapsed
3406
3407 \begin_layout Plain Layout
3408
3409 \family typewriter
3410 Underfull 
3411 \backslash
3412 vbox
3413 \end_layout
3414
3415 \end_inset
3416
3417
3418 \family default
3419
3420 \begin_inset Newline newline
3421 \end_inset
3422
3423
3424 \family roman
3425 \series medium
3426 \shape up
3427 \size normal
3428 \emph off
3429 \bar no
3430 \noun off
3431 \color none
3432 ページ区切りに問題があったという警告です.この場合も,
3433 出力を目で確認してください.何か問題があれば,
3434 見てすぐわかります.
3435 \end_layout
3436
3437 \begin_layout Itemize
3438
3439 \family typewriter
3440 \begin_inset Flex Code
3441 status collapsed
3442
3443 \begin_layout Plain Layout
3444
3445 \family typewriter
3446 LaTeX Error:
3447  File 
3448 \begin_inset Quotes els
3449 \end_inset
3450
3451 Xxxx
3452 \begin_inset Quotes ers
3453 \end_inset
3454
3455  not found
3456 \end_layout
3457
3458 \end_inset
3459
3460
3461 \family roman
3462 \series medium
3463 \shape up
3464 \size normal
3465 \emph off
3466 \bar no
3467 \noun off
3468 \color none
3469
3470 \begin_inset Newline newline
3471 \end_inset
3472
3473 ファイル「Xxxx」が,
3474 システムに導入されていません.これは通常,
3475 文書が必要としている\SpecialChar LaTeX
3476 パッケージに,
3477 導入済でないものがある場合に現れます.プリアンブルに変更を加えておらず,
3478
3479 \begin_inset Flex Code
3480 status collapsed
3481
3482 \begin_layout Plain Layout
3483
3484 \family typewriter
3485
3486 \backslash
3487 usepackage{}
3488 \end_layout
3489
3490 \end_inset
3491
3492 コマンドも使用していないとすれば,
3493 \SpecialChar LyX
3494 が読み込もうしているパッケージに存在しないものがあるということです.
3495 \family default
3496 \series default
3497 \shape default
3498 \size default
3499 \emph default
3500 \bar default
3501 \noun default
3502 \color inherit
3503
3504 \begin_inset Flex MenuItem
3505 status collapsed
3506
3507 \begin_layout Plain Layout
3508 ヘルプ\SpecialChar menuseparator
3509 \SpecialChar LaTeX
3510 の設定
3511 \end_layout
3512
3513 \end_inset
3514
3515
3516 \family roman
3517 \series medium
3518 \shape up
3519 \size normal
3520 \emph off
3521 \bar no
3522 \noun off
3523 \color none
3524 を使用して,
3525 \SpecialChar LyX
3526 が認識しているパッケージの一覧を得てください.このファイルは,
3527
3528 \begin_inset Flex MenuItem
3529 status collapsed
3530
3531 \begin_layout Plain Layout
3532
3533 \family roman
3534 \series medium
3535 \shape up
3536 \size normal
3537 \emph off
3538 \bar no
3539 \noun off
3540 \color none
3541 ツール\SpecialChar menuseparator
3542 再設定
3543 \end_layout
3544
3545 \end_inset
3546
3547 を使用して)\SpecialChar LyX
3548 の再設定を行うたびに更新され,
3549 どのパッケージが検出されたか,
3550 それらのパッケージが何をするものかを表示します.
3551 \begin_inset Newline newline
3552 \end_inset
3553
3554
3555 \family sans
3556 \series default
3557 \shape default
3558 \size default
3559 \emph default
3560 \bar default
3561 \noun default
3562 \color inherit
3563
3564 \begin_inset Flex Code
3565 status collapsed
3566
3567 \begin_layout Plain Layout
3568
3569 \family sans
3570
3571 \backslash
3572 usepackage{}
3573 \end_layout
3574
3575 \end_inset
3576
3577
3578 \family roman
3579 \series medium
3580 \shape up
3581 \size normal
3582 \emph off
3583 \bar no
3584 \noun off
3585 \color none
3586 コマンドを使っていて,
3587 肝心のパッケージが導入されていない場合には,
3588 ご自身で導入する必要があります.
3589 \end_layout
3590
3591 \begin_layout Itemize
3592
3593 \family typewriter
3594 \begin_inset Flex Code
3595 status collapsed
3596
3597 \begin_layout Plain Layout
3598
3599 \family typewriter
3600 LaTeX Error:
3601  Unknown option
3602 \end_layout
3603
3604 \end_inset
3605
3606
3607 \family roman
3608 \series medium
3609 \shape up
3610 \size normal
3611 \emph off
3612 \bar no
3613 \noun off
3614 \color none
3615
3616 \begin_inset Newline newline
3617 \end_inset
3618
3619 このように始まるエラーメッセージは,
3620 パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認ください.
3621 \end_layout
3622
3623 \begin_layout Itemize
3624
3625 \family typewriter
3626 \begin_inset Flex Code
3627 status collapsed
3628
3629 \begin_layout Plain Layout
3630
3631 \family typewriter
3632 Undefined control sequence
3633 \end_layout
3634
3635 \end_inset
3636
3637
3638 \family roman
3639 \series medium
3640 \shape up
3641 \size normal
3642 \emph off
3643 \bar no
3644 \noun off
3645 \color none
3646
3647 \begin_inset Newline newline
3648 \end_inset
3649
3650 お使いの文書に\SpecialChar LaTeX
3651 コードを挿入した際,
3652 打ち間違いをしてしまうと,
3653 このようなメッセージが表示されます.あるいは,
3654 パッケージを読み込ませるのを忘れたのかもしれません.いずれにしても,
3655 このメッセージは,
3656 あなたが未定義のコマンドを使用したことを示しています.
3657 \end_layout
3658
3659 \begin_layout Standard
3660
3661 \family roman
3662 \series medium
3663 \shape up
3664 \size normal
3665 \emph off
3666 \bar no
3667 \noun off
3668 \color none
3669 これ以外にも,
3670 エラーメッセージや警告メッセージがあります.一般に,
3671 読んで意味がすぐにわかるものは,
3672 \SpecialChar LaTeX
3673 のメッセージです.何を言っているのかさっぱりわからないものもありますが,
3674 通常これらは,
3675 \SpecialChar TeX
3676 のメッセージであり,
3677 それが何を意味しているのか,
3678 どのように解読すればいいのか,
3679
3680 \family default
3681 \series default
3682 \shape default
3683 \size default
3684 \emph on
3685 \bar default
3686 \noun default
3687 \color inherit
3688 まったく
3689 \family roman
3690 \series medium
3691 \shape up
3692 \size normal
3693 \emph off
3694 \bar no
3695 \noun off
3696 \color none
3697 手がかりがありません.誰もわからないのです.
3698 \end_layout
3699
3700 \begin_layout Standard
3701
3702 \family roman
3703 \series medium
3704 \shape up
3705 \size normal
3706 \emph off
3707 \bar no
3708 \noun off
3709 \color none
3710 エラーメッセージが表示された場合は,
3711 つねに以下のチェックリストにしたがった方がよいでしょう.
3712 \end_layout
3713
3714 \begin_layout Enumerate
3715
3716 \family roman
3717 \series medium
3718 \shape up
3719 \size normal
3720 \emph off
3721 \bar no
3722 \noun off
3723 \color none
3724 ご自分で挿入した\SpecialChar LaTeX
3725 コードに打ち間違いがないかどうか確かめる.
3726 \end_layout
3727
3728 \begin_layout Enumerate
3729
3730 \family roman
3731 \series medium
3732 \shape up
3733 \size normal
3734 \emph off
3735 \bar no
3736 \noun off
3737 \color none
3738 打ち間違いがなければ,
3739 コマンドを正しく使ったかどうか確かめる.
3740 \end_layout
3741
3742 \begin_layout Enumerate
3743
3744 \family roman
3745 \series medium
3746 \shape up
3747 \size normal
3748 \emph off
3749 \bar no
3750 \noun off
3751 \color none
3752 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—
3753 特に
3754 \begin_inset Flex Code
3755 status collapsed
3756
3757 \begin_layout Plain Layout
3758
3759 \family roman
3760 \series medium
3761 \shape up
3762 \size normal
3763 \emph off
3764 \bar no
3765 \noun off
3766 \color none
3767 Missing 
3768 \backslash
3769 begin{document}
3770 \end_layout
3771
3772 \end_inset
3773
3774 が表示されているならば—
3775
3776 プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3777 \end_layout
3778
3779 \begin_layout Enumerate
3780
3781 \family roman
3782 \series medium
3783 \shape up
3784 \size normal
3785 \emph off
3786 \bar no
3787 \noun off
3788 \color none
3789 プリアンブルに何も追加せず,
3790 文書に\SpecialChar LaTeX
3791 コードをまったく挿入しなかった場合には,
3792 \SpecialChar LaTeX
3793 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,
3794 導入してください.
3795 \end_layout
3796
3797 \begin_layout Enumerate
3798
3799 \family roman
3800 \series medium
3801 \shape up
3802 \size normal
3803 \emph off
3804 \bar no
3805 \noun off
3806 \color none
3807 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3808 を微調整するオプションを使用していますか.特に,
3809 手動で
3810 \begin_inset Flex Code
3811 status collapsed
3812
3813 \begin_layout Plain Layout
3814
3815 \family sans
3816 非改行空白
3817 \end_layout
3818
3819 \end_inset
3820
3821
3822 \begin_inset Flex Code
3823 status collapsed
3824
3825 \begin_layout Plain Layout
3826
3827 \family sans
3828 改行
3829 \end_layout
3830
3831 \end_inset
3832
3833
3834
3835 \family sans
3836 \series default
3837 \shape default
3838 \size default
3839 \emph default
3840 \bar default
3841 \noun default
3842 \color inherit
3843
3844 \begin_inset Flex Code
3845 status collapsed
3846
3847 \begin_layout Plain Layout
3848
3849 \family sans
3850 改頁
3851 \end_layout
3852
3853 \end_inset
3854
3855
3856 \family roman
3857 \series medium
3858 \shape up
3859 \size normal
3860 \emph off
3861 \bar no
3862 \noun off
3863 \color none
3864 などをたくさん挿入するなど,
3865 微調整オプションを
3866 \begin_inset Flex 圏点
3867 status open
3868
3869 \begin_layout Plain Layout
3870 悪用
3871 \end_layout
3872
3873 \end_inset
3874
3875 していませんか.適切な段落環境を使用する代わりに,
3876 これらを使用してその場をしのごうとしていませんか.
3877 \end_layout
3878
3879 \begin_layout Enumerate
3880
3881 \family roman
3882 \series medium
3883 \shape up
3884 \size normal
3885 \emph off
3886 \bar no
3887 \noun off
3888 \color none
3889 微調整オプションはまったく使用しておらず,
3890 規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,
3891 たとえば表のセルに図を入れるなど,
3892 おかしなことをしようとしていませんか.
3893 \end_layout
3894
3895 \begin_layout Enumerate
3896 \SpecialChar LaTeX
3897 が改行位置を見つけられないほど長い一節がありませんか.既定では,
3898 改行するために単語間に空白をたくさん追加することを,
3899 \SpecialChar LaTeX
3900 はかなり嫌います.可能であれば,
3901 問題が生じないように段落を修正するのが望ましいでしょう.
3902 \end_layout
3903
3904 \begin_layout Enumerate
3905
3906 \family roman
3907 \series medium
3908 \shape up
3909 \size normal
3910 \emph off
3911 \bar no
3912 \noun off
3913 \color none
3914 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3915 は,
3916 (今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,
3917 環境を17段の入れ子にしたりしていたら,
3918 それが原因です(\SpecialChar LaTeX
3919 の上限は5段です).
3920 \end_layout
3921
3922 \begin_layout Enumerate
3923
3924 \family roman
3925 \series medium
3926 \shape up
3927 \size normal
3928 \emph off
3929 \bar no
3930 \noun off
3931 \color none
3932 エラーメッセージは発生しないけれども,
3933 出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3934
3935 \end_layout
3936
3937 \begin_deeper
3938 \begin_layout Enumerate
3939
3940 \family roman
3941 \series medium
3942 \shape up
3943 \size normal
3944 \emph off
3945 \bar no
3946 \noun off
3947 \color none
3948 図がページに合うように大きさを変える,
3949
3950 \end_layout
3951
3952 \begin_layout Enumerate
3953
3954 \family roman
3955 \series medium
3956 \shape up
3957 \size normal
3958 \emph off
3959 \bar no
3960 \noun off
3961 \color none
3962 表がページに合うように削る,
3963
3964 \end_layout
3965
3966 \begin_layout Standard
3967
3968 \family roman
3969 \series medium
3970 \shape up
3971 \size normal
3972 \emph off
3973 \bar no
3974 \noun off
3975 \color none
3976 などの手段を採る必要があります.
3977 \end_layout
3978
3979 \end_deeper
3980 \begin_layout Enumerate
3981 他に出力におかしいところがあり,
3982 曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,
3983 何がおかしいのか確定的なことは言えません.
3984 \end_layout
3985
3986 \begin_layout Standard
3987
3988 \family roman
3989 \series medium
3990 \shape up
3991 \size normal
3992 \emph off
3993 \bar no
3994 \noun off
3995 \color none
3996 これらすべてが役に立たないとすれば,
3997
3998 \family default
3999 \series default
4000 \shape default
4001 \size default
4002 \emph on
4003 \bar default
4004 \noun default
4005 \color inherit
4006 ひょっとしたら
4007 \family roman
4008 \series medium
4009 \shape up
4010 \size normal
4011 \emph off
4012 \bar no
4013 \noun off
4014 \color none
4015 \SpecialChar LyX
4016 のバグを発見したのかもしれません‥‥.
4017 \end_layout
4018
4019 \begin_layout Chapter
4020 文書クラス
4021 \end_layout
4022
4023 \begin_layout Standard
4024 『ユーザーの手引き』で解説したとおり,
4025 \SpecialChar LaTeX
4026 はもともとarticleとreport,
4027 bookおよびletterの4つの標準文書クラスを提供していましたが,
4028 個人や組織,
4029 なかでも初期においては米国数学会が,
4030 文書クラスの幅の拡張に貢献してきました.本章では,
4031 外部的にメンテナンスされている主要なクラスについて,
4032 簡単に説明します.
4033 \family sans
4034 \series bold
4035 文書\SpecialChar menuseparator
4036 設定\SpecialChar menuseparator
4037 文書クラス
4038 \family default
4039 \series default
4040
4041 \begin_inset space \thinspace{}
4042 \end_inset
4043
4044 ダイアログの
4045 \family sans
4046 \series bold
4047 文書クラス
4048 \family default
4049 \series default
4050 プルダウンの一覧に「利用不能:
4051 」とマークされているものがありますが,
4052 これらを使用するためには,
4053 取扱説明書『カスタマイズ篇』の「文書クラスを新規に導入する」の章にある説明にしたがって導入する必要があります.
4054 \end_layout
4055
4056 \begin_layout Section
4057 コレクション
4058 \begin_inset CommandInset label
4059 LatexCommand label
4060 name "sec:コレクション"
4061
4062 \end_inset
4063
4064
4065 \end_layout
4066
4067 \begin_layout Subsection
4068 AMS \SpecialChar LaTeX
4069 (米国数学会)
4070 \begin_inset CommandInset label
4071 LatexCommand label
4072 name "subsec:AMS-LaTeX"
4073
4074 \end_inset
4075
4076
4077 \end_layout
4078
4079 \begin_layout Standard
4080 \SpecialChar LyX
4081 がサポートする文書クラス
4082 \family sans
4083 article (AMS)
4084 \family default
4085
4086 \family sans
4087 book (AMS)
4088 \family default
4089 は,
4090 学会によってメンテナンスされています.これらの機能の使用法については,
4091 数式篇説明書と,
4092 学会ウェブサイト
4093 \begin_inset Flex URL
4094 status collapsed
4095
4096 \begin_layout Plain Layout
4097
4098 http://www.ams.org/publications/authors/tex/amslatex
4099 \end_layout
4100
4101 \end_inset
4102
4103 に説明があります.以下の要約は,
4104 当初
4105 \noun on
4106 David Johnson
4107 \noun default
4108 によって提供され,
4109
4110 \noun on
4111 Richard Kimberly Heck
4112 \noun default
4113 と\SpecialChar LyX
4114 チームが改訂したものです.
4115 \begin_inset VSpace bigskip
4116 \end_inset
4117
4118
4119 \end_layout
4120
4121 \begin_layout Standard
4122 AMS \SpecialChar LaTeX
4123 レイアウトは,
4124 American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,
4125 特定の学術誌向けに仕立てられてはいませんが,
4126 簡単にそうすることができます.各学術誌毎の指示については,
4127 AMSの説明書をご参照ください(通常は,
4128 \SpecialChar TeX
4129 出力中の一行を変更する必要があるだけです).AMSの説明書は,
4130 ウェブWeb上の
4131 \begin_inset Flex URL
4132 status open
4133
4134 \begin_layout Plain Layout
4135
4136 http://www.ams.org
4137 \end_layout
4138
4139 \end_inset
4140
4141 か,
4142 FTPで
4143 \begin_inset Flex URL
4144 status open
4145
4146 \begin_layout Plain Layout
4147
4148 ftp://ftp.ams.org/pub/tex/amslatex/
4149 \end_layout
4150
4151 \end_inset
4152
4153 から入手することができます.これらのレイアウトは,
4154 数学的な文章を書くのであれば,
4155 どんなときでも適切かつ有用であるはずです.
4156 \end_layout
4157
4158 \begin_layout Standard
4159 基本となるAMS \SpecialChar LaTeX
4160 レイアウトには,
4161 以下の三つがあります.
4162 \end_layout
4163
4164 \begin_layout Itemize
4165 amsart:
4166 標準AMS article書式.
4167 \family sans
4168 \series bold
4169 ファイル\SpecialChar menuseparator
4170 用例を開く\SpecialChar menuseparator
4171 論文\SpecialChar menuseparator
4172
4173 \series default
4174 American Mathematical Society (AMS)
4175 \family default
4176 を参照.
4177 \end_layout
4178
4179 \begin_layout Itemize
4180 amsbook:
4181 標準AMS book(実際はモノグラフ)書式.
4182 \family sans
4183 \series bold
4184 ファイル\SpecialChar menuseparator
4185 用例を開く\SpecialChar menuseparator
4186 書籍\SpecialChar menuseparator
4187
4188 \series default
4189 American Mathematical Society (AMS)
4190 \family default
4191 を参照.
4192 \end_layout
4193
4194 \begin_layout Itemize
4195 amsproc:
4196 標準AMS学会報書式.
4197 \end_layout
4198
4199 \begin_layout Standard
4200 \SpecialChar LyX
4201 は,
4202 これらの最初の2つをネイティブにサポートしています.
4203 \family sans
4204 amsproc
4205 \family default
4206 を利用したい場合には,
4207 取扱説明書『カスタマイズ篇』の「文書クラスを新規に導入する」の章を参照してください.
4208 \end_layout
4209
4210 \begin_layout Standard
4211 これらのレイアウトには,
4212 それ自身では,
4213 AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,
4214 定理や補題などを設定するのに使用される「theorem」環境は,
4215 何一つ含まれていません.これらは,
4216 代わりに
4217 \begin_inset Flex Code
4218 status collapsed
4219
4220 \begin_layout Plain Layout
4221 AMS定理
4222 \end_layout
4223
4224 \end_inset
4225
4226 モジュールに収録されており,
4227 AMSクラスのいずれかを選択すると,
4228 このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,
4229 別のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
4230
4231 \begin_inset Flex Code
4232 status collapsed
4233
4234 \begin_layout Plain Layout
4235 AMS定理(拡張)
4236 \end_layout
4237
4238 \end_inset
4239
4240 モジュールがあり,
4241 これは手動で読み込む必要があります.
4242 \end_layout
4243
4244 \begin_layout Standard
4245 既定では,
4246 定理類は,
4247 文書を通して連番が振られますが,
4248 これは
4249 \begin_inset Flex Code
4250 status collapsed
4251
4252 \begin_layout Plain Layout
4253 標準定理(節毎連番)
4254 \end_layout
4255
4256 \end_inset
4257
4258 モジュールを読み込めば変更することができ,
4259
4260 \begin_inset Flex Code
4261 status collapsed
4262
4263 \begin_layout Plain Layout
4264 book (AMS)
4265 \end_layout
4266
4267 \end_inset
4268
4269 を使用している場合には
4270 \begin_inset Flex Code
4271 status collapsed
4272
4273 \begin_layout Plain Layout
4274 標準定理(章毎連番)
4275 \end_layout
4276
4277 \end_inset
4278
4279 を用いても変更することができます.これらを用いると,
4280 出力は
4281 \begin_inset Formula $n.m$
4282 \end_inset
4283
4284 のようになり,
4285 最初の数字は節番号(または章番号),
4286 次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,
4287 連番なしでも用いることができます.連番なしのものは,
4288 環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
4289 \emph on
4290 のみ
4291 \emph default
4292 が欲しい場合には,
4293
4294 \begin_inset Flex Code
4295 status collapsed
4296
4297 \begin_layout Plain Layout
4298 標準定理(連番なし)
4299 \end_layout
4300
4301 \end_inset
4302
4303 モジュールを用います.
4304 \end_layout
4305
4306 \begin_layout Standard
4307 これらのモジュールは,
4308 AMSクラスで使用する
4309 \emph on
4310 必要はない
4311 \emph default
4312 ことに注意してください.
4313 \begin_inset Flex Code
4314 status collapsed
4315
4316 \begin_layout Plain Layout
4317 AMS定理
4318 \end_layout
4319
4320 \end_inset
4321
4322 モジュールや上述の他のモジュールは,
4323 他のクラス,
4324 たとえば
4325 \begin_inset Flex Code
4326 status collapsed
4327
4328 \begin_layout Plain Layout
4329 Article (標準クラス)
4330 \end_layout
4331
4332 \end_inset
4333
4334
4335 \begin_inset Flex Code
4336 status collapsed
4337
4338 \begin_layout Plain Layout
4339 Report (標準クラス)
4340 \end_layout
4341
4342 \end_inset
4343
4344
4345 \begin_inset Flex Code
4346 status collapsed
4347
4348 \begin_layout Plain Layout
4349 KOMA-script Book
4350 \end_layout
4351
4352 \end_inset
4353
4354 などで問題なく使用することができます.
4355 \end_layout
4356
4357 \begin_layout Subsubsection
4358 これらのレイアウトが提供するもの
4359 \end_layout
4360
4361 \begin_layout Standard
4362 これらのレイアウトが提供している環境を列挙すると,
4363 長い一覧となります.AMS-\SpecialChar LaTeX
4364 では,
4365 実のところ,
4366 「theorem」環境の派生型を際限なく定義していくことが可能です.しかし,
4367 AMSは,
4368 \SpecialChar LyX
4369 で利用可能になっている環境のみを使用することを推奨しています.
4370 \end_layout
4371
4372 \begin_layout Standard
4373 \begin_inset Flex Code
4374 status collapsed
4375
4376 \begin_layout Plain Layout
4377 article (AMS)
4378 \end_layout
4379
4380 \end_inset
4381
4382
4383 \begin_inset Flex Code
4384 status collapsed
4385
4386 \begin_layout Plain Layout
4387 book (AMS)
4388 \end_layout
4389
4390 \end_inset
4391
4392 には,
4393
4394
4395
4396 \begin_inset space ~
4397 \end_inset
4398
4399
4400 \begin_inset Flex Noun
4401 status collapsed
4402
4403 \begin_layout Plain Layout
4404
4405 \end_layout
4406
4407 \end_inset
4408
4409
4410 \begin_inset Flex Noun
4411 status collapsed
4412
4413 \begin_layout Plain Layout
4414 書誌情報
4415 \end_layout
4416
4417 \end_inset
4418
4419
4420 \begin_inset Flex Noun
4421 status collapsed
4422
4423 \begin_layout Plain Layout
4424 タイトル
4425 \end_layout
4426
4427 \end_inset
4428
4429
4430 \begin_inset Flex Noun
4431 status collapsed
4432
4433 \begin_layout Plain Layout
4434 著者
4435 \end_layout
4436
4437 \end_inset
4438
4439
4440 \begin_inset Flex Noun
4441 status collapsed
4442
4443 \begin_layout Plain Layout
4444 日付
4445 \end_layout
4446
4447 \end_inset
4448
4449 のような標準環境の他に
4450 \begin_inset space ~
4451 \end_inset
4452
4453
4454
4455
4456 \begin_inset space ~
4457 \end_inset
4458
4459 以下の環境があります.
4460 \end_layout
4461
4462 \begin_layout Description
4463 住所 これは著者の恒久的な住所です.
4464 \end_layout
4465
4466 \begin_layout Description
4467 現在の住所 住所と別に指定されているときには,
4468 著者の投稿時の仮初めの住所です.
4469 \end_layout
4470
4471 \begin_layout Description
4472 電子メール 著者の電子メールアドレス
4473 \end_layout
4474
4475 \begin_layout Description
4476 URL 著者のウェブアドレス.任意.
4477 \end_layout
4478
4479 \begin_layout Description
4480 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
4481 \end_layout
4482
4483 \begin_layout Description
4484 分野分類 
4485 \emph on
4486 Mathematical Reviews
4487 \emph default
4488 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,
4489 オンラインで見ることができます.
4490 \end_layout
4491
4492 \begin_layout Description
4493 謝辞
4494 \end_layout
4495
4496 \begin_layout Description
4497 献呈
4498 \end_layout
4499
4500 \begin_layout Description
4501 翻訳者
4502 \end_layout
4503
4504 \begin_layout Standard
4505 以下の環境は,
4506
4507 \begin_inset Flex Code
4508 status collapsed
4509
4510 \begin_layout Plain Layout
4511 標準定理
4512 \end_layout
4513
4514 \end_inset
4515
4516 モジュールと
4517 \begin_inset Flex Code
4518 status collapsed
4519
4520 \begin_layout Plain Layout
4521 AMS定理
4522 \end_layout
4523
4524 \end_inset
4525
4526 モジュールの両方で提供され,
4527 後者の場合には,
4528 星付き(連番なし)版と星なし(連番)版の両方が提供されます.
4529 \begin_inset Flex Code
4530 status collapsed
4531
4532 \begin_layout Plain Layout
4533 標準定理(連番なし)
4534 \end_layout
4535
4536 \end_inset
4537
4538 モジュールでは,
4539 同環境の星付き版だけが提供されます.
4540 \end_layout
4541
4542 \begin_layout Theorem
4543 これは,
4544 通常,
4545 得られた主要な結果を叙述するのに使用されます.
4546 \end_layout
4547
4548 \begin_layout Corollary*
4549 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
4550 \end_layout
4551
4552 \begin_layout Lemma
4553 他の叙述を証明するために必要とされる,
4554 比較的小さな結果です.
4555 \end_layout
4556
4557 \begin_layout Proposition
4558 議論されている一般的な理論に(希望的には)何かを付け加えるような,
4559 主要ではない結果です.
4560 \end_layout
4561
4562 \begin_layout Conjecture
4563 正当化を与えずに述べられた叙述で,
4564 著者には証明法がわからないけれども,
4565 正しいと(少なくとも著者にとっては)思われるものです.
4566 \end_layout
4567
4568 \begin_layout Definition*
4569 これは自明でしょう.この環境のフォントは,
4570 前述の環境とは異なるフォントが使用されます.
4571 \end_layout
4572
4573 \begin_layout Example*
4574 証明された結果の例を叙述するのに使用されます.
4575 \end_layout
4576
4577 \begin_layout Problem
4578 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
4579 \end_layout
4580
4581 \begin_layout Exercise*
4582 この環境の説明を記述せよ.
4583 \end_layout
4584
4585 \begin_layout Note
4586 この環境もtheorem型,
4587 通常は重要性の低い所見に用いられます.
4588 \end_layout
4589
4590 \begin_layout Claim*
4591 より大きな結果の証明を与える途中で,
4592 しばしば用いられます.
4593 \end_layout
4594
4595 \begin_layout Case
4596 一般的に,
4597 これらはある条件の特定の場合を取り上げて,
4598 長い議論を区切るのに用いられます.
4599 \end_layout
4600
4601 \begin_layout Case
4602 ケースの連番の枠組みは,
4603 それ自身で独立していて,
4604 他の連番の叙述とは区別されます.
4605 \end_layout
4606
4607 \begin_layout Proof
4608 この環境の最後には,
4609 証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい—
4610
4611 たとえばケース環境など—
4612
4613 場合で,
4614 証了記号は証明環境の終わりにのみ現れるようにしたい場合には,
4615 他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
4616 ユーザーの手引きの
4617 \emph on
4618 環境を入れ子にする
4619 \emph default
4620 の節をご覧ください.
4621 \end_layout
4622
4623 \begin_layout Fact
4624 命題と同様の用いられ方をしますが,
4625 だいたい長くないものに使われるようです.
4626 \end_layout
4627
4628 \begin_layout Standard
4629 そして,
4630 以下は
4631 \begin_inset Flex Code
4632 status collapsed
4633
4634 \begin_layout Plain Layout
4635 AMS定理(拡張)
4636 \end_layout
4637
4638 \end_inset
4639
4640 で提供されるものです.
4641 \end_layout
4642
4643 \begin_layout Criterion*
4644 必要とされる条件です.
4645 \end_layout
4646
4647 \begin_layout Algorithm*
4648 使用する一般的手順です.
4649 \end_layout
4650
4651 \begin_layout Axiom*
4652 議論されている系内部で真と仮定される性質や命題です.
4653 \end_layout
4654
4655 \begin_layout Condition*
4656 議論の現在の文脈で仮定されている条件を述べるのに,
4657 よく用いられます.
4658 \end_layout
4659
4660 \begin_layout Note*
4661 注記と同様です.
4662 \end_layout
4663
4664 \begin_layout Notation*
4665 表記法の説明に用いられます.
4666 \end_layout
4667
4668 \begin_layout Summary
4669 本当に説明する必要がありますか?
4670
4671 \end_layout
4672
4673 \begin_layout Acknowledgement*
4674 謝辞(acknowledgement)です.
4675 \end_layout
4676
4677 \begin_layout Conclusion*
4678 長い議論の終わりに時々用いられます.
4679 \end_layout
4680
4681 \begin_layout Assumption*
4682 仮定
4683 \end_layout
4684
4685 \begin_layout Question*
4686 問い
4687 \end_layout
4688
4689 \begin_layout Standard
4690 数式モジュールには,
4691
4692 \family sans
4693 (\SpecialChar ldots
4694 種類別連番)
4695 \family default
4696 の形のオプションで提供されているものを含み,
4697 他に10個のモジュールがあります.
4698 \end_layout
4699
4700 \begin_layout Standard
4701 さらに,
4702 AMSクラスは,
4703 AMS \SpecialChar LaTeX
4704 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,
4705 お使いのシステム上で利用可能となっている必要があります.
4706 \end_layout
4707
4708 \begin_layout Subsection
4709 追加フォント寸法
4710 \begin_inset CommandInset label
4711 LatexCommand label
4712 name "subsec:追加フォント寸法"
4713
4714 \end_inset
4715
4716
4717 \end_layout
4718
4719 \begin_layout Standard
4720 「追加フォント寸法」コレクションは,
4721
4722 \family sans
4723 Article
4724 \begin_inset space \thinspace{}
4725 \end_inset
4726
4727 (
4728 \series bold
4729 フォント寸法を追加した標準クラス
4730 \series default
4731 )
4732 \family default
4733
4734 \family sans
4735 Book
4736 \begin_inset space \thinspace{}
4737 \end_inset
4738
4739 (
4740 \series bold
4741 フォント寸法を追加した標準クラス
4742 \series default
4743 )
4744 \family default
4745
4746
4747 \family sans
4748 Letter
4749 \begin_inset space \thinspace{}
4750 \end_inset
4751
4752 (
4753 \series bold
4754 フォント寸法を追加した標準クラス
4755 \series default
4756 )
4757 \family default
4758
4759
4760 \family sans
4761 Report
4762 \begin_inset space \thinspace{}
4763 \end_inset
4764
4765 (
4766 \series bold
4767 フォント寸法を追加した標準クラス
4768 \series default
4769 )
4770 \family default
4771 の各文書クラスを提供しています.これらは,
4772 それぞれ
4773 \family typewriter
4774 article.cls
4775 \family default
4776 および 
4777 \family typewriter
4778 book.cls
4779 \family default
4780
4781
4782 \family typewriter
4783 letter.cls
4784 \family default
4785
4786
4787 \family typewriter
4788 report.cls
4789 \family default
4790 の各文書クラスを使用しますが,
4791
4792 \family sans
4793 \series bold
4794 文書\SpecialChar menuseparator
4795 設定\SpecialChar menuseparator
4796 フォント
4797 \series default
4798
4799 \begin_inset space \thinspace{}
4800 \end_inset
4801
4802
4803 \family default
4804 ダイアログにある
4805 \family sans
4806 \series bold
4807 基本寸法
4808 \family default
4809 \series default
4810 の選択肢として8・9・14・17・20が追加されます.
4811 \end_layout
4812
4813 \begin_layout Subsection
4814 ヘブライ語
4815 \end_layout
4816
4817 \begin_layout Standard
4818 文書クラスの
4819 \family sans
4820 \series bold
4821 ヘブライ語
4822 \series default
4823 Article
4824 \family default
4825
4826 \family sans
4827 \series bold
4828 ヘブライ語
4829 \series default
4830 Letter
4831 \family default
4832 は,
4833
4834 \family sans
4835 article.cls
4836 \family default
4837
4838 \family sans
4839 letter.cls
4840 \family default
4841 文書クラスを用いて,
4842 \SpecialChar LyX
4843 でヘブライ語の利用を可能とします.
4844 \end_layout
4845
4846 \begin_layout Subsection
4847 日本語
4848 \begin_inset CommandInset label
4849 LatexCommand label
4850 name "subsec:日本語"
4851
4852 \end_inset
4853
4854
4855 \end_layout
4856
4857 \begin_layout Standard
4858 文書クラスの
4859 \family sans
4860 \series bold
4861 日本語
4862 \series default
4863 Article
4864 \begin_inset space \thinspace{}
4865 \end_inset
4866
4867 (BXJS
4868 \series bold
4869 クラス
4870 \series default
4871 )
4872 \family default
4873 および
4874 \family sans
4875 \series bold
4876 日本語
4877 \series default
4878 Article
4879 \begin_inset space \thinspace{}
4880 \end_inset
4881
4882 (JS
4883 \series bold
4884 クラス
4885 \series default
4886 )
4887 \family default
4888
4889
4890 \family sans
4891 \series bold
4892 日本語
4893 \series default
4894 Article
4895 \begin_inset space \thinspace{}
4896 \end_inset
4897
4898 (
4899 \series bold
4900 標準クラス:
4901 縦書き
4902 \series default
4903 )
4904 \family default
4905
4906
4907 \family sans
4908 \series bold
4909 日本語
4910 \series default
4911 Article
4912 \begin_inset space \thinspace{}
4913 \end_inset
4914
4915 (
4916 \series bold
4917 標準クラス
4918 \series default
4919 )
4920 \family default
4921
4922
4923 \family sans
4924 \series bold
4925 日本語
4926 \series default
4927 Book
4928 \begin_inset space \thinspace{}
4929 \end_inset
4930
4931 (BXJS
4932 \series bold
4933 クラス
4934 \series default
4935 )
4936 \family default
4937
4938
4939 \family sans
4940 \series bold
4941 日本語
4942 \series default
4943 Book
4944 \begin_inset space \thinspace{}
4945 \end_inset
4946
4947 (JS
4948 \series bold
4949 クラス
4950 \series default
4951 )
4952 \family default
4953
4954
4955 \family sans
4956 \series bold
4957 日本語
4958 \series default
4959 Book
4960 \begin_inset space \thinspace{}
4961 \end_inset
4962
4963 (
4964 \series bold
4965 標準クラス:
4966 縦書き
4967 \series default
4968 )
4969 \family default
4970
4971
4972 \family sans
4973 \series bold
4974 日本語
4975 \series default
4976 Book
4977 \begin_inset space \thinspace{}
4978 \end_inset
4979
4980 (
4981 \series bold
4982 標準クラス
4983 \series default
4984 )
4985 \family default
4986
4987
4988 \family sans
4989 \series bold
4990 日本語
4991 \series default
4992 Report
4993 \begin_inset space \thinspace{}
4994 \end_inset
4995
4996 (
4997 \series bold
4998 標準クラス:
4999 縦書き
5000 \series default
5001 )
5002 \family default
5003
5004
5005 \family sans
5006 \series bold
5007 日本語
5008 \series default
5009 Report
5010 \begin_inset space \thinspace{}
5011 \end_inset
5012
5013 (
5014 \series bold
5015 標準クラス
5016 \series default
5017 )
5018 \family default
5019 は,
5020 日本語のための文書クラスを提供します.
5021 \end_layout
5022
5023 \begin_layout Subsection
5024 Koma-Script
5025 \begin_inset CommandInset label
5026 LatexCommand label
5027 name "subsec:Koma-Script"
5028
5029 \end_inset
5030
5031
5032 \end_layout
5033
5034 \begin_layout Standard
5035
5036 \noun on
5037 Bernd Rellermeyer
5038 \noun default
5039 原文;
5040
5041 \noun on
5042 J
5043 \begin_inset ERT
5044 status collapsed
5045
5046 \begin_layout Plain Layout
5047
5048
5049 \backslash
5050 :{U}
5051 \end_layout
5052
5053 \end_inset
5054
5055 rgen Spitzm
5056 \begin_inset ERT
5057 status collapsed
5058
5059 \begin_layout Plain Layout
5060
5061
5062 \backslash
5063 :{U}
5064 \end_layout
5065
5066 \end_inset
5067
5068 ller
5069 \noun default
5070 および\SpecialChar LyX
5071 チームにより改訂
5072 \end_layout
5073
5074 \begin_layout Subsubsection
5075 概要
5076 \end_layout
5077
5078 \begin_layout Standard
5079 KOMA-Script文書クラスコレクションは,
5080 1990年代初めにFrank Neukamによって作られたスクリプトクラスの成果です.公式には,
5081 1994年にletterクラスの追加を以て開始されました.Frank Neukamのクラスは,
5082 植字の原則によって触発され,
5083 それはKOMA-Scriptクラスのデザインに完全に統合されてきました.
5084 \end_layout
5085
5086 \begin_layout Standard
5087 \SpecialChar LyX
5088 の文書クラス
5089 \emph on
5090 article (koma-script)
5091 \emph default
5092
5093 \emph on
5094 report (koma-script)
5095 \emph default
5096
5097 \emph on
5098 book
5099 \emph default
5100  
5101 \emph on
5102 (koma-script)
5103 \emph default
5104
5105 \emph on
5106 letter
5107 \emph default
5108  
5109 \emph on
5110 (koma-script)
5111 \emph default
5112 は,
5113 それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
5114 文書クラス
5115 \family typewriter
5116 scrartcl.cls
5117 \family default
5118
5119 \family typewriter
5120 scrreprt.cls
5121 \family default
5122
5123 \family typewriter
5124 scrbook.cls
5125 \family default
5126
5127 \family typewriter
5128 scrlettr.cls
5129 \family default
5130 に対応しています.これらは,
5131 標準文書クラス
5132 \family typewriter
5133 article.cls
5134 \family default
5135
5136 \family typewriter
5137 report.cls
5138 \family default
5139
5140 \family typewriter
5141 book.cls
5142 \family default
5143
5144 \family typewriter
5145 letter.cls
5146 \family default
5147 の代替物であり,
5148 これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
5149 \end_layout
5150
5151 \begin_layout Itemize
5152 KOMA-Scriptクラスを選択した際の基本文字寸法は,
5153
5154 \emph on
5155 KOMA-Script Article
5156 \emph default
5157
5158 \emph on
5159 KOMA-Script Report
5160 \emph default
5161
5162 \emph on
5163 KOMA-Script Book
5164 \emph default
5165 で11pt,
5166
5167 \emph on
5168 KOMA-Script Letter
5169 \emph default
5170 で12ptです.
5171 \end_layout
5172
5173 \begin_layout Itemize
5174 見出しや箇条書き(記述)環境のラベル,
5175 および
5176 \emph on
5177 KOMA-Script Letter
5178 \emph default
5179 文書クラスの要素の多くでは,
5180 ボールド体サンセリフフォントが使われます
5181 \begin_inset Foot
5182 status collapsed
5183
5184 \begin_layout Plain Layout
5185 ボールド体サンセリフフォントには,
5186 古いcmフォントと新しいecフォントの間に大きな違いがあり,
5187 特に見出しの表示の違いが際立ちます.比較すると,
5188 ecボールドサンセリフフォントの方が,
5189 少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
5190
5191 \shape smallcaps
5192 Walter Schmidt
5193 \shape default
5194 作の\SpecialChar LaTeX
5195 パッケージ
5196 \family typewriter
5197 cmsd.sty
5198 \family default
5199 が役立ちます.
5200 \end_layout
5201
5202 \end_inset
5203
5204 .章見出しの連番は,
5205 節見出しの連番と同様に行われ,
5206 別行立てで「 Chapter\SpecialChar ldots
5207 」という行がつきません.さらに,
5208 多くのオプションによって,
5209 見出しの外観を修正することができます(\SpecialChar LyX
5210 では,
5211
5212 \family sans
5213 文書\SpecialChar menuseparator
5214 設定
5215 \family default
5216 ダイアログの
5217 \family sans
5218 クラスオプション
5219 \family default
5220 フィールドで指定します).これらのオプションの独語での詳細な説明が,
5221 Koma-Scriptの取扱説明書
5222 \emph on
5223 scrguide
5224 \emph default
5225 にあります.
5226 \end_layout
5227
5228 \begin_layout Itemize
5229 KOMA-Scriptのページレイアウトは,
5230 ページを帯状に分割するか,
5231 円を描くかの2つの伝統的な植字慣習のいずれかに従います.既定では,
5232 ページが水平及び垂直方向の帯に分割されていると考え,
5233 帯を余白に割り当て,
5234 残りの使われていない部分を本文領域に割り当てます.余白の大きさは,
5235 ページを帯に分割する因数を変更することによって,
5236 変えることができます.A4の既定値は9で,
5237 この因数を増加させると,
5238 より狭い帯になるので,
5239 余白が狭くなります.
5240 \end_layout
5241
5242 \begin_deeper
5243 \begin_layout Standard
5244 因数がどのような値であっても,
5245 2つの帯が両面文書の外側と下部の余白に割り当てられ,
5246 1つの帯が内側と上部の余白に割り当てられ,
5247 本文領域がページの真ん中の周りに残されます.ほとんどの両面文書は綴られるので,
5248 これは内側の余白が狭すぎるようにしてしまう可能性があります.そこで,
5249 帯の大きさが計算される前に,
5250 ページの綴り補正分を差し引くことができます.
5251 \end_layout
5252
5253 \begin_layout Standard
5254 Koma-Script文書クラスで,
5255 本文領域をデザインする主な方法は,
5256
5257 \family sans
5258 \series bold
5259 文書\SpecialChar menuseparator
5260 設定\SpecialChar menuseparator
5261 文書クラス\SpecialChar menuseparator
5262 クラスオプション\SpecialChar menuseparator
5263 詳細設定
5264 \family default
5265 \series default
5266
5267 \begin_inset space \thinspace{}
5268 \end_inset
5269
5270
5271 \family sans
5272 BCOR
5273 \family default
5274 オプションまたは
5275 \family sans
5276 DIV
5277 \family default
5278 オプションを入力する方法です.
5279 \end_layout
5280
5281 \begin_layout Standard
5282 この文書では,
5283 綴り補正は7.5mmであり,
5284
5285 \family sans
5286 \series bold
5287 クラスオプション\SpecialChar menuseparator
5288 詳細設定
5289 \family default
5290 \series default
5291
5292 \begin_inset space \thinspace{}
5293 \end_inset
5294
5295 ダイアログに
5296 \family typewriter
5297 BCOR7.5mm
5298 \family default
5299 と入力しています.たとえば,
5300 因数を11に変えるには,
5301
5302 \family sans
5303 \series bold
5304 詳細設定クラスオプション
5305 \family default
5306 \series default
5307 にコンマ区切りの項目リストに
5308 \family typewriter
5309 DIV=11
5310 \family default
5311 を書き加えます.A4以外の用紙寸法におけるこの因数の既定値がほしければ,
5312
5313 \family typewriter
5314 DIV=calc
5315 \family default
5316 と書き加えます.
5317 \begin_inset Newline newline
5318 \end_inset
5319
5320 ページレイアウトの計算に円方式を採用したい場合には,
5321 代わりに
5322 \family typewriter
5323 DIV=classic
5324 \family default
5325 としてください.
5326 \end_layout
5327
5328 \end_deeper
5329 \begin_layout Itemize
5330 Koma-Scriptファミリーの\SpecialChar LaTeX
5331 文書クラスには,
5332 多くの追加コマンドが定義されています.それらのうち,
5333 \SpecialChar LyX
5334 で意味を持つものは,
5335 対応する段落環境として実装されています.
5336 \end_layout
5337
5338 \begin_layout Standard
5339 Koma-Scriptファミリーの\SpecialChar LaTeX
5340 文書クラスに関する独語の詳細な説明が,
5341 Koma-Script取扱説明書
5342 \emph on
5343 scrguide
5344 \emph default
5345 にあります
5346 \begin_inset Foot
5347 status collapsed
5348
5349 \begin_layout Plain Layout
5350 英語翻訳版の
5351 \emph on
5352 screnggu
5353 \emph default
5354 もありますが,
5355 完訳ではありません.
5356 \end_layout
5357
5358 \end_inset
5359
5360 .以下の各節では,
5361 \SpecialChar LyX
5362 に関係する側面のみ説明致します.
5363 \end_layout
5364
5365 \begin_layout Subsubsection
5366
5367 \emph on
5368 KOMA-Script Article
5369 \emph default
5370
5371 \emph on
5372 KOMA-Script Report
5373 \emph default
5374
5375 \emph on
5376 KOMA-Script Book
5377 \emph default
5378
5379 \begin_inset CommandInset label
5380 LatexCommand label
5381 name "subsec:article(KOMA-Script)"
5382
5383 \end_inset
5384
5385
5386 \end_layout
5387
5388 \begin_layout Standard
5389 文書クラス
5390 \emph on
5391 KOMA-Script Article
5392 \emph default
5393
5394 \emph on
5395 KOMA-Script Report
5396 \emph default
5397
5398 \emph on
5399 KOMA-Script Book
5400 \emph default
5401 は,
5402 それぞれレイアウトファイル
5403 \family typewriter
5404 scrartcl.layout
5405 \family default
5406
5407 \family typewriter
5408 scrreprt.layou
5409 \family default
5410 t・
5411 \family typewriter
5412 crbook.layout
5413 \family default
5414 によって実装されています.これらは,
5415 対応する標準文書クラス
5416 \emph on
5417 article
5418 \emph default
5419
5420 \emph on
5421 report
5422 \emph default
5423
5424 \emph on
5425 book
5426 \emph default
5427 の段落環境を,
5428 若干の修正を加えた上ですべて含んでいますが,
5429 \SpecialChar LyX
5430 固有の
5431 \family sans
5432 箇条書き(一覧)
5433 \family default
5434 環境は例外であり,
5435 同じ機能を持つ新しい
5436 \family sans
5437 ラベリング
5438 \family default
5439 環境で置き換えられています.この
5440 \family sans
5441 ラベリング
5442 \family default
5443 環境以外にも,
5444 新しい段落環境が多く追加されています.これらは,
5445
5446 \emph on
5447 letter (koma-script)
5448 \emph default
5449 には含まれていないのでご注意ください.
5450 \end_layout
5451
5452 \begin_layout Itemize
5453
5454 \family sans
5455 部(addpart)
5456 \family default
5457
5458 \family sans
5459 章(addchap)
5460 \family default
5461
5462 \family sans
5463 節(addsec)
5464 \family default
5465
5466 これらは,
5467 それぞれ
5468 \family sans
5469 部*
5470 \family default
5471
5472 \family sans
5473 章*
5474 \family default
5475
5476 \family sans
5477 節*
5478 \family default
5479 と同等の働きをしますが,
5480 加えて目次に項目が表示されるようになります.
5481 \family sans
5482 部(addpart)
5483 \family default
5484
5485 \family sans
5486 章(addchap)
5487 \family default
5488 は,
5489
5490 \emph on
5491 article (koma-script)
5492 \emph default
5493 には収録されていません.
5494 \end_layout
5495
5496 \begin_layout Itemize
5497
5498 \family sans
5499 章(addchap*)
5500 \family default
5501
5502 \family sans
5503 節(addsec*)
5504 \family default
5505
5506 これらは,
5507
5508 \family sans
5509 章(addchap
5510 \family default
5511 )と
5512 \family sans
5513 節(addsec)
5514 \family default
5515 とまったく同等に動作しますが,
5516 加えてランニングへッダを取り除きます.
5517 \family sans
5518 章(addchap*)
5519 \family default
5520 は,
5521  
5522 \emph on
5523 article (koma-script)
5524 \emph default
5525 には収録されていません
5526 \begin_inset Foot
5527 status collapsed
5528
5529 \begin_layout Plain Layout
5530
5531 \emph on
5532 book (koma-script)
5533 \emph default
5534
5535 \emph on
5536 report (koma-script)
5537 \emph default
5538 には,
5539
5540 \family typewriter
5541
5542 \backslash
5543 addpart*
5544 \family default
5545 コマンドもありますが,
5546 これは
5547 \family sans
5548 Part*
5549 \family default
5550 と同一なので,
5551 \SpecialChar LyX
5552 では実装されていません.
5553 \end_layout
5554
5555 \end_inset
5556
5557
5558 \end_layout
5559
5560 \begin_layout Itemize
5561
5562 \family sans
5563 小見出し(minisec)
5564 \family default
5565
5566 これは文書構造に現れない形で,
5567 続く段落の直上に標準文字寸法の見出しを付けます.
5568 \end_layout
5569
5570 \begin_layout Itemize
5571
5572 \family sans
5573 上部キャプション
5574 \family default
5575
5576 \family sans
5577 下部キャプション
5578 \family default
5579 は,
5580 ある要素の上部ないし下部にキャプションを配置する際,
5581 位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,
5582 表キャプションは,
5583 つねに表の上に置くべきでしょう).また,
5584 クラスオプション
5585 \family typewriter
5586 tablecaptionsabove
5587 \family default
5588 を用いれば,
5589 キャプションを指定すると,
5590 表には
5591 \family sans
5592 上部キャプション
5593 \family default
5594 が,
5595 図には
5596 \family sans
5597 下部キャプション
5598 \family default
5599 が適用されるようになります.これを使用するためには,
5600 Koma-Script第2.8q版以上が必要です.
5601 \end_layout
5602
5603 \begin_layout Itemize
5604
5605 \family sans
5606 格言(dictum)
5607 \family default
5608
5609 これは,
5610 章頭などに警句を置くのに用いることができます.オプション引数(
5611 \family sans
5612 挿入\SpecialChar menuseparator
5613 格言著者
5614 \family default
5615 )を用いれば,
5616 格言の作者を入れることができます.格言と作者の間は,
5617 線で区切られます.これを使用するためには,
5618 Koma-Script第2.8q版以上が必要です.
5619 \family sans
5620 格言(dictum)
5621 \family default
5622 は,
5623
5624 \emph on
5625 article (koma-script)
5626 \emph default
5627 には収録されていません.
5628 \end_layout
5629
5630 \begin_layout Standard
5631 以下の各環境は,
5632 標準の
5633 \family sans
5634 タイトル
5635 \family default
5636
5637 \family sans
5638 著者
5639 \family default
5640
5641 \family sans
5642 日付
5643 \family default
5644 とともに文書のタイトル領域を形成します.これらは,
5645 最初の「通常の」段落よりも前に置かれる必要があります
5646 \begin_inset Foot
5647 status collapsed
5648
5649 \begin_layout Plain Layout
5650 つまり,
5651 対応する\SpecialChar LaTeX
5652 コマンドが
5653 \family typewriter
5654
5655 \backslash
5656 maketitle
5657 \family default
5658 コマンドよりも前に現れなくてはなりません.
5659 \end_layout
5660
5661 \end_inset
5662
5663 .これらの環境が2度以上使用された場合には,
5664 後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
5665
5666 \family sans
5667 タイトル
5668 \family default
5669
5670 \family sans
5671 著者
5672 \family default
5673
5674
5675 \family sans
5676 日付
5677 \family default
5678 のような異なる環境の順序を変更しても,
5679 生成された文書には何の効果も生じません.
5680 \end_layout
5681
5682 \begin_layout Itemize
5683
5684 \family sans
5685 主題
5686 \family default
5687
5688 通常のタイトル部(
5689 \family sans
5690 タイトル
5691 \family default
5692
5693 \family sans
5694 著者
5695 \family default
5696
5697 \family sans
5698 日付
5699 \family default
5700 )の上に,
5701 文書の主題用の中央揃えの段落を生成します.
5702 \end_layout
5703
5704 \begin_layout Itemize
5705
5706 \family sans
5707 出版社
5708 \family default
5709
5710 通常のタイトル部(
5711 \family sans
5712 タイトル
5713 \family default
5714
5715 \family sans
5716 著者
5717 \family default
5718
5719 \family sans
5720 日付
5721 \family default
5722 )の下に,
5723 出版社名用の中央揃えの段落を生成します.
5724 \end_layout
5725
5726 \begin_layout Itemize
5727
5728 \family sans
5729 献呈
5730 \family default
5731
5732
5733 \emph on
5734 report (koma-script)
5735 \emph default
5736
5737 \emph on
5738 book (koma-script)
5739 \emph default
5740 では,
5741 タイトル頁の次に,
5742 献辞用の中央揃えの段落を独立した頁として生成します.
5743 \emph on
5744 article (koma-script)
5745 \emph default
5746 の場合は,
5747 通常のタイトル部(
5748 \family sans
5749 タイトル
5750 \family default
5751
5752 \family sans
5753 著者
5754 \family default
5755
5756 \family sans
5757 日付
5758 \family default
5759 )の下に献辞用の中央揃えの段落を生成します.
5760 \end_layout
5761
5762 \begin_layout Itemize
5763
5764 \family sans
5765 タイトル頭書き
5766 \family default
5767
5768 通常のタイトル部(
5769 \family sans
5770 タイトル
5771 \family default
5772
5773 \family sans
5774 著者
5775 \family default
5776
5777 \family sans
5778 日付
5779 \family default
5780 )の上に,
5781 文書頭書き用の左揃えの段落を生成します.
5782 \end_layout
5783
5784 \begin_layout Itemize
5785
5786 \family sans
5787 扉裏上部
5788 \family default
5789
5790
5791 \emph on
5792 report (koma-script)
5793 \emph default
5794 や 
5795 \emph on
5796 book (koma-script)
5797 \emph default
5798 の両面印刷において,
5799 扉裏上部に左揃え段落を生成します.片面印刷や,
5800
5801 \emph on
5802 article (koma-script)
5803 \emph default
5804 では何の効果も生じません.
5805 \end_layout
5806
5807 \begin_layout Itemize
5808
5809 \family sans
5810 扉裏下部
5811 \family default
5812
5813
5814 \emph on
5815 report (koma-script)
5816 \emph default
5817 や 
5818 \emph on
5819 book (koma-script)
5820 \emph default
5821 の両面印刷において,
5822 扉裏下部に左揃え段落を生成します.片面印刷や,
5823
5824 \emph on
5825 article (koma-script)
5826 \emph default
5827 では何の効果も生じません.
5828 \end_layout
5829
5830 \begin_layout Itemize
5831
5832 \family sans
5833 追加タイトル
5834 \family default
5835
5836 実際の文書の前に,
5837 整形を行わない段落から成る,
5838 特殊な「汚い」ページを生成します.
5839 \end_layout
5840
5841 \begin_layout Standard
5842 KOMA-Scriptは,
5843
5844 \family sans
5845 \series bold
5846 文書\SpecialChar menuseparator
5847 設定\SpecialChar menuseparator
5848 文書クラス\SpecialChar menuseparator
5849 クラスオプション\SpecialChar menuseparator
5850 詳細設定
5851 \family default
5852 \series default
5853
5854 \begin_inset space \thinspace{}
5855 \end_inset
5856
5857 ダイアログにおいて,
5858 幅広い
5859 \family sans
5860 \series bold
5861 詳細設定クラスオプション
5862 \family default
5863 \series default
5864 を提供しており,
5865 文書全体に適用することができます.主要なものを挙げると,
5866
5867 \end_layout
5868
5869 \begin_layout Description
5870 draft=true 組版エラーの起こった全ての行末に小さな黒い四角を付記したPDFを生成します
5871 \end_layout
5872
5873 \begin_layout Description
5874 headings= 
5875 \family typewriter
5876 big
5877 \family default
5878 /
5879 \family typewriter
5880 normal
5881 \family default
5882 /
5883 \family typewriter
5884 small
5885 \family default
5886 の値を取り,
5887
5888 \family typewriter
5889 big
5890 \family default
5891
5892 \family typewriter
5893 small
5894 \family default
5895 は,
5896 既定値がふさわしくない場合に,
5897 ページ寸法を考慮に入れながら見出しの大きさを調整します
5898 \end_layout
5899
5900 \begin_layout Description
5901 numbers= 
5902 \family typewriter
5903 auto
5904 \family default
5905 (既定値)/
5906 \family typewriter
5907 enddot
5908 \family default
5909 /
5910 \family typewriter
5911 noenddot
5912 \family default
5913 の値を取り,
5914
5915 \family typewriter
5916 auto
5917 \family default
5918 は章や節番号等の後にピリオドを付けるかどうかをKOMA-Scriptに委ね,
5919
5920 \family typewriter
5921 enddot
5922 \family default
5923 は強制的にピリオドを付け,
5924
5925 \family typewriter
5926 noenddot
5927 \family default
5928 はピリオドを抑制します
5929 \end_layout
5930
5931 \begin_layout Standard
5932 また数式オプションとしては
5933 \end_layout
5934
5935 \begin_layout Description
5936 leqno 数式番号を右ではなく左側に付けます
5937 \end_layout
5938
5939 \begin_layout Description
5940 fleqn 数式を中央揃えではなく左揃えにします
5941 \end_layout
5942
5943 \begin_layout Standard
5944 KOMA-Scriptは,
5945 標準\SpecialChar LaTeX
5946 コマンドやパッケージとは別に,
5947 文書の出力に影響するコマンドも提供します.たとえば,
5948 キャプションをボールド体にしたければ,
5949
5950 \family sans
5951 \series bold
5952 文書\SpecialChar menuseparator
5953 設定\SpecialChar menuseparator
5954 \SpecialChar LaTeX
5955 プリアンブル
5956 \begin_inset space \thinspace{}
5957 \end_inset
5958
5959
5960 \family default
5961 \series default
5962
5963 \end_layout
5964
5965 \begin_layout Standard
5966
5967 \family typewriter
5968
5969 \backslash
5970 setkomafont{captionlabel}{
5971 \backslash
5972 bfseries}
5973 \end_layout
5974
5975 \begin_layout Standard
5976 と書き加えれば実現できます.
5977 \end_layout
5978
5979 \begin_layout Standard
5980 書籍を執筆中であれば,
5981 かりそめのページ番号をローマ数字で入れ,
5982 この部分の章に番号を振らないことは普通にあります.章*環境を用いてしまうと,
5983 巻頭言と序文は目次に現れません.目次に現れるようにするには,
5984 章環境を用いて,
5985 書籍の先頭に(\SpecialChar LaTeX
5986 プリアンブルではなく) \SpecialChar TeX
5987 コードで
5988 \end_layout
5989
5990 \begin_layout Standard
5991
5992 \family typewriter
5993
5994 \backslash
5995 frontmatter
5996 \end_layout
5997
5998 \begin_layout Standard
5999 と書き,
6000 本文の第1章の前に
6001 \end_layout
6002
6003 \begin_layout Standard
6004
6005 \family typewriter
6006
6007 \backslash
6008 mainmatter
6009 \end_layout
6010
6011 \begin_layout Standard
6012 と書きます.あるいは,
6013
6014 \family sans
6015 \series bold
6016
6017 \series default
6018 * (TOC)
6019 \family default
6020 を使うこともできます.
6021 \end_layout
6022
6023 \begin_layout Standard
6024 また,
6025 巻末の付録の後に,
6026 付番していない章環境が欲しいことがあるかもしれません
6027 \begin_inset Foot
6028 status open
6029
6030 \begin_layout Plain Layout
6031 付録は,
6032 通常,
6033 文字を使って「付番」されます.
6034 \end_layout
6035
6036 \end_inset
6037
6038 .章*環境を用いてしまうと,
6039 それらは目次には現れませんので,
6040 これらの最初の見出しの前に\SpecialChar TeX
6041 コードで
6042 \end_layout
6043
6044 \begin_layout Standard
6045
6046 \family typewriter
6047
6048 \backslash
6049 backmatter
6050 \end_layout
6051
6052 \begin_layout Standard
6053 と書き,
6054 章環境を用います.\SpecialChar LyX
6055 での付番は,
6056 これらのコマンドを使っても通常通り為されますが,
6057 PDF出力においては,
6058 見出しが付番なしで現れ,
6059 目次にも表示されます.
6060 \end_layout
6061
6062 \begin_layout Standard
6063 文書クラス
6064 \emph on
6065 article (koma-script)
6066 \emph default
6067
6068 \emph on
6069 report (koma-script)
6070 \emph default
6071
6072 \emph on
6073 book (koma-script)
6074 \emph default
6075 の 各レイアウトファイルは,
6076
6077 \family typewriter
6078 scrmacros.inc
6079 \family default
6080 ファイルを読み込みます.このファイルは,
6081 ユーザ環境を定義する場所として想定されています.s
6082 \family typewriter
6083 crmacros.inc
6084 \family default
6085 を,
6086 個人用レイアウトディレクトリにコピーして編集してください!
6087
6088 \end_layout
6089
6090 \begin_layout Subsubsection
6091 新しいletterクラス:
6092 KOMA-Script Letter (KOMA-Script V.2)
6093 \begin_inset CommandInset label
6094 LatexCommand label
6095 name "subsec:新しいletterクラス"
6096
6097 \end_inset
6098
6099
6100 \end_layout
6101
6102 \begin_layout Standard
6103 by 
6104 \noun on
6105 Jürgen Spitzmüller
6106 \begin_inset VSpace medskip
6107 \end_inset
6108
6109
6110 \end_layout
6111
6112 \begin_layout Standard
6113 \noindent
6114 Koma-Script第2.8版では,
6115 新しいletterクラス
6116 \family typewriter
6117 scrlttr2
6118 \family default
6119 が導入されたため,
6120
6121 \family typewriter
6122 scrlettr
6123 \family default
6124 は廃止されてサポート対象外となりました.これは—
6125 \SpecialChar LaTeX
6126 側で—
6127 全く新しいインターフェイスを持っており,
6128 旧クラスとは互換性がありません.したがって,
6129 \SpecialChar LyX
6130 は両者をサポートしていますが,
6131 新しい方のクラスを使用することを推奨します.
6132 \end_layout
6133
6134 \begin_layout Standard
6135 このクラスは,
6136
6137 \emph on
6138 letter (koma-script)
6139 \emph default
6140 と同一の機能に加えて,
6141 新しい機能をいくつかサポートしています.基本となる項目は,
6142
6143 \family sans
6144 住所
6145 \family default
6146 (受取人の住所,
6147 旧レイアウトの
6148 \family sans
6149 書簡
6150 \family default
6151 と同じ)・
6152 \family sans
6153 頭語
6154 \family default
6155
6156 \family sans
6157 結語
6158 \family default
6159 です.
6160 \family sans
6161 次の住所
6162 \family default
6163 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,
6164 送り主の
6165 \family sans
6166 電子メール
6167 \family default
6168
6169 \family sans
6170 URL
6171 \family default
6172
6173 \family sans
6174 ファックス
6175 \family default
6176
6177 \family sans
6178 銀行
6179 \family default
6180
6181 およびヘッダに(
6182 \family sans
6183 挿入\SpecialChar menuseparator
6184
6185 \family default
6186 で)
6187 \family sans
6188 ロゴ
6189 \family default
6190 を入れることができるようになった点です.
6191 \end_layout
6192
6193 \begin_layout Standard
6194 しかしながら,
6195 もっとも大きな改善は,
6196 書簡のレイアウトを,
6197 ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,
6198 クラスオプションとして読み込まれる特別なスタイルファイル(「レタークラスオプション」,
6199 拡張子
6200 \family typewriter
6201 *.lco
6202 \family default
6203 )によって設定することができます
6204 \begin_inset Foot
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 KOMAパッケージには,
6209 既定の
6210 \family typewriter
6211 *.lco
6212 \family default
6213 ファイルがいくつか収録されています.たとえば,
6214 ドイツの組版規則に則った
6215 \family typewriter
6216 DIN.lco
6217 \family default
6218 や,
6219
6220 \family typewriter
6221 scrlettr
6222 \family default
6223 クラスの既定レイアウトを提供する
6224 \family typewriter
6225 KOMAold.lco
6226 \family default
6227 などです.たとえば後者は,
6228
6229 \family sans
6230 文書\SpecialChar menuseparator
6231 設定\SpecialChar menuseparator
6232 文書クラス\SpecialChar menuseparator
6233 クラスオプション
6234 \family default
6235 フィールドにクラスオプション
6236 \family typewriter
6237 KOMAold
6238 \family default
6239 を加えることで読み込むことができます.
6240 \end_layout
6241
6242 \end_inset
6243
6244 .用例としては,
6245
6246 \family sans
6247 \series bold
6248 ファイル\SpecialChar menuseparator
6249 新規(ひな型使用)\SpecialChar ldots
6250 \SpecialChar menuseparator
6251 書簡\SpecialChar menuseparator
6252
6253 \series default
6254 KOMA-Script Letter (V.2)
6255 \family default
6256 のひな型をご覧ください.詳細な解説は,
6257 Koma-Script取扱説明書(
6258 \emph on
6259 scrguide
6260 \emph default
6261 )にあります.
6262 \end_layout
6263
6264 \begin_layout Subsubsection
6265 問題点
6266 \end_layout
6267
6268 \begin_layout Standard
6269 Koma-Script文書クラスを\SpecialChar LyX
6270 上に表示する上で,
6271 \SpecialChar LyX
6272 の内部処理が若干の問題を生じめます.
6273 \end_layout
6274
6275 \begin_layout Itemize
6276
6277 \family sans
6278
6279 \family default
6280 環境の章番号は,
6281 章見出しと同じ行ではなく,
6282 その上に表示されます.これは,
6283 レイアウトファイル中の
6284 \family sans
6285 Counter_Chapter
6286 \family default
6287 ラベル型に対する\SpecialChar LyX
6288 の内部処理が原因です.
6289 \end_layout
6290
6291 \begin_layout Itemize
6292
6293 \family sans
6294 章(addchap)
6295 \family default
6296
6297 \family sans
6298 節(addsec)
6299 \family default
6300 環境の見出しは,
6301 「本当の」\SpecialChar LaTeX
6302 の目次には追加されますが,
6303 \SpecialChar LyX
6304 の目次(
6305 \family sans
6306 移動
6307 \family default
6308 メニュー)には追加されません.
6309 \end_layout
6310
6311 \begin_layout Itemize
6312
6313 \emph on
6314 letter
6315 \emph default
6316 文書クラスでの段落は,
6317 垂直スペースによる段落区切りで表示され,
6318 字下げはされません.これが標準的な挙動となっていて,
6319 特別な\SpecialChar LaTeX
6320 コマンドは必要ありません.しかし,
6321
6322 \family sans
6323 文書\SpecialChar menuseparator
6324 設定
6325 \family default
6326 ダイアログでは,
6327 対応するラジオボタンは
6328 \family sans
6329 字下げ
6330 \family default
6331 に設定されています.
6332 \family sans
6333 垂直スペース
6334 \family default
6335 は,
6336 隙間を空けるために,
6337 文書に\SpecialChar LaTeX
6338 コマンドをつねに追加するようになっていますが,
6339 この文書クラスの場合には,
6340 そのような挙動が望まれないためです.
6341 \end_layout
6342
6343 \begin_layout Subsection
6344 ポーランド語M.
6345 \begin_inset space \thinspace{}
6346 \end_inset
6347
6348 W.
6349 \begin_inset space \space{}
6350 \end_inset
6351
6352 コレクション
6353 \begin_inset CommandInset label
6354 LatexCommand label
6355 name "subsec:ポーランド語M.W.コレクション"
6356
6357 \end_inset
6358
6359
6360 \end_layout
6361
6362 \begin_layout Standard
6363
6364 \noun on
6365 Tomasz Luczak
6366 \noun default
6367
6368 \end_layout
6369
6370 \begin_layout Standard
6371 \SpecialChar LyX
6372 文書クラス
6373 \emph on
6374 ポーランド語Article (MW Bundle)
6375 \emph default
6376
6377 \emph on
6378 ポーランド語Report (MW Bundle)・ポーランド語Book (MW Bundle)
6379 \emph default
6380 は,
6381 それぞれ\SpecialChar LaTeX
6382 文書クラス
6383 \family typewriter
6384 mwart.cls
6385 \family default
6386
6387 \family typewriter
6388 mwrep.cls
6389 \family default
6390
6391 \family typewriter
6392 mwbk.cls
6393 \family default
6394 に対応しています.これらは,
6395 標準の
6396 \family typewriter
6397 article.cls
6398 \family default
6399
6400 \family typewriter
6401 report.cls
6402 \family default
6403
6404 \family typewriter
6405 book.cls
6406 \family default
6407 を代替するものであり,
6408 多くの点で,
6409 ポーランド語の組版慣習によく適合しています.
6410 \end_layout
6411
6412 \begin_layout Standard
6413 基本的な違いは,
6414 次の点です.
6415 \end_layout
6416
6417 \begin_layout Itemize
6418 付番のない見出し(
6419 \family sans
6420 節*
6421 \family default
6422 などの星付き)も目次に加えられます.
6423 \end_layout
6424
6425 \begin_layout Itemize
6426 以下のページスタイルの追加
6427 \end_layout
6428
6429 \begin_deeper
6430 \begin_layout Description
6431 uheadings 分離線付きヘッダ
6432 \end_layout
6433
6434 \begin_layout Description
6435 myheadings 
6436 \family typewriter
6437
6438 \backslash
6439 markright
6440 \family default
6441 コマンドおよび
6442 \family typewriter
6443
6444 \backslash
6445 markboth
6446 \family default
6447 コマンドで設定するカスタムヘッダ
6448 \end_layout
6449
6450 \begin_layout Description
6451 myuheadings 分離線付きカスタムヘッダ
6452 \end_layout
6453
6454 \begin_layout Description
6455 outer ページの外側にページ番号
6456 \end_layout
6457
6458 \end_deeper
6459 \begin_layout Itemize
6460 オプション
6461 \end_layout
6462
6463 \begin_deeper
6464 \begin_layout Description
6465 rmheadings セリフ体見出し —
6466  既定
6467 \end_layout
6468
6469 \begin_layout Description
6470 sfheadings サンセリフ体見出し
6471 \end_layout
6472
6473 \begin_layout Description
6474 authortitle タイトルページは,
6475 著者名・タイトルの順で配置 —
6476  既定
6477 \end_layout
6478
6479 \begin_layout Description
6480 titleauthor タイトルページは,
6481 タイトル・著者名の順で配置
6482 \end_layout
6483
6484 \begin_layout Description
6485 withmarginpar ページ上に余白のための場所を確保
6486 \end_layout
6487
6488 \end_deeper
6489 \begin_layout Subsection
6490 Tufteコレクション
6491 \end_layout
6492
6493 \begin_layout Standard
6494 文書クラスの
6495 \family sans
6496 Tufte
6497 \begin_inset space \thinspace{}
6498 \end_inset
6499
6500 Book
6501 \family default
6502
6503 \family sans
6504 Tufte
6505 \series bold
6506 ハンドアウト
6507 \family default
6508 \series default
6509 は,
6510
6511 \family sans
6512 tufte-booke.cls
6513 \family default
6514
6515 \family sans
6516 tufte-handout.cls
6517 \family default
6518 文書クラスを用います.これらの文書クラスの詳細は,
6519
6520 \family sans
6521 \series bold
6522 ファイル\SpecialChar menuseparator
6523 用例を開く\SpecialChar menuseparator
6524 書籍\SpecialChar menuseparator
6525
6526 \series default
6527 Tufte
6528 \begin_inset space \thinspace{}
6529 \end_inset
6530
6531 Book
6532 \family default
6533
6534 \family sans
6535 \series bold
6536 ファイル\SpecialChar menuseparator
6537 用例を開く\SpecialChar menuseparator
6538 ハンドアウト\SpecialChar menuseparator
6539
6540 \series default
6541 Tufte
6542 \series bold
6543 ハンドアウト
6544 \family default
6545 \series default
6546 にあります.
6547 \end_layout
6548
6549 \begin_layout Section
6550 論文
6551 \end_layout
6552
6553 \begin_layout Standard
6554 コレクション中の文書クラスも参照してください(第
6555 \begin_inset CommandInset ref
6556 LatexCommand ref
6557 reference "sec:コレクション"
6558 plural "false"
6559 caps "false"
6560 noprefix "false"
6561 nolink "false"
6562
6563 \end_inset
6564
6565 節参照).
6566 \end_layout
6567
6568 \begin_layout Subsection
6569 Astronomy & Astrophysicsの論文
6570 \end_layout
6571
6572 \begin_layout Standard
6573
6574 \noun on
6575 Peter Sütterlin原文;
6576 \SpecialChar LyX
6577 チーム改訂
6578 \end_layout
6579
6580 \begin_layout Subsubsection
6581 はじめに
6582 \end_layout
6583
6584 \begin_layout Standard
6585 この節では,
6586 文書クラス
6587 \family typewriter
6588 aa.cls
6589 \family default
6590 (これについての情報は
6591 \begin_inset Flex URL
6592 status collapsed
6593
6594 \begin_layout Plain Layout
6595
6596 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
6597 \end_layout
6598
6599 \end_inset
6600
6601 にあります)第9.1版を使用して科学雑誌
6602 \emph on
6603 Astronomy and Astrophysics
6604 \emph default
6605 (『天文学と宇宙物理学』)に投稿する論文を執筆するための\SpecialChar LyX
6606 の使用法を説明します(
6607 \begin_inset CommandInset href
6608 LatexCommand href
6609 name "aa-package"
6610 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6611 literal "false"
6612
6613 \end_inset
6614
6615 ).
6616 \end_layout
6617
6618 \begin_layout Standard
6619 このパッケージには取扱説明書がついていますので,
6620 取扱説明書『カスタマイズ篇』の「文書クラスを新規に導入する」の節にしたがってこの文書クラスを導入する前に参照してください.
6621 \end_layout
6622
6623 \begin_layout Standard
6624 \begin_inset Note Greyedout
6625 status open
6626
6627 \begin_layout Plain Layout
6628 この学術誌の出版元は,
6629 2001年1月1日以降,
6630 Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,
6631 thesaurusコマンドの廃止など,
6632 スタイルファイルに若干の変更が加わっています.もし古い版が導入されている場合には,
6633 更新してください.古い(第4版)レイアウトに対する互換性については,
6634
6635 \family typewriter
6636 \SpecialChar LyX
6637 Dir/layouts/aapaper.layout
6638 \family default
6639 のコメントをご参照ください.
6640 \end_layout
6641
6642 \end_inset
6643
6644
6645 \end_layout
6646
6647 \begin_layout Subsubsection
6648 最初の一歩
6649 \end_layout
6650
6651 \begin_layout Standard
6652
6653 \family sans
6654 \series bold
6655 ファイル\SpecialChar menuseparator
6656 新規(ひな型使用)\SpecialChar menuseparator
6657 論文\SpecialChar menuseparator
6658
6659 \series default
6660 Astronomy & Astrophysics
6661 \family default
6662
6663 \begin_inset space \thinspace{}
6664 \end_inset
6665
6666 メニューにあるひな型を土台として,
6667 書き始めることをお勧めします.ひな型を使用しない場合には,
6668 以下の設定にしてください.
6669 \end_layout
6670
6671 \begin_layout Itemize
6672
6673 \family sans
6674 \series bold
6675 文書\SpecialChar menuseparator
6676 設定\SpecialChar menuseparator
6677 文書クラス
6678 \family default
6679 \series default
6680
6681 \begin_inset space \thinspace{}
6682 \end_inset
6683
6684 ダイアログで
6685 \family sans
6686 Astronomy & Astrophysics
6687 \family default
6688 を選択してください(まぁ,
6689 これは自明ですね).
6690 \end_layout
6691
6692 \begin_layout Itemize
6693
6694 \family sans
6695 \series bold
6696 ページレイアウト
6697 \family default
6698 \series default
6699
6700 \begin_inset space \thinspace{}
6701 \end_inset
6702
6703 ダイアログの
6704 \family sans
6705 \series bold
6706 ページ様式
6707 \family default
6708 \series default
6709 オプションは変更しないで,
6710
6711 \family sans
6712 \series bold
6713 既定値
6714 \family default
6715 \series default
6716 のままに設定しておいてください.全体のレイアウトはマクロが行うので,
6717 何も変更してはいけません.
6718 \end_layout
6719
6720 \begin_layout Subsubsection
6721 へッダ部
6722 \end_layout
6723
6724 \begin_layout Standard
6725 最初に入力すべきものは,
6726 へッダ情報です.ヘッダ情報には,
6727 以下の7つの項目があり,
6728 うち1つは必須ではありません.
6729 \end_layout
6730
6731 \begin_layout Itemize
6732
6733 \family sans
6734 \series bold
6735 タイトル
6736 \family default
6737 \series default
6738
6739 [必須]
6740 \end_layout
6741
6742 \begin_layout Itemize
6743
6744 \family sans
6745 \series bold
6746 サブタイトル
6747 \family default
6748 \series default
6749
6750 [非必須]
6751 \end_layout
6752
6753 \begin_layout Itemize
6754
6755 \family sans
6756 \series bold
6757 著者
6758 \family default
6759 \series default
6760
6761 [必須]
6762 \end_layout
6763
6764 \begin_layout Itemize
6765
6766 \family sans
6767 \series bold
6768 住所
6769 \family default
6770 \series default
6771
6772 [必須]
6773 \end_layout
6774
6775 \begin_layout Itemize
6776
6777 \family sans
6778 \series bold
6779 抜き刷り
6780 \family default
6781 \series default
6782
6783 [非必須]連絡と抜き刷りを受け取る人を指定
6784 \end_layout
6785
6786 \begin_layout Itemize
6787
6788 \family sans
6789 \series bold
6790 郵便
6791 \family default
6792 \series default
6793
6794 [非必須]連絡用の郵便住所
6795 \end_layout
6796
6797 \begin_layout Itemize
6798
6799 \family sans
6800 \series bold
6801 日付
6802 \family default
6803 \series default
6804
6805 [必須]推奨されるフォーマットは,
6806
6807 \family typewriter
6808 Received:
6809  <日付>;
6810  Accepted <日付>
6811 \family default
6812 です.
6813 \end_layout
6814
6815 \begin_layout Standard
6816
6817 \family typewriter
6818
6819 \backslash
6820 maketitle
6821 \family default
6822 コマンドは,
6823 \SpecialChar LyX
6824 がヘッダ終了時に自動的に発行するので,
6825 手動で発行する必要はありません.各項目の順序は関係ありませんが,
6826 見た目のためと,
6827 実際の文書のレイアウトに合わせるために,
6828 上記の順序を維持しておくと良いでしょう.
6829 \end_layout
6830
6831 \begin_layout Standard
6832 現住所の付記などのために,
6833 へッダ部に脚注を挿入したい場合には,
6834
6835 \family sans
6836 \series bold
6837 挿入\SpecialChar menuseparator
6838 脚注
6839 \family default
6840 \series default
6841
6842 \begin_inset space \thinspace{}
6843 \end_inset
6844
6845 を使用して標準の脚注を挿入してください.この場合には,
6846 \SpecialChar LyX
6847 は自動的に
6848 \family typewriter
6849
6850 \backslash
6851 thanks{}
6852 \family default
6853 を使用します.
6854 \end_layout
6855
6856 \begin_layout Standard
6857
6858 \family sans
6859 \series bold
6860 編集\SpecialChar menuseparator
6861 特別文辞様式
6862 \family default
6863 \series default
6864
6865 \begin_inset space \thinspace{}
6866 \end_inset
6867
6868 に表題付けに関連した2つの差込枠があります.
6869 \end_layout
6870
6871 \begin_layout Itemize
6872
6873 \family sans
6874 \series bold
6875 所属機関
6876 \family default
6877 \series default
6878 は,
6879 連絡担当著者と所属機関の組をマークします.所属機関には,
6880
6881 \family sans
6882 \series bold
6883 住所
6884 \family default
6885 \series default
6886 フィールドに現れるのと同じ順序で連番が振られますので,
6887 各著者に標識を付けてください.
6888 \end_layout
6889
6890 \begin_layout Itemize
6891
6892 \family sans
6893 \series bold
6894 電子メール
6895 \family default
6896 \series default
6897 は,
6898 至急連絡用の電子メールアドレスを付するものです.
6899 \end_layout
6900
6901 \begin_layout Standard
6902 これら以外に,
6903 このマクロは,
6904 \SpecialChar LyX
6905 が対応していない以下の\SpecialChar LaTeX
6906 コマンドを追加的に使用できます.
6907 \end_layout
6908
6909 \begin_layout Itemize
6910 複数の著者名あるいは所属名を区切るための
6911 \family typewriter
6912
6913 \backslash
6914 and
6915 \end_layout
6916
6917 \begin_layout Standard
6918 \SpecialChar LyX
6919 中では\SpecialChar TeX
6920 コードとして適切なコマンドを入力する必要があります.ひな型中の用例と
6921 \family sans
6922 \series bold
6923 ファイル\SpecialChar menuseparator
6924 新規(ひな型使用)\SpecialChar menuseparator
6925 論文\SpecialChar menuseparator
6926
6927 \series default
6928 Astronomy & Astrophysics
6929 \family default
6930
6931 \begin_inset space \thinspace{}
6932 \end_inset
6933
6934 にある用例を参照のこと.
6935 \end_layout
6936
6937 \begin_layout Subsubsection
6938 概要
6939 \end_layout
6940
6941 \begin_layout Standard
6942 概要はへッダ部の直後に置きます.第5版から概要環境はコマンドに変更され,
6943 1段落だけに限るという制限が付きました.加えて,
6944 キーワード項目が含まれていなくてはなりません.これは,
6945 段落様式
6946 \family sans
6947 \series bold
6948 キーワード
6949 \family default
6950 \series default
6951 で為されます.用例論文を参照してください.
6952 \end_layout
6953
6954 \begin_layout Subsubsection
6955 サポートされる環境
6956 \end_layout
6957
6958 \begin_layout Standard
6959 A&A論文用レイアウトでは,
6960 文章を構造化するために,
6961 以下の環境がサポートされています.
6962 \end_layout
6963
6964 \begin_layout Standard
6965
6966 \family sans
6967 \begin_inset Flex Multiple Columns
6968 status open
6969
6970 \begin_layout Itemize
6971
6972 \family sans
6973 標準
6974 \end_layout
6975
6976 \begin_layout Itemize
6977
6978 \family sans
6979
6980 \end_layout
6981
6982 \begin_layout Itemize
6983
6984 \family sans
6985 小節
6986 \end_layout
6987
6988 \begin_layout Itemize
6989
6990 \family sans
6991 小々節
6992 \end_layout
6993
6994 \begin_layout Itemize
6995
6996 \family sans
6997 箇条書き(記号)
6998 \end_layout
6999
7000 \begin_layout Itemize
7001
7002 \family sans
7003 箇条書き(連番)
7004 \end_layout
7005
7006 \begin_layout Itemize
7007
7008 \family sans
7009 箇条書き(記述)
7010 \end_layout
7011
7012 \begin_layout Itemize
7013
7014 \family sans
7015 キャプション
7016 \end_layout
7017
7018 \begin_layout Itemize
7019
7020 \family sans
7021 概要
7022 \end_layout
7023
7024 \begin_layout Itemize
7025
7026 \family sans
7027 謝辞(Acknowledgment)
7028 \end_layout
7029
7030 \begin_layout Itemize
7031
7032 \family sans
7033 書誌情報
7034 \end_layout
7035
7036 \begin_layout Itemize
7037
7038 \family sans
7039 \SpecialChar LaTeX
7040
7041 \end_layout
7042
7043 \end_inset
7044
7045
7046 \end_layout
7047
7048 \begin_layout Subsubsection
7049 \SpecialChar LyX
7050 でサポートされていないコマンド
7051 \end_layout
7052
7053 \begin_layout Standard
7054 \SpecialChar LyX
7055
7056 \family sans
7057 Astronomy & Astrophysics
7058 \family default
7059 レイアウトでは,
7060 まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,
7061 網羅するために,
7062 以下にすべて列挙しておきます.
7063 \end_layout
7064
7065 \begin_layout Itemize
7066
7067 \family typewriter
7068
7069 \backslash
7070 and
7071 \end_layout
7072
7073 \begin_layout Itemize
7074
7075 \family typewriter
7076
7077 \backslash
7078 authorrunning
7079 \end_layout
7080
7081 \begin_layout Itemize
7082
7083 \family typewriter
7084
7085 \backslash
7086 object{}
7087 \end_layout
7088
7089 \begin_layout Itemize
7090
7091 \family typewriter
7092
7093 \backslash
7094 titlerunning{}
7095 \end_layout
7096
7097 \begin_layout Standard
7098 これらのコマンドのいずれかを使いたい場合には,
7099 自分で入力する必要があります.
7100 \family sans
7101 \series bold
7102 挿入\SpecialChar menuseparator
7103 \SpecialChar TeX
7104 コード
7105 \family default
7106
7107 \begin_inset space \thinspace{}
7108 \end_inset
7109
7110 を使用することを
7111 \begin_inset Flex 圏点
7112 status open
7113
7114 \begin_layout Plain Layout
7115
7116 \series bold
7117 忘れないで下さい
7118 \end_layout
7119
7120 \end_inset
7121
7122
7123
7124 \end_layout
7125
7126 \begin_layout Subsubsection
7127 図フロートおよび表フロート
7128 \end_layout
7129
7130 \begin_layout Standard
7131 \SpecialChar LyX
7132 は,
7133 必要なフロート環境
7134 \family sans
7135 figure
7136 \family default
7137
7138 \family sans
7139 figure*
7140 \family default
7141
7142 \family sans
7143 table
7144 \family default
7145
7146 \family sans
7147 table*
7148 \family default
7149 をサポートしていますので,
7150 ここでは詳しい説明はしません.ユーザーの手引きをご覧ください.ただ,
7151 表は左揃えにしなくてはならないことに注意して下さい.そうするためには,
7152 表を選択して,
7153
7154 \family sans
7155 \series bold
7156 編集\SpecialChar menuseparator
7157 段落設定
7158 \family default
7159 \series default
7160
7161 \begin_inset space \thinspace{}
7162 \end_inset
7163
7164 で配置を変更してください.
7165 \end_layout
7166
7167 \begin_layout Standard
7168 一つだけ,
7169 特別なものがあります.それは,
7170 図横にキャプションを配置する図です.この図を作成するには,
7171 以下のようにしなくてはなりません.
7172 \end_layout
7173
7174 \begin_layout Enumerate
7175
7176 \family sans
7177 \series bold
7178 挿入\SpecialChar menuseparator
7179 フロート\SpecialChar menuseparator
7180
7181 \family default
7182 \series default
7183
7184 \begin_inset space \thinspace{}
7185 \end_inset
7186
7187 を使って,
7188 幅広の図フロートを作成します.それから,
7189 フロート内で
7190 \family sans
7191 \series bold
7192 編集\SpecialChar menuseparator
7193 フロートの設定
7194 \family default
7195 \series default
7196
7197 \begin_inset space \thinspace{}
7198 \end_inset
7199
7200 メニューを開き,
7201
7202 \family sans
7203 \series bold
7204 フロート
7205 \family default
7206 \series default
7207 ダイアログで
7208 \family sans
7209 段をまたぐ
7210 \family default
7211 を有効にします.
7212 \end_layout
7213
7214 \begin_layout Enumerate
7215 キャプション文を入力します.
7216 \end_layout
7217
7218 \begin_layout Enumerate
7219 キャプション上にカーソルを移動し,
7220
7221 \family sans
7222 Return
7223 \family default
7224 を押します.
7225 \end_layout
7226
7227 \begin_layout Enumerate
7228 図を挿入します.
7229 \end_layout
7230
7231 \begin_layout Enumerate
7232 カーソルを図の後ろに置いて,
7233
7234 \family sans
7235 \series bold
7236 挿入\SpecialChar menuseparator
7237 整形\SpecialChar menuseparator
7238 横方向の空白
7239 \family default
7240 \series default
7241 を選択して
7242 \family sans
7243 \series bold
7244 空白
7245 \family default
7246 \series default
7247 ダイアログを開き,
7248
7249 \family sans
7250 \series bold
7251 空白
7252 \family default
7253 \series default
7254 コンテクストメニューから
7255 \family sans
7256 \series bold
7257 水平フィル
7258 \family default
7259 \series default
7260 を選択します.
7261 \end_layout
7262
7263 \begin_layout Enumerate
7264
7265 \family sans
7266 M-c
7267 \begin_inset space ~
7268 \end_inset
7269
7270 t
7271 \family default
7272 と押して\SpecialChar LaTeX
7273 モードに切り替えます.
7274 \end_layout
7275
7276 \begin_layout Enumerate
7277 \SpecialChar TeX
7278 差込枠中に
7279 \family typewriter
7280  
7281 \backslash
7282 parbox[b]{55mm}{
7283 \family default
7284  と入力します.
7285 \begin_inset Flex 圏点
7286 status open
7287
7288 \begin_layout Plain Layout
7289 ここでは波括弧を閉じないでください
7290 \end_layout
7291
7292 \end_inset
7293
7294
7295 \series bold
7296
7297 \end_layout
7298
7299 \begin_layout Enumerate
7300 カーソルをキャプション文の後ろに移動し,
7301
7302 \family sans
7303 M-c
7304 \begin_inset space ~
7305 \end_inset
7306
7307 t }
7308 \family default
7309  と押して,
7310 \SpecialChar TeX
7311 モードで閉じ括弧を入力します .
7312 \end_layout
7313
7314 \begin_layout Standard
7315
7316 \family sans
7317 \series bold
7318 ファイル\SpecialChar menuseparator
7319 用例を開く\SpecialChar menuseparator
7320 論文\SpecialChar menuseparator
7321
7322 \series default
7323 Astronomy & Astrophysics
7324 \family default
7325
7326 \begin_inset space \thinspace{}
7327 \end_inset
7328
7329 にあるファイルの図も参照してください.
7330 \end_layout
7331
7332 \begin_layout Subsubsection
7333 Refereeレイアウト
7334 \end_layout
7335
7336 \begin_layout Standard
7337 投稿用には,
7338 論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,
7339 文書クラスに
7340 \family typewriter
7341 referee
7342 \family default
7343 オプションを
7344 \begin_inset space \thinspace{}
7345 \end_inset
7346
7347
7348 \family sans
7349 \series bold
7350 文書\SpecialChar menuseparator
7351 設定\SpecialChar menuseparator
7352 文書クラス
7353 \family default
7354 \series default
7355
7356 \begin_inset space \thinspace{}
7357 \end_inset
7358
7359 ダイアログの
7360 \family sans
7361 \series bold
7362 任意設定クラスオプション
7363 \family default
7364 \series default
7365 フィールドに入力する必要があります.
7366 \end_layout
7367
7368 \begin_layout Subsubsection
7369 例示用論文
7370 \end_layout
7371
7372 \begin_layout Standard
7373
7374 \family sans
7375 \series bold
7376 ファイル\SpecialChar menuseparator
7377 用例を開く\SpecialChar menuseparator
7378 論文\SpecialChar menuseparator
7379
7380 \series default
7381 Astronomy & Astrophysics
7382 \family default
7383
7384 \begin_inset space \thinspace{}
7385 \end_inset
7386
7387 は\SpecialChar LyX
7388 で書かれています.これは,
7389
7390 \begin_inset CommandInset href
7391 LatexCommand href
7392 name "aa-package"
7393 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
7394 literal "false"
7395
7396 \end_inset
7397
7398 にある,
7399 元のマクロパッケージ
7400 \family typewriter
7401 aa.dem
7402 \family default
7403 から採用した例示用論文ですが,
7404 古い構造化されていない概要型を使用して\SpecialChar LyX
7405 に翻訳されたものです.これはヒントを得るために使用したり,
7406
7407 \family typewriter
7408 aa.dem
7409 \family default
7410 の \SpecialChar LaTeX
7411 コードと\SpecialChar LyX
7412 での書き方の比較に使ったりしてください.
7413 \end_layout
7414
7415 \begin_layout Subsection
7416 AAS\SpecialChar TeX
7417
7418 \end_layout
7419
7420 \begin_layout Standard
7421
7422 \noun on
7423 Mike Ressler
7424 \noun default
7425
7426 \end_layout
7427
7428 \begin_layout Subsubsection
7429 はじめに
7430 \end_layout
7431
7432 \begin_layout Standard
7433 AAS\SpecialChar TeX
7434 は,
7435 American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,
7436 同学会が作成したマクロ集です.\SpecialChar LyX
7437 は,
7438 これらの文書を生成する上で,
7439 なかでも数式・引用・画像処理能力において,
7440 優れたツールであることが認識されています.\SpecialChar LyX
7441 は,
7442 同マクロ第5.0版以降を必要としており,
7443 できればここで説明されている第6.0版以降が望まれます.第5.0版未満の版は,
7444 \SpecialChar LaTeX
7445 2.09で使用するよう企図されているため,
7446 根本的に\SpecialChar LyX
7447 とは互換性がありません.AAS\SpecialChar TeX
7448 パッケージは,
7449 以下のAAS\SpecialChar TeX
7450 ウェブサイトからダウンロードできるでしょう.
7451 \end_layout
7452
7453 \begin_layout Standard
7454 \align center
7455 \begin_inset VSpace medskip
7456 \end_inset
7457
7458
7459 \begin_inset Flex URL
7460 status collapsed
7461
7462 \begin_layout Plain Layout
7463
7464 https://aas.org/aastex/aastex-downloads
7465 \end_layout
7466
7467 \end_inset
7468
7469
7470 \begin_inset VSpace medskip
7471 \end_inset
7472
7473
7474 \end_layout
7475
7476 \begin_layout Standard
7477 パッケージ中には,
7478 完備したユーザーの手引きが収録されていますので,
7479 \SpecialChar LyX
7480 で論文を書き始める前に,
7481 その中身を完全に理解しておく必要があります.\SpecialChar LyX
7482 は,
7483 AASTeXの全コマンドを理解する必然性をなくすものではなく,
7484 すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
7485 文書が,
7486 論文を投稿しようとしているジャーナルの要求事項に完全に合致していることを確認するのは,
7487 あなたの責任です.
7488 \end_layout
7489
7490 \begin_layout Subsubsection
7491 新しい論文を書き始める
7492 \end_layout
7493
7494 \begin_layout Standard
7495 論文を書き始めるには,
7496 AAS\SpecialChar TeX
7497 ひな型ファイルを土台に始めることを強くお勧めします.
7498 \family sans
7499 \series bold
7500 ファイル\SpecialChar menuseparator
7501 新規(ひな型使用)\SpecialChar menuseparator
7502 論文\SpecialChar menuseparator
7503
7504 \series default
7505 American Astronomical Society
7506 \family default
7507
7508 \begin_inset space \thinspace{}
7509 \end_inset
7510
7511 をクリックしてください.これには,
7512 論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
7513 \family typewriter
7514 <>
7515 \family default
7516 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
7517 コマンド・AAS\SpecialChar TeX
7518 環境の多くは,
7519 \SpecialChar LyX
7520 中で直接実行することができますが,
7521 できないものもあります.このようなコマンドは,
7522 直接La\SpecialChar TeX
7523 コードを入力して,
7524 それを\SpecialChar TeX
7525 コードとしてマークしなければなりません.このようなコマンドは,
7526 \SpecialChar TeX
7527 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.AAS\SpecialChar TeX
7528 文書に必要とされる \SpecialChar TeX
7529 コードを最小にするようには努力しました.
7530 \end_layout
7531
7532 \begin_layout Subsubsection
7533 論文を書き終わったら
7534 \end_layout
7535
7536 \begin_layout Standard
7537 論文を満足する水準で書き終え,
7538 プレビューや印刷が正しく為されているとしても,
7539 まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
7540 \end_layout
7541
7542 \begin_layout Enumerate
7543 論文を \SpecialChar LaTeX
7544 ファイルとして書き出します(
7545 \family sans
7546 ファイル\SpecialChar menuseparator
7547 書き出し\SpecialChar menuseparator
7548 LaTeX
7549 \family default
7550 ).
7551 \end_layout
7552
7553 \begin_layout Enumerate
7554 出力した
7555 \family typewriter
7556 .tex
7557 \family default
7558 ファイルを好きなエディタで編集します.
7559 \end_layout
7560
7561 \begin_deeper
7562 \begin_layout Enumerate
7563
7564 \family typewriter
7565
7566 \backslash
7567 documentclass
7568 \family default
7569 コマンドよりも前のコメント行を削除します.
7570 \end_layout
7571
7572 \begin_layout Enumerate
7573
7574 \family typewriter
7575
7576 \backslash
7577 usepackage...{fontenc}
7578 \family default
7579 という行があれば(通常は
7580 \family typewriter
7581
7582 \backslash
7583 documentclass
7584 \family default
7585 の直後にあります)削除します.また,
7586
7587 \family typewriter
7588
7589 \backslash
7590 secnumdepth
7591 \family default
7592 行があれば,
7593 これも削除します.
7594 \end_layout
7595
7596 \begin_layout Enumerate
7597 \SpecialChar LaTeX
7598 プリアンブル中に意図的に置いたコマンド(
7599 \family typewriter
7600 .tex
7601 \family default
7602 ファイル中,
7603 「User specified \SpecialChar LaTeX
7604  commands」というコメントの直後にあります)を除いて,
7605
7606 \family typewriter
7607
7608 \backslash
7609 makeatletter
7610 \family default
7611
7612 \family typewriter
7613
7614 \backslash
7615 makeatother
7616 \family default
7617 の間のもの(これらのコマンドを含む)をすべて削除します.
7618 \end_layout
7619
7620 \end_deeper
7621 \begin_layout Enumerate
7622 編集後のファイルを \SpecialChar LaTeX
7623 にかけて,
7624 正しく処理されることを確認します.
7625 \end_layout
7626
7627 \begin_layout Enumerate
7628 学術誌の要求事項を再読して,
7629 ファイル名と書式が正しいことを確認します.
7630 \end_layout
7631
7632 \begin_layout Enumerate
7633 投稿してください.
7634 \end_layout
7635
7636 \begin_layout Subsubsection
7637 特定のコマンドに関するコメント
7638 \end_layout
7639
7640 \begin_layout Standard
7641 AAS\SpecialChar TeX
7642 ユーザーの手引き(
7643 \family typewriter
7644 aasguide.tex
7645 \family default
7646 )に,
7647 各AAS\SpecialChar TeX
7648 コマンドの詳しい説明があるので,
7649 ここでは,
7650 各コマンドの使用法の詳細な説明は行いません.そこで,
7651 ここではユーザーの手引きに現れるとおりに一覧を列挙して,
7652 必要なところだけコメントを加えることにしましょう.
7653 \end_layout
7654
7655 \begin_layout Paragraph
7656 期待通りに動作するもの
7657 \end_layout
7658
7659 \begin_layout Standard
7660 これらは期待通りに動作するので,
7661 ここでは列挙するだけにして,
7662 コマンドの説明されている節を挙げておきます.
7663 \family typewriter
7664
7665 \backslash
7666 documentclass
7667 \family default
7668  (2.1.1)・
7669 \family typewriter
7670
7671 \backslash
7672 begin{document}
7673 \family default
7674  (2.2)・
7675 \family typewriter
7676
7677 \backslash
7678 title
7679 \family default
7680  (2.3)・
7681 \family typewriter
7682
7683 \backslash
7684 author
7685 \family default
7686  (2.3)・
7687 \family typewriter
7688
7689 \backslash
7690 affil
7691 \family default
7692  (2.3)・
7693 \family typewriter
7694
7695 \backslash
7696 abstract
7697 \family default
7698  (2.4)・
7699 \family typewriter
7700
7701 \backslash
7702 keywords
7703 \family default
7704  (2.5)・
7705 \family typewriter
7706
7707 \backslash
7708 section
7709 \family default
7710  (2.7)・
7711 \family typewriter
7712
7713 \backslash
7714 subsection
7715 \family default
7716  (2.7)・
7717 \family typewriter
7718
7719 \backslash
7720 subsubsection
7721 \family default
7722  (2.7)・
7723 \family typewriter
7724
7725 \backslash
7726 paragraph
7727 \family default
7728  (2.7)・
7729 \family typewriter
7730
7731 \backslash
7732 facility
7733 \family default
7734  (2.10)・
7735 \family typewriter
7736
7737 \backslash
7738 begin{displaymath}
7739 \family default
7740  (2.12)・
7741 \family typewriter
7742
7743 \backslash
7744 begin{equation}
7745 \family default
7746  (2.12)・
7747 \family typewriter
7748
7749 \backslash
7750 begin{eqnarray}
7751 \family default
7752  (2.12)・
7753 \family typewriter
7754
7755 \backslash
7756 begin{mathletters}
7757 \family default
7758  (2.12)・
7759 \family typewriter
7760
7761 \backslash
7762 begin{thebibliography}
7763 \family default
7764  (2.13.1)・
7765 \family typewriter
7766
7767 \backslash
7768 bibitem
7769 \family default
7770  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
7771 \family typewriter
7772
7773 \backslash
7774 begin{table}
7775 \family default
7776  (2.15.4)・
7777 \family typewriter
7778
7779 \backslash
7780 begin{tabular}
7781 \family default
7782  (2.15.4)・
7783 \family typewriter
7784
7785 \backslash
7786 caption
7787 \family default
7788  (2.15.4)・
7789 \family typewriter
7790
7791 \backslash
7792 label
7793 \family default
7794  (他にもあるが特に2.15.4)・
7795 \family typewriter
7796
7797 \backslash
7798 tablerefs
7799 \family default
7800  (2.15.5)・
7801 \family typewriter
7802
7803 \backslash
7804 tablecomments
7805 \family default
7806  (2.15.5)・
7807 \family typewriter
7808
7809 \backslash
7810 url
7811 \family default
7812  (2.17.4)・
7813 \family typewriter
7814
7815 \backslash
7816 end{document}
7817 \family default
7818  (2.18).
7819 \end_layout
7820
7821 \begin_layout Standard
7822 以下のスタイルオプションも正しく動作します.
7823 \family typewriter
7824 longabstract
7825 \family default
7826  (2.4)・
7827 \family typewriter
7828 preprint
7829 \family default
7830  (3.2.1)・
7831 \family typewriter
7832 preprint2
7833 \family default
7834  (3.2.2)・
7835 \family typewriter
7836 eqsecnum
7837 \family default
7838  (3.3)・
7839 \family typewriter
7840 flushrt
7841 \family default
7842  (3.4).これらは,
7843
7844 \begin_inset Flex MenuItem
7845 status collapsed
7846
7847 \begin_layout Plain Layout
7848 文書\SpecialChar menuseparator
7849 設定
7850 \end_layout
7851
7852 \end_inset
7853
7854 にある,
7855
7856 \family sans
7857 クラスオプション
7858 \family default
7859
7860 \family sans
7861 任意設定
7862 \family default
7863 ボックスに入力してください.
7864 \end_layout
7865
7866 \begin_layout Paragraph
7867 動作するが,
7868 若干説明が必要なもの
7869 \end_layout
7870
7871 \begin_layout Standard
7872 以下のコマンドは動作しますが,
7873 若干の説明が必要です.
7874 \end_layout
7875
7876 \begin_layout Itemize
7877 以下の項目は,
7878 学術誌の編集者向けに取ってあるものですが,
7879 どうしても必要ならば,
7880 \SpecialChar LaTeX
7881 プリアンブルに入れることができます.
7882 \family typewriter
7883
7884 \backslash
7885 received
7886 \family default
7887
7888 \family typewriter
7889
7890 \backslash
7891 revised
7892 \family default
7893
7894 \family typewriter
7895
7896 \backslash
7897 accepted
7898 \family default
7899
7900 \family typewriter
7901
7902 \backslash
7903 ccc
7904 \family default
7905
7906 \family typewriter
7907 cpright
7908 \family default
7909 (すべて 2.1.3).
7910 \end_layout
7911
7912 \begin_layout Itemize
7913 以下の項目は,
7914 \SpecialChar LaTeX
7915 のプリアンブルに置くことができるもので,
7916 これらは,
7917 ひな型ファイルには,
7918 空の引数と共に含まれています.
7919 \family typewriter
7920
7921 \backslash
7922 slugcomment
7923 \family default
7924 (2.1.4)・
7925 \family typewriter
7926
7927 \backslash
7928 shorttitle
7929 \family default
7930 (2.1.5)・
7931 \family typewriter
7932
7933 \backslash
7934 shortauthors
7935 \family default
7936 (2.1.5).
7937 \end_layout
7938
7939 \begin_layout Itemize
7940
7941 \family typewriter
7942
7943 \backslash
7944 email
7945 \family default
7946 (2.3)―「単独で」使うことはできますが,
7947 段落の途中で使うことはできません.埋め込む必要がある場合には,
7948 \SpecialChar TeX
7949 コードを使用してください.
7950 \end_layout
7951
7952 \begin_layout Itemize
7953
7954 \family typewriter
7955
7956 \backslash
7957 and
7958 \family default
7959 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
7960 \end_layout
7961
7962 \begin_layout Itemize
7963
7964 \family typewriter
7965
7966 \backslash
7967 notetoeditor
7968 \family default
7969 (2.6)―「単独で」使うことはできますが,
7970 段落の途中で使うことはできません.埋め込む必要がある場合には,
7971 \SpecialChar TeX
7972 コードを使用してください.
7973 \end_layout
7974
7975 \begin_layout Itemize
7976
7977 \family typewriter
7978
7979 \backslash
7980 placetable
7981 \family default
7982 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
7983 \end_layout
7984
7985 \begin_layout Itemize
7986
7987 \family typewriter
7988
7989 \backslash
7990 placefigure
7991 \family default
7992 (2.8)—
7993
7994 \family typewriter
7995
7996 \backslash
7997 placetable
7998 \family default
7999 と同様.
8000 \end_layout
8001
8002 \begin_layout Itemize
8003
8004 \family typewriter
8005
8006 \backslash
8007 acknowledgements
8008 \family default
8009 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
8010 \end_layout
8011
8012 \begin_layout Itemize
8013
8014 \family typewriter
8015
8016 \backslash
8017 appendix
8018 \family default
8019 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
8020 \end_layout
8021
8022 \begin_layout Itemize
8023
8024 \family typewriter
8025
8026 \backslash
8027 figcaption
8028 \family default
8029 (2.14.2)―文章のはじめにカーソルを置いて
8030 \begin_inset Flex MenuItem
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 挿入\SpecialChar menuseparator
8035 短縮タイトル
8036 \end_layout
8037
8038 \end_inset
8039
8040 を選択すれば,
8041 非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
8042
8043 \family typewriter
8044
8045 \backslash
8046 figcaption
8047 \family default
8048 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
8049 \end_layout
8050
8051 \begin_layout Itemize
8052
8053 \family typewriter
8054
8055 \backslash
8056 objectname
8057 \family default
8058 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
8059
8060 \family typewriter
8061
8062 \backslash
8063 figcaption
8064 \family default
8065 と同様.
8066 \end_layout
8067
8068 \begin_layout Itemize
8069
8070 \family typewriter
8071
8072 \backslash
8073 dataset
8074 \family default
8075 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
8076
8077 \family typewriter
8078
8079 \backslash
8080 figcaption
8081 \family default
8082 と同様.
8083 \end_layout
8084
8085 \begin_layout Paragraph
8086 実装されていないため,
8087 \SpecialChar TeX
8088 コードを使用するもの
8089 \end_layout
8090
8091 \begin_layout Standard
8092
8093 \family typewriter
8094
8095 \backslash
8096 eqnum
8097 \family default
8098 (2.12)・
8099 \family typewriter
8100
8101 \backslash
8102 setcounter{equation}
8103 \family default
8104 (2.12)・学術誌名略語(2.12.4)・
8105 \family typewriter
8106
8107 \backslash
8108 figurenum
8109 \family default
8110 (2.14.1)・
8111 \family typewriter
8112
8113 \backslash
8114 epsscale
8115 \family default
8116 (2.14.1)・
8117 \family typewriter
8118
8119 \backslash
8120 plotone
8121 \family default
8122 (2.14.1)・
8123 \family typewriter
8124
8125 \backslash
8126 plottwo
8127 \family default
8128 (2.14.1)・
8129 \family typewriter
8130
8131 \backslash
8132 tablenum
8133 \family default
8134 (2.15.4)・
8135 \family typewriter
8136
8137 \backslash
8138 tableline
8139 \family default
8140 (2.15.4:
8141 入れたい場所の後ろに,
8142 左側セルの最初の要素として挿入する.表中では,
8143 \SpecialChar LyX
8144 の方法は使わないでください)・
8145 \family typewriter
8146
8147 \backslash
8148 tablenotemark
8149 \family default
8150 (2.15.5)・
8151 \family typewriter
8152
8153 \backslash
8154 tablenotetext
8155 \family default
8156 (2.15.5)・補遺(2.17)の大半
8157 \family typewriter
8158
8159 \backslash
8160 objectname
8161 \family default
8162
8163 \family typewriter
8164
8165 \backslash
8166 dataset
8167 \family default
8168
8169 \family typewriter
8170
8171 \backslash
8172 url
8173 \family default
8174
8175 \family typewriter
8176
8177 \backslash
8178 email
8179 \family default
8180 を除く.上記参照)・
8181 \family typewriter
8182
8183 \backslash
8184 singlespace
8185 \family default
8186 (3.1)・
8187 \family typewriter
8188
8189 \backslash
8190 doublespace
8191 \family default
8192 (3.1)・
8193 \family typewriter
8194
8195 \backslash
8196 onecolumn
8197 \family default
8198 (3.2)・
8199 \family typewriter
8200
8201 \backslash
8202 twocolumn
8203 \family default
8204 (3.2)
8205 \end_layout
8206
8207 \begin_layout Paragraph
8208 実装できないもの
8209 \end_layout
8210
8211 \begin_layout Standard
8212 references(2.12.3)環境とdeluxetable(2.14)環境は,
8213 少なくとも意味のあるような形で実装することができないので,
8214 無視してください.もし,
8215 絶対に,
8216 どうしても,
8217 deluxetableを使う必要があるならば,
8218 テキストエディタで別ファイルとして編集し,
8219
8220 \family sans
8221 \series bold
8222 挿入\SpecialChar menuseparator
8223 子文書
8224 \family default
8225 \series default
8226
8227 \begin_inset space \thinspace{}
8228 \end_inset
8229
8230 を使用して,
8231 \SpecialChar LyX
8232 ファイルに読み込むことを推奨します.この実例は,
8233
8234 \family sans
8235 \series bold
8236 ファイル\SpecialChar menuseparator
8237 新規(ひな型使用)\SpecialChar menuseparator
8238 論文\SpecialChar menuseparator
8239
8240 \series default
8241 American Astronomical Society
8242 \family default
8243
8244 \begin_inset space \thinspace{}
8245 \end_inset
8246
8247 をご参照ください.
8248 \end_layout
8249
8250 \begin_layout Subsubsection
8251 FAQとヒントと技とその他の考察
8252 \end_layout
8253
8254 \begin_layout Paragraph
8255 \SpecialChar LyX
8256 をAAS\SpecialChar TeX
8257 と協調させる
8258 \end_layout
8259
8260 \begin_layout Standard
8261 \SpecialChar LyX
8262 に,
8263 新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,
8264 次のようにしてみてください.
8265 \end_layout
8266
8267 \begin_layout Enumerate
8268 \SpecialChar LaTeX
8269 が,
8270 AAS\SpecialChar TeX
8271 を検出できることを確認してください.AAS\SpecialChar TeX
8272 頒布版に含まれる
8273 \family typewriter
8274 sample.tex
8275 \family default
8276 (あるいは
8277 \family typewriter
8278 table.tex
8279 \family default
8280 でも可)を,
8281 \SpecialChar LaTeX
8282 やAAS\SpecialChar TeX
8283 とまったく関係のないディレクトリにコピーして,
8284
8285 \family typewriter
8286 sample.tex
8287 \family default
8288 を\SpecialChar LaTeX
8289 にかけてください.
8290 \end_layout
8291
8292 \begin_layout Enumerate
8293
8294 \family typewriter
8295 aastex.layout
8296 \family default
8297 が,
8298 \SpecialChar LyX
8299
8300 \family typewriter
8301 layouts
8302 \family default
8303 フォルダにあることを確認してください.
8304 \end_layout
8305
8306 \begin_layout Enumerate
8307 \SpecialChar LyX
8308 中から
8309 \family sans
8310 ツール\SpecialChar menuseparator
8311 環境構成
8312 \family default
8313 を再度実行し,
8314 \SpecialChar LyX
8315 を再起動してください.
8316 \end_layout
8317
8318 \begin_layout Enumerate
8319 ひな型ではなく,
8320 通常の新規ファイルを開いてください.
8321 \family sans
8322 American Astronomical Society (AASTeX V.
8323 \begin_inset space \thinspace{}
8324 \end_inset
8325
8326 6)
8327 \family default
8328 が,
8329
8330 \family sans
8331 \series bold
8332 文書\SpecialChar menuseparator
8333 設定
8334 \family default
8335 \series default
8336
8337 \begin_inset space \thinspace{}
8338 \end_inset
8339
8340 のクラス一覧に表示されていますか?
8341
8342 \end_layout
8343
8344 \begin_layout Standard
8345 既存のAAS\SpecialChar TeX
8346 文書を処理する際に,
8347 AAS\SpecialChar TeX
8348 レイアウトを見つけられないとか,
8349 「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであれば,
8350 正しい導入が行われていません.
8351 \end_layout
8352
8353 \begin_layout Paragraph
8354 表を処理する際の\SpecialChar LaTeX
8355 エラー
8356 \end_layout
8357
8358 \begin_layout Standard
8359 既定では,
8360 \SpecialChar LyX
8361 は,
8362 表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
8363 と悪い相互干渉を発生させるようですので,
8364 キャプションやタイトルのどこかをクリックして,
8365
8366 \family sans
8367 \series bold
8368 編集\SpecialChar menuseparator
8369 段落設定
8370 \family default
8371 \series default
8372
8373 \begin_inset space \thinspace{}
8374 \end_inset
8375
8376 を選択し,
8377
8378 \family sans
8379 \series bold
8380 配置
8381 \family default
8382 \series default
8383
8384 \family sans
8385 \series bold
8386 両端揃え
8387 \family default
8388 \series default
8389 に設定してください.私のところではこれで解決しました.
8390 \end_layout
8391
8392 \begin_layout Paragraph
8393 書誌情報
8394 \end_layout
8395
8396 \begin_layout Standard
8397 若干の注意があります.
8398 \end_layout
8399
8400 \begin_layout Enumerate
8401 文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,
8402 最後の著者と,
8403 著作年を入れる括弧の間にスペースを
8404 \emph on
8405 入れない
8406 \emph default
8407 ようにしてください.たとえば,
8408
8409 \family typewriter
8410 Ressler(1992)
8411 \family default
8412 はいいですが,
8413
8414 \family typewriter
8415 Ressler (1992)
8416 \family default
8417 ではだめです.
8418 \end_layout
8419
8420 \begin_layout Enumerate
8421 書誌情報の入力の仕方は,
8422 必ずしも自明ではありません.もっとも簡単な方法は,
8423 文書の最後に,
8424 最初の書誌情報をまず書き込み,
8425 それを
8426 \family sans
8427 \series bold
8428 書誌情報
8429 \family default
8430 \series default
8431 環境としてマークすることです.すると,
8432 入力したものの前に,
8433 小さな灰色のボックスが現れます.このボックスをクリックして,
8434 残りの情報を入力してください.新しい書誌情報を追加するには,
8435 既存の書誌情報の後ろでリターンを押します.すると,
8436 新しいボックスの付いた新規行が出てくるので,
8437 後は同様にしてください.
8438 \end_layout
8439
8440 \begin_layout Paragraph
8441 EPSファイルの読み込み
8442 \end_layout
8443
8444 \begin_layout Standard
8445 AAS\SpecialChar TeX
8446 には,
8447 自前の図関連コマンド(たとえば
8448 \family typewriter
8449
8450 \backslash
8451 plotone
8452 \family default
8453 )がありますが,
8454 私は(既定のgraphicxを使った)\SpecialChar LaTeX
8455 の標準図コマンドの方がずっと好きです.望めば,
8456 図フロートボックスに,
8457 \SpecialChar TeX
8458 コードで
8459 \family typewriter
8460
8461 \backslash
8462 plotone
8463 \family default
8464 等のコマンドを挿入することはできますが,
8465 私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,
8466 \SpecialChar LyX
8467 は,
8468
8469 \family typewriter
8470
8471 \backslash
8472 usepackage{graphics}
8473 \family default
8474 コマンドを\SpecialChar LaTeX
8475 プリアンブルに挿入し,
8476 図を\SpecialChar LaTeX2e
8477 の標準的な方法で取り扱って,
8478 文章の中にちりばめます.現在,
8479 ApJは,
8480 ちょうどこのようにして作成した図を受け入れていますが,
8481 AJはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
8482 \end_layout
8483
8484 \begin_layout Paragraph
8485 可能だったが,
8486 実装しなかったもの
8487 \end_layout
8488
8489 \begin_layout Standard
8490 「素敵な」ものの中には,
8491 実装することも可能だったけれども,
8492 あえて実装しなかったものがあります.たとえば,
8493 紙の原稿ではダブルスペースであったとしても,
8494 \SpecialChar LyX
8495 ウィンドウ中で,
8496 文章をダブルスペースにする意味はないと考えました.また,
8497 preprint様式とpreprint2様式を,
8498 独立したレイアウトにすることもしませんでした.いずれにしても,
8499 執筆時間のほとんどを,
8500 平の原稿モードで使うのがほとんどですから,
8501 これらの機能でディスクスペースを消費しないことにしました.
8502 \end_layout
8503
8504 \begin_layout Subsubsection
8505 最後に
8506 \end_layout
8507
8508 \begin_layout Standard
8509 これまでに進んできた道のりは,
8510 長い人も短い人もいることでしょう.私には,
8511 ApJとAJに発表した論文がありますが,
8512 その努力の98
8513 \begin_inset space \thinspace{}
8514 \end_inset
8515
8516 %は\SpecialChar LyX
8517 上で為されました.残りの2
8518 \begin_inset space \thinspace{}
8519 \end_inset
8520
8521 %が,
8522 \SpecialChar LaTeX
8523 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,
8524 これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,
8525 がんばって発表してください!
8526
8527 \end_layout
8528
8529 \begin_layout Subsection
8530 チェス
8531 \end_layout
8532
8533 \begin_layout Standard
8534
8535 \family sans
8536 \series bold
8537 チェス
8538 \family default
8539 \series default
8540 文書クラスは,
8541 チェスゲームの叙述を可能にするために,
8542 標準article文書クラスを
8543 \family sans
8544 lyxskak
8545 \family default
8546 パッケージとともに使用します.
8547 \family sans
8548 \series bold
8549 ファイル\SpecialChar menuseparator
8550 用例を開く\SpecialChar menuseparator
8551 論文\SpecialChar menuseparator
8552 チェス
8553 \family default
8554 \series default
8555 を開くと
8556 \family sans
8557 \series bold
8558 ゲーム
8559 \series default
8560 1
8561 \family default
8562
8563 \family sans
8564 \series bold
8565 ゲーム
8566 \series default
8567 2
8568 \family default
8569 がありますので,
8570 それらを参照してください.
8571 \end_layout
8572
8573 \begin_layout Subsection
8574 Elsevier
8575 \end_layout
8576
8577 \begin_layout Standard
8578
8579 \family sans
8580 Elsevier
8581 \family default
8582 文書クラスは,
8583 Elsevier出版社の学術誌用に,
8584
8585 \family sans
8586 elsarticle
8587 \family default
8588  \SpecialChar LaTeX
8589 クラスのサポートを提供します.これは,
8590 以下の各環境を追加します:
8591
8592 \family sans
8593 \series bold
8594 表題脚註
8595 \family default
8596 \series default
8597
8598 \family sans
8599 \series bold
8600 著者脚註
8601 \family default
8602 \series default
8603
8604 \family sans
8605 \series bold
8606 連絡担当著者
8607 \family default
8608 \series default
8609
8610 \family sans
8611 \series bold
8612 住所
8613 \family default
8614 \series default
8615
8616 \family sans
8617 \series bold
8618 電子メール
8619 \family default
8620 \series default
8621
8622 \family sans
8623 \series bold
8624 キーワード
8625 \family default
8626 \series default
8627 .ひな型は
8628 \begin_inset space \thinspace{}
8629 \end_inset
8630
8631 ファイル\SpecialChar menuseparator
8632 新規(ひな型使用)\SpecialChar menuseparator
8633 論文\SpecialChar menuseparator
8634 Elsevier
8635 \begin_inset space \thinspace{}
8636 \end_inset
8637
8638 メニューで利用可能です.これは,
8639 さらに多くの環境を設定していて,
8640 必要な情報を全て含みます.しかしながら,
8641 ドキュメンテーションは
8642 \begin_inset CommandInset href
8643 LatexCommand href
8644 name "CTAN"
8645 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
8646 literal "false"
8647
8648 \end_inset
8649
8650 でも利用可能です.
8651 \end_layout
8652
8653 \begin_layout Subsection
8654 Paper
8655 \end_layout
8656
8657 \begin_layout Standard
8658
8659 \family sans
8660 Paper (標準クラス)
8661 \family default
8662 文書クラスは
8663 \family sans
8664 Article (標準クラス)
8665 \family default
8666 文書クラスの代替となるものです.これは同様の機能を提供しますが,
8667 サンセリフ体の節や見出し等を持つこちらのレイアウトの方が気に入るかも知れません.
8668 \end_layout
8669
8670 \begin_layout Subsection
8671 Rev\SpecialChar TeX
8672 4
8673 \end_layout
8674
8675 \begin_layout Standard
8676 by 
8677 \noun on
8678 Amir Karger
8679 \end_layout
8680
8681 \begin_layout Standard
8682 \begin_inset VSpace bigskip
8683 \end_inset
8684
8685
8686 \end_layout
8687
8688 \begin_layout Standard
8689 \noindent
8690
8691 \family sans
8692 REVTeX (V.
8693 \begin_inset space ~
8694 \end_inset
8695
8696 4)
8697 \family default
8698 テキストクラスは,
8699 アメリカ物理学会のRev\SpecialChar TeX
8700  4.0(1999年5月の
8701 \begin_inset Formula $\beta$
8702 \end_inset
8703
8704 リリース)クラスで動作します.
8705 \end_layout
8706
8707 \begin_layout Standard
8708 \SpecialChar LyX
8709 には,
8710 Rev\SpecialChar TeX
8711  3.1で動作する
8712 \family sans
8713 REVTeX (obsolete)
8714 \family default
8715 テキストクラスもあります.しかしながら,
8716 第3.1版は\SpecialChar LaTeX
8717  2.09で動作するものであり,
8718 基本的に時代遅れなものになっています.\SpecialChar LyX
8719 は\SpecialChar LaTeX2e
8720 を必要とすることから,
8721 第3.1版は\SpecialChar LyX
8722 とうまく協調しないことを意味しますが,
8723 動作するようには調整してあります.Rev\SpecialChar TeX
8724  4.0は,
8725 \SpecialChar LaTeX2e
8726 で素直に動作するようにデザインされているので,
8727 \SpecialChar LyX
8728
8729 \family sans
8730 REVTeX (V.
8731 \begin_inset space ~
8732 \end_inset
8733
8734 4)
8735 \family default
8736 テキストクラスの組で使用するのは,
8737 たいへん簡単です.
8738 \end_layout
8739
8740 \begin_layout Standard
8741 この取扱説明書は,
8742 Rev\SpecialChar TeX
8743  4.0の説明書の
8744 \emph on
8745 補完
8746 \emph default
8747 として使用されることを前提としています.したがって,
8748 ここではRev\SpecialChar TeX
8749 固有マクロの説明はせず,
8750 必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明します.
8751 \end_layout
8752
8753 \begin_layout Subsubsection
8754 導入
8755 \end_layout
8756
8757 \begin_layout Standard
8758 Rev\SpecialChar TeX
8759  4パッケージのREADMEファイルにあるとおり,
8760 ともかくRev\SpecialChar TeX
8761  4を導入しなくてはなりません.パッケージは,
8762 The Rev\SpecialChar TeX
8763  4 Web Site 
8764 \begin_inset Flex URL
8765 status collapsed
8766
8767 \begin_layout Plain Layout
8768
8769 http://publish.aps.org/revtex4/
8770 \end_layout
8771
8772 \end_inset
8773
8774 から入手することができます.これを\SpecialChar LaTeX
8775 が検出することのできる場所に導入してください.それから,
8776 適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるディレクトリ)で簡単なRev\SpecialChar TeX
8777  4文書を \SpecialChar LaTeX
8778 でコンパイルできるかどうか確認してください.この後,
8779 \SpecialChar LyX
8780 を環境構成すると,
8781 クラスファイルを検出し,
8782 Rev\SpecialChar TeX
8783 4テキストクラスが使用できるようになるはずです.
8784 \end_layout
8785
8786 \begin_layout Standard
8787 使い始めるには,
8788
8789 \family typewriter
8790 tex2lyx
8791 \family default
8792 を使ってRev\SpecialChar TeX
8793  4文書を読み込むか,
8794 または
8795 \family sans
8796
8797 \begin_inset space \thinspace{}
8798 \end_inset
8799
8800
8801 \series bold
8802 ファイル\SpecialChar menuseparator
8803 新規
8804 \series default
8805 (
8806 \series bold
8807 ひな型使用
8808 \series default
8809 )\SpecialChar menuseparator
8810 Article
8811 \family default
8812
8813 \begin_inset space \thinspace{}
8814 \end_inset
8815
8816 にある
8817 \family sans
8818 Revtex
8819 \begin_inset space ~
8820 \end_inset
8821
8822 4
8823 \family default
8824 のひな型を使うのが,
8825 おそらく一番簡単な方法でしょう.
8826 \end_layout
8827
8828 \begin_layout Subsubsection
8829 プリアンブルに関すること
8830 \end_layout
8831
8832 \begin_layout Standard
8833
8834 \family typewriter
8835
8836 \backslash
8837 documentclass
8838 \family default
8839 に与える「preprint」や「aps」のような非必須引数は,
8840 他のクラス同様,
8841
8842 \family sans
8843 文書\SpecialChar menuseparator
8844 設定\SpecialChar menuseparator
8845 文書クラス
8846 \family default
8847
8848 \family sans
8849 クラスオプション
8850 \family default
8851 フィールドに入れます.Rev\SpecialChar TeX
8852 では,
8853 少なくとも一つの非必須引数が必要なことに注意してください.
8854 \end_layout
8855
8856 \begin_layout Standard
8857
8858 \family typewriter
8859
8860 \backslash
8861 draft
8862 \family default
8863 など他のプリアンブルは,
8864 他のクラス同様,
8865
8866 \family sans
8867 文書\SpecialChar menuseparator
8868 設定\SpecialChar menuseparator
8869 \SpecialChar LaTeX
8870 プリアンブル
8871 \family default
8872 に入れてください.
8873 \end_layout
8874
8875 \begin_layout Subsubsection
8876 レイアウト
8877 \end_layout
8878
8879 \begin_layout Standard
8880 レイアウトは,
8881 基本的にRev\SpecialChar TeX
8882 4.0のコマンドに対応しています.たとえば,
8883 Emailレイアウトは,
8884
8885 \family typewriter
8886
8887 \backslash
8888 email{}
8889 \family default
8890 に対応しています.(少なくともRev\SpecialChar TeX
8891  4.0 Beta現在では)
8892 \family sans
8893 住所
8894 \family default
8895
8896 \family sans
8897 所属
8898 \family default
8899 はまったく同じものなので,
8900 両方を使う必要はありません
8901 \begin_inset Foot
8902 status collapsed
8903
8904 \begin_layout Plain Layout
8905 ついでながら,
8906
8907 \family typewriter
8908 tex2lyx
8909 \family default
8910 は両方とも対応しているので,
8911
8912 \family typewriter
8913
8914 \backslash
8915 address
8916 \family default
8917
8918 \family typewriter
8919
8920 \backslash
8921 affiliation
8922 \family default
8923 のどちらも翻訳することができます.
8924 \end_layout
8925
8926 \end_inset
8927
8928
8929 \end_layout
8930
8931 \begin_layout Subsubsection
8932 重要な注意
8933 \end_layout
8934
8935 \begin_layout Standard
8936 Rev\SpecialChar TeX
8937  4には,
8938 バグを引き起こしがちなために,
8939 気をつけなくてはならない特殊な面がいくつかあるため,
8940 \SpecialChar LyX
8941 ではさらに気をつけなくてはなりません.
8942 \end_layout
8943
8944 \begin_layout Standard
8945 Rev\SpecialChar TeX
8946 では,
8947
8948 \family typewriter
8949
8950 \backslash
8951 thanks
8952 \family default
8953 コマンドは,
8954
8955 \family typewriter
8956
8957 \backslash
8958 author
8959 \family default
8960 コマンドの
8961 \emph on
8962 外側
8963 \emph default
8964 に来なくてはなりません.\SpecialChar LyX
8965 では,
8966 独立した
8967 \family sans
8968 感謝
8969 \family default
8970 レイアウトがこの働きをします.直接
8971 \family sans
8972
8973 著者
8974 \family default
8975 レイアウトに脚注を付けてしまうと,
8976 おかしなことが起こる可能性があります.詳細については,
8977 Rev\SpecialChar TeX
8978  4の取扱説明書をご覧ください.
8979 \end_layout
8980
8981 \begin_layout Standard
8982 また,
8983
8984 \family sans
8985 著者電子メール
8986 \family default
8987
8988 \family sans
8989 著者URL・感謝(thanks)
8990 \family default
8991 レイアウトは,
8992
8993 \family sans
8994 著者
8995 \family default
8996 レイアウトと
8997 \family sans
8998 住所(
8999 \family default
9000 または同等の
9001 \family sans
9002 所属
9003 \family default
9004 )レイアウトの間に置かなければなりません.
9005 \family sans
9006 感謝(thanks)
9007 \family default
9008
9009 \family sans
9010 住所
9011 \family default
9012 の後に置いてしまうと,
9013 \SpecialChar LaTeX
9014 はコンパイルに失敗します.
9015 \end_layout
9016
9017 \begin_layout Subsection
9018 Springer学術誌
9019 \end_layout
9020
9021 \begin_layout Standard
9022 すべての
9023 \family sans
9024 svj*
9025 \family default
9026 クラスは,
9027 完全に新しい
9028 \family sans
9029 sn-jnl.cls
9030 \family default
9031 に置き換えられました.情報については,
9032
9033 \begin_inset Flex URL
9034 status collapsed
9035
9036 \begin_layout Plain Layout
9037
9038 https://www.springernature.com/gp/authors/campaigns/latex-author-support
9039 \end_layout
9040
9041 \end_inset
9042
9043 をご覧ください.\SpecialChar LyX
9044 のネイティブサポートはまだ為されていません.
9045 \end_layout
9046
9047 \begin_layout Section
9048 書籍
9049 \end_layout
9050
9051 \begin_layout Standard
9052 コレクション(第
9053 \begin_inset CommandInset ref
9054 LatexCommand ref
9055 reference "sec:コレクション"
9056 plural "false"
9057 caps "false"
9058 noprefix "false"
9059 nolink "false"
9060
9061 \end_inset
9062
9063 節)にある文書クラスも参照してください.
9064 \end_layout
9065
9066 \begin_layout Subsection
9067 Memoir
9068 \end_layout
9069
9070 \begin_layout Standard
9071
9072 \noun on
9073 Jürgen Spitzmüller
9074 \noun default
9075
9076 \end_layout
9077
9078 \begin_layout Subsubsection
9079 概観
9080 \end_layout
9081
9082 \begin_layout Standard
9083 Memoirは,
9084 非常に強力で,
9085 着実に改良が加えられている文書クラスであり,
9086 フィクションとノンフィクションの文学作品用に設計されています.その目的は,
9087 ユーザーに,
9088 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,
9089 標準bookクラスに基づいていますが,
9090 articleクラスをエミュレートすることもできます(以下参照).
9091 \end_layout
9092
9093 \begin_layout Standard
9094 Memoir開発者であるPeter Wilsonは,
9095 \SpecialChar LaTeX
9096 の世界での,
9097 多くの便利なパッケージの作者として知られていますが,
9098 それらのほとんどは,
9099 Memoirに統合されました.このため,
9100 章のデザインや,
9101 目次や付録などのレイアウトを,
9102 はるかに簡単に行うことができます.しかしながら,
9103 \SpecialChar LyX
9104 は,
9105 これらすべての素晴らしい機能をネイティブでサポートしているわけではありません.これらのうちいくつかは,
9106 将来のリリースで追加されるかもしれませんが
9107 \begin_inset Foot
9108 status collapsed
9109
9110 \begin_layout Plain Layout
9111 もし提案があれば,
9112 ぜひ
9113 \begin_inset Flex URL
9114 status collapsed
9115
9116 \begin_layout Plain Layout
9117
9118 lyx-devel@lists.lyx.org
9119 \end_layout
9120
9121 \end_inset
9122
9123 までお送り下さい.
9124 \end_layout
9125
9126 \end_inset
9127
9128
9129 \SpecialChar LyX
9130 のフレームワークが持つ制約のために,
9131 おそらく決して追加されることのないと考えられるものも多数あります.もちろん,
9132 ネイティブな\SpecialChar LaTeX
9133 コマンド(\SpecialChar TeX
9134 コード
9135 \begin_inset Foot
9136 status collapsed
9137
9138 \begin_layout Plain Layout
9139 【参考】詳細は,
9140
9141 \begin_inset CommandInset ref
9142 LatexCommand ref
9143 reference "sec:TeXコードを挿入する"
9144 nolink "false"
9145
9146 \end_inset
9147
9148 節参照.
9149 \end_layout
9150
9151 \end_inset
9152
9153 )の助けを借りれば,
9154 全機能を使用できます.この節では,
9155 \SpecialChar LyX
9156 がネイティブにサポートしている機能についてのみ,
9157 列挙するものとします.詳細な説明(および他の機能)については,
9158 Memoirクラスの詳しい取扱説明書
9159 \begin_inset Foot
9160 status collapsed
9161
9162 \begin_layout Plain Layout
9163 【参考】
9164 \begin_inset Flex URL
9165 status collapsed
9166
9167 \begin_layout Plain Layout
9168
9169 CTAN:/macros/latex/memoir/memman.pdf
9170 \end_layout
9171
9172 \end_inset
9173
9174
9175 \end_layout
9176
9177 \end_inset
9178
9179 をご覧になることをお勧めします.この取扱説明書は,
9180 本クラスのユーザーの手引きであるのみに留まらず,
9181 良い組版に関する包括的な解説であり,
9182 それ自身が良い組版の傑出した用例となっています.
9183 \end_layout
9184
9185 \begin_layout Subsubsection
9186 基本的な機能と制約
9187 \end_layout
9188
9189 \begin_layout Standard
9190 Memoirは,
9191 基本的に,
9192 標準bookクラスの全機能をサポートしています.しかしながら,
9193 以下に示すような若干の違いがあります.
9194 \end_layout
9195
9196 \begin_layout Description
9197 フォント寸法:
9198  Memoirでは,
9199 9・10・11・12・14・17と,
9200 より広い範囲のフォント寸法が使用可能です.
9201 \end_layout
9202
9203 \begin_layout Description
9204 ページ様式:
9205  Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,
9206 \SpecialChar LaTeX
9207 が混乱させられます),
9208 fancyページ様式は使用できません.その代わり,
9209 Memoirには,
9210 多くの独自のページ様式が付属してきます(
9211 \family sans
9212 文書\SpecialChar menuseparator
9213 設定\SpecialChar menuseparator
9214 ページレイアウト
9215 \family default
9216 参照).これらを章題ページに使用したい場合には,
9217 コマンド
9218 \family typewriter
9219
9220 \backslash
9221 chapterstyle
9222 \family default
9223 を,
9224 本文またはプリアンブルに記述する必要があります(例えば,
9225
9226 \family typewriter
9227
9228 \backslash
9229 chapterstyle{companion}
9230 \family default
9231 など).
9232 \end_layout
9233
9234 \begin_layout Description
9235 章立て:
9236  標準クラスでは,
9237 章立てコマンド(章・節・小節等)は,
9238 非必須引数を一つ取ることができます.これを用いて,
9239 目次やヘッダ用に別のタイトルを指定することができます(たとえば,
9240 タイトルが長すぎる場合などに用います).\SpecialChar LyX
9241 では,
9242 章や節の始めで
9243 \family sans
9244 挿入\SpecialChar menuseparator
9245 短縮タイトル
9246 \family default
9247 を使えば,
9248 これを指定することができます.一方,
9249 Memoirでは,
9250 第2の非必須引数を取ることができ,
9251 目次用のタイトルとヘッダ用のタイトルの指定を分離しています.\SpecialChar LyX
9252 では,
9253
9254 \family sans
9255 挿入
9256 \family default
9257 メニューから
9258 \family sans
9259 短縮タイトル
9260 \family default
9261 の特定の派生形の形で利用できます.
9262 \end_layout
9263
9264 \begin_layout Description
9265 目次・図一覧・表一覧:
9266  標準クラス(および他の多くのクラス)では,
9267 目次と図一覧および表一覧は,
9268 自動的に新規頁に置かれます.Memoirは,
9269 これとは別の方針を採ります.改頁を行いたい場合は,
9270 手動で頁区切りを入れなくてはなりません.
9271 \end_layout
9272
9273 \begin_layout Description
9274 タイトル頁:
9275  理由は不明ですが,
9276 Memoirはタイトルページに丁付けを行います(標準クラスでは,
9277 タイトルページは「empty」様式).タイトル頁に丁付けを行いたくない場合には,
9278 プリアンブルに
9279 \family typewriter
9280
9281 \backslash
9282 aliaspagestyle{title}{empty}
9283 \family default
9284 と入力してください.
9285 \end_layout
9286
9287 \begin_layout Description
9288 Article:
9289  クラスオプション
9290 \emph on
9291 article
9292 \emph default
9293 を用いる(
9294 \family sans
9295 \series bold
9296 文書\SpecialChar menuseparator
9297 設定\SpecialChar menuseparator
9298 文書クラス\SpecialChar menuseparator
9299 クラスオプション\SpecialChar menuseparator
9300 詳細設定
9301 \family default
9302 \series default
9303
9304 \begin_inset space \thinspace{}
9305 \end_inset
9306
9307 で入力)と,
9308 article様式をエミュレートできます.すなわち,
9309 (脚注・図・表等の)カウンタは,
9310 章毎にリセットされず,
9311 次の章は頁を改めず(ただし,
9312 「本物の」articleクラスとは違って,
9313 頁を改めることも可),
9314 部はbookクラスと同様に,
9315 独立の頁を使用します.
9316 \end_layout
9317
9318 \begin_layout Description
9319 Oldfontcommands:
9320  \SpecialChar LaTeX
9321 旧2.09版で使用されていた旧いフォントコマンド(
9322 \family typewriter
9323
9324 \backslash
9325 rm
9326 \family default
9327
9328 \family typewriter
9329
9330 \backslash
9331 it
9332 \family default
9333 など)は,
9334 Memoirにおいては,
9335 既定では使用することができません.Memoirがこれらのコマンドを検知すると,
9336 エラーを発して\SpecialChar LaTeX
9337 を停止させます.しかし,
9338 クラスオプション
9339 \emph on
9340 oldfontcommands
9341 \emph default
9342 を指定すると,
9343 これらのコマンドが容認され,
9344 エラーの代わりに警告を発するのみとなります(これによって,
9345 少なくとも\SpecialChar LaTeX
9346 は停止しなくなります).まだ,
9347 多くのパッケージと,
9348 就中多くのBib\SpecialChar TeX
9349 スタイルファイルが,
9350 これらのコマンドを使用しているので,
9351 我々はこのオプションを既定で使うこととしました.
9352 \end_layout
9353
9354 \begin_layout Subsubsection
9355 追加された機能
9356 \end_layout
9357
9358 \begin_layout Standard
9359 \SpecialChar LyX
9360 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
9361 \begin_inset Foot
9362 status collapsed
9363
9364 \begin_layout Plain Layout
9365 \begin_inset Flex URL
9366 status collapsed
9367
9368 \begin_layout Plain Layout
9369
9370 CTAN:/macros/latex/memoir/memman.pdf
9371 \end_layout
9372
9373 \end_inset
9374
9375
9376 \end_layout
9377
9378 \end_inset
9379
9380 を見てください.
9381 \end_layout
9382
9383 \begin_layout Description
9384 概要:
9385  概要が,
9386 追加された機能として扱われているのを不思議に思われるかもしれませんが,
9387 bookクラスとしては追加された機能なのです.通常bookクラスには概要はないのですが,
9388 memoirにはあります.これは,
9389 どこでも何回でも自由に使うことができます.
9390 \end_layout
9391
9392 \begin_layout Description
9393 章要約:
9394  この古い組版様式はご覧になったことがあるかも知れません.章の内容が,
9395 見出しの下と目次に要約されているものです(たとえば,
9396 「我らが英雄がトロヤに到着する.彼は友人を失うが,
9397 新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,
9398 章要約は章の下でのみ意味を持ちます.
9399 \end_layout
9400
9401 \begin_layout Description
9402 題辞:
9403  題辞(epigraph)は章頭の,
9404 気の利いた標語やモットーです.題辞環境は,
9405 そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(出典:
9406 非必須)は,
9407 短い線で区切られます.著者(出典)は,
9408
9409 \family sans
9410 挿入\SpecialChar menuseparator
9411 題辞出典
9412 \family default
9413 で入力できます.
9414 \end_layout
9415
9416 \begin_layout Description
9417 詩題:
9418  Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,
9419 \SpecialChar LyX
9420 は,
9421 そのうちいくつかしかサポートしていません.詩題はその一つです.これは詩用の中央揃えタイトルで,
9422 目次にも表示されます(詩句が詩の標準環境です.Memoirには,
9423 詩句の拡張版もありますが,
9424 これらを使うためには\SpecialChar TeX
9425 コードを使用しなくてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,
9426 \SpecialChar LyX
9427 ではそれができないためです).
9428 \end_layout
9429
9430 \begin_layout Description
9431 詩題*:
9432  目次に現れない他は詩題と同じです.
9433 \end_layout
9434
9435 \begin_layout Subsection
9436 Recipe Book
9437 \end_layout
9438
9439 \begin_layout Standard
9440
9441 \family sans
9442 RecipeBook
9443 \family default
9444 文書クラスは,
9445
9446 \family sans
9447 KOMA-Script
9448 \begin_inset space \space{}
9449 \end_inset
9450
9451 Book
9452 \family default
9453 文書クラスを使用しますが,
9454 以下の2つの環境を追加します.
9455 \end_layout
9456
9457 \begin_layout Description
9458 レシピ 二重水平線を引いた中央揃えボールド体の見出しを生成する
9459 \family sans
9460 \series bold
9461 小々節
9462 \family default
9463 \series default
9464 階層の連番節環境
9465 \end_layout
9466
9467 \begin_layout Description
9468 材料 
9469 \emph on
9470 材料
9471 \emph default
9472 が記述される
9473 \family sans
9474 \series bold
9475 記述
9476 \family default
9477 \series default
9478 環境で,
9479 環境の終わりに水平線が引かれます
9480 \end_layout
9481
9482 \begin_layout Standard
9483
9484 \family sans
9485 \series bold
9486 ファイル\SpecialChar menuseparator
9487 用例を開く\SpecialChar menuseparator
9488 書籍\SpecialChar menuseparator
9489
9490 \series default
9491 Recipe Book
9492 \family default
9493 に使用法が描かれています.
9494 \end_layout
9495
9496 \begin_layout Standard
9497 このクラスは,
9498 1ページに一つか二つのレシピを組版するようにデザインされています.ハイパーリンク化された目次とページ番号によって,
9499 レシピをめくるのが便利になっています.
9500 \end_layout
9501
9502 \begin_layout Section
9503 履歴書
9504 \end_layout
9505
9506 \begin_layout Subsection
9507 Europass (2013)
9508 \end_layout
9509
9510 \begin_layout Standard
9511
9512 \family sans
9513 Europass (2013)
9514 \family default
9515 文書クラスは,
9516 2013年欧州委員会推奨の「Europass CV」の非公式実装である
9517 \family typewriter
9518 europasscv.cls
9519 \family default
9520 文書クラスを提供します.
9521 \family sans
9522 \series bold
9523 ファイル\SpecialChar menuseparator
9524 用例を開く\SpecialChar menuseparator
9525 履歴書\SpecialChar menuseparator
9526
9527 \series default
9528 Europass (2013)
9529 \begin_inset space \thinspace{}
9530 \end_inset
9531
9532
9533 \family default
9534 が使用法の案内をします.ドキュメンテーションは
9535 \begin_inset CommandInset href
9536 LatexCommand href
9537 name "CTAN"
9538 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
9539 literal "false"
9540
9541 \end_inset
9542
9543 から利用可能です.
9544 \end_layout
9545
9546 \begin_layout Subsection
9547 Europe CV
9548 \end_layout
9549
9550 \begin_layout Standard
9551
9552 \family sans
9553 Europe CV
9554 \family default
9555 文書クラスは,
9556 2002年欧州委員会推奨の「Europass CV」の非公式実装である
9557 \family typewriter
9558 europecv.cls
9559 \family default
9560 文書クラスを提供します.
9561 \family sans
9562 \series bold
9563 ファイル\SpecialChar menuseparator
9564 用例を開く\SpecialChar menuseparator
9565 履歴書\SpecialChar menuseparator
9566
9567 \series default
9568 Europe CV
9569 \begin_inset space \thinspace{}
9570 \end_inset
9571
9572
9573 \family default
9574 が使用法の案内をします.ドキュメンテーションは
9575 \begin_inset CommandInset href
9576 LatexCommand href
9577 name "CTAN"
9578 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
9579 literal "false"
9580
9581 \end_inset
9582
9583 から利用可能です.
9584 \end_layout
9585
9586 \begin_layout Subsection
9587 Modern CV
9588 \end_layout
9589
9590 \begin_layout Standard
9591
9592 \family sans
9593 Modern CV
9594 \family default
9595 文書クラスは,
9596
9597 \family typewriter
9598 moderncv.cls
9599 \family default
9600 文書クラスを提供します.これによって,
9601 カスタマイズ可能な履歴書を生成することができます.
9602 \family sans
9603 \series bold
9604 ファイル\SpecialChar menuseparator
9605 用例を開く\SpecialChar menuseparator
9606 履歴書\SpecialChar menuseparator
9607
9608 \series default
9609 Modern CV
9610 \begin_inset space \thinspace{}
9611 \end_inset
9612
9613
9614 \family default
9615 が使用法の案内をします.ドキュメンテーションは
9616 \begin_inset CommandInset href
9617 LatexCommand href
9618 name "CTAN"
9619 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
9620 literal "false"
9621
9622 \end_inset
9623
9624 から利用可能です.
9625 \end_layout
9626
9627 \begin_layout Subsection
9628 Simple
9629 \end_layout
9630
9631 \begin_layout Standard
9632
9633 \family sans
9634 Simple CV
9635 \family default
9636 文書クラスは,
9637 元々\SpecialChar LyX
9638 で使用するために開発された
9639 \family typewriter
9640 simplecv.cls
9641 \family default
9642 文書クラスを提供します.
9643 \family sans
9644 \series bold
9645 ファイル\SpecialChar menuseparator
9646 用例を開く\SpecialChar menuseparator
9647 履歴書\SpecialChar menuseparator
9648
9649 \series default
9650 Simple CV
9651 \begin_inset space \thinspace{}
9652 \end_inset
9653
9654
9655 \family default
9656 が使用法の案内をします.ドキュメンテーションは
9657 \begin_inset CommandInset href
9658 LatexCommand href
9659 name "CTAN"
9660 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
9661 literal "false"
9662
9663 \end_inset
9664
9665 から利用可能です.
9666 \end_layout
9667
9668 \begin_layout Section
9669 書簡
9670 \end_layout
9671
9672 \begin_layout Standard
9673
9674 \family sans
9675 KOMA-Script Letter (V.
9676  2)
9677 \family default
9678  (第
9679 \begin_inset CommandInset ref
9680 LatexCommand ref
9681 reference "subsec:新しいletterクラス"
9682 plural "false"
9683 caps "false"
9684 noprefix "false"
9685 nolink "false"
9686
9687 \end_inset
9688
9689 節)および
9690 \family typewriter
9691 Letter (フォント寸法を追加した標準クラス)
9692 \family default
9693  (第
9694 \begin_inset CommandInset ref
9695 LatexCommand ref
9696 reference "subsec:追加フォント寸法"
9697 plural "false"
9698 caps "false"
9699 noprefix "false"
9700 nolink "false"
9701
9702 \end_inset
9703
9704 節) 文書クラスも参照してください.
9705 \end_layout
9706
9707 \begin_layout Subsection
9708 DIN-Brief
9709 \end_layout
9710
9711 \begin_layout Standard
9712
9713 \family sans
9714 DIN-Brief
9715 \family default
9716 文書クラスは,
9717 ドイツ規格協会の標準(
9718 \emph on
9719 Deutsches Institut f
9720 \begin_inset ERT
9721 status collapsed
9722
9723 \begin_layout Plain Layout
9724
9725
9726 \backslash
9727
9728 \begin_inset Quotes erd
9729 \end_inset
9730
9731 {u}
9732 \end_layout
9733
9734 \end_inset
9735
9736 r Normung
9737 \emph default
9738
9739 DIN)に則った書簡を書くのに用いる
9740 \family typewriter
9741 dinbrief.cls
9742 \family default
9743  \SpecialChar LaTeX
9744 クラスへのサポートを提供します.
9745 \family sans
9746 \series bold
9747 ファイル\SpecialChar menuseparator
9748 新規(ひな型使用)\SpecialChar menuseparator
9749 書簡\SpecialChar menuseparator
9750
9751 \series default
9752 DIN-Brief
9753 \begin_inset space \thinspace{}
9754 \end_inset
9755
9756
9757 \family default
9758 メニューが使用法の案内をします.ドキュメンテーションは
9759 \begin_inset CommandInset href
9760 LatexCommand href
9761 name "CTAN"
9762 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
9763 literal "false"
9764
9765 \end_inset
9766
9767 から利用可能です.
9768 \end_layout
9769
9770 \begin_layout Subsection
9771 フランス語Letter
9772 \begin_inset space \space{}
9773 \end_inset
9774
9775 (frletter)
9776 \end_layout
9777
9778 \begin_layout Standard
9779
9780 \family sans
9781 \series bold
9782 フランス語
9783 \series default
9784 Letter
9785 \begin_inset space \space{}
9786 \end_inset
9787
9788 (frletter)
9789 \family default
9790 文書クラスは,
9791 フランス語の慣習に則った書簡を書くのに用いる
9792 \family typewriter
9793 frletter.cls
9794 \family default
9795  \SpecialChar LaTeX
9796 クラスへのサポートを提供します.
9797 \family sans
9798 \series bold
9799 ファイル\SpecialChar menuseparator
9800 新規(ひな型使用)\SpecialChar menuseparator
9801 書簡\SpecialChar menuseparator
9802 フランス語
9803 \series default
9804 Letter
9805 \begin_inset space \space{}
9806 \end_inset
9807
9808 (frletter)
9809 \begin_inset space \thinspace{}
9810 \end_inset
9811
9812
9813 \family default
9814 メニューが使用法の案内をします.
9815 \end_layout
9816
9817 \begin_layout Subsection
9818 フランス語Letter
9819 \begin_inset space \space{}
9820 \end_inset
9821
9822 (lettre)
9823 \end_layout
9824
9825 \begin_layout Standard
9826
9827 \family sans
9828 \series bold
9829 フランス語
9830 \series default
9831 Letter
9832 \begin_inset space \space{}
9833 \end_inset
9834
9835 (lettre)
9836 \family default
9837 文書クラスは,
9838 フランス語の書簡やファックス,
9839 封筒を書くのに用いる
9840 \family typewriter
9841 lettre.cls
9842 \family default
9843  \SpecialChar LaTeX
9844 クラスへのサポートを提供します.
9845 \family sans
9846 \series bold
9847 ファイル\SpecialChar menuseparator
9848 新規(ひな型使用)\SpecialChar menuseparator
9849 書簡\SpecialChar menuseparator
9850 フランス語
9851 \series default
9852 Letter
9853 \begin_inset space \space{}
9854 \end_inset
9855
9856 (lettre)
9857 \begin_inset space \thinspace{}
9858 \end_inset
9859
9860
9861 \family default
9862 メニューが使用法の案内をします.ドキュメンテーションは
9863 \begin_inset CommandInset href
9864 LatexCommand href
9865 name "CTAN"
9866 target "http://mirrors.ctan.org/macros/latex/contrib/lettre/lettre.pdf"
9867 literal "false"
9868
9869 \end_inset
9870
9871 から利用可能です.
9872 \end_layout
9873
9874 \begin_layout Subsection
9875 G-Brief
9876 \begin_inset space \space{}
9877 \end_inset
9878
9879 (V.
9880 \begin_inset space \thinspace{}
9881 \end_inset
9882
9883 2)
9884 \end_layout
9885
9886 \begin_layout Standard
9887
9888 \family sans
9889 G-Brief
9890 \begin_inset space \space{}
9891 \end_inset
9892
9893 (V.
9894 \begin_inset space \thinspace{}
9895 \end_inset
9896
9897 2)
9898 \family default
9899 文書クラスは,
9900 ドイツ語の慣習に則った書簡を書くのに用いる
9901 \family typewriter
9902 g-brief2.cls
9903 \family default
9904  \SpecialChar LaTeX
9905 クラスへのサポートを提供します.
9906 \family sans
9907 \series bold
9908 ファイル\SpecialChar menuseparator
9909 新規(ひな型使用)\SpecialChar menuseparator
9910 書簡\SpecialChar menuseparator
9911
9912 \series default
9913 G-Brief
9914 \begin_inset space \space{}
9915 \end_inset
9916
9917 (V.
9918 \begin_inset space \thinspace{}
9919 \end_inset
9920
9921 2)
9922 \begin_inset space \thinspace{}
9923 \end_inset
9924
9925
9926 \family default
9927 メニューが使用法の案内をします.ドキュメンテーションは
9928 \begin_inset CommandInset href
9929 LatexCommand href
9930 name "CTAN"
9931 target "http://mirrors.ctan.org/macros/latex/contrib/g-brief/g-brief.pdf"
9932 literal "false"
9933
9934 \end_inset
9935
9936 から利用可能です.
9937 \end_layout
9938
9939 \begin_layout Section
9940 プレゼンテーション
9941 \end_layout
9942
9943 \begin_layout Subsection
9944 Beamer
9945 \end_layout
9946
9947 \begin_layout Standard
9948
9949 \family sans
9950 Beamer
9951 \family default
9952 文書クラスは,
9953 プレゼンテーションを作成するのに用いる
9954 \family typewriter
9955 beamer.cls
9956 \family default
9957  \SpecialChar LaTeX
9958 クラスを使用します.
9959 \family sans
9960 \series bold
9961 ファイル\SpecialChar menuseparator
9962 新規(ひな型使用)\SpecialChar menuseparator
9963 プレゼンテーション\SpecialChar menuseparator
9964
9965 \series default
9966 Beamer
9967 \begin_inset space \thinspace{}
9968 \end_inset
9969
9970
9971 \family default
9972 メニューにあるファイルか,
9973
9974 \family sans
9975 \series bold
9976 ヘルプ\SpecialChar menuseparator
9977 用途別説明書\SpecialChar menuseparator
9978
9979 \series default
9980 Beamer
9981 \series bold
9982 プレゼンテーション
9983 \family default
9984 \series default
9985
9986 \begin_inset space \thinspace{}
9987 \end_inset
9988
9989 が使用法の案内をします.ドキュメンテーションは
9990 \begin_inset CommandInset href
9991 LatexCommand href
9992 name "CTAN"
9993 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
9994 literal "false"
9995
9996 \end_inset
9997
9998 から利用可能です.
9999 \end_layout
10000
10001 \begin_layout Subsection
10002 Foil\SpecialChar TeX
10003
10004 \begin_inset CommandInset label
10005 LatexCommand label
10006 name "subsec:foiltex"
10007
10008 \end_inset
10009
10010
10011 \end_layout
10012
10013 \begin_layout Standard
10014
10015 \noun on
10016 Allan Rae
10017 \noun default
10018 原文;
10019 \SpecialChar LyX
10020 チーム改訂
10021 \end_layout
10022
10023 \begin_layout Subsubsection
10024 はじめに
10025 \end_layout
10026
10027 \begin_layout Standard
10028
10029 \family sans
10030 Foil\SpecialChar TeX
10031
10032 \family default
10033 文書クラスは,
10034 OHPスライドを作成するのに用いる
10035 \family typewriter
10036 foils.cls
10037 \family default
10038 文書クラスを提供します.これを行う2つの文書クラス,
10039
10040 \family sans
10041 slides
10042 \family default
10043 文書クラス(第
10044 \begin_inset CommandInset ref
10045 LatexCommand ref
10046 reference "sec:slitex"
10047 plural "false"
10048 caps "false"
10049 noprefix "false"
10050 nolink "false"
10051
10052 \end_inset
10053
10054 節参照)と
10055 \family sans
10056 Foil\SpecialChar TeX
10057
10058 \family default
10059 スライドクラスとがあります.2023年現在,
10060 前者のメンテナンスは続けられていますが,
10061
10062 \family sans
10063 Foil\SpecialChar TeX
10064
10065 \family default
10066 は2008年以降メンテナンスされていません.この節は後者の記載を行います.お使いのコンピューターに
10067 \family sans
10068 Foil\SpecialChar TeX
10069
10070 \family default
10071 文書クラスが導入されていない場合には,
10072 おそらく
10073 \family sans
10074 slides
10075 \family default
10076 文書クラスを使わなくてはなりません.
10077 \family typewriter
10078 foils.cls
10079 \family default
10080 文書クラスを導入したい場合には,
10081
10082 \begin_inset CommandInset href
10083 LatexCommand href
10084 name "CTAN"
10085 target "https://www.ctan.org/pkg/foiltex"
10086 literal "false"
10087
10088 \end_inset
10089
10090 からダウンロード可能です.また,
10091 取扱説明書『カスタマイズ篇』の「文書クラスを新規に導入する」の章をご一読ください.
10092 \end_layout
10093
10094 \begin_layout Subsubsection
10095 最初の一歩
10096 \end_layout
10097
10098 \begin_layout Standard
10099 いうまでもなく,
10100 この文書クラスを使うには,
10101
10102 \family sans
10103 \series bold
10104 文書\SpecialChar menuseparator
10105 設定\SpecialChar menuseparator
10106 文書クラス
10107 \family default
10108 \series default
10109
10110 \begin_inset space \thinspace{}
10111 \end_inset
10112
10113 メニューの
10114 \family sans
10115 \series bold
10116 文書クラス
10117 \family default
10118 \series default
10119 ドロップダウンで「
10120 \family sans
10121 FoilTeX
10122 \family default
10123 」を選択する必要があります.また,
10124
10125 \family sans
10126 \series bold
10127 文書設定
10128 \family default
10129 \series default
10130 ダイアログ中には,
10131 以下のように,
10132 このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
10133 \end_layout
10134
10135 \begin_layout Itemize
10136
10137 \family sans
10138 \series bold
10139 文書設定
10140 \family default
10141 \series default
10142 ダイアログ中の,
10143
10144 \family sans
10145 \series bold
10146 両面文書
10147 \family default
10148 \series default
10149 オプションと
10150 \family sans
10151 \series bold
10152 二段組文書
10153 \family default
10154 \series default
10155 オプションは変更しないでください.これらは 
10156 \family sans
10157 foils
10158 \family default
10159 クラスでは無視されます.
10160 \end_layout
10161
10162 \begin_layout Itemize
10163 既定のフォント寸法は20ptであり,
10164 17
10165 \begin_inset space \thinspace{}
10166 \end_inset
10167
10168 pt・25
10169 \begin_inset space \thinspace{}
10170 \end_inset
10171
10172 pt・30
10173 \begin_inset space \thinspace{}
10174 \end_inset
10175
10176 ptを選択することも可能です.
10177 \end_layout
10178
10179 \begin_layout Itemize
10180 既定のフォントは
10181 \family sans
10182 sans
10183 \family default
10184  
10185 \family sans
10186 serif
10187 \family default
10188 ですが,
10189 数式ではすべて,
10190 通常のローマン体が使用されます.
10191 \end_layout
10192
10193 \begin_layout Itemize
10194 Foil\SpecialChar TeX
10195 は,
10196 35
10197 \begin_inset space \thinspace{}
10198 \end_inset
10199
10200 mmスライド用の特殊寸法の他,
10201 A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
10202 \end_layout
10203
10204 \begin_layout Itemize
10205
10206 \family sans
10207 \series bold
10208 フロートの配置
10209 \family default
10210 \series default
10211 の設定は無視されますので,
10212 わざわざ変更する必要はありません.フロートはすべて,
10213 本文中で定義された位置に表示されます.
10214 \end_layout
10215
10216 \begin_layout Itemize
10217 このクラスの
10218 \family sans
10219 \series bold
10220 ページレイアウト
10221 \family default
10222 \series default
10223 の設定は,
10224 若干異なった挙動を示します.Foil\SpecialChar TeX
10225 では,
10226 ユーザ定義のロゴをはじめ,
10227 フッタとへッダに広範な設定ができます.詳細については第
10228 \begin_inset CommandInset ref
10229 LatexCommand ref
10230 reference "sec:foilfoot"
10231 nolink "false"
10232
10233 \end_inset
10234
10235 節をご覧ください.タイトルページは,
10236 文書中の他のページとは異なった取扱がなされ,
10237 ページ番号は
10238 \emph on
10239 つねに
10240 \emph default
10241 付けられず,
10242 (ロゴが定義されていれば)ロゴは,
10243
10244 \emph on
10245 つねに
10246 \emph default
10247 ページ下部中央に表示されます.使用できるページ様式とその挙動は,
10248 以下の通りです.
10249 \end_layout
10250
10251 \begin_deeper
10252 \begin_layout Labeling
10253 \labelwidthstring MMMMMMM
10254
10255 \family sans
10256 \series bold
10257 empty
10258 \family default
10259 \series default
10260  最終出力には,
10261 ページ番号をはじめ,
10262 へッダ・フッタが出力されません(もちろん脚注は除きます).
10263 \end_layout
10264
10265 \begin_layout Labeling
10266 \labelwidthstring MMMMMMM
10267
10268 \family sans
10269 \series bold
10270 plain
10271 \family default
10272 \series default
10273  最終出力には,
10274 ページ番号がページ下部の中央に出力されますが,
10275 他のへッダ・フッタは出力されません(脚注除く).
10276 \end_layout
10277
10278 \begin_layout Labeling
10279 \labelwidthstring MMMMMMM
10280
10281 \series bold
10282 foilheadings
10283 \series default
10284  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
10285 \end_layout
10286
10287 \begin_layout Labeling
10288 \labelwidthstring MMMMMMM
10289
10290 \series bold
10291 fancy
10292 \series default
10293  これは
10294 \family sans
10295 fancyheadings
10296 \family default
10297 パッケージを使えるようにします.ただし,
10298 Foil\SpecialChar TeX
10299 パッケージの作者は,
10300 ページレイアウトが崩れる可能性があるので,
10301 これを使用することは勧めないと言及しています.
10302 \end_layout
10303
10304 \end_deeper
10305 \begin_layout Paragraph
10306 任意設定クラスオプション
10307 \end_layout
10308
10309 \begin_layout Standard
10310 以下のオプションは
10311 \family sans
10312 文書設定
10313 \family default
10314 ダイアログの任意設定クラスオプションボックスで使うことができます.
10315 \end_layout
10316
10317 \begin_layout Labeling
10318 \labelwidthstring MMMMMMx
10319
10320 \series bold
10321 35mmSlide
10322 \series default
10323  これは,
10324 ページレイアウトを縦7.33インチ横11インチに設定します.これは35
10325 \begin_inset space \space{}
10326 \end_inset
10327
10328 mmスライドの縦横比にほぼ等しく,
10329 このメディアを作る作業が若干易しくなります.
10330 \end_layout
10331
10332 \begin_layout Labeling
10333 \labelwidthstring MMMMMMx
10334
10335 \series bold
10336 headrule
10337 \series default
10338  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
10339 \end_layout
10340
10341 \begin_layout Labeling
10342 \labelwidthstring MMMMMMx
10343
10344 \series bold
10345 footrule
10346 \series default
10347  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
10348 \end_layout
10349
10350 \begin_layout Labeling
10351 \labelwidthstring MMMMMMx
10352
10353 \series bold
10354 dvips
10355 \series default
10356  これは,
10357 新規
10358 \family sans
10359 foils
10360 \family default
10361 文書を作成する度に自動的に設定されます.このオプションは,
10362 横向きに設定されたページを回転させるのに,
10363 dvipsドライバを使うようFoil\SpecialChar TeX
10364 に指示します.
10365 \end_layout
10366
10367 \begin_layout Labeling
10368 \labelwidthstring MMMMMMx
10369
10370 \series bold
10371 landscape
10372 \series default
10373  このオプションは,
10374 用紙寸法を横向きページ大に変更するだけで,
10375 回転は行いません.したがって,
10376 このオプションを使う場合は,
10377 各ページを回転させる外部プログラムを使用する,
10378 プリンタに用紙を横向きに給紙する必要があります.また,
10379 このオプションは,
10380
10381 \family sans
10382 Foilhead
10383 \family default
10384 環境と
10385 \family sans
10386 Rotatefoilhead
10387 \family default
10388 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
10389 \end_layout
10390
10391 \begin_layout Labeling
10392 \labelwidthstring MMMMMMx
10393
10394 \series bold
10395 leqno
10396 \series default
10397  数式番号を左側に付けます.
10398 \end_layout
10399
10400 \begin_layout Labeling
10401 \labelwidthstring MMMMMMx
10402
10403 \series bold
10404 fleqn
10405 \series default
10406  数式を左揃えにします.
10407 \end_layout
10408
10409 \begin_layout Subsubsection
10410 サポートされる環境
10411 \end_layout
10412
10413 \begin_layout Standard
10414 他のクラスで標準的にサポートされている環境は,
10415
10416 \family sans
10417 Foil\SpecialChar TeX
10418
10419 \family default
10420 クラスでもサポートされています.それ以外に,
10421 Foil\SpecialChar TeX
10422 が提供している環境と,
10423 \SpecialChar LyX
10424 が付け加えた環境があります.以下の環境は,
10425 他のクラスと共通の環境です.
10426 \end_layout
10427
10428 \begin_layout Standard
10429
10430 \family sans
10431 \begin_inset Flex Multiple Columns
10432 status open
10433
10434 \begin_layout Itemize
10435
10436 \series bold
10437 標準
10438 \end_layout
10439
10440 \begin_layout Itemize
10441
10442 \series bold
10443 箇条書き(記号)
10444 \end_layout
10445
10446 \begin_layout Itemize
10447
10448 \series bold
10449 箇条書き(連番)
10450 \end_layout
10451
10452 \begin_layout Itemize
10453
10454 \series bold
10455 箇条書き(記述)
10456 \end_layout
10457
10458 \begin_layout Itemize
10459
10460 \series bold
10461 箇条書き(リスト)
10462 \end_layout
10463
10464 \begin_layout Itemize
10465
10466 \family sans
10467 \SpecialChar LyX
10468
10469 \family default
10470 \series bold
10471 コード
10472 \end_layout
10473
10474 \begin_layout Itemize
10475
10476 \series bold
10477 詩句
10478 \end_layout
10479
10480 \begin_layout Itemize
10481
10482 \series bold
10483 引用(字下げあり)
10484 \end_layout
10485
10486 \begin_layout Itemize
10487
10488 \series bold
10489 引用(字下げなし)
10490 \end_layout
10491
10492 \begin_layout Itemize
10493
10494 \series bold
10495 タイトル
10496 \end_layout
10497
10498 \begin_layout Itemize
10499
10500 \series bold
10501 著者
10502 \end_layout
10503
10504 \begin_layout Itemize
10505
10506 \series bold
10507 日付
10508 \end_layout
10509
10510 \begin_layout Itemize
10511
10512 \series bold
10513 概要
10514 \end_layout
10515
10516 \begin_layout Itemize
10517
10518 \series bold
10519 書誌情報
10520 \end_layout
10521
10522 \begin_layout Itemize
10523
10524 \series bold
10525 住所
10526 \end_layout
10527
10528 \begin_layout Itemize
10529
10530 \series bold
10531 右寄せ住所
10532 \end_layout
10533
10534 \end_inset
10535
10536
10537 \end_layout
10538
10539 \begin_layout Standard
10540 つまり,
10541 節区切りを除けば,
10542 主な環境のすべてです.一枚のスライドは,
10543 基本的にタイトルと本文を備えた自己完結した節なので,
10544
10545 \family sans
10546 Foil
10547 \family default
10548 \SpecialChar TeX
10549 は新しいスライドを始める以下のようなコマンドを備えています.
10550 \end_layout
10551
10552 \begin_layout Itemize
10553
10554 \family sans
10555 \series bold
10556 スライドタイトル
10557 \series default
10558 (Foilhead)
10559 \end_layout
10560
10561 \begin_layout Itemize
10562
10563 \family sans
10564 \series bold
10565 横置きスライドタイトル
10566 \series default
10567 (Rotatefoilhead)
10568 \end_layout
10569
10570 \begin_layout Standard
10571 \SpecialChar LyX
10572 は,
10573 以下のような,
10574 これらを若干修正した環境も用意しています.
10575 \end_layout
10576
10577 \begin_layout Itemize
10578
10579 \family sans
10580 \series bold
10581 スライドタイトル
10582 \series default
10583 (
10584 \series bold
10585
10586 \series default
10587 )(ShortFoilhead)
10588 \end_layout
10589
10590 \begin_layout Itemize
10591
10592 \family sans
10593 \series bold
10594 横置きスライドタイトル
10595 \series default
10596 (
10597 \series bold
10598
10599 \series default
10600 )(ShortRotatefoilhead)
10601 \end_layout
10602
10603 \begin_layout Standard
10604 これらの違いは次節で説明します.
10605 \end_layout
10606
10607 \begin_layout Standard
10608 スライドは,
10609 アイデアを説明したり,
10610 新しい定理を説明したりするのにしばしば使われるので,
10611
10612 \family sans
10613 Foil
10614 \family default
10615 \SpecialChar TeX
10616 はそれらを説明するのに便利な環境を幅広く用意しています.
10617 \end_layout
10618
10619 \begin_layout Standard
10620
10621 \family sans
10622 \begin_inset Flex Multiple Columns
10623 status open
10624
10625 \begin_layout Itemize
10626
10627 \series bold
10628 定理
10629 \end_layout
10630
10631 \begin_layout Itemize
10632
10633 \series bold
10634 補題
10635 \end_layout
10636
10637 \begin_layout Itemize
10638
10639 \series bold
10640
10641 \end_layout
10642
10643 \begin_layout Itemize
10644
10645 \series bold
10646 命題
10647 \end_layout
10648
10649 \begin_layout Itemize
10650
10651 \series bold
10652 定義
10653 \end_layout
10654
10655 \begin_layout Itemize
10656
10657 \series bold
10658 証明
10659 \end_layout
10660
10661 \begin_layout Itemize
10662
10663 \series bold
10664 定理*
10665 \end_layout
10666
10667 \begin_layout Itemize
10668
10669 \series bold
10670 補題*
10671 \end_layout
10672
10673 \begin_layout Itemize
10674
10675 \series bold
10676 系*
10677 \end_layout
10678
10679 \begin_layout Itemize
10680
10681 \series bold
10682 命題*
10683 \end_layout
10684
10685 \begin_layout Itemize
10686
10687 \series bold
10688 定義*
10689 \end_layout
10690
10691 \end_inset
10692
10693
10694 \end_layout
10695
10696 \begin_layout Standard
10697 星付き版は連番が振られず,
10698 星なし版は連番が振られます.他に,
10699 \SpecialChar LyX
10700 で追加された以下の2つの箇条書き環境があります.
10701 \end_layout
10702
10703 \begin_layout Itemize
10704
10705 \family sans
10706 \series bold
10707 箇条書き(チック)
10708 \end_layout
10709
10710 \begin_layout Itemize
10711
10712 \family sans
10713 \series bold
10714 箇条書き(クロス)
10715 \end_layout
10716
10717 \begin_layout Standard
10718 Foil\SpecialChar TeX
10719 には,
10720 強力なヘッダ機能とフッタ機能があり,
10721 これらはプリアンブルで設定するのが最良ですが,
10722 文章中のどこでも設定することができます.もし文書中でこれらの設定を変更したい場合には,
10723 スライドの一番上,
10724 foilheadの直後で行うのが良いでしょう.
10725 \end_layout
10726
10727 \begin_layout Standard
10728 この目的のためには,
10729 以下のコマンドスタイルがあります(
10730 \shape smallcaps
10731 Martin Vermeer).
10732 \end_layout
10733
10734 \begin_layout Standard
10735 \begin_inset Flex Multiple Columns
10736 status open
10737
10738 \begin_layout Itemize
10739
10740 \family sans
10741 \series bold
10742 グラフィックスロゴ
10743 \end_layout
10744
10745 \begin_layout Itemize
10746
10747 \family sans
10748 \series bold
10749 配布制限
10750 \end_layout
10751
10752 \begin_layout Itemize
10753
10754 \family sans
10755 \series bold
10756 右フッタ
10757 \end_layout
10758
10759 \begin_layout Itemize
10760
10761 \family sans
10762 \series bold
10763 右ヘッダ
10764 \end_layout
10765
10766 \begin_layout Itemize
10767
10768 \family sans
10769 \series bold
10770 左ヘッダ
10771 \end_layout
10772
10773 \begin_deeper
10774 \begin_layout Plain Layout
10775 \begin_inset space ~
10776 \end_inset
10777
10778
10779 \end_layout
10780
10781 \end_deeper
10782 \end_inset
10783
10784
10785 \end_layout
10786
10787 \begin_layout Standard
10788 Foil\SpecialChar TeX
10789 が提供しているコマンドで,
10790 \SpecialChar LyX
10791 が直接サポートしていないコマンドもありますが,
10792 これらの説明と使い方については,
10793
10794 \begin_inset CommandInset ref
10795 LatexCommand ref
10796 reference "sec:unsuppfoils"
10797 nolink "false"
10798
10799 \end_inset
10800
10801 節で行います.
10802 \end_layout
10803
10804 \begin_layout Subsubsection
10805 スライドの組を作る
10806 \end_layout
10807
10808 \begin_layout Standard
10809 この節は,
10810 様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,
10811
10812 \family sans
10813 \series bold
10814 ファイル\SpecialChar menuseparator
10815 用例を開く\SpecialChar menuseparator
10816 プレゼンテーション\SpecialChar menuseparator
10817
10818 \series default
10819 Foils
10820 \family default
10821
10822 \begin_inset space \thinspace{}
10823 \end_inset
10824
10825 をご覧ください.
10826 \end_layout
10827
10828 \begin_layout Paragraph
10829 タイトルページを作る
10830 \end_layout
10831
10832 \begin_layout Standard
10833
10834 \family sans
10835 \series bold
10836 タイトル
10837 \family default
10838 \series default
10839
10840 \family sans
10841 \series bold
10842 著者
10843 \family default
10844 \series default
10845
10846 \family sans
10847 \series bold
10848 日付
10849 \family default
10850 \series default
10851
10852 \family sans
10853 \series bold
10854 概要
10855 \family default
10856 \series default
10857 環境のある他のクラスとは異なり,
10858
10859 \family sans
10860 FoilTeX
10861 \family default
10862 は独立したページにタイトルを作成します.
10863 \family sans
10864 日付
10865 \family default
10866 環境を使用しなかった場合には,
10867 \SpecialChar LaTeX
10868 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
10869 \end_layout
10870
10871 \begin_layout Paragraph
10872 新しいスライドを開始する
10873 \end_layout
10874
10875 \begin_layout Standard
10876 前述のように,
10877 新しいスライドを開始するには,
10878 4つの方法があります.縦向きのスライドを開始するには,
10879
10880 \family sans
10881 \series bold
10882 スライドタイトル
10883 \series default
10884 (Foilhead)
10885 \family default
10886
10887 \family sans
10888 \series bold
10889 スライドタイトル
10890 \series default
10891 (小)(ShortFoilhead)
10892 \family default
10893 を使用します.両環境の違いは,
10894 スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
10895 \end_layout
10896
10897 \begin_layout Standard
10898 横向きのスライドは,
10899
10900 \family sans
10901 \series bold
10902 横向きスライドタイトル
10903 \series default
10904 (Rotatefoilhead)
10905 \family default
10906
10907 \family sans
10908 \series bold
10909 横向きスライドタイトル
10910 \series default
10911 (
10912 \series bold
10913
10914 \series default
10915 )(ShortRotatefoilhead)
10916 \family default
10917 環境を使用して生成します.ここでも両環境の違いは,
10918 タイトルと本文の間の余白のみです.どちらの場合も,
10919 (小)と記された版は,
10920 タイトルと本文の間の余白が,
10921 0.5インチ(約1.27cm)小さくなります.
10922 \end_layout
10923
10924 \begin_layout Standard
10925 横向きのスライドをサポートする際,
10926 一つ問題となるのは,
10927 スライドを回転させようと思うと,
10928 PostScript出力を生成するのに
10929 \family typewriter
10930 dvips
10931 \family default
10932 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
10933
10934 \family typewriter
10935 dvips
10936 \family default
10937 ドライバを持っていなくても,
10938 横向きのスライドをつくることができます ;-)
10939 \end_layout
10940
10941 \begin_layout Paragraph
10942 定理・補題・証明など
10943 \end_layout
10944
10945 \begin_layout Standard
10946 これらの環境の同じ型をお互いに直接続けて置くことはできません.通常の段落開業を用いると,
10947 2つの環境をマージしたかのように,
10948 前の環境が延長されるだけです.そうではなく,
10949 いわゆる分離線を挿入する必要があります.『ユーザーの手引き』の「入れ子の分離」の節を参照してください.
10950 \end_layout
10951
10952 \begin_layout Paragraph
10953 箇条書き
10954 \end_layout
10955
10956 \begin_layout Standard
10957 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,
10958 二つの新しい様式を使用することができます.ここでは,
10959 その新しい様式のみを説明することにします.他の箇条書き環境について詳しく知りたい場合には,
10960 ユーザーの手引きをご覧ください.記号による箇条書きを使用したい場合には,
10961 上記第
10962 \begin_inset CommandInset ref
10963 LatexCommand ref
10964 reference "chap:ブリット"
10965 nolink "false"
10966
10967 \end_inset
10968
10969 節の
10970 \family sans
10971 箇条書き(記号)ブリットの指定
10972 \family default
10973 の節も,
10974 読まれることが望ましいでしょう.
10975 \end_layout
10976
10977 \begin_layout Standard
10978
10979 \family sans
10980 \series bold
10981 箇条書き(チック)
10982 \family default
10983 \series default
10984
10985 \family sans
10986 \series bold
10987 箇条書き(クロス)
10988 \family default
10989 \series default
10990 の二つの新しい様式は,
10991 チェック印や
10992 \begin_inset Formula $\times$
10993 \end_inset
10994
10995 印を箇条書きのラベルに使用する専用の環境を提供することで,
10996 予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
10997
10998 \family sans
10999 \series bold
11000 箇条書き(記号)
11001 \family default
11002 \series default
11003 の派生型を専用に用意したものに過ぎません.ただし,
11004 これらは,
11005
11006 \family typewriter
11007 psnfss
11008 \family default
11009 パッケージが導入済であることを要求します.
11010 \end_layout
11011
11012 \begin_layout Paragraph
11013 図と表
11014 \end_layout
11015
11016 \begin_layout Standard
11017 Foil\SpecialChar TeX
11018 では,
11019 図表フロートは,
11020 本文中の挿入箇所にこれらが正確に表示されるように再定義されており,
11021 ページの上部やユーザー指定場所に押しのけたりはしないようになっています.たとえフロート配置の設定に変更を加えたとしても,
11022 単に無視されます.
11023 \end_layout
11024
11025 \begin_layout Paragraph
11026 ページヘッダおよびページフッタ
11027 \begin_inset CommandInset label
11028 LatexCommand label
11029 name "sec:foilfoot"
11030
11031 \end_inset
11032
11033
11034 \end_layout
11035
11036 \begin_layout Standard
11037
11038 \family sans
11039 グラフィックスロゴ
11040 \family default
11041
11042 \family sans
11043 配布制限
11044 \family default
11045 の二つは,
11046 左フッタ文を制御するものです.前者は,
11047 グラフィックスのロゴをスライドに入れるためのもので,
11048 既定値は「-Typeset by 
11049 \family sans
11050 Foil
11051 \family default
11052 \SpecialChar TeX
11053 -」となっています.後者は,
11054 「機密事項」などのように,
11055 聴衆に秘密区分を提示することを意図しています.既定値では,
11056 何も設定されていません.
11057 \end_layout
11058
11059 \begin_layout Standard
11060 スライドの残り三隅には,
11061
11062 \family sans
11063 \series bold
11064 右フッタ
11065 \family default
11066 \series default
11067 (既定ではページ番号)・
11068 \family sans
11069 \series bold
11070 右ヘッダ
11071 \family default
11072 \series default
11073 (右上)・
11074 \family sans
11075 \series bold
11076 左ヘッダ
11077 \family default
11078 \series default
11079 (左上)を使って文字を入れることができます.
11080 \end_layout
11081
11082 \begin_layout Subsubsection
11083 サポートされない 
11084 \family sans
11085 Foil
11086 \family default
11087 \SpecialChar TeX
11088 機能
11089 \begin_inset CommandInset label
11090 LatexCommand label
11091 name "sec:unsuppfoils"
11092
11093 \end_inset
11094
11095
11096 \end_layout
11097
11098 \begin_layout Standard
11099 以下で言及されているコマンドは,
11100
11101 \family sans
11102 \SpecialChar LaTeX
11103
11104 \family default
11105 環境内で設定されるか,
11106 他の環境中の
11107 \family sans
11108 \SpecialChar TeX
11109 コード
11110 \family default
11111 として設定される必要があります.
11112 \end_layout
11113
11114 \begin_layout Paragraph
11115 長さ
11116 \end_layout
11117
11118 \begin_layout Standard
11119 長さは,
11120 すべて
11121 \family typewriter
11122
11123 \backslash
11124 setlength{
11125 \family default
11126 \emph on
11127 長さ名
11128 \family typewriter
11129 \emph default
11130 }{
11131 \family default
11132 \emph on
11133 新規長さ
11134 \family typewriter
11135 \emph default
11136 }
11137 \family default
11138 コマンドで調節されます.ここで
11139 \emph on
11140 長さ名
11141 \emph default
11142 は,
11143 変更したい長さに付けられている名前で置き換え,
11144
11145 \emph on
11146 新規長さ
11147 \emph default
11148 は,
11149 その長さの値で置き換えます.長さはすべて,
11150 インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
11151
11152 \family typewriter
11153
11154 \backslash
11155 textwidth
11156 \family default
11157 のように文書比あるいはフォント基準の長さで指定する必要があります.
11158 \end_layout
11159
11160 \begin_layout Standard
11161
11162 \family typewriter
11163
11164 \backslash
11165 foilheadskip
11166 \family default
11167 で指定される長さを調節することによって,
11168 スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,
11169 スライドタイトルをすべて0.5
11170 \begin_inset space \space{}
11171 \end_inset
11172
11173 inだけスライド本文に近づけるには,
11174 プリアンブルに
11175 \family typewriter
11176
11177 \backslash
11178 setlength{
11179 \backslash
11180 foilheadskip}{-0.5in}
11181 \family default
11182 と書き込みます.
11183 \end_layout
11184
11185 \begin_layout Standard
11186 フロート周囲の余白は,
11187 以下の長さを設定することで調整することができます.
11188 \end_layout
11189
11190 \begin_layout Labeling
11191 \labelwidthstring MMMMMMMMMMM
11192
11193 \family typewriter
11194
11195 \backslash
11196 abovefloatskip
11197 \family default
11198  本文とフロート上辺との間隔
11199 \end_layout
11200
11201 \begin_layout Labeling
11202 \labelwidthstring MMMMMMMMMMM
11203
11204 \family typewriter
11205
11206 \backslash
11207 abovecaptionskip
11208 \family default
11209  フロートとキャプションとの間隔
11210 \end_layout
11211
11212 \begin_layout Labeling
11213 \labelwidthstring MMMMMMMMMMM
11214
11215 \family typewriter
11216
11217 \backslash
11218 belowcaptionskip
11219 \family default
11220  キャプションとそれに続く本文との間隔
11221 \end_layout
11222
11223 \begin_layout Labeling
11224 \labelwidthstring MMMMMMMMMMM
11225
11226 \family typewriter
11227
11228 \backslash
11229 captionwidth
11230 \family default
11231  この長さを調整することでキャプションを,
11232 周囲の本文より短くすることができます.
11233 \family typewriter
11234
11235 \backslash
11236 textwidth
11237 \family default
11238 に対する相対的な長さで調整するのが最も良いでしょう.
11239 \end_layout
11240
11241 \begin_layout Standard
11242 以下のようなタイトルページ関連の長さもあり,
11243 タイトルが長い場合や,
11244 著者が複数いる場合に使うと便利かもしれません.
11245 \end_layout
11246
11247 \begin_layout Labeling
11248 \labelwidthstring MMMMMMMMMMM
11249
11250 \family typewriter
11251
11252 \backslash
11253 abovetitleskip
11254 \family default
11255  へッダとタイトルとの間隔
11256 \end_layout
11257
11258 \begin_layout Labeling
11259 \labelwidthstring MMMMMMMMMMM
11260
11261 \family typewriter
11262
11263 \backslash
11264 titleauthorskip
11265 \family default
11266  
11267 \family sans
11268 タイトル
11269 \family default
11270 環境と
11271 \family sans
11272 著者
11273 \family default
11274 環境との間隔
11275 \end_layout
11276
11277 \begin_layout Labeling
11278 \labelwidthstring MMMMMMMMMMM
11279
11280 \family typewriter
11281
11282 \backslash
11283 authorauthorskip
11284 \family default
11285  著者が複数いる場合の
11286 \family sans
11287 著者
11288 \family default
11289 行の間隔
11290 \end_layout
11291
11292 \begin_layout Labeling
11293 \labelwidthstring MMMMMMMMMMM
11294
11295 \family typewriter
11296
11297 \backslash
11298 authordateskip
11299 \family default
11300  
11301 \family sans
11302 著者
11303 \family default
11304
11305 \family sans
11306 日付
11307 \family default
11308 との間隔
11309 \end_layout
11310
11311 \begin_layout Labeling
11312 \labelwidthstring MMMMMMMMMMM
11313
11314 \family typewriter
11315
11316 \backslash
11317 dateabstractskip
11318 \family default
11319  
11320 \family sans
11321 日付
11322 \family default
11323
11324 \family sans
11325 概要
11326 \family default
11327 との間隔
11328 \end_layout
11329
11330 \begin_layout Standard
11331 最後に紹介する長さ関連コマンドは,
11332 箇条書き環境すべてに使用できるものです.
11333 \family typewriter
11334
11335 \backslash
11336 zerolistvertdimens
11337 \family default
11338 を箇条書き環境の内側に置くと,
11339 項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,
11340 上述のもののように
11341 \family typewriter
11342
11343 \backslash
11344 setlength
11345 \family default
11346 を使う必要がないことに注意してください.
11347 \end_layout
11348
11349 \begin_layout Paragraph
11350 へッダとフッタ
11351 \end_layout
11352
11353 \begin_layout Standard
11354
11355 \family typewriter
11356
11357 \backslash
11358 LogoOn
11359 \family default
11360 および
11361 \family typewriter
11362
11363 \backslash
11364 LogoOff
11365 \family default
11366 は,
11367
11368 \family typewriter
11369 MyLogo
11370 \family default
11371 で定義したロゴを特定のページに入れるかどうかを制御します.
11372 \family typewriter
11373
11374 \backslash
11375 LogoOff
11376 \family default
11377 をプリアンブルに入れると,
11378 全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,
11379 当該ページのスライドタイトルの直後に直接
11380 \family typewriter
11381
11382 \backslash
11383 LogoOff
11384 \family default
11385 を置き,
11386 次のスライドタイトルの直後に直接
11387 \family typewriter
11388
11389 \backslash
11390 LogoOn
11391 \family default
11392 を置いてください.
11393 \end_layout
11394
11395 \begin_layout Standard
11396
11397 \family sans
11398 文書レイアウト
11399 \family default
11400 ダイアログで
11401 \family sans
11402 fancy
11403 \family default
11404 ページ様式を使用することを選択した場合には,
11405 横置きページのヘッダとフッタが回転後も正しく配置されるように,
11406 プリアンブルに
11407 \family typewriter
11408
11409 \backslash
11410 let
11411 \backslash
11412 headwidth
11413 \backslash
11414 textwidth
11415 \family default
11416 を加える必要があるでしょう.これは,
11417
11418 \family sans
11419 fancyheadings
11420 \family default
11421 パッケージが提供するページレイアウトと
11422 \family sans
11423 foils
11424 \family default
11425 クラスの提供するページレイアウトの間に衝突が発生するためです.
11426 \end_layout
11427
11428 \begin_layout Subsection
11429 Powerdot
11430 \end_layout
11431
11432 \begin_layout Standard
11433
11434 \family sans
11435 Powerdot
11436 \family default
11437 文書クラスは,
11438 プレゼンテーションを作成するのに用いる
11439 \family typewriter
11440 powerdot.cls
11441 \family default
11442  \SpecialChar LaTeX
11443 クラスを提供します.
11444 \family sans
11445 \series bold
11446 ファイル\SpecialChar menuseparator
11447 用例を開く\SpecialChar menuseparator
11448 プレゼンテーション\SpecialChar menuseparator
11449
11450 \series default
11451 Powerdot
11452 \begin_inset space \thinspace{}
11453 \end_inset
11454
11455
11456 \family default
11457 メニューが使用法の案内をします.ドキュメンテーションは
11458 \begin_inset CommandInset href
11459 LatexCommand href
11460 name "CTAN"
11461 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
11462 literal "false"
11463
11464 \end_inset
11465
11466 から利用可能です.
11467 \end_layout
11468
11469 \begin_layout Subsection
11470 Seminar
11471 \begin_inset CommandInset label
11472 LatexCommand label
11473 name "subsec:Seminar"
11474
11475 \end_inset
11476
11477
11478 \end_layout
11479
11480 \begin_layout Standard
11481
11482 \family sans
11483 Seminar
11484 \family default
11485 文書クラスは,
11486 プレゼンテーションを作成するのに用いる
11487 \family typewriter
11488 seminar.cls
11489 \family default
11490  \SpecialChar LaTeX
11491 クラスを提供します.
11492 \family sans
11493 \series bold
11494 ファイル\SpecialChar menuseparator
11495 用例を開く\SpecialChar menuseparator
11496 プレゼンテーション\SpecialChar menuseparator
11497
11498 \series default
11499 Seminar
11500 \begin_inset space \thinspace{}
11501 \end_inset
11502
11503
11504 \family default
11505 メニューが使用法の案内をします.ドキュメンテーションは
11506 \begin_inset CommandInset href
11507 LatexCommand href
11508 name "CTAN"
11509 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
11510 literal "false"
11511
11512 \end_inset
11513
11514 から利用可能です.
11515 \end_layout
11516
11517 \begin_layout Subsection
11518 Slides(別名
11519 \noun on
11520 Sli\SpecialChar TeX
11521
11522 \noun default
11523
11524 \begin_inset Foot
11525 status collapsed
11526
11527 \begin_layout Plain Layout
11528 (訳註)この節の内容は,
11529 全般的に古くなっています.
11530 \end_layout
11531
11532 \end_inset
11533
11534
11535 \begin_inset CommandInset label
11536 LatexCommand label
11537 name "sec:slitex"
11538
11539 \end_inset
11540
11541
11542 \end_layout
11543
11544 \begin_layout Standard
11545
11546 \noun on
11547 John Weiss
11548 \noun default
11549 原文;
11550 \SpecialChar LyX
11551 チーム改訂
11552 \end_layout
11553
11554 \begin_layout Subsubsection
11555 はじめに
11556 \end_layout
11557
11558 \begin_layout Standard
11559 本節では,
11560 オーバーへッドプロジェクタ用のスライドをつくるのに,
11561 \SpecialChar LyX
11562 をどのように使えばよいかを説明します.これを行う2つの文書クラス,
11563
11564 \family sans
11565 Slides
11566 \family default
11567 文書クラスと
11568 \family sans
11569 Foil\SpecialChar TeX
11570
11571 \family default
11572 文書クラスとがあります.本節は前者について説明を行います.
11573 \family sans
11574 Foil\SpecialChar TeX
11575
11576 \family default
11577 の文書をお探しの場合は,
11578
11579 \begin_inset CommandInset ref
11580 LatexCommand ref
11581 reference "subsec:foiltex"
11582 plural "false"
11583 caps "false"
11584 noprefix "false"
11585 nolink "false"
11586
11587 \end_inset
11588
11589 節をご参照ください2023年現在,
11590
11591 \family sans
11592 Slides
11593 \family default
11594 のメンテナンスは続けられていますが,
11595
11596 \family sans
11597 Foil\SpecialChar TeX
11598
11599 \family default
11600 は2008年以降メンテナンスされていません.
11601 \end_layout
11602
11603 \begin_layout Subsubsection
11604 使い始めるには
11605 \begin_inset CommandInset label
11606 LatexCommand label
11607 name "sec:slidesetup"
11608
11609 \end_inset
11610
11611
11612 \end_layout
11613
11614 \begin_layout Standard
11615 当然ながら,
11616 この文書クラスを使用するには,
11617
11618 \family sans
11619 \series bold
11620 文書\SpecialChar menuseparator
11621 設定
11622 \family default
11623 \series default
11624
11625 \begin_inset space \thinspace{}
11626 \end_inset
11627
11628 ダイアログのクラスリストから「
11629 \family sans
11630 \series bold
11631 スライド
11632 \family default
11633 \series default
11634 」を選択しなくてはなりません.このクラスについて,
11635 以下のように,
11636 特に知っておいた方が良いことがいくつかあります.
11637 \end_layout
11638
11639 \begin_layout Itemize
11640
11641 \family sans
11642 \series bold
11643 用紙方向
11644 \family default
11645 \series default
11646
11647 \family sans
11648 \series bold
11649 二段組文書
11650 \family default
11651 \series default
11652 の各オプションは,
11653 あえて変更する必要はありません.これらのオプションは,
11654
11655 \family sans
11656 スライド
11657 \family default
11658 クラスではサポートされていないので,
11659 効果がありません.
11660 \end_layout
11661
11662 \begin_layout Itemize
11663
11664 \family sans
11665 \series bold
11666 ヘディング様式
11667 \family default
11668 \series default
11669 オプションは,
11670 このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,
11671 以下の通りです.
11672 \end_layout
11673
11674 \begin_deeper
11675 \begin_layout Description
11676 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
11677 \end_layout
11678
11679 \begin_layout Description
11680 設定(headings)
11681 \family sans
11682  
11683 \series bold
11684 プレーン
11685 \series default
11686 (plain)
11687 \family default
11688 と同様ですが,
11689 それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
11690 \end_layout
11691
11692 \begin_layout Description
11693 空 最終出力には,
11694 ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
11695 \end_layout
11696
11697 \end_deeper
11698 \begin_layout Itemize
11699
11700 \family sans
11701 \series bold
11702 スライド
11703 \family default
11704 \series default
11705 クラスには,
11706 もう一つ
11707 \family typewriter
11708 clock
11709 \family default
11710 というオプションがあります.これを使用するには,
11711
11712 \family sans
11713 \series bold
11714 クラスオプション
11715 \family default
11716 \series default
11717 に「
11718 \family typewriter
11719 clock
11720 \family default
11721 」と入力してください.
11722 \end_layout
11723
11724 \begin_deeper
11725 \begin_layout Standard
11726 このオプションを使うと,
11727
11728 \family sans
11729 \series bold
11730 注釈
11731 \family default
11732 \series default
11733 にタイムマーカーを加えることができます.詳細は,
11734
11735 \begin_inset CommandInset ref
11736 LatexCommand ref
11737 reference "sec:スライド注釈"
11738 nolink "false"
11739
11740 \end_inset
11741
11742 節をご覧ください.
11743 \end_layout
11744
11745 \end_deeper
11746 \begin_layout Standard
11747
11748 \family sans
11749 slides
11750 \family default
11751 クラスを用いた文書を自動的にセットアップするには,
11752 ひな型ファイルを使用することもできます(新規ファイルを開く際に
11753 \family sans
11754 \series bold
11755 ファイル\SpecialChar menuseparator
11756 新規(ひな型使用)
11757 \series default
11758 \SpecialChar menuseparator
11759
11760 \series bold
11761 プレゼンテーション
11762 \series default
11763 \SpecialChar menuseparator
11764 Slides
11765 \family default
11766
11767 \begin_inset space \thinspace{}
11768 \end_inset
11769
11770 を使用してください).ひな型ファイルには,
11771 このクラスが使用する特別な段落環境の用例も含まれています.これらについては,
11772 以下で説明します.
11773 \end_layout
11774
11775 \begin_layout Subsubsection
11776 段落環境
11777 \end_layout
11778
11779 \begin_layout Paragraph
11780
11781 \family sans
11782 サポートされている環境
11783 \end_layout
11784
11785 \begin_layout Standard
11786 新しく
11787 \family sans
11788 Slides
11789 \family default
11790 文書を開いたときにまず気付くのは,
11791 フォント寸法とフォント族の違いでしょう.ここでは,
11792
11793 \family sans
11794 \series bold
11795 サンセリフ体
11796 \family default
11797 \series default
11798 フォントの
11799 \family sans
11800 \series bold
11801 極大
11802 \family default
11803 \series default
11804 寸法が用いられており,
11805 出力でもこのフォントが使用されます.これは,
11806 現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用するため,
11807 書ける場所は少なくなります.もちろん,
11808 既定の大きな画面フォントはWYSIWYGではなく,
11809 スライドであることの目印に過ぎません.
11810 \end_layout
11811
11812 \begin_layout Standard
11813 次に気付くのは,
11814 (ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,
11815 代わりに5つの新しい環境が入っています.これは,
11816
11817 \family sans
11818 Slides
11819 \family default
11820 クラスが,
11821 標準段落環境のうち以下のものしかサポートしていないためです.
11822 \end_layout
11823
11824 \begin_layout Standard
11825 \begin_inset Flex Multiple Columns
11826 status open
11827
11828 \begin_layout Itemize
11829
11830 \family sans
11831 \series bold
11832 標準
11833 \end_layout
11834
11835 \begin_layout Itemize
11836
11837 \family sans
11838 \series bold
11839 箇条書き(記号)
11840 \end_layout
11841
11842 \begin_layout Itemize
11843
11844 \family sans
11845 \series bold
11846 箇条書き(連番)
11847 \end_layout
11848
11849 \begin_layout Itemize
11850
11851 \family sans
11852 \series bold
11853 箇条書き(記述)
11854 \end_layout
11855
11856 \begin_layout Itemize
11857
11858 \family sans
11859 \series bold
11860 箇条書き(一覧)
11861 \end_layout
11862
11863 \begin_layout Itemize
11864
11865 \family sans
11866 \series bold
11867 引用(字下げあり)
11868 \end_layout
11869
11870 \begin_layout Itemize
11871
11872 \family sans
11873 \series bold
11874 引用(字下げなし)
11875 \end_layout
11876
11877 \begin_layout Itemize
11878
11879 \family sans
11880 \series bold
11881 詩句
11882 \end_layout
11883
11884 \begin_layout Itemize
11885
11886 \family sans
11887 \series bold
11888 キャプション
11889 \end_layout
11890
11891 \begin_layout Itemize
11892
11893 \family sans
11894 \SpecialChar LyX
11895
11896 \series bold
11897 コード
11898 \end_layout
11899
11900 \end_inset
11901
11902
11903 \end_layout
11904
11905 \begin_layout Standard
11906 これ以外の標準的な環境,
11907 例えば節見出し用の環境などは
11908 \family sans
11909 slides
11910 \family default
11911 クラスでは使えません.
11912 \end_layout
11913
11914 \begin_layout Standard
11915 一方,
11916 以下の新しい環境があります.
11917 \end_layout
11918
11919 \begin_layout Standard
11920 \begin_inset Flex Multiple Columns
11921 status open
11922
11923 \begin_layout Itemize
11924
11925 \family sans
11926 \series bold
11927 スライド
11928 \end_layout
11929
11930 \begin_layout Itemize
11931
11932 \family sans
11933 \series bold
11934 オーバーレイ
11935 \end_layout
11936
11937 \begin_layout Itemize
11938
11939 \family sans
11940 \series bold
11941 注釈
11942 \end_layout
11943
11944 \begin_layout Itemize
11945
11946 \family sans
11947 \series bold
11948 不可視文
11949 \end_layout
11950
11951 \begin_layout Itemize
11952
11953 \family sans
11954 \series bold
11955 可視文
11956 \end_layout
11957
11958 \begin_deeper
11959 \begin_layout Plain Layout
11960 \begin_inset space ~
11961 \end_inset
11962
11963
11964 \end_layout
11965
11966 \end_deeper
11967 \end_inset
11968
11969
11970 \end_layout
11971
11972 \begin_layout Standard
11973 これら5つの環境は,
11974 \SpecialChar LyX
11975 の「機能」のために使い方に癖があります.ご存じのように,
11976 \SpecialChar LyX
11977 では,
11978 空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインなのですが,
11979 これは,
11980 スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,
11981 ちょっとした「\SpecialChar LaTeX
11982 マジック」が必要になります.
11983 \end_layout
11984
11985 \begin_layout Paragraph
11986 新環境の癖
11987 \begin_inset CommandInset label
11988 LatexCommand label
11989 name "sec:スライドの癖"
11990
11991 \end_inset
11992
11993
11994 \end_layout
11995
11996 \begin_layout Standard
11997 5つの新しい環境にはすべて,
11998 \SpecialChar LyX
11999 現行版の制約に由来する癖があります.いま述べたように,
12000 \SpecialChar LyX
12001 では,
12002 環境を別の環境で開始することが禁止されています.これを回避するために,
12003
12004 \family sans
12005 \series bold
12006 スライド
12007 \family default
12008 \series default
12009 環境は『ユーザーの手引き』で述べられているような段落環境ではなくなっています.
12010 \end_layout
12011
12012 \begin_layout Standard
12013
12014 \family sans
12015 \series bold
12016 スライド
12017 \family default
12018 \series default
12019
12020 \family sans
12021 \series bold
12022 オーバーレイ
12023 \family default
12024 \series default
12025
12026 \family sans
12027 \series bold
12028 注釈
12029 \family default
12030 \series default
12031 は「疑似環境」だとお考えください.これらは節見出しや「
12032 \family sans
12033 \series bold
12034 キャプション
12035 \family default
12036 \series default
12037 」のように見えますが,
12038 実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
12039
12040 \family sans
12041 \series bold
12042 不可視文
12043 \family default
12044 \series default
12045
12046 \family sans
12047 \series bold
12048 可視文
12049 \family default
12050 \series default
12051 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
12052 \end_layout
12053
12054 \begin_layout Standard
12055
12056 \family sans
12057 \series bold
12058 スライド
12059 \family default
12060 \series default
12061
12062 \family sans
12063 \series bold
12064 オーバーレイ
12065 \family default
12066 \series default
12067
12068 \family sans
12069 \series bold
12070 注釈
12071 \family default
12072 \series default
12073
12074 \family sans
12075 \series bold
12076 不可視文
12077 \family default
12078 \series default
12079
12080 \family sans
12081 \series bold
12082 可視文
12083 \family default
12084 \series default
12085 の5環境に共通しているのは,
12086 長めのラベルを持つことです.このラベルに続く文章—
12087 通常は段落環境の内容になるはずですが—
12088 は,
12089
12090 \family sans
12091 \series bold
12092 スライド
12093 \family default
12094 \series default
12095
12096 \family sans
12097 \series bold
12098 オーバーレイ
12099 \family default
12100 \series default
12101
12102 \family sans
12103 \series bold
12104 注釈
12105 \family default
12106 \series default
12107
12108 \family sans
12109 不可視文
12110 \family default
12111
12112 \family sans
12113 可視文
12114 \family default
12115 では,
12116 まったく意味がなく,
12117 \SpecialChar LyX
12118 はこの部分を完全に無視します.これらの5つの環境の内容は,
12119 完全に空のままにしておいて構いません.
12120 \end_layout
12121
12122 \begin_layout Standard
12123 長めのラベルの後に文章を入れる
12124 \emph on
12125 必要は
12126 \emph default
12127 まったく
12128 \emph on
12129 ない
12130 \emph default
12131 とはいえ,
12132 何か書いておきたいこともあるかもしれません.たとえば,
12133 スライドの内容に関する短い説明などがそうでしょう.この場合,
12134 いつもどおり説明用のコメントを入力して
12135 \family sans
12136 Return
12137 \family default
12138 を押してください.
12139 \end_layout
12140
12141 \begin_layout Subsubsection
12142
12143 \family sans
12144 \series bold
12145 スライド
12146 \family default
12147 \series default
12148
12149 \family sans
12150 \series bold
12151 オーバーレイ
12152 \family default
12153 \series default
12154
12155 \family sans
12156 \series bold
12157 注釈
12158 \series default
12159 で発表用のスライドを作る
12160 \end_layout
12161
12162 \begin_layout Paragraph
12163
12164 \family sans
12165 スライド
12166 \family default
12167 環境を使う
12168 \end_layout
12169
12170 \begin_layout Standard
12171 もし本節が,
12172 実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,
12173 大いにがっかりされるかもしれません.当然ながら,
12174 プレゼンテーション用の資料を準備するうえで
12175 \family sans
12176 slides
12177 \family default
12178 クラスを役立てる方法を詳しく説明はしますが,
12179 内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
12180 の哲学です).
12181 \end_layout
12182
12183 \begin_layout Standard
12184
12185 \family sans
12186 \series bold
12187 スライド
12188 \family default
12189 \series default
12190 環境を選択すれば(方法は第
12191 \begin_inset CommandInset ref
12192 LatexCommand ref
12193 reference "sec:スライドの癖"
12194 nolink "false"
12195
12196 \end_inset
12197
12198 節参照のこと),
12199 \SpecialChar LyX
12200 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,
12201 鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落環境は,
12202 すべて新規スライドに入ります.簡単ですよね.
12203 \end_layout
12204
12205 \begin_layout Standard
12206 Slidesは,
12207 おそらく\SpecialChar LyX
12208 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
12209 \family sans
12210 段落レイアウト
12211 \family default
12212 ダイアログで指定できます).実際,
12213 一つのスライドの内容を入力し終わったら,
12214 改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると,
12215 入りきらない部分は,
12216 次の新規スライドにまわされます.しかしながら,
12217 入りきらない部分のスライドにはページ番号が付きませんので,
12218 こうするのはお勧めしません.その上,
12219 一枚に収まらないスライドでは,
12220
12221 \family sans
12222 \series bold
12223 オーバーレイ
12224 \family default
12225 \series default
12226 を使用すると干渉する恐れがあります.
12227 \end_layout
12228
12229 \begin_layout Standard
12230
12231 \family sans
12232 \series bold
12233 オーバーレイ
12234 \family default
12235 \series default
12236 環境と
12237 \family sans
12238 \series bold
12239 注釈
12240 \family default
12241 \series default
12242 環境も,
12243
12244 \family sans
12245 \series bold
12246 スライド
12247 \family default
12248 \series default
12249 環境と同様の動作を示します.これらは,
12250 青の代わりに鮮やかなマゼンタで,
12251 それぞれ「
12252 \noun on
12253 新規オーバーレイ
12254 \noun default
12255 :」ないし「
12256 \noun on
12257 新規注釈:
12258 \noun default
12259 」というラベルを表示します.ラベルのフォントも,
12260 3つの環境でそれぞれ異なるものが使用されます.
12261 \end_layout
12262
12263 \begin_layout Standard
12264
12265 \family sans
12266 \series bold
12267 スライド
12268 \family default
12269 \series default
12270 と同様に,
12271
12272 \family sans
12273 \series bold
12274 オーバーレイ
12275 \family default
12276 \series default
12277
12278 \family sans
12279 \series bold
12280 注釈
12281 \family default
12282 \series default
12283 の内容が,
12284 一つのスライドないしページに物理的に収まりきらない場合には,
12285 余分は新規スライドに回されます.この場合には,
12286
12287 \family sans
12288 注釈
12289 \family default
12290
12291 \family sans
12292 \series bold
12293 オーバーレイ
12294 \family default
12295 \series default
12296 の本来の目的が達せられなくなりますので,
12297 ここでもこのような状態は避けるべきでしょう.
12298 \end_layout
12299
12300 \begin_layout Paragraph
12301
12302 \family sans
12303 スライドで
12304 \series bold
12305 オーバーレイ
12306 \series default
12307 を使用する
12308 \end_layout
12309
12310 \begin_layout Standard
12311
12312 \family sans
12313 \series bold
12314 オーバーレイ
12315 \family default
12316 \series default
12317 の背後にある考え方は,
12318 別のスライドの上にスライドを載せようとするものです.メインの
12319 \family sans
12320 スライド
12321 \family default
12322 に図があるとき,
12323 関連した文章を表示する前に,
12324 図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
12325
12326 \family sans
12327 スライド
12328 \family default
12329 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,
12330 この方法は,
12331 たとえばグラフを他のグラフに重ねたい場合などには,
12332 うまく行きません.この場合には,
12333 二つのグラフを揃えるために,
12334 重ねる二つのスライドを,
12335 喋りながら手探りで揃えなくてはなりません.これらのような場合には,
12336
12337 \family sans
12338 \series bold
12339 オーバーレイ
12340 \family default
12341 \series default
12342 環境を使えば,
12343 もっと楽になります.
12344 \end_layout
12345
12346 \begin_layout Standard
12347
12348 \family sans
12349 \series bold
12350 オーバーレイ
12351 \family default
12352 \series default
12353 は,
12354 「親」
12355 \family sans
12356 スライド
12357 \family default
12358 のページ番号を引継ぎ,
12359 その後に「
12360 \family typewriter
12361 -a
12362 \family default
12363 」を付け加えます
12364 \begin_inset Foot
12365 status collapsed
12366
12367 \begin_layout Plain Layout
12368 想像できるように,
12369 複数のオーバーレイがあれば,
12370
12371 \family typewriter
12372 -a
12373 \family default
12374 」「
12375 \family typewriter
12376 -b
12377 \family default
12378 」「
12379 \family typewriter
12380 -c
12381 \family default
12382 」などが親スライドのページ番号に付け加えられます.
12383 \end_layout
12384
12385 \end_inset
12386
12387 .当然のことながら,
12388
12389 \family sans
12390 スライド
12391 \family default
12392
12393 \family sans
12394 \series bold
12395 オーバーレイ
12396 \family default
12397 \series default
12398 の内容は両方とも,
12399 1枚のスライドに物理的に収まるようになっていなければなりません.
12400 \family sans
12401 \series bold
12402 オーバーレイ
12403 \family default
12404 \series default
12405
12406 \family sans
12407 スライド
12408 \family default
12409 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
12410 では,
12411
12412 \family sans
12413 \series bold
12414 オーバーレイ
12415 \family default
12416 \series default
12417 のラベルを
12418 \family sans
12419 スライド
12420 \family default
12421 のラベルよりも下げることで,
12422 このことを視覚的に表しています.また,
12423 印刷可能な出力を生成すると,
12424
12425 \family sans
12426 \series bold
12427 オーバーレイ
12428 \family default
12429 \series default
12430 と親
12431 \family sans
12432 スライド
12433 \family default
12434 両方の四隅に,
12435 揃えマーカーがあることに気づかれるはずです.これは,
12436 2枚のスライドを物理的に重ね合わせるための補助となるものです.
12437 \end_layout
12438
12439 \begin_layout Standard
12440 2つのスライドをオーバーレイさせる際の大きな問題は,
12441 2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,
12442 どれだけの余白を残しておくべきなのでしょうか?
12443 さらにややこしく,
12444 2枚目のスライドにグラフと文章を入れたいときに,
12445 その間に割り込んでしまうような文章がメインスライドにある場合には,
12446 どうでしょうか?
12447 正しい寸法の垂直スペースを挿入してみることもできるでしょう.しかし,
12448 もっと良い方法として,
12449
12450 \family sans
12451 \series bold
12452 不可視文
12453 \family default
12454 \series default
12455
12456 \family sans
12457 可視文
12458 \family default
12459 を使用する方法があります.
12460 \end_layout
12461
12462 \begin_layout Standard
12463 これらの名前が意味するとおり,
12464
12465 \family sans
12466 \series bold
12467 不可視文
12468 \family default
12469 \series default
12470
12471 \family sans
12472 可視文
12473 \family default
12474 は,
12475 それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,
12476
12477 \begin_inset CommandInset ref
12478 LatexCommand ref
12479 reference "sec:スライドの癖"
12480 nolink "false"
12481
12482 \end_inset
12483
12484 節で述べたように,
12485 この2つの環境の
12486 \emph on
12487
12488 \emph default
12489 には何も置くことができません.
12490 \family sans
12491 \series bold
12492 不可視文
12493 \family default
12494 \series default
12495 を作成すると,
12496 「<以下不可視文>」と書かれた水色のラベルが,
12497 ページに中央揃えで表示されます.このラベルに続く段落は,
12498 それが置かれるべき
12499 \family sans
12500 スライド
12501 \family default
12502 (あるいは
12503 \family sans
12504 \series bold
12505 オーバーレイ
12506 \family default
12507 \series default
12508
12509 どちらでも同じことです)部分に,
12510 代わりに空白の部分が置かれます.
12511 \end_layout
12512
12513 \begin_layout Standard
12514
12515 \family sans
12516 可視文
12517 \family default
12518 の場合には,
12519 中央揃えのラベルは,
12520 鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,
12521 通常通りの挙動を示します.新規の
12522 \family sans
12523 スライド
12524 \family default
12525
12526 \family sans
12527 \series bold
12528 オーバーレイ
12529 \family default
12530 \series default
12531
12532 \family sans
12533 注釈
12534 \family default
12535 を開始すると,
12536
12537 \family sans
12538 \series bold
12539 不可視文
12540 \family default
12541 \series default
12542 は自動的に終了されることに注意してください.したがって,
12543
12544 \family sans
12545 スライド
12546 \family default
12547 の終わりでは,
12548
12549 \family sans
12550 可視文
12551 \family default
12552 を使用する必要はありません.
12553 \end_layout
12554
12555 \begin_layout Standard
12556 ここまでで,
12557
12558 \family sans
12559 \series bold
12560 スライド
12561 \family default
12562 \series default
12563
12564 \family sans
12565 \series bold
12566 オーバーレイ
12567 \family default
12568 \series default
12569 上で
12570 \family sans
12571 \series bold
12572 不可視文
12573 \family default
12574 \series default
12575
12576 \family sans
12577 可視文
12578 \family default
12579 を適切に使用して,
12580 スライドをオーバーレイさせる方法が明らかになったことと思います.
12581 \end_layout
12582
12583 \begin_layout Enumerate
12584 メインのスライドか
12585 \family sans
12586 \series bold
12587 オーバーレイ
12588 \family default
12589 \series default
12590 かに関わらず,
12591 スライド上に現れるすべてを含んだ
12592 \family sans
12593 スライド
12594 \family default
12595 を作成します.
12596 \end_layout
12597
12598 \begin_layout Enumerate
12599
12600 \family sans
12601 \series bold
12602 オーバーレイ
12603 \family default
12604 \series default
12605 のみに表示するすべての図や段落の前に,
12606
12607 \family sans
12608 \series bold
12609 不可視文
12610 \family default
12611 \series default
12612 環境を挿入し,
12613 必要ならば,
12614
12615 \family sans
12616 \series bold
12617 オーバーレイ
12618 \family default
12619 \series default
12620 のみの文章の後に
12621 \family sans
12622 可視文
12623 \family default
12624 環境を挿入します.
12625 \end_layout
12626
12627 \begin_layout Enumerate
12628
12629 \family sans
12630 スライド
12631 \family default
12632 の直後から,
12633
12634 \family sans
12635 \series bold
12636 オーバーレイ
12637 \family default
12638 \series default
12639 を開始します.
12640 \end_layout
12641
12642 \begin_layout Enumerate
12643 この
12644 \family sans
12645 スライド
12646 \family default
12647 の内容を
12648 \family sans
12649 \series bold
12650 オーバーレイ
12651 \family default
12652 \series default
12653 にコピーします.
12654 \end_layout
12655
12656 \begin_layout Enumerate
12657
12658 \family sans
12659 \series bold
12660 オーバーレイ
12661 \family default
12662 \series default
12663 内部の
12664 \family sans
12665 \series bold
12666 不可視文
12667 \family default
12668 \series default
12669 行をすべて
12670 \family sans
12671 \series bold
12672 不可視文
12673 \family default
12674 \series default
12675 に変更し,
12676
12677 \family sans
12678 可視文
12679 \family default
12680
12681 \family sans
12682 \series bold
12683 不可視文
12684 \family default
12685 \series default
12686 に変更します.
12687 \end_layout
12688
12689 \begin_layout Standard
12690 これだけです.これで
12691 \family sans
12692 \series bold
12693 オーバーレイ
12694 \family default
12695 \series default
12696 ができあがりました.
12697 \end_layout
12698
12699 \begin_layout Standard
12700 \SpecialChar LyX
12701  
12702 \family sans
12703 slides
12704 \family default
12705 クラスをデザインする上で,
12706 ひとつ残された問題があります.段落途中の文章を不可視にしたり,
12707 不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを実現するためには,
12708 \SpecialChar LaTeX
12709 コードを埋め込む必要があります
12710 \begin_inset Foot
12711 status collapsed
12712
12713 \begin_layout Plain Layout
12714 このコマンドは,
12715
12716 \end_layout
12717
12718 \begin_layout Itemize
12719
12720 \family typewriter
12721 {
12722 \backslash
12723 invisible \SpecialChar ldots
12724  }
12725 \end_layout
12726
12727 \begin_layout Itemize
12728
12729 \family typewriter
12730 {
12731 \backslash
12732 visible \SpecialChar ldots
12733  }
12734 \end_layout
12735
12736 \begin_layout Plain Layout
12737 \SpecialChar ldots
12738 のような形となり,
12739 \SpecialChar TeX
12740 としてマークする必要があります.「可視性」を変更したい文章は,
12741 波括弧のあいだ(そして
12742 \family typewriter
12743
12744 \backslash
12745 invisible
12746 \family default
12747 ないし
12748 \family typewriter
12749
12750 \backslash
12751 visible
12752 \family default
12753 コマンドの後ろ)に入れます.\SpecialChar TeX
12754 としてマークする方法がわからない場合は,
12755 ユーザーの手引きをご参照ください.
12756 \end_layout
12757
12758 \end_inset
12759
12760
12761 \end_layout
12762
12763 \begin_layout Paragraph
12764
12765 \family sans
12766 スライドで注釈を使う
12767 \family default
12768
12769 \begin_inset CommandInset label
12770 LatexCommand label
12771 name "sec:スライド注釈"
12772
12773 \end_inset
12774
12775
12776 \end_layout
12777
12778 \begin_layout Standard
12779
12780 \family sans
12781 \series bold
12782 オーバーレイ
12783 \family default
12784 \series default
12785 と同様,
12786
12787 \family sans
12788 注釈
12789 \family default
12790 も「親」
12791 \family sans
12792 スライド
12793 \family default
12794 に関連付けられています.ここでも\SpecialChar LyX
12795
12796 \family sans
12797 スライド
12798 \family default
12799 クラスは視覚的な効果を与えています.
12800 \family sans
12801 注釈
12802 \family default
12803 のラベルは
12804 \family sans
12805 スライド
12806 \family default
12807 よりも短く(オーバーレイのラベルよりも長いですが),
12808
12809 \family sans
12810 \series bold
12811 オーバーレイ
12812 \family default
12813 \series default
12814 のラベルと同様,
12815 派手な赤紫色です.加えて,
12816 印刷した
12817 \family sans
12818 注釈
12819 \family default
12820 には,
12821 「親」スライドのページ番号に「
12822 \family typewriter
12823 -
12824 \family default
12825 1」「
12826 \family typewriter
12827 -
12828 \family default
12829 2」「
12830 \family typewriter
12831 -
12832 \family default
12833 3」等を付けたページ番号が付けられます.1つの
12834 \family sans
12835 スライド
12836 \family default
12837 には,
12838 複数の
12839 \family sans
12840 注釈
12841 \family default
12842 を関連付けることができるので,
12843
12844 \family sans
12845 \series bold
12846 スライド
12847 \family default
12848 \series default
12849
12850 \family sans
12851 \series bold
12852 オーバーレイ
12853 \family default
12854 \series default
12855 と同じように,
12856 長い注釈は,
12857 1枚の紙に収まるように分割したいと思われるに違いありません.
12858 \end_layout
12859
12860 \begin_layout Standard
12861
12862 \family sans
12863 \series bold
12864 注釈
12865 \family default
12866 \series default
12867 の目的は明らかです.
12868 \family sans
12869 \series bold
12870 スライド
12871 \family default
12872 \series default
12873 に関して付け加えたいことを書き留めておくことです.特定の
12874 \family sans
12875 スライド
12876 \family default
12877 についての覚書として使うこともできます.後者の場合には,
12878 タイムマーカを利用したいこともあるかもしれません.現在のところ,
12879 \SpecialChar LyX
12880
12881 \family sans
12882 \series bold
12883 スライド
12884 \family default
12885 \series default
12886 クラスは,
12887
12888 \noun on
12889 Sli
12890 \noun default
12891 \SpecialChar TeX
12892 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,
12893 \SpecialChar LaTeX
12894 コードを使用することに頼らなくてはなりません.
12895 \end_layout
12896
12897 \begin_layout Standard
12898 タイムマーカを使用するには,
12899 クラスオプション「
12900 \family typewriter
12901 clock
12902 \family default
12903 」を追加指定する必要があります(第
12904 \begin_inset CommandInset ref
12905 LatexCommand ref
12906 reference "sec:slidesetup"
12907 nolink "false"
12908
12909 \end_inset
12910
12911 節参照).このオプションはタイムマーカ機能を有効にして,
12912 生成したすべての
12913 \family sans
12914 \series bold
12915 注釈
12916 \family default
12917 \series default
12918 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,
12919 \SpecialChar LaTeX
12920 コマンド「
12921 \family typewriter
12922
12923 \backslash
12924 settime{}
12925 \family default
12926 」および「
12927 \family typewriter
12928
12929 \backslash
12930 addtime{}
12931 \family default
12932 」を使用します.両コマンドは,
12933 秒で測った時間を引数にとります.「
12934 \family typewriter
12935
12936 \backslash
12937 settime{}
12938 \family default
12939 」は,
12940 タイムマーカを特定の時間に設定し,
12941
12942 \family typewriter
12943
12944 \backslash
12945 addtime{}
12946 \family default
12947 」は,
12948 タイムマーカを指定した分だけ進めます.このようにタイムマーカと
12949 \family sans
12950 \series bold
12951 注釈
12952 \family default
12953 \series default
12954 を用いれば,
12955 特定の
12956 \family sans
12957 スライド
12958 \family default
12959 にどれだけの時間をかけるのか忘れないでいられます.
12960 \end_layout
12961
12962 \begin_layout Standard
12963 最後に,
12964 説明しておくべき機能がもう一つあります.当然ながら,
12965
12966 \family sans
12967 \series bold
12968 スライド
12969 \family default
12970 \series default
12971
12972 \family sans
12973 \series bold
12974 オーバーレイ
12975 \family default
12976 \series default
12977 はすべてスライドに,
12978
12979 \family sans
12980 \series bold
12981 注釈
12982 \family default
12983 \series default
12984 はすべて普通の紙に印刷したいはずです.しかしながら,
12985
12986 \family sans
12987 \series bold
12988 注釈
12989 \family default
12990 \series default
12991 は関連付けられた親スライドの直後に
12992 \emph on
12993 来なくてはなりません
12994 \emph default
12995 .ユーザーはどうしたら良いのでしょうか.
12996 \end_layout
12997
12998 \begin_layout Standard
12999 幸いなことに,
13000 どれを印刷するか選択することを可能にする\SpecialChar LaTeX
13001 コマンドが,
13002 2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
13003 \family typewriter
13004
13005 \backslash
13006 onlyslides{
13007 \backslash
13008 slides}
13009 \family default
13010 」は,
13011 出力に
13012 \family sans
13013 \series bold
13014 スライド
13015 \family default
13016 \series default
13017
13018 \family sans
13019 \series bold
13020 オーバーレイ
13021 \family default
13022 \series default
13023 のみが含まれるようにするものです.同様に,
13024
13025 \family typewriter
13026
13027 \backslash
13028 onlynotes{
13029 \backslash
13030 notes}
13031 \family default
13032 」は
13033 \family sans
13034 \series bold
13035 注釈
13036 \family default
13037 \series default
13038 以外の出力をすべて抑制します.私のアドバイスとしては,
13039 両コマンドをプリアンブルに書いておいて,
13040 最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,
13041 執筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,
13042 二つのうち一方のコメントを外して,
13043 印刷したい方を選ぶことができます.私ならば,
13044 まず
13045 \family typewriter
13046
13047 \backslash
13048 onlyslides{
13049 \backslash
13050 slides}
13051 \family default
13052 のコメントを外して,
13053 現ファイル名に「*
13054 \family typewriter
13055 -slides
13056 \family default
13057 」を付けた新たなファイルに出力を行ない,
13058 今度はこの行をふたたびコメントアウトするとともに,
13059
13060 \family typewriter
13061
13062 \backslash
13063 onlynotes{
13064 \backslash
13065 notes
13066 \family default
13067 }」のコメントを外して,
13068 これを「
13069 \family typewriter
13070 *-notes.ps
13071 \family default
13072 」というファイルに出力します.そうすれば,
13073 必要に応じて,
13074 スライドまたは通常の紙をプリンタにセットし,
13075 一方のファイルをプリンタに送ればよいのです.
13076 \end_layout
13077
13078 \begin_layout Standard
13079
13080 \family typewriter
13081
13082 \backslash
13083 onlyslides{}
13084 \family default
13085 」および「
13086 \family typewriter
13087
13088 \backslash
13089 onlynotes{}
13090 \family default
13091 」コマンドには,
13092 他の引数を与えることもできます.詳しくは,
13093 \SpecialChar LaTeX
13094 の良書をご覧ください.
13095 \end_layout
13096
13097 \begin_layout Subsubsection
13098
13099 \family sans
13100 slides
13101 \family default
13102 クラスのひな型ファイル
13103 \end_layout
13104
13105 \begin_layout Standard
13106
13107 \family sans
13108 slides
13109 \family default
13110 クラス用のひな型ファイルが提供されています.これを使用するには,
13111 新しいプレゼンテーションを作り始める際に,
13112
13113 \family sans
13114 \series bold
13115 ファイル\SpecialChar menuseparator
13116 新規(ひな型使用)\SpecialChar menuseparator
13117 プレゼンテーション\SpecialChar menuseparator
13118
13119 \series default
13120 Slides
13121 \family default
13122
13123 \begin_inset space \thinspace{}
13124 \end_inset
13125
13126 メニューを選択してください.すると新規ファイルには,
13127
13128 \family sans
13129 \series bold
13130 スライド
13131 \family default
13132 \series default
13133
13134 \family sans
13135 \series bold
13136 オーバーレイ
13137 \family default
13138 \series default
13139
13140 \family sans
13141 \series bold
13142 注釈
13143 \family default
13144 \series default
13145 の組が,
13146 例として含まれており,
13147
13148 \family sans
13149 \series bold
13150 スライド
13151 \family default
13152 \series default
13153
13154 \family sans
13155 \series bold
13156 オーバーレイ
13157 \family default
13158 \series default
13159 には,
13160 さらに
13161 \family sans
13162 \series bold
13163 不可視文
13164 \family default
13165 \series default
13166
13167 \family sans
13168 \series bold
13169 可視文
13170 \family default
13171 \series default
13172 の使用例も含まれています.また,
13173 プリアンブルには,
13174 次のように書き込まれています.
13175 \end_layout
13176
13177 \begin_layout LyX-Code
13178 % Uncomment to print out only slides and overlays
13179 \end_layout
13180
13181 \begin_layout LyX-Code
13182 %
13183 \end_layout
13184
13185 \begin_layout LyX-Code
13186 %
13187 \backslash
13188 onlyslides{
13189 \backslash
13190 slides}
13191 \begin_inset Newline newline
13192 \end_inset
13193
13194  
13195 \end_layout
13196
13197 \begin_layout LyX-Code
13198 % Uncomment to print out only notes
13199 \end_layout
13200
13201 \begin_layout LyX-Code
13202 %
13203 \end_layout
13204
13205 \begin_layout LyX-Code
13206 %
13207 \backslash
13208 onlynotes{
13209 \backslash
13210 notes}
13211 \end_layout
13212
13213 \begin_layout Standard
13214 最後に,
13215 私はこの文書クラスを,
13216 \SpecialChar LaTeX2e
13217 の組み込みクラスである「
13218 \noun on
13219 Sli\SpecialChar TeX
13220
13221 \noun default
13222 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
13223 チームの他のメンバーも,
13224 この組み込みスライドクラスを使用することに賛成したり反対したりするものではありません.これは単に,
13225 ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
13226
13227 \family sans
13228 Foils
13229 \family default
13230 (第
13231 \begin_inset CommandInset ref
13232 LatexCommand ref
13233 reference "subsec:foiltex"
13234 nolink "false"
13235
13236 \end_inset
13237
13238 節参照)や
13239 \family typewriter
13240 Seminar
13241 \family default
13242 (第
13243 \begin_inset CommandInset ref
13244 LatexCommand ref
13245 reference "subsec:Seminar"
13246 plural "false"
13247 caps "false"
13248 noprefix "false"
13249 nolink "false"
13250
13251 \end_inset
13252
13253 節参照)のように,
13254 他の\SpecialChar LaTeX2e
13255 クラスも存在します.他にどのようなことができるのか試してみてください.
13256 \end_layout
13257
13258 \begin_layout Section
13259 レポート
13260 \end_layout
13261
13262 \begin_layout Subsection
13263 Report
13264 \end_layout
13265
13266 \begin_layout Standard
13267 Reportクラスは,
13268 いわばbookクラスとarticleクラスの相の子です.これはbook文書クラスのように部・章・節を提供しますが,
13269 前付け・中付け・後付けは提供しません.またarticle文書クラスのように概要段落様式を提供し,
13270 既定では片面文書です.また(両面モードでも),
13271 新しい章を右側ページから始めることはしません.
13272 \end_layout
13273
13274 \begin_layout Standard
13275 外部でメンテナンスされていて,
13276 \SpecialChar LyX
13277 が公式にサポートしている
13278 \family sans
13279 report
13280 \family default
13281 文書クラスについては,
13282 コレクション(第
13283 \begin_inset CommandInset ref
13284 LatexCommand ref
13285 reference "sec:コレクション"
13286 plural "false"
13287 caps "false"
13288 noprefix "false"
13289 nolink "false"
13290
13291 \end_inset
13292
13293 節)に説明があります.
13294 \end_layout
13295
13296 \begin_layout Itemize
13297
13298 \family sans
13299 \series bold
13300 日本語
13301 \series default
13302 Report
13303 \begin_inset space \space{}
13304 \end_inset
13305
13306 (
13307 \series bold
13308 標準クラス
13309 \series default
13310 )
13311 \family default
13312 および
13313 \family sans
13314 \series bold
13315 日本語
13316 \series default
13317 Report
13318 \begin_inset space \space{}
13319 \end_inset
13320
13321 (
13322 \series bold
13323 縦書き
13324 \series default
13325 )
13326 \family default
13327 については,
13328
13329 \begin_inset CommandInset ref
13330 LatexCommand ref
13331 reference "subsec:日本語"
13332 plural "false"
13333 caps "false"
13334 noprefix "false"
13335 nolink "false"
13336
13337 \end_inset
13338
13339 節を参照してください.
13340 \end_layout
13341
13342 \begin_layout Itemize
13343
13344 \family sans
13345 KOMA-Script
13346 \begin_inset space \space{}
13347 \end_inset
13348
13349 Report
13350 \family default
13351 については,
13352
13353 \begin_inset CommandInset ref
13354 LatexCommand ref
13355 reference "subsec:Koma-Script"
13356 plural "false"
13357 caps "false"
13358 noprefix "false"
13359 nolink "false"
13360
13361 \end_inset
13362
13363 節を参照してください.
13364 \end_layout
13365
13366 \begin_layout Itemize
13367
13368 \family sans
13369 Report
13370 \begin_inset space \space{}
13371 \end_inset
13372
13373 (
13374 \series bold
13375 フォント寸法を追加した標準クラス
13376 \series default
13377 )
13378 \family default
13379 については,
13380
13381 \begin_inset CommandInset ref
13382 LatexCommand ref
13383 reference "subsec:追加フォント寸法"
13384 plural "false"
13385 caps "false"
13386 noprefix "false"
13387 nolink "false"
13388
13389 \end_inset
13390
13391 節を参照してください.
13392 \end_layout
13393
13394 \begin_layout Itemize
13395
13396 \family sans
13397 \series bold
13398 ポーランド語
13399 \series default
13400 Report
13401 \begin_inset space \space{}
13402 \end_inset
13403
13404 (MW
13405 \begin_inset space \space{}
13406 \end_inset
13407
13408 Bundle)
13409 \family default
13410 については,
13411
13412 \begin_inset CommandInset ref
13413 LatexCommand ref
13414 reference "subsec:ポーランド語M.W.コレクション"
13415 plural "false"
13416 caps "false"
13417 noprefix "false"
13418 nolink "false"
13419
13420 \end_inset
13421
13422 節を参照してください.
13423 \end_layout
13424
13425 \begin_layout Section
13426 台本
13427 \end_layout
13428
13429 \begin_layout Standard
13430
13431 \family sans
13432 \series bold
13433 台本
13434 \family default
13435 \series default
13436 カテゴリでは,
13437 演劇や映画の台本を執筆を援助する文書クラスをまとめています.このカテゴリには,
13438 講演台本のような他の台本にも開かれていますが,
13439 まだ公式に\SpecialChar LyX
13440 がサポートしているクラスはありません.
13441 \end_layout
13442
13443 \begin_layout Subsection
13444 Broadway
13445 \end_layout
13446
13447 \begin_layout Standard
13448
13449 \noun on
13450 Garst Reese
13451 \noun default
13452
13453 \end_layout
13454
13455 \begin_layout Subsubsection
13456 はじめに
13457 \end_layout
13458
13459 \begin_layout Standard
13460
13461 \family sans
13462 Broadway
13463 \family default
13464 は演劇を書くためのものです.書式は
13465 \family sans
13466 Hollywood
13467 \family default
13468 (第
13469 \begin_inset CommandInset ref
13470 LatexCommand ref
13471 reference "subsec:Hollywood"
13472 plural "false"
13473 caps "false"
13474 noprefix "false"
13475 nolink "false"
13476
13477 \end_inset
13478
13479 節参照)よりも装飾的で,
13480 それほど標準化されていません.この書式はワークショップに向いているでしょう.
13481 \end_layout
13482
13483 \begin_layout Subsubsection
13484 特別な問題
13485 \end_layout
13486
13487 \begin_layout Standard
13488
13489 \family sans
13490 Hollywood
13491 \family default
13492 と同様です(第
13493 \begin_inset CommandInset ref
13494 LatexCommand ref
13495 reference "subsec:Hollywoodの特別な問題"
13496 plural "false"
13497 caps "false"
13498 noprefix "false"
13499 nolink "false"
13500
13501 \end_inset
13502
13503 節参照).
13504 \end_layout
13505
13506 \begin_layout Subsubsection
13507 特別の機能
13508 \end_layout
13509
13510 \begin_layout Standard
13511
13512 \family sans
13513 話者
13514 \family default
13515 の名前をラベルとして挿入し,
13516 名前を挿入する際には,
13517 このラベルを相互参照してください.相互参照ダイアログには,
13518 登場人物の現在の配役が表示されます.
13519 \end_layout
13520
13521 \begin_layout Subsubsection
13522 用紙寸法と余白
13523 \end_layout
13524
13525 \begin_layout Standard
13526 USレター寸法で,
13527 余白は左1.6インチ,
13528 右0.75インチ,
13529 上0.5インチ,
13530 下0.75インチです.
13531 \end_layout
13532
13533 \begin_layout Subsubsection
13534 環境
13535 \end_layout
13536
13537 \begin_layout Standard
13538 以下の環境を使うことができます.右に記してあるキー割当ては,
13539 broadway.bindを使った場合のものです.
13540 \end_layout
13541
13542 \begin_layout Itemize
13543
13544 \family sans
13545 \series bold
13546 標準
13547 \series default
13548
13549 \begin_inset Newline newline
13550 \end_inset
13551
13552
13553 \family default
13554 これは使わなくていいはずですが,
13555 他の環境が当てはまらない場合のためにここに挙げておきます.
13556 \end_layout
13557
13558 \begin_layout Itemize
13559
13560 \family sans
13561 \series bold
13562 ト書き
13563 \series default
13564
13565 \begin_inset space \hfill{}
13566 \end_inset
13567
13568 M-z n
13569 \begin_inset Newline newline
13570 \end_inset
13571
13572
13573 \family default
13574 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
13575 \end_layout
13576
13577 \begin_layout Itemize
13578
13579 \family sans
13580 \series bold
13581
13582 \series default
13583
13584 \begin_inset space \hfill{}
13585 \end_inset
13586
13587 M-z a
13588 \begin_inset Newline newline
13589 \end_inset
13590
13591
13592 \family default
13593 自動的に連番が振られます.連番は,
13594 画面上ではアラビア数字ですが,
13595 出力ではローマ数字です.
13596 \end_layout
13597
13598 \begin_layout Itemize
13599
13600 \family sans
13601 \series bold
13602 幕*
13603 \series default
13604
13605 \begin_inset space \hfill{}
13606 \end_inset
13607
13608 M-z S at
13609 \begin_inset Newline newline
13610 \end_inset
13611
13612
13613 \family default
13614 幕の副題です.単に中央揃えの文になります.
13615 \end_layout
13616
13617 \begin_layout Itemize
13618
13619 \family sans
13620 \series bold
13621 場面
13622 \series default
13623
13624 \begin_inset space \hfill{}
13625 \end_inset
13626
13627 M-z S-S
13628 \begin_inset Newline newline
13629 \end_inset
13630
13631
13632 \family default
13633 自動的に連番は振られませんので,
13634 手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
13635 \end_layout
13636
13637 \begin_layout Itemize
13638
13639 \family sans
13640 \series bold
13641 幕開きに
13642 \series default
13643
13644
13645 \begin_inset space \hfill{}
13646 \end_inset
13647
13648 M-z S-R
13649 \begin_inset Newline newline
13650 \end_inset
13651
13652
13653 \family default
13654 ト書きの特殊な場合で,
13655 カーテンが上がるときの舞台設定と動作を説明します.
13656 \end_layout
13657
13658 \begin_layout Itemize
13659
13660 \family sans
13661 \series bold
13662 話者
13663 \series default
13664
13665 \begin_inset space \hfill{}
13666 \end_inset
13667
13668 M-z s
13669 \begin_inset Newline newline
13670 \end_inset
13671
13672
13673 \family default
13674 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
13675 \end_layout
13676
13677 \begin_layout Itemize
13678
13679 \family sans
13680 \series bold
13681 括弧付き
13682 \series default
13683
13684 \begin_inset space \hfill{}
13685 \end_inset
13686
13687 M-z p
13688 \begin_inset Newline newline
13689 \end_inset
13690
13691
13692 \family default
13693 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,
13694 印字出力には両方の括弧が表示されます.この環境は,
13695
13696 \family sans
13697 対話
13698 \family default
13699 の中だけで使用されます. 
13700 \end_layout
13701
13702 \begin_layout Itemize
13703
13704 \family sans
13705 \series bold
13706 対話
13707 \series default
13708
13709 \begin_inset space \hfill{}
13710 \end_inset
13711
13712 M-z d
13713 \begin_inset Newline newline
13714 \end_inset
13715
13716
13717 \family default
13718 話者の言う内容.
13719 \end_layout
13720
13721 \begin_layout Itemize
13722
13723 \family sans
13724 \series bold
13725 幕切れ
13726 \series default
13727
13728 \begin_inset space \hfill{}
13729 \end_inset
13730
13731 M-z S-C
13732 \begin_inset Newline newline
13733 \end_inset
13734
13735
13736 \family default
13737 幕が降ります.
13738 \end_layout
13739
13740 \begin_layout Itemize
13741
13742 \family sans
13743 \series bold
13744 タイトル
13745 \series default
13746
13747 \begin_inset space \hfill{}
13748 \end_inset
13749
13750 M-z S-T
13751 \end_layout
13752
13753 \begin_layout Itemize
13754
13755 \family sans
13756 \series bold
13757 著者
13758 \series default
13759
13760 \begin_inset space \hfill{}
13761 \end_inset
13762
13763 M-z S-A
13764 \end_layout
13765
13766 \begin_layout Itemize
13767
13768 \family sans
13769 \series bold
13770 右寄せ住所
13771 \series default
13772
13773 \begin_inset space \hfill{}
13774 \end_inset
13775
13776 M-z r
13777 \end_layout
13778
13779 \begin_layout Subsection
13780 Hollywood(Hollywoodスペック・スクリプト)
13781 \begin_inset CommandInset label
13782 LatexCommand label
13783 name "subsec:Hollywood"
13784
13785 \end_inset
13786
13787
13788 \end_layout
13789
13790 \begin_layout Standard
13791
13792 \noun on
13793 Garst Reese
13794 \noun default
13795
13796 \end_layout
13797
13798 \begin_layout Subsubsection
13799 はじめに
13800 \end_layout
13801
13802 \begin_layout Standard
13803 脚本を正しい書式で書くことは,
13804 ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,
13805 読み手が内容に集中できるようにし,
13806 俳優にとっても読みやすくかつ親しみやすいように設計されています.脚本の1ページは,
13807 映画の1分でなければならず,
13808 銀幕上で見えたり聞こえたりしないものは,
13809 脚本に混入してはなりません.また,
13810 全体を通してCourier 12
13811 \begin_inset space \space{}
13812 \end_inset
13813
13814 ptフォントを使わなければならず,
13815 イタリック体は用いてはいけません.
13816 \end_layout
13817
13818 \begin_layout Subsubsection
13819 特別な問題
13820 \begin_inset CommandInset label
13821 LatexCommand label
13822 name "subsec:Hollywoodの特別な問題"
13823
13824 \end_inset
13825
13826
13827 \end_layout
13828
13829 \begin_layout Standard
13830 話者の行は,
13831 文の途中で改行することは
13832 \begin_inset Flex 圏点
13833 status open
13834
13835 \begin_layout Plain Layout
13836 決して
13837 \end_layout
13838
13839 \end_inset
13840
13841 あってはなりません.もし話者行の塊が,
13842 次頁にまたがる場合には,
13843
13844 \family sans
13845 話者
13846 \family default
13847 名を再度書き,
13848 その後に(Cont'd)と加えます.
13849 \end_layout
13850
13851 \begin_layout Subsubsection
13852 特別な機能
13853 \end_layout
13854
13855 \begin_layout Standard
13856
13857 \family sans
13858 話者
13859 \family default
13860 名はラベルとして挿入し,
13861 話者名を挿入するには,
13862 そのラベルを相互参照してください.相互参照ダイアログは,
13863 登場人物の現在の配役を表示することになります.これは,
13864 ト書きに話者名を挿入するのにも使用することができます.
13865 \end_layout
13866
13867 \begin_layout Subsubsection
13868 用紙寸法と余白
13869 \end_layout
13870
13871 \begin_layout Standard
13872 USレター寸法で,
13873 左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
13874 \end_layout
13875
13876 \begin_layout Subsubsection
13877 環境
13878 \end_layout
13879
13880 \begin_layout Standard
13881 以下の環境が利用可能です.右に示されているキー割当てを使用するには,
13882 hollywood.bindを使用してください.
13883 \end_layout
13884
13885 \begin_layout Itemize
13886
13887 \family sans
13888 \series bold
13889 一般
13890 \series default
13891
13892 \begin_inset Newline newline
13893 \end_inset
13894
13895
13896 \family default
13897 他の環境が動作しない場合に使用しますが,
13898 これを使うことは避けるようにしてください.
13899 \end_layout
13900
13901 \begin_layout Itemize
13902
13903 \family sans
13904 \series bold
13905 フェイドイン
13906 \series default
13907 :
13908 \family default
13909
13910 \begin_inset space \hfill{}
13911 \end_inset
13912
13913
13914 \family sans
13915 M-z S-I
13916 \family default
13917
13918 \begin_inset Newline newline
13919 \end_inset
13920
13921 通常,
13922 この後には「Sallyは目を覚ますと」のように続きます.
13923 \end_layout
13924
13925 \begin_layout Itemize
13926
13927 \family sans
13928 \series bold
13929 屋内
13930 \series default
13931 :
13932 \begin_inset space \hfill{}
13933 \end_inset
13934
13935 M-z i
13936 \begin_inset Newline newline
13937 \end_inset
13938
13939
13940 \family default
13941 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,
13942 かならずDAYやNIGHTなどを指定して,
13943 必要な照明を定義します.この行はすべて大文字で書きます.
13944 \end_layout
13945
13946 \begin_layout Itemize
13947
13948 \family sans
13949 \series bold
13950 屋外
13951 \series default
13952 :
13953 \begin_inset space \hfill{}
13954 \end_inset
13955
13956 M-z e
13957 \begin_inset Newline newline
13958 \end_inset
13959
13960
13961 \family default
13962 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
13963 \end_layout
13964
13965 \begin_layout Itemize
13966
13967 \family sans
13968 \series bold
13969 話者
13970 \series default
13971
13972 \begin_inset space \hfill{}
13973 \end_inset
13974
13975 M-z s
13976 \begin_inset Newline newline
13977 \end_inset
13978
13979
13980 \family default
13981 話す役.
13982 \end_layout
13983
13984 \begin_layout Itemize
13985
13986 \family sans
13987 \series bold
13988 括弧付き
13989 \series default
13990
13991 \begin_inset space \hfill{}
13992 \end_inset
13993
13994 M-z p
13995 \begin_inset Newline newline
13996 \end_inset
13997
13998 話者
13999 \family default
14000 への指示.自動的に括弧()が挿入されます.
14001 \end_layout
14002
14003 \begin_layout Itemize
14004
14005 \family sans
14006 \series bold
14007 対話
14008 \series default
14009
14010 \begin_inset space \hfill{}
14011 \end_inset
14012
14013 M-z d
14014 \begin_inset Newline newline
14015 \end_inset
14016
14017 話者
14018 \family default
14019 が話す内容.
14020 \end_layout
14021
14022 \begin_layout Itemize
14023
14024 \family sans
14025 \series bold
14026 画面遷移
14027 \series default
14028
14029 \begin_inset space \hfill{}
14030 \end_inset
14031
14032 M-z t
14033 \begin_inset Newline newline
14034 \end_inset
14035
14036
14037 \family default
14038 カメラの動きの指示.例:
14039 CUT TO:.
14040 \end_layout
14041
14042 \begin_layout Itemize
14043
14044 \family sans
14045 \series bold
14046 フェイドアウト
14047 \series default
14048 :
14049 \begin_inset space \hfill{}
14050 \end_inset
14051
14052 M-z S-I
14053 \end_layout
14054
14055 \begin_layout Itemize
14056
14057 \family sans
14058 \series bold
14059 著者
14060 \series default
14061
14062 \begin_inset space \hfill{}
14063 \end_inset
14064
14065 M-z S-A
14066 \end_layout
14067
14068 \begin_layout Itemize
14069
14070 \family sans
14071 \series bold
14072 タイトル
14073 \series default
14074
14075 \begin_inset space \hfill{}
14076 \end_inset
14077
14078 M-z S-T
14079 \end_layout
14080
14081 \begin_layout Itemize
14082
14083 \family sans
14084 \series bold
14085 右寄せ住所
14086 \series default
14087
14088 \begin_inset space \hfill{}
14089 \end_inset
14090
14091 M-z r
14092 \end_layout
14093
14094 \begin_layout Subsubsection
14095 脚本で使われる特別な用語
14096 \end_layout
14097
14098 \begin_layout Itemize
14099 (O.S) —
14100  off screen
14101 \end_layout
14102
14103 \begin_layout Itemize
14104 (V.0) —
14105  voice over
14106 \end_layout
14107
14108 \begin_layout Itemize
14109 b.g.
14110  —
14111  background
14112 \end_layout
14113
14114 \begin_layout Itemize
14115 C.U.
14116  —
14117  close-up
14118 \end_layout
14119
14120 \begin_layout Itemize
14121 PAN —
14122  camera movement
14123 \end_layout
14124
14125 \begin_layout Itemize
14126 INSERT —
14127  cut to close-up of
14128 \end_layout
14129
14130 \begin_layout Chapter
14131 モジュール
14132 \end_layout
14133
14134 \begin_layout Section
14135 特定の学術分野
14136 \end_layout
14137
14138 \begin_layout Subsection
14139 化学:
14140 危険有害性情報・注意書き
14141 \end_layout
14142
14143 \begin_layout Standard
14144 このモジュールは,
14145 化学物質の危険有害性情報・注意書きの番号と説明文を組版するための,
14146 2つの差込枠と段落様式を提供します.詳細については,
14147
14148 \family sans
14149 \series bold
14150 ファイル\SpecialChar menuseparator
14151 用例を開く\SpecialChar menuseparator
14152 モジュール\SpecialChar menuseparator
14153 危険有害性情報・注意書き
14154 \family default
14155 \series default
14156
14157 \begin_inset space \thinspace{}
14158 \end_inset
14159
14160 および
14161 \begin_inset space \thinspace{}
14162 \end_inset
14163
14164
14165 \family sans
14166 \series bold
14167 ヘルプ\SpecialChar menuseparator
14168 用途別説明書\SpecialChar menuseparator
14169 危険有害性情報・注意書き
14170 \family default
14171 \series default
14172
14173 \begin_inset space \thinspace{}
14174 \end_inset
14175
14176 をご覧ください.
14177 \end_layout
14178
14179 \begin_layout Subsection
14180 化学:
14181 リスクと安全性に関する表示
14182 \end_layout
14183
14184 \begin_layout Standard
14185 このモジュールは,
14186
14187 \family sans
14188 \series bold
14189 挿入\SpecialChar menuseparator
14190 特別差込枠
14191 \family default
14192 \series default
14193
14194 \begin_inset space \thinspace{}
14195 \end_inset
14196
14197 から入力することのできる
14198 \family sans
14199 R-S
14200 \series bold
14201 番号
14202 \family default
14203 \series default
14204
14205 \family sans
14206 R-S
14207 \series bold
14208
14209 \family default
14210 \series default
14211 の2つの差込枠と,
14212 化学物質のリスクと安全性に関する表示の番号と説明文を組版するための1つの環境を提供します.
14213 \end_layout
14214
14215 \begin_layout Subsection
14216 言語学
14217 \end_layout
14218
14219 \begin_layout Standard
14220 このモジュールは,
14221 言語学に便利な環境(付番用例や語句注解,
14222 セマンティック・マークアップ,
14223 OT絵画フロート)を付け加えます.このモジュールについての情報は,
14224
14225 \family sans
14226 \series bold
14227 ヘルプ\SpecialChar menuseparator
14228 用途別説明書\SpecialChar menuseparator
14229 言語学
14230 \family default
14231 \series default
14232
14233 \begin_inset space \thinspace{}
14234 \end_inset
14235
14236 および
14237 \family sans
14238 \series bold
14239 ファイル\SpecialChar menuseparator
14240 用例を開く\SpecialChar menuseparator
14241 モジュール\SpecialChar menuseparator
14242 言語学
14243 \family default
14244 \series default
14245
14246 \begin_inset space \thinspace{}
14247 \end_inset
14248
14249 で入手できます.
14250 \end_layout
14251
14252 \begin_layout Section
14253 アクセシビリティ
14254 \end_layout
14255
14256 \begin_layout Subsection
14257 点字
14258 \end_layout
14259
14260 \begin_layout Standard
14261 このモジュールは点字筆記をサポートし,
14262 \SpecialChar LaTeX
14263 パッケージの
14264 \family typewriter
14265 braille.sty
14266 \family default
14267 を必要とします.パッケージと関連文書は
14268 \begin_inset CommandInset href
14269 LatexCommand href
14270 name "CTAN"
14271 target "https://www.ctan.org/pkg/braille"
14272 literal "false"
14273
14274 \end_inset
14275
14276 から入手できます.
14277 \family sans
14278 \series bold
14279 ヘルプ\SpecialChar menuseparator
14280 用途別説明書\SpecialChar menuseparator
14281 点字
14282 \family default
14283 \series default
14284
14285 \begin_inset space \thinspace{}
14286 \end_inset
14287
14288 および
14289 \family sans
14290 \series bold
14291 ファイル\SpecialChar menuseparator
14292 用例を開く\SpecialChar menuseparator
14293 モジュール\SpecialChar menuseparator
14294 点字
14295 \family default
14296 \series default
14297
14298 \begin_inset space \thinspace{}
14299 \end_inset
14300
14301 をご覧ください.
14302 \end_layout
14303
14304 \begin_layout Section
14305 記註及び改訂
14306 \end_layout
14307
14308 \begin_layout Subsection
14309 FiXme註釈
14310 \end_layout
14311
14312 \begin_layout Standard
14313 このモジュールは,
14314 文書改訂のための「FiXme」(余白)註釈を提供します.「FIXME一覧」段落様式を用いれば,
14315 註釈一覧を生成することができます.これらの註釈はLaTeXプリアンブルで設定を変更できます.
14316 \begin_inset CommandInset href
14317 LatexCommand href
14318 name "CTAN"
14319 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
14320 literal "false"
14321
14322 \end_inset
14323
14324 で入手できる
14325 \family sans
14326 fixme
14327 \family default
14328 解説文書をご覧ください.
14329 \end_layout
14330
14331 \begin_layout Paragraph
14332 註:
14333
14334 \end_layout
14335
14336 \begin_layout Standard
14337 既定状態では,
14338 註釈は「原稿」モードでのみ表示されます(
14339 \family sans
14340 \series bold
14341 文書\SpecialChar menuseparator
14342 設定\SpecialChar menuseparator
14343 文書クラス\SpecialChar menuseparator
14344 クラスオプション\SpecialChar menuseparator
14345 詳細設定
14346 \family default
14347 \series default
14348
14349 \begin_inset space \thinspace{}
14350 \end_inset
14351
14352 で「draft」オプションを指定した時のみ).註釈をつねに表示するには,
14353
14354 \family sans
14355 \series bold
14356 文書\SpecialChar menuseparator
14357 設定\SpecialChar menuseparator
14358 プリアンブル
14359 \family default
14360 \series default
14361
14362 \begin_inset space \thinspace{}
14363 \end_inset
14364
14365
14366 \family typewriter
14367
14368 \backslash
14369 fxsetup{draft}
14370 \family default
14371 と指定してください.
14372 \end_layout
14373
14374 \begin_layout Subsection
14375 PDFコメント
14376 \end_layout
14377
14378 \begin_layout Standard
14379 このモジュールは,
14380 PDF出力向けに各種註釈を提供します.
14381 \family sans
14382 \series bold
14383 ヘルプ\SpecialChar menuseparator
14384 用途別説明書\SpecialChar menuseparator
14385
14386 \series default
14387 PDF
14388 \series bold
14389 コメント
14390 \family default
14391 \series default
14392
14393 \begin_inset space \thinspace{}
14394 \end_inset
14395
14396 および
14397 \begin_inset space \thinspace{}
14398 \end_inset
14399
14400
14401 \family sans
14402 \series bold
14403 ファイル\SpecialChar menuseparator
14404 用例を開く\SpecialChar menuseparator
14405 モジュール\SpecialChar menuseparator
14406
14407 \series default
14408 PDF
14409 \series bold
14410 コメント
14411 \family default
14412 \series default
14413
14414 \begin_inset space \thinspace{}
14415 \end_inset
14416
14417 をご覧ください.
14418 \end_layout
14419
14420 \begin_layout Subsection
14421 PDFフォーム
14422 \end_layout
14423
14424 \begin_layout Standard
14425 PDFフォーム用のフィールドとボタンを提供します.
14426 \begin_inset CommandInset href
14427 LatexCommand href
14428 name "hyperref解説文書"
14429 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
14430 literal "false"
14431
14432 \end_inset
14433
14434 および
14435 \family sans
14436 \series bold
14437 ヘルプ\SpecialChar menuseparator
14438 用途別説明書\SpecialChar menuseparator
14439
14440 \series default
14441 PDF
14442 \series bold
14443 フォーム
14444 \family default
14445 \series default
14446
14447 \begin_inset space \thinspace{}
14448 \end_inset
14449
14450 および
14451 \begin_inset space \thinspace{}
14452 \end_inset
14453
14454
14455 \family sans
14456 \series bold
14457 ファイル\SpecialChar menuseparator
14458 用例を開く\SpecialChar menuseparator
14459 モジュール\SpecialChar menuseparator
14460
14461 \series default
14462 PDF
14463 \series bold
14464 フォーム
14465 \family default
14466 \series default
14467
14468 \begin_inset space \thinspace{}
14469 \end_inset
14470
14471 をご覧ください.
14472 \end_layout
14473
14474 \begin_layout Subsection
14475 ルビ(振り仮名)
14476 \end_layout
14477
14478 \begin_layout Standard
14479 このモジュールは,
14480 漢字の読み(ルビ・振り仮名)を組版する差込枠を定義します.(TeXエンジンによって) okumacro・luatexja-ruby・rubyパッケージあるいは避難的定義を使用します.
14481 \end_layout
14482
14483 \begin_layout Subsection
14484 TODO註釈
14485 \end_layout
14486
14487 \begin_layout Standard
14488 このモジュールは,
14489 文書中にTODO項目を入れ込む特別差込枠を提供し,
14490 「TODO一覧」を生成するための段落様式も提供します.
14491 \family sans
14492 \series bold
14493 文書\SpecialChar menuseparator
14494 文書クラス\SpecialChar menuseparator
14495 クラスオプション\SpecialChar menuseparator
14496 詳細設定
14497 \family default
14498 \series default
14499 に「final」を渡せば,
14500 TODO註釈は出力されません. 
14501 \begin_inset CommandInset href
14502 LatexCommand href
14503 name "todonotes解説文書"
14504 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
14505 literal "false"
14506
14507 \end_inset
14508
14509 を参照してください.
14510 \end_layout
14511
14512 \begin_layout Section
14513 書誌情報
14514 \end_layout
14515
14516 \begin_layout Subsection
14517 Natbibを使用したAPA様式
14518 \end_layout
14519
14520 \begin_layout Standard
14521 このモジュールは,
14522 apaciteと共にnatbibを使用できるようにします(書誌情報様式はapaciteである必要はありません —
14523  natbibとapaciteの両パッケージで動作する様式であれば,
14524 apaciteやapacitexあるいは他の様式でも構いません). 
14525 \end_layout
14526
14527 \begin_layout Section
14528 ボックス
14529 \end_layout
14530
14531 \begin_layout Subsection
14532 色付き装飾ボックス
14533 \end_layout
14534
14535 \begin_layout Standard
14536 このモジュールは,
14537 tcolorboxパッケージを使って色付きボックスをサポートする特別差込枠を追加します.詳細については,
14538
14539 \family sans
14540 \series bold
14541 ヘルプ\SpecialChar menuseparator
14542 用途別説明書\SpecialChar menuseparator
14543 色付きボックス
14544 \family default
14545 \series default
14546
14547 \begin_inset space \thinspace{}
14548 \end_inset
14549
14550 および
14551 \begin_inset space \thinspace{}
14552 \end_inset
14553
14554
14555 \family sans
14556 \series bold
14557 ファイル\SpecialChar menuseparator
14558 用例を開く\SpecialChar menuseparator
14559 モジュール\SpecialChar menuseparator
14560 色付き装飾ボックス
14561 \family default
14562 \series default
14563
14564
14565 \begin_inset CommandInset href
14566 LatexCommand href
14567 name "tcolorbox 解説文書"
14568 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
14569 literal "false"
14570
14571 \end_inset
14572
14573 をご覧ください. 
14574 \end_layout
14575
14576 \begin_layout Subsection
14577 画像ボックス
14578 \end_layout
14579
14580 \begin_layout Standard
14581 これは,
14582 ボックスの中身を伸縮したり回転したりする
14583 \family sans
14584 \series bold
14585 反転ボックス
14586 \family default
14587 \series default
14588
14589 \family sans
14590 \series bold
14591 寸法変更ボックス
14592 \family default
14593 \series default
14594
14595 \family sans
14596 \series bold
14597 回転ボックス
14598 \family default
14599 \series default
14600
14601 \family sans
14602 \series bold
14603 伸縮ボックス
14604 \family default
14605 \series default
14606 の各特別差込枠を提供します.
14607 \end_layout
14608
14609 \begin_layout Standard
14610
14611 \family sans
14612 \series bold
14613 反転ボックス
14614 \family default
14615 \series default
14616 は,
14617 下記のように,
14618 特段の設定なく簡単に文を反転させることができます.
14619 \end_layout
14620
14621 \begin_layout Standard
14622 \begin_inset Flex Reflectbox
14623 status open
14624
14625 \begin_layout Plain Layout
14626 Great Western Railway グレートウェスタン鉄道
14627 \end_layout
14628
14629 \end_inset
14630
14631
14632 \end_layout
14633
14634 \begin_layout Standard
14635 (これらの例を見るためには,
14636 Ctrl-Rを押す必要があります.)
14637 \end_layout
14638
14639 \begin_layout Standard
14640
14641 \family sans
14642 \series bold
14643 寸法変更ボックス
14644 \family default
14645 \series default
14646 を使うと,
14647 文や画像の寸法を指定することができます.使用することのできる単位は,
14648 em・ex・in・pt・pc・cm・mm・dd・cc・nd・nc・bp・spです.下記のように
14649 \family typewriter
14650 高さ
14651 \family default
14652
14653 \family typewriter
14654  !
14655  
14656 \family default
14657 を入力すると,
14658 幅の因数で寸法を指定できます.
14659 \end_layout
14660
14661 \begin_layout Standard
14662 \begin_inset Flex Resizebox
14663 status open
14664
14665 \begin_layout Plain Layout
14666 \begin_inset Argument 1
14667 status open
14668
14669 \begin_layout Plain Layout
14670 128mm
14671 \end_layout
14672
14673 \end_inset
14674
14675
14676 \begin_inset Argument 2
14677 status open
14678
14679 \begin_layout Plain Layout
14680 !
14681 \end_layout
14682
14683 \end_inset
14684
14685 Great Western Railway グレートウェスタン鉄道
14686 \end_layout
14687
14688 \end_inset
14689
14690
14691 \end_layout
14692
14693 \begin_layout Standard
14694
14695 \family sans
14696 \series bold
14697 回転ボックス
14698 \family default
14699 \series default
14700 を使えば,
14701 ボックスの参照点を中心に内容物を回転させることができます.入れることができます.異なる原点の周りに回転させたい場合は,
14702 ボックスの中にカーソルを置いて,
14703
14704 \family sans
14705 \series bold
14706 挿入\SpecialChar menuseparator
14707 原点
14708 \family default
14709 \series default
14710
14711 \begin_inset space \thinspace{}
14712 \end_inset
14713
14714 でを選択してください.
14715 \series bold
14716 origin
14717 \series default
14718
14719 \family sans
14720 c・l・r・b・t
14721 \family default
14722 あるいはこれらの組み合わせで指定できます.また,
14723 回転角度は,
14724 反時計回りの角度で表現されます.たとえば,
14725
14726 \end_layout
14727
14728 \begin_layout Standard
14729 \begin_inset Flex Rotatebox
14730 status open
14731
14732 \begin_layout Plain Layout
14733 \begin_inset Argument 1
14734 status open
14735
14736 \begin_layout Plain Layout
14737 origin=c
14738 \end_layout
14739
14740 \end_inset
14741
14742
14743 \begin_inset Argument 2
14744 status open
14745
14746 \begin_layout Plain Layout
14747 30
14748 \end_layout
14749
14750 \end_inset
14751
14752 Great Western Railway グレートウェスタン鉄道
14753 \end_layout
14754
14755 \end_inset
14756
14757
14758 \end_layout
14759
14760 \begin_layout Standard
14761 また,
14762 下記のように,
14763 ボックスを組み合わせることも可能です.
14764 \end_layout
14765
14766 \begin_layout Standard
14767 \noindent
14768 \align center
14769 \begin_inset Flex Rotatebox
14770 status open
14771
14772 \begin_layout Plain Layout
14773 \begin_inset Argument 1
14774 status open
14775
14776 \begin_layout Plain Layout
14777 origin=c
14778 \end_layout
14779
14780 \end_inset
14781
14782
14783 \begin_inset Argument 2
14784 status open
14785
14786 \begin_layout Plain Layout
14787 -15
14788 \end_layout
14789
14790 \end_inset
14791
14792
14793 \begin_inset Flex Resizebox
14794 status open
14795
14796 \begin_layout Plain Layout
14797 \begin_inset Argument 1
14798 status open
14799
14800 \begin_layout Plain Layout
14801 96mm
14802 \end_layout
14803
14804 \end_inset
14805
14806
14807 \begin_inset Argument 2
14808 status open
14809
14810 \begin_layout Plain Layout
14811 !
14812 \end_layout
14813
14814 \end_inset
14815
14816
14817 \begin_inset Flex Reflectbox
14818 status open
14819
14820 \begin_layout Plain Layout
14821 Great Western Railway グレートウェスタン鉄道
14822 \end_layout
14823
14824 \end_inset
14825
14826
14827 \end_layout
14828
14829 \end_inset
14830
14831
14832 \end_layout
14833
14834 \end_inset
14835
14836
14837 \end_layout
14838
14839 \begin_layout Standard
14840
14841 \family sans
14842 \series bold
14843 伸縮ボックス
14844 \family default
14845 \series default
14846 は内容物を伸縮します.垂直因子を追加するには,
14847
14848 \family sans
14849 \series bold
14850 挿入\SpecialChar menuseparator
14851 垂直因子
14852 \family default
14853 \series default
14854
14855 \begin_inset space \thinspace{}
14856 \end_inset
14857
14858 を選択してください.
14859 \family sans
14860 \series bold
14861 垂直因子
14862 \family default
14863 \series default
14864 を使わない場合には,
14865 水平因子が使われます.水平因子と垂直因子の値が異なる場合には,
14866 下記のように歪みが生まれます.
14867 \end_layout
14868
14869 \begin_layout Standard
14870 \begin_inset Flex Scalebox
14871 status open
14872
14873 \begin_layout Plain Layout
14874 \begin_inset Argument 1
14875 status open
14876
14877 \begin_layout Plain Layout
14878 1.5
14879 \end_layout
14880
14881 \end_inset
14882
14883
14884 \begin_inset Argument 2
14885 status open
14886
14887 \begin_layout Plain Layout
14888 1
14889 \end_layout
14890
14891 \end_inset
14892
14893 Great Western Railway グレートウェスタン鉄道
14894 \end_layout
14895
14896 \end_inset
14897
14898
14899 \end_layout
14900
14901 \begin_layout Standard
14902 負の水平因子は文を水平方向に逆にし,
14903
14904 \end_layout
14905
14906 \begin_layout Standard
14907 \begin_inset Flex Scalebox
14908 status open
14909
14910 \begin_layout Plain Layout
14911 \begin_inset Argument 1
14912 status open
14913
14914 \begin_layout Plain Layout
14915 -1
14916 \end_layout
14917
14918 \end_inset
14919
14920
14921 \begin_inset Argument 2
14922 status open
14923
14924 \begin_layout Plain Layout
14925 1
14926 \end_layout
14927
14928 \end_inset
14929
14930 Great Western Railway グレートウェスタン鉄道
14931 \end_layout
14932
14933 \end_inset
14934
14935
14936 \end_layout
14937
14938 \begin_layout Standard
14939 負の垂直因子は文字を垂直方向にひっくり返します.
14940 \end_layout
14941
14942 \begin_layout Standard
14943 \begin_inset Flex Scalebox
14944 status open
14945
14946 \begin_layout Plain Layout
14947 \begin_inset Argument 1
14948 status open
14949
14950 \begin_layout Plain Layout
14951 1
14952 \end_layout
14953
14954 \end_inset
14955
14956
14957 \begin_inset Argument 2
14958 status open
14959
14960 \begin_layout Plain Layout
14961 -1
14962 \end_layout
14963
14964 \end_inset
14965
14966 Great Western Railway グレートウェスタン鉄道
14967 \end_layout
14968
14969 \end_inset
14970
14971
14972 \end_layout
14973
14974 \begin_layout Subsection
14975 節ボックス
14976 \end_layout
14977
14978 \begin_layout Standard
14979 このモジュールは,
14980 節見出し付きのボックスを定義します.主にSciPoster文書クラス向けです. 
14981 \end_layout
14982
14983 \begin_layout Subsection
14984 可変幅ミニページ
14985 \end_layout
14986
14987 \begin_layout Standard
14988 このモジュールは,
14989 \SpecialChar LaTeX
14990 パッケージの
14991 \family sans
14992 varwidth
14993 \family default
14994 を使用する
14995 \family sans
14996 \series bold
14997 ミニページ(可変幅)
14998 \family default
14999 \series default
15000 差込枠を
15001 \family sans
15002 \series bold
15003
15004 \begin_inset space \thinspace{}
15005 \end_inset
15006
15007 挿入\SpecialChar menuseparator
15008 特別差込枠
15009 \begin_inset space \thinspace{}
15010 \end_inset
15011
15012
15013 \family default
15014 \series default
15015 に追加します.
15016 \family sans
15017 varwidth
15018 \family default
15019 パッケージは,
15020 幅が(指定された上限幅を越えない限り)内容幅と同じになるような,
15021 可変幅のミニページを提供します.この差込枠には2つの非必須引数があり,
15022 カーソルをミニページの内側に置いて,
15023
15024 \family sans
15025 \series bold
15026 挿入\SpecialChar menuseparator
15027 垂直調整
15028 \begin_inset space \thinspace{}
15029 \end_inset
15030
15031
15032 \family default
15033 \series default
15034 (
15035 \family sans
15036 c
15037 \family default
15038 |
15039 \family sans
15040 t
15041 \family default
15042 |
15043 \family sans
15044 b
15045 \family default
15046 )か
15047 \family sans
15048 \series bold
15049
15050 \begin_inset space \thinspace{}
15051 \end_inset
15052
15053 挿入\SpecialChar menuseparator
15054 最大幅
15055 \begin_inset space \thinspace{}
15056 \end_inset
15057
15058
15059 \family default
15060 \series default
15061 (既定値は
15062 \family typewriter
15063
15064 \backslash
15065 linewidth
15066 \family default
15067 )を使用します.
15068 \family sans
15069 \series bold
15070 ファイル\SpecialChar menuseparator
15071 用例を開く\SpecialChar menuseparator
15072 モジュール\SpecialChar menuseparator
15073 可変幅ミニページ
15074 \family default
15075 \series default
15076 をご覧ください.
15077 \end_layout
15078
15079 \begin_layout Section
15080 修正とハック
15081 \end_layout
15082
15083 \begin_layout Subsection
15084 Computer Modernフォントの修復
15085 \end_layout
15086
15087 \begin_layout Standard
15088 このモジュールは
15089 \family sans
15090 fix-cm
15091 \family default
15092 パッケージを使用して,
15093 Computer Modernフォントの外観を改善し,
15094 任意の寸法で使用できるようにするものです.
15095 \begin_inset CommandInset href
15096 LatexCommand href
15097 name "fix-cm 解説文書"
15098 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
15099 literal "false"
15100
15101 \end_inset
15102
15103 を参照.
15104 \end_layout
15105
15106 \begin_layout Subsection
15107 \SpecialChar LaTeX
15108 カーネル修正(廃版)
15109 \end_layout
15110
15111 \begin_layout Standard
15112 このモジュールは,
15113 \SpecialChar LaTeX
15114 のいくつかのバグ修正を含む,
15115 \SpecialChar LaTeX
15116 パッケージの
15117 \family sans
15118 fixltx2e
15119 \family default
15120 を読み込みます.このモジュールを使って文書の処理を行うと,
15121
15122 \family sans
15123 fixltx2e
15124 \family default
15125 のバージョンの違いによって,
15126 出力文書の外観が異なるもしれません.
15127 \end_layout
15128
15129 \begin_layout Paragraph
15130 註:
15131
15132 \end_layout
15133
15134 \begin_layout Standard
15135 最近のLaTeXカーネルは
15136 \family sans
15137 fixltx2e
15138 \family default
15139 の機能を取り込んでいるので(2015/01/01現在),
15140 新しいLaTeX頒布では,
15141
15142 \family sans
15143 fixltx2e
15144 \family default
15145 モジュールは遺物となっています. 
15146 \end_layout
15147
15148 \begin_layout Subsection
15149 簡素形差込枠
15150 \end_layout
15151
15152 \begin_layout Standard
15153 このモジュールは,
15154 いくつかの差込枠(索引・派生枝・URL)を簡素形に再定義します.
15155 \end_layout
15156
15157 \begin_layout Subsection
15158 表題とプリアンブルのハック
15159 \end_layout
15160
15161 \begin_layout Standard
15162 このモジュールは,
15163 以下の2つの段落様式を新たに提供します.
15164 \end_layout
15165
15166 \begin_layout Enumerate
15167
15168 \family sans
15169 \series bold
15170 プリアンブル文
15171 \family default
15172 \series default
15173 様式では,
15174 そこに入力されたものは全てプリアンブルにそのまま置かれます.これは,
15175 プリアンブルコードを\SpecialChar LyX
15176 文書本体に置いておきたいときに使うことができます.
15177 \end_layout
15178
15179 \begin_layout Enumerate
15180
15181 \family sans
15182 \series bold
15183 表題文
15184 \family default
15185 \series default
15186 様式では,
15187 その中身が,
15188 \SpecialChar LaTeX
15189 文書本体の,
15190
15191 \family typewriter
15192
15193 \backslash
15194 maketitle
15195 \family default
15196 が現れるよりも前の部分に置かれます.これは,
15197 表題に関連した部分に派生肢や注釈を用いたいときに役立ちます(もしこれらを標準レイアウトにおいてしまうと,
15198 \SpecialChar LyX
15199 がその前に
15200 \family typewriter
15201
15202 \backslash
15203 maketitle
15204 \family default
15205 を出力してしまうので,
15206 早すぎることになってしまいます). 
15207 \end_layout
15208
15209 \begin_layout Section
15210 フロート及びキャプション
15211 \end_layout
15212
15213 \begin_layout Subsection
15214 Algorithm2eフロート
15215 \end_layout
15216
15217 \begin_layout Standard
15218 このモジュールは,
15219 アルゴリズムフロートに,
15220 \SpecialChar LyX
15221 固有のアルゴリズムフロートではなく
15222 \family sans
15223 algorithm2e
15224 \family default
15225 パッケージを使用します.アルゴリズムを入力して字下げするには,
15226 アルゴリズム段落様式を使用してください.
15227 \begin_inset CommandInset href
15228 LatexCommand href
15229 name "algorithm2e 解説文書"
15230 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
15231 literal "false"
15232
15233 \end_inset
15234
15235 を参照.
15236 \end_layout
15237
15238 \begin_layout Subsection
15239 二言語キャプション(多言語キャプション)
15240 \end_layout
15241
15242 \begin_layout Standard
15243 このモジュールは,
15244 二言語キャプションを組むための段落様式
15245 \family sans
15246 \series bold
15247 キャプション設定
15248 \family default
15249 \series default
15250 を提供します.この段落様式の中で
15251 \begin_inset space \thinspace{}
15252 \end_inset
15253
15254
15255 \family sans
15256 \series bold
15257 挿入\SpecialChar menuseparator
15258 言語
15259 \family default
15260 \series default
15261
15262 \begin_inset space \thinspace{}
15263 \end_inset
15264
15265 とすると,
15266 babel言語名を使って望む第二言語を入力することができます.使用法について,
15267 より詳しくは,
15268
15269 \family sans
15270 \series bold
15271 ファイル\SpecialChar menuseparator
15272 用例を開く\SpecialChar menuseparator
15273 モジュール\SpecialChar menuseparator
15274 多言語キャプション
15275 \family default
15276 \series default
15277
15278 \begin_inset space \thinspace{}
15279 \end_inset
15280
15281 および
15282 \begin_inset space \thinspace{}
15283 \end_inset
15284
15285
15286 \family sans
15287 \series bold
15288 ヘルプ\SpecialChar menuseparator
15289 用途別説明書\SpecialChar menuseparator
15290 多言語キャプション
15291 \family default
15292 \series default
15293 を参照. 
15294 \end_layout
15295
15296 \begin_layout Subsection
15297 図番号を節毎に振る
15298 \end_layout
15299
15300 \begin_layout Standard
15301 このモジュールは,
15302 図番号を節の開始毎にリセットし,
15303 「図2.1」のように節番号を図番号の前に付します(既定では,
15304 bookおよびreport文書クラスでは章ごとに番号を振り,
15305 article文書クラスでは一続きとなります). 
15306 \end_layout
15307
15308 \begin_layout Subsection
15309 表番号を節毎に振る
15310 \end_layout
15311
15312 \begin_layout Standard
15313 このモジュールは,
15314 表番号を節の開始毎にリセットし,
15315 「表2.1」のように節番号を表番号の前に付します(既定では,
15316 bookおよびreport文書クラスでは章ごとに番号を振り,
15317 article文書クラスでは一続きとなります).
15318 \end_layout
15319
15320 \begin_layout Section
15321 脚註及び後註
15322 \end_layout
15323
15324 \begin_layout Subsection
15325 後註(基本)
15326 \end_layout
15327
15328 \begin_layout Standard
15329 このモジュールは脚註差込枠に加え,
15330 後註差込枠を追加します.これは
15331 \family sans
15332 endnotes
15333 \family default
15334 パッケージを使用します.このパッケージにはいくつか制約がありますが,
15335 古い\SpecialChar LaTeX
15336 頒布版でも動作します.後註挿入箇所に
15337 \begin_inset space \thinspace{}
15338 \end_inset
15339
15340
15341 \family sans
15342 \series bold
15343 挿入\SpecialChar menuseparator
15344 特別差込枠\SpecialChar menuseparator
15345 後註
15346 \family default
15347 \series default
15348
15349 \begin_inset space \thinspace{}
15350 \end_inset
15351
15352 を実行し,
15353 後註本体を表示させたいところに
15354 \begin_inset space \thinspace{}
15355 \end_inset
15356
15357
15358 \family sans
15359 \series bold
15360 挿入\SpecialChar menuseparator
15361 一覧/目次/参照\SpecialChar menuseparator
15362 後註
15363 \family default
15364 \series default
15365
15366 \begin_inset space \thinspace{}
15367 \end_inset
15368
15369 として後註一覧を挿入します.
15370 \family sans
15371 \series bold
15372 ヘルプ\SpecialChar menuseparator
15373 埋込オブジェクト篇
15374 \family default
15375 \series default
15376 の第4.2節「脚註」を参照. 
15377 \end_layout
15378
15379 \begin_layout Subsection
15380 後註(拡張)
15381 \end_layout
15382
15383 \begin_layout Standard
15384 このモジュールは脚註差込枠に加え,
15385 後註差込枠を追加します.これは
15386 \family sans
15387 enotez
15388 \family default
15389 パッケージを使用します.このパッケージは
15390 \family sans
15391 endnotes
15392 \family default
15393 パッケージよりも強力かつ柔軟ですが,
15394 かなり新しい\SpecialChar LaTeX
15395 頒布版(\SpecialChar LaTeX
15396 3)を必要とします.後註挿入箇所に
15397 \begin_inset space \thinspace{}
15398 \end_inset
15399
15400
15401 \family sans
15402 \series bold
15403 挿入\SpecialChar menuseparator
15404 特別差込枠\SpecialChar menuseparator
15405 後註
15406 \family default
15407 \series default
15408
15409 \begin_inset space \thinspace{}
15410 \end_inset
15411
15412 を実行し,
15413 後註本体を表示させたいところに
15414 \begin_inset space \thinspace{}
15415 \end_inset
15416
15417
15418 \family sans
15419 \series bold
15420 挿入\SpecialChar menuseparator
15421 一覧/目次/参照\SpecialChar menuseparator
15422 後註
15423 \family default
15424 \series default
15425
15426 \begin_inset space \thinspace{}
15427 \end_inset
15428
15429 として後註一覧を挿入します.
15430 \family sans
15431 \series bold
15432 ヘルプ\SpecialChar menuseparator
15433 埋込オブジェクト篇
15434 \family default
15435 \series default
15436 の第4.2節「脚註」を参照. 
15437 \end_layout
15438
15439 \begin_layout Subsection
15440 脚註を後註に(基本)
15441 \end_layout
15442
15443 \begin_layout Standard
15444 このモジュールは,
15445 すべての脚註を後註にします.これは
15446 \family sans
15447 endnotes
15448 \family default
15449 パッケージを使用します.このパッケージにはいくつか制約がありますが,
15450 古い\SpecialChar LaTeX
15451 頒布版でも動作します.後註本体を表示させたいところに
15452 \begin_inset space \thinspace{}
15453 \end_inset
15454
15455
15456 \family sans
15457 \series bold
15458 挿入\SpecialChar menuseparator
15459 一覧/目次/参照\SpecialChar menuseparator
15460 後註
15461 \family default
15462 \series default
15463
15464 \begin_inset space \thinspace{}
15465 \end_inset
15466
15467 として後註一覧を挿入します.
15468 \family sans
15469 \series bold
15470 ヘルプ\SpecialChar menuseparator
15471 埋込オブジェクト篇
15472 \family default
15473 \series default
15474 の第4.2節「脚註」を参照. 
15475 \end_layout
15476
15477 \begin_layout Subsection
15478 脚註を後註に(拡張)
15479 \end_layout
15480
15481 \begin_layout Standard
15482 このモジュールは,
15483 すべての脚註を後註にします.これは
15484 \family sans
15485 enotez
15486 \family default
15487 パッケージを使用します.このパッケージは
15488 \family sans
15489 endnotes
15490 \family default
15491 パッケージよりも強力かつ柔軟ですが,
15492 かなり新しい\SpecialChar LaTeX
15493 頒布版(\SpecialChar LaTeX
15494 3)を必要とします.後註本体を表示させたいところに
15495 \begin_inset space \thinspace{}
15496 \end_inset
15497
15498
15499 \family sans
15500 \series bold
15501 挿入\SpecialChar menuseparator
15502 一覧/目次/参照\SpecialChar menuseparator
15503 後註
15504 \family default
15505 \series default
15506
15507 \begin_inset space \thinspace{}
15508 \end_inset
15509
15510 として後註一覧を挿入します.
15511 \family sans
15512 \series bold
15513 ヘルプ\SpecialChar menuseparator
15514 埋込オブジェクト篇
15515 \family default
15516 \series default
15517 の第4.2節「脚註」を参照.
15518 \end_layout
15519
15520 \begin_layout Section
15521 レジャー・スポーツ・音楽
15522 \end_layout
15523
15524 \begin_layout Subsection
15525 チェス盤
15526 \end_layout
15527
15528 \begin_layout Standard
15529 このモジュールは,
15530 チェスゲームを印刷するために,
15531
15532 \family sans
15533 chessboard
15534 \family default
15535 パッケージをサポートします.
15536 \family sans
15537 \series bold
15538 ファイル\SpecialChar menuseparator
15539 用例を開く\SpecialChar menuseparator
15540 論文\SpecialChar menuseparator
15541 チェス
15542 \family default
15543 \series default
15544 を開くと
15545 \family sans
15546 \series bold
15547 ゲーム
15548 \series default
15549 1
15550 \family default
15551
15552 \family sans
15553 \series bold
15554 ゲーム
15555 \series default
15556 2
15557 \family default
15558 がありますので,
15559 それらと
15560 \begin_inset CommandInset href
15561 LatexCommand href
15562 name "chessboard 解説文書"
15563 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
15564 literal "false"
15565
15566 \end_inset
15567
15568 を参照してください.
15569 \end_layout
15570
15571 \begin_layout Subsection
15572 Lilypond記譜
15573 \end_layout
15574
15575 \begin_layout Standard
15576 このモジュールは,
15577 LilyPond楽譜エディタ用のコードを
15578 \begin_inset space \thinspace{}
15579 \end_inset
15580
15581
15582 \family sans
15583 \series bold
15584 挿入\SpecialChar menuseparator
15585 特別差込枠\SpecialChar menuseparator
15586
15587 \series default
15588 LilyPond
15589 \family default
15590
15591 \begin_inset space \thinspace{}
15592 \end_inset
15593
15594 にて入力する差込枠を提供します.これは出力時に処理されます.
15595 \family sans
15596 \series bold
15597 ヘルプ\SpecialChar menuseparator
15598 用途別説明書\SpecialChar menuseparator
15599
15600 \series default
15601 LilyPond
15602 \family default
15603
15604 \begin_inset space \thinspace{}
15605 \end_inset
15606
15607 および
15608 \begin_inset space \thinspace{}
15609 \end_inset
15610
15611
15612 \family sans
15613 \series bold
15614 ファイル\SpecialChar menuseparator
15615 用例を開く\SpecialChar menuseparator
15616 モジュール\SpecialChar menuseparator
15617
15618 \series default
15619 LilyPond
15620 \begin_inset space \space{}
15621 \end_inset
15622
15623 Book
15624 \family default
15625
15626 \begin_inset space \thinspace{}
15627 \end_inset
15628
15629 を参照.これは,
15630
15631 \family sans
15632 Rnw
15633 \begin_inset space \thinspace{}
15634 \end_inset
15635
15636 (knitr)
15637 \family default
15638 または
15639 \family sans
15640 Sweave
15641 \family default
15642 が読み込まれているときには,
15643 使用できません.
15644 \end_layout
15645
15646 \begin_layout Section
15647 高度な箇条書き
15648 \end_layout
15649
15650 \begin_layout Subsection
15651 調整可能な箇条書き
15652 \begin_inset CommandInset label
15653 LatexCommand label
15654 name "subsec:調整可能な箇条書き"
15655
15656 \end_inset
15657
15658
15659 \end_layout
15660
15661 \begin_layout Standard
15662 このモジュールは,
15663
15664 \series bold
15665 enumitem
15666 \series default
15667 パッケージを読み込んで,
15668 各種箇条書きの調整を可能にします.
15669 \end_layout
15670
15671 \begin_layout Subsubsection
15672 調整可能な連番箇条書き
15673 \end_layout
15674
15675 \begin_layout Standard
15676 \noindent
15677 連番箇条書きの番号の振り方の既定値は,
15678 箇条書きの各階層における最初の項目に,
15679 非必須引数を加えることで(
15680 \family sans
15681 \series bold
15682 挿入\SpecialChar menuseparator
15683 箇条書きオプション
15684 \family default
15685 \series default
15686 )変更することができます.そこに,
15687 \SpecialChar TeX
15688 コード(ショートカット:
15689
15690 \begin_inset Info
15691 type  "shortcut"
15692 arg   "ert-insert"
15693 \end_inset
15694
15695 )で
15696 \end_layout
15697
15698 \begin_layout Standard
15699
15700 \family sans
15701 label=
15702 \backslash
15703 roman{enumi}
15704 \end_layout
15705
15706 \begin_layout Standard
15707 \noindent
15708 というコマンドを書き加えてください.ここで,
15709
15710 \family sans
15711 enumi
15712 \family default
15713 は,
15714 第1階層の連番のカウンタです.箇条書きの下位階層の連番を変更するには,
15715 コマンド中の「i」を,
15716 階層番号の小文字ローマ数字で置き換えてください(
15717 \family sans
15718 enumi
15719 \family default
15720 ,
15721  
15722 \family sans
15723 enumii
15724 \family default
15725 ,
15726  
15727 \family sans
15728 enumiii
15729 \family default
15730 ,
15731  
15732 \family sans
15733 enumiv
15734 \family default
15735 ).
15736 \end_layout
15737
15738 \begin_layout Standard
15739 \noindent
15740 コマンド
15741 \family sans
15742
15743 \backslash
15744 roman
15745 \family default
15746 は,
15747 このカウントを,
15748 小文字のローマ数字で出力します.大文字のローマ数字を使うには,
15749 上記コマンド中の
15750 \family sans
15751
15752 \backslash
15753 roman
15754 \family default
15755
15756 \family sans
15757
15758 \backslash
15759 Roman
15760 \family default
15761 に置き換えてください.アラビア数字にするには,
15762
15763 \family sans
15764
15765 \backslash
15766 arabic
15767 \family default
15768 を使用します.項目に,
15769 大文字もしくは小文字のラテン文字で「連番」を付けたい場合には,
15770 それぞれ
15771 \family sans
15772
15773 \backslash
15774 Alph
15775 \family default
15776 もしくは
15777 \family sans
15778
15779 \backslash
15780 alph
15781 \family default
15782 を使用してください.
15783 \end_layout
15784
15785 \begin_layout Standard
15786 \noindent
15787 \begin_inset Note Greyedout
15788 status collapsed
15789
15790 \begin_layout Plain Layout
15791
15792 \series bold
15793 [註]
15794 \series default
15795 連番は1文字に限られているので,
15796 ラテン文字では26項目までしか連番を振ることはできません.
15797 \end_layout
15798
15799 \end_inset
15800
15801
15802 \end_layout
15803
15804 \begin_layout Standard
15805 下記は,
15806 調整した連番箇条書きの例です.
15807 \end_layout
15808
15809 \begin_layout Enumerate
15810 \begin_inset Argument 1
15811 status open
15812
15813 \begin_layout Plain Layout
15814 \begin_inset ERT
15815 status open
15816
15817 \begin_layout Plain Layout
15818
15819 label=
15820 \backslash
15821 #
15822 \backslash
15823 Alph{enumi}
15824 \backslash
15825 #
15826 \end_layout
15827
15828 \end_inset
15829
15830
15831 \end_layout
15832
15833 \end_inset
15834
15835 第1階層
15836 \end_layout
15837
15838 \begin_deeper
15839 \begin_layout Enumerate
15840 \begin_inset Argument 1
15841 status open
15842
15843 \begin_layout Plain Layout
15844 \begin_inset ERT
15845 status open
15846
15847 \begin_layout Plain Layout
15848
15849 label=
15850 \backslash
15851 Alph{enumi}.
15852 \backslash
15853 arabic{enumii}
15854 \end_layout
15855
15856 \end_inset
15857
15858
15859 \end_layout
15860
15861 \end_inset
15862
15863 第2階層
15864 \end_layout
15865
15866 \begin_layout Enumerate
15867 第2階層
15868 \end_layout
15869
15870 \begin_deeper
15871 \begin_layout Enumerate
15872 \begin_inset Argument 1
15873 status open
15874
15875 \begin_layout Plain Layout
15876 \begin_inset ERT
15877 status open
15878
15879 \begin_layout Plain Layout
15880
15881 label=
15882 \backslash
15883 bfseries{
15884 \backslash
15885 arabic{enumiii}}
15886 \end_layout
15887
15888 \end_inset
15889
15890
15891 \end_layout
15892
15893 \end_inset
15894
15895 第3階層
15896 \end_layout
15897
15898 \begin_deeper
15899 \begin_layout Enumerate
15900 \begin_inset Argument 1
15901 status open
15902
15903 \begin_layout Plain Layout
15904 \begin_inset ERT
15905 status open
15906
15907 \begin_layout Plain Layout
15908
15909 label=
15910 \backslash
15911 emph{
15912 \backslash
15913 roman{enumiv})}
15914 \end_layout
15915
15916 \end_inset
15917
15918
15919 \end_layout
15920
15921 \end_inset
15922
15923 第4階層
15924 \end_layout
15925
15926 \end_deeper
15927 \end_deeper
15928 \end_deeper
15929 \begin_layout Standard
15930 上記リストでは,
15931 以下のようなコマンドが使用されています.
15932 \end_layout
15933
15934 \begin_layout Standard
15935 \noindent
15936
15937 \family sans
15938 label=
15939 \backslash
15940 #
15941 \backslash
15942 Alph{enumi}
15943 \backslash
15944 #
15945 \begin_inset Newline newline
15946 \end_inset
15947
15948 label=
15949 \backslash
15950 Alph{enumi}.
15951 \backslash
15952 arabic{enumii}
15953 \begin_inset Newline newline
15954 \end_inset
15955
15956 label=
15957 \backslash
15958 bfseries{
15959 \backslash
15960 arabic{enumiii}}
15961 \begin_inset Newline newline
15962 \end_inset
15963
15964 label=
15965 \backslash
15966 emph{
15967 \backslash
15968 roman{enumiv})}
15969 \end_layout
15970
15971 \begin_layout Standard
15972 ここで,
15973 コマンド
15974 \family sans
15975
15976 \backslash
15977 emph{}
15978 \family default
15979 は,
15980 ラベルを強調文字にし,
15981
15982 \family sans
15983
15984 \backslash
15985 bfseries{}
15986 \family default
15987 はボールド体にします.
15988 \end_layout
15989
15990 \begin_layout Standard
15991 \begin_inset Note Greyedout
15992 status open
15993
15994 \begin_layout Plain Layout
15995
15996 \family typewriter
15997 \begin_inset ERT
15998 status open
15999
16000 \begin_layout Plain Layout
16001
16002
16003 \backslash
16004 renewcommand{
16005 \backslash
16006 labelenumi}{
16007 \backslash
16008 thesection.
16009 \backslash
16010 arabic{enumi}}
16011 \end_layout
16012
16013 \end_inset
16014
16015
16016 \end_layout
16017
16018 \end_inset
16019
16020
16021 \end_layout
16022
16023 \begin_layout Subsubsection
16024 Reportにおける連番段落
16025 \end_layout
16026
16027 \begin_layout Enumerate
16028 公的なレポートには,
16029 連番を振った段落がよく用いられます.この目的を達するには,
16030 脚註
16031 \begin_inset CommandInset ref
16032 LatexCommand ref
16033 reference "fn:段落ごとに異なるブリットの形"
16034 plural "false"
16035 caps "false"
16036 noprefix "false"
16037 nolink "false"
16038
16039 \end_inset
16040
16041 で要約したような様々な方法があります.各コマンドのitemをenumに変えてください.
16042 \end_layout
16043
16044 \begin_layout Enumerate
16045 これらの連番を振った段落は,
16046 節の開始前に,
16047 \SpecialChar TeX
16048 コードで
16049 \end_layout
16050
16051 \begin_deeper
16052 \begin_layout Standard
16053
16054 \family sans
16055
16056 \backslash
16057 renewcommand{
16058 \backslash
16059 labelenumi}{
16060 \backslash
16061 thesection.
16062 \backslash
16063 arabic{enumi}}
16064 \end_layout
16065
16066 \begin_layout Standard
16067 と入力することで生成されます.
16068 \family sans
16069
16070 \backslash
16071 thesection
16072 \family default
16073 は,
16074 節の\SpecialChar LaTeX
16075 カウンタを使用し.数字の最初の部分を生成するのに使われています.
16076 \end_layout
16077
16078 \end_deeper
16079 \begin_layout Enumerate
16080 このように連番を振った段落では,
16081 小節が使用されることはあまりないので,
16082 この例では小節見出しは無視しました.
16083 \end_layout
16084
16085 \begin_layout Subsubsection
16086 連番の復帰
16087 \end_layout
16088
16089 \begin_layout Standard
16090 以下のように,
16091 あいだに段落をはさんで,
16092 連番を復帰させることができます.
16093 \end_layout
16094
16095 \begin_layout Enumerate
16096 \begin_inset Argument 1
16097 status open
16098
16099 \begin_layout Plain Layout
16100 \begin_inset ERT
16101 status collapsed
16102
16103 \begin_layout Plain Layout
16104
16105 label=
16106 \backslash
16107 arabic{enumi}.
16108 \end_layout
16109
16110 \end_inset
16111
16112
16113 \end_layout
16114
16115 \end_inset
16116
16117 1つめ
16118 \begin_inset Note Note
16119 status open
16120
16121 \begin_layout Plain Layout
16122 既定の連番に戻す
16123 \end_layout
16124
16125 \end_inset
16126
16127
16128 \end_layout
16129
16130 \begin_layout Enumerate
16131 2つめ
16132 \end_layout
16133
16134 \begin_layout Standard
16135 通常のテキスト
16136 \end_layout
16137
16138 \begin_layout Enumerate-Resume
16139 復帰した連番
16140 \end_layout
16141
16142 \begin_layout Standard
16143 連番を復帰させるには,
16144 スタイル
16145 \family sans
16146 \series bold
16147 箇条書き
16148 \series default
16149 (
16150 \series bold
16151 連番
16152 \series default
16153 )-
16154 \series bold
16155 復帰
16156 \family default
16157 \series default
16158 を使用してください.
16159 \end_layout
16160
16161 \begin_layout Standard
16162 \begin_inset Note Greyedout
16163 status open
16164
16165 \begin_layout Plain Layout
16166 [註]前に復帰すべき連番がない場合には,
16167 \SpecialChar LaTeX
16168 エラーが発生します.
16169 \end_layout
16170
16171 \end_inset
16172
16173
16174 \end_layout
16175
16176 \begin_layout Standard
16177 箇条書きの連番を復帰させる際,
16178 次の番号ではない番号に復帰させたかったり,
16179 新しい連番を,
16180 指定した番号から始めたいことがあるかもしれません.これも,
16181 通常の連番箇条書きの最初の項目に,
16182 非必須引数を加えることで実現できます.非必須引数として,
16183
16184 \end_layout
16185
16186 \begin_layout Standard
16187
16188 \family sans
16189 start=番号
16190 \end_layout
16191
16192 \begin_layout Standard
16193 というコマンドを入力してください.ここで,
16194 「番号」は箇条書きを開始したい番号です.例:
16195
16196 \end_layout
16197
16198 \begin_layout Enumerate
16199 第1項目
16200 \end_layout
16201
16202 \begin_layout Enumerate
16203 第2項目
16204 \end_layout
16205
16206 \begin_layout Standard
16207 指定した番号で始める連番:
16208
16209 \end_layout
16210
16211 \begin_layout Enumerate
16212 \begin_inset Argument 1
16213 status open
16214
16215 \begin_layout Plain Layout
16216 \begin_inset ERT
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220
16221 start=4
16222 \end_layout
16223
16224 \end_inset
16225
16226
16227 \end_layout
16228
16229 \end_inset
16230
16231 この連番は4から始まります
16232 \end_layout
16233
16234 \begin_layout Subsubsection
16235 箇条書きの余白
16236 \begin_inset Index idx
16237 range none
16238 pageformat default
16239 status collapsed
16240
16241 \begin_layout Plain Layout
16242
16243 \family roman
16244 \series medium
16245 \shape up
16246 \size normal
16247 \emph off
16248 \nospellcheck off
16249 \bar no
16250 \strikeout off
16251 \xout off
16252 \uuline off
16253 \uwave off
16254 \noun off
16255 \color none
16256 \begin_inset IndexMacro sortkey
16257 status collapsed
16258
16259 \begin_layout Plain Layout
16260 かしようかき
16261 \end_layout
16262
16263 \end_inset
16264
16265 箇条書き
16266 \begin_inset IndexMacro subentry
16267 status open
16268
16269 \begin_layout Plain Layout
16270
16271 \family roman
16272 \series medium
16273 \shape up
16274 \size normal
16275 \emph off
16276 \nospellcheck off
16277 \bar no
16278 \strikeout off
16279 \xout off
16280 \uuline off
16281 \uwave off
16282 \noun off
16283 \color none
16284 \begin_inset IndexMacro sortkey
16285 status collapsed
16286
16287 \begin_layout Plain Layout
16288 よはく
16289 \end_layout
16290
16291 \end_inset
16292
16293 余白
16294 \end_layout
16295
16296 \end_inset
16297
16298
16299 \end_layout
16300
16301 \end_inset
16302
16303
16304 \end_layout
16305
16306 \begin_layout Standard
16307 ときには,
16308 箇条書きの項目間の垂直方向の余白を,
16309 調整したい場合があります.例えば,
16310 以下の例の既定の余白が,
16311 大きすぎると感じたとしましょう.
16312 \end_layout
16313
16314 \begin_layout Itemize
16315 標準余白の
16316 \end_layout
16317
16318 \begin_layout Itemize
16319 記号付き箇条書き
16320 \end_layout
16321
16322 \begin_layout Standard
16323 上記箇条書きの最初の項目に,
16324 非必須引数を加えることで余白を詰めることができます.下記の例のように,
16325 箇条書きに追加される余白をなくすには,
16326 非必須引数にコマンド
16327 \family sans
16328 nolistsep
16329 \family default
16330 を加えます.
16331 \end_layout
16332
16333 \begin_layout Itemize
16334 \begin_inset Argument 1
16335 status open
16336
16337 \begin_layout Plain Layout
16338 \begin_inset ERT
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342
16343 nolistsep
16344 \end_layout
16345
16346 \end_inset
16347
16348
16349 \end_layout
16350
16351 \end_inset
16352
16353 箇条書きに追加される
16354 \end_layout
16355
16356 \begin_layout Itemize
16357 垂直余白をなくした
16358 \end_layout
16359
16360 \begin_layout Itemize
16361 記号付き箇条書き
16362 \end_layout
16363
16364 \begin_layout Standard
16365 余白を広げるには,
16366 \SpecialChar LaTeX
16367 パッケージの
16368 \family sans
16369 enumitem
16370 \begin_inset Index idx
16371 range none
16372 pageformat default
16373 status collapsed
16374
16375 \begin_layout Plain Layout
16376
16377 \family roman
16378 \series medium
16379 \shape up
16380 \size normal
16381 \emph off
16382 \nospellcheck off
16383 \bar no
16384 \strikeout off
16385 \xout off
16386 \uuline off
16387 \uwave off
16388 \noun off
16389 \color none
16390 \begin_inset IndexMacro sortkey
16391 status collapsed
16392
16393 \begin_layout Plain Layout
16394 LaTeXはつけし
16395 \end_layout
16396
16397 \end_inset
16398
16399 LaTeXパッケージ
16400 \begin_inset IndexMacro subentry
16401 status open
16402
16403 \begin_layout Plain Layout
16404
16405 \family roman
16406 \series medium
16407 \shape up
16408 \size normal
16409 \emph off
16410 \nospellcheck off
16411 \bar no
16412 \strikeout off
16413 \xout off
16414 \uuline off
16415 \uwave off
16416 \noun off
16417 \color none
16418 enumitem
16419 \end_layout
16420
16421 \end_inset
16422
16423
16424 \end_layout
16425
16426 \end_inset
16427
16428
16429 \family default
16430 で提供されている,
16431 いくつかのコマンドを使用することができます.詳しくは,
16432 取扱説明書
16433 \begin_inset CommandInset href
16434 LatexCommand href
16435 name "enumitem 解説文書"
16436 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
16437 literal "false"
16438
16439 \end_inset
16440
16441 をご覧ください.
16442 \end_layout
16443
16444 \begin_layout Standard
16445 水平方向の余白や行頭下げを変更するためにも,
16446 多くのコマンドが使えます.下記の例は,
16447 行頭下げを,
16448 文書中の段落の行頭下げと同じにし,
16449 ラベル分離幅を2
16450 \begin_inset space \thinspace{}
16451 \end_inset
16452
16453 cmにして,
16454 番号がページ余白に置かれるようにしたものです.
16455 \end_layout
16456
16457 \begin_layout Enumerate
16458 \begin_inset Argument 1
16459 status open
16460
16461 \begin_layout Plain Layout
16462 \begin_inset ERT
16463 status collapsed
16464
16465 \begin_layout Plain Layout
16466
16467 labelindent=
16468 \backslash
16469 parindent,
16470  labelsep=2cm
16471 \end_layout
16472
16473 \end_inset
16474
16475
16476 \end_layout
16477
16478 \end_inset
16479
16480 負の行頭下げを持つ
16481 \end_layout
16482
16483 \begin_layout Enumerate
16484 連番箇条書き
16485 \end_layout
16486
16487 \begin_layout Subsubsection
16488 さらなる調整
16489 \begin_inset Index idx
16490 range none
16491 pageformat default
16492 status collapsed
16493
16494 \begin_layout Plain Layout
16495
16496 \family roman
16497 \series medium
16498 \shape up
16499 \size normal
16500 \emph off
16501 \nospellcheck off
16502 \bar no
16503 \strikeout off
16504 \xout off
16505 \uuline off
16506 \uwave off
16507 \noun off
16508 \color none
16509 \begin_inset IndexMacro sortkey
16510 status collapsed
16511
16512 \begin_layout Plain Layout
16513 かしようかき
16514 \end_layout
16515
16516 \end_inset
16517
16518 箇条書き
16519 \begin_inset IndexMacro subentry
16520 status open
16521
16522 \begin_layout Plain Layout
16523
16524 \family roman
16525 \series medium
16526 \shape up
16527 \size normal
16528 \emph off
16529 \nospellcheck off
16530 \bar no
16531 \strikeout off
16532 \xout off
16533 \uuline off
16534 \uwave off
16535 \noun off
16536 \color none
16537 \begin_inset IndexMacro sortkey
16538 status collapsed
16539
16540 \begin_layout Plain Layout
16541 ちようせい
16542 \end_layout
16543
16544 \end_inset
16545
16546 調整
16547 \end_layout
16548
16549 \end_inset
16550
16551
16552 \end_layout
16553
16554 \end_inset
16555
16556
16557 \end_layout
16558
16559 \begin_layout Standard
16560 記述箇条書きのスタイルを変更することも可能です.コマンド
16561 \end_layout
16562
16563 \begin_layout Standard
16564
16565 \family sans
16566 font=definition
16567 \end_layout
16568
16569 \begin_layout Standard
16570 は,
16571 記述ラベルのフォントを変更し,
16572 コマンド
16573 \end_layout
16574
16575 \begin_layout Standard
16576
16577 \family sans
16578 style=definition
16579 \end_layout
16580
16581 \begin_layout Standard
16582 は,
16583 箇条書きのスタイルを設定します.
16584 \end_layout
16585
16586 \begin_layout Standard
16587 下記は,
16588 コマンド
16589 \end_layout
16590
16591 \begin_layout Standard
16592
16593 \family sans
16594 font=
16595 \backslash
16596 itshape,
16597  style=nextline
16598 \end_layout
16599
16600 \begin_layout Standard
16601 を使用した例です.
16602 \end_layout
16603
16604 \begin_layout Description
16605 電離放射線:
16606  
16607 \begin_inset Argument 1
16608 status open
16609
16610 \begin_layout Plain Layout
16611 \begin_inset ERT
16612 status collapsed
16613
16614 \begin_layout Plain Layout
16615
16616 labelindent=0pt,
16617  labelsep=1cm,
16618  font=
16619 \backslash
16620 itshape,
16621  style=nextline
16622 \end_layout
16623
16624 \end_inset
16625
16626
16627 \end_layout
16628
16629 \end_inset
16630
16631 電離放射線は,
16632 電子を原子や分子から分離させるに十分なエネルギーを持つ,
16633 素粒子や電磁波から成ります.
16634 \end_layout
16635
16636 \begin_layout Description
16637 参照カウント:
16638  コンピュータ科学において,
16639 参照カウントは,
16640 オブジェクト・メモリブロック・ディスク容量・その他のリソースへの,
16641 参照やポインタやハンドルの数を保管しておくための技術です.
16642 \end_layout
16643
16644 \begin_layout Standard
16645 \SpecialChar LaTeX
16646 パッケージの
16647 \family sans
16648 enumitem
16649 \begin_inset Index idx
16650 range none
16651 pageformat default
16652 status collapsed
16653
16654 \begin_layout Plain Layout
16655
16656 \family roman
16657 \series medium
16658 \shape up
16659 \size normal
16660 \emph off
16661 \nospellcheck off
16662 \bar no
16663 \strikeout off
16664 \xout off
16665 \uuline off
16666 \uwave off
16667 \noun off
16668 \color none
16669 \begin_inset IndexMacro sortkey
16670 status collapsed
16671
16672 \begin_layout Plain Layout
16673 LaTeXはつけし
16674 \end_layout
16675
16676 \end_inset
16677
16678 LaTeXパッケージ
16679 \begin_inset IndexMacro subentry
16680 status open
16681
16682 \begin_layout Plain Layout
16683
16684 \family roman
16685 \series medium
16686 \shape up
16687 \size normal
16688 \emph off
16689 \nospellcheck off
16690 \bar no
16691 \strikeout off
16692 \xout off
16693 \uuline off
16694 \uwave off
16695 \noun off
16696 \color none
16697 enumitem
16698 \end_layout
16699
16700 \end_inset
16701
16702
16703 \end_layout
16704
16705 \end_inset
16706
16707
16708 \family default
16709 で提供されるコマンドや機能は,
16710 他にもたくさんあります.詳細は,
16711 取扱説明書
16712 \begin_inset CommandInset href
16713 LatexCommand href
16714 name "enumitem documentation"
16715 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
16716 literal "false"
16717
16718 \end_inset
16719
16720 をご覧ください.
16721 \end_layout
16722
16723 \begin_layout Subsection
16724 段落箇条書き
16725 \end_layout
16726
16727 \begin_layout Standard
16728 このモジュールは,
16729
16730 \family sans
16731 paralist
16732 \family default
16733 パッケージを使用し,
16734 9つの新しい箇条書き環境を提供します.記号・連番箇条書きを,
16735 段落内に組版したり,
16736 独立段落や簡素形として組版したりすることができます.大半の環境には,
16737 ラベルを整形するためのオプションの引数があります.さらに,
16738 LaTeX環境の記号・連番箇条書きも,
16739 同様のオプション引数を使えるように拡張します.詳細については,
16740
16741 \family sans
16742 \series bold
16743 ファイル\SpecialChar menuseparator
16744 用例を開く\SpecialChar menuseparator
16745 モジュール\SpecialChar menuseparator
16746 段落箇条書き
16747 \series default
16748 (paralist)
16749 \family default
16750
16751 \begin_inset space \thinspace{}
16752 \end_inset
16753
16754 および
16755 \begin_inset space \thinspace{}
16756 \end_inset
16757
16758
16759 \family sans
16760 \series bold
16761 ヘルプ\SpecialChar menuseparator
16762 用途別説明書\SpecialChar menuseparator
16763 Paralist
16764 \family default
16765 \series default
16766
16767 さらに
16768 \begin_inset CommandInset href
16769 LatexCommand href
16770 name "paralist 解説文書"
16771 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
16772 literal "false"
16773
16774 \end_inset
16775
16776 を参照してください. 
16777 \end_layout
16778
16779 \begin_layout Section
16780 文芸的プログラミング
16781 \end_layout
16782
16783 \begin_layout Subsection
16784 Noweb
16785 \end_layout
16786
16787 \begin_layout Standard
16788 このモジュールは,
16789 Nowebを文芸的プログラミングツールとして使用することを可能にします.Nowebのファイルと解説文書は,
16790
16791 \begin_inset CommandInset href
16792 LatexCommand href
16793 name "CTAN"
16794 target "https://www.ctan.org/pkg/noweb"
16795 literal "false"
16796
16797 \end_inset
16798
16799 で入手可能です.文芸的プログラミングについては,
16800
16801 \begin_inset CommandInset ref
16802 LatexCommand ref
16803 reference "sec:文芸プログラミング"
16804 plural "false"
16805 caps "false"
16806 noprefix "false"
16807 nolink "false"
16808
16809 \end_inset
16810
16811 節に解説があり,
16812
16813 \family sans
16814 \series bold
16815 ファイル\SpecialChar menuseparator
16816 用例を開く\SpecialChar menuseparator
16817 モジュール\SpecialChar menuseparator
16818
16819 \series default
16820 Noweb
16821 \family default
16822
16823
16824 \family sans
16825 \series bold
16826 ファイル\SpecialChar menuseparator
16827 用例を開く\SpecialChar menuseparator
16828 モジュール\SpecialChar menuseparator
16829
16830 \series default
16831 Noweb
16832 \family default
16833
16834
16835 \family sans
16836 \series bold
16837 ファイル\SpecialChar menuseparator
16838 用例を開く\SpecialChar menuseparator
16839 モジュール\SpecialChar menuseparator
16840
16841 \series default
16842 Noweb
16843 \begin_inset space \space{}
16844 \end_inset
16845
16846 Listerrors
16847 \family default
16848
16849
16850 \family sans
16851 \series bold
16852 ファイル\SpecialChar menuseparator
16853 用例を開く\SpecialChar menuseparator
16854 モジュール\SpecialChar menuseparator
16855
16856 \series default
16857 Noweb2LyX
16858 \family default
16859
16860 \begin_inset space \thinspace{}
16861 \end_inset
16862
16863 の3つの用例ファイルがあります.
16864 \end_layout
16865
16866 \begin_layout Subsection
16867 Rnw (knitr)
16868 \end_layout
16869
16870 \begin_layout Standard
16871 このモジュールは,
16872
16873 \family typewriter
16874 knitr
16875 \family default
16876
16877 \family typewriter
16878 includernw
16879 \family default
16880 パッケージを使用します.このモジュールを機能させるには,
16881 動的レポートを生成するRの
16882 \begin_inset Flex Code
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886 knitr
16887 \end_layout
16888
16889 \end_inset
16890
16891 パッケージを,
16892
16893 \begin_inset Flex Code
16894 status collapsed
16895
16896 \begin_layout Plain Layout
16897 install.packages('knitr')
16898 \end_layout
16899
16900 \end_inset
16901
16902 として導入する必要があります.
16903 \end_layout
16904
16905 \begin_layout Paragraph
16906 註:
16907
16908 \end_layout
16909
16910 \begin_layout Standard
16911 これはR >= 2.14.1に依存します.詳細については
16912 \begin_inset Flex URL
16913 status collapsed
16914
16915 \begin_layout Plain Layout
16916
16917 http://yihui.name/knitr
16918 \end_layout
16919
16920 \end_inset
16921
16922 をご覧ください.
16923 \end_layout
16924
16925 \begin_layout Standard
16926 また,
16927
16928 \family typewriter
16929 includernw
16930 \family default
16931 パッケージも導入されていなくてはならず,
16932
16933 \family sans
16934 LilyPond
16935 \begin_inset space ~
16936 \end_inset
16937
16938 Book
16939 \family default
16940 または
16941 \family sans
16942 Sweave
16943 \family default
16944 が読み込まれている場合には,
16945 使用できません.情報と文芸的プログラミングについては,
16946
16947 \family sans
16948 \series bold
16949 ヘルプ\SpecialChar menuseparator
16950 用途別説明書\SpecialChar menuseparator
16951
16952 \series default
16953 knitr
16954 \family default
16955
16956
16957 \family sans
16958 \series bold
16959 ファイル\SpecialChar menuseparator
16960 用例を開く\SpecialChar menuseparator
16961 モジュール\SpecialChar menuseparator
16962
16963 \series default
16964 Rnw
16965 \begin_inset space \thinspace{}
16966 \end_inset
16967
16968 (knitr)
16969 \family default
16970 および第
16971 \begin_inset CommandInset ref
16972 LatexCommand ref
16973 reference "sec:文芸プログラミング"
16974 plural "false"
16975 caps "false"
16976 noprefix "false"
16977 nolink "false"
16978
16979 \end_inset
16980
16981 節をご覧ください.
16982 \end_layout
16983
16984 \begin_layout Subsection
16985 Sweave
16986 \end_layout
16987
16988 \begin_layout Standard
16989 このモジュールを使うと,
16990 統計言語SまたはRを文芸的プログラミングツールとして使用することができるようになります.
16991 \family sans
16992 includernw
16993 \family default
16994 および
16995 \family sans
16996 fancyvrb
16997 \family default
16998 パッケージが必要です.
16999 \begin_inset CommandInset href
17000 LatexCommand href
17001 name "includernw"
17002 target "https://www.ctan.org/pkg/includernw"
17003 literal "false"
17004
17005 \end_inset
17006
17007
17008 \begin_inset CommandInset href
17009 LatexCommand href
17010 name "fancyvrb"
17011 target "https://www.ctan.org/pkg/fancyvrb"
17012 literal "false"
17013
17014 \end_inset
17015
17016 はともにCTANから入手できます.
17017 \family sans
17018 LilyPond
17019 \begin_inset space ~
17020 \end_inset
17021
17022 Book
17023 \family default
17024 が読み込まれている場合には,
17025 使用できません.情報と文芸的プログラミングについては,
17026
17027 \family sans
17028 \series bold
17029 ヘルプ\SpecialChar menuseparator
17030 用途別説明書\SpecialChar menuseparator
17031
17032 \series default
17033 Sweave
17034 \family default
17035
17036
17037 \family sans
17038 \series bold
17039 ファイル\SpecialChar menuseparator
17040 用例を開く\SpecialChar menuseparator
17041 モジュール\SpecialChar menuseparator
17042
17043 \series default
17044 Sweave
17045 \family default
17046 および第
17047 \begin_inset CommandInset ref
17048 LatexCommand ref
17049 reference "sec:文芸プログラミング"
17050 plural "false"
17051 caps "false"
17052 noprefix "false"
17053 nolink "false"
17054
17055 \end_inset
17056
17057 節をご覧ください.
17058 \end_layout
17059
17060 \begin_layout Section
17061 数式
17062 \end_layout
17063
17064 \begin_layout Subsection
17065 AMS定理
17066 \end_layout
17067
17068 \begin_layout Standard
17069 このモジュールは,
17070 拡張AMS機構を使う定理環境と証明環境を定義します.連番付きと連番なしの両方の型が提供されます.既定では,
17071 定理は文書を通じて連番が付されます.これは,
17072
17073 \family sans
17074 \series bold
17075 定理(…毎…連番)
17076 \family default
17077 \series default
17078 モジュールのうちの一つを読み込むことによって変更することができます.
17079 \family sans
17080 \series bold
17081 標準定理
17082 \family default
17083 \series default
17084 モジュールや
17085 \family sans
17086 \series bold
17087 標準定理(連番なし)
17088 \family default
17089 \series default
17090 モジュールが読み込まれているときには,
17091 使用することができません.
17092 \end_layout
17093
17094 \begin_layout Subsection
17095 AMS定理(拡張)
17096 \end_layout
17097
17098 \begin_layout Standard
17099 このモジュールは,
17100
17101 \family sans
17102 AMS
17103 \series bold
17104 定理
17105 \family default
17106 \series default
17107 パッケージを使う定理環境をいくつか追加定義します(
17108 \family sans
17109 AMS
17110 \series bold
17111 定理
17112 \family default
17113 \series default
17114 モジュールは読み込まれていなくてはなりません).これには,
17115 基準・アルゴリズム・公理・条件・註釈・記法・要約・謝辞・結論・事実・仮定・場合・問題が,
17116 連番ありと連番なしの両方の形で含まれています.
17117 \end_layout
17118
17119 \begin_layout Subsection
17120 AMS定理(拡張・章毎に種類別連番)
17121 \end_layout
17122
17123 \begin_layout Standard
17124 このモジュールは,
17125
17126 \family sans
17127 AMS
17128 \series bold
17129 定理(章毎に種類別連番)
17130 \family default
17131 \series default
17132 パッケージを使う定理環境をいくつか追加定義します(
17133 \family sans
17134 AMS
17135 \series bold
17136 定理(章毎に種類別連番)
17137 \family default
17138 \series default
17139 モジュールは読み込まれていなくてはなりません).中には,
17140 基準・アルゴリズム・公理・条件・註釈・記法・要約・謝辞・結論・仮定・場合が,
17141 連番ありと連番なしの両方の形で含まれています.
17142 \family sans
17143 AMS
17144 \series bold
17145 定理(拡張)
17146 \family default
17147 \series default
17148 モジュールとは異なり,
17149 このモジュールでは定理の種類毎に別々のカウンタを有し,
17150 章毎にリセットされます(例:
17151 基準1→基準2→公理3→仮定4→…ではなく,
17152 基準1.1→基準1.2→公理1.1→仮定1.1→#基準2.1→基準2.2→公理2.1→…となります).
17153 \end_layout
17154
17155 \begin_layout Subsection
17156 AMS定理(拡張・種類別連番)
17157 \end_layout
17158
17159 \begin_layout Standard
17160 このモジュールは,
17161
17162 \family sans
17163 AMS
17164 \series bold
17165 定理(種類別連番)
17166 \family default
17167 \series default
17168 パッケージを使う定理環境をいくつか追加定義します(
17169 \family sans
17170 AMS
17171 \series bold
17172 定理(種類別連番)
17173 \family default
17174 \series default
17175 モジュールは読み込まれていなくてはなりません).中には,
17176 基準・アルゴリズム・公理・条件・註釈・記法・要約・謝辞・結論・事実・仮定・場合が,
17177 連番ありと連番なしの両方の形で含まれています.
17178 \family sans
17179 AMS
17180 \series bold
17181 定理(拡張)
17182 \family default
17183 \series default
17184 モジュールとは異なり,
17185 このモジュールでは定理の種類毎に別々のカウンタを有します(例:
17186 基準1→基準2→公理3→仮定4→…ではなく,
17187 基準1→基準2→公理1→仮定1→基準3→…となります).
17188 \end_layout
17189
17190 \begin_layout Subsection
17191 AMS定理(章毎に種類別連番)
17192 \end_layout
17193
17194 \begin_layout Standard
17195 このモジュールは,
17196 拡張AMS機構を使う定理環境と証明環境を定義します.連番付きと連番なしの両方の型が提供されます.
17197 \family sans
17198 AMS
17199 \series bold
17200 定理
17201 \family default
17202 \series default
17203 モジュールとは異なり,
17204 ここに含まれる定理型は,
17205 種類毎に別々のカウンタを有します(例:
17206 定理1→定理2→補題3→命題4→…ではなく,
17207 定理1.1→定理1.2→補題1.1→命題1.1→定理1.3→補題1.2→…となります).連番は章毎にリセットされます(定理1.1→定理2.1→...).
17208 \family sans
17209 AMS
17210 \series bold
17211 定理
17212 \family default
17213 \series default
17214
17215 \family sans
17216 \series bold
17217 標準定理
17218 \family default
17219 \series default
17220
17221
17222 \family sans
17223 \series bold
17224 標準定理(種類別連番)
17225 \family default
17226 \series default
17227
17228
17229 \family sans
17230 \series bold
17231 標準定理(連番なし)
17232 \family default
17233 \series default
17234 の各モジュールが読み込まれているときには,
17235 使用することができません.
17236 \end_layout
17237
17238 \begin_layout Subsection
17239 AMS定理(種類別連番)
17240 \end_layout
17241
17242 \begin_layout Standard
17243 このモジュールは,
17244 拡張AMS機構を使う定理環境と証明環境を定義します.連番付きと連番なしの両方の型が提供されます.
17245 \family sans
17246 AMS
17247 \series bold
17248 定理
17249 \family default
17250 \series default
17251 モジュールとは異なり,
17252 このモジュールでは定理の種類毎に別々のカウンタを有します(例:
17253 定理1→定理2→補題3→命題4→…ではなく,
17254 定理1→定理2→補題1→命題1→定理3→補題2→…となります).連番の及ぶ範囲は文書全体です.章毎または節毎の連番をお望みであれば,
17255 「章毎に…連番」または「節毎に…連番」とあるモジュールを選択してください.
17256 \family sans
17257 AMS
17258 \series bold
17259 定理
17260 \family default
17261 \series default
17262
17263 \family sans
17264 \series bold
17265 標準定理
17266 \family default
17267 \series default
17268
17269
17270 \family sans
17271 \series bold
17272 標準定理(種類別連番)
17273 \family default
17274 \series default
17275
17276
17277 \family sans
17278 \series bold
17279 標準定理(連番なし)
17280 \family default
17281 \series default
17282 の各モジュールが読み込まれているときには,
17283 使用することができません.
17284 \end_layout
17285
17286 \begin_layout Subsection
17287 数式番号を節毎に振る
17288 \end_layout
17289
17290 \begin_layout Standard
17291 このモジュールを使うと,
17292 数式番号が節の開始毎にリセットされ,
17293 数式番号の前に「(2.1)」のように節番号が付きます. 
17294 \end_layout
17295
17296 \begin_layout Subsection
17297 標準定理
17298 \end_layout
17299
17300 \begin_layout Standard
17301 このモジュールは,
17302 非AMSクラス用にいくつか定理環境を定義します.既定では,
17303 定理は文書を通じて連番が付されます.これは,
17304
17305 \family sans
17306 \series bold
17307 標準定理(...連番)
17308 \family default
17309 \series default
17310 モジュールのうちの一つを読み込むことによって変更することができます.
17311 \family sans
17312 AMS
17313 \series bold
17314 定理
17315 \family default
17316 \series default
17317
17318 \family sans
17319 \series bold
17320 標準定理(連番なし)
17321 \family default
17322 \series default
17323 のモジュールが読み込まれているときには,
17324 使用することができません.
17325 \end_layout
17326
17327 \begin_layout Subsection
17328 標準定理(命名可)
17329 \end_layout
17330
17331 \begin_layout Standard
17332 このモジュールは,
17333 定理名付き定理を使用できるようにします.定理名は「定理追加文」差込枠に入れます.
17334 \end_layout
17335
17336 \begin_layout Subsection
17337 標準定理(章毎連番)
17338 \end_layout
17339
17340 \begin_layout Standard
17341 このモジュールは,
17342 定理などを章ごとに付番します(つまり章が始まるときにカウンタがリセットされます).このモジュールは,
17343 章環境を提供するレイアウトとのみ使用してください.
17344 \family sans
17345 AMS
17346 \series bold
17347 定理(種類別連番)
17348 \family default
17349 \series default
17350 または
17351 \family sans
17352 \series bold
17353 標準定理
17354 \family default
17355 \series default
17356 モジュールのどちらかが読み込まれていなくてはなりません.
17357 \family sans
17358 \series bold
17359 標準定理(節毎連番)
17360 \family default
17361 \series default
17362 のモジュールが読み込まれているときには,
17363 使用することができません.
17364 \end_layout
17365
17366 \begin_layout Subsection
17367 標準定理(節毎連番)
17368 \end_layout
17369
17370 \begin_layout Standard
17371 このモジュールは,
17372 定理などを節ごとに付番します(つまり節が始まるときにカウンタがリセットされます).
17373 \family sans
17374 AMS
17375 \series bold
17376 定理(種類別連番)
17377 \family default
17378 \series default
17379 または
17380 \family sans
17381 \series bold
17382 標準定理
17383 \family default
17384 \series default
17385 モジュールのどちらかが読み込まれていなくてはなりません.
17386 \family sans
17387 \series bold
17388 標準定理(章毎連番)
17389 \family default
17390 \series default
17391 のモジュールが読み込まれているときには,
17392 使用することができません.
17393 \end_layout
17394
17395 \begin_layout Subsection
17396 標準定理(章毎に種類別連番)
17397 \end_layout
17398
17399 \begin_layout Standard
17400 このモジュールは,
17401 非AMSクラス用にいくつか定理環境を定義します.
17402 \family sans
17403 AMS
17404 \series bold
17405 定理
17406 \family default
17407 \series default
17408 モジュールや
17409 \family sans
17410 \series bold
17411 標準定理
17412 \family default
17413 \series default
17414 モジュールとは違って,
17415 このモジュールでは定理の種類毎に別々のカウンタが設定されています(例:
17416 定理1→定理2→補題3→命題4→定理5→補題6\SpecialChar ldots
17417 のようにはならないで,
17418 定理1→定理2→補題1→命題1→定理3→補題2\SpecialChar ldots
17419 のように進行します).連番は,
17420 章の開始時にリセットされます.
17421 \family sans
17422 AMS
17423 \series bold
17424 定理(種類別連番)
17425 \family default
17426 \series default
17427 または
17428 \family sans
17429 \series bold
17430 標準定理(種類別連番)
17431 \family default
17432 \series default
17433 モジュールのどちらかが読み込まれていなくてはなりません.
17434 \family sans
17435 AMS
17436 \series bold
17437 定理
17438 \family default
17439 \series default
17440
17441 \family sans
17442 \series bold
17443 標準定理
17444 \family default
17445 \series default
17446
17447
17448 \family sans
17449 \series bold
17450 標準定理(連番なし)
17451 \family default
17452 \series default
17453
17454
17455 \family sans
17456 \series bold
17457 標準定理(節毎連番)
17458 \family default
17459 \series default
17460
17461
17462 \family sans
17463 \series bold
17464 標準定理(節毎に種類別連番)
17465 \family default
17466 \series default
17467 の各モジュールが読み込まれているときには,
17468 使用することができません.
17469 \end_layout
17470
17471 \begin_layout Subsection
17472 標準定理(節毎に種類別連番)
17473 \end_layout
17474
17475 \begin_layout Standard
17476 このモジュールは,
17477 非AMSクラス用にいくつか定理環境を定義します.
17478 \family sans
17479 AMS
17480 \series bold
17481 定理
17482 \family default
17483 \series default
17484 モジュールや
17485 \family sans
17486 \series bold
17487 標準定理
17488 \family default
17489 \series default
17490 モジュールとは違って,
17491 このモジュールでは定理の種類毎に別々のカウンタが設定されています(例:
17492 定理1→定理2→補題3→命題4→…のようにはならないで,
17493 定理1→定理2→補題1→命題1→定理3→補題2→…のように進行します).連番は,
17494 節の開始時にリセットされます.
17495 \family sans
17496 AMS
17497 \series bold
17498 定理(種類別連番)
17499 \family default
17500 \series default
17501 または
17502 \family sans
17503 \series bold
17504 標準定理(種類別連番)
17505 \family default
17506 \series default
17507 モジュールのどちらかが読み込まれていなくてはなりません.
17508 \family sans
17509 AMS
17510 \series bold
17511 定理
17512 \family default
17513 \series default
17514
17515 \family sans
17516 \series bold
17517 標準定理
17518 \family default
17519 \series default
17520
17521
17522 \family sans
17523 \series bold
17524 標準定理(連番なし)
17525 \family default
17526 \series default
17527
17528
17529 \family sans
17530 \series bold
17531 標準定理(章毎連番)
17532 \family default
17533 \series default
17534
17535
17536 \family sans
17537 \series bold
17538 標準定理(章毎に種類別連番)
17539 \family default
17540 \series default
17541 の各モジュールが読み込まれているときには,
17542 使用することができません.
17543 \end_layout
17544
17545 \begin_layout Subsection
17546 標準定理(種類別連番)
17547 \end_layout
17548
17549 \begin_layout Standard
17550 このモジュールは,
17551 非AMSクラス用にいくつか定理環境を定義します.
17552 \family sans
17553 AMS
17554 \series bold
17555 定理
17556 \family default
17557 \series default
17558 モジュールや
17559 \family sans
17560 \series bold
17561 標準定理
17562 \family default
17563 \series default
17564 モジュールとは違って,
17565 このモジュールでは定理の種類毎に別々のカウンタが設定されています(例:
17566 定理1→定理2→補題3→命題4→…のようにはならないで,
17567 定理1→定理2→補題1→命題1→定理3→補題2→…のように進行します).連番の及ぶ範囲は文書全体です.章毎または節毎の連番をお望みであれば,
17568 「章毎に…連番」または「節毎に…連番」とあるモジュールを選択してください.
17569 \family sans
17570 AMS
17571 \series bold
17572 定理
17573 \family default
17574 \series default
17575
17576 \family sans
17577 \series bold
17578 標準定理
17579 \family default
17580 \series default
17581
17582
17583 \family sans
17584 \series bold
17585 標準定理(連番なし)
17586 \family default
17587 \series default
17588
17589
17590 \family sans
17591 \series bold
17592 AMS定理(種類別連番)
17593 \family default
17594 \series default
17595 の各モジュールが読み込まれているときには,
17596 使用することができません.
17597 \end_layout
17598
17599 \begin_layout Subsection
17600 標準定理(連番なし)
17601 \end_layout
17602
17603 \begin_layout Standard
17604 このモジュールは,
17605 拡張AMS機構を用いる,
17606 番号なし定理環境と証明環境のみ定義します.
17607 \family sans
17608 AMS
17609 \series bold
17610 定理(種類別連番)
17611 \family default
17612 \series default
17613 または
17614 \family sans
17615 \series bold
17616 標準定理
17617 \family default
17618 \series default
17619 モジュールのどちらかが読み込まれていなくてはなりません.
17620 \end_layout
17621
17622 \begin_layout Subsection
17623 数式群(subequations)
17624 \end_layout
17625
17626 \begin_layout Standard
17627 このモジュールは,
17628 LyX中で数式群をまとめる直感的な方法を提供します.
17629 \family sans
17630 \series bold
17631 ヘルプ\SpecialChar menuseparator
17632 数式\SpecialChar menuseparator
17633 細目番号
17634 \family default
17635 \series default
17636 をご覧ください.
17637 \end_layout
17638
17639 \begin_layout Section
17640 ページレイアウト
17641 \end_layout
17642
17643 \begin_layout Subsection
17644 ヘッダ・フッタ文の設定
17645 \end_layout
17646
17647 \begin_layout Standard
17648 このモジュールは,
17649
17650 \family sans
17651 \series bold
17652 文書\SpecialChar menuseparator
17653 設定ページ\SpecialChar menuseparator
17654 ページレイアウト
17655 \family default
17656 \series default
17657
17658 \begin_inset space \thinspace{}
17659 \end_inset
17660
17661 ダイアログの
17662 \family sans
17663 \series bold
17664 ページ様式
17665 \family default
17666 \series default
17667 オプションを
17668 \family typewriter
17669 fancy
17670 \family default
17671 に設定する必要があります.これは,
17672
17673 \family typewriter
17674 fancyhdr
17675 \family default
17676 パッケージをサポートする文書クラスに以下の6つの環境を追加します.
17677 \end_layout
17678
17679 \begin_layout Itemize
17680
17681 \family sans
17682 \series bold
17683 左ヘッダ
17684 \end_layout
17685
17686 \begin_layout Itemize
17687
17688 \family sans
17689 \series bold
17690 中央ヘッダ
17691 \end_layout
17692
17693 \begin_layout Itemize
17694
17695 \family sans
17696 \series bold
17697 右ヘッダ
17698 \end_layout
17699
17700 \begin_layout Itemize
17701
17702 \family sans
17703 \series bold
17704 左フッタ
17705 \end_layout
17706
17707 \begin_layout Itemize
17708
17709 \family sans
17710 \series bold
17711 中央フッタ
17712 \end_layout
17713
17714 \begin_layout Itemize
17715
17716 \family sans
17717 \series bold
17718 右フッタ
17719 \end_layout
17720
17721 \begin_layout Subsubsection
17722 装飾的なヘッダ・フッタ
17723 \end_layout
17724
17725 \begin_layout Standard
17726 既定のページレイアウトは,
17727 どちらかといえば素っ気ないものです.
17728 \begin_inset Flex Code
17729 status collapsed
17730
17731 \begin_layout Plain Layout
17732 article
17733 \end_layout
17734
17735 \end_inset
17736
17737 文書クラスの場合には,
17738 ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,
17739 すこしは凝ってますが,
17740
17741 \family sans
17742 \series bold
17743 文書\SpecialChar menuseparator
17744 設定ページ\SpecialChar menuseparator
17745 ページレイアウト
17746 \family default
17747 \series default
17748
17749 \begin_inset space \thinspace{}
17750 \end_inset
17751
17752 ダイアログの
17753 \family sans
17754 \series bold
17755 ページ様式
17756 \family default
17757 \series default
17758 オプションを「fancy」に設定すれば,
17759 ページへッダが「左」「中央」「右」と命名された3つのフィールドに分割されます.フッタも同様に3つのフィールドに分割されます.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
17760 コマンドは,
17761
17762 \family typewriter
17763
17764 \begin_inset Flex Code
17765 status collapsed
17766
17767 \begin_layout Plain Layout
17768
17769 \family typewriter
17770
17771 \backslash
17772 lhead
17773 \end_layout
17774
17775 \end_inset
17776
17777
17778 \family default
17779
17780 \family typewriter
17781
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786
17787 \family typewriter
17788
17789 \backslash
17790 chead
17791 \end_layout
17792
17793 \end_inset
17794
17795
17796 \family default
17797
17798 \family typewriter
17799
17800 \begin_inset Flex Code
17801 status collapsed
17802
17803 \begin_layout Plain Layout
17804
17805 \family typewriter
17806
17807 \backslash
17808 rhead
17809 \end_layout
17810
17811 \end_inset
17812
17813
17814 \family default
17815
17816 \begin_inset Flex Code
17817 status collapsed
17818
17819 \begin_layout Plain Layout
17820
17821 \backslash
17822 lfoot
17823 \end_layout
17824
17825 \end_inset
17826
17827 などです.かりに,
17828 各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
17829 \end_layout
17830
17831 \begin_layout Standard
17832
17833 \family typewriter
17834
17835 \backslash
17836 lhead{物書 はじめ}
17837 \end_layout
17838
17839 \begin_layout Standard
17840 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,
17841 空の引数を持つコマンドを入れるだけです.すなわち,
17842
17843 \end_layout
17844
17845 \begin_layout Standard
17846
17847 \family typewriter
17848
17849 \backslash
17850 cfoot{}
17851 \begin_inset Newline newline
17852 \end_inset
17853
17854
17855 \family default
17856 とします.
17857 \end_layout
17858
17859 \begin_layout Standard
17860 しかしながら,
17861 ちょっとした変更を加えるのにもっと簡単な方法があります.
17862 \family sans
17863 \series bold
17864 文書\SpecialChar menuseparator
17865 設定\SpecialChar menuseparator
17866 モジュール\SpecialChar menuseparator
17867 ページレイアウト\SpecialChar menuseparator
17868 ヘッダ・フッタ文の設定
17869 \family default
17870 \series default
17871
17872 \begin_inset space \thinspace{}
17873 \end_inset
17874
17875 モジュールを読み込めば,
17876 上記の6つのフィールドに対応する新しい環境が6つ加えられます.
17877 \end_layout
17878
17879 \begin_layout Standard
17880 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,
17881 ページ番号を(4ページのように)右上に,
17882 自分の名前を左下に,
17883 日付を右下に入れます.新しく使えるようにした環境を使って,
17884 以下の項目を加えてください.
17885 \begin_inset VSpace defskip
17886 \end_inset
17887
17888
17889 \end_layout
17890
17891 \begin_layout Standard
17892 左ヘッダ:
17893
17894 \family typewriter
17895
17896 \backslash
17897 thesection
17898 \family default
17899  節
17900 \end_layout
17901
17902 \begin_layout Standard
17903 中央ヘッダ:
17904
17905 \end_layout
17906
17907 \begin_layout Standard
17908 右ヘッダ:
17909
17910 \family typewriter
17911
17912 \backslash
17913 thepage
17914 \family default
17915  ページ
17916 \end_layout
17917
17918 \begin_layout Standard
17919 左フッタ:
17920 物書 はじめ
17921 \end_layout
17922
17923 \begin_layout Standard
17924 中央フッタ:
17925
17926 \end_layout
17927
17928 \begin_layout Standard
17929 右フッタ:
17930
17931 \family typewriter
17932
17933 \backslash
17934 today
17935 \family default
17936
17937 \begin_inset VSpace defskip
17938 \end_inset
17939
17940
17941 \end_layout
17942
17943 \begin_layout Standard
17944
17945 \family typewriter
17946
17947 \backslash
17948 thesection
17949 \family default
17950
17951 \family typewriter
17952
17953 \backslash
17954 thepage
17955 \family default
17956
17957 \family typewriter
17958
17959 \backslash
17960 today
17961 \family default
17962 の各コマンドは,
17963 \SpecialChar TeX
17964 コードのコマンドとして入力するようにしてください.コマンド
17965 \family typewriter
17966
17967 \begin_inset Flex Code
17968 status collapsed
17969
17970 \begin_layout Plain Layout
17971
17972 \family typewriter
17973
17974 \backslash
17975 thesecti
17976 \family default
17977 o
17978 \family typewriter
17979 n
17980 \end_layout
17981
17982 \end_inset
17983
17984
17985 \family default
17986
17987 \begin_inset Flex Code
17988 status collapsed
17989
17990 \begin_layout Plain Layout
17991
17992 \family typewriter
17993
17994 \backslash
17995 thepa
17996 \family default
17997 ge
17998 \end_layout
17999
18000 \end_inset
18001
18002 は,
18003 それぞれ\SpecialChar LaTeX
18004 の節カウンタおよびページカウンタを取得するもので,
18005 これによって現在の節番号とページ番号を印字します.
18006 \begin_inset Flex Code
18007 status collapsed
18008
18009 \begin_layout Plain Layout
18010
18011 \family typewriter
18012
18013 \backslash
18014 tod
18015 \family default
18016 ay
18017 \end_layout
18018
18019 \end_inset
18020
18021 は,
18022 今日の日付を印字するものです.
18023 \end_layout
18024
18025 \begin_layout Standard
18026 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,
18027 太さを0にしてください.ヘッダ罫線は,
18028 既定では0.4ptの太さであり,
18029 フッタ罫線は0ptです.太さを変更するには,
18030
18031 \end_layout
18032
18033 \begin_layout Standard
18034
18035 \family typewriter
18036
18037 \backslash
18038 renewcommand{
18039 \backslash
18040 headrulewidth}{0.4pt}
18041 \family default
18042
18043 \end_layout
18044
18045 \begin_layout Standard
18046
18047 \family typewriter
18048 \begin_inset Flex Code
18049 status collapsed
18050
18051 \begin_layout Plain Layout
18052
18053 \family typewriter
18054
18055 \backslash
18056 renewcommand{
18057 \backslash
18058 footrulewidth}{0.4pt}
18059 \end_layout
18060
18061 \end_inset
18062
18063
18064 \family default
18065 のようなコマンドを使用してください.
18066 \end_layout
18067
18068 \begin_layout Standard
18069 \begin_inset Flex Code
18070 status collapsed
18071
18072 \begin_layout Plain Layout
18073
18074 \family typewriter
18075
18076 \backslash
18077 thispagestyle{empty}
18078 \end_layout
18079
18080 \end_inset
18081
18082
18083 \begin_inset Flex Code
18084 status collapsed
18085
18086 \begin_layout Plain Layout
18087
18088 \family typewriter
18089
18090 \backslash
18091 thispagestyle{plain}
18092 \end_layout
18093
18094 \end_inset
18095
18096
18097 \begin_inset Flex Code
18098 status collapsed
18099
18100 \begin_layout Plain Layout
18101
18102 \family typewriter
18103
18104 \backslash
18105 thispagestyle{fancy}
18106 \end_layout
18107
18108 \end_inset
18109
18110 のようなコマンドを使えば,
18111 各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,
18112 これらのコマンドを\SpecialChar TeX
18113 コードとして挿入してください.実は,
18114 タイトルページは,
18115 その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,
18116 既定でプレーン(plain)になるように設定されているのです.
18117 \end_layout
18118
18119 \begin_layout Standard
18120 ヘッダやフッタを両面文書の外側にしたいときには,
18121
18122 \end_layout
18123
18124 \begin_layout Standard
18125 \begin_inset Flex Strong
18126 status collapsed
18127
18128 \begin_layout Plain Layout
18129
18130 \backslash
18131 fancyfoot{}
18132 \end_layout
18133
18134 \end_inset
18135
18136
18137 \end_layout
18138
18139 \begin_layout Standard
18140 \begin_inset Flex Strong
18141 status collapsed
18142
18143 \begin_layout Plain Layout
18144
18145 \backslash
18146 fancyfoot[LE,RO]{
18147 \backslash
18148 thepage}
18149 \end_layout
18150
18151 \end_inset
18152
18153
18154 \end_layout
18155
18156 \begin_layout Standard
18157 のようにします.最初のコマンドは,
18158 新しいコマンドと干渉するのを避けるために,
18159 既存のフッタをすべて消去しています.
18160 \end_layout
18161
18162 \begin_layout Standard
18163 これらのコマンドは,
18164 簡単なものは上記で新しく作った環境の中に,
18165 複雑なものは\SpecialChar TeX
18166 コードコマンドとして,
18167 文書中の任意の場所に入れることができ,
18168 その次のページから効力を持ちます.
18169 \end_layout
18170
18171 \begin_layout Standard
18172 最後の例として,
18173 へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
18174
18175 \end_layout
18176
18177 \begin_layout Standard
18178
18179 \family sans
18180
18181 \backslash
18182 lhead{
18183 \backslash
18184 resizebox{1in}{!}{
18185 \backslash
18186 includegraphics{logo.eps}}}
18187 \end_layout
18188
18189 \begin_layout Standard
18190 \noindent
18191 とすれば,
18192 これを実現できます(文書中に他に画像を挿入していない場合には,
18193
18194 \family sans
18195
18196 \backslash
18197 usepackage{graphics}
18198 \family default
18199 をプリアンブルに宣言する必要があります).
18200 \end_layout
18201
18202 \begin_layout Standard
18203 詳しい解説は,
18204
18205 \begin_inset CommandInset href
18206 LatexCommand href
18207 name "CTAN"
18208 target "http://www.ctan.org/pkg/fancyhdr"
18209 literal "false"
18210
18211 \end_inset
18212
18213 にある
18214 \begin_inset Flex Code
18215 status collapsed
18216
18217 \begin_layout Plain Layout
18218
18219 \family typewriter
18220 fancyhdr
18221 \end_layout
18222
18223 \end_inset
18224
18225 の解説文書を参照してください.
18226 \end_layout
18227
18228 \begin_layout Subsection
18229 文中横向き部分
18230 \end_layout
18231
18232 \begin_layout Standard
18233 このモジュールは,
18234
18235 \family sans
18236 \series bold
18237 挿入\SpecialChar menuseparator
18238 特別差込枠\SpecialChar menuseparator
18239 横向き
18240 \family default
18241 \series default
18242
18243 \begin_inset space \thinspace{}
18244 \end_inset
18245
18246
18247 \begin_inset space \thinspace{}
18248 \end_inset
18249
18250
18251 \family sans
18252 \series bold
18253 挿入\SpecialChar menuseparator
18254 特別差込枠\SpecialChar menuseparator
18255 横向き(フロート)
18256 \family default
18257 \series default
18258
18259 \begin_inset space \thinspace{}
18260 \end_inset
18261
18262 を使って,
18263 文書の一部を横向きにします.
18264 \end_layout
18265
18266 \begin_layout Subsection
18267 多段組
18268 \begin_inset CommandInset label
18269 LatexCommand label
18270 name "subsec:多段組"
18271
18272 \end_inset
18273
18274
18275 \end_layout
18276
18277 \begin_layout Standard
18278 このモジュールは,
18279
18280 \begin_inset Flex Code
18281 status collapsed
18282
18283 \begin_layout Plain Layout
18284 multicol
18285 \end_layout
18286
18287 \end_inset
18288
18289 パッケージを使用するもので,
18290
18291 \family sans
18292 \series bold
18293 文書\SpecialChar menuseparator
18294 設定\SpecialChar menuseparator
18295 本文レイアウト
18296 \family default
18297 \series default
18298
18299 \begin_inset space \thinspace{}
18300 \end_inset
18301
18302 にある
18303 \family sans
18304 \series bold
18305 二段組文書
18306 \family default
18307 \series default
18308 とは別の機能です.文書全体に二段組を行いたい場合には,
18309
18310 \family sans
18311 \series bold
18312 二段組文書
18313 \family default
18314 \series default
18315 オプションを利用することをお勧めします.それ以外の場合には,
18316 本機能をご使用ください.
18317 \end_layout
18318
18319 \begin_layout Standard
18320 多段組中の脚注は,
18321 ページ下部に置かれ,
18322 各段の下ごとには置かれません.フロートに関して,
18323
18324 \family sans
18325 \series bold
18326 編集\SpecialChar menuseparator
18327 フロート設定
18328 \family default
18329 \series default
18330
18331 \begin_inset space \thinspace{}
18332 \end_inset
18333
18334
18335 \family sans
18336 \series bold
18337 段をまたぐ
18338 \family default
18339 \series default
18340 オプションを有効にする必要があるという制限がある他は,
18341 各段において通常の使用をすることができます.
18342 \end_layout
18343
18344 \begin_layout Subsubsection
18345 基本
18346 \end_layout
18347
18348 \begin_layout Standard
18349 文章中で二段組を使用したい場合には,
18350 段組を始める場所で
18351 \begin_inset space \thinspace{}
18352 \end_inset
18353
18354
18355 \family sans
18356 \series bold
18357 挿入\SpecialChar menuseparator
18358 任意設定差込枠\SpecialChar menuseparator
18359 多段組
18360 \family default
18361 \series default
18362
18363 \begin_inset space \thinspace{}
18364 \end_inset
18365
18366 メニューを使用して,
18367 多段組差込枠を挿入してください.二段組で印字されるべき文章は,
18368 全てこの差込枠の中に書いてください.
18369 \end_layout
18370
18371 \begin_layout Standard
18372 下記はその用例です.
18373 \end_layout
18374
18375 \begin_layout Standard
18376 \noindent
18377 \begin_inset Flex Multiple Columns
18378 status open
18379
18380 \begin_layout Plain Layout
18381 \noindent
18382
18383 \series bold
18384 \size small
18385 The Adventure of the Empty House
18386 \series default
18387
18388 \begin_inset Newline newline
18389 \end_inset
18390
18391 by Sir Arthur Conan Doyle
18392 \end_layout
18393
18394 \begin_layout Plain Layout
18395
18396 \size small
18397 It was in the spring of the year 1894 that all London was interested,
18398  and the fashionable world dismayed,
18399  by the murder of the Honourable Ronald Adair under most unusual and inexplicable circumstances.
18400  The public has already learned those particulars of the crime which came out in the police investigation,
18401  but a good deal was suppressed upon that occasion,
18402  since the case for the prosecution was so overwhelmingly strong that it was not necessary to bring forward all the facts.
18403  Only now,
18404  at the end of nearly ten years,
18405  am I allowed to supply those missing links which make up the whole of that remarkable chain.
18406  The crime was of interest in itself,
18407  but that interest was as nothing to me compared to the inconceivable sequel,
18408  which afforded me the greatest shock and surprise of any event in my adventurous life.
18409  Even now,
18410  after this long interval,
18411  I find myself thrilling as I think of it,
18412  and feeling once more that sudden flood of joy,
18413  amazement,
18414  and incredulity which utterly submerged my mind.
18415  Let me say to that public,
18416  which has shown some interest in those glimpses which I have occasionally given them of the thoughts and actions of a very remarkable man,
18417  that they are not to blame me if I have not shared my knowledge with them,
18418  for I should have considered it my first duty to do so,
18419  had I not been barred by a positive prohibition from his own lips,
18420  which was only withdrawn upon the third of last month.
18421 \end_layout
18422
18423 \end_inset
18424
18425
18426 \end_layout
18427
18428 \begin_layout Standard
18429 三段以上にするには,
18430 カーソルを多段組差込枠の内部において,
18431
18432 \family sans
18433 \series bold
18434 挿入\SpecialChar menuseparator
18435 段数
18436 \family default
18437 \series default
18438
18439 \begin_inset space \thinspace{}
18440 \end_inset
18441
18442 メニューを使用してください.この差込枠の中に,
18443 欲しい段数を書き入れます(三段組の場合には「3」と書きます).
18444 \begin_inset Newline newline
18445 \end_inset
18446
18447 下記は三段組の例です.
18448 \end_layout
18449
18450 \begin_layout Standard
18451 \begin_inset Flex Multiple Columns
18452 status open
18453
18454 \begin_layout Plain Layout
18455
18456 \size footnotesize
18457 \begin_inset Argument 1
18458 status open
18459
18460 \begin_layout Plain Layout
18461
18462 3
18463 \end_layout
18464
18465 \end_inset
18466
18467 It can be imagined that my close intimacy with Sherlock Holmes had interested me deeply in crime,
18468  and that after his disappearance I never failed to read with care the various problems which came before the public.
18469  And I even attempted,
18470  more than once,
18471  for my own private satisfaction,
18472  to employ his methods in their solution,
18473  though with indifferent success.
18474  There was none,
18475  however,
18476  which appealed to me like this tragedy of Ronald Adair.
18477  As I read the evidence at the inquest,
18478  which led up to a verdict of willful murder against some person or persons unknown,
18479  I realized more clearly than I had ever done the loss which the community had sustained by the death of Sherlock Holmes.
18480  There were points about this strange business which would,
18481  I was sure,
18482  have specially appealed to him,
18483  and the efforts of the police would have been supplemented,
18484  or more probably anticipated,
18485  by the trained observation and the alert mind of the first criminal agent in Europe.
18486  All day,
18487  as I drove upon my round,
18488  I turned over the case in my mind and found no explanation which appeared to me to be adequate.
18489  At the risk of telling a twice-told tale,
18490  I will recapitulate the facts as they were known to the public at the conclusion of the inquest.
18491 \end_layout
18492
18493 \end_inset
18494
18495
18496 \end_layout
18497
18498 \begin_layout Standard
18499 お望みならば10段組まで組むことができますが,
18500 文書の読者にとっては,
18501 あまり気持ちのいいものではないでしょう.
18502 \end_layout
18503
18504 \begin_layout Standard
18505 \begin_inset Newpage newpage
18506 \end_inset
18507
18508
18509 \end_layout
18510
18511 \begin_layout Subsubsection
18512 段組中の段組
18513 \end_layout
18514
18515 \begin_layout Standard
18516 また,
18517 段中に段を組むこともできます.
18518 \end_layout
18519
18520 \begin_layout Standard
18521 \begin_inset Flex Multiple Columns
18522 status open
18523
18524 \begin_layout Plain Layout
18525
18526 \size footnotesize
18527 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
18528  at that time governor of one of the Australian colonies.
18529  Adair's mother had returned from Australia to undergo the operation for cataract,
18530  and she,
18531  her son Ronald,
18532  and her daughter Hilda were living together at 427 Park Lane.
18533 \end_layout
18534
18535 \begin_layout Plain Layout
18536 \begin_inset Flex Multiple Columns
18537 status open
18538
18539 \begin_layout Plain Layout
18540
18541 \size footnotesize
18542 The youth moved in the best society
18543 \begin_inset space ~
18544 \end_inset
18545
18546 – had,
18547  so far as was known,
18548  no enemies and no particular vices.
18549  He had been engaged to Miss Edith Woodley,
18550  of Carstairs,
18551  but the engagement had been broken off by mutual consent some months before,
18552  and there was no sign that it had left any very profound feeling behind it.
18553  For the rest {sic} the man's life moved in a narrow and conventional circle,
18554  for his habits were quiet and his nature unemotional.
18555  Yet it was upon this easy-going young aristocrat that death came,
18556  in most strange and unexpected form,
18557  between the hours of ten and eleven-twenty on the night of March 30,
18558  1894.
18559 \end_layout
18560
18561 \end_inset
18562
18563
18564 \end_layout
18565
18566 \begin_layout Plain Layout
18567
18568 \size footnotesize
18569 Ronald Adair was fond of cards
18570 \begin_inset space ~
18571 \end_inset
18572
18573 – playing continually,
18574  but never for such stakes as would hurt him.
18575  He was a member of the Baldwin,
18576  the Cavendish,
18577  and the Bagatelle card clubs.
18578  It was shown that,
18579  after dinner on the day of his death,
18580  he had played a rubber of whist at the latter club.
18581  He had also played there in the afternoon.
18582
18583 \size default
18584  
18585 \size footnotesize
18586 The evidence of those who had played with him
18587 \begin_inset space ~
18588 \end_inset
18589
18590 – Mr.
18591  Murray,
18592  Sir John Hardy,
18593  and Colonel Moran
18594 \begin_inset space ~
18595 \end_inset
18596
18597 – showed that the game was whist,
18598  and that there was a fairly equal fall of the cards.
18599  Adair might have lost five pounds,
18600  but not more.
18601  His fortune was a considerable one,
18602  and such a loss could not in any way affect him.
18603  He had played nearly every day at one club or other,
18604  but he was a cautious player,
18605  and usually rose a winner.
18606  It came out in evidence that,
18607  in partnership with Colonel Moran,
18608  he had actually won as much as four hundred and twenty pounds in a sitting,
18609  some weeks before,
18610  from Godfrey Milner and Lord Balmoral.
18611  So much for his recent history as it came out at the inquest.
18612 \end_layout
18613
18614 \end_inset
18615
18616
18617 \end_layout
18618
18619 \begin_layout Subsubsection
18620 応用例
18621 \end_layout
18622
18623 \begin_layout Standard
18624 本節の用例は,
18625 多段組のさらに特別な機能を示すためのものです.
18626 \end_layout
18627
18628 \begin_layout Standard
18629 多段組機能についてさらに知りたい場合には,
18630 \SpecialChar LaTeX
18631 パッケージ
18632 \begin_inset Flex Code
18633 status collapsed
18634
18635 \begin_layout Plain Layout
18636 multicol
18637 \end_layout
18638
18639 \end_inset
18640
18641
18642 \begin_inset CommandInset href
18643 LatexCommand href
18644 name "解説文書"
18645 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
18646 literal "false"
18647
18648 \end_inset
18649
18650 をご覧ください.
18651 \end_layout
18652
18653 \begin_layout Paragraph
18654 序文
18655 \end_layout
18656
18657 \begin_layout Standard
18658 多段組に序文を追記するには,
18659 カーソルを多段組差込枠内部に置き,
18660
18661 \family sans
18662 挿入\SpecialChar menuseparator
18663 序文
18664 \family default
18665 メニューを使用してください.序文は,
18666 この差込枠内に書いてください.
18667 \begin_inset Newline newline
18668 \end_inset
18669
18670 序文のある文章の例を掲げます.
18671 \end_layout
18672
18673 \begin_layout Standard
18674 \begin_inset VSpace bigskip
18675 \end_inset
18676
18677
18678 \end_layout
18679
18680 \begin_layout Standard
18681 \begin_inset Flex Multiple Columns
18682 status open
18683
18684 \begin_layout Plain Layout
18685 \begin_inset Argument 2
18686 status open
18687
18688 \begin_layout Plain Layout
18689 And the story continues and continues and continues and continues\SpecialChar ldots
18690
18691 \end_layout
18692
18693 \end_inset
18694
18695
18696 \size small
18697 On the evening of the crime,
18698  he returned from the club exactly at ten.
18699  His mother and sister were out spending the evening with a relation.
18700  The servant deposed that she heard him enter the front room on the second floor,
18701  generally used as his sitting-room.
18702  She had lit a fire there,
18703  and as it smoked she had opened the window.
18704  No sound was heard from the room until eleven-twenty,
18705  the hour of the return of Lady Maynooth and her daughter.
18706  Desiring to say good-night,
18707  she attempted to enter her son's room.
18708  The door was locked on the inside,
18709  and no answer could be got to their cries and knocking.
18710  Help was obtained,
18711  and the door forced.
18712  The unfortunate young man was found lying near the table.
18713  His head had been horribly mutilated by an expanding revolver bullet,
18714  but no weapon of any sort was to be found in the room.
18715 \end_layout
18716
18717 \end_inset
18718
18719
18720 \end_layout
18721
18722 \begin_layout Standard
18723 最初の\SpecialChar TeX
18724 コードの後に,
18725 節宣言コマンドを\SpecialChar TeX
18726 コードとして使用すれば,
18727 節見出しを前書きとして使用することができます.例えば,
18728
18729 \end_layout
18730
18731 \begin_layout Standard
18732
18733 \family typewriter
18734
18735 \backslash
18736 subsection{小節見出し}
18737 \end_layout
18738
18739 \begin_layout Standard
18740 というコマンドは,
18741 小節を生成します.以下の例では,
18742 前書きが小々節になっています.
18743 \end_layout
18744
18745 \begin_layout Standard
18746 \begin_inset Flex Multiple Columns
18747 status open
18748
18749 \begin_layout Plain Layout
18750 \begin_inset Argument 2
18751 status open
18752
18753 \begin_layout Plain Layout
18754 \begin_inset ERT
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758
18759
18760 \backslash
18761 subsubsection{
18762 \end_layout
18763
18764 \end_inset
18765
18766 これは序文の小々節見出しです
18767 \begin_inset ERT
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771
18772 }
18773 \end_layout
18774
18775 \end_inset
18776
18777
18778 \end_layout
18779
18780 \end_inset
18781
18782
18783 \size small
18784 A minute examination of the circumstances served only to make the case more complex.
18785  In the first place,
18786  no reason could be given why the young man should have fastened the door upon the inside.
18787  There was the possibility that the murderer had done this,
18788  and had afterwards escaped by the window.
18789  The drop was at least twenty feet,
18790  however,
18791  and a bed of crocuses in full bloom lay beneath.
18792  Neither the flowers nor the earth showed any sign of having been disturbed,
18793  nor were there any marks upon the narrow strip of grass which separated the house from the road.
18794  Apparently,
18795  therefore,
18796  it was the young man himself who had fastened the door.
18797  But how did he come by his death?
18798  No one could have climbed up to the window without leaving traces.
18799  Suppose a man had fired through the window,
18800  he would indeed be a remarkable shot who could with a revolver inflict so deadly a wound.
18801  Again,
18802  Park Lane is a frequented thoroughfare;
18803  there is a cab stand within a hundred yards of the house.
18804  No one had heard a shot.
18805 \end_layout
18806
18807 \end_inset
18808
18809
18810 \end_layout
18811
18812 \begin_layout Standard
18813 多段組を開始する部分に,
18814 必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,
18815 多段組の前に改行が挿入されます.前書きの行数如何では,
18816 この必要行数を変更したいかもしれません.これは,
18817 カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
18818
18819 \family sans
18820 挿入\SpecialChar menuseparator
18821 改頁前の余白
18822 \family default
18823 メニューを使用することで設定できます.この差込枠に,
18824 余白の大きさを「5cm」などと書き込んでください.
18825 \end_layout
18826
18827 \begin_layout Standard
18828 以下の例では,
18829
18830 \begin_inset Flex Code
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834 7
18835 \backslash
18836 baselineskip
18837 \end_layout
18838
18839 \end_inset
18840
18841 を用いて,
18842 必要行数を7行に指定しています(コマンド
18843 \begin_inset Flex Code
18844 status collapsed
18845
18846 \begin_layout Plain Layout
18847
18848 \backslash
18849 baselineskip
18850 \end_layout
18851
18852 \end_inset
18853
18854 は\SpecialChar TeX
18855 コードとして入力する必要があります).
18856 \end_layout
18857
18858 \begin_layout Standard
18859 \begin_inset Flex Multiple Columns
18860 status open
18861
18862 \begin_layout Plain Layout
18863 \begin_inset Argument 3
18864 status open
18865
18866 \begin_layout Plain Layout
18867 7
18868 \begin_inset ERT
18869 status collapsed
18870
18871 \begin_layout Plain Layout
18872
18873
18874 \backslash
18875 baselineskip
18876 \end_layout
18877
18878 \end_inset
18879
18880
18881 \end_layout
18882
18883 \end_inset
18884
18885
18886 \size small
18887 On the evening of the crime,
18888  he returned from the club exactly at ten.
18889  His mother and sister were out spending the evening with a relation.
18890  The servant deposed that she heard him enter the front room on the second floor,
18891  generally used as his sitting-room.
18892  She had lit a fire there,
18893  and as it smoked she had opened the window.
18894  No sound was heard from the room until eleven-twenty,
18895  the hour of the return of Lady Maynooth and her daughter.
18896  Desiring to say good-night,
18897  she attempted to enter her son's room.
18898  The door was locked on the inside,
18899  and no answer could be got to their cries and knocking.
18900  Help was obtained,
18901  and the door forced.
18902  The unfortunate young man was found lying near the table.
18903  His head had been horribly mutilated by an expanding revolver bullet,
18904  but no weapon of any sort was to be found in the room.
18905 \end_layout
18906
18907 \end_inset
18908
18909
18910 \end_layout
18911
18912 \begin_layout Paragraph
18913 周囲の余白
18914 \end_layout
18915
18916 \begin_layout Standard
18917 多段組の前後の余白は,
18918 長さ
18919 \begin_inset Flex Code
18920 status collapsed
18921
18922 \begin_layout Plain Layout
18923
18924 \backslash
18925 multicolsep
18926 \end_layout
18927
18928 \end_inset
18929
18930 を変えることで変更することができます.例えば,
18931 \SpecialChar TeX
18932 コードで書かれたコマンド
18933 \end_layout
18934
18935 \begin_layout LyX-Code
18936
18937 \backslash
18938 setlength{
18939 \backslash
18940 multicolsep}{3cm}
18941 \end_layout
18942
18943 \begin_layout Standard
18944 は,
18945 その値を3
18946 \begin_inset space \thinspace{}
18947 \end_inset
18948
18949 cmに変更します.この変更は,
18950 多段組が始まる前に指定しなくてはなりません.既定値は13
18951 \begin_inset space \thinspace{}
18952 \end_inset
18953
18954 ptです.
18955 \end_layout
18956
18957 \begin_layout Standard
18958 以下の例では,
18959
18960 \begin_inset Flex Code
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964
18965 \backslash
18966 multicolsep
18967 \end_layout
18968
18969 \end_inset
18970
18971 は2.5
18972 \begin_inset space \thinspace{}
18973 \end_inset
18974
18975 cmに指定されています.
18976 \end_layout
18977
18978 \begin_layout Standard
18979 \begin_inset ERT
18980 status open
18981
18982 \begin_layout Plain Layout
18983
18984
18985 \backslash
18986 setlength{
18987 \backslash
18988 multicolsep}{2.5cm}
18989 \end_layout
18990
18991 \end_inset
18992
18993
18994 \end_layout
18995
18996 \begin_layout Standard
18997 \begin_inset Flex Multiple Columns
18998 status open
18999
19000 \begin_layout Plain Layout
19001
19002 \size small
19003 All day I turned these facts over in my mind,
19004  endeavouring to hit upon some theory which could reconcile them all,
19005  and to find that line of least resistance which my poor friend had declared to be the starting-point of every investigation.
19006  I confess that I made little progress.
19007  In the evening I strolled across the Park,
19008  and found myself about six o'clock at the Oxford Street end of Park Lane.
19009  A group of loafers upon the pavements,
19010  all staring up at a particular window,
19011  directed me to the house which I had come to see.
19012  A tall,
19013  thin man with coloured glasses,
19014  whom I strongly suspected of being a plain-clothes detective,
19015  was pointing out some theory of his own,
19016  while the others crowded round to listen to what he said.
19017  I got as near him as I could,
19018  but his observations seemed to me to be absurd,
19019  so I withdrew again in some disgust.
19020  As I did so I struck against an elderly,
19021  deformed man,
19022  who had been behind me,
19023  and I knocked down several books which he was carrying.
19024 \end_layout
19025
19026 \end_inset
19027
19028
19029 \end_layout
19030
19031 \begin_layout Standard
19032 \begin_inset Note Greyedout
19033 status open
19034
19035 \begin_layout Plain Layout
19036
19037 \series bold
19038 [註]
19039 \series default
19040
19041 \begin_inset Flex Code
19042 status collapsed
19043
19044 \begin_layout Plain Layout
19045
19046 \backslash
19047 setlength
19048 \end_layout
19049
19050 \end_inset
19051
19052 で指定した値は,
19053 再度変更されるまでは,
19054 以降のすべての多段組で使用されます.
19055 \end_layout
19056
19057 \end_inset
19058
19059
19060 \end_layout
19061
19062 \begin_layout Standard
19063 \begin_inset ERT
19064 status collapsed
19065
19066 \begin_layout Plain Layout
19067
19068
19069 \backslash
19070 setlength{
19071 \backslash
19072 multicolsep}{13pt}
19073 \end_layout
19074
19075 \end_inset
19076
19077
19078 \begin_inset Note Note
19079 status collapsed
19080
19081 \begin_layout Plain Layout
19082
19083 \lang english
19084 go back to the default
19085 \end_layout
19086
19087 \end_inset
19088
19089
19090 \end_layout
19091
19092 \begin_layout Paragraph
19093 改段
19094 \end_layout
19095
19096 \begin_layout Standard
19097 改段は,
19098 文章中の階段を行いたい位置に,
19099 \SpecialChar TeX
19100 コードで,
19101 コマンド
19102 \begin_inset Flex Code
19103 status collapsed
19104
19105 \begin_layout Plain Layout
19106
19107 \backslash
19108 columnbreak{}
19109 \end_layout
19110
19111 \end_inset
19112
19113 を挿入すれば,
19114 強制的に行うことができます.ただし,
19115 多くの場合,
19116 文章中に空白が挿入されることに注意してください.
19117 \begin_inset Newline newline
19118 \end_inset
19119
19120 以下が用例です.
19121 \end_layout
19122
19123 \begin_layout Standard
19124 \begin_inset Flex Multiple Columns
19125 status open
19126
19127 \begin_layout Plain Layout
19128
19129 \size small
19130 \begin_inset Quotes eld
19131 \end_inset
19132
19133 You're surprised to see me,
19134  sir,
19135 \begin_inset Quotes erd
19136 \end_inset
19137
19138  said he,
19139  in a strange,
19140  croaking voice.
19141 \end_layout
19142
19143 \begin_layout Plain Layout
19144
19145 \size small
19146 I acknowledged that I was.
19147 \end_layout
19148
19149 \begin_layout Plain Layout
19150
19151 \size small
19152 \begin_inset Quotes eld
19153 \end_inset
19154
19155 Well,
19156  I've a conscience,
19157  sir,
19158  and when I chanced to see you go into this house,
19159  as I came hobbling after you,
19160  I thought to myself,
19161  I'll just step in and see that kind gentleman,
19162  and tell him that if I was a bit gruff in my manner there was not any harm meant,
19163  and that I am much obliged to him for picking up my books.
19164 \begin_inset Quotes erd
19165 \end_inset
19166
19167
19168 \end_layout
19169
19170 \begin_layout Plain Layout
19171
19172 \size small
19173 \begin_inset Quotes eld
19174 \end_inset
19175
19176 You make too much of a trifle,
19177 \begin_inset Quotes erd
19178 \end_inset
19179
19180  said I.
19181  
19182 \begin_inset Quotes eld
19183 \end_inset
19184
19185 May I ask how you knew who I was?
19186 \begin_inset Quotes erd
19187 \end_inset
19188
19189  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
19190 \begin_inset ERT
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194
19195
19196 \backslash
19197 columnbreak{}
19198 \end_layout
19199
19200 \end_inset
19201
19202
19203 \end_layout
19204
19205 \begin_layout Plain Layout
19206
19207 \size small
19208 \begin_inset Quotes eld
19209 \end_inset
19210
19211 Well,
19212  sir,
19213  if it isn't too great a liberty,
19214  I am a neighbour of yours,
19215  for you'll find my little bookshop at the corner of Church Street,
19216  and very happy to see you,
19217  I am sure.
19218  Maybe you collect yourself,
19219  sir.
19220  Here's 
19221 \noun on
19222 British
19223 \begin_inset space ~
19224 \end_inset
19225
19226 Birds
19227 \noun default
19228 ,
19229  and 
19230 \noun on
19231 Catullus
19232 \noun default
19233 ,
19234  and 
19235 \noun on
19236 The Holy War
19237 \noun default
19238
19239 \begin_inset space ~
19240 \end_inset
19241
19242 – a bargain,
19243  every one of them.
19244  With five volumes you could just fill that gap on that second shelf.
19245  It looks untidy,
19246  does it not,
19247  sir?
19248 \begin_inset Quotes erd
19249 \end_inset
19250
19251
19252 \end_layout
19253
19254 \end_inset
19255
19256
19257 \end_layout
19258
19259 \begin_layout Paragraph
19260 段間隔
19261 \end_layout
19262
19263 \begin_layout Standard
19264 段幅は自動的に計算されますが,
19265 段の間の余白は指定することができます.これは,
19266 長さ
19267 \begin_inset Flex Code
19268 status collapsed
19269
19270 \begin_layout Plain Layout
19271
19272 \backslash
19273 columnsep
19274 \end_layout
19275
19276 \end_inset
19277
19278 を変更することで実現できます.既定値は10
19279 \begin_inset space \thinspace{}
19280 \end_inset
19281
19282 ptです.以下は
19283 \begin_inset Flex Code
19284 status collapsed
19285
19286 \begin_layout Plain Layout
19287
19288 \backslash
19289 columnsep
19290 \end_layout
19291
19292 \end_inset
19293
19294 を3
19295 \begin_inset space \thinspace{}
19296 \end_inset
19297
19298 cmに設定した例です.
19299 \end_layout
19300
19301 \begin_layout Standard
19302 \begin_inset ERT
19303 status open
19304
19305 \begin_layout Plain Layout
19306
19307
19308 \backslash
19309 setlength{
19310 \backslash
19311 columnsep}{3cm}
19312 \end_layout
19313
19314 \end_inset
19315
19316
19317 \end_layout
19318
19319 \begin_layout Standard
19320 \begin_inset Flex Multiple Columns
19321 status open
19322
19323 \begin_layout Plain Layout
19324
19325 \size small
19326 My observations of No.
19327 \begin_inset space \space{}
19328 \end_inset
19329
19330 427 Park Lane did little to clear up the problem in which I was interested.
19331  The house was separated from the street by a low wall and railing,
19332  the whole not more than five feet high.
19333  It was perfectly easy,
19334  therefore,
19335  for anyone to get into the garden,
19336  but the window was entirely inaccessible,
19337  since there was no water pipe or anything which could help the most active man to climb it.
19338  More puzzled than ever,
19339  I retraced my steps to Kensington.
19340  I had not been in my study five minutes when the maid entered to say that a person desired to see me.
19341  To my astonishment it was none other than my strange old book collector,
19342  his sharp,
19343  wizened face peering out from a frame of white hair,
19344  and his precious volumes,
19345  a dozen of them at least,
19346  wedged under his right arm.
19347 \end_layout
19348
19349 \end_inset
19350
19351
19352 \end_layout
19353
19354 \begin_layout Standard
19355 \begin_inset ERT
19356 status collapsed
19357
19358 \begin_layout Plain Layout
19359
19360
19361 \backslash
19362 setlength{
19363 \backslash
19364 columnsep}{10pt}
19365 \end_layout
19366
19367 \end_inset
19368
19369
19370 \begin_inset Note Note
19371 status collapsed
19372
19373 \begin_layout Plain Layout
19374
19375 \lang english
19376 go back to the default
19377 \end_layout
19378
19379 \end_inset
19380
19381
19382 \end_layout
19383
19384 \begin_layout Paragraph
19385 垂直線
19386 \end_layout
19387
19388 \begin_layout Standard
19389 段間には,
19390 長さ
19391 \begin_inset Flex Code
19392 status collapsed
19393
19394 \begin_layout Plain Layout
19395
19396 \backslash
19397 columnseprule
19398 \end_layout
19399
19400 \end_inset
19401
19402 の幅を持つ罫線が描かれます.罫線幅を0
19403 \begin_inset space \thinspace{}
19404 \end_inset
19405
19406 ptにすると(これが既定値です),
19407 罫線は出力されません.以下の例では,
19408 段を分かつ線は2
19409 \begin_inset space \thinspace{}
19410 \end_inset
19411
19412 pt幅に設定されています.
19413 \end_layout
19414
19415 \begin_layout Standard
19416 \begin_inset ERT
19417 status open
19418
19419 \begin_layout Plain Layout
19420
19421
19422 \backslash
19423 setlength{
19424 \backslash
19425 columnseprule}{2pt}
19426 \end_layout
19427
19428 \end_inset
19429
19430
19431 \end_layout
19432
19433 \begin_layout Standard
19434 \begin_inset Flex Multiple Columns
19435 status open
19436
19437 \begin_layout Plain Layout
19438
19439 \size small
19440 \begin_inset Quotes eld
19441 \end_inset
19442
19443 You're surprised to see me,
19444  sir,
19445 \begin_inset Quotes erd
19446 \end_inset
19447
19448  said he,
19449  in a strange,
19450  croaking voice.
19451 \end_layout
19452
19453 \begin_layout Plain Layout
19454
19455 \size small
19456 I acknowledged that I was.
19457 \end_layout
19458
19459 \begin_layout Plain Layout
19460
19461 \size small
19462 \begin_inset Quotes eld
19463 \end_inset
19464
19465 Well,
19466  I've a conscience,
19467  sir,
19468  and when I chanced to see you go into this house,
19469  as I came hobbling after you,
19470  I thought to myself,
19471  I'll just step in and see that kind gentleman,
19472  and tell him that if I was a bit gruff in my manner there was not any harm meant,
19473  and that I am much obliged to him for picking up my books.
19474 \begin_inset Quotes erd
19475 \end_inset
19476
19477
19478 \end_layout
19479
19480 \begin_layout Plain Layout
19481
19482 \size small
19483 \begin_inset Quotes eld
19484 \end_inset
19485
19486 You make too much of a trifle,
19487 \begin_inset Quotes erd
19488 \end_inset
19489
19490  said I.
19491  
19492 \begin_inset Quotes eld
19493 \end_inset
19494
19495 May I ask how you knew who I was?
19496 \begin_inset Quotes erd
19497 \end_inset
19498
19499
19500 \end_layout
19501
19502 \begin_layout Plain Layout
19503
19504 \size small
19505 \begin_inset Quotes eld
19506 \end_inset
19507
19508 Well,
19509  sir,
19510  if it isn't too great a liberty,
19511  I am a neighbour of yours,
19512  for you'll find my little bookshop at the corner of Church Street,
19513  and very happy to see you,
19514  I am sure.
19515  Maybe you collect yourself,
19516  sir.
19517  Here's 
19518 \noun on
19519 British
19520 \begin_inset space ~
19521 \end_inset
19522
19523 Birds
19524 \noun default
19525 ,
19526  and 
19527 \noun on
19528 Catullus
19529 \noun default
19530 ,
19531  and 
19532 \noun on
19533 The Holy War
19534 \noun default
19535
19536 \begin_inset space ~
19537 \end_inset
19538
19539 – a bargain,
19540  every one of them.
19541  With five volumes you could just fill that gap on that second shelf.
19542  It looks untidy,
19543  does it not,
19544  sir?
19545 \begin_inset Quotes erd
19546 \end_inset
19547
19548
19549 \end_layout
19550
19551 \end_inset
19552
19553
19554 \end_layout
19555
19556 \begin_layout Standard
19557 \begin_inset VSpace defskip
19558 \end_inset
19559
19560
19561 \end_layout
19562
19563 \begin_layout Standard
19564 罫線は,
19565 コマンド
19566 \begin_inset Flex Code
19567 status collapsed
19568
19569 \begin_layout Plain Layout
19570
19571 \backslash
19572 columnseprulecolor
19573 \end_layout
19574
19575 \end_inset
19576
19577 を再定義すれば,
19578 着色することができます.これは,
19579 多段組差込枠の前に\SpecialChar TeX
19580 コードで以下のコマンドを挿入すれば,
19581 実現できます.
19582 \end_layout
19583
19584 \begin_layout LyX-Code
19585
19586 \backslash
19587 renewcommand{
19588 \backslash
19589 columnseprulecolor}{
19590 \backslash
19591 color{red}}
19592 \end_layout
19593
19594 \begin_layout Standard
19595 このコマンド中の
19596 \begin_inset Flex Code
19597 status collapsed
19598
19599 \begin_layout Plain Layout
19600
19601 \backslash
19602 red
19603 \end_layout
19604
19605 \end_inset
19606
19607 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,
19608 取扱説明書『埋込オブジェクト篇』の「色付き表」の節をご覧ください.既定色に戻すには,
19609 以下のコマンドを挿入してください.
19610 \end_layout
19611
19612 \begin_layout LyX-Code
19613
19614 \backslash
19615 renewcommand{
19616 \backslash
19617 columnseprulecolor}{
19618 \backslash
19619 normalcolor}
19620 \end_layout
19621
19622 \begin_layout Standard
19623 以下は,
19624 シアン色の罫線と1
19625 \begin_inset space \thinspace{}
19626 \end_inset
19627
19628 cmの段間隔を持つ例です.
19629 \end_layout
19630
19631 \begin_layout Standard
19632 \begin_inset ERT
19633 status open
19634
19635 \begin_layout Plain Layout
19636
19637
19638 \backslash
19639 setlength{
19640 \backslash
19641 columnsep}{1cm}
19642 \end_layout
19643
19644 \begin_layout Plain Layout
19645
19646
19647 \backslash
19648 renewcommand{
19649 \backslash
19650 columnseprulecolor}{
19651 \backslash
19652 color{cyan}}
19653 \end_layout
19654
19655 \end_inset
19656
19657
19658 \end_layout
19659
19660 \begin_layout Standard
19661 \begin_inset Flex Multiple Columns
19662 status open
19663
19664 \begin_layout Plain Layout
19665
19666 \size small
19667 \begin_inset Quotes eld
19668 \end_inset
19669
19670 You're surprised to see me,
19671  sir,
19672 \begin_inset Quotes erd
19673 \end_inset
19674
19675  said he,
19676  in a strange,
19677  croaking voice.
19678 \end_layout
19679
19680 \begin_layout Plain Layout
19681
19682 \size small
19683 I acknowledged that I was.
19684 \end_layout
19685
19686 \begin_layout Plain Layout
19687
19688 \size small
19689 \begin_inset Quotes eld
19690 \end_inset
19691
19692 Well,
19693  I've a conscience,
19694  sir,
19695  and when I chanced to see you go into this house,
19696  as I came hobbling after you,
19697  I thought to myself,
19698  I'll just step in and see that kind gentleman,
19699  and tell him that if I was a bit gruff in my manner there was not any harm meant,
19700  and that I am much obliged to him for picking up my books.
19701 \begin_inset Quotes erd
19702 \end_inset
19703
19704
19705 \end_layout
19706
19707 \begin_layout Plain Layout
19708
19709 \size small
19710 \begin_inset Quotes eld
19711 \end_inset
19712
19713 You make too much of a trifle,
19714 \begin_inset Quotes erd
19715 \end_inset
19716
19717  said I.
19718  
19719 \begin_inset Quotes eld
19720 \end_inset
19721
19722 May I ask how you knew who I was?
19723 \begin_inset Quotes erd
19724 \end_inset
19725
19726
19727 \end_layout
19728
19729 \begin_layout Plain Layout
19730
19731 \size small
19732 \begin_inset Quotes eld
19733 \end_inset
19734
19735 Well,
19736  sir,
19737  if it isn't too great a liberty,
19738  I am a neighbour of yours,
19739  for you'll find my little bookshop at the corner of Church Street,
19740  and very happy to see you,
19741  I am sure.
19742  Maybe you collect yourself,
19743  sir.
19744  Here's 
19745 \noun on
19746 British
19747 \begin_inset space ~
19748 \end_inset
19749
19750 Birds
19751 \noun default
19752 ,
19753  and 
19754 \noun on
19755 Catullus
19756 \noun default
19757 ,
19758  and 
19759 \noun on
19760 The Holy War
19761 \noun default
19762
19763 \begin_inset space ~
19764 \end_inset
19765
19766 – a bargain,
19767  every one of them.
19768  With five volumes you could just fill that gap on that second shelf.
19769  It looks untidy,
19770  does it not,
19771  sir?
19772 \begin_inset Quotes erd
19773 \end_inset
19774
19775
19776 \end_layout
19777
19778 \end_inset
19779
19780
19781 \end_layout
19782
19783 \begin_layout Standard
19784 \begin_inset ERT
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788
19789
19790 \backslash
19791 setlength{
19792 \backslash
19793 columnseprule}{0pt}
19794 \end_layout
19795
19796 \begin_layout Plain Layout
19797
19798
19799 \backslash
19800 renewcommand{
19801 \backslash
19802 columnseprulecolor}{
19803 \backslash
19804 normalcolor}
19805 \end_layout
19806
19807 \end_inset
19808
19809
19810 \begin_inset Note Note
19811 status collapsed
19812
19813 \begin_layout Plain Layout
19814
19815 \lang english
19816 go back to the default
19817 \end_layout
19818
19819 \end_inset
19820
19821
19822 \end_layout
19823
19824 \begin_layout Section
19825 段落様式
19826 \end_layout
19827
19828 \begin_layout Subsection
19829 任意の段落形
19830 \end_layout
19831
19832 \begin_layout Standard
19833 \noindent
19834 \SpecialChar LaTeX
19835 は,
19836 他のテキストプロセッサと同様に,
19837 既定で長方形の段落を使用します.しかし,
19838 例えば,
19839 ポスターや招待状,
19840 詩などの特殊な場合には,
19841 段落の形を好きなように変えることができます.このモジュールは,
19842
19843 \family sans
19844 shapepar
19845 \family default
19846 パッケージを使用して,
19847 1ダースを超える段落形を提供するだけでなく,
19848 好みの形を定義するコマンドを提供します.
19849 \end_layout
19850
19851 \begin_layout Subsubsection
19852 既定の形
19853 \end_layout
19854
19855 \begin_layout Standard
19856
19857 \series bold
19858 shapepar
19859 \series default
19860 は,
19861 以下の形を提供しています.
19862 \end_layout
19863
19864 \begin_layout Standard
19865 \begin_inset Tabular
19866 <lyxtabular version="3" rows="13" columns="3">
19867 <features booktabs="true" islongtable="true" longtabularalignment="center">
19868 <column alignment="left" valignment="middle" width="16col%">
19869 <column alignment="left" valignment="middle" width="40col%">
19870 <column alignment="left" valignment="middle" width="35col%">
19871 <row endhead="true">
19872 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19873 \begin_inset Text
19874
19875 \begin_layout Plain Layout
19876 名称
19877 \end_layout
19878
19879 \end_inset
19880 </cell>
19881 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19882 \begin_inset Text
19883
19884 \begin_layout Plain Layout
19885 説明
19886 \end_layout
19887
19888 \end_inset
19889 </cell>
19890 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19891 \begin_inset Text
19892
19893 \begin_layout Plain Layout
19894 備考
19895 \end_layout
19896
19897 \end_inset
19898 </cell>
19899 </row>
19900 <row interlinespace="default">
19901 <cell alignment="left" valignment="top" topline="true" usebox="none">
19902 \begin_inset Text
19903
19904 \begin_layout Plain Layout
19905 CDlabel
19906 \end_layout
19907
19908 \end_inset
19909 </cell>
19910 <cell alignment="left" valignment="top" usebox="none">
19911 \begin_inset Text
19912
19913 \begin_layout Plain Layout
19914 丸い穴の開いたドーナツ型(CD/DVD大)
19915 \end_layout
19916
19917 \end_inset
19918 </cell>
19919 <cell alignment="left" valignment="top" topline="true" usebox="none">
19920 \begin_inset Text
19921
19922 \begin_layout Plain Layout
19923 伸縮不可.多くの文字を入れられないことに注意.
19924 \end_layout
19925
19926 \end_inset
19927 </cell>
19928 </row>
19929 <row interlinespace="default">
19930 <cell alignment="left" valignment="top" usebox="none">
19931 \begin_inset Text
19932
19933 \begin_layout Plain Layout
19934 Circle
19935 \end_layout
19936
19937 \end_inset
19938 </cell>
19939 <cell alignment="left" valignment="top" usebox="none">
19940 \begin_inset Text
19941
19942 \begin_layout Plain Layout
19943
19944 \end_layout
19945
19946 \end_inset
19947 </cell>
19948 <cell alignment="left" valignment="top" usebox="none">
19949 \begin_inset Text
19950
19951 \begin_layout Plain Layout
19952 脆弱.計算に失敗することも.
19953 \end_layout
19954
19955 \end_inset
19956 </cell>
19957 </row>
19958 <row interlinespace="default">
19959 <cell alignment="left" valignment="top" usebox="none">
19960 \begin_inset Text
19961
19962 \begin_layout Plain Layout
19963 Diamond
19964 \end_layout
19965
19966 \end_inset
19967 </cell>
19968 <cell alignment="left" valignment="top" usebox="none">
19969 \begin_inset Text
19970
19971 \begin_layout Plain Layout
19972 菱形(シンボル的に
19973 \begin_inset Quotes eld
19974 \end_inset
19975
19976 diamond
19977 \begin_inset Quotes erd
19978 \end_inset
19979
19980 と表記)
19981 \end_layout
19982
19983 \end_inset
19984 </cell>
19985 <cell alignment="left" valignment="top" usebox="none">
19986 \begin_inset Text
19987
19988 \begin_layout Plain Layout
19989 -
19990 \end_layout
19991
19992 \end_inset
19993 </cell>
19994 </row>
19995 <row interlinespace="default">
19996 <cell alignment="left" valignment="top" usebox="none">
19997 \begin_inset Text
19998
19999 \begin_layout Plain Layout
20000 Heart
20001 \end_layout
20002
20003 \end_inset
20004 </cell>
20005 <cell alignment="left" valignment="top" usebox="none">
20006 \begin_inset Text
20007
20008 \begin_layout Plain Layout
20009 ハート型
20010 \end_layout
20011
20012 \end_inset
20013 </cell>
20014 <cell alignment="left" valignment="top" usebox="none">
20015 \begin_inset Text
20016
20017 \begin_layout Plain Layout
20018 -
20019 \end_layout
20020
20021 \end_inset
20022 </cell>
20023 </row>
20024 <row interlinespace="default">
20025 <cell alignment="left" valignment="top" usebox="none">
20026 \begin_inset Text
20027
20028 \begin_layout Plain Layout
20029 Hexagon
20030 \end_layout
20031
20032 \end_inset
20033 </cell>
20034 <cell alignment="left" valignment="top" usebox="none">
20035 \begin_inset Text
20036
20037 \begin_layout Plain Layout
20038 六角形
20039 \end_layout
20040
20041 \end_inset
20042 </cell>
20043 <cell alignment="left" valignment="top" usebox="none">
20044 \begin_inset Text
20045
20046 \begin_layout Plain Layout
20047 -
20048 \end_layout
20049
20050 \end_inset
20051 </cell>
20052 </row>
20053 <row interlinespace="default">
20054 <cell alignment="left" valignment="top" usebox="none">
20055 \begin_inset Text
20056
20057 \begin_layout Plain Layout
20058 Nut
20059 \end_layout
20060
20061 \end_inset
20062 </cell>
20063 <cell alignment="left" valignment="top" usebox="none">
20064 \begin_inset Text
20065
20066 \begin_layout Plain Layout
20067 ナット型(丸い穴の開いた六角形)
20068 \end_layout
20069
20070 \end_inset
20071 </cell>
20072 <cell alignment="left" valignment="top" usebox="none">
20073 \begin_inset Text
20074
20075 \begin_layout Plain Layout
20076 -
20077 \end_layout
20078
20079 \end_inset
20080 </cell>
20081 </row>
20082 <row interlinespace="default">
20083 <cell alignment="left" valignment="top" usebox="none">
20084 \begin_inset Text
20085
20086 \begin_layout Plain Layout
20087 Square
20088 \end_layout
20089
20090 \end_inset
20091 </cell>
20092 <cell alignment="left" valignment="top" usebox="none">
20093 \begin_inset Text
20094
20095 \begin_layout Plain Layout
20096 正方形
20097 \end_layout
20098
20099 \end_inset
20100 </cell>
20101 <cell alignment="left" valignment="top" usebox="none">
20102 \begin_inset Text
20103
20104 \begin_layout Plain Layout
20105 -
20106 \end_layout
20107
20108 \end_inset
20109 </cell>
20110 </row>
20111 <row interlinespace="default">
20112 <cell alignment="left" valignment="top" usebox="none">
20113 \begin_inset Text
20114
20115 \begin_layout Plain Layout
20116 Star
20117 \end_layout
20118
20119 \end_inset
20120 </cell>
20121 <cell alignment="left" valignment="top" usebox="none">
20122 \begin_inset Text
20123
20124 \begin_layout Plain Layout
20125 五芒星
20126 \end_layout
20127
20128 \end_inset
20129 </cell>
20130 <cell alignment="left" valignment="top" usebox="none">
20131 \begin_inset Text
20132
20133 \begin_layout Plain Layout
20134 -
20135 \end_layout
20136
20137 \end_inset
20138 </cell>
20139 </row>
20140 <row interlinespace="default">
20141 <cell alignment="left" valignment="top" usebox="none">
20142 \begin_inset Text
20143
20144 \begin_layout Plain Layout
20145 Candle
20146 \end_layout
20147
20148 \end_inset
20149 </cell>
20150 <cell alignment="left" valignment="top" usebox="none">
20151 \begin_inset Text
20152
20153 \begin_layout Plain Layout
20154 燃えるろうそく
20155 \end_layout
20156
20157 \end_inset
20158 </cell>
20159 <cell alignment="left" valignment="top" usebox="none">
20160 \begin_inset Text
20161
20162 \begin_layout Plain Layout
20163 -
20164 \end_layout
20165
20166 \end_inset
20167 </cell>
20168 </row>
20169 <row interlinespace="default">
20170 <cell alignment="left" valignment="top" usebox="none">
20171 \begin_inset Text
20172
20173 \begin_layout Plain Layout
20174 Drop down/up
20175 \end_layout
20176
20177 \end_inset
20178 </cell>
20179 <cell alignment="left" valignment="top" usebox="none">
20180 \begin_inset Text
20181
20182 \begin_layout Plain Layout
20183 雫型/逆雫型
20184 \end_layout
20185
20186 \end_inset
20187 </cell>
20188 <cell alignment="left" valignment="top" usebox="none">
20189 \begin_inset Text
20190
20191 \begin_layout Plain Layout
20192 脆弱.計算に失敗することも.
20193 \end_layout
20194
20195 \end_inset
20196 </cell>
20197 </row>
20198 <row interlinespace="default">
20199 <cell alignment="left" valignment="top" usebox="none">
20200 \begin_inset Text
20201
20202 \begin_layout Plain Layout
20203 \SpecialChar TeX
20204
20205 \end_layout
20206
20207 \end_inset
20208 </cell>
20209 <cell alignment="left" valignment="top" usebox="none">
20210 \begin_inset Text
20211
20212 \begin_layout Plain Layout
20213 \SpecialChar TeX
20214 ロゴ
20215 \end_layout
20216
20217 \end_inset
20218 </cell>
20219 <cell alignment="left" valignment="top" usebox="none">
20220 \begin_inset Text
20221
20222 \begin_layout Plain Layout
20223 -
20224 \end_layout
20225
20226 \end_inset
20227 </cell>
20228 </row>
20229 <row interlinespace="default">
20230 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
20231 \begin_inset Text
20232
20233 \begin_layout Plain Layout
20234 Triangle up/down/
20235 \begin_inset Newline newline
20236 \end_inset
20237
20238 left/right
20239 \end_layout
20240
20241 \end_inset
20242 </cell>
20243 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
20244 \begin_inset Text
20245
20246 \begin_layout Plain Layout
20247 各方向の三角形
20248 \end_layout
20249
20250 \end_inset
20251 </cell>
20252 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
20253 \begin_inset Text
20254
20255 \begin_layout Plain Layout
20256 -
20257 \end_layout
20258
20259 \end_inset
20260 </cell>
20261 </row>
20262 </lyxtabular>
20263
20264 \end_inset
20265
20266
20267 \end_layout
20268
20269 \begin_layout Standard
20270 段落に形を適用するには,
20271 \SpecialChar LyX
20272 ツールバー中の環境プルダウンボックスから形を選んでください.
20273 \end_layout
20274
20275 \begin_layout Standard
20276 \begin_inset Newpage newpage
20277 \end_inset
20278
20279
20280 \end_layout
20281
20282 \begin_layout Standard
20283 以下は,
20284 ナット型の段落の例です.
20285 \end_layout
20286
20287 \begin_layout Standard
20288 \begin_inset VSpace bigskip
20289 \end_inset
20290
20291
20292 \end_layout
20293
20294 \begin_layout Nut
20295
20296 \lang latin
20297 Lorem ipsum dolor sit amet,
20298  consetetur sadipscing elitr,
20299  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20300  sed diam voluptua.
20301  At vero eos et accusam et justo duo dolores et ea rebum.
20302  Stet clita kasd gubergren,
20303  no sea takimata sanctus est Lorem ipsum dolor sit amet.
20304  Lorem ipsum dolor sit amet,
20305  consetetur sadipscing elitr,
20306  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20307  sed diam voluptua.
20308 \end_layout
20309
20310 \begin_layout Standard
20311 \begin_inset VSpace bigskip
20312 \end_inset
20313
20314
20315 \end_layout
20316
20317 \begin_layout Standard
20318 \begin_inset Note Greyedout
20319 status open
20320
20321 \begin_layout Plain Layout
20322
20323 \series bold
20324 [註]
20325 \family sans
20326 \series default
20327 shapepar
20328 \family default
20329 段落は改頁にまたがることはできません.
20330 \end_layout
20331
20332 \end_inset
20333
20334
20335 \end_layout
20336
20337 \begin_layout Standard
20338 \begin_inset VSpace bigskip
20339 \end_inset
20340
20341
20342 \end_layout
20343
20344 \begin_layout Standard
20345 \begin_inset Flex Code
20346 status collapsed
20347
20348 \begin_layout Plain Layout
20349 shapepar
20350 \end_layout
20351
20352 \end_inset
20353
20354 は,
20355 段落中にどれだけ文章が含まれようとも,
20356 常に形を維持しようとします.したがって,
20357 段落の大きさは,
20358 含まれている文章量によって変化しますので,
20359 段落の大きさがページ余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,
20360 文章量を二倍にした例を見てみましょう.
20361 \end_layout
20362
20363 \begin_layout Standard
20364 \begin_inset Newpage newpage
20365 \end_inset
20366
20367
20368 \end_layout
20369
20370 \begin_layout Nut
20371
20372 \lang latin
20373 Lorem ipsum dolor sit amet,
20374  consetetur sadipscing elitr,
20375  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20376  sed diam voluptua.
20377  At vero eos et accusam et justo duo dolores et ea rebum.
20378  Stet clita kasd gubergren,
20379  no sea takimata sanctus est Lorem ipsum dolor sit amet.
20380  Lorem ipsum dolor sit amet,
20381  consetetur sadipscing elitr,
20382  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20383  sed diam voluptua.
20384  Lorem ipsum dolor sit amet,
20385  consetetur sadipscing elitr,
20386  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20387  sed diam voluptua.
20388  At vero eos et accusam et justo duo dolores et ea rebum.
20389  Stet clita kasd gubergren,
20390  no sea takimata sanctus est Lorem ipsum dolor sit amet.
20391  Lorem ipsum dolor sit amet,
20392  consetetur sadipscing elitr,
20393  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20394  sed diam voluptua.
20395 \end_layout
20396
20397 \begin_layout Standard
20398 \begin_inset VSpace bigskip
20399 \end_inset
20400
20401
20402 \end_layout
20403
20404 \begin_layout Standard
20405 ただし,
20406
20407 \family sans
20408 CDlabel
20409 \family default
20410 形は例外です.これは,
20411 CD/DVDの寸法に収まらなくてはならないので,
20412 伸縮しません.したがって,
20413 形に収まる文章量は限られています.
20414 \begin_inset Newline newline
20415 \end_inset
20416
20417
20418 \family sans
20419 drop
20420 \family default
20421 形と
20422 \family sans
20423 circle
20424 \family default
20425 形は脆弱で,
20426 文章量によっては寸法計算が失敗する可能性があります.この場合,
20427
20428 \begin_inset Quotes eld
20429 \end_inset
20430
20431 Arithmetic overflow
20432 \begin_inset Quotes erd
20433 \end_inset
20434
20435 という\SpecialChar LaTeX
20436 エラーが発生します.この時は,
20437 文章の一部を追加したり削除したりするか,
20438 どれもうまくいかなければ別の形を使用してください.
20439 \end_layout
20440
20441 \begin_layout Standard
20442 \begin_inset VSpace bigskip
20443 \end_inset
20444
20445
20446 \end_layout
20447
20448 \begin_layout Standard
20449 先端のある形では,
20450 先端部の文字列で,
20451 \SpecialChar LaTeX
20452 のハイフネーションルーチンが失敗することがあります.したがって,
20453 この部分の文章には,
20454 ハイフネーション位置
20455 \family sans
20456
20457 \begin_inset Info
20458 type  "shortcut"
20459 arg   "specialchar-insert hyphenation"
20460 \end_inset
20461
20462
20463 \family default
20464 )を指定することが往々にして必要になります.
20465 \end_layout
20466
20467 \begin_layout Standard
20468 \begin_inset VSpace bigskip
20469 \end_inset
20470
20471
20472 \end_layout
20473
20474 \begin_layout Standard
20475 Shapepar段落は,
20476 常に中央揃えか,
20477 左の縁が左ページ余白に接するように配置されます.したがって,
20478 これらの段落を揃えるのに段落ダイアログを使用することはできません.解決方法としては,
20479 段落をミニページかparboxの中において,
20480 このボックスを揃えることです.ここでの問題は,
20481 ボックスの正しい幅を見出すことです.もしボックスの幅が広すぎれば,
20482 ボックスを中央揃えにしたとしても,
20483 ボックスの左側が付いてしまうので中央揃えになりません.そこで,
20484 正しい幅を見出すまでは,
20485 若干試行錯誤しなくてはならないかもしれません.以下は,
20486 二つのハート形の段落です.一つ目は揃え指定がなく,
20487 二つ目は右揃えにしてあります.
20488 \end_layout
20489
20490 \begin_layout Standard
20491 \begin_inset Newpage newpage
20492 \end_inset
20493
20494
20495 \end_layout
20496
20497 \begin_layout Heart
20498 \noindent
20499
20500 \lang latin
20501 Lo\SpecialChar softhyphen
20502 rem ipsum dolor sit amet,
20503  consetetur sadipscing elitr,
20504  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20505  sed diam voluptua.
20506  At vero eos et accusam et justo duo dolores et ea rebum.
20507  Stet clita kasd gubergren,
20508  no sea takimata sanctus est Lorem ipsum dolor sit amet.
20509 \end_layout
20510
20511 \begin_layout Standard
20512 \begin_inset VSpace bigskip
20513 \end_inset
20514
20515
20516 \end_layout
20517
20518 \begin_layout Standard
20519 \noindent
20520 \align right
20521 \begin_inset Box Frameless
20522 position "t"
20523 hor_pos "c"
20524 has_inner_box 1
20525 inner_pos "t"
20526 use_parbox 1
20527 use_makebox 0
20528 width "42col%"
20529 special "none"
20530 height "1in"
20531 height_special "totalheight"
20532 thickness "0.4pt"
20533 separation "3pt"
20534 shadowsize "4pt"
20535 framecolor "black"
20536 backgroundcolor "none"
20537 status open
20538
20539 \begin_layout Heart
20540 \noindent
20541
20542 \lang latin
20543 Lo\SpecialChar softhyphen
20544 rem ipsum dolor sit amet,
20545  consetetur sadipscing elitr,
20546  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20547  sed diam voluptua.
20548  At vero eos et accusam et justo duo dolores et ea rebum.
20549  Stet clita kasd gubergren,
20550  no sea takimata sanctus est Lorem ipsum dolor sit amet.
20551 \end_layout
20552
20553 \end_inset
20554
20555
20556 \end_layout
20557
20558 \begin_layout Subsubsection
20559 任意の形
20560 \end_layout
20561
20562 \begin_layout Standard
20563 ユーザーは,
20564 どのような形であれ,
20565 定義することができます.これを手動で行うのは,
20566 全ての座標を指定しなくてはならないので,
20567 かなりの労力を必要とします.しかし,
20568 以下のように,
20569 コンピューターに座標を計算させる方法もあります.
20570 \end_layout
20571
20572 \begin_layout Enumerate
20573 プログラム
20574 \begin_inset CommandInset href
20575 LatexCommand href
20576 name "Jpgfdraw"
20577 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
20578 literal "false"
20579
20580 \end_inset
20581
20582 を導入します.
20583 \end_layout
20584
20585 \begin_layout Enumerate
20586
20587 \family sans
20588 Jpgfdraw
20589 \family default
20590 内で,
20591
20592 \family sans
20593 TeX/LaTeX\SpecialChar menuseparator
20594 Settings\SpecialChar menuseparator
20595 Set Normal Size
20596 \family default
20597
20598 \begin_inset space \thinspace{}
20599 \end_inset
20600
20601 メニューで文書中で使用しているフォント寸法を選択します.例えば,
20602 この文書は12
20603 \begin_inset space \thinspace{}
20604 \end_inset
20605
20606 ptを使用しています.
20607 \end_layout
20608
20609 \begin_layout Enumerate
20610 形を描きます.
20611 \end_layout
20612
20613 \begin_layout Enumerate
20614
20615 \family sans
20616 TeX/LaTeX\SpecialChar menuseparator
20617 Shapepar
20618 \family default
20619
20620 \begin_inset space \thinspace{}
20621 \end_inset
20622
20623 メニューを使用して,
20624 形の座標をエクスポートします.現れるダイアログで,
20625 形の外枠を座標に使うか,
20626 パス自体を使うかを指定します.
20627 \begin_inset Foot
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 詳細については,
20632
20633 \begin_inset CommandInset href
20634 LatexCommand href
20635 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
20636 literal "false"
20637
20638 \end_inset
20639
20640 を参照してください.
20641 \end_layout
20642
20643 \end_inset
20644
20645
20646 \end_layout
20647
20648 \begin_layout Standard
20649 座標は\SpecialChar TeX
20650 ファイルに書き込まれます.これを\SpecialChar LyX
20651 文書で使用するには,
20652
20653 \end_layout
20654
20655 \begin_layout Enumerate
20656 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
20657 \end_layout
20658
20659 \begin_layout Enumerate
20660 \SpecialChar LyX
20661
20662 \family sans
20663 \series bold
20664 の挿入\SpecialChar menuseparator
20665 ファイル\SpecialChar menuseparator
20666 子文書
20667 \family default
20668 \series default
20669
20670 \begin_inset space \thinspace{}
20671 \end_inset
20672
20673 メニューでファイルを選択し,
20674
20675 \family sans
20676 \series bold
20677 取り込みの型
20678 \family default
20679 \series default
20680 として
20681 \family sans
20682 Input
20683 \family default
20684 を選択してください.
20685 \end_layout
20686
20687 \begin_layout Standard
20688 \begin_inset VSpace defskip
20689 \end_inset
20690
20691
20692 \end_layout
20693
20694 \begin_layout Standard
20695 \begin_inset Note Greyedout
20696 status open
20697
20698 \begin_layout Plain Layout
20699
20700 \series bold
20701 [註]
20702 \series default
20703 変更した形は,
20704 現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,
20705 段落定義ファイルは,
20706 形を変えたい段落全てで読み込まれなくてはなりません.
20707 \end_layout
20708
20709 \end_inset
20710
20711
20712 \end_layout
20713
20714 \begin_layout Standard
20715 \begin_inset VSpace bigskip
20716 \end_inset
20717
20718
20719 \end_layout
20720
20721 \begin_layout Standard
20722 以下の用例をご覧ください.
20723 \end_layout
20724
20725 \begin_layout Standard
20726 \begin_inset VSpace bigskip
20727 \end_inset
20728
20729
20730 \end_layout
20731
20732 \begin_layout Standard
20733 \begin_inset CommandInset include
20734 LatexCommand input
20735 filename "../SpecialParagraphShape.tex"
20736 literal "true"
20737
20738 \end_inset
20739
20740
20741 \lang latin
20742 Lorem ipsum dolor sit amet,
20743  consetetur sadipscing elitr,
20744  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20745  sed diam voluptua.
20746  At vero eos et accusam et justo duo dolores et ea rebum.
20747  Stet clita kasd gubergren,
20748  no sea takimata sanctus est Lorem ipsum dolor sit amet.
20749  Lorem ipsum dolor sit amet,
20750  consetetur sadipscing elitr,
20751  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20752  sed diam voluptua.
20753 \end_layout
20754
20755 \begin_layout Standard
20756 \begin_inset VSpace bigskip
20757 \end_inset
20758
20759
20760 \end_layout
20761
20762 \begin_layout Standard
20763
20764 \series bold
20765 【ヒント】
20766 \family sans
20767 \series default
20768 Jpgfdraw
20769 \family default
20770 で複雑な形を描く場合,
20771 まず形を好きなプログラムで描き,
20772 出来上がった画像を
20773 \family sans
20774 Jpgfdraw
20775 \family default
20776 に読み込む方法があります.この場合,
20777 画像の外枠に沿って,
20778 直線またはスプラインを描くだけですみます.
20779 \end_layout
20780
20781 \begin_layout Standard
20782 \begin_inset VSpace bigskip
20783 \end_inset
20784
20785
20786 \end_layout
20787
20788 \begin_layout Standard
20789
20790 \family sans
20791 \series bold
20792 任意の段落形
20793 \family default
20794 \series default
20795 モジュールは,
20796
20797 \family sans
20798 shapepar
20799 \family default
20800
20801 \family sans
20802 Shapepar
20803 \family default
20804 の二つのコマンドも提供していて,
20805 任意の形を座標毎に定義するのに使用することができます.
20806 \begin_inset Foot
20807 status collapsed
20808
20809 \begin_layout Plain Layout
20810 これらのコマンドは,
20811 上述の全ての形で内部的に使用されています.
20812 \end_layout
20813
20814 \end_inset
20815
20816 これらのスタイルがどのように使われていて,
20817 どのような設定ができるのかについての詳しい情報は,
20818
20819 \begin_inset Flex Code
20820 status collapsed
20821
20822 \begin_layout Plain Layout
20823 shapepar
20824 \end_layout
20825
20826 \end_inset
20827
20828 パッケージの
20829 \begin_inset CommandInset href
20830 LatexCommand href
20831 name "解説文書"
20832 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
20833 literal "false"
20834
20835 \end_inset
20836
20837 をご覧ください.
20838 \end_layout
20839
20840 \begin_layout Subsection
20841 ぶら下げ段落
20842 \end_layout
20843
20844 \begin_layout Hanging
20845 このモジュールは,
20846
20847 \family sans
20848 \series bold
20849 ぶら下げ
20850 \family default
20851 \series default
20852 段落様式,
20853 すなわち段落の第1行以外はすべて字下げする段落様式を追加します.これは,
20854 \SpecialChar LyX
20855 文書中には反映しない可能性もありますが,
20856 出力には反映されます.
20857 \end_layout
20858
20859 \begin_layout Subsection
20860 頭文字(ドロップキャップ)
20861 \begin_inset CommandInset label
20862 LatexCommand label
20863 name "subsec:頭文字"
20864
20865 \end_inset
20866
20867
20868 \end_layout
20869
20870 \begin_layout Initial
20871 \begin_inset Argument 2
20872 status open
20873
20874 \begin_layout Plain Layout
20875
20876 \end_layout
20877
20878 \end_inset
20879
20880
20881 \begin_inset Argument 3
20882 status open
20883
20884 \begin_layout Plain Layout
20885
20886 \end_layout
20887
20888 \end_inset
20889
20890 モジュールは,
20891 ドロップキャピタル段落様式である
20892 \family sans
20893 \series bold
20894 頭文字
20895 \family default
20896 \series default
20897 段落環境を追加します.これを用いれば,
20898 望む場所をドロップキャピタルにすることができます.すると,
20899
20900 \family sans
20901 \series bold
20902 挿入
20903 \family default
20904 \series default
20905 メニューに以下の3つの項目が追加されます.
20906 \end_layout
20907
20908 \begin_layout Description
20909
20910 \family sans
20911 \series bold
20912 頭文字
20913 \family default
20914 \series default
20915  ドロップキャピタル用の差込枠
20916 \end_layout
20917
20918 \begin_layout Description
20919
20920 \family sans
20921 \series bold
20922 頭文字の残り
20923 \family default
20924 \series default
20925  ドロップキャピタル化する単語の残り部分
20926 \end_layout
20927
20928 \begin_layout Description
20929
20930 \family sans
20931 \series bold
20932 オプション
20933 \family default
20934 \series default
20935  ドロップキャピタルの整形オプション
20936 \end_layout
20937
20938 \begin_layout Standard
20939 様式の見た目を調整するには,
20940
20941 \family sans
20942 \series bold
20943 ヘルプ\SpecialChar menuseparator
20944 埋込オブジェクト篇\SpecialChar menuseparator
20945 本文回り込みオブジェクト\SpecialChar menuseparator
20946 頭文字
20947 \family default
20948 \series default
20949
20950 \begin_inset space \thinspace{}
20951 \end_inset
20952
20953 を参照してください.
20954 \end_layout
20955
20956 \begin_layout Section
20957 テキストマークアップ
20958 \end_layout
20959
20960 \begin_layout Subsection
20961 ハイフネート可能なテキストマークアップ
20962 \end_layout
20963
20964 \begin_layout Standard
20965 このパッケージは,
20966
20967 \family sans
20968 soul
20969 \family default
20970 パッケージを使って,
20971 ハイライトしたり均等配置したり,
20972 打消線や下線を引いたり,
20973 大文字化/スモールキャップ化したりするための文辞様式を定義します.文辞特性ダイアログで提供されるマークアップと違い,
20974
20975 \family sans
20976 soul
20977 \family default
20978 でマークアップされる単語はハイフネートされます.
20979 \begin_inset CommandInset href
20980 LatexCommand href
20981 name "soul 解説文書"
20982 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
20983 literal "false"
20984
20985 \end_inset
20986
20987 を参照してください.
20988 \end_layout
20989
20990 \begin_layout Subsection
20991 論理マークアップ
20992 \end_layout
20993
20994 \begin_layout Standard
20995 このモジュールは,
20996 論理マークアップ用にいくつかの文字様式(
20997 \begin_inset Flex Noun
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 名詞
21002 \end_layout
21003
21004 \end_inset
21005
21006
21007 \begin_inset Flex Emph
21008 status collapsed
21009
21010 \begin_layout Plain Layout
21011 強調
21012 \end_layout
21013
21014 \end_inset
21015
21016
21017 \begin_inset Flex Strong
21018 status collapsed
21019
21020 \begin_layout Plain Layout
21021 ストロング
21022 \end_layout
21023
21024 \end_inset
21025
21026
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031 コード
21032 \end_layout
21033
21034 \end_inset
21035
21036 )を定義します.これらは,
21037
21038 \family sans
21039 \series bold
21040 編集\SpecialChar menuseparator
21041 特別文辞様式
21042 \family default
21043 \series default
21044
21045 \begin_inset space \thinspace{}
21046 \end_inset
21047
21048 でアクセスできます.
21049 \end_layout
21050
21051 \begin_layout Chapter
21052 書誌情報
21053 \end_layout
21054
21055 \begin_layout Standard
21056 Bib\SpecialChar TeX
21057 あるいは
21058 \family sans
21059 Biblatex
21060 \family default
21061 の基本的な使用法は,
21062 『ユーザーの手引き』の「文献データベース」の節に説明があります.以下の各小節では,
21063 \SpecialChar LyX
21064 でサポートされている書誌情報の特別な機能について説明することとします.
21065 \end_layout
21066
21067 \begin_layout Section
21068 他の引用様式
21069 \end_layout
21070
21071 \begin_layout Standard
21072 標準のBib\SpecialChar TeX
21073 は,
21074 引用された著作を参照するのに,
21075 ([12]のように)数字を使用します.しかし,
21076 多くの科学分野で,
21077 これとは異なる引用様式が用いられています.もっともよく見られるのは,
21078 著者-出版年様式(例:
21079 Knuth 1984a)です.\SpecialChar LyX
21080 は,
21081 この様式を提供する3つのパッケージ
21082 \begin_inset Flex Code
21083 status collapsed
21084
21085 \begin_layout Plain Layout
21086 biblatex
21087 \end_layout
21088
21089 \end_inset
21090
21091
21092 \begin_inset Flex Code
21093 status collapsed
21094
21095 \begin_layout Plain Layout
21096 natbib
21097 \end_layout
21098
21099 \end_inset
21100
21101
21102 \begin_inset Flex Code
21103 status collapsed
21104
21105 \begin_layout Plain Layout
21106 jurabib
21107 \end_layout
21108
21109 \end_inset
21110
21111 をサポートしています.これらのパッケージには,
21112 それぞれ長所短所がありますが,
21113 ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)様式が欲しい場合や,
21114 無数にある
21115 \begin_inset Flex Code
21116 status collapsed
21117
21118 \begin_layout Plain Layout
21119 natbib
21120 \end_layout
21121
21122 \end_inset
21123
21124 用スタイルファイルのうちどれかを使用したい場合には,
21125 定評のある
21126 \begin_inset Flex Code
21127 status collapsed
21128
21129 \begin_layout Plain Layout
21130 natbib
21131 \end_layout
21132
21133 \end_inset
21134
21135 パッケージがおそらくよい選択でしょう.法学でよく用いられる引用様式を探している場合には,
21136
21137 \begin_inset Flex Code
21138 status collapsed
21139
21140 \begin_layout Plain Layout
21141 jurabib
21142 \end_layout
21143
21144 \end_inset
21145
21146 パッケージの利用を考えるとよいかもしれません.整形を完全に制御したい場合や,
21147 ibidem・脚註引用・タイトル全引用・400 BCなどの)複雑な日時形式・英語以外への完全な現地語化のような複雑な機能を使用したい場合には,
21148 機能面で他のパッケージを凌駕している
21149 \begin_inset Flex Code
21150 status collapsed
21151
21152 \begin_layout Plain Layout
21153 biblatex
21154 \end_layout
21155
21156 \end_inset
21157
21158 をぜひとも考えるべきでしょう.ただし,
21159 同時に
21160 \begin_inset Flex Code
21161 status collapsed
21162
21163 \begin_layout Plain Layout
21164 biblatex
21165 \end_layout
21166
21167 \end_inset
21168
21169 はたいへん重く,
21170 リソース消費量も多いことに注意してください.
21171 \end_layout
21172
21173 \begin_layout Standard
21174 \SpecialChar LyX
21175 での各パッケージの取扱い方は,
21176 ほぼ同じです.
21177 \begin_inset Flex MenuItem
21178 status collapsed
21179
21180 \begin_layout Plain Layout
21181 文書\SpecialChar menuseparator
21182 設定
21183 \end_layout
21184
21185 \end_inset
21186
21187 メニューを開き,
21188
21189 \begin_inset Flex MenuItem
21190 status collapsed
21191
21192 \begin_layout Plain Layout
21193 書誌情報
21194 \end_layout
21195
21196 \end_inset
21197
21198 項目から
21199 \begin_inset Flex Noun
21200 status collapsed
21201
21202 \begin_layout Plain Layout
21203 Biblatex
21204 \end_layout
21205
21206 \end_inset
21207
21208
21209 \begin_inset Flex Noun
21210 status collapsed
21211
21212 \begin_layout Plain Layout
21213 Biblatex (Natbibモード)
21214 \end_layout
21215
21216 \end_inset
21217
21218
21219 \begin_inset Flex Noun
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 Natbib (BibTeX)
21224 \end_layout
21225
21226 \end_inset
21227
21228
21229 \begin_inset Flex Noun
21230 status collapsed
21231
21232 \begin_layout Plain Layout
21233 Jurabib (BibTeX)
21234 \end_layout
21235
21236 \end_inset
21237
21238 のいずれかを選択してください(各選択肢についての詳細は,
21239 ユーザーの手引きの第6.5.3節を参照のこと).これらのパッケージによって,
21240 引用ダイアログに機能が追加され,
21241 参照の様式が選択できるようになります(「Knuth 1984」,
21242 「Knuth (1984)」,
21243 「Knuth,
21244  1984」,
21245 「1984」など).各パッケージは,
21246 専用にデザインされたスタイルファイルを必要とすることに注意してください.これらは全てそれ自身のスタイルファイルを同梱していますが,
21247 他にもたくさんの追加されたスタイルファイルがありますし,
21248
21249 \begin_inset Flex Code
21250 status collapsed
21251
21252 \begin_layout Plain Layout
21253 natbib
21254 \end_layout
21255
21256 \end_inset
21257
21258 に至っては,
21259 対話的なスタイルファイルビルダーさえ存在します
21260 \begin_inset Foot
21261 status collapsed
21262
21263 \begin_layout Plain Layout
21264 \begin_inset Flex URL
21265 status open
21266
21267 \begin_layout Plain Layout
21268
21269 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
21270 \end_layout
21271
21272 \end_inset
21273
21274 をご参照ください.
21275 \end_layout
21276
21277 \end_inset
21278
21279
21280 \end_layout
21281
21282 \begin_layout Section
21283 区分された書誌情報
21284 \end_layout
21285
21286 \begin_layout Standard
21287 場合によっては,
21288 書誌情報をいくつかの節に分ける必要があることがあります.たとえば,
21289 あなたが歴史家であるとすれば,
21290 出典と学術文献を分ける機能は,
21291 おそらく「必需品」でさえあります.残念ながら,
21292 Bib\SpecialChar TeX
21293 自身ではこのようなことができません.しかし,
21294 適切な\SpecialChar LaTeX
21295 パッケージの助けを借りると,
21296 Bib\SpecialChar TeX
21297 をこのような必要性を満たすように拡張することができます.
21298 \end_layout
21299
21300 \begin_layout Standard
21301 \SpecialChar LyX
21302 は,
21303 このようなパッケージの一つである
21304 \begin_inset Flex Code
21305 status collapsed
21306
21307 \begin_layout Plain Layout
21308 bibtopic
21309 \end_layout
21310
21311 \end_inset
21312
21313
21314 \begin_inset Foot
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318 \begin_inset Flex URL
21319 status open
21320
21321 \begin_layout Plain Layout
21322
21323 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
21324 \end_layout
21325
21326 \end_inset
21327
21328 から入手可能です.
21329 \end_layout
21330
21331 \end_inset
21332
21333 をそのままでサポートします.このパッケージの長所は,
21334
21335 \begin_inset Flex Code
21336 status collapsed
21337
21338 \begin_layout Plain Layout
21339 multibib
21340 \end_layout
21341
21342 \end_inset
21343
21344 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,
21345 書誌情報の違う節には,
21346 その節向けの項目を収録した別の文献データベースを用意する必要があります.たとえば,
21347 書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,
21348 それぞれの文献データベース,
21349 たとえば
21350 \begin_inset Flex Code
21351 status collapsed
21352
21353 \begin_layout Plain Layout
21354 souces.bib
21355 \end_layout
21356
21357 \end_inset
21358
21359
21360 \begin_inset Flex Code
21361 status collapsed
21362
21363 \begin_layout Plain Layout
21364 scientific.bib
21365 \end_layout
21366
21367 \end_inset
21368
21369 とを作成する必要があります.
21370 \end_layout
21371
21372 \begin_layout Standard
21373 \begin_inset Flex MenuItem
21374 status collapsed
21375
21376 \begin_layout Plain Layout
21377 文書\SpecialChar menuseparator
21378 設定
21379 \end_layout
21380
21381 \end_inset
21382
21383 を開いて
21384 \begin_inset Flex MenuItem
21385 status collapsed
21386
21387 \begin_layout Plain Layout
21388 書誌情報
21389 \end_layout
21390
21391 \end_inset
21392
21393 の下の
21394 \begin_inset Flex MenuItem
21395 status collapsed
21396
21397 \begin_layout Plain Layout
21398 区分された書誌情報
21399 \end_layout
21400
21401 \end_inset
21402
21403 をチェックしてください.すると,
21404 書誌情報の各節に一つずつ,
21405 複数の書誌情報を挿入することができます.上記の例では,
21406 Bib\SpecialChar TeX
21407 書誌情報
21408 \begin_inset Flex Code
21409 status collapsed
21410
21411 \begin_layout Plain Layout
21412 sources.bib
21413 \end_layout
21414
21415 \end_inset
21416
21417 と二つめの文献データベース
21418 \begin_inset Flex Code
21419 status collapsed
21420
21421 \begin_layout Plain Layout
21422 scientific.bib
21423 \end_layout
21424
21425 \end_inset
21426
21427 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,
21428 書誌情報の節に,
21429 指定したデータベースの「引用されたすべての参照」を載せる(これが既定です)か,
21430 「引用されなかったすべての参照」を載せるか,
21431 あるいは「すべての参照」を載せるかを選択することができます.これは,
21432 もし書誌情報を「本文に引用された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,
21433 便利でありましょう.各節の見出しは,
21434 通常の節や小節として入れることができます.
21435 \begin_inset Flex Code
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 bibtopic
21440 \end_layout
21441
21442 \end_inset
21443
21444 は,
21445 書誌情報用の見出しを取り除いてしまいますので,
21446 手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
21447 \end_layout
21448
21449 \begin_layout Standard
21450
21451 \family sans
21452 Biblatex
21453 \family default
21454 の場合には,
21455 手順が多少異なります.
21456 \family typewriter
21457 bibtopic
21458 \family default
21459
21460 \family sans
21461 Biblatex
21462 \family default
21463 では動作しませんので,
21464
21465 \family sans
21466 Biblatex
21467 \family default
21468 使用中は前述の
21469 \begin_inset Flex Noun
21470 status collapsed
21471
21472 \begin_layout Plain Layout
21473 区分された書誌情報
21474 \end_layout
21475
21476 \end_inset
21477
21478 オプションは無効になります.しかしながら,
21479
21480 \family sans
21481 Biblatex
21482 \family default
21483 は区分された書誌情報を生成する独自の方法を提供しています.書誌情報項目の
21484 \begin_inset Flex Code
21485 status collapsed
21486
21487 \begin_layout Plain Layout
21488 keywords
21489 \end_layout
21490
21491 \end_inset
21492
21493 項目オプションにキーワードを書き込み,
21494 書誌情報セクションをキーワードでフィルターに掛けることもできますし(
21495 \begin_inset Flex Noun
21496 status collapsed
21497
21498 \begin_layout Plain Layout
21499 Biblatexが生成した書誌情報
21500 \end_layout
21501
21502 \end_inset
21503
21504 ボタンを右クリックすると開くダイアログで,
21505
21506 \begin_inset Flex Noun
21507 status collapsed
21508
21509 \begin_layout Plain Layout
21510 オプション
21511 \end_layout
21512
21513 \end_inset
21514
21515 フィールドに
21516 \begin_inset Flex Code
21517 status collapsed
21518
21519 \begin_layout Plain Layout
21520 keyword=指定キーワード
21521 \end_layout
21522
21523 \end_inset
21524
21525 と書き込みます),
21526 あるいは,
21527 上述の
21528 \begin_inset Flex Noun
21529 status collapsed
21530
21531 \begin_layout Plain Layout
21532 オプション
21533 \end_layout
21534
21535 \end_inset
21536
21537 フィールドに,
21538 例えば
21539 \begin_inset Flex Code
21540 status collapsed
21541
21542 \begin_layout Plain Layout
21543 type=book
21544 \end_layout
21545
21546 \end_inset
21547
21548
21549 \begin_inset Flex Code
21550 status collapsed
21551
21552 \begin_layout Plain Layout
21553 nottype=collection
21554 \end_layout
21555
21556 \end_inset
21557
21558 と入力することで,
21559
21560 \emph on
21561 book
21562 \emph default
21563
21564 \emph on
21565 article
21566 \emph default
21567 などの)項目型によりフィルターを掛けることもできます.あるいは,
21568 各項目を割り当てるための,
21569 いわゆる「書誌情報カテゴリ」を作ることもできます.詳細については,
21570 Biblatex取扱説明書の
21571 \emph on
21572 区分された書誌情報
21573 \emph default
21574 の節をご参照ください.
21575 \end_layout
21576
21577 \begin_layout Section
21578 複数の書誌情報
21579 \begin_inset CommandInset label
21580 LatexCommand label
21581 name "subsec:複数の書誌情報"
21582
21583 \end_inset
21584
21585
21586 \end_layout
21587
21588 \begin_layout Standard
21589 各部・章・節・小節・子文書ごとの書誌情報など,
21590 複数の書誌情報も\SpecialChar LyX
21591 ではサポートされています.これを有効にするためには,
21592
21593 \begin_inset Flex Noun
21594 status collapsed
21595
21596 \begin_layout Plain Layout
21597 文書\SpecialChar menuseparator
21598 設定\SpecialChar menuseparator
21599 書誌情報
21600 \end_layout
21601
21602 \end_inset
21603
21604 を開き,
21605
21606 \begin_inset Flex Noun
21607 status collapsed
21608
21609 \begin_layout Plain Layout
21610 複数の書誌情報
21611 \end_layout
21612
21613 \end_inset
21614
21615 コンボボックスで必要な単位(「節毎」など)を選択してください.それから,
21616 執筆中文書の(節などの)各単位に,
21617 Bib(la)\SpecialChar TeX
21618 書誌情報を加えてください.出力時に,
21619 現在の単位に含まれる文献参照のみが含まれた,
21620 分割された書誌情報が生成されます.
21621 \end_layout
21622
21623 \begin_layout Standard
21624 Bib\SpecialChar TeX
21625 を使用する場合には,
21626 複数の書誌情報を生成するのに,
21627
21628 \begin_inset Flex Code
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632 chapterbib
21633 \end_layout
21634
21635 \end_inset
21636
21637 パッケージか
21638 \begin_inset Flex Code
21639 status collapsed
21640
21641 \begin_layout Plain Layout
21642 bibtopic
21643 \end_layout
21644
21645 \end_inset
21646
21647 パッケージが使用されます.「子文書毎」を選択し,
21648
21649 \begin_inset Flex Noun
21650 status collapsed
21651
21652 \begin_layout Plain Layout
21653 区分された書誌情報
21654 \end_layout
21655
21656 \end_inset
21657
21658 にチェックを入れ
21659 \emph on
21660 ない
21661 \emph default
21662 場合には,
21663 前者のパッケージが使用されますが,
21664 その他の場合には,
21665 すべて
21666 \begin_inset Flex Code
21667 status collapsed
21668
21669 \begin_layout Plain Layout
21670 bibtopic
21671 \end_layout
21672
21673 \end_inset
21674
21675 パッケージが使用されます
21676 \begin_inset Foot
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680 別のアプローチとして,
21681 もし
21682 \begin_inset Flex Noun
21683 status collapsed
21684
21685 \begin_layout Plain Layout
21686 \SpecialChar TeX
21687 コード
21688 \end_layout
21689
21690 \end_inset
21691
21692 を使っても良いという気があるならば(第
21693 \begin_inset CommandInset ref
21694 LatexCommand ref
21695 reference "sec:TeXコードを挿入する"
21696 plural "false"
21697 caps "false"
21698 noprefix "false"
21699 nolink "false"
21700
21701 \end_inset
21702
21703 節参照),
21704
21705 \begin_inset Flex Code
21706 status collapsed
21707
21708 \begin_layout Plain Layout
21709 bibunits
21710 \end_layout
21711
21712 \end_inset
21713
21714 パッケージを使用する方法があります.
21715 \end_layout
21716
21717 \end_inset
21718
21719
21720 \begin_inset Flex Code
21721 status collapsed
21722
21723 \begin_layout Plain Layout
21724 bibtopic
21725 \end_layout
21726
21727 \end_inset
21728
21729 パッケージが使用される場合,
21730 \SpecialChar LyX
21731 は特定の単位を生成するために,
21732 その単位を
21733 \begin_inset Flex Code
21734 status collapsed
21735
21736 \begin_layout Plain Layout
21737 bibtopic
21738 \end_layout
21739
21740 \end_inset
21741
21742
21743 \begin_inset Flex Code
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747
21748 \backslash
21749 begin{btUnit}
21750 \end_layout
21751
21752 \end_inset
21753
21754
21755 \begin_inset Flex Code
21756 status collapsed
21757
21758 \begin_layout Plain Layout
21759
21760 \backslash
21761 end{btUnit}
21762 \end_layout
21763
21764 \end_inset
21765
21766 で囲みます.このアプローチには,
21767 いくつかの制限があることに注意してください.まず,
21768 全ての文献参照はいずれかの
21769 \begin_inset Flex Code
21770 status collapsed
21771
21772 \begin_layout Plain Layout
21773 btUnit
21774 \end_layout
21775
21776 \end_inset
21777
21778 の中になくてはなりません.そのため,
21779 定義された単位の外にある引用(たとえば「節毎」を使用した場合の,
21780 第1節の前)は,
21781 「???」と表示されてしまいます.(このような制限を回避するなどのため)
21782 \begin_inset Flex Code
21783 status collapsed
21784
21785 \begin_layout Plain Layout
21786
21787 \backslash
21788 begin{btUnit}
21789 \end_layout
21790
21791 \end_inset
21792
21793
21794 \begin_inset Flex Code
21795 status collapsed
21796
21797 \begin_layout Plain Layout
21798
21799 \backslash
21800 end{btUnit}
21801 \end_layout
21802
21803 \end_inset
21804
21805 を\SpecialChar TeX
21806 コードで入力して,
21807 自前の単位を生成することもできます.ただし,
21808
21809 \begin_inset Flex Code
21810 status collapsed
21811
21812 \begin_layout Plain Layout
21813 btUnit
21814 \end_layout
21815
21816 \end_inset
21817
21818 は入れ子にすることができないことに注意してください.第二の制限は,
21819
21820 \begin_inset Flex Code
21821 status collapsed
21822
21823 \begin_layout Plain Layout
21824 bibtopic
21825 \end_layout
21826
21827 \end_inset
21828
21829 は,
21830 引用のないものも含めて,
21831 つねに書誌情報データベースの参照すべてを保持してしまうということです.これにより奇妙なラベルが付されることがあります(例えば,
21832 データベース中にMillerという著者の2014年の著作が2つあり,
21833 その1つだけが引用されている場合,
21834 ラベルは「Miller 2014b」などとなってしまいます).
21835 \end_layout
21836
21837 \begin_layout Standard
21838
21839 \family sans
21840 Biblatex
21841 \family default
21842 を使用する場合には,
21843
21844 \begin_inset Flex Code
21845 status collapsed
21846
21847 \begin_layout Plain Layout
21848 refsection
21849 \end_layout
21850
21851 \end_inset
21852
21853 オプションが代わりに使用されます.特定の単位が必要な時には,
21854 それらの開始時に\SpecialChar TeX
21855 コードで
21856 \begin_inset Flex Code
21857 status collapsed
21858
21859 \begin_layout Plain Layout
21860
21861 \backslash
21862 newrefsection
21863 \end_layout
21864
21865 \end_inset
21866
21867 または
21868 \begin_inset Flex Code
21869 status collapsed
21870
21871 \begin_layout Plain Layout
21872
21873 \backslash
21874 newrefsegment
21875 \end_layout
21876
21877 \end_inset
21878
21879 と書きます.単位の終了箇所も制御したい場合には,
21880 代わりに
21881 \begin_inset Flex Code
21882 status collapsed
21883
21884 \begin_layout Plain Layout
21885
21886 \backslash
21887 begin{refsection}
21888 \end_layout
21889
21890 \end_inset
21891
21892  \SpecialChar ldots
21893  
21894 \begin_inset Flex Code
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898
21899 \backslash
21900 end{refsection}
21901 \end_layout
21902
21903 \end_inset
21904
21905 環境を使ってください.ただし,
21906
21907 \begin_inset Flex Code
21908 status collapsed
21909
21910 \begin_layout Plain Layout
21911 refsection
21912 \end_layout
21913
21914 \end_inset
21915
21916 関連は入れ子にできないことに注意してください.現行単位毎の書誌情報に加えて,
21917
21918 \family sans
21919 Biblatex
21920 \family default
21921 はすべての書誌情報を,
21922 後で一箇所(例えば文末)に出力する簡単な方法も提供しています.そのためには,
21923 Bib(la)TeX差込枠ダイアログの内容コンボボックスで「文献参照単位全て」を選択してください.この話題についての詳細は,
21924
21925 \family sans
21926 Biblatex
21927 \family default
21928 の取扱説明書を参照してください.
21929 \end_layout
21930
21931 \begin_layout Chapter
21932 ブリット
21933 \begin_inset CommandInset label
21934 LatexCommand label
21935 name "chap:ブリット"
21936
21937 \end_inset
21938
21939
21940 \end_layout
21941
21942 \begin_layout Standard
21943
21944 \noun on
21945 Allan Rae文
21946 \end_layout
21947
21948 \begin_layout Section
21949 はじめに
21950 \end_layout
21951
21952 \begin_layout Standard
21953 \SpecialChar LyX
21954 には,
21955 ブリットの形が216個準備されていて,
21956 簡単なダイアログから呼び出すことができます.このダイアログを使えば,
21957 箇条書き(記号)の各階層で使うブリットの形を変更することができます.この設定は文書全体に共通なので,
21958 段落ごとに別のブリットを指定することはできません
21959 \begin_inset Foot
21960 status collapsed
21961
21962 \begin_layout Plain Layout
21963 正確には可能ですが,
21964 手動で行う必要があります.
21965 \end_layout
21966
21967 \end_inset
21968
21969
21970 \end_layout
21971
21972 \begin_layout Section
21973 外見
21974 \end_layout
21975
21976 \begin_layout Standard
21977 メニュー項目の
21978 \begin_inset Flex MenuItem
21979 status collapsed
21980
21981 \begin_layout Plain Layout
21982 文書\SpecialChar menuseparator
21983 設定
21984 \end_layout
21985
21986 \end_inset
21987
21988 を選択してダイアログを開き,
21989
21990 \begin_inset Flex MenuItem
21991 status collapsed
21992
21993 \begin_layout Plain Layout
21994 ブリット
21995 \end_layout
21996
21997 \end_inset
21998
21999 タブを選択してください.
22000 \end_layout
22001
22002 \begin_layout Standard
22003 このダイアログは,
22004 ブリット形の一覧表を提示します.表左のボタン列で,
22005 6つの各ブリット形パネルを切り替えることができます.上部のボタン列では,
22006 変更するブリット階層を選択できます.
22007 \end_layout
22008
22009 \begin_layout Standard
22010 6つのパネルは,
22011 それぞれが必要とするパッケージによって分類されています.下記は,
22012 フォント名と\SpecialChar LaTeX
22013 パッケージの対応表です.
22014 \end_layout
22015
22016 \begin_layout Standard
22017 \align center
22018 \begin_inset Tabular
22019 <lyxtabular version="3" rows="7" columns="2">
22020 <features tabularvalignment="middle">
22021 <column alignment="center" valignment="top" width="0pt">
22022 <column alignment="center" valignment="top" width="0pt">
22023 <row>
22024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22025 \begin_inset Text
22026
22027 \begin_layout Plain Layout
22028 フォント
22029 \end_layout
22030
22031 \end_inset
22032 </cell>
22033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22034 \begin_inset Text
22035
22036 \begin_layout Plain Layout
22037
22038 \family roman
22039 \series medium
22040 \shape up
22041 \size normal
22042 \emph off
22043 \bar no
22044 \noun off
22045 \color none
22046 必要とするパッケージ
22047 \end_layout
22048
22049 \end_inset
22050 </cell>
22051 </row>
22052 <row>
22053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22054 \begin_inset Text
22055
22056 \begin_layout Plain Layout
22057
22058 \family sans
22059 標準
22060 \end_layout
22061
22062 \end_inset
22063 </cell>
22064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22065 \begin_inset Text
22066
22067 \begin_layout Plain Layout
22068
22069 \series medium
22070 \shape up
22071 \size normal
22072 \emph off
22073 \bar no
22074 \noun off
22075 \color none
22076 \SpecialChar LaTeX
22077
22078 \family roman
22079 本体
22080 \end_layout
22081
22082 \end_inset
22083 </cell>
22084 </row>
22085 <row>
22086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22087 \begin_inset Text
22088
22089 \begin_layout Plain Layout
22090
22091 \family sans
22092 \series medium
22093 \shape up
22094 \size normal
22095 \emph off
22096 \bar no
22097 \noun off
22098 \color none
22099 数式
22100 \end_layout
22101
22102 \end_inset
22103 </cell>
22104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22105 \begin_inset Text
22106
22107 \begin_layout Plain Layout
22108
22109 \family typewriter
22110 \series medium
22111 \shape up
22112 \size normal
22113 \emph off
22114 \bar no
22115 \noun off
22116 \color none
22117 amssymb.sty
22118 \end_layout
22119
22120 \end_inset
22121 </cell>
22122 </row>
22123 <row>
22124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22125 \begin_inset Text
22126
22127 \begin_layout Plain Layout
22128
22129 \family sans
22130 \series medium
22131 \shape up
22132 \size normal
22133 \emph off
22134 \bar no
22135 \noun off
22136 \color none
22137 絵文字1
22138 \end_layout
22139
22140 \end_inset
22141 </cell>
22142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22143 \begin_inset Text
22144
22145 \begin_layout Plain Layout
22146
22147 \family typewriter
22148 \series medium
22149 \shape up
22150 \size normal
22151 \emph off
22152 \bar no
22153 \noun off
22154 \color none
22155 pifont.sty
22156 \end_layout
22157
22158 \end_inset
22159 </cell>
22160 </row>
22161 <row>
22162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22163 \begin_inset Text
22164
22165 \begin_layout Plain Layout
22166
22167 \family sans
22168 \series medium
22169 \shape up
22170 \size normal
22171 \emph off
22172 \bar no
22173 \noun off
22174 \color none
22175 絵文字2
22176 \end_layout
22177
22178 \end_inset
22179 </cell>
22180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22181 \begin_inset Text
22182
22183 \begin_layout Plain Layout
22184
22185 \family typewriter
22186 \series medium
22187 \shape up
22188 \size normal
22189 \emph off
22190 \bar no
22191 \noun off
22192 \color none
22193 pifont.sty
22194 \end_layout
22195
22196 \end_inset
22197 </cell>
22198 </row>
22199 <row>
22200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22201 \begin_inset Text
22202
22203 \begin_layout Plain Layout
22204
22205 \family sans
22206 \series medium
22207 \shape up
22208 \size normal
22209 \emph off
22210 \bar no
22211 \noun off
22212 \color none
22213 絵文字3
22214 \end_layout
22215
22216 \end_inset
22217 </cell>
22218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22219 \begin_inset Text
22220
22221 \begin_layout Plain Layout
22222
22223 \family typewriter
22224 \series medium
22225 \shape up
22226 \size normal
22227 \emph off
22228 \bar no
22229 \noun off
22230 \color none
22231 pifont.sty
22232 \end_layout
22233
22234 \end_inset
22235 </cell>
22236 </row>
22237 <row>
22238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22239 \begin_inset Text
22240
22241 \begin_layout Plain Layout
22242
22243 \family sans
22244 \series medium
22245 \shape up
22246 \size normal
22247 \emph off
22248 \bar no
22249 \noun off
22250 \color none
22251 絵文字4
22252 \end_layout
22253
22254 \end_inset
22255 </cell>
22256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22257 \begin_inset Text
22258
22259 \begin_layout Plain Layout
22260
22261 \family typewriter
22262 \series medium
22263 \shape up
22264 \size normal
22265 \emph off
22266 \bar no
22267 \noun off
22268 \color none
22269 pifont.sty
22270 \end_layout
22271
22272 \end_inset
22273 </cell>
22274 </row>
22275 </lyxtabular>
22276
22277 \end_inset
22278
22279
22280 \end_layout
22281
22282 \begin_layout Standard
22283 \SpecialChar LyX
22284 は,
22285 ユーザーが導入されていないパッケージのブリットを使用したとしても,
22286 警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
22287 エラーが出るようならば,
22288 パッケージが導入されていない可能性が大です
22289 \begin_inset Foot
22290 status collapsed
22291
22292 \begin_layout Plain Layout
22293 \SpecialChar LyX
22294 が,
22295 パッケージがなくてもブリットを使用することを許すのは,
22296 編集をここで行ったとしても,
22297 別のところへエクスポートする可能性があるからです.
22298 \end_layout
22299
22300 \end_inset
22301
22302
22303 \end_layout
22304
22305 \begin_layout Section
22306 使用法
22307 \end_layout
22308
22309 \begin_layout Standard
22310 変更したいブリット階層を選んで,
22311 ブリット形と寸法を選択してください.何らかの変更を加えたとしても,
22312 \SpecialChar LyX
22313 上には反映されませんが,
22314 文書の表示を行えば確認されます.
22315 \end_layout
22316
22317 \begin_layout Standard
22318 ブリット形は,
22319 適切な階層のブリットボタンをマウスで右クリックすれば,
22320 簡単に既定値に初期化することができます
22321 \begin_inset Foot
22322 status open
22323
22324 \begin_layout Plain Layout
22325 \begin_inset CommandInset label
22326 LatexCommand label
22327 name "fn:段落ごとに異なるブリットの形"
22328
22329 \end_inset
22330
22331 もし
22332 \emph on
22333 本当に
22334 \emph default
22335 段落ごとに異なるブリットの形を使いたいならば,
22336 \SpecialChar TeX
22337 コードを使って少し手を汚す必要があります.この場合も,
22338 ブリット選択ダイアログを使えば,
22339 さまざまな形のLaTeXコードを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,
22340 以下のような選択肢があります.
22341 \end_layout
22342
22343 \begin_layout Plain Layout
22344 \begin_inset ERT
22345 status open
22346
22347 \begin_layout Plain Layout
22348
22349
22350 \backslash
22351 let
22352 \backslash
22353 savelabelitemi=
22354 \backslash
22355 labelitemi
22356 \end_layout
22357
22358 \end_inset
22359
22360
22361 \end_layout
22362
22363 \begin_layout Plain Layout
22364 \begin_inset ERT
22365 status open
22366
22367 \begin_layout Plain Layout
22368
22369
22370 \backslash
22371 renewcommand
22372 \backslash
22373 labelitemi[0]{
22374 \backslash
22375 small
22376 \backslash
22377 (
22378 \backslash
22379 sharp
22380 \backslash
22381 )}
22382 \end_layout
22383
22384 \end_inset
22385
22386
22387 \end_layout
22388
22389 \begin_layout Itemize
22390 特定の階層の新しいブリット形を指定するには,
22391 \SpecialChar LaTeX
22392 コマンド
22393 \begin_inset Flex Code
22394 status collapsed
22395
22396 \begin_layout Plain Layout
22397
22398 \family typewriter
22399
22400 \backslash
22401 renewcommand{}{}
22402 \end_layout
22403
22404 \end_inset
22405
22406 を使用します.あとで現在のブリット形に戻すことができるように,
22407 現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,
22408 第1階層のブリットを変更するために,
22409 以下の\SpecialChar LaTeX
22410 コードが使用されています.
22411 \end_layout
22412
22413 \begin_deeper
22414 \begin_layout LyX-Code
22415
22416 \family typewriter
22417
22418 \backslash
22419 let
22420 \backslash
22421 savelabelitemi=
22422 \backslash
22423 labelitemi
22424 \end_layout
22425
22426 \begin_layout LyX-Code
22427
22428 \family typewriter
22429
22430 \backslash
22431 renewcommand
22432 \backslash
22433 labelitemi[0]{
22434 \backslash
22435 small
22436 \backslash
22437 (
22438 \backslash
22439 sharp
22440 \backslash
22441 )}
22442 \end_layout
22443
22444 \end_deeper
22445 \begin_layout Itemize
22446 箇条書き(記号)の階層は,
22447
22448 \begin_inset Flex Code
22449 status collapsed
22450
22451 \begin_layout Plain Layout
22452
22453 \backslash
22454 labelitem
22455 \end_layout
22456
22457 \end_inset
22458
22459 コマンドの一部にローマ数字で指定されていることに注意してください.
22460 \end_layout
22461
22462 \begin_layout Itemize
22463 \begin_inset Argument item:1
22464 status open
22465
22466 \begin_layout Plain Layout
22467 \begin_inset ERT
22468 status open
22469
22470 \begin_layout Plain Layout
22471
22472
22473 \backslash
22474 (
22475 \backslash
22476 star
22477 \backslash
22478 )
22479 \end_layout
22480
22481 \end_inset
22482
22483
22484 \end_layout
22485
22486 \end_inset
22487
22488 各項目のブリットを指定するには,
22489
22490 \begin_inset Flex Code
22491 status collapsed
22492
22493 \begin_layout Plain Layout
22494 \SpecialChar TeX
22495 コード
22496 \end_layout
22497
22498 \end_inset
22499
22500 として入力したブリット形を,
22501 行頭に「ユーザ設定」項目差込枠(挿入\SpecialChar menuseparator
22502 ユーザ設定項目)に入れて挿入してください.たとえば,
22503 この項目の行頭には
22504 \family typewriter
22505
22506
22507 \begin_inset Flex Code
22508 status collapsed
22509
22510 \begin_layout Plain Layout
22511
22512 \family typewriter
22513
22514 \backslash
22515 (
22516 \backslash
22517 star
22518 \backslash
22519 )
22520 \end_layout
22521
22522 \end_inset
22523
22524
22525 \family default
22526 が指定されています.
22527 \end_layout
22528
22529 \begin_layout Plain Layout
22530 \begin_inset ERT
22531 status open
22532
22533 \begin_layout Plain Layout
22534
22535
22536 \backslash
22537 renewcommand
22538 \backslash
22539 labelitemi[0]{
22540 \backslash
22541 savelabelitemi}
22542 \end_layout
22543
22544 \end_inset
22545
22546
22547 \end_layout
22548
22549 \begin_layout Plain Layout
22550 文書全体で使用するブリット形が有効であるようにするために,
22551 labelitemを元の設定に戻す必要があります.そのためには,
22552 以下のようにします.
22553 \end_layout
22554
22555 \begin_layout LyX-Code
22556
22557 \family typewriter
22558
22559 \backslash
22560 renewcommand
22561 \backslash
22562 labelitemi[0]{
22563 \backslash
22564 savelabelitemi}
22565 \end_layout
22566
22567 \end_inset
22568
22569
22570 \end_layout
22571
22572 \begin_layout Chapter
22573 補完ツール
22574 \end_layout
22575
22576 \begin_layout Section
22577 複合文書
22578 \end_layout
22579
22580 \begin_layout Subsection
22581 一般的な操作
22582 \end_layout
22583
22584 \begin_layout Standard
22585 たくさんの節を含んだ大きなファイルで作業をする場合,
22586 文書をいくつかのファイルに分割した方が往々にして便利ですし,
22587 場合によっては,
22588 表部分にはしょっちゅう変更が加えられるけれども,
22589 その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,
22590 複合文書を利用することを,
22591 まずご検討ください.たとえば,
22592 科学論文は通常,
22593 導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
22594 ファイルにして,
22595 タイトル・著者・概要・書誌情報等と,
22596 これら五つのインクルード
22597 \begin_inset Foot
22598 status collapsed
22599
22600 \begin_layout Plain Layout
22601
22602 \series bold
22603 (訳註)
22604 \series default
22605 「取り込む」の意です.原語「include」に対する訳語として,
22606 プログラミング用語の「インクルードする」以外に適語がないので,
22607 ここではプログラミング用語をそのまま使用します.
22608 \end_layout
22609
22610 \end_inset
22611
22612 ファイルを持つ,
22613 もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,
22614 単にマスターファイルにインクルードされるだけでなく,
22615 単独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
22616 ファイルであるように注意することが重要です.しかも,
22617 これらの各ファイルは,
22618 同じ文書クラスでなくてはなりません.articleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
22619 ファイルをインクルードすることもできますが,
22620 このファイルにはプリアンブルがあってはなりません(
22621 \begin_inset Flex Code
22622 status collapsed
22623
22624 \begin_layout Plain Layout
22625
22626 \backslash
22627 begin{document}
22628 \end_layout
22629
22630 \end_inset
22631
22632 行とその前のすべて,
22633 および
22634 \begin_inset Flex Code
22635 status collapsed
22636
22637 \begin_layout Plain Layout
22638
22639 \backslash
22640 end{document}行
22641 \end_layout
22642
22643 \end_inset
22644
22645 は削除しておかなければなりません).さもないと,
22646 DVIファイルを作成する際にエラーが発生するでしょう.
22647 \end_layout
22648
22649 \begin_layout Standard
22650 \SpecialChar LyX
22651 では,
22652
22653 \family sans
22654 \series bold
22655 挿入\SpecialChar menuseparator
22656 ファイル\SpecialChar menuseparator
22657 子文書
22658 \family default
22659 \series default
22660
22661 \begin_inset space \thinspace{}
22662 \end_inset
22663
22664 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,
22665 カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,
22666 ダイアログが現れるので,
22667 そこでインクルードするファイルとインクルード方法を選択することができます.
22668 \end_layout
22669
22670 \begin_layout Standard
22671 ファイル選択ボックスは,
22672 いまや自明でしょう.インクルード方法には,
22673 「include」・「input」・「verbatim」の三つがあります.「include」と「input」は多くの点で類似していますが,
22674 いくつかの大きな違いがあります.
22675 \end_layout
22676
22677 \begin_layout Enumerate
22678 「include」されたファイルは新規頁から組版されるのに対し,
22679 「input」されたファイルは現在のページから組版されます.
22680 \end_layout
22681
22682 \begin_layout Enumerate
22683 「include」されたファイルは,
22684 それら自身がさらに他のファイル(「孫ファイル」)を「include」することはできません.一方で,
22685 「input」は無限に下層inputを持つことができます.
22686 \end_layout
22687
22688 \begin_layout Enumerate
22689 「include」は選ばれた「include」ファイルの出力しか許しませんが,
22690 実際の(ページ割りなどの)カウンタや参照は保持されます(詳細については埋込オブジェクト説明書の子文書の節を参照のこと).したがって,
22691 子文書にアウトソースされた章については「include」が好まれる方式ですが,
22692 任意のファイル継承がある場合には「input」の方が良いでしょう.
22693 \end_layout
22694
22695 \begin_layout Standard
22696 「verbatim」インクルードファイルでは,
22697 ファイルの内容がそのまま(つまり「
22698 \begin_inset Flex Code
22699 status collapsed
22700
22701 \begin_layout Plain Layout
22702 verbatim
22703 \end_layout
22704
22705 \end_inset
22706
22707 」モードで)固定幅タイプライタフォントで組版されます.通常,
22708 このファイルの空白は,
22709 通常の\SpecialChar LyX
22710 での空白の取扱いとは違って,
22711 連続した複数の空白がそのまま出力されるものの,
22712 単なる見えない空白です.ただし,
22713
22714 \family sans
22715
22716 \begin_inset Flex MenuItem
22717 status collapsed
22718
22719 \begin_layout Plain Layout
22720
22721 \family sans
22722 出力の空白に印付けをする
22723 \end_layout
22724
22725 \end_inset
22726
22727
22728 \family default
22729 チェックボックスを有効にすると,
22730 空白が存在することを明確にするために空白の印が出力されます.
22731 \end_layout
22732
22733 \begin_layout Standard
22734 一般的に,
22735 親ファイルは,
22736 組版前に完全な\SpecialChar LaTeX
22737 ファイルに変換されますが,
22738 インクルードされるファイルはプリアンブル情報を全く持たない\SpecialChar LaTeX
22739 ファイルに変換されます.
22740 \end_layout
22741
22742 \begin_layout Subsection
22743 ファイル間の相互参照
22744 \end_layout
22745
22746 \begin_layout Standard
22747 \begin_inset Box Shadowbox
22748 position "t"
22749 hor_pos "c"
22750 has_inner_box 1
22751 inner_pos "t"
22752 use_parbox 0
22753 use_makebox 0
22754 width "100col%"
22755 special "none"
22756 height "1in"
22757 height_special "totalheight"
22758 thickness "0.4pt"
22759 separation "3pt"
22760 shadowsize "4pt"
22761 framecolor "black"
22762 backgroundcolor "none"
22763 status open
22764
22765 \begin_layout Plain Layout
22766 この節の内容は,
22767 すでに古くなっています.既定のマスター文書についてと,
22768 マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
22769 \end_layout
22770
22771 \end_inset
22772
22773
22774 \end_layout
22775
22776 \begin_layout Standard
22777 異なるファイル間に相互参照を設定することも可能です.まず,
22778 すべての関係するファイルを開いてください.例として,
22779 2つのファイルを扱う場合を考え,
22780 各ファイルをA・Bと呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,
22781 Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,
22782 使用する「バッファ」を選んでください.
22783 \end_layout
22784
22785 \begin_layout Subsection
22786 すべての子文書での書誌情報
22787 \end_layout
22788
22789 \begin_layout Standard
22790 子文書を使って作業する場合,
22791 全体の書誌情報を文末に一つだけ置きたいのだけれども,
22792 子文書単独で出力する時に限り,
22793 子文書分を抽出した書誌情報が付けられるようにしたいことがあります.以下にその方法を説明します.
22794 \end_layout
22795
22796 \begin_layout Standard
22797 親文書には,
22798 全体の書誌情報が出力されるべき場所(親ファイルでも子ファイルでも)に,
22799 書誌情報差込枠を挿入するだけです.書誌情報差込枠を親ファイルに置いた場合,
22800 文献参照はすべての子文書に継承されるので,
22801 各子文書の引用ダイアログで使用できるようになります.
22802 \end_layout
22803
22804 \begin_layout Standard
22805 子文書限定の書誌情報については,
22806 子文書内の,
22807 子文書が独立にコンパイルされた時に書誌情報が出力されるべき場所に,
22808 書誌情報差込枠を挿入します.その際,
22809 この差込枠を,
22810 たとえば「子文書のみ」などと名付けた派生枝の中に置く(
22811 \family sans
22812 \series bold
22813 挿入\SpecialChar menuseparator
22814 派生枝\SpecialChar menuseparator
22815 新規派生枝を挿入...
22816 \family default
22817 \series default
22818 )のが肝要です.そして,
22819 子文書の中でこの派生枝を有効にし(
22820 \family sans
22821 \series bold
22822 文書\SpecialChar menuseparator
22823 設定...\SpecialChar menuseparator
22824 派生枝
22825 \family default
22826 \series default
22827 ),親文書で無効にします(
22828 \family sans
22829 \series bold
22830 文書\SpecialChar menuseparator
22831 設定...\SpecialChar menuseparator
22832 派生枝
22833 \family default
22834 \series default
22835 ).こうすることで,
22836 子文書中の書誌情報は,
22837 親文書中では無視され,
22838 子文書中では有効になります.
22839 \end_layout
22840
22841 \begin_layout Standard
22842 複数の書誌情報が必要な場合(親文書中でも子文書ごとに書誌情報を出力するなど)は,
22843
22844 \begin_inset CommandInset ref
22845 LatexCommand ref
22846 reference "subsec:複数の書誌情報"
22847 plural "false"
22848 caps "false"
22849 noprefix "false"
22850 nolink "false"
22851
22852 \end_inset
22853
22854 節を参照してください.
22855 \end_layout
22856
22857 \begin_layout Section
22858 \SpecialChar LyX
22859 書庫
22860 \end_layout
22861
22862 \begin_layout Standard
22863 しばしばユーザーは,
22864 出版社に送ったり,
22865 共著者とやりとりするために,
22866 \SpecialChar LyX
22867 ファイルを,
22868 その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
22869 には,
22870 この過程を自動化するPythonスクリプト(
22871 \begin_inset Flex Code
22872 status collapsed
22873
22874 \begin_layout Plain Layout
22875 lyxpak.py
22876 \end_layout
22877
22878 \end_inset
22879
22880 )が含まれています.これを使うには,
22881
22882 \begin_inset Flex Code
22883 status collapsed
22884
22885 \begin_layout Plain Layout
22886 zipfile
22887 \end_layout
22888
22889 \end_inset
22890
22891  pythonモジュールまたは
22892 \begin_inset Flex Code
22893 status collapsed
22894
22895 \begin_layout Plain Layout
22896 tarfile
22897 \end_layout
22898
22899 \end_inset
22900
22901  pythonモジュールが,
22902 システムに導入済みであることが必要です.既定設定では,
22903 Unix系システムでは,
22904
22905 \begin_inset Flex Code
22906 status collapsed
22907
22908 \begin_layout Plain Layout
22909 gzip
22910 \end_layout
22911
22912 \end_inset
22913
22914 圧縮
22915 \begin_inset Flex Code
22916 status collapsed
22917
22918 \begin_layout Plain Layout
22919 tar
22920 \end_layout
22921
22922 \end_inset
22923
22924 ファイル形式が優先され,
22925 Windowsでは
22926 \begin_inset Flex Code
22927 status collapsed
22928
22929 \begin_layout Plain Layout
22930 zip
22931 \end_layout
22932
22933 \end_inset
22934
22935 形式が優先されます.
22936 \end_layout
22937
22938 \begin_layout Standard
22939 \SpecialChar LyX
22940 の環境構成時には,
22941 「\SpecialChar LyX
22942 書庫」を書き出すことができるようにスクリプトが準備され,
22943
22944 \begin_inset Flex MenuItem
22945 status collapsed
22946
22947 \begin_layout Plain Layout
22948 ファイル\SpecialChar menuseparator
22949 書き出し
22950 \end_layout
22951
22952 \end_inset
22953
22954 の下で利用可能となります.
22955 \end_layout
22956
22957 \begin_layout Standard
22958 \begin_inset Flex MenuItem
22959 status collapsed
22960
22961 \begin_layout Plain Layout
22962 ツール\SpecialChar menuseparator
22963 設定\SpecialChar menuseparator
22964 ファイル処理\SpecialChar menuseparator
22965 変換子
22966 \end_layout
22967
22968 \end_inset
22969
22970
22971 \begin_inset Flex MenuItem
22972 status collapsed
22973
22974 \begin_layout Plain Layout
22975 \SpecialChar LyX
22976 \SpecialChar menuseparator
22977 \SpecialChar LyX
22978 書庫
22979 \end_layout
22980
22981 \end_inset
22982
22983 変換子に,
22984
22985 \begin_inset Flex Code
22986 status collapsed
22987
22988 \begin_layout Plain Layout
22989 -t
22990 \end_layout
22991
22992 \end_inset
22993
22994 スイッチや
22995 \begin_inset Flex Code
22996 status collapsed
22997
22998 \begin_layout Plain Layout
22999 -z
23000 \end_layout
23001
23002 \end_inset
23003
23004 スイッチを加えることで,
23005 プラットホームとは独立に,
23006
23007 \begin_inset Flex Code
23008 status collapsed
23009
23010 \begin_layout Plain Layout
23011 tar
23012 \end_layout
23013
23014 \end_inset
23015
23016 形式や
23017 \begin_inset Flex Code
23018 status collapsed
23019
23020 \begin_layout Plain Layout
23021 zip
23022 \end_layout
23023
23024 \end_inset
23025
23026 形式を強制することができます(スイッチは,
23027 スクリプト名の前ではなく,
23028 後ろに加えてください).
23029 \end_layout
23030
23031 \begin_layout Section
23032 装飾的なヘッダ・フッタ
23033 \end_layout
23034
23035 \begin_layout Standard
23036 既定のページレイアウトは,
23037 どちらかといえば素っ気ないものです.
23038 \begin_inset Flex Code
23039 status collapsed
23040
23041 \begin_layout Plain Layout
23042 article
23043 \end_layout
23044
23045 \end_inset
23046
23047 文書クラスの場合には,
23048 ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,
23049 すこしは凝ってますが,
23050 ほんとうに着飾るには,
23051 『ユーザーの手引き』に述べられているように,
23052 文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,
23053 望んだとおりの効果を得るために,
23054 \SpecialChar LaTeX
23055 プリアンブルに挿入する必要のある\SpecialChar LaTeX
23056 コードについて解説します.
23057 \end_layout
23058
23059 \begin_layout Standard
23060 装飾的ヘッダについて詳しくは,
23061
23062 \begin_inset Flex Code
23063 status collapsed
23064
23065 \begin_layout Plain Layout
23066 fancyhdr
23067 \end_layout
23068
23069 \end_inset
23070
23071 パッケージの説明書を参照してください(
23072 \begin_inset Flex URL
23073 status collapsed
23074
23075 \begin_layout Plain Layout
23076
23077 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
23078 \end_layout
23079
23080 \end_inset
23081
23082 ).
23083 \end_layout
23084
23085 \begin_layout Standard
23086 ページへッダは,
23087 「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールドに分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
23088 コマンドには,
23089
23090 \family typewriter
23091
23092 \begin_inset Flex Code
23093 status collapsed
23094
23095 \begin_layout Plain Layout
23096
23097 \family typewriter
23098
23099 \backslash
23100 lhead
23101 \end_layout
23102
23103 \end_inset
23104
23105
23106 \family default
23107
23108 \family typewriter
23109
23110 \begin_inset Flex Code
23111 status collapsed
23112
23113 \begin_layout Plain Layout
23114
23115 \family typewriter
23116
23117 \backslash
23118 chead
23119 \end_layout
23120
23121 \end_inset
23122
23123
23124 \family default
23125
23126 \family typewriter
23127
23128 \begin_inset Flex Code
23129 status collapsed
23130
23131 \begin_layout Plain Layout
23132
23133 \family typewriter
23134
23135 \backslash
23136 rhead
23137 \end_layout
23138
23139 \end_inset
23140
23141
23142 \family default
23143
23144 \begin_inset Flex Code
23145 status collapsed
23146
23147 \begin_layout Plain Layout
23148
23149 \backslash
23150 lfoot
23151 \end_layout
23152
23153 \end_inset
23154
23155 などがあります.かりに,
23156 各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
23157 \end_layout
23158
23159 \begin_layout Standard
23160
23161 \family typewriter
23162
23163 \backslash
23164 lhead{物書 はじめ}
23165 \end_layout
23166
23167 \begin_layout Standard
23168 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,
23169 空の引数を持つコマンドを入れるだけです.すなわち,
23170
23171 \end_layout
23172
23173 \begin_layout Standard
23174
23175 \family typewriter
23176
23177 \backslash
23178 cfoot{}
23179 \begin_inset Newline newline
23180 \end_inset
23181
23182
23183 \family default
23184 とします.
23185 \end_layout
23186
23187 \begin_layout Standard
23188 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,
23189 ページ番号を(4ページのように)右上に,
23190 自分の名前を左下に,
23191 日付を右下に入れます.以下のコマンドをプリアンブルに入れます.
23192 \end_layout
23193
23194 \begin_layout Standard
23195
23196 \family typewriter
23197
23198 \backslash
23199 lhead{第
23200 \backslash
23201 thesection 節}
23202 \end_layout
23203
23204 \begin_layout Standard
23205
23206 \family typewriter
23207
23208 \backslash
23209 chead{}
23210 \end_layout
23211
23212 \begin_layout Standard
23213
23214 \family typewriter
23215
23216 \backslash
23217 rhead{
23218 \backslash
23219 thepage ページ}
23220 \end_layout
23221
23222 \begin_layout Standard
23223
23224 \family typewriter
23225
23226 \backslash
23227 lfoot{物書 はじめ}
23228 \end_layout
23229
23230 \begin_layout Standard
23231
23232 \family typewriter
23233
23234 \backslash
23235 cfoot{}
23236 \end_layout
23237
23238 \begin_layout Standard
23239
23240 \family typewriter
23241
23242 \backslash
23243 rfoot{
23244 \backslash
23245 today}
23246 \end_layout
23247
23248 \begin_layout Standard
23249 コマンド
23250 \family typewriter
23251
23252 \begin_inset Flex Code
23253 status collapsed
23254
23255 \begin_layout Plain Layout
23256
23257 \family typewriter
23258
23259 \backslash
23260 thesecti
23261 \family default
23262 o
23263 \family typewriter
23264 n
23265 \end_layout
23266
23267 \end_inset
23268
23269
23270 \family default
23271
23272 \begin_inset Flex Code
23273 status collapsed
23274
23275 \begin_layout Plain Layout
23276
23277 \family typewriter
23278
23279 \backslash
23280 thepa
23281 \family default
23282 ge
23283 \end_layout
23284
23285 \end_inset
23286
23287 は,
23288 それぞれ\SpecialChar LaTeX
23289 の節カウンタおよびページカウンタを取得するもので,
23290 これによって現在の節番号とページ番号を印字します.
23291 \begin_inset Flex Code
23292 status collapsed
23293
23294 \begin_layout Plain Layout
23295
23296 \family typewriter
23297
23298 \backslash
23299 tod
23300 \family default
23301 ay
23302 \end_layout
23303
23304 \end_inset
23305
23306 は,
23307 今日の日付を印字するものです.
23308 \end_layout
23309
23310 \begin_layout Standard
23311 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,
23312 太さを0にしてください.ヘッダ罫線は,
23313 既定では0.4ptの太さであり,
23314 フッタ罫線は0ptです.太さを変更するには,
23315
23316 \family typewriter
23317
23318 \begin_inset Flex Code
23319 status collapsed
23320
23321 \begin_layout Plain Layout
23322
23323 \family typewriter
23324
23325 \backslash
23326 renewcommand{
23327 \backslash
23328 headrulewidth}{0.4pt}
23329 \end_layout
23330
23331 \end_inset
23332
23333
23334 \family default
23335
23336 \family typewriter
23337
23338 \begin_inset Flex Code
23339 status collapsed
23340
23341 \begin_layout Plain Layout
23342
23343 \family typewriter
23344
23345 \backslash
23346 renewcommand{
23347 \backslash
23348 footrulewidth}{0.4pt}
23349 \end_layout
23350
23351 \end_inset
23352
23353
23354 \family default
23355 のようなコマンドを使用してください.
23356 \end_layout
23357
23358 \begin_layout Standard
23359 \begin_inset Flex Code
23360 status collapsed
23361
23362 \begin_layout Plain Layout
23363
23364 \family typewriter
23365
23366 \backslash
23367 thispagestyle{empty}
23368 \end_layout
23369
23370 \end_inset
23371
23372
23373 \begin_inset Flex Code
23374 status collapsed
23375
23376 \begin_layout Plain Layout
23377
23378 \family typewriter
23379
23380 \backslash
23381 thispagestyle{plain}
23382 \end_layout
23383
23384 \end_inset
23385
23386
23387 \begin_inset Flex Code
23388 status collapsed
23389
23390 \begin_layout Plain Layout
23391
23392 \family typewriter
23393
23394 \backslash
23395 thispagestyle{fancy}
23396 \end_layout
23397
23398 \end_inset
23399
23400 のようなコマンドを使えば,
23401 各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,
23402 これらのコマンドを\SpecialChar TeX
23403 コードとして挿入してください.実は,
23404 タイトルページは,
23405 その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,
23406 既定でプレーン(plain)になるように設定されているのです.
23407 \end_layout
23408
23409 \begin_layout Standard
23410 奇数ページの左上だけに何かを挿入するなど,
23411 もっと複雑なコマンドもあるのですが,
23412 詳しい解説は
23413 \begin_inset Flex Code
23414 status collapsed
23415
23416 \begin_layout Plain Layout
23417
23418 \family typewriter
23419 fancyhdr
23420 \end_layout
23421
23422 \end_inset
23423
23424 パッケージの取扱説明書をご参照ください(
23425 \begin_inset Flex Code
23426 status collapsed
23427
23428 \begin_layout Plain Layout
23429 fancyhdr.dvi
23430 \end_layout
23431
23432 \end_inset
23433
23434 を探してください).
23435 \end_layout
23436
23437 \begin_layout Standard
23438 最後の例として,
23439 へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
23440
23441 \end_layout
23442
23443 \begin_layout Standard
23444
23445 \family typewriter
23446
23447 \backslash
23448 lhead{
23449 \backslash
23450 resizebox{1in}{!}{
23451 \backslash
23452 includegraphics{logo.eps}}}
23453 \end_layout
23454
23455 \begin_layout Standard
23456 \noindent
23457 とすれば,
23458 これを実現できます(文書中に他に画像を挿入していない場合には,
23459
23460 \begin_inset Newline newline
23461 \end_inset
23462
23463
23464 \begin_inset Flex Code
23465 status collapsed
23466
23467 \begin_layout Plain Layout
23468
23469 \family typewriter
23470
23471 \backslash
23472 usepackage{graphics}
23473 \end_layout
23474
23475 \end_inset
23476
23477 をプリアンブルに宣言する必要があります).
23478 \end_layout
23479
23480 \begin_layout Chapter
23481 \SpecialChar LyX
23482 とインターネット網
23483 \end_layout
23484
23485 \begin_layout Standard
23486 \SpecialChar LyX
23487 は,
23488 これまでも長い間,
23489 HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,
23490 第2.0版以前では,
23491 HTMLへの書き出しは,
23492 常に外部変換子を用いることで実現されていました
23493 \begin_inset Foot
23494 status collapsed
23495
23496 \begin_layout Plain Layout
23497 \SpecialChar LyX
23498 で外部変換子を使うことについての詳細は,
23499 取扱説明書『カスタマイズ篇』の「変換子」の節をご覧ください.
23500 \end_layout
23501
23502 \end_inset
23503
23504 .これらは2つのグループに大別できます.1つは,
23505
23506 \begin_inset Flex Code
23507 status collapsed
23508
23509 \begin_layout Plain Layout
23510 htlatex
23511 \end_layout
23512
23513 \end_inset
23514
23515
23516 \begin_inset Flex Code
23517 status collapsed
23518
23519 \begin_layout Plain Layout
23520 html2latex
23521 \end_layout
23522
23523 \end_inset
23524
23525
23526 \begin_inset Flex Code
23527 status collapsed
23528
23529 \begin_layout Plain Layout
23530 plastex
23531 \end_layout
23532
23533 \end_inset
23534
23535 のように,
23536 \SpecialChar LaTeX
23537 を中間形式として用い,
23538 その\SpecialChar LaTeX
23539 を生成するのに\SpecialChar LyX
23540 を用いるもの.2つめは,
23541
23542 \begin_inset Flex Code
23543 status collapsed
23544
23545 \begin_layout Plain Layout
23546 e\SpecialChar LyX
23547 er
23548 \end_layout
23549
23550 \end_inset
23551
23552 のように,
23553 直接\SpecialChar LyX
23554 ファイルに働きかける変換子です.これらは,
23555 それぞれに長所・短所を有しています.
23556 \end_layout
23557
23558 \begin_layout Standard
23559 \SpecialChar LaTeX
23560 ベースの変換子は,
23561 原則として,
23562 \SpecialChar LaTeX
23563 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,
23564 例えば,
23565 特定のコードのくだりが,
23566 \SpecialChar LyX
23567 によって生成されたのか,
23568 \SpecialChar TeX
23569 コードで書かれたのかについては気にしません.これらの変換子は,
23570
23571 \begin_inset Flex Code
23572 status collapsed
23573
23574 \begin_layout Plain Layout
23575 aux
23576 \end_layout
23577
23578 \end_inset
23579
23580 ファイルやカウンタや参照を取り扱うことができ,
23581 Bib\SpecialChar TeX
23582 が生成する
23583 \begin_inset Flex Code
23584 status collapsed
23585
23586 \begin_layout Plain Layout
23587 bbl
23588 \end_layout
23589
23590 \end_inset
23591
23592 ファイルも利用することがよくあります.一方で,
23593 \SpecialChar LaTeX
23594 は解析の非常に難しい言語であり—
23595 \SpecialChar TeX
23596 自身だけが\SpecialChar TeX
23597 を理解することができると言われたりすることがあります—
23598
23599 \SpecialChar LaTeX
23600 ベースの変換子は,
23601 非常に簡単な文法に見えるものでさえ飲み込めず,
23602 複雑なものになると全く歯が立たないこともあります.例えば,
23603 この現行を書いている時点では,
23604 取扱説明書『埋込オブジェクト篇』は,
23605 他の変換子では書き出しができるのに,
23606
23607 \begin_inset Flex Code
23608 status collapsed
23609
23610 \begin_layout Plain Layout
23611 htlatex
23612 \end_layout
23613
23614 \end_inset
23615
23616 では行うことができません.他には,
23617 数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,
23618 数式を小さな画像に変換して,
23619 HTML文書からこれらの画像へのリンクを張ります.これらの画像は,
23620 実は\SpecialChar LaTeX
23621 によって生成されているので,
23622 正確です.しかしながら,
23623 これらはうまく伸縮できないので,
23624 実際の文書の中で表現されるように—
23625 フォント寸が凡そ正しくなるように—
23626 見せようとすると,
23627 大変な苦労を伴います.
23628 \end_layout
23629
23630 \begin_layout Standard
23631 Alex Fernandezの
23632 \begin_inset Flex Code
23633 status collapsed
23634
23635 \begin_layout Plain Layout
23636 e\SpecialChar LyX
23637 er
23638 \end_layout
23639
23640 \end_inset
23641
23642
23643 \begin_inset CommandInset href
23644 LatexCommand href
23645 name "http://pinchito.es/elyxer/"
23646 target "http://pinchito.es/elyxer/"
23647 literal "false"
23648
23649 \end_inset
23650
23651 )は,
23652 これらの問題の一部を解決します.特に,
23653 これは数式を画像に変換するのではなく,
23654 HTMLとCSSを組み合わせて数式を生成するので,
23655 生成される数式は完璧な大きさに伸縮されて表示されます.しかしながら,
23656 ちょっとだけ複雑な数式でさえ,
23657
23658 \begin_inset Flex Code
23659 status collapsed
23660
23661 \begin_layout Plain Layout
23662 htlatex
23663 \end_layout
23664
23665 \end_inset
23666
23667 よりも質が落ちます.これはHTMLの限界を示しています
23668 \begin_inset Foot
23669 status collapsed
23670
23671 \begin_layout Plain Layout
23672 とはいえ,
23673
23674 \begin_inset Flex Code
23675 status collapsed
23676
23677 \begin_layout Plain Layout
23678 e\SpecialChar LyX
23679 er
23680 \end_layout
23681
23682 \end_inset
23683
23684 では,
23685 数式用にjsMathとMathJaxを使用することもできます.ただし,
23686 この設定はグローバルにしか設定することができず,
23687 バックエンドで実行させるサーバへのアクセスが利用できる必要があります.
23688 \end_layout
23689
23690 \end_inset
23691
23692 .さらに重要なことは(少なくとも第1.1.1版においては),
23693
23694 \begin_inset Flex Code
23695 status collapsed
23696
23697 \begin_layout Plain Layout
23698 e\SpecialChar LyX
23699 er
23700 \end_layout
23701
23702 \end_inset
23703
23704 は数式マクロを一部しかサポートしておらず,
23705 ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,
23706 \SpecialChar LyX
23707 ユーザが生成する文書の多くにとっては,
23708
23709 \begin_inset Flex Code
23710 status collapsed
23711
23712 \begin_layout Plain Layout
23713 e\SpecialChar LyX
23714 er
23715 \end_layout
23716
23717 \end_inset
23718
23719 は不向きなものになっています.もちろん,
23720 原理的に,
23721 これらの問題を解決することもできたのですが,
23722 \SpecialChar LyX
23723 開発陣は別の方法を採ることとし,
23724 \SpecialChar LyX
23725 が\SpecialChar LaTeX
23726 やDocBook,
23727 平文を書き出すことができるのと同様に,
23728 \SpecialChar LyX
23729 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
23730 \end_layout
23731
23732 \begin_layout Standard
23733 この原稿執筆時点では,
23734 XHTML出力は開発途上であり,
23735 おそらく「実験的」機能として解されるべきでしょう
23736 \begin_inset Foot
23737 status collapsed
23738
23739 \begin_layout Plain Layout
23740 \SpecialChar LyX
23741 ソースツリーもしくは
23742 \begin_inset CommandInset href
23743 LatexCommand href
23744 name "オンラインでのアクセス"
23745 target "https://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
23746 literal "false"
23747
23748 \end_inset
23749
23750 にある
23751 \begin_inset Flex Code
23752 status collapsed
23753
23754 \begin_layout Plain Layout
23755 development/HTML/HTML.notes
23756 \end_layout
23757
23758 \end_inset
23759
23760 ファイルには,
23761 通常,
23762 XHTML出力の現状についての最新の情報が収録されています.
23763 \begin_inset CommandInset href
23764 LatexCommand href
23765 name "バグ追跡ページ"
23766 target "https://www.lyx.org/trac/query?status=reopened&status=assigned&status=new&max=0&component=xhtml+export&order=id&col=id&col=summary&col=reporter&col=keywords&keywords=%21%7Efixedintrunk&desc=1"
23767 literal "false"
23768
23769 \end_inset
23770
23771 にあるXHTML関連バグ一覧も参照のこと.
23772 \end_layout
23773
23774 \end_inset
23775
23776 .それでもこのアプローチは,
23777 他の2つの方法よりも,
23778 潜在的な利点がいくつもあるので,
23779 開発陣はこの方法を選択したのです.
23780 \end_layout
23781
23782 \begin_layout Standard
23783 これらの利点は,
23784 主に,
23785 XHTML出力ルーチンが\SpecialChar LyX
23786 の一部となっているため,
23787 \SpecialChar LyX
23788 が出力する文書について\SpecialChar LyX
23789 が関知しているところのものは,
23790 すべて知り得るというところから来ています
23791 \begin_inset Foot
23792 status collapsed
23793
23794 \begin_layout Plain Layout
23795 他には,
23796 これらのルーチンが\SpecialChar LyX
23797 内部にあるため,
23798 \SpecialChar LyX
23799 ファイル形式や既存の差込枠の文法に変更があっても,
23800 影響を受けずに済むという利点もあります.
23801 \end_layout
23802
23803 \end_inset
23804
23805 .つまり,
23806 XHTML出力ルーチンは,
23807 (文書構造に表示されるような形での)目次や,
23808 それぞれの段落様式に関連付けられたカウンタや,
23809 ユーザ定義の様式についても知っているのです.XHTML出力ルーチンは,
23810 国際化について\SpecialChar LyX
23811 が関知しているものも知っているので,
23812 ちょうどその時に有効になっている言語に依存して,
23813 「Chapter 1」と出力されたり,
23814 「Kapitel 1」と出力されたりするのです.
23815 \end_layout
23816
23817 \begin_layout Standard
23818 汎く一般的に,
23819 出力ルーチンは,
23820 \SpecialChar LyX
23821 が文書レイアウトについて関知しているものは知っており,
23822 したがって,
23823 文書が画面上にどのように描画されるかも知っています.文書をXHTMLに出力するときには,
23824 この情報を利用します.特に,
23825 \SpecialChar LyX
23826 は,
23827 文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
23828 \emph on
23829 自動的に
23830 \emph default
23831 生成します.もし節見出しが,
23832 \SpecialChar LyX
23833 中でサンセリフ体かつボールド体であるとすると,
23834 (既定では)ウェブブラウザに表示した時にも,
23835 サンセリフでボールドになります.これは,
23836 節のような定義済み様式だけでなく,
23837 ユーザ定義のものも含めて,
23838 すべての様式でそうです.実際,
23839 XHTML出力ルーチンは,
23840 ユーザ定義の段落・文字様式と,
23841 \SpecialChar LyX
23842 自身の定義済み様式とを区別しません.どちらの場合も,
23843 \SpecialChar LyX
23844 が様式について関知しているところのものは,
23845 全てレイアウトファイルに含まれています.これは,
23846 脚注のような定義済み差込枠や,
23847 各種ユーザ設定差込枠でもそうです.
23848 \end_layout
23849
23850 \begin_layout Standard
23851 結果として,
23852 XHTML出力は,
23853 レイアウトファイルやモジュールを通して,
23854 \SpecialChar LaTeX
23855 出力と全く同じように,
23856 ユーザが設定したり拡張したりすることができるのです.詳細については,
23857 取扱説明書『カスタマイズ篇』の第5章をごらんください.
23858 \end_layout
23859
23860 \begin_layout Standard
23861 本章の残りでは,
23862 XHTML出力についての,
23863 さらに詳細な情報について取り扱い,
23864 その制約や,
23865 制約の回避の仕方を取り扱います.
23866 \end_layout
23867
23868 \begin_layout Section
23869 XHTMLにおける数式出力
23870 \end_layout
23871
23872 \begin_layout Standard
23873 \SpecialChar LyX
23874 では,
23875 数式描画に4つの方法を選択できます.以下に示すように,
23876 それぞれに利点と欠点があります.
23877 \end_layout
23878
23879 \begin_layout Itemize
23880 MathML
23881 \begin_inset Newline newline
23882 \end_inset
23883
23884 MathMLは,
23885 ウェブ上で数学を用いるために,
23886 特にデザインされたXMLの一方言であり,
23887 これをサポートするブラウザ上では,
23888 通常,
23889 特に美しい表現が得られます.欠点は,
23890 すべてのブラウザがMathMLをサポートしているわけではないという事と,
23891 FirefoxのようなGeckoベースのブラウザでも,
23892 サポートが完璧ではないという事です.
23893 \begin_inset Newline newline
23894 \end_inset
23895
23896 例えば,
23897 数式が
23898 \begin_inset Flex Code
23899 status collapsed
23900
23901 \begin_layout Plain Layout
23902 xymatrix
23903 \end_layout
23904
23905 \end_inset
23906
23907 パッケージを使用していたり,
23908 \SpecialChar TeX
23909 コードを使用しているなどで,
23910 もし\SpecialChar LyX
23911 が数式をMathMLとして描画できないとすると,
23912 \SpecialChar LyX
23913 は数式を代わりに画像として出力します. 
23914 \end_layout
23915
23916 \begin_layout Itemize
23917 HTML
23918 \begin_inset Newline newline
23919 \end_inset
23920
23921 前述のとおり,
23922
23923 \begin_inset Flex Code
23924 status collapsed
23925
23926 \begin_layout Plain Layout
23927 elyxer
23928 \end_layout
23929
23930 \end_inset
23931
23932 は,
23933 数式をCSSで装飾したHTMLとして出力します
23934 \begin_inset Foot
23935 status collapsed
23936
23937 \begin_layout Plain Layout
23938 \SpecialChar LyX
23939 は,
23940
23941 \begin_inset Flex Code
23942 status collapsed
23943
23944 \begin_layout Plain Layout
23945 elyxer
23946 \end_layout
23947
23948 \end_inset
23949
23950 からのHTML出力のために,
23951 CSSの一部を拝借しています.
23952 \end_layout
23953
23954 \end_inset
23955
23956 .簡単な数式では,
23957 これは非常にうまく行きますが,
23958 少し複雑な数式になると,
23959
23960 \begin_inset Flex Code
23961 status collapsed
23962
23963 \begin_layout Plain Layout
23964 elyxer
23965 \end_layout
23966
23967 \end_inset
23968
23969 は歯が立たなくなります.それでも,
23970 この方法は非常に広くサポートされているという利点があり,
23971 かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
23972 \begin_inset Newline newline
23973 \end_inset
23974
23975 例えば,
23976 数式が
23977 \begin_inset Flex Code
23978 status collapsed
23979
23980 \begin_layout Plain Layout
23981 xymatrix
23982 \end_layout
23983
23984 \end_inset
23985
23986 パッケージを使用していたり,
23987 \SpecialChar TeX
23988 コードを使用しているなどで,
23989 もし\SpecialChar LyX
23990 が数式をHTMLとして描画できないとすると,
23991 \SpecialChar LyX
23992 は数式を代わりに画像として出力します. 
23993 \end_layout
23994
23995 \begin_layout Itemize
23996 画像
23997 \begin_inset Newline newline
23998 \end_inset
23999
24000
24001 \begin_inset Flex Code
24002 status collapsed
24003
24004 \begin_layout Plain Layout
24005 htlatex
24006 \end_layout
24007
24008 \end_inset
24009
24010 のように,
24011 \SpecialChar LyX
24012 は数式を画像としても出力できます.この画像は,
24013 実は,
24014 自動プレビューで使用されているものと全く同じです
24015 \begin_inset Foot
24016 status collapsed
24017
24018 \begin_layout Plain Layout
24019 ただし,
24020 画像を出力に使うために,
24021 自動プレビューを入にしておく必要は
24022 \emph on
24023 ありません
24024 \emph default
24025
24026 \end_layout
24027
24028 \end_inset
24029
24030 .この方法の利点は,
24031 画像が他ならぬ\SpecialChar LaTeX
24032 によって生成されているので,
24033 非常に正確であることです.欠点は,
24034 前述したとおり,
24035 画像がビットマップなので,
24036 伸縮が全くうまく行かなかったり,
24037 コピーが出来なかったりといったことがあります.
24038 \begin_inset Newline newline
24039 \end_inset
24040
24041 画像の寸法は,
24042
24043 \begin_inset Flex MenuItem
24044 status collapsed
24045
24046 \begin_layout Plain Layout
24047 文書\SpecialChar menuseparator
24048 設定\SpecialChar menuseparator
24049 形式
24050 \end_layout
24051
24052 \end_inset
24053
24054 の「数式画像の伸縮」パラメータを変更することで制御できます
24055 \begin_inset Foot
24056 status collapsed
24057
24058 \begin_layout Plain Layout
24059 必要な方のために述べておくと,
24060 これは,
24061 画像の解像度をdpi(1インチあたりドット数)で制御するためのもので,
24062 75dpiを基準としています.
24063 \end_layout
24064
24065 \end_inset
24066
24067
24068 \begin_inset Newline newline
24069 \end_inset
24070
24071 もし\SpecialChar LyX
24072 が,
24073 何らかの理由によって数式の画像を生成できない(例えば,
24074 必要な\SpecialChar LaTeX
24075 パッケージが導入済みでないなど)ときは,
24076 回避策として,
24077 生の\SpecialChar LaTeX
24078 を出力します.
24079 \end_layout
24080
24081 \begin_layout Itemize
24082 \SpecialChar LaTeX
24083
24084 \begin_inset Newline newline
24085 \end_inset
24086
24087 最後に,
24088 \SpecialChar LyX
24089 は,
24090 数式を\SpecialChar LaTeX
24091 としても出力することができます.この方法は,
24092 最終手段としての出力方法である一方で,
24093 HTML文書に埋め込まれた\SpecialChar LaTeX
24094 を描画するのにJavaScriptを使用する,
24095
24096 \begin_inset CommandInset href
24097 LatexCommand href
24098 name "jsMath"
24099 target "http://www.math.union.edu/~dpvc/jsMath/"
24100 literal "false"
24101
24102 \end_inset
24103
24104 のようなツールとともに使用することもできます.\SpecialChar LyX
24105 は,
24106 jsMathで必要とされているのと同じように,
24107 \SpecialChar LaTeX
24108 部分を,
24109
24110 \begin_inset Flex Code
24111 status collapsed
24112
24113 \begin_layout Plain Layout
24114 span
24115 \end_layout
24116
24117 \end_inset
24118
24119 (行内数式用)または
24120 \begin_inset Flex Code
24121 status collapsed
24122
24123 \begin_layout Plain Layout
24124 div
24125 \end_layout
24126
24127 \end_inset
24128
24129 (別行立て数式用)に
24130 \begin_inset Flex Code
24131 status collapsed
24132
24133 \begin_layout Plain Layout
24134 class='math'
24135 \end_layout
24136
24137 \end_inset
24138
24139 を指定したもので,
24140 包んで出力します.
24141 \end_layout
24142
24143 \begin_layout Standard
24144 これらの出力方法のいずれかを
24145 \begin_inset Flex MenuItem
24146 status collapsed
24147
24148 \begin_layout Plain Layout
24149 文書\SpecialChar menuseparator
24150 設定\SpecialChar menuseparator
24151 形式
24152 \end_layout
24153
24154 \end_inset
24155
24156 で選択しなくてはなりません.既定では,
24157 \SpecialChar LyX
24158 はMathMLで出力を行います.これは,
24159 文書全体に適用される設定となります.
24160 \end_layout
24161
24162 \begin_layout Standard
24163 最後に,
24164 \SpecialChar LyX
24165 では,
24166 例えば,
24167 MathMLではあまりうまく出力されないような差込枠に対して,
24168 別の出力方法を選択できる選択肢が用意されています
24169 \begin_inset Foot
24170 status collapsed
24171
24172 \begin_layout Plain Layout
24173 その他にも,
24174 \SpecialChar LyX
24175 は,
24176 差込枠に\SpecialChar TeX
24177 コードが含まれていると画像出力に回帰するので,
24178 数式中に
24179 \begin_inset Formula $a=b\relax$
24180 \end_inset
24181
24182 のような無害な\SpecialChar TeX
24183 コードを挿入することによって,
24184 画像出力を強制することができます.
24185 \end_layout
24186
24187 \end_inset
24188
24189
24190 \end_layout
24191
24192 \begin_layout Section
24193 書誌情報と引用
24194 \end_layout
24195
24196 \begin_layout Standard
24197 XHTML出力は,
24198 書誌情報と引用を完全にサポートしています.
24199 \end_layout
24200
24201 \begin_layout Standard
24202 引用ラベルは,
24203 \SpecialChar LyX
24204 画面上のラベルを生成するのと同じ機構で生成されているので,
24205 出力中のラベルは,
24206 \SpecialChar LyX
24207 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を使用している場合には,
24208 \SpecialChar LyX
24209 は,
24210 画面上で表示されるような各カッコに囲まれた引用キーを単純に表示するのではなく,
24211 [1]や[17]などの連番ラベルを出力します.著者-出版年形式の引用を使用している場合で,
24212 同じ著者-出版年の組み合わせが複数ある場合,
24213 \SpecialChar LyX
24214 は,
24215 Bib\SpecialChar TeX
24216 が行うように出版年に小文字を付します.ラベルは,
24217 書誌情報項目とともに印字されます.現在のところ,
24218 角括弧を丸括弧に変更するなど,
24219 ラベルの外見を変更する手段はありませんのでご注意ください.
24220 \end_layout
24221
24222 \begin_layout Standard
24223 書誌情報出力は,
24224 引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,
24225 XHTML出力は,
24226 引用ダイアログで特定の文献項目を表示させた時のものに非常によく似ています.整形の仕方は,
24227 レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,
24228 取扱説明書『カスタマイズ篇』をご覧ください.
24229 \end_layout
24230
24231 \begin_layout Standard
24232 現在のところ,
24233 主だった瑕疵は,
24234 相互参照された情報が,
24235 関連した項目の全てに印字されてしまうことです.つまり,
24236 以下のような表示が為されます.
24237 \end_layout
24238
24239 \begin_layout Quote
24240 Jason Stanley,
24241  
24242 \begin_inset Quotes eld
24243 \end_inset
24244
24245 Context and Logical Form
24246 \begin_inset Quotes erd
24247 \end_inset
24248
24249 ,
24250  in 
24251 \emph on
24252 Language in Context:
24253  Selected Essays
24254 \emph default
24255  (Oxford:
24256  Oxford University Press,
24257  2007),
24258  pp.
24259  30–68.
24260 \end_layout
24261
24262 \begin_layout Quote
24263 Jason Stanley,
24264  
24265 \begin_inset Quotes eld
24266 \end_inset
24267
24268 Semantics in Context
24269 \begin_inset Quotes erd
24270 \end_inset
24271
24272 ,
24273  in 
24274 \emph on
24275 Language in Context:
24276  Selected Essays
24277 \emph default
24278  (Oxford:
24279  Oxford University Press,
24280  2007),
24281  pp.
24282  201–30.
24283 \end_layout
24284
24285 \begin_layout Standard
24286 これは,
24287 遠くないうちに修正されるでしょう.
24288 \end_layout
24289
24290 \begin_layout Standard
24291 現在のところ,
24292 節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,
24293 \SpecialChar LyX
24294 は同じ情報を繰り返し出力してしまいます.
24295 \end_layout
24296
24297 \begin_layout Section
24298 索引
24299 \end_layout
24300
24301 \begin_layout Standard
24302 \SpecialChar LyX
24303 は,
24304 索引をXHTMLとして書きだすことができますが,
24305 現在のところ,
24306 若干の制約があります.
24307 \end_layout
24308
24309 \begin_layout Standard
24310 索引の書き出しは,
24311 ユーザーの手引きの索引の節に書かれているような手の込んだ方法を使おうとしないほうが,
24312 信頼性が保てます
24313 \begin_inset Foot
24314 status collapsed
24315
24316 \begin_layout Plain Layout
24317 ここでの主な問題は,
24318 これらの操作の際に,
24319 \SpecialChar LyX
24320 自身は何もしていないという点です.つまり,
24321 生の\SpecialChar LaTeX
24322 で入力しなくてはならないようなものをそのまま入力しているのです.
24323 \end_layout
24324
24325 \end_inset
24326
24327 .当該節の小節見出しに沿って,
24328 それらがどう処理されるかを説明しましょう.
24329 \end_layout
24330
24331 \begin_layout Itemize
24332 索引項目のグループ化(下層項目):
24333  \SpecialChar LyX
24334 はこれらをサポートしようと努めていますが,
24335 項目は「 !
24336  」(感嘆符の周りに空白)で分離しなくてはなりません.これは,
24337 そうしないと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
24338 \end_layout
24339
24340 \begin_layout Itemize
24341 ページ範囲:
24342  ページ範囲については,
24343 XHTMLでは意味がないので,
24344 全くサポートされません.その代わりに,
24345 引用項目のはじめと終わりの頁それぞれに,
24346 2つの索引項目が得られるだけです.
24347 \end_layout
24348
24349 \begin_layout Itemize
24350 相互参照:
24351  相互参照のサポートはありません.\SpecialChar LyX
24352 が「|see\SpecialChar ldots
24353 」という下だりを持つ項目を検出すると,
24354 その部分はただ無視されて,
24355 残りの部分が通常の索引項目だとみなされます.
24356 \end_layout
24357
24358 \begin_layout Itemize
24359 索引項目の整序:
24360  \SpecialChar LyX
24361 は整序順の変更をサポートします.\SpecialChar LyX
24362 は,
24363 最初に検出した「@」の前の部分を取り出して,
24364 それを整序に用い,
24365 最初の「@」の後の部分を実際の項目として取り出します.現在のところ,
24366 \SpecialChar LyX
24367 はエスケープされた「@」を取り扱わないので,
24368 電子メールアドレスを索引に使わないでください.
24369 \end_layout
24370
24371 \begin_layout Itemize
24372 索引項目のレイアウト:
24373  項目は,
24374 テキスト様式ダイアログを使うなり,
24375 \SpecialChar LyX
24376 内で使用可能な方法を用いることで,
24377 索引項目を成形することができます.「項目|textbf」のような文法はサポートされません.\SpecialChar LyX
24378 は,
24379 項目内にパイプ記号「|」を検出すると,
24380 パイプ記号とその後に続くものすべてを削除してしまいます.
24381 \end_layout
24382
24383 \begin_layout Itemize
24384 複数の索引:
24385  複数の索引はサポートされていません.すべての項目は,
24386 ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,
24387 中心となる索引だけを印字しますので,
24388 その索引は必ず置くようにしてください.
24389 \end_layout
24390
24391 \begin_layout Section
24392 記号一覧および用語集
24393 \end_layout
24394
24395 \begin_layout Standard
24396 現在のところ,
24397 用語集のサポートはありません.この機能の追加は,
24398 比較的容易だと思われますので,
24399 あなたの貢献をお待ちしております.
24400 \end_layout
24401
24402 \begin_layout Chapter
24403 DocBook出力
24404 \end_layout
24405
24406 \begin_layout Standard
24407 \SpecialChar LyX
24408 は,
24409 HTML以外にDocBook XMLで書かれた文書を生成することができます.第2.3版以前では,
24410 DocBook文書(第4版のみ)を生成するのに限られたひな型しか使えませんでした.\SpecialChar LyX
24411 第2.4版からは,
24412 ほとんどの\SpecialChar LyX
24413 レイアウトが,
24414 有効なDocBook文書(第5版のみ)を生成することができます.この機能は\SpecialChar LyX
24415 に組み込まれ,
24416 外部ツールを使用する必要はありません.
24417 \end_layout
24418
24419 \begin_layout Standard
24420 結果として,
24421 DocBook出力は,
24422 レイアウトファイルとモジュールを通じて,
24423 \SpecialChar LaTeX
24424 出力とまったく同じように調整し拡張することができます.詳細については,
24425 取扱説明書『カスタマイズ篇』第5章を参照してください.
24426 \end_layout
24427
24428 \begin_layout Standard
24429 数式出力のような,
24430 ほとんどの\SpecialChar LyX
24431 の機能はDocBookでサポートされています.
24432 \end_layout
24433
24434 \begin_layout Itemize
24435 数式出力は,
24436 ほとんどMathMLで処理されます(主要な例外には\SpecialChar LyX
24437 でサポートされない構成物,
24438 すなわちERTがあります).すべての数式はraw \SpecialChar TeX
24439 としてDocBook出力に渡し,
24440 さらなる処理に回すこともできます.
24441 \end_layout
24442
24443 \begin_layout Itemize
24444 書誌情報と引用は,
24445 外部BibTeXファイルの使用を含めて実装されています.文献項目は,
24446 詳細な情報がわかるとき表示はされませんが,
24447 標準的なDocBook構成物として出力はされます.項目の表示は,
24448 外部DocBookプロセッサが行うものと想定されています.
24449 \end_layout
24450
24451 \begin_layout Itemize
24452 索引は,
24453 複数索引を含めてサポートされています.グループ化(
24454 \family typewriter
24455 !
24456 \family default
24457 使用)・ページ範囲・相互参照(
24458 \family typewriter
24459 |see
24460 \family default
24461 )は,
24462 エスケープすることも含めてサポートされています.項目順序(
24463 \family typewriter
24464 @
24465 \family default
24466 )やレイアウト(
24467 \family typewriter
24468 |mathbf
24469 \family default
24470 )はサポートされていません.索引項目のエスケープはサポートされていません.
24471 \end_layout
24472
24473 \begin_layout Itemize
24474 用語集は実装されています.
24475 \end_layout
24476
24477 \begin_layout Standard
24478 以下の2つの主要パラメーターを文書レベルで設定することができます.
24479 \end_layout
24480
24481 \begin_layout Itemize
24482 表の形式:
24483 \SpecialChar LyX
24484 は,
24485 ユーザーの要請に応じて,
24486 表をHTML(既定値)もしくはCALSとして生成することができます.ほとんどのDocBookプロセッサは,
24487 両方の形式を受け付けます.
24488 \end_layout
24489
24490 \begin_layout Itemize
24491 MathMLプレフィックス:
24492 DocBookでは,
24493 HTMLと違って,
24494 MathMLが自身のネームスペース内に包摂されています.すなわち,
24495 MathML標準に従うタグを示さなくてはならないということです.以下の3つの選択肢が提供されています.
24496 \end_layout
24497
24498 \begin_deeper
24499 \begin_layout Itemize
24500 インライン:
24501 MathMLネームスペースは(各数式の
24502 \family sans
24503 xmlns
24504 \family default
24505 属性を使用して)各数式用に定義されます
24506 \end_layout
24507
24508 \begin_layout Itemize
24509
24510 \family sans
24511 m
24512 \family default
24513 プレフィックス使用(既定値):
24514 MathMLネームスペースは(ルート要素で
24515 \family sans
24516 xmlns:m
24517 \family default
24518 属性を使用して)文書レベルで定義されます.各MathMLは
24519 \family sans
24520 m:math
24521 \family default
24522 のように
24523 \family sans
24524 m
24525 \family default
24526 プレフィックスを使用します.
24527 \end_layout
24528
24529 \begin_layout Itemize
24530
24531 \family sans
24532 mml
24533 \family default
24534 プレフィックス使用:
24535
24536 \family sans
24537 m
24538 \family default
24539 オプションに類似ですが
24540 \family sans
24541 mml
24542 \family default
24543 を使用します
24544 \end_layout
24545
24546 \begin_layout Standard
24547 このオプションは,
24548 \SpecialChar LyX
24549 を個人的なスタイルに合わせたい場合や,
24550 MathML用に一つのプレフィックスしか受け付けないバグ付きソフトウェアを使用する際に,
24551 とくに役に立ちます.
24552 \end_layout
24553
24554 \end_deeper
24555 \begin_layout Chapter
24556 \SpecialChar LyX
24557 サーバー
24558 \end_layout
24559
24560 \begin_layout Section
24561 はじめに
24562 \end_layout
24563
24564 \begin_layout Standard
24565 「\SpecialChar LyX
24566 サーバー」を使用すると,
24567 他のプログラムが,
24568 \SpecialChar LyX
24569 と通信したり,
24570 \SpecialChar LyX
24571 コマンドを実行させたり,
24572 \SpecialChar LyX
24573 の内部状態に関する情報を取得したりすることができるようになります.これは熟練したユーザー向けの機能ですが,
24574 便利なはずです.たとえば,
24575 \SpecialChar LyX
24576 サーバーに書き込むことによって,
24577 JabRefのような書誌情報管理ソフトが,
24578 LyXに文献引用を「押し込む」ことが可能となります.
24579 \end_layout
24580
24581 \begin_layout Section
24582 \SpecialChar LyX
24583 サーバーを開始するには
24584 \begin_inset CommandInset label
24585 LatexCommand label
24586 name "sec:サーバーを開始するには"
24587
24588 \end_inset
24589
24590
24591 \end_layout
24592
24593 \begin_layout Standard
24594 \SpecialChar LyX
24595 サーバーは,
24596 名前をつけたパイプの対を利用することで機能します.パイプは,
24597 通常
24598 \begin_inset Flex Code
24599 status collapsed
24600
24601 \begin_layout Plain Layout
24602 UserDir
24603 \end_layout
24604
24605 \end_inset
24606
24607 の下に作られ(Windowsを除く.Windowsでは,
24608 名前を付けた
24609 \emph on
24610 ローカルの
24611 \emph default
24612 パイプは
24613 \begin_inset Flex Code
24614 status collapsed
24615
24616 \begin_layout Plain Layout
24617
24618 \backslash
24619
24620 \backslash
24621 .
24622 \backslash
24623 pipe
24624 \end_layout
24625
24626 \end_inset
24627
24628 に特別なオブジェクトとして置かれます),
24629
24630 \begin_inset Flex Code
24631 status collapsed
24632
24633 \begin_layout Plain Layout
24634 .lyxpipe.in
24635 \end_layout
24636
24637 \end_inset
24638
24639 」および「
24640 \begin_inset Flex Code
24641 status collapsed
24642
24643 \begin_layout Plain Layout
24644 .lyxpipe.out
24645 \end_layout
24646
24647 \end_inset
24648
24649 」という名前がついています.外部プログラムは,
24650
24651 \begin_inset Flex Code
24652 status collapsed
24653
24654 \begin_layout Plain Layout
24655 .lyxpipe.in
24656 \end_layout
24657
24658 \end_inset
24659
24660 に書き込みを行い,
24661 戻りデータを
24662 \begin_inset Flex Code
24663 status collapsed
24664
24665 \begin_layout Plain Layout
24666 .lyxpipe.out
24667 \end_layout
24668
24669 \end_inset
24670
24671 から読み出します.パイプ名の語幹は,
24672
24673 \begin_inset Flex MenuItem
24674 status collapsed
24675
24676 \begin_layout Plain Layout
24677 ツール\SpecialChar menuseparator
24678 設定
24679 \end_layout
24680
24681 \end_inset
24682
24683 から,
24684 たとえば「
24685 \begin_inset Flex Code
24686 status collapsed
24687
24688 \begin_layout Plain Layout
24689 /home/myhome/lyxpipe
24690 \end_layout
24691
24692 \end_inset
24693
24694 」あるいはWindowsでは「
24695 \begin_inset Flex Code
24696 status collapsed
24697
24698 \begin_layout Plain Layout
24699
24700 \backslash
24701
24702 \backslash
24703 .
24704 \backslash
24705 pipe
24706 \backslash
24707 lyxpipe
24708 \end_layout
24709
24710 \end_inset
24711
24712 」などに設定することができます(ここで,
24713 lyxpipe以外の任意のファイルパス,
24714 例えば
24715 \begin_inset Flex Code
24716 status collapsed
24717
24718 \begin_layout Plain Layout
24719 "
24720 \backslash
24721
24722 \backslash
24723 .
24724 \backslash
24725 pipe
24726 \backslash
24727 my
24728 \backslash
24729 lyx
24730 \backslash
24731 pipe"
24732 \end_layout
24733
24734 \end_inset
24735
24736 なども使用できます).サーバーを開始するためには,
24737 これを
24738 \emph on
24739 手動で設定しなくてはなりません
24740 \emph default
24741
24742 \end_layout
24743
24744 \begin_layout Standard
24745 \SpecialChar LyX
24746 は,
24747 パイプを生成するに際して,
24748
24749 \begin_inset Flex Code
24750 status collapsed
24751
24752 \begin_layout Plain Layout
24753 .in
24754 \end_layout
24755
24756 \end_inset
24757
24758 」および「
24759 \begin_inset Flex Code
24760 status collapsed
24761
24762 \begin_layout Plain Layout
24763 .out
24764 \end_layout
24765
24766 \end_inset
24767
24768 」を付け加えます.パイプがすでに存在していれば,
24769 \SpecialChar LyX
24770 は他の\SpecialChar LyX
24771 プロセスがすでに実行中であると判断して,
24772 サーバーを開始しません.POSIX(Unix型)システムでは,
24773 なんらかの理由で,
24774 \SpecialChar LyX
24775 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,
24776 \SpecialChar LyX
24777 はこれを削除しようとします.何らかの理由でこれが失敗した場合,
24778 手動でパイプを削除したのちに,
24779 \SpecialChar LyX
24780 を再起動する必要があります.Windowsでは,
24781 プログラムが終了したりクラッシュしたりすると,
24782 OSがパイプを削除するので,
24783 「古い」パイプが残ることはありません.
24784 \end_layout
24785
24786 \begin_layout Standard
24787 サーバーを使用する\SpecialChar LyX
24788 プロセスを複数起動するには,
24789 それぞれのプロセスに,
24790 別のユーザーディレクトリを使用させたり,
24791 別々の
24792 \begin_inset Flex Code
24793 status collapsed
24794
24795 \begin_layout Plain Layout
24796 preferences
24797 \end_layout
24798
24799 \end_inset
24800
24801 ファイルを使用させるなど,
24802 別々の設定を使用する必要があります.
24803 \end_layout
24804
24805 \begin_layout Standard
24806 クライアントプログラムを開発しようとされているのであれば,
24807 \SpecialChar LyX
24808 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,
24809 Lyxを
24810 \begin_inset Flex Code
24811 status collapsed
24812
24813 \begin_layout Plain Layout
24814 lyx -dbg lyxserver
24815 \end_layout
24816
24817 \end_inset
24818
24819 として起動してください.
24820 \end_layout
24821
24822 \begin_layout Standard
24823 C++言語で書かれた完全なサンプルクライアントが,
24824 ソース頒布版の
24825 \begin_inset Newline newline
24826 \end_inset
24827
24828
24829 \begin_inset Flex Code
24830 status collapsed
24831
24832 \begin_layout Plain Layout
24833 development/lyxserver/server_monitor.cpp
24834 \end_layout
24835
24836 \end_inset
24837
24838 にあります.
24839 \end_layout
24840
24841 \begin_layout Standard
24842 もう一つの便利なツールとして,
24843
24844 \begin_inset Flex Code
24845 status collapsed
24846
24847 \begin_layout Plain Layout
24848 src/client/lyxclient
24849 \end_layout
24850
24851 \end_inset
24852
24853 にあるコマンドラインベースのクライアントがあります.
24854 \end_layout
24855
24856 \begin_layout Section
24857 通常の通信
24858 \end_layout
24859
24860 \begin_layout Standard
24861 \SpecialChar LyX
24862 コールを発行するには,
24863 クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,
24864 以下の書式を持ちます.
24865 \end_layout
24866
24867 \begin_layout Quote
24868 LYXCMD:
24869 \emph on
24870 クライアント名
24871 \emph default
24872 :
24873 \emph on
24874 関数
24875 \emph default
24876 :
24877 \emph on
24878 引数
24879 \end_layout
24880
24881 \begin_layout Description
24882 クライアント名 は,
24883 クライアントが自由に選べる名前です.これが用いられるのは,
24884 クライアントが他の要求クライアントから結果を見分けることができるように,
24885 \SpecialChar LyX
24886 が返答をする際,
24887 クライアント名をエコーするときだけです.
24888 \end_layout
24889
24890 \begin_layout Description
24891 関数 は,
24892 \SpecialChar LyX
24893 に実行させたい関数です.これは,
24894 ミニバッファで使用するコマンドと同じです.
24895 \end_layout
24896
24897 \begin_layout Description
24898 引数 は,
24899 一部の関数のみに効力を持つオプションの引数です(たとえば,
24900 「自己挿入」LFUNは,
24901 現在のカーソル位置に引数を文章として挿入します).
24902 \end_layout
24903
24904 \begin_layout Standard
24905 \SpecialChar LyX
24906 からの返答は,
24907 出力パイプに送り出され,
24908
24909 \end_layout
24910
24911 \begin_layout Quote
24912 INFO:
24913 \emph on
24914 クライアント名
24915 \emph default
24916 :
24917 \emph on
24918 関数
24919 \emph default
24920 :
24921 \emph on
24922 データ
24923 \end_layout
24924
24925 \begin_layout Standard
24926 の書式をしています.ここで
24927 \emph on
24928 クライアント名
24929 \emph default
24930
24931 \emph on
24932 関数
24933 \emph default
24934 は,
24935 コマンド要求からそのままエコーされますが,
24936
24937 \emph on
24938 データ
24939 \emph default
24940 はコマンド実行の結果に依存した,
24941 多少なりとも有用な情報です.「font-state」のような一部のコマンドは,
24942 \SpecialChar LyX
24943 の内部状態に関する情報を返しますが,
24944 空のデータ応答を返すものもあります.空のデータ返答は,
24945 コマンド実行が無事終わったことを意味します.
24946 \end_layout
24947
24948 \begin_layout Standard
24949 エラーが発生した場合の\SpecialChar LyX
24950 の返答は
24951 \end_layout
24952
24953 \begin_layout Quote
24954 ERROR:
24955 \emph on
24956 クライアント名
24957 \emph default
24958 :
24959 \emph on
24960 関数
24961 \emph default
24962 :
24963 \emph on
24964 エラーメッセージ
24965 \end_layout
24966
24967 \begin_layout Standard
24968 の書式をしており,
24969
24970 \emph on
24971 エラーメッセージ
24972 \emph default
24973 には,
24974 なぜコマンドが失敗したかの説明が入っているはずです.
24975 \end_layout
24976
24977 \begin_layout Standard
24978 (例)
24979 \end_layout
24980
24981 \begin_layout LyX-Code
24982 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
24983 \begin_inset Newline newline
24984 \end_inset
24985
24986 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
24987 \begin_inset Newline newline
24988 \end_inset
24989
24990 read a <~/.lyxpipe.out
24991 \begin_inset Newline newline
24992 \end_inset
24993
24994 echo $a
24995 \end_layout
24996
24997 \begin_layout Subsection
24998 AppleScript (Mac OS X)
24999 \end_layout
25000
25001 \begin_layout Standard
25002 \SpecialChar LyX
25003  2.1以降,
25004 \SpecialChar LyX
25005 は,
25006 コマンド実行を通じた通常のコミュニケーションのために,
25007 AppleScriptを使った基本的なやりとりをサポートしています.このコマンドは,
25008 直接引数(実行する
25009 \series bold
25010 function)
25011 \series default
25012 とオプション引数を取ります.これは,
25013 関数の出力を返すか,
25014 エラーをトリガーして,
25015 エラーメッセージとコードを表示します.
25016 \end_layout
25017
25018 \begin_layout Standard
25019 以下は例です.
25020 \end_layout
25021
25022 \begin_layout LyX-Code
25023 tell application "\SpecialChar LyX
25024 "
25025 \end_layout
25026
25027 \begin_layout LyX-Code
25028   try
25029 \end_layout
25030
25031 \begin_layout LyX-Code
25032     -- Stores the current file name into f
25033 \end_layout
25034
25035 \begin_layout LyX-Code
25036     set f to (run "server-get-filename" with argument "")
25037 \end_layout
25038
25039 \begin_layout LyX-Code
25040     on error the error_message number the error_number
25041 \end_layout
25042
25043 \begin_layout LyX-Code
25044       display dialog "Error:
25045  " & the error_number & ".
25046  " ¬
25047 \end_layout
25048
25049 \begin_layout LyX-Code
25050               & the error_message buttons {"OK"} default button 1
25051 \end_layout
25052
25053 \begin_layout LyX-Code
25054   end try
25055 \end_layout
25056
25057 \begin_layout LyX-Code
25058 end tell
25059 \end_layout
25060
25061 \begin_layout Section
25062 通知
25063 \end_layout
25064
25065 \begin_layout Standard
25066 \SpecialChar LyX
25067 は,
25068 発生しているイベントを,
25069 非同期的にクライアントに通知することができます.いまのところ,
25070 ユーザーがあるキー列を関数「notify」に割り当てているときのみ,
25071 \SpecialChar LyX
25072 はこの通知を行います.\SpecialChar LyX
25073 が送る文字列の書式は
25074 \end_layout
25075
25076 \begin_layout Quote
25077 \begin_inset Flex Code
25078 status collapsed
25079
25080 \begin_layout Plain Layout
25081 NOTIFY:
25082 \end_layout
25083
25084 \end_inset
25085
25086
25087 \emph on
25088 キー列
25089 \end_layout
25090
25091 \begin_layout Standard
25092 となっていて,
25093
25094 \emph on
25095 キー列
25096 \emph default
25097 は,
25098 ユーザーが実際に打鍵したキー列の印字表現になります.
25099 \end_layout
25100
25101 \begin_layout Standard
25102 この機構は,
25103 \SpecialChar LyX
25104 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかのキー列を「notify」に割り当ててください.それから出力パイプで待機するクライアントを起動し,
25105 キー列に応じたコマンドを読み込み,
25106 一つないし複数の\SpecialChar LyX
25107 コマンドを発行する\SpecialChar LyX
25108 要求と\SpecialChar LyX
25109 コールを使用する関数を開始するのです.
25110 \end_layout
25111
25112 \begin_layout Section
25113 単純な\SpecialChar LyX
25114 サーバープロトコル
25115 \end_layout
25116
25117 \begin_layout Standard
25118 \SpecialChar LyX
25119 は,
25120 セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,
25121 すべて
25122 \end_layout
25123
25124 \begin_layout Quote
25125 LYXSRV:
25126 \emph on
25127 クライアント名
25128 \emph default
25129 :
25130 \emph on
25131 プロトコルメッセージ
25132 \end_layout
25133
25134 \begin_layout Standard
25135 の書式をしており,
25136
25137 \emph on
25138 プロトコルメッセージ
25139 \emph default
25140 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,
25141 \SpecialChar LyX
25142 はメッセージを聴いていることをクライアントに伝えるために返答をし,
25143 \SpecialChar LyX
25144 が終了することをクライアントに伝えるのには,
25145 \SpecialChar LyX
25146 が「bye」を送信します.
25147 \end_layout
25148
25149 \begin_layout Section
25150 DVIとPDFの原文検索
25151 \end_layout
25152
25153 \begin_layout Standard
25154 DVI/PDFビューア
25155 \begin_inset Foot
25156 status collapsed
25157
25158 \begin_layout Plain Layout
25159 PDFの原文検索機能を提供しているビューアには,
25160 KDE/Linux上のOkularと
25161 \lang english
25162 Qpdfview on Unix
25163 \lang japanese
25164 とMac OS X上のSkim,
25165 Windows上のSumatraPDFがあります.
25166 \end_layout
25167
25168 \end_inset
25169
25170 には,
25171 原文検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,
25172 DVI/PDF出力の特定の場所をクリックすることによって,
25173 \SpecialChar LyX
25174 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,
25175 ビューアは\SpecialChar LyX
25176 と情報交換を行う必要があります.これは,
25177 命名パイプ(
25178 \emph on
25179 lyxpipe
25180 \emph default
25181 )を使用するか,
25182 \SpecialChar LyX
25183 が作業ディレクトリに生成するUNIXドメインソケット(
25184 \emph on
25185 lyxsocket
25186 \emph default
25187 )を使用する(これは
25188 \begin_inset Flex Code
25189 status collapsed
25190
25191 \begin_layout Plain Layout
25192 lyxclient
25193 \end_layout
25194
25195 \end_inset
25196
25197 プログラムが\SpecialChar LyX
25198 と通信するのに使用している方法です)ことで,
25199 \SpecialChar LyX
25200 サーバを経由して実現することができます.場合によっては,
25201 ビューアと\SpecialChar LyX
25202 を橋渡しする補助スクリプトを必要とすることがあるかもしれませんが,
25203 それ以外は,
25204 ビューアは\SpecialChar LyX
25205 と直接通信することができます.これは,
25206 選んだビューアと基本ソフトに依存します.また,
25207 必要とされるビューアの設定法と原文検索が実際に行われる方法とにも依存します.したがって,
25208 下記では個々のビューア毎の原文検索の設定の仕方を説明することとします.その前に,
25209 DVI/PDF出力で原文検索を有効にするためには,
25210 一般に何が必要とされるかを説明します.
25211 \end_layout
25212
25213 \begin_layout Subsection
25214 \begin_inset CommandInset label
25215 LatexCommand label
25216 name "subsec:原文検索"
25217
25218 \end_inset
25219
25220 自動有効化
25221 \end_layout
25222
25223 \begin_layout Standard
25224 ツールバーで
25225 \begin_inset Info
25226 type  "icon"
25227 arg   "buffer-toggle-output-sync"
25228 \end_inset
25229
25230 ボタンを押せば,
25231 ほとんどの場合,
25232 \SpecialChar LyX
25233 がすべてをうまくこなしてくれます.あるいは,
25234
25235 \begin_inset Flex MenuItem
25236 status collapsed
25237
25238 \begin_layout Plain Layout
25239 文書\SpecialChar menuseparator
25240 設定\SpecialChar menuseparator
25241 形式
25242 \end_layout
25243
25244 \end_inset
25245
25246 メニューで
25247 \begin_inset Flex MenuItem
25248 status collapsed
25249
25250 \begin_layout Plain Layout
25251 出力と同期
25252 \end_layout
25253
25254 \end_inset
25255
25256 にチェックを入れることで有効にすることもできます.その場合,
25257 \SpecialChar LyX
25258 は,
25259 自動的に,
25260 必要なSync\SpecialChar TeX
25261 マクロ(PDFの場合)や,
25262 srcltxパッケージ(DVIの場合)を挿入してくれます.このオプションは,
25263
25264 \begin_inset Flex MenuItem
25265 status collapsed
25266
25267 \begin_layout Plain Layout
25268 表示/更新
25269 \end_layout
25270
25271 \end_inset
25272
25273 ツールバーからも容易にアクセスすることができます.
25274 \end_layout
25275
25276 \begin_layout Standard
25277 もし,
25278 これとは別の設定が必要な場合には,
25279
25280 \begin_inset Flex MenuItem
25281 status collapsed
25282
25283 \begin_layout Plain Layout
25284 文書\SpecialChar menuseparator
25285 設定\SpecialChar menuseparator
25286 出力\SpecialChar menuseparator
25287 出力と同期
25288 \end_layout
25289
25290 \end_inset
25291
25292 の直下にあるドロップダウンボックスから,
25293 自製マクロを選択ないし入力することができます.
25294 \end_layout
25295
25296 \begin_layout Standard
25297 方式として
25298 \begin_inset Flex Code
25299 status collapsed
25300
25301 \begin_layout Plain Layout
25302
25303 \backslash
25304 synctex=1
25305 \end_layout
25306
25307 \end_inset
25308
25309 を用いると,
25310 gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,
25311 代わりに
25312 \begin_inset Flex Code
25313 status collapsed
25314
25315 \begin_layout Plain Layout
25316
25317 \backslash
25318 synctex=-1
25319 \end_layout
25320
25321 \end_inset
25322
25323 を指定してください.
25324 \end_layout
25325
25326 \begin_layout Standard
25327 また,
25328
25329 \begin_inset Flex Code
25330 status collapsed
25331
25332 \begin_layout Plain Layout
25333 srcltx
25334 \end_layout
25335
25336 \end_inset
25337
25338 パッケージや
25339 \begin_inset Flex Code
25340 status collapsed
25341
25342 \begin_layout Plain Layout
25343 src-specials
25344 \end_layout
25345
25346 \end_inset
25347
25348 を取り込むと,
25349 組版上,
25350 不具合が生じることがあるのでご注意ください.したがって,
25351
25352 \begin_inset Flex Code
25353 status collapsed
25354
25355 \begin_layout Plain Layout
25356 srcltx
25357 \end_layout
25358
25359 \end_inset
25360
25361 パッケージや
25362 \begin_inset Flex Code
25363 status collapsed
25364
25365 \begin_layout Plain Layout
25366 src-specials
25367 \end_layout
25368
25369 \end_inset
25370
25371 を使用している場合には,
25372 最終版を組版する際には,
25373 出力同期を無効にするべきです.
25374 \end_layout
25375
25376 \begin_layout Standard
25377 自動設定でカバーされている範囲よりも,
25378 さらに特殊なものが必要な場合には,
25379 出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,
25380 自動設定・手動設定ともに必要となるビューア上の設定を述べた,
25381
25382 \begin_inset CommandInset ref
25383 LatexCommand ref
25384 reference "subsec:特定のビューアを設定して使うには"
25385 nolink "false"
25386
25387 \end_inset
25388
25389 節に進むことができます.
25390 \end_layout
25391
25392 \begin_layout Subsection
25393 手動有効化
25394 \end_layout
25395
25396 \begin_layout Standard
25397 \SpecialChar LaTeX
25398 は,
25399 原文検索のために複数の方法を提供しています.ある方法は
25400 \begin_inset Flex Code
25401 status collapsed
25402
25403 \begin_layout Plain Layout
25404 latex/pdflatex
25405 \end_layout
25406
25407 \end_inset
25408
25409 プログラムに組み込まれており,
25410 他の方法は外部パッケージとして提供されています.どちらを選択するかは,
25411 お使いの\SpecialChar LaTeX
25412 頒布版が既に特定の方法を提供しているか(組み込みによる方法は比較的新しいものです)と,
25413 お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
25414 \end_layout
25415
25416 \begin_layout Subsubsection*
25417 src-special経由のDVI組み込み検索(DVIのみ)
25418 \end_layout
25419
25420 \begin_layout Standard
25421 この方法は,
25422 DVIファイルに原文検索に必要な情報を追加するものです.これは,
25423 かなり前の\SpecialChar LaTeX
25424 から利用可能となっており(比較的最近の\SpecialChar LaTeX
25425 頒布版はすべて対応しています),
25426 安定して動作します.これを有効にするには,
25427
25428 \begin_inset Flex MenuItem
25429 status collapsed
25430
25431 \begin_layout Plain Layout
25432 設定\SpecialChar menuseparator
25433 ファイル処理\SpecialChar menuseparator
25434 変換子
25435 \end_layout
25436
25437 \end_inset
25438
25439
25440 \begin_inset Flex MenuItem
25441 status collapsed
25442
25443 \begin_layout Plain Layout
25444 LaTeX (plain)->DVI
25445 \end_layout
25446
25447 \end_inset
25448
25449 ないし
25450 \begin_inset Flex MenuItem
25451 status collapsed
25452
25453 \begin_layout Plain Layout
25454 LaTeX (plain)->DraftDVI
25455 \end_layout
25456
25457 \end_inset
25458
25459 変換子を
25460 \begin_inset Flex Code
25461 status collapsed
25462
25463 \begin_layout Plain Layout
25464 latex -src-specials $$i
25465 \end_layout
25466
25467 \end_inset
25468
25469 に変更します.もしこれが動作しないときは,
25470 お使いの\SpecialChar LaTeX
25471 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
25472 \end_layout
25473
25474 \begin_layout Subsubsection*
25475 外部パッケージ(PDFSyncおよびsrcltx)
25476 \end_layout
25477
25478 \begin_layout Standard
25479
25480 \emph on
25481 pdfsync
25482 \emph default
25483 および
25484 \emph on
25485 srcltx
25486 \emph default
25487 パッケージは,
25488 PDF出力(pdflatex経由)およびDVI出力での原文検索を提供します.これを有効にするには,
25489 \SpecialChar LyX
25490 プリアンブルで以下のようにパッケージを読み込んでください.
25491 \end_layout
25492
25493 \begin_layout Itemize
25494 PDFの原文検索には
25495 \begin_inset Flex Code
25496 status collapsed
25497
25498 \begin_layout Plain Layout
25499
25500 \backslash
25501 usepackage{pdfsync}
25502 \end_layout
25503
25504 \end_inset
25505
25506
25507 \end_layout
25508
25509 \begin_layout Itemize
25510 DVIの原文検索には
25511 \begin_inset Flex Code
25512 status collapsed
25513
25514 \begin_layout Plain Layout
25515
25516 \backslash
25517 usepackage[active]{srcltx}
25518 \end_layout
25519
25520 \end_inset
25521
25522
25523 \end_layout
25524
25525 \begin_layout Standard
25526 と書きます.DVIとPDFの両方の原文検索を実行できるようにするためには,
25527 プリアンブルに以下の行を挿入する方法があります.
25528 \end_layout
25529
25530 \begin_layout LyX-Code
25531
25532 \backslash
25533 usepackage{ifpdf}
25534 \begin_inset Newline newline
25535 \end_inset
25536
25537
25538 \backslash
25539 ifpdf
25540 \begin_inset Newline newline
25541 \end_inset
25542
25543   
25544 \backslash
25545 usepackage{pdfsync}
25546 \begin_inset Newline newline
25547 \end_inset
25548
25549
25550 \backslash
25551 else
25552 \begin_inset Newline newline
25553 \end_inset
25554
25555   
25556 \backslash
25557 usepackage[active]{srcltx}
25558 \begin_inset Newline newline
25559 \end_inset
25560
25561
25562 \backslash
25563 fi
25564 \end_layout
25565
25566 \begin_layout Standard
25567 このようにすれば,
25568 DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,
25569 ファイルを閲覧することができます.
25570 \end_layout
25571
25572 \begin_layout Standard
25573 なお,
25574 PDFSyncは,
25575 文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,
25576 仕上がり文書ではPDFSyncを無効にすることをお勧めします.
25577 \end_layout
25578
25579 \begin_layout Subsubsection*
25580 Sync\SpecialChar TeX
25581 を使った組み込み原文検索(DVIおよびPDF)
25582 \end_layout
25583
25584 \begin_layout Standard
25585 \begin_inset Flex Code
25586 status collapsed
25587
25588 \begin_layout Plain Layout
25589 (pdf)latex
25590 \end_layout
25591
25592 \end_inset
25593
25594 の最近のバージョンは,
25595 PDFおよびDVI両方の原文検索を組み込みでサポートしています.このいわゆる
25596 \emph on
25597 Sync\SpecialChar TeX
25598
25599 \emph default
25600 機能は,
25601 主に,
25602 PDFSyncパッケージをpdftexプログラムへ統合したことと,
25603 それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用するためには,
25604 少なくとも\SpecialChar TeX
25605 Live 2008か最近のMik\SpecialChar TeX
25606 頒布版が必要です.また,
25607 既にSync\SpecialChar TeX
25608 サポートを提供しているPDFビューアは少ししかありません(UNIX上のOkularとQpdfview,
25609 Mac上のSkim,
25610 及びWindows上のSumatraPDFなど.詳細は次節を参照のこと).
25611 \end_layout
25612
25613 \begin_layout Standard
25614 DVI出力でSync\SpecialChar TeX
25615 を有効にするには,
25616
25617 \begin_inset Flex MenuItem
25618 status collapsed
25619
25620 \begin_layout Plain Layout
25621 設定\SpecialChar menuseparator
25622 ファイル処理\SpecialChar menuseparator
25623 変換子
25624 \end_layout
25625
25626 \end_inset
25627
25628
25629 \begin_inset Flex Noun
25630 status collapsed
25631
25632 \begin_layout Plain Layout
25633 LaTeX (plain) -> DVI
25634 \end_layout
25635
25636 \end_inset
25637
25638 ないし
25639 \begin_inset Flex Noun
25640 status collapsed
25641
25642 \begin_layout Plain Layout
25643 LaTeX (plain) -> DraftDVI
25644 \end_layout
25645
25646 \end_inset
25647
25648 変換子を
25649 \begin_inset Flex Code
25650 status collapsed
25651
25652 \begin_layout Plain Layout
25653 latex -synctex=1 $$i
25654 \end_layout
25655
25656 \end_inset
25657
25658 に変更します.PDF出力用には,
25659
25660 \begin_inset Flex Noun
25661 status collapsed
25662
25663 \begin_layout Plain Layout
25664 LaTeX (pdflatex) -> PDF (pdflatex)
25665 \end_layout
25666
25667 \end_inset
25668
25669 変換子を
25670 \begin_inset Flex Code
25671 status collapsed
25672
25673 \begin_layout Plain Layout
25674 pdflatex -synctex=1 $$i
25675 \end_layout
25676
25677 \end_inset
25678
25679 に変更してください.お使いのビューアが下記に記述されていない場合や,
25680 万一うまくいかない場合にはまた,
25681 ビューアをSync\SpecialChar TeX
25682 で使うのに設定を行う必要があるかどうか,
25683 お使いのビューアの取扱説明書をご確認ください.
25684 \begin_inset Foot
25685 status collapsed
25686
25687 \begin_layout Plain Layout
25688 \begin_inset Flex Code
25689 status collapsed
25690
25691 \begin_layout Plain Layout
25692 -synctex=1
25693 \end_layout
25694
25695 \end_inset
25696
25697 オプションは,
25698 gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,
25699 代わりに
25700 \begin_inset Flex Code
25701 status collapsed
25702
25703 \begin_layout Plain Layout
25704 -synctex=-1
25705 \end_layout
25706
25707 \end_inset
25708
25709 を使用してください.
25710 \end_layout
25711
25712 \end_inset
25713
25714
25715 \end_layout
25716
25717 \begin_layout Subsection
25718 特定のビューアを設定して使うには
25719 \begin_inset CommandInset label
25720 LatexCommand label
25721 name "subsec:特定のビューアを設定して使うには"
25722
25723 \end_inset
25724
25725
25726 \end_layout
25727
25728 \begin_layout Subsubsection*
25729 Xdvi(全プラットフォーム)
25730 \end_layout
25731
25732 \begin_layout Standard
25733 \SpecialChar LyX
25734 は,
25735
25736 \begin_inset Flex Code
25737 status collapsed
25738
25739 \begin_layout Plain Layout
25740 lyxclient
25741 \end_layout
25742
25743 \end_inset
25744
25745 プログラムを自動的に使うのに必要なフックを,
25746 既に提供しているので,
25747
25748 \begin_inset Flex Code
25749 status collapsed
25750
25751 \begin_layout Plain Layout
25752 xdvi
25753 \end_layout
25754
25755 \end_inset
25756
25757 を使用する場合には,
25758 DVI原文検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(原文検索は,
25759 Ctrl-クリックか,
25760 Mac OS X上ではAlt-クリックで始動します).
25761 \end_layout
25762
25763 \begin_layout Standard
25764 しかし,
25765 何らかの理由で,
25766 \SpecialChar LyX
25767 と通信するのにソケットではなく命名パイプを使用したい場合には,
25768
25769 \begin_inset Flex MenuItem
25770 status collapsed
25771
25772 \begin_layout Plain Layout
25773 設定\SpecialChar menuseparator
25774 ファイル処理\SpecialChar menuseparator
25775 ファイル書式
25776 \end_layout
25777
25778 \end_inset
25779
25780 のDVIビューアを
25781 \begin_inset Flex Code
25782 status collapsed
25783
25784 \begin_layout Plain Layout
25785 xdvi -editor "lyxeditor.sh %f %l"
25786 \end_layout
25787
25788 \end_inset
25789
25790
25791 \begin_inset Flex Code
25792 status collapsed
25793
25794 \begin_layout Plain Layout
25795 lyxeditor.sh
25796 \end_layout
25797
25798 \end_inset
25799
25800 は適切なスクリプト名)に変更してください
25801 \begin_inset Foot
25802 status collapsed
25803
25804 \begin_layout Plain Layout
25805 Mac OS X上では,
25806
25807 \begin_inset Flex Code
25808 status collapsed
25809
25810 \begin_layout Plain Layout
25811 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
25812 \end_layout
25813
25814 \end_inset
25815
25816 としなくてはなりません.
25817 \end_layout
25818
25819 \end_inset
25820
25821 .たとえば,
25822 最低限のシェルスクリプトは
25823 \end_layout
25824
25825 \begin_layout LyX-Code
25826 #!/bin/sh
25827 \begin_inset Newline newline
25828 \end_inset
25829
25830 LYXPIPE="/path/to/lyxpipe"
25831 \begin_inset Newline newline
25832 \end_inset
25833
25834 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
25835 \begin_inset Newline newline
25836 \end_inset
25837
25838 echo "$COMMAND" > "${LYXPIPE}".in || exit
25839 \begin_inset Newline newline
25840 \end_inset
25841
25842 read TMP < "${LYXPIPE}".out || exit
25843 \end_layout
25844
25845 \begin_layout Standard
25846 のようになります.ここで
25847 \begin_inset Flex Code
25848 status collapsed
25849
25850 \begin_layout Plain Layout
25851 /path/to/lyxpipe
25852 \end_layout
25853
25854 \end_inset
25855
25856 は,
25857
25858 \begin_inset Flex MenuItem
25859 status collapsed
25860
25861 \begin_layout Plain Layout
25862 設定\SpecialChar menuseparator
25863 パス
25864 \end_layout
25865
25866 \end_inset
25867
25868 で指定したLyXServerパイプのパスを指定してください.
25869 \begin_inset Foot
25870 status collapsed
25871
25872 \begin_layout Plain Layout
25873 ソース頒布版の
25874 \begin_inset Flex Code
25875 status collapsed
25876
25877 \begin_layout Plain Layout
25878 development/tools
25879 \end_layout
25880
25881 \end_inset
25882
25883 フォルダには,
25884 ユーザが設定した
25885 \emph on
25886 lyxpipe
25887 \emph default
25888 を探し出す
25889 \begin_inset Flex Code
25890 status collapsed
25891
25892 \begin_layout Plain Layout
25893 lyxeditor
25894 \end_layout
25895
25896 \end_inset
25897
25898 スクリプトがあります.
25899 \end_layout
25900
25901 \end_inset
25902
25903
25904 \end_layout
25905
25906 \begin_layout Subsubsection*
25907 MacDviX(Mac OS X)
25908 \end_layout
25909
25910 \begin_layout Standard
25911 \begin_inset Flex Code
25912 status collapsed
25913
25914 \begin_layout Plain Layout
25915 /Applications/MacDviX_Folder/calleditor.script
25916 \end_layout
25917
25918 \end_inset
25919
25920 の終わりに
25921 \end_layout
25922
25923 \begin_layout LyX-Code
25924 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
25925 \begin_inset Newline newline
25926 \end_inset
25927
25928 exit 1
25929 \end_layout
25930
25931 \begin_layout Standard
25932 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
25933 を導入した場合には,
25934 それに従って上記の行を修正してください.
25935 \end_layout
25936
25937 \begin_layout Standard
25938 原文検索は,
25939 Alt-クリック(OPTION-クリック)で始動します.
25940 \end_layout
25941
25942 \begin_layout Subsubsection*
25943 Skim(Mac OS X)
25944 \end_layout
25945
25946 \begin_layout Standard
25947 \begin_inset Flex MenuItem
25948 status collapsed
25949
25950 \begin_layout Plain Layout
25951 設定\SpecialChar menuseparator
25952 ファイル処理\SpecialChar menuseparator
25953 ファイル書式\SpecialChar menuseparator
25954 PDF (pdflatex)
25955 \end_layout
25956
25957 \end_inset
25958
25959 のビューア設定に
25960 \begin_inset Flex Code
25961 status collapsed
25962
25963 \begin_layout Plain Layout
25964 open -a Skim.app $$i
25965 \end_layout
25966
25967 \end_inset
25968
25969 と入力し,
25970
25971 \begin_inset Flex MenuItem
25972 status collapsed
25973
25974 \begin_layout Plain Layout
25975 Skim\SpecialChar menuseparator
25976 設定\SpecialChar menuseparator
25977 Sync
25978 \end_layout
25979
25980 \end_inset
25981
25982 でLyXを選択してください.
25983 \end_layout
25984
25985 \begin_layout Standard
25986 原文検索は,
25987 COMMAND-SHIFT-クリックで始動します.
25988 \end_layout
25989
25990 \begin_layout Subsubsection*
25991 Evince(GNOME)
25992 \end_layout
25993
25994 \begin_layout Standard
25995 Evinceでは原文検索はそのままでは動きませんが,
25996 サードパーティのヘルパースクリプトを使用すれば,
25997 利用可能になります.詳細については,
25998
25999 \begin_inset CommandInset href
26000 LatexCommand href
26001 target "https://wiki.lyx.org/LyX/SyncTeX"
26002 literal "false"
26003
26004 \end_inset
26005
26006 を参照してください.
26007 \end_layout
26008
26009 \begin_layout Subsubsection*
26010 Okular(KDE)
26011 \end_layout
26012
26013 \begin_layout Standard
26014 \begin_inset Flex Noun
26015 status collapsed
26016
26017 \begin_layout Plain Layout
26018 設定\SpecialChar menuseparator
26019 Okularを設定\SpecialChar menuseparator
26020 エディタ
26021 \end_layout
26022
26023 \end_inset
26024
26025 で「Lyxクライアント」をエディタとして選択してください.これによって適切なコマンド(
26026 \begin_inset Flex Code
26027 status collapsed
26028
26029 \begin_layout Plain Layout
26030 lyxclient -g %f %l
26031 \end_layout
26032
26033 \end_inset
26034
26035 )が挿入されます.
26036 \end_layout
26037
26038 \begin_layout Standard
26039 原文検索は,
26040 SHIFT-クリックで始動します.これは,
26041 Okularが「ブラウズ」モード(すなわち手のマークをクリックしたとき)にあるときのみ動作することに注意してください.
26042 \end_layout
26043
26044 \begin_layout Subsubsection*
26045 Qpdfview(UNIX)
26046 \end_layout
26047
26048 \begin_layout Standard
26049 Qpdfviewは,
26050 第0.3.5版以降,
26051 Sync\SpecialChar TeX
26052 をサポートしています.
26053 \begin_inset Flex MenuItem
26054 status collapsed
26055
26056 \begin_layout Plain Layout
26057 Edit\SpecialChar menuseparator
26058 Settings\SpecialChar menuseparator
26059 Behavior
26060 \end_layout
26061
26062 \end_inset
26063
26064 を開いて「Source editor」項目の入力フィールドをクリックし,
26065
26066 \begin_inset Flex Code
26067 status collapsed
26068
26069 \begin_layout Plain Layout
26070 lyxclient -g %1 %2
26071 \end_layout
26072
26073 \end_inset
26074
26075 というコマンドを入力してください.
26076 \end_layout
26077
26078 \begin_layout Standard
26079 原文検索は,
26080 ダブルクリックで始動します.
26081 \end_layout
26082
26083 \begin_layout Subsubsection*
26084 YAP(Windows)
26085 \end_layout
26086
26087 \begin_layout Standard
26088 yapを起動し,
26089
26090 \begin_inset Flex MenuItem
26091 status collapsed
26092
26093 \begin_layout Plain Layout
26094 View\SpecialChar menuseparator
26095 Options
26096 \end_layout
26097
26098 \end_inset
26099
26100 メニューを選択し,
26101 「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
26102 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
26103  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
26104 」というラベルのボタンをクリックしてファイルダイアログを開き,
26105 バッチファイル
26106 \begin_inset Flex Code
26107 status collapsed
26108
26109 \begin_layout Plain Layout
26110 lyxeditor.bat
26111 \end_layout
26112
26113 \end_inset
26114
26115 (以下参照)のあるディレクトリを見つけます.
26116 \begin_inset Flex Code
26117 status collapsed
26118
26119 \begin_layout Plain Layout
26120 lyxeditor.bat
26121 \end_layout
26122
26123 \end_inset
26124
26125 を選択してプログラムの引数を
26126 \begin_inset Flex Code
26127 status collapsed
26128
26129 \begin_layout Plain Layout
26130 %f %l
26131 \end_layout
26132
26133 \end_inset
26134
26135 と指定してください.
26136 \begin_inset Flex Code
26137 status collapsed
26138
26139 \begin_layout Plain Layout
26140 lyxeditor.bat
26141 \end_layout
26142
26143 \end_inset
26144
26145 は,
26146
26147 \emph on
26148 lyxpipe
26149 \emph default
26150 を通じて\SpecialChar LyX
26151 と通信するためのラッパとして使用され,
26152 以下のようになっています.
26153 \end_layout
26154
26155 \begin_layout LyX-Code
26156 @echo off
26157 \begin_inset Newline newline
26158 \end_inset
26159
26160 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
26161 \backslash
26162
26163 \backslash
26164 .
26165 \backslash
26166 pipe
26167 \backslash
26168 lyxpipe.in
26169 \begin_inset Newline newline
26170 \end_inset
26171
26172 type 
26173 \backslash
26174
26175 \backslash
26176 .
26177 \backslash
26178 pipe
26179 \backslash
26180 lyxpipe.out
26181 \end_layout
26182
26183 \begin_layout Standard
26184 \SpecialChar LyX
26185 で指定した\SpecialChar LyX
26186 Serverパイプパスが,
26187
26188 \begin_inset Flex Code
26189 status collapsed
26190
26191 \begin_layout Plain Layout
26192
26193 \backslash
26194
26195 \backslash
26196 .
26197 \backslash
26198 pipe
26199 \backslash
26200 lyxpipe
26201 \end_layout
26202
26203 \end_inset
26204
26205 となっていることを確認するか,
26206
26207 \begin_inset Flex Code
26208 status collapsed
26209
26210 \begin_layout Plain Layout
26211 lyxeditor.bat
26212 \end_layout
26213
26214 \end_inset
26215
26216 ラッパの方を適切に修正してください.
26217 \end_layout
26218
26219 \begin_layout Standard
26220 yapでは,
26221 原文検索はダブルクリックで始動します.
26222 \end_layout
26223
26224 \begin_layout Subsubsection*
26225 SumatraPDF(Windows)
26226 \end_layout
26227
26228 \begin_layout Standard
26229 SumatraPDFを原文検索で使用するためには,
26230
26231 \begin_inset Flex MenuItem
26232 status collapsed
26233
26234 \begin_layout Plain Layout
26235 設定\SpecialChar menuseparator
26236 ファイル処理\SpecialChar menuseparator
26237 ファイル書式\SpecialChar menuseparator
26238 PDF (pdflatex)
26239 \end_layout
26240
26241 \end_inset
26242
26243 のビューア設定で
26244 \begin_inset Flex Code
26245 status collapsed
26246
26247 \begin_layout Plain Layout
26248 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
26249 \end_layout
26250
26251 \end_inset
26252
26253
26254 \begin_inset Flex Code
26255 status collapsed
26256
26257 \begin_layout Plain Layout
26258 lyxeditor.bat
26259 \end_layout
26260
26261 \end_inset
26262
26263 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,
26264 フルファイル名を使用してください.
26265 \end_layout
26266
26267 \begin_layout Standard
26268 原文検索はダブルクリックで始動します.
26269 \end_layout
26270
26271 \begin_layout Subsubsection*
26272 YAP(Cygwin)
26273 \end_layout
26274
26275 \begin_layout Standard
26276 まずはじめに,
26277 yapがWindows環境での既定のDVIビューアになっていることを確認してから,
26278 yapを起動し,
26279
26280 \begin_inset Flex MenuItem
26281 status collapsed
26282
26283 \begin_layout Plain Layout
26284 View\SpecialChar menuseparator
26285 Options
26286 \end_layout
26287
26288 \end_inset
26289
26290 メニューを選択し,
26291 「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
26292 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
26293  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
26294 」というラベルのボタンをクリックしてファイルダイアログを開き,
26295 バッチファイル
26296 \begin_inset Flex Code
26297 status collapsed
26298
26299 \begin_layout Plain Layout
26300 lyxeditor.exe
26301 \end_layout
26302
26303 \end_inset
26304
26305 プログラム(これは,
26306 Cygwinでは既定で\SpecialChar LyX
26307 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
26308 \begin_inset Flex Code
26309 status collapsed
26310
26311 \begin_layout Plain Layout
26312 lyxeditor.exe
26313 \end_layout
26314
26315 \end_inset
26316
26317 を選択してプログラムの引数を
26318 \begin_inset Flex Code
26319 status collapsed
26320
26321 \begin_layout Plain Layout
26322 -g %f %l
26323 \end_layout
26324
26325 \end_inset
26326
26327 と指定してください.これによって,
26328 \SpecialChar LyX
26329 との通信に
26330 \emph on
26331 lyxsocket
26332 \emph default
26333 が使用されるようになります.何らかの理由で
26334 \emph on
26335 lyxpipe
26336 \emph default
26337 を使用したい場合には,
26338
26339 \begin_inset Flex Code
26340 status collapsed
26341
26342 \begin_layout Plain Layout
26343 -g
26344 \end_layout
26345
26346 \end_inset
26347
26348 オプションを削除して,
26349 \SpecialChar LyX
26350 設定で\SpecialChar LyX
26351 Serverパイプパスを指定することを忘れないでください.
26352 \end_layout
26353
26354 \begin_layout Standard
26355 yapでは,
26356 原文検索はダブルクリックで始動します.
26357 \end_layout
26358
26359 \begin_layout Subsubsection*
26360 SumatraPDF(Cygwin)
26361 \end_layout
26362
26363 \begin_layout Standard
26364 SumatraPDFを原文検索で使用するためには,
26365
26366 \begin_inset Flex MenuItem
26367 status collapsed
26368
26369 \begin_layout Plain Layout
26370 設定\SpecialChar menuseparator
26371 ファイル処理\SpecialChar menuseparator
26372 ファイル書式\SpecialChar menuseparator
26373 PDF (pdflatex)
26374 \end_layout
26375
26376 \end_inset
26377
26378 のビューア設定で
26379 \begin_inset Flex Code
26380 status collapsed
26381
26382 \begin_layout Plain Layout
26383 SumatraPDF.sh
26384 \end_layout
26385
26386 \end_inset
26387
26388 と入力してください.ここで
26389 \begin_inset Flex Code
26390 status collapsed
26391
26392 \begin_layout Plain Layout
26393 SumatraPDF.sh
26394 \end_layout
26395
26396 \end_inset
26397
26398 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
26399 \begin_inset Flex Code
26400 status collapsed
26401
26402 \begin_layout Plain Layout
26403 /usr/local/bin
26404 \end_layout
26405
26406 \end_inset
26407
26408 がもっとも良い選択肢でしょう).
26409 \end_layout
26410
26411 \begin_layout LyX-Code
26412 #!/bin/bash
26413 \begin_inset Newline newline
26414 \end_inset
26415
26416 cd $(dirname $1)
26417 \begin_inset Newline newline
26418 \end_inset
26419
26420 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
26421 \end_layout
26422
26423 \begin_layout Standard
26424 SumatraPDFは,
26425 Windowsネイティブのアプリケーションであり,
26426 \SpecialChar LyX
26427 のCygwin版が使用するPOSIXパスを理解しないので,
26428 このラッパスクリプトが必要となります.SumatraPDF.exeがお使いのコマンドパスにない場合は,
26429 上記のスクリプトでPOSIXのフルパスを使用してください.
26430 \begin_inset Flex Code
26431 status collapsed
26432
26433 \begin_layout Plain Layout
26434 -g
26435 \end_layout
26436
26437 \end_inset
26438
26439
26440 \emph on
26441 lyxsocket
26442 \emph default
26443 経由の通信を有効にします.ここでも,
26444
26445 \emph on
26446 lyxpipe
26447 \emph default
26448 を使用したい場合には,
26449
26450 \begin_inset Flex Code
26451 status collapsed
26452
26453 \begin_layout Plain Layout
26454 -g
26455 \end_layout
26456
26457 \end_inset
26458
26459 オプションを削除して,
26460 \SpecialChar LyX
26461 設定で\SpecialChar LyX
26462 Serverパイプパスを指定することを忘れないでください.
26463 \end_layout
26464
26465 \begin_layout Standard
26466 原文検索はダブルクリックで始動します.
26467 \end_layout
26468
26469 \begin_layout Section
26470 出力検索
26471 \end_layout
26472
26473 \begin_layout Standard
26474 出力検索(forward search)とは,
26475 英文名が示すとおり,
26476 いわば原文検索(reverse search)の「逆」を意味します.すなわち,
26477 \SpecialChar LyX
26478 内部から,
26479 ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように)もし出力検索の準備ができていれば,
26480 カーソルを\SpecialChar LyX
26481 文書の好きなところに置いて,
26482
26483 \begin_inset Flex MenuItem
26484 status collapsed
26485
26486 \begin_layout Plain Layout
26487 移動\SpecialChar menuseparator
26488 出力検索
26489 \end_layout
26490
26491 \end_inset
26492
26493 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
26494 \begin_inset Flex MenuItem
26495 status collapsed
26496
26497 \begin_layout Plain Layout
26498 出力検索
26499 \end_layout
26500
26501 \end_inset
26502
26503 を選択してもよい),
26504 ビューアも同じ箇所に移動します.もちろん,
26505 使用しているビューアが,
26506 この機能をサポートしていなくてはなりません.
26507 \end_layout
26508
26509 \begin_layout Standard
26510 出力検索を有効にするためには,
26511 生成されたPDF/DVI出力ファイルに,
26512 \SpecialChar TeX
26513 ソースに関する情報を追加する必要があります.これは,
26514
26515 \begin_inset CommandInset ref
26516 LatexCommand ref
26517 reference "subsec:原文検索"
26518 nolink "false"
26519
26520 \end_inset
26521
26522 節に述べられている方法で実行することができます.
26523 \end_layout
26524
26525 \begin_layout Standard
26526 次に,
26527
26528 \begin_inset Flex MenuItem
26529 status collapsed
26530
26531 \begin_layout Plain Layout
26532 ツール\SpecialChar menuseparator
26533 設定\SpecialChar menuseparator
26534 出力\SpecialChar menuseparator
26535 一般
26536 \end_layout
26537
26538 \end_inset
26539
26540 で自分の使うビューアを利用するように,
26541 \SpecialChar LyX
26542 を設定する必要があります.いくつかのビューアについては,
26543 試験済みの設定が前もって準備されており,
26544 ドロップダウンリストから選択することができます.これらの設定の何れも意にそぐわない場合には,
26545 ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,
26546 以下の変数を使用します.
26547 \end_layout
26548
26549 \begin_layout Itemize
26550 \begin_inset Flex Code
26551 status collapsed
26552
26553 \begin_layout Plain Layout
26554 $$n
26555 \end_layout
26556
26557 \end_inset
26558
26559 :行番号
26560 \end_layout
26561
26562 \begin_layout Itemize
26563 \begin_inset Flex Code
26564 status collapsed
26565
26566 \begin_layout Plain Layout
26567 $$t
26568 \end_layout
26569
26570 \end_inset
26571
26572 :書き出された(一時).texファイル名(パスを除く)
26573 \end_layout
26574
26575 \begin_layout Itemize
26576 \begin_inset Flex Code
26577 status collapsed
26578
26579 \begin_layout Plain Layout
26580 $$f
26581 \end_layout
26582
26583 \end_inset
26584
26585 :書き出された(一時).texファイル名(パスを含む)
26586 \end_layout
26587
26588 \begin_layout Itemize
26589 \begin_inset Flex Code
26590 status collapsed
26591
26592 \begin_layout Plain Layout
26593 $$o
26594 \end_layout
26595
26596 \end_inset
26597
26598 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,
26599 dviあるいはpdf).
26600 \end_layout
26601
26602 \begin_layout Standard
26603 yap・xdvi・okular
26604 \begin_inset Foot
26605 status collapsed
26606
26607 \begin_layout Plain Layout
26608 \begin_inset Flex Noun
26609 status collapsed
26610
26611 \begin_layout Plain Layout
26612 ツール\SpecialChar menuseparator
26613 設定\SpecialChar menuseparator
26614 ファイル処理\SpecialChar menuseparator
26615 ファイル形式
26616 \end_layout
26617
26618 \end_inset
26619
26620
26621 \begin_inset Flex Code
26622 status collapsed
26623
26624 \begin_layout Plain Layout
26625 okular --unique
26626 \end_layout
26627
26628 \end_inset
26629
26630 と設定すると良いでしょう.
26631 \end_layout
26632
26633 \end_inset
26634
26635 ・qpdfview・Sumatra PDF
26636 \begin_inset Foot
26637 status collapsed
26638
26639 \begin_layout Plain Layout
26640 SumatraPDFは,
26641 外部プログラムCMCDDE(
26642 \begin_inset CommandInset href
26643 LatexCommand href
26644 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
26645 literal "false"
26646
26647 \end_inset
26648
26649 からダウンロード可能)を通じてDDEコマンドを使用することもできます.
26650 \end_layout
26651
26652 \end_inset
26653
26654 など,
26655 一部のビューアでしか,
26656 完全な出力検索機能は提供されていないことに注意してください
26657 \begin_inset Foot
26658 status collapsed
26659
26660 \begin_layout Plain Layout
26661 SumatraPDFも,
26662 外部プログラムCMCDDEを通じて,
26663 DDEコマンドを使用することができます.CMCDDEは,
26664
26665 \begin_inset CommandInset href
26666 LatexCommand href
26667 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
26668 literal "false"
26669
26670 \end_inset
26671
26672 からダウンロードすることができます.
26673 \end_layout
26674
26675 \end_inset
26676
26677 .Evince
26678 \begin_inset Foot
26679 status collapsed
26680
26681 \begin_layout Plain Layout
26682 Evinceでの出力検索は,
26683 サードパーティのヘルパースクリプトを使用すれば,
26684 利用可能になります.詳細については,
26685
26686 \begin_inset CommandInset href
26687 LatexCommand href
26688 target "https://wiki.lyx.org/LyX/SyncTeX"
26689 literal "false"
26690
26691 \end_inset
26692
26693 を参照してください.
26694 \end_layout
26695
26696 \end_inset
26697
26698 など他のビューアには,
26699 出力検索を使用するのに,
26700 追加のツールを必要とするものもあります.広く使われているPDFビューアの多く(特にAdobe Reader)は,
26701 出力検索を全く提供していませんが,
26702 他の一部のビューア(たとえばxpdf)では,
26703 少なくとも,
26704 文書を読み込み直したり,
26705 ファイルの特定ページに移動することはできますので,
26706 少なくとも「近く」には移動することができます.この後者の機能は,
26707 synctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
26708 \end_layout
26709
26710 \begin_layout Standard
26711 出力検索は,
26712 DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
26713 は,
26714 過去にあなたが使用したプレビュー形式をチェックして(つまり,
26715 一時ディレクトリにどちらの形式が存在するかをチェックして),
26716 その形式に適切な設定を選択します.
26717 \end_layout
26718
26719 \begin_layout Chapter
26720 ソフトウェアを追加する必要がある \SpecialChar LyX
26721 機能
26722 \end_layout
26723
26724 \begin_layout Section
26725 \SpecialChar TeX
26726 のチェック
26727 \end_layout
26728
26729 \begin_layout Standard
26730
26731 \noun on
26732 Asger Alstrup
26733 \noun default
26734
26735 \end_layout
26736
26737 \begin_layout Subsection
26738 はじめに
26739 \end_layout
26740
26741 \begin_layout Standard
26742
26743 \family typewriter
26744 chktex
26745 \family default
26746 プログラムが導入されていると
26747 \begin_inset Foot
26748 status collapsed
26749
26750 \begin_layout Plain Layout
26751 \SpecialChar LaTeX
26752 頒布版としてMiK\SpecialChar TeX
26753 を使用している場合には,
26754
26755 \family typewriter
26756 chktex
26757 \family default
26758 はまだ利用可能ではありません.
26759 \end_layout
26760
26761 \end_inset
26762
26763
26764
26765 \family sans
26766 ツール
26767 \family default
26768 メニューの下に,
26769
26770 \family sans
26771 \SpecialChar TeX
26772
26773 \series bold
26774 構文チェック
26775 \family default
26776 \series default
26777 という項目が表示されます.
26778 \family typewriter
26779 chktex
26780 \family default
26781 は,
26782 CTAN
26783 \begin_inset Newline newline
26784 \end_inset
26785
26786
26787 \begin_inset CommandInset href
26788 LatexCommand href
26789 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
26790 literal "false"
26791
26792 \end_inset
26793
26794 から入手することができます.
26795 \end_layout
26796
26797 \begin_layout Standard
26798
26799 \family sans
26800 Chk\SpecialChar TeX
26801
26802 \family default
26803 パッケージは,
26804 \SpecialChar LaTeX
26805 の構成物には直感的でないものもあり,
26806 すぐ忘れてしまいがちであるのに不満を感じた
26807 \begin_inset Flex Noun
26808 status collapsed
26809
26810 \begin_layout Plain Layout
26811 Jens T.
26812  Berger Thielemann
26813 \end_layout
26814
26815 \end_inset
26816
26817 が書いたプログラムです.このプログラムは,
26818 \SpecialChar LaTeX
26819 ファイルを走査して,
26820 ファイルの整合性をチェックし,
26821 犯しがちな誤りを見つけ出します.別の技術用語では,
26822 LaTeXにおける
26823 \family typewriter
26824 lint
26825 \family default
26826 であるとも言えます.
26827 \end_layout
26828
26829 \begin_layout Standard
26830 さて,
26831 \SpecialChar LyX
26832 はつねに正しい\SpecialChar LaTeX
26833 ファイルを生成するはずなのに,
26834 文法チェッカーは\SpecialChar LyX
26835 で何をするというのでしょうか.答えは簡単です.
26836 \family typewriter
26837 lint
26838 \family default
26839 がC言語プログラムの
26840 \emph on
26841 文法
26842 \emph default
26843 をチェックするだけでなく,
26844 打ち間違いによる
26845 \emph on
26846 意味上の
26847 \emph default
26848 チェックも行うように,
26849
26850 \family sans
26851 Chk\SpecialChar TeX
26852
26853 \family default
26854 は,
26855 文法エラーの他に犯しがちな
26856 \emph on
26857 写植上の
26858 \emph default
26859 誤りも検出してくれるからです.
26860 \family sans
26861 Chk\SpecialChar TeX
26862
26863 \family default
26864 は,
26865 以下のような誤りを検出することができます.
26866 \end_layout
26867
26868 \begin_layout Itemize
26869 省略記号の検出:
26870
26871 \begin_inset Newline newline
26872 \end_inset
26873
26874 ...ではなく\SpecialChar ldots
26875 を使わなくてはなりません
26876 \end_layout
26877
26878 \begin_layout Itemize
26879 括弧の前後にスペースを置かない:
26880
26881 \begin_inset Newline newline
26882 \end_inset
26883
26884 ( wrong spacing ):
26885 誤った空白
26886 \end_layout
26887
26888 \begin_layout Itemize
26889 よく使われる省略形の後ろは通常スペースにする:
26890
26891 \begin_inset Newline newline
26892 \end_inset
26893
26894 e.
26895 \begin_inset space \thinspace{}
26896 \end_inset
26897
26898 g.
26899 \begin_inset space \space{}
26900 \end_inset
26901
26902 is too wide spacing.:
26903 広すぎる空白
26904 \end_layout
26905
26906 \begin_layout Itemize
26907 直前の文章が大文字で終わっているときに,
26908 文末スペースに直す:
26909
26910 \begin_inset Newline newline
26911 \end_inset
26912
26913 This is a TEST.
26914  And this is wrong spacing.:
26915 誤った空白
26916 \end_layout
26917
26918 \begin_layout Itemize
26919 ラベルや類似コマンドの前のスペース:
26920
26921 \begin_inset Newline newline
26922 \end_inset
26923
26924 ラベルが別のページに行ってしまわないように,
26925 ラベルは文章に接していなくてはなりません. 
26926 \begin_inset CommandInset label
26927 LatexCommand label
26928 name "sec:chktex"
26929
26930 \end_inset
26931
26932  
26933 \begin_inset Foot
26934 status collapsed
26935
26936 \begin_layout Plain Layout
26937 この脚注は,
26938 正しくないページに行ってしまう恐れがあります.
26939 \end_layout
26940
26941 \end_inset
26942
26943  このラベルは離れすぎです.
26944 \end_layout
26945
26946 \begin_layout Itemize
26947 参照の前にハードスペースではなくスペース:
26948
26949 \begin_inset Newline newline
26950 \end_inset
26951
26952 運が悪ければ,
26953 参照文字列と参照番号のあいだでちょうど改行されてしまい,
26954 残念な結果となります.第
26955 \begin_inset CommandInset ref
26956 LatexCommand ref
26957 reference "sec:chktex"
26958 nolink "false"
26959
26960 \end_inset
26961
26962 節をご覧ください.
26963 \end_layout
26964
26965 \begin_layout Itemize
26966 数字のあいだで
26967 \begin_inset Formula $\times$
26968 \end_inset
26969
26970 ではなく「x」が使われている:
26971
26972 \begin_inset Newline newline
26973 \end_inset
26974
26975 2x2は,
26976
26977 \begin_inset Formula $2\times2$
26978 \end_inset
26979
26980 よりも安っぽく見えます.
26981 \end_layout
26982
26983 \begin_layout Standard
26984 などなど\SpecialChar ldots
26985
26986 \family sans
26987 Chk\SpecialChar TeX
26988
26989 \family default
26990 は,
26991 印刷する前に文書を「仕上げる」上で,
26992 たいへん価値のあるツールです.必須のスペルチェックを終えた直後,
26993 組版の微調整をする前には,
26994 これを実行するべきです.
26995 \end_layout
26996
26997 \begin_layout Subsection
26998 使いかた
26999 \end_layout
27000
27001 \begin_layout Standard
27002 このプログラムを導入したならば,
27003 使うのは
27004 \family sans
27005 ツール\SpecialChar menuseparator
27006 \SpecialChar TeX
27007 構文チェック
27008 \family default
27009 を選択するだけなので簡単です.こうすると,
27010 \SpecialChar LyX
27011 は使用中の文書の\SpecialChar LaTeX
27012 ファイルを生成して,
27013
27014 \family sans
27015 Chk\SpecialChar TeX
27016
27017 \family default
27018 を起動し,
27019 当該ファイルを検査しますが,
27020
27021 \family sans
27022 Chk\SpecialChar TeX
27023
27024 \family default
27025 から警告があった場合には,
27026 それを含んだ「エラーボックス」を\SpecialChar LyX
27027 中に挿入します.警告は,
27028 誤りのある箇所のそばに置かれるので,
27029 メニュー項目の
27030 \family sans
27031
27032 \begin_inset space \thinspace{}
27033 \end_inset
27034
27035
27036 \series bold
27037 移動\SpecialChar menuseparator
27038 エラー
27039 \family default
27040 \series default
27041
27042 \begin_inset space \thinspace{}
27043 \end_inset
27044
27045 を選択するか,
27046 既定の
27047 \family typewriter
27048 cua
27049 \family default
27050 キー設定ファイルならばショートカットキー
27051 \family sans
27052 C-g
27053 \family default
27054 を押せば,
27055 簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,
27056 マウスでボックスをクリックするか,
27057
27058 \family typewriter
27059 cua
27060 \family default
27061 キー設定の場合にはショートカットキー
27062 \family sans
27063 C-i
27064 \family default
27065
27066
27067 \family typewriter
27068 emacs
27069 \family default
27070 キー設定の場合はショートカットキー
27071 \family sans
27072 C-o
27073 \family default
27074 を押します.警告を読み,
27075 それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,
27076 無視しても問題はありません.画面上の文書と,
27077
27078 \family sans
27079 Chk\SpecialChar TeX
27080
27081 \family default
27082 を起動する際に行なわれる実際の技術的な操作のあいだには,
27083 隠された層があり,
27084 この隔たりのせいで,
27085 一部の警告が不可解なものになったり,
27086 明らかに馬鹿げたものになる場合があるのです.
27087 \end_layout
27088
27089 \begin_layout Standard
27090 本文書自体,
27091 この機能を確認する良い材料になりますので,
27092 実行してみてください.すると,
27093 かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
27094 警告のほとんどは実際には警告に値しません.
27095 \end_layout
27096
27097 \begin_layout Subsection
27098 微調整のしかた
27099 \end_layout
27100
27101 \begin_layout Standard
27102 場合によっては,
27103
27104 \family sans
27105 Chk\SpecialChar TeX
27106
27107 \family default
27108 は,
27109 あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,
27110 必要と思うまで
27111 \family sans
27112 Chk\SpecialChar TeX
27113
27114 \family default
27115 を無効にするか,
27116 あなたにもう少し合うように
27117 \family sans
27118 Chk\SpecialChar TeX
27119
27120 \family default
27121 を調整することができます.
27122 \end_layout
27123
27124 \begin_layout Standard
27125
27126 \family sans
27127 Chk\SpecialChar TeX
27128
27129 \family default
27130 は調整や拡張がひじょうに柔軟なのですが,
27131 \SpecialChar LyX
27132 における
27133 \family sans
27134 Chk\SpecialChar TeX
27135
27136 \family default
27137 関連の問題が,
27138 それですべて解決すると思うべきではありません.\SpecialChar LyX
27139 は,
27140
27141 \family sans
27142 Chk\SpecialChar TeX
27143
27144 \family default
27145 出力
27146 \begin_inset Foot
27147 status collapsed
27148
27149 \begin_layout Plain Layout
27150
27151 \family sans
27152 chktex
27153 \family default
27154 の実際の出力は,
27155
27156 \family sans
27157 chktex
27158 \family default
27159 を実行した直後に
27160 \family sans
27161
27162 \begin_inset space \thinspace{}
27163 \end_inset
27164
27165
27166 \series bold
27167 文書
27168 \series default
27169 \SpecialChar menuseparator
27170 \SpecialChar LaTeX
27171
27172 \series bold
27173 ログ
27174 \family default
27175 \series default
27176
27177 \begin_inset space \thinspace{}
27178 \end_inset
27179
27180 を使えば見ることができます.
27181 \end_layout
27182
27183 \end_inset
27184
27185 から得た行番号と内部構造を一致させるため,
27186 やや特殊な\SpecialChar LaTeX
27187 ファイルを生成しなくてはならないので,
27188 警告の一部は正しく表示されていないように見えるでしょう.これに対処するためには,
27189 以下の2つの方法があります.
27190 \end_layout
27191
27192 \begin_layout Itemize
27193
27194 \family sans
27195 \begin_inset Flex MenuItem
27196 status collapsed
27197
27198 \begin_layout Plain Layout
27199
27200 \family sans
27201 ツール\SpecialChar menuseparator
27202 設定\SpecialChar menuseparator
27203 出力\SpecialChar menuseparator
27204 \SpecialChar LaTeX
27205 \SpecialChar menuseparator
27206 Check\SpecialChar TeX
27207 コマンド
27208 \end_layout
27209
27210 \end_inset
27211
27212
27213 \family default
27214 中の
27215 \family sans
27216 Chk\SpecialChar TeX
27217
27218 \family default
27219 起動コマンドラインを調整するか,
27220 グローバルな
27221 \family sans
27222 Chk\SpecialChar TeX
27223
27224 \family default
27225 の設定ファイル(通常は
27226 \begin_inset Flex Code
27227 status collapsed
27228
27229 \begin_layout Plain Layout
27230 chktexrc
27231 \end_layout
27232
27233 \end_inset
27234
27235 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
27236 \end_layout
27237
27238 \begin_layout Itemize
27239
27240 \family sans
27241 \series bold
27242 ファイル\SpecialChar menuseparator
27243 書き出し
27244 \series default
27245 \SpecialChar menuseparator
27246 \SpecialChar LaTeX
27247
27248 \family default
27249
27250 \begin_inset space \thinspace{}
27251 \end_inset
27252
27253 を使って文書を\SpecialChar LaTeX
27254 ファイルに変換し,
27255 そのファイルに対して
27256 \family typewriter
27257 chktex
27258 \family default
27259 を手動で実行します.このようにすると,
27260 \SpecialChar LyX
27261 文書中の対応箇所を見つけるのがやや面倒ですが,
27262 少し我慢すれば見つけることができます.
27263 \end_layout
27264
27265 \begin_layout Standard
27266 以下は,
27267
27268 \family sans
27269 設定
27270 \family default
27271 で有効化・無効化できる警告メッセージです.警告を無効にするには
27272 \family typewriter
27273 -n#
27274 \family default
27275
27276 有効にするには
27277 \family typewriter
27278 -w#
27279 \family default
27280 を用います.イタリック表示の項目は,
27281 既定で無効となっています.既定値は "
27282 \family typewriter
27283 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
27284 \family default
27285 "です.
27286 \end_layout
27287
27288 \begin_layout Standard
27289 \SpecialChar LyX
27290 は,
27291
27292 \family typewriter
27293 chktex
27294 \family default
27295 と通信するために,
27296 他のコマンドラインパラメータを特定の方法で使用しているため,
27297 メッセージを有効化・無効化する以外のオプションを使うべきではありません.
27298 \end_layout
27299
27300 \begin_layout Enumerate
27301
27302 \size small
27303 \emph on
27304 Command terminated with space.
27305 \end_layout
27306
27307 \begin_layout Enumerate
27308
27309 \size small
27310 Non-breaking space (
27311 \begin_inset Quotes eld
27312 \end_inset
27313
27314
27315 \family typewriter
27316 ~
27317 \family default
27318
27319 \begin_inset Quotes erd
27320 \end_inset
27321
27322 ) should have been used.
27323 \end_layout
27324
27325 \begin_layout Enumerate
27326
27327 \size small
27328 \emph on
27329 You should enclose the previous parenthesis with 
27330 \begin_inset Quotes eld
27331 \end_inset
27332
27333
27334 \family typewriter
27335 {}
27336 \family default
27337
27338 \begin_inset Quotes erd
27339 \end_inset
27340
27341 .
27342 \end_layout
27343
27344 \begin_layout Enumerate
27345
27346 \size small
27347 Italic correction (
27348 \begin_inset Quotes eld
27349 \end_inset
27350
27351
27352 \family typewriter
27353
27354 \backslash
27355 /
27356 \family default
27357
27358 \begin_inset Quotes erd
27359 \end_inset
27360
27361 ) found in non-italic buffer.
27362 \end_layout
27363
27364 \begin_layout Enumerate
27365
27366 \size small
27367 Italic correction (
27368 \begin_inset Quotes eld
27369 \end_inset
27370
27371
27372 \family typewriter
27373
27374 \backslash
27375 /
27376 \family default
27377
27378 \begin_inset Quotes erd
27379 \end_inset
27380
27381 ) found more than once.
27382 \end_layout
27383
27384 \begin_layout Enumerate
27385
27386 \size small
27387 \emph on
27388 No italic correction (
27389 \begin_inset Quotes eld
27390 \end_inset
27391
27392
27393 \family typewriter
27394
27395 \backslash
27396 /
27397 \family default
27398
27399 \begin_inset Quotes erd
27400 \end_inset
27401
27402 ) found.
27403 \end_layout
27404
27405 \begin_layout Enumerate
27406
27407 \size small
27408 Accent command 
27409 \begin_inset Quotes eld
27410 \end_inset
27411
27412
27413 \family typewriter
27414 cmd
27415 \family default
27416
27417 \begin_inset Quotes erd
27418 \end_inset
27419
27420  needs use of 
27421 \begin_inset Quotes eld
27422 \end_inset
27423
27424
27425 \family typewriter
27426 cmd
27427 \family default
27428
27429 \begin_inset Quotes erd
27430 \end_inset
27431
27432 .
27433 \end_layout
27434
27435 \begin_layout Enumerate
27436
27437 \size small
27438 Wrong length of dash may have been used.
27439 \end_layout
27440
27441 \begin_layout Enumerate
27442
27443 \size small
27444 \emph on
27445 \begin_inset Quotes eld
27446 \end_inset
27447
27448
27449 \family typewriter
27450 %s
27451 \family default
27452
27453 \begin_inset Quotes erd
27454 \end_inset
27455
27456  expected,
27457  found 
27458 \begin_inset Quotes eld
27459 \end_inset
27460
27461
27462 \family typewriter
27463 %s
27464 \family default
27465
27466 \begin_inset Quotes erd
27467 \end_inset
27468
27469 .
27470 \end_layout
27471
27472 \begin_layout Enumerate
27473
27474 \size small
27475 Solo 
27476 \begin_inset Quotes eld
27477 \end_inset
27478
27479
27480 \family typewriter
27481 %s
27482 \family default
27483
27484 \begin_inset Quotes erd
27485 \end_inset
27486
27487  found.
27488 \end_layout
27489
27490 \begin_layout Enumerate
27491
27492 \size small
27493 You should use 
27494 \begin_inset Quotes eld
27495 \end_inset
27496
27497
27498 \family typewriter
27499 %s
27500 \family default
27501
27502 \begin_inset Quotes erd
27503 \end_inset
27504
27505  to achieve an ellipsis.
27506 \end_layout
27507
27508 \begin_layout Enumerate
27509
27510 \size small
27511 Inter-word spacing (
27512 \begin_inset Quotes eld
27513 \end_inset
27514
27515
27516 \family typewriter
27517
27518 \backslash
27519
27520 \family default
27521  
27522 \begin_inset Quotes eld
27523 \end_inset
27524
27525 ) should perhaps be used.
27526 \end_layout
27527
27528 \begin_layout Enumerate
27529
27530 \size small
27531 Inter-sentence spacing (
27532 \begin_inset Quotes eld
27533 \end_inset
27534
27535
27536 \family typewriter
27537
27538 \backslash
27539 @
27540 \family default
27541
27542 \begin_inset Quotes erd
27543 \end_inset
27544
27545 ) should perhaps be used.
27546 \end_layout
27547
27548 \begin_layout Enumerate
27549
27550 \size small
27551 Could not find argument for command.
27552 \end_layout
27553
27554 \begin_layout Enumerate
27555
27556 \size small
27557 No match found for 
27558 \begin_inset Quotes eld
27559 \end_inset
27560
27561
27562 \family typewriter
27563 %s
27564 \family default
27565
27566 \begin_inset Quotes erd
27567 \end_inset
27568
27569 .
27570 \end_layout
27571
27572 \begin_layout Enumerate
27573
27574 \size small
27575 Math mode still on at end of \SpecialChar LaTeX
27576  file.
27577 \end_layout
27578
27579 \begin_layout Enumerate
27580
27581 \size small
27582 Number of 
27583 \begin_inset Quotes eld
27584 \end_inset
27585
27586
27587 \family typewriter
27588 char
27589 \family default
27590
27591 \begin_inset Quotes erd
27592 \end_inset
27593
27594  doesn't match the number of 
27595 \begin_inset Quotes eld
27596 \end_inset
27597
27598
27599 \family typewriter
27600 char
27601 \family default
27602
27603 \begin_inset Quotes erd
27604 \end_inset
27605
27606 .
27607 \end_layout
27608
27609 \begin_layout Enumerate
27610
27611 \size small
27612 You should use either 
27613 \family typewriter
27614
27615 \begin_inset Quotes eld
27616 \end_inset
27617
27618
27619 \family default
27620  or 
27621 \family typewriter
27622
27623 \begin_inset Quotes erd
27624 \end_inset
27625
27626
27627 \family default
27628  as an alternative to 
27629 \begin_inset Quotes eld
27630 \end_inset
27631
27632
27633 \family typewriter
27634 "
27635 \family default
27636
27637 \begin_inset Quotes erd
27638 \end_inset
27639
27640 .
27641 \end_layout
27642
27643 \begin_layout Enumerate
27644
27645 \size small
27646 You should use "
27647 \family typewriter
27648 '
27649 \family default
27650 " (ASCII 39) instead of "" (ASCII 180).
27651 \end_layout
27652
27653 \begin_layout Enumerate
27654
27655 \size small
27656 User-specified pattern found.
27657 \end_layout
27658
27659 \begin_layout Enumerate
27660
27661 \size small
27662 This command might not be intended.
27663 \end_layout
27664
27665 \begin_layout Enumerate
27666
27667 \size small
27668 \emph on
27669 Comment displayed.
27670 \end_layout
27671
27672 \begin_layout Enumerate
27673
27674 \size small
27675 Either 
27676 \family typewriter
27677 ''
27678 \backslash
27679 ,'
27680 \family default
27681  or 
27682 \family typewriter
27683 '
27684 \backslash
27685 ,''
27686 \family default
27687  will look better.
27688 \end_layout
27689
27690 \begin_layout Enumerate
27691
27692 \size small
27693 Delete this space to maintain correct page references.
27694 \end_layout
27695
27696 \begin_layout Enumerate
27697
27698 \size small
27699 \emph on
27700 You might wish to put this between a pair of 
27701 \begin_inset Quotes eld
27702 \end_inset
27703
27704
27705 \family typewriter
27706 {}
27707 \family default
27708
27709 \begin_inset Quotes erd
27710 \end_inset
27711
27712 .
27713 \end_layout
27714
27715 \begin_layout Enumerate
27716
27717 \size small
27718 You ought to remove spaces in front of punctuation.
27719 \end_layout
27720
27721 \begin_layout Enumerate
27722
27723 \size small
27724 Could not execute \SpecialChar LaTeX
27725  command.
27726 \end_layout
27727
27728 \begin_layout Enumerate
27729
27730 \size small
27731 Don't use 
27732 \family typewriter
27733
27734 \backslash
27735 /
27736 \family default
27737  in front of small punctuation.
27738 \end_layout
27739
27740 \begin_layout Enumerate
27741
27742 \family typewriter
27743 \size small
27744 $
27745 \backslash
27746 times$
27747 \family default
27748  may look prettier here.
27749 \end_layout
27750
27751 \begin_layout Enumerate
27752
27753 \size small
27754 \emph on
27755 Multiple spaces detected in output.
27756 \end_layout
27757
27758 \begin_layout Enumerate
27759
27760 \size small
27761 This text may be ignored.
27762 \end_layout
27763
27764 \begin_layout Enumerate
27765
27766 \size small
27767 Use 
27768 \family typewriter
27769
27770 \begin_inset Quotes eld
27771 \end_inset
27772
27773
27774 \family default
27775  to begin quotation,
27776  not 
27777 \family typewriter
27778 '
27779 \family default
27780 .
27781 \end_layout
27782
27783 \begin_layout Enumerate
27784
27785 \size small
27786 Use 
27787 \family typewriter
27788 '
27789 \family default
27790  to end quotation,
27791  not 
27792 \family typewriter
27793
27794 \begin_inset Quotes eld
27795 \end_inset
27796
27797
27798 \family default
27799 .
27800 \end_layout
27801
27802 \begin_layout Enumerate
27803
27804 \size small
27805 Don't mix quotes.
27806 \end_layout
27807
27808 \begin_layout Enumerate
27809
27810 \size small
27811 You should perhaps use 
27812 \begin_inset Quotes eld
27813 \end_inset
27814
27815
27816 \family typewriter
27817 cmd
27818 \family default
27819
27820 \begin_inset Quotes erd
27821 \end_inset
27822
27823  instead.
27824 \end_layout
27825
27826 \begin_layout Enumerate
27827
27828 \size small
27829 You should put a space in front of/after parenthesis.
27830 \end_layout
27831
27832 \begin_layout Enumerate
27833
27834 \size small
27835 You should avoid spaces in front of/after parenthesis.
27836 \end_layout
27837
27838 \begin_layout Enumerate
27839
27840 \size small
27841 \emph on
27842 You should not use punctuation in front of/after quotes.
27843 \end_layout
27844
27845 \begin_layout Enumerate
27846
27847 \size small
27848 Double space found.
27849 \end_layout
27850
27851 \begin_layout Enumerate
27852
27853 \size small
27854 You should put punctuation outside inner/inside display math mode.
27855 \end_layout
27856
27857 \begin_layout Enumerate
27858
27859 \size small
27860 You ought to not use primitive \SpecialChar TeX
27861  in \SpecialChar LaTeX
27862  code.
27863 \end_layout
27864
27865 \begin_layout Enumerate
27866
27867 \size small
27868 You should remove spaces in front of 
27869 \begin_inset Quotes eld
27870 \end_inset
27871
27872
27873 \family typewriter
27874 %s
27875 \family default
27876
27877 \begin_inset Quotes erd
27878 \end_inset
27879
27880
27881 \end_layout
27882
27883 \begin_layout Enumerate
27884
27885 \size small
27886 \begin_inset Quotes eld
27887 \end_inset
27888
27889
27890 \family typewriter
27891 %s
27892 \family default
27893
27894 \begin_inset Quotes erd
27895 \end_inset
27896
27897  is normally not followed by 
27898 \begin_inset Quotes eld
27899 \end_inset
27900
27901
27902 \family typewriter
27903 %c
27904 \family default
27905
27906 \begin_inset Quotes erd
27907 \end_inset
27908
27909 .
27910 \end_layout
27911
27912 \begin_layout Standard
27913 \SpecialChar LyX
27914 の将来の版では,
27915 このツール(およびその縮小版
27916 \family typewriter
27917 lacheck
27918 \family default
27919 )の力を最大限引き出すように,
27920 より完備したインターフェイスを提供できればと考えています.しかし,
27921 現状でも十分に役立つものとなっています.ある程度長さがある既存文書に使用してみていただければ,
27922 きっと驚かれることでしょう.
27923 \end_layout
27924
27925 \begin_layout Section
27926 \SpecialChar LyX
27927 でのバージョン管理
27928 \end_layout
27929
27930 \begin_layout Standard
27931
27932 \noun on
27933 Lars Bullik Bjønnes
27934 \noun default
27935 および
27936 \noun on
27937 Pavel Sanda
27938 \noun default
27939
27940 \end_layout
27941
27942 \begin_layout Subsection
27943 はじめに
27944 \end_layout
27945
27946 \begin_layout Standard
27947 \SpecialChar LyX
27948 は,
27949 今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,
27950 ターミナル上から手動で行う必要があります.
27951 \end_layout
27952
27953 \begin_layout Standard
27954 また,
27955 CVSのサポートは,
27956 subversionのサポートほど良くないので,
27957 CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,
27958 SVN Book
27959 \begin_inset Foot
27960 status collapsed
27961
27962 \begin_layout Plain Layout
27963 \begin_inset CommandInset href
27964 LatexCommand href
27965 target "http://svnbook.red-bean.com/"
27966 literal "false"
27967
27968 \end_inset
27969
27970
27971 \end_layout
27972
27973 \end_inset
27974
27975 が良いでしょう.RCSの場合は,
27976 「rsintro」をお読みください(これはmanファイルです.
27977 \family typewriter
27978 man rcsintro
27979 \family default
27980 で読めます).このファイルは,
27981 RCSの基本機能のすべてを説明しています.特に,
27982 RCSディレクトリに関するコメントと,
27983 マスターRCSファイル(
27984 \family typewriter
27985 ,v
27986 \family default
27987 で終わるファイルです)の概念に注意を払ってください.
27988 \end_layout
27989
27990 \begin_layout Standard
27991 \SpecialChar LyX
27992 で実際にバージョン管理機能を使い始める前に,
27993 RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
27994 で\SpecialChar LyX
27995 への実装においては,
27996 GNU RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,
27997 現在のところ操作後には表示されません.確認したい場合には,
27998 メッセージ面で確かめてください.バージョン管理を常用するユーザーには,
27999 VCツールバーが便利でしょう.これは
28000 \family sans
28001 表示\SpecialChar menuseparator
28002 ツールバー\SpecialChar menuseparator
28003 バージョン管理
28004 \family default
28005 で有効にできます.
28006 \end_layout
28007
28008 \begin_layout Standard
28009 自製の外部コマンドを導入したい場合には,
28010 取扱説明書『\SpecialChar LyX
28011 関数』の
28012 \begin_inset Flex Code
28013 status collapsed
28014
28015 \begin_layout Plain Layout
28016 vc-command
28017 \end_layout
28018
28019 \end_inset
28020
28021 を確認してください.
28022 \end_layout
28023
28024 \begin_layout Standard
28025 バージョン管理機能を使用している場合には,
28026 文書を非圧縮形式で保存をすることを強く推奨します(
28027 \family sans
28028 \series bold
28029 文書\SpecialChar menuseparator
28030 圧縮
28031 \family default
28032 \series default
28033
28034 \begin_inset space \thinspace{}
28035 \end_inset
28036
28037 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,
28038 バージョン管理システムが,
28039 二つのバージョンをマージすることができます.一方,
28040 圧縮LyXファイルはバイナリファイルであるため,
28041 バージョン管理システムはマージすることができません.
28042 \end_layout
28043
28044 \begin_layout Subsection
28045 \SpecialChar LyX
28046 におけるRCSコマンド
28047 \end_layout
28048
28049 \begin_layout Standard
28050 以下の節では\SpecialChar LyX
28051 でサポートされているRCSコマンドを説明します.それらのコマンドは
28052 \family sans
28053 ファイル\SpecialChar menuseparator
28054 バージョン管理
28055 \family default
28056 のサブメニューにあります.\SpecialChar LyX
28057 は,
28058 RCS 5.7/5.8に対して試験されています.
28059 \end_layout
28060
28061 \begin_layout Subsubsection
28062
28063 \family sans
28064 登録
28065 \end_layout
28066
28067 \begin_layout Standard
28068 文書がバージョン管理の下にない場合には,
28069 これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,
28070 項目
28071 \family sans
28072 登録
28073 \family default
28074 は不可視になります.
28075 \end_layout
28076
28077 \begin_layout Standard
28078 このコマンドは,
28079 文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,
28080 文書の最初の説明を入力するように尋ねられます.すると文書は読み込み専用モードになるので,
28081 変更を加えるためには
28082 \family sans
28083 \series bold
28084 チェックアウトして編集
28085 \family default
28086 \series default
28087 を実行する必要があります.バージョン管理下にある文書は,
28088 ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
28089 \end_layout
28090
28091 \begin_layout Standard
28092 実行されるRCSコマンドは:
28093
28094 \end_layout
28095
28096 \begin_layout LyX-Code
28097
28098 \family typewriter
28099 ci -q -u -i -t-"<初期説明文>" <ファイル名>
28100 \end_layout
28101
28102 \begin_layout Standard
28103 スイッチについて知りたい場合は,
28104
28105 \family typewriter
28106 man ci
28107 \family default
28108 を読んでください.
28109 \end_layout
28110
28111 \begin_layout Subsubsection
28112
28113 \family sans
28114 変更をチェックインする
28115 \end_layout
28116
28117 \begin_layout Standard
28118 ファイルの編集が終わると,
28119 その変更をチェックインします.このとき,
28120 変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
28121 変更がマスターRCSファイルに適用され,
28122 文書がアンロックされて読み込み専用モードになります.
28123 \end_layout
28124
28125 \begin_layout Itemize
28126 RCSコマンド:
28127
28128 \family typewriter
28129 ci -q -u -m"<説明文>" <ファイル名>
28130 \end_layout
28131
28132 \begin_layout Subsubsection
28133
28134 \family sans
28135 チェックアウトして編集
28136 \end_layout
28137
28138 \begin_layout Standard
28139 これは,
28140 文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,
28141 しばらくの間,
28142 文書を編集し,
28143 それが終わると変更をチェックインします.あなたがファイルをロックしたことを反映して,
28144 ステータスラインが変わります.
28145 \end_layout
28146
28147 \begin_layout Itemize
28148 RCSコマンド:
28149
28150 \family typewriter
28151 co -q -l <ファイル名>
28152 \end_layout
28153
28154 \begin_layout Subsubsection
28155
28156 \family sans
28157 リポジトリのバージョンに戻す
28158 \end_layout
28159
28160 \begin_layout Standard
28161 これは,
28162 最終チェックイン以降,
28163 文書に加えられた変更をすべて破棄します.変更が破棄される前に,
28164 警告が発せられます.
28165 \end_layout
28166
28167 \begin_layout Itemize
28168 RCSコマンド:
28169
28170 \family typewriter
28171 co -f -u<バージョン> <ファイル名>
28172 \end_layout
28173
28174 \begin_layout Subsubsection
28175
28176 \family sans
28177 コピー
28178 \end_layout
28179
28180 \begin_layout Standard
28181 これは,
28182 現行文書のコピーを生成します.RCSは,
28183 コピー操作を自前ではサポートしませんので,
28184 バージョン履歴には保存されず,
28185 新コピーは新規ファイルとして追加されます.最後のチェックイン以降,
28186 変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,
28187 その後,
28188 新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,
28189 コピーにインクルードされたファイルの相対パスは,
28190
28191 \family sans
28192 ファイル\SpecialChar menuseparator
28193 名前をつけて保存\SpecialChar ldots
28194
28195 \family default
28196 と同様に)全て調整されます.最後に,
28197 元の文書の代わりに,
28198 コピーされたファイルが読み込まれます.
28199 \end_layout
28200
28201 \begin_layout Labeling
28202 \labelwidthstring 00.00.0000
28203 RCSコマンド:
28204  
28205 \begin_inset space ~
28206 \end_inset
28207
28208
28209 \begin_inset Newline newline
28210 \end_inset
28211
28212
28213 \begin_inset Flex Code
28214 status collapsed
28215
28216 \begin_layout Plain Layout
28217 "ファイル名"
28218 \end_layout
28219
28220 \end_inset
28221
28222
28223 \begin_inset Flex Code
28224 status collapsed
28225
28226 \begin_layout Plain Layout
28227 "新ファイル名"
28228 \end_layout
28229
28230 \end_inset
28231
28232 にコピーする場合
28233 \begin_inset Newline newline
28234 \end_inset
28235
28236
28237 \begin_inset Flex Code
28238 status collapsed
28239
28240 \begin_layout Plain Layout
28241 ci -q -u -i "<新ファイル名>"
28242 \end_layout
28243
28244 \end_inset
28245
28246
28247 \end_layout
28248
28249 \begin_layout Subsubsection
28250
28251 \family sans
28252 最後のチェックインを取り消す
28253 \end_layout
28254
28255 \begin_layout Standard
28256 これは,
28257 最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
28258 に読み込まれた文書に変更は加えられませんが,
28259 マスターRCSファイルから最後のバージョンが削除されます.
28260 \end_layout
28261
28262 \begin_layout Itemize
28263 RCSコマンド:
28264
28265 \family typewriter
28266 rcs -o<バージョン> <ファイル名>
28267 \end_layout
28268
28269 \begin_layout Subsubsection
28270
28271 \family sans
28272 履歴を表示
28273 \end_layout
28274
28275 \begin_layout Standard
28276 RCS文書の完全な履歴を表示します.ブラウザ中に,
28277
28278 \family typewriter
28279 rlog <ファイル名>
28280 \family default
28281 の出力が表示されます.詳細は
28282 \family typewriter
28283 man rlog
28284 \family default
28285 をご覧ください.
28286 \end_layout
28287
28288 \begin_layout Subsubsection
28289 改訂情報
28290 \end_layout
28291
28292 \begin_layout Standard
28293 \SpecialChar LyX
28294 は,
28295 RCSバージョン番号情報(のみ)をサポートしています.詳細については,
28296
28297 \begin_inset CommandInset ref
28298 LatexCommand ref
28299 reference "subsec:VCS改訂情報"
28300 nolink "false"
28301
28302 \end_inset
28303
28304 を参照.
28305 \end_layout
28306
28307 \begin_layout Subsection
28308 \SpecialChar LyX
28309 におけるCVSコマンド
28310 \end_layout
28311
28312 \begin_layout Standard
28313 \SpecialChar LyX
28314 は,
28315 現在CVSを一部サポートしています.そのコマンドは,
28316
28317 \family sans
28318 ファイル\SpecialChar menuseparator
28319 バージョン管理
28320 \family default
28321 サブメニューにあります.バージョン管理システムSVNの方が強力なので,
28322 可能ならばCVSではなく,
28323 SVNを使用してください.
28324 \end_layout
28325
28326 \begin_layout Subsubsection
28327 CVSの一般的な利用法
28328 \end_layout
28329
28330 \begin_layout Standard
28331 CVSを初めて使いたい場合には,
28332 外部ツールを使用して自分のレポジトリを作成し,
28333 作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用している場合には,
28334 最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
28335 \end_layout
28336
28337 \begin_layout Standard
28338 改訂管理下にある文書のレポジトリを他人も利用している場合に,
28339 同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,
28340 ファイルロッキング機構を有しません.これは驚くべきことかもしれませんが,
28341 コンフリクトは,
28342 文書の同じ箇所の特定の内容について,
28343 人々が意見を異にしている場合にのみ発生します.したがって,
28344 共著者同士がコンスタントにコミュニケーションを交わしていれば,
28345 このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,
28346 いずれにしても根本的な問題があるわけです.それにもかかわらず,
28347 いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,
28348 最初にチェックアウトした際に,
28349 全ファイルの作業コピーは読み込み専用にされ,
28350 ユーザーは,
28351 作業コピーを書き込み可能にする特別なコマンドを使用した後,
28352 編集を開始することになります.変更をチェックインすると,
28353 作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
28354 で予備付きチェックアウトを利用したい場合には,
28355
28356 \begin_inset Flex Code
28357 status collapsed
28358
28359 \begin_layout Plain Layout
28360 .cvsrc
28361 \end_layout
28362
28363 \end_inset
28364
28365 ファイルを編集して,
28366
28367 \begin_inset Flex Code
28368 status collapsed
28369
28370 \begin_layout Plain Layout
28371 cvs -r
28372 \end_layout
28373
28374 \end_inset
28375
28376 という行を書き加える必要があります.この方法の利点は,
28377 文書のうち,
28378 書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,
28379 一人のユーザーだけがコピーを書き込み可能にしているとは限りません.
28380 \end_layout
28381
28382 \begin_layout Standard
28383 \SpecialChar LyX
28384 は,
28385 あなたが予備付きチェックアウトを使用しているか,
28386 予備なしチェックアウトを利用しているか,
28387 推測しようと試みます.使用中の作業コピーが読み込み専用になっているか,
28388 あるいはそれが書き込み可能であって,
28389 CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,
28390 予備付きチェックアウトを使用しているものと仮定し,
28391 そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,
28392 作業コピーが読み込み専用の場合に書き込み可能にするためには,
28393
28394 \begin_inset Flex MenuItem
28395 status collapsed
28396
28397 \begin_layout Plain Layout
28398 チェックアウト
28399 \end_layout
28400
28401 \end_inset
28402
28403 メニューを使用しなくてはなりません.その後,
28404
28405 \begin_inset Flex MenuItem
28406 status collapsed
28407
28408 \begin_layout Plain Layout
28409 チェックイン
28410 \end_layout
28411
28412 \end_inset
28413
28414 メニューが利用可能になるので,
28415 自分が加えた変更をリポジトリに移した後,
28416 作業コピーを再び読み込み専用にする際には,
28417 これを使用します.
28418 \end_layout
28419
28420 \begin_layout Standard
28421 CVSの詳細な情報は,
28422
28423 \begin_inset Flex URL
28424 status collapsed
28425
28426 \begin_layout Plain Layout
28427
28428 http://www.nongnu.org/cvs
28429 \end_layout
28430
28431 \end_inset
28432
28433
28434 \begin_inset Flex URL
28435 status collapsed
28436
28437 \begin_layout Plain Layout
28438
28439 http://ximbiot.com/cvs
28440 \end_layout
28441
28442 \end_inset
28443
28444 にあります.
28445 \end_layout
28446
28447 \begin_layout Standard
28448 以下に言及するサブコマンドとスイッチを理解するには,
28449
28450 \family typewriter
28451 man cvs
28452 \family default
28453 をお読みください.
28454 \end_layout
28455
28456 \begin_layout Subsubsection
28457 登録
28458 \end_layout
28459
28460 \begin_layout Standard
28461 お使いの文書が改訂管理下に置かれていなければ,
28462 メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
28463
28464 \family sans
28465 登録
28466 \family default
28467 項目は表示されません.
28468 \end_layout
28469
28470 \begin_layout Standard
28471 本コマンドは,
28472 既に文書ディレクトリをCVS管理下に置いている場合に
28473 \series bold
28474 \emph on
28475 のみ
28476 \series default
28477 \emph default
28478 (すなわち
28479 \begin_inset Flex Code
28480 status collapsed
28481
28482 \begin_layout Plain Layout
28483 CVS/Entries
28484 \end_layout
28485
28486 \end_inset
28487
28488 ファイルが存在する場合にのみ),
28489 お使いの文書をCVSに登録します.つまり,
28490 外部ツールを使用して,
28491 アーカイブを自分で作成ないしチェックアウトしなくてはならないことを意味します(このステップを忘れてしまうと,
28492 \SpecialChar LyX
28493 は文書をRCSに登録します).
28494 \end_layout
28495
28496 \begin_layout Standard
28497 すると,
28498 文書の最初の説明文を入力するように促されます.登録したファイルは,
28499 まだチェックインされたわけではないことに注意してください.
28500 \end_layout
28501
28502 \begin_layout Standard
28503 実行されるCVSコマンドは,
28504
28505 \family typewriter
28506 cvs -q add -m"<入力した説明文>" "<ファイル名>"
28507 \family default
28508  です.
28509 \end_layout
28510
28511 \begin_layout Standard
28512 上記および他のすべてのCVSコマンドにおける
28513 \family typewriter
28514 "<ファイル名>"
28515 \family default
28516 は,
28517 「カレント作業ディレクトリをファイルの場所に移動し,
28518 パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
28519 \end_layout
28520
28521 \begin_layout Subsubsection
28522 変更のチェックイン
28523 \end_layout
28524
28525 \begin_layout Standard
28526 ファイルの編集を終えたら,
28527 変更をコミットします.このとき,
28528 文書に変更が加えられていれば,
28529 変更の説明文を入れるよう促されます.その後,
28530 変更がレポジトリに書き込まれます.文書を変更せず,
28531 予備付きチェックアウトが検出された場合,
28532
28533 \begin_inset Flex MenuItem
28534 status collapsed
28535
28536 \begin_layout Plain Layout
28537 チェックアウト
28538 \end_layout
28539
28540 \end_inset
28541
28542 で作られた予備は取り消されます.
28543 \end_layout
28544
28545 \begin_layout Labeling
28546 \labelwidthstring 00.00.0000
28547 CVSコマンド:
28548  
28549 \begin_inset space ~
28550 \end_inset
28551
28552
28553 \begin_inset Newline newline
28554 \end_inset
28555
28556
28557 \begin_inset Flex Code
28558 status collapsed
28559
28560 \begin_layout Plain Layout
28561 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
28562 \end_layout
28563
28564 \end_inset
28565
28566 あるいは
28567 \begin_inset Newline newline
28568 \end_inset
28569
28570
28571 \begin_inset Flex Code
28572 status collapsed
28573
28574 \begin_layout Plain Layout
28575 cvs -q unedit "<ファイル名>"
28576 \end_layout
28577
28578 \end_inset
28579
28580
28581 \end_layout
28582
28583 \begin_layout Subsubsection
28584 変更のチェックアウト
28585 \end_layout
28586
28587 \begin_layout Standard
28588 レポジトリを他人と共有している場合,
28589 他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
28590 \end_layout
28591
28592 \begin_layout Standard
28593 CVSコマンド:
28594
28595 \family typewriter
28596 cvs -q update "<ファイル名>"
28597 \end_layout
28598
28599 \begin_layout Standard
28600 読み込み専用チェックアウトが検出された場合,
28601 作業コピーを書き込み可能にし予備を作成します.
28602 \end_layout
28603
28604 \begin_layout Standard
28605 CVSコマンド:
28606
28607 \family typewriter
28608 cvs -q edit "<ファイル名>"
28609 \end_layout
28610
28611 \begin_layout Subsubsection
28612 レポジトリ版に戻す
28613 \end_layout
28614
28615 \begin_layout Standard
28616 これは,
28617 最後のチェックイン以降,
28618 文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,
28619 次にCVS更新コマンドが実行されます.
28620 \end_layout
28621
28622 \begin_layout Standard
28623 CVSコマンド:
28624
28625 \family typewriter
28626 cvs -q update "<ファイル名>"
28627 \end_layout
28628
28629 \begin_layout Standard
28630 予備付きチェックアウトが検出され,
28631 作業コピーに変更がない場合,
28632 予備のみが取り消されます.
28633 \end_layout
28634
28635 \begin_layout Standard
28636 CVSコマンド:
28637
28638 \family typewriter
28639 cvs -q unedit "<ファイル名>"
28640 \end_layout
28641
28642 \begin_layout Subsubsection
28643
28644 \family sans
28645 コピー
28646 \end_layout
28647
28648 \begin_layout Standard
28649 これは,
28650 現行文書のコピーを生成します.CVSは,
28651 コピー操作を自前ではサポートしませんので,
28652 バージョン履歴には保存されず,
28653 新コピーは新規ファイルとして追加されます.最後のチェックイン以降,
28654 変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,
28655 その後,
28656 新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,
28657 コピーにインクルードされたファイルの相対パスは,
28658
28659 \family sans
28660 ファイル\SpecialChar menuseparator
28661 名前をつけて保存\SpecialChar ldots
28662
28663 \family default
28664 と同様に)全て調整されます.最後に,
28665 元の文書の代わりに,
28666 コピーされたファイルが読み込まれます.
28667 \end_layout
28668
28669 \begin_layout Labeling
28670 \labelwidthstring 00.00.0000
28671 CVSコマンド:
28672  
28673 \begin_inset space ~
28674 \end_inset
28675
28676
28677 \begin_inset Newline newline
28678 \end_inset
28679
28680
28681 \begin_inset Flex Code
28682 status collapsed
28683
28684 \begin_layout Plain Layout
28685 "<ファイル名>"
28686 \end_layout
28687
28688 \end_inset
28689
28690
28691 \begin_inset Flex Code
28692 status collapsed
28693
28694 \begin_layout Plain Layout
28695 "<新ファイル名>"
28696 \end_layout
28697
28698 \end_inset
28699
28700 にコピーする場合
28701 \begin_inset Newline newline
28702 \end_inset
28703
28704
28705 \begin_inset Flex Code
28706 status collapsed
28707
28708 \begin_layout Plain Layout
28709 cvs -q add "<新ファイル名>"
28710 \end_layout
28711
28712 \end_inset
28713
28714
28715 \end_layout
28716
28717 \begin_layout Subsubsection
28718 ファイル名変更
28719 \end_layout
28720
28721 \begin_layout Standard
28722 これは,
28723 現行文書のファイル名を変更します.CVSは,
28724 ファイル名変更操作を自前ではサポートしませんので,
28725 バージョン履歴には保存されず,
28726 名称変更後のファイルは,
28727 新規ファイルとして追加されます.最後のチェックイン以降,
28728 変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,
28729 その後,
28730 ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,
28731 コピーにインクルードされたファイルの相対パスは,
28732
28733 \family sans
28734 ファイル\SpecialChar menuseparator
28735 名前をつけて保存\SpecialChar ldots
28736
28737 \family default
28738 と同様に)全て調整されます.最後に,
28739 新ファイル名を使ってファイルが再度読み込まれます.
28740 \end_layout
28741
28742 \begin_layout Labeling
28743 \labelwidthstring 00.00.0000
28744 CVSコマンド:
28745  
28746 \begin_inset space ~
28747 \end_inset
28748
28749
28750 \begin_inset Newline newline
28751 \end_inset
28752
28753
28754 \begin_inset Flex Code
28755 status collapsed
28756
28757 \begin_layout Plain Layout
28758 "<ファイル名>"
28759 \end_layout
28760
28761 \end_inset
28762
28763
28764 \begin_inset Flex Code
28765 status collapsed
28766
28767 \begin_layout Plain Layout
28768 "<新ファイル名>"
28769 \end_layout
28770
28771 \end_inset
28772
28773 に変更する場合 
28774 \begin_inset space ~
28775 \end_inset
28776
28777
28778 \begin_inset Newline newline
28779 \end_inset
28780
28781
28782 \begin_inset Flex Code
28783 status collapsed
28784
28785 \begin_layout Plain Layout
28786 cvs -q add "<新ファイル名>"
28787 \end_layout
28788
28789 \end_inset
28790
28791  
28792 \begin_inset space ~
28793 \end_inset
28794
28795
28796 \begin_inset Newline newline
28797 \end_inset
28798
28799
28800 \begin_inset Flex Code
28801 status collapsed
28802
28803 \begin_layout Plain Layout
28804 cvs -q remove "<ファイル名>"
28805 \end_layout
28806
28807 \end_inset
28808
28809
28810 \end_layout
28811
28812 \begin_layout Subsubsection
28813 ローカルディレクトリチェックアウトのレポジトリからの更新
28814 \end_layout
28815
28816 \begin_layout Standard
28817 子文書や図を含んだり,
28818 外部
28819 \begin_inset Flex Code
28820 status collapsed
28821
28822 \begin_layout Plain Layout
28823 .tex
28824 \end_layout
28825
28826 \end_inset
28827
28828 ファイルを取り込むなど,
28829 文書が複雑になるにつれ,
28830 バージョン管理の利用は複雑になります.\SpecialChar LyX
28831 は,
28832 文書が存在するツリー全体の更新をサポートします.これは,
28833 CVSの使用法について詳しい知識のない人々や,
28834 レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,
28835 特に便利です.ファイル構造は,
28836 すべての外部ファイルが,
28837 文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,
28838 複合文書を新しいディレクトリを建てて収容するのは,
28839 望ましい習慣です.
28840 \end_layout
28841
28842 \begin_layout Standard
28843 コマンド
28844 \begin_inset Flex Code
28845 status collapsed
28846
28847 \begin_layout Plain Layout
28848 レポジトリを使ってローカル辞書を更新
28849 \end_layout
28850
28851 \end_inset
28852
28853 は,
28854 ディレクトリ全体を更新します.ローカルの変更が検出された場合には,
28855 更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,
28856 コンフリクトを起こしている部分の新旧バージョンが,
28857 両方とも最終文書に置かれますので,
28858 マージの結果を見直し,
28859 修正する必要があります.コンフリクトは,
28860
28861 \begin_inset Flex Code
28862 status collapsed
28863
28864 \begin_layout Plain Layout
28865 <<<<<<<
28866 \end_layout
28867
28868 \end_inset
28869
28870
28871 \begin_inset Flex Code
28872 status collapsed
28873
28874 \begin_layout Plain Layout
28875 >>>>>>>
28876 \end_layout
28877
28878 \end_inset
28879
28880 の対に囲まれ,
28881
28882 \begin_inset Flex Code
28883 status collapsed
28884
28885 \begin_layout Plain Layout
28886 =======
28887 \end_layout
28888
28889 \end_inset
28890
28891 で区切られて表示されます.最初の部分は,
28892 文書名に続いて,
28893 更新操作前のバージョンが置かれています.第2の部分は,
28894
28895 \begin_inset Flex Code
28896 status collapsed
28897
28898 \begin_layout Plain Layout
28899 >
28900 \end_layout
28901
28902 \end_inset
28903
28904 記号列の後にバージョン番号に続いて,
28905 レポジトリ版が置かれます.
28906 \end_layout
28907
28908 \begin_layout Labeling
28909 \labelwidthstring 00.00.0000
28910 CVSコマンド:
28911  
28912 \begin_inset space ~
28913 \end_inset
28914
28915
28916 \begin_inset Newline newline
28917 \end_inset
28918
28919
28920 \begin_inset Flex Code
28921 status collapsed
28922
28923 \begin_layout Plain Layout
28924 cd $path;
28925  cvs diff "."
28926 \end_layout
28927
28928 \end_inset
28929
28930 (変更が検出された場合には知らせる)
28931 \begin_inset Newline newline
28932 \end_inset
28933
28934
28935 \begin_inset Flex Code
28936 status collapsed
28937
28938 \begin_layout Plain Layout
28939 cd $path;
28940  cvs -q update "."
28941 \end_layout
28942
28943 \end_inset
28944
28945
28946 \end_layout
28947
28948 \begin_layout Standard
28949 ここで
28950 \begin_inset Flex Code
28951 status collapsed
28952
28953 \begin_layout Plain Layout
28954 $path
28955 \end_layout
28956
28957 \end_inset
28958
28959 は文書パスを表します.
28960 \end_layout
28961
28962 \begin_layout Subsubsection
28963 履歴を表示
28964 \end_layout
28965
28966 \begin_layout Standard
28967 これは,
28968 CVS文書の全履歴を表示します.
28969 \begin_inset Flex Code
28970 status collapsed
28971
28972 \begin_layout Plain Layout
28973 cvs log 
28974 \begin_inset Quotes eld
28975 \end_inset
28976
28977 <ファイル名>
28978 \begin_inset Quotes erd
28979 \end_inset
28980
28981
28982 \end_layout
28983
28984 \end_inset
28985
28986 の出力がブラウザに表示されます.
28987 \end_layout
28988
28989 \begin_layout Subsubsection
28990 改訂情報
28991 \end_layout
28992
28993 \begin_layout Standard
28994 \SpecialChar LyX
28995 は,
28996 CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,
28997 すべて
28998 \family typewriter
28999 cvs log -r <ファイル名>
29000 \family default
29001 によって抽出されます.詳細については,
29002
29003 \begin_inset CommandInset ref
29004 LatexCommand ref
29005 reference "subsec:VCS改訂情報"
29006 nolink "false"
29007
29008 \end_inset
29009
29010 節を参照してください.
29011 \end_layout
29012
29013 \begin_layout Subsection
29014 \SpecialChar LyX
29015 におけるSVNコマンド
29016 \end_layout
29017
29018 \begin_layout Standard
29019 \SpecialChar LyX
29020 は,
29021 現在SVNを一部サポートしています.そのコマンドは,
29022
29023 \begin_inset Flex MenuItem
29024 status collapsed
29025
29026 \begin_layout Plain Layout
29027 ファイル\SpecialChar menuseparator
29028 バージョン管理
29029 \end_layout
29030
29031 \end_inset
29032
29033 メニューにあります.レポジトリへのアクセスに,
29034 ssh経由のパスワード保護アクセスを使用している場合には,
29035 端末ウィンドウでの入力を促されます.\SpecialChar LyX
29036 は,
29037 SVN 1.5・1.6・1.7・1.8に対して試験されています
29038 \begin_inset Foot
29039 status collapsed
29040
29041 \begin_layout Plain Layout
29042 ほとんどのコマンドは,
29043 1.4でも動作します.
29044 \begin_inset CommandInset ref
29045 LatexCommand ref
29046 reference "subsec:レポジトリからSVN同期"
29047 plural "false"
29048 caps "false"
29049 noprefix "false"
29050 nolink "false"
29051
29052 \end_inset
29053
29054 を参照してください.SVN 1.8では,
29055 ファイルがロックされている時にパーミッション変更点を戻してしまうという現時点では未解決の問題が存在しています.
29056 \end_layout
29057
29058 \end_inset
29059
29060
29061 \end_layout
29062
29063 \begin_layout Subsubsection
29064 登録
29065 \end_layout
29066
29067 \begin_layout Standard
29068 お使いの文書が改訂管理下に置かれていなければ,
29069 メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
29070
29071 \family sans
29072 登録
29073 \family default
29074 項目は表示されません.
29075 \end_layout
29076
29077 \begin_layout Standard
29078 本コマンドは,
29079 既に文書のあるディレクトリをSVN管理下に置いている場合に
29080 \emph on
29081 のみ
29082 \emph default
29083 (すなわち
29084 \begin_inset Flex Code
29085 status collapsed
29086
29087 \begin_layout Plain Layout
29088 .svn/entries
29089 \end_layout
29090
29091 \end_inset
29092
29093 ファイルが存在する場合にのみ),
29094 お使いの文書をSVNに登録します.つまり,
29095 アーカイブはご自分でチェックアウトしなくてはなりません.
29096 \end_layout
29097
29098 \begin_layout Standard
29099 すると,
29100 文書の最初の説明文を入力するように促されます.登録したファイルは,
29101 まだコミットされたわけではないことに注意してください.
29102 \end_layout
29103
29104 \begin_layout Standard
29105 実行されるSVNコマンドは,
29106
29107 \begin_inset Flex Code
29108 status collapsed
29109
29110 \begin_layout Plain Layout
29111 svn add -q 
29112 \begin_inset Quotes qld
29113 \end_inset
29114
29115 <ファイル名>
29116 \begin_inset Quotes qld
29117 \end_inset
29118
29119
29120 \end_layout
29121
29122 \end_inset
29123
29124 です.
29125 \end_layout
29126
29127 \begin_layout Standard
29128 スイッチの説明は
29129 \begin_inset Flex Code
29130 status collapsed
29131
29132 \begin_layout Plain Layout
29133 man svn
29134 \end_layout
29135
29136 \end_inset
29137
29138 をお読みください.
29139 \end_layout
29140
29141 \begin_layout Subsubsection
29142 変更をチェックイン
29143 \end_layout
29144
29145 \begin_layout Standard
29146 ファイルの編集を終えたら,
29147 変更をコミットします.このとき,
29148 変更の説明文を入れるよう促されます.その後,
29149 変更がコミットされます.
29150 \end_layout
29151
29152 \begin_layout Standard
29153 SVNコマンド
29154 \begin_inset Foot
29155 status collapsed
29156
29157 \begin_layout Plain Layout
29158 ロックが有効になっていない場合です.第
29159 \begin_inset CommandInset ref
29160 LatexCommand ref
29161 reference "subsec:SVNファイルロック"
29162 nolink "false"
29163
29164 \end_inset
29165
29166 節をご覧ください.
29167 \end_layout
29168
29169 \end_inset
29170
29171
29172
29173 \begin_inset Flex Code
29174 status collapsed
29175
29176 \begin_layout Plain Layout
29177 svn commit -q -m"<入力した説明文>" "<ファイル名>"
29178 \end_layout
29179
29180 \end_inset
29181
29182
29183 \end_layout
29184
29185 \begin_layout Subsubsection
29186 チェックアウトして編集
29187 \end_layout
29188
29189 \begin_layout Standard
29190 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,
29191 手動で解決しなくてはならないので,
29192 この機能を使う前にSVNのマージ法と干渉解決法を理解しておくようにしてください.
29193 \end_layout
29194
29195 \begin_layout Standard
29196 SVNコマンド
29197 \begin_inset Foot
29198 status collapsed
29199
29200 \begin_layout Plain Layout
29201 同上.
29202 \end_layout
29203
29204 \end_inset
29205
29206
29207
29208 \begin_inset Flex Code
29209 status collapsed
29210
29211 \begin_layout Plain Layout
29212 svn update --non-interactive 
29213 \begin_inset Quotes qld
29214 \end_inset
29215
29216 <ファイル名>
29217 \begin_inset Quotes qld
29218 \end_inset
29219
29220
29221 \end_layout
29222
29223 \end_inset
29224
29225
29226 \end_layout
29227
29228 \begin_layout Subsubsection
29229 リポジトリ版に戻す
29230 \end_layout
29231
29232 \begin_layout Standard
29233 これは,
29234 最後のチェックイン以降,
29235 文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
29236 \end_layout
29237
29238 \begin_layout Standard
29239 SVNコマンド:
29240
29241 \begin_inset Flex Code
29242 status collapsed
29243
29244 \begin_layout Plain Layout
29245 svn revert -q 
29246 \begin_inset Quotes qld
29247 \end_inset
29248
29249 <ファイル名>
29250 \begin_inset Quotes qld
29251 \end_inset
29252
29253
29254 \end_layout
29255
29256 \end_inset
29257
29258
29259 \end_layout
29260
29261 \begin_layout Subsubsection
29262
29263 \family sans
29264 コピー
29265 \end_layout
29266
29267 \begin_layout Standard
29268 これは,
29269 現行文書のコピーを生成します.最後のチェックイン以降,
29270 変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,
29271 その後,
29272 新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,
29273 コピーにインクルードされたファイルの相対パスは,
29274
29275 \family sans
29276 ファイル\SpecialChar menuseparator
29277 名前をつけて保存\SpecialChar ldots
29278
29279 \family default
29280 と同様に)全て調整されます.最後に,
29281 元の文書の代わりに,
29282 コピーされたファイルが読み込まれます.
29283 \end_layout
29284
29285 \begin_layout Labeling
29286 \labelwidthstring 00.00.0000
29287 SVNコマンド:
29288  
29289 \begin_inset space ~
29290 \end_inset
29291
29292
29293 \begin_inset Newline newline
29294 \end_inset
29295
29296
29297 \begin_inset Flex Code
29298 status collapsed
29299
29300 \begin_layout Plain Layout
29301 svn copy -q "<ファイル名>" "<新ファイル名>"
29302 \end_layout
29303
29304 \end_inset
29305
29306
29307 \begin_inset space ~
29308 \end_inset
29309
29310
29311 \begin_inset Newline newline
29312 \end_inset
29313
29314
29315 \begin_inset Flex Code
29316 status collapsed
29317
29318 \begin_layout Plain Layout
29319 svn commit
29320 \end_layout
29321
29322 \end_inset
29323
29324
29325 \end_layout
29326
29327 \begin_layout Subsubsection
29328 ファイル名変更
29329 \end_layout
29330
29331 \begin_layout Standard
29332 これは,
29333 現行文書のファイル名を変更します.最後のチェックイン以降,
29334 変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,
29335 その後,
29336 ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,
29337 コピーにインクルードされたファイルの相対パスは,
29338
29339 \family sans
29340 ファイル\SpecialChar menuseparator
29341 名前をつけて保存\SpecialChar ldots
29342
29343 \family default
29344 と同様に)全て調整されます.最後に,
29345 新ファイル名を使ってファイルが再度読み込まれます.
29346 \end_layout
29347
29348 \begin_layout Labeling
29349 \labelwidthstring 00.00.0000
29350 SVNコマンド:
29351  
29352 \begin_inset space ~
29353 \end_inset
29354
29355
29356 \begin_inset Newline newline
29357 \end_inset
29358
29359
29360 \begin_inset Flex Code
29361 status collapsed
29362
29363 \begin_layout Plain Layout
29364 svn move -q add "<ファイル名>" "<新ファイル名>"
29365 \end_layout
29366
29367 \end_inset
29368
29369
29370 \begin_inset Newline newline
29371 \end_inset
29372
29373
29374 \begin_inset Flex Code
29375 status collapsed
29376
29377 \begin_layout Plain Layout
29378 svn commit
29379 \end_layout
29380
29381 \end_inset
29382
29383
29384 \end_layout
29385
29386 \begin_layout Subsubsection
29387 \begin_inset CommandInset label
29388 LatexCommand label
29389 name "subsec:レポジトリからSVN同期"
29390
29391 \end_inset
29392
29393 レポジトリを使ったローカルディレクトリの同期
29394 \begin_inset Foot
29395 status collapsed
29396
29397 \begin_layout Plain Layout
29398 このコマンドは,
29399 subversion 
29400 \begin_inset Formula $\geqq1.5$
29401 \end_inset
29402
29403 でのみ動作することに注意してください.
29404 \end_layout
29405
29406 \end_inset
29407
29408
29409 \end_layout
29410
29411 \begin_layout Standard
29412 上記の各コマンドはすべて,
29413 共通の短所を持っています.すなわち,
29414 これらのコマンドは現在の文書しか取り扱わないのです.もし,
29415 作業中の文書に図を含めたり,
29416 外部
29417 \begin_inset Flex Code
29418 status collapsed
29419
29420 \begin_layout Plain Layout
29421 .tex
29422 \end_layout
29423
29424 \end_inset
29425
29426 ファイルを取り込んだりすれば,
29427 管理はずっと複雑になります.そこで\SpecialChar LyX
29428 は,
29429 文書のおいてあるツリー全体の更新をサポートします
29430 \begin_inset Foot
29431 status collapsed
29432
29433 \begin_layout Plain Layout
29434 すべての外部ファイルが,
29435 文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
29436 \end_layout
29437
29438 \end_inset
29439
29440 .これは,
29441 subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,
29442 ひじょうに役に立ちます.
29443 \end_layout
29444
29445 \begin_layout Standard
29446 \begin_inset Flex Code
29447 status collapsed
29448
29449 \begin_layout Plain Layout
29450 ローカル辞書をレポジトリを使って更新
29451 \end_layout
29452
29453 \end_inset
29454
29455 コマンドは,
29456 ディレクトリ全体を更新し,
29457 マージに衝突が発生した場合には,
29458 ローカル版は保存されるので,
29459 意図しないデータロスが発生しません.ローカルな変更が発見された場合には,
29460 更新が開始される前にユーザに警告が与えられます.
29461 \end_layout
29462
29463 \begin_layout Labeling
29464 \labelwidthstring 00.00.0000
29465 SVNコマンド:
29466  
29467 \begin_inset space ~
29468 \end_inset
29469
29470
29471 \begin_inset Newline newline
29472 \end_inset
29473
29474
29475 \begin_inset Flex Code
29476 status collapsed
29477
29478 \begin_layout Plain Layout
29479 svn diff $path(変更が発見された場合には通知します)
29480 \begin_inset Newline newline
29481 \end_inset
29482
29483 svn update --accept mine-full $path
29484 \end_layout
29485
29486 \end_inset
29487
29488
29489 \end_layout
29490
29491 \begin_layout Standard
29492 ここで
29493 \begin_inset Flex Code
29494 status collapsed
29495
29496 \begin_layout Plain Layout
29497 $path
29498 \end_layout
29499
29500 \end_inset
29501
29502 は文書のパスを示します.
29503 \end_layout
29504
29505 \begin_layout Subsubsection
29506 履歴を表示
29507 \end_layout
29508
29509 \begin_layout Standard
29510 これは,
29511 SVN文書の全履歴を表示します.
29512 \begin_inset Flex Code
29513 status collapsed
29514
29515 \begin_layout Plain Layout
29516 svn log 
29517 \begin_inset Quotes qld
29518 \end_inset
29519
29520 <ファイル名>
29521 \begin_inset Quotes qld
29522 \end_inset
29523
29524
29525 \end_layout
29526
29527 \end_inset
29528
29529 の出力がブラウザに表示されます.
29530 \end_layout
29531
29532 \begin_layout Subsubsection
29533 ファイルロック
29534 \begin_inset CommandInset label
29535 LatexCommand label
29536 name "subsec:SVNファイルロック"
29537
29538 \end_inset
29539
29540
29541 \end_layout
29542
29543 \begin_layout Standard
29544 別々の改訂管理システム間でファイルを交換しようとすると,
29545 二人のユーザが同じ文書(の一部)を編集している場合,
29546 マージが衝突する問題を引き起こします.そのような衝突が発生した場合,
29547 手動で解決しなくてはならなくなりますが,
29548 その合理的な解決法としては,
29549 与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証するための,
29550 何らかのロック機構を導入することが考えられます.
29551 \end_layout
29552
29553 \begin_layout Standard
29554 SVNには,
29555 このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
29556
29557 \begin_inset Flex Code
29558 status collapsed
29559
29560 \begin_layout Plain Layout
29561 svn:needs-lock
29562 \end_layout
29563
29564 \end_inset
29565
29566 svnファイル特性に依拠した書き込み権限の自動設定(第
29567 \begin_inset CommandInset ref
29568 LatexCommand ref
29569 reference "subsec:自動ロック特性"
29570 nolink "false"
29571
29572 \end_inset
29573
29574 節を参照)です
29575 \begin_inset Foot
29576 status collapsed
29577
29578 \begin_layout Plain Layout
29579 \begin_inset Flex URL
29580 status open
29581
29582 \begin_layout Plain Layout
29583
29584 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
29585 \end_layout
29586
29587 \end_inset
29588
29589
29590 \end_layout
29591
29592 \end_inset
29593
29594 .ある文書について,
29595 この特性が検出されたときには,
29596 \SpecialChar LyX
29597 は自動的に文書編集にSVNロックを使用するようになり,
29598 チェックイン・チェックアウト機構はRCSと同じ枠組みに切り替わります.これは特に,
29599 \SpecialChar LyX
29600 でのファイルの使われ方に以下の二つのモードがあることを意味します.
29601 \end_layout
29602
29603 \begin_layout Itemize
29604 非ロック状態.読み込まれたファイルは,
29605 読み込み専用モードになります.編集するためには,
29606 チェックアウトする必要があります.
29607 \emph on
29608 チェックアウト
29609 \emph default
29610 を行うと,
29611 レポジトリからの更新と,
29612 書き込みロックの獲得が行われます.ロックの獲得ができないと,
29613 非ロック状態から出ることができません.
29614 \end_layout
29615
29616 \begin_layout Itemize
29617 ロック状態.読み込まれたファイルは,
29618 「通常の」編集モードになります.他のユーザには,
29619 このファイルを編集する許可が与えられません.
29620 \emph on
29621 チェックイン
29622 \emph default
29623 を行うと,
29624 変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,
29625 コミットは実行されず
29626 \begin_inset Foot
29627 status collapsed
29628
29629 \begin_layout Plain Layout
29630 コミットは実行されないのに,
29631 コミットメッセージを入力するよう促されますが,
29632 驚かないでください.
29633 \end_layout
29634
29635 \end_inset
29636
29637
29638 書き込みロックの解放のみが行われます.
29639 \end_layout
29640
29641 \begin_layout Standard
29642 SVNコマンド:
29643
29644 \end_layout
29645
29646 \begin_layout Labeling
29647 \labelwidthstring 00.00.0000
29648 チェックイン:
29649  
29650 \begin_inset Flex Code
29651 status collapsed
29652
29653 \begin_layout Plain Layout
29654 svn commit -q -m
29655 \begin_inset Quotes erd
29656 \end_inset
29657
29658 <説明>
29659 \begin_inset Quotes erd
29660 \end_inset
29661
29662  
29663 \begin_inset Quotes eld
29664 \end_inset
29665
29666 <ファイル名>
29667 \begin_inset Quotes erd
29668 \end_inset
29669
29670
29671 \end_layout
29672
29673 \end_inset
29674
29675
29676 \begin_inset Newline newline
29677 \end_inset
29678
29679
29680 \begin_inset Flex Code
29681 status collapsed
29682
29683 \begin_layout Plain Layout
29684 svn unlock 
29685 \begin_inset Quotes eld
29686 \end_inset
29687
29688 <ファイル名>
29689 \begin_inset Quotes erd
29690 \end_inset
29691
29692
29693 \end_layout
29694
29695 \end_inset
29696
29697
29698 \end_layout
29699
29700 \begin_layout Labeling
29701 \labelwidthstring 00.00.0000
29702 チェックアウト:
29703  
29704 \begin_inset Flex Code
29705 status collapsed
29706
29707 \begin_layout Plain Layout
29708 svn update 
29709 \begin_inset Quotes eld
29710 \end_inset
29711
29712 <ファイル名>
29713 \begin_inset Quotes erd
29714 \end_inset
29715
29716
29717 \end_layout
29718
29719 \end_inset
29720
29721
29722 \begin_inset Newline newline
29723 \end_inset
29724
29725
29726 \begin_inset Flex Code
29727 status collapsed
29728
29729 \begin_layout Plain Layout
29730 svn unlock 
29731 \begin_inset Quotes eld
29732 \end_inset
29733
29734 <ファイル名>
29735 \begin_inset Quotes erd
29736 \end_inset
29737
29738
29739 \end_layout
29740
29741 \end_inset
29742
29743
29744 \end_layout
29745
29746 \begin_layout Subsubsection
29747 自動ロック特性
29748 \begin_inset CommandInset label
29749 LatexCommand label
29750 name "subsec:自動ロック特性"
29751
29752 \end_inset
29753
29754
29755 \end_layout
29756
29757 \begin_layout Standard
29758 上述したような
29759 \begin_inset Flex Code
29760 status collapsed
29761
29762 \begin_layout Plain Layout
29763 .lyx
29764 \end_layout
29765
29766 \end_inset
29767
29768 ファイルに対する書き込み権限の自動設定は,
29769
29770 \begin_inset Flex MenuItem
29771 status collapsed
29772
29773 \begin_layout Plain Layout
29774 ファイル\SpecialChar menuseparator
29775 バージョン管理\SpecialChar menuseparator
29776 ロック特性を使用
29777 \end_layout
29778
29779 \end_inset
29780
29781 で行うことができます.このコマンドは,
29782 SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,
29783 使用するにはチェックアウトが必要です).
29784 \end_layout
29785
29786 \begin_layout Standard
29787 SVNコマンド:
29788
29789 \end_layout
29790
29791 \begin_layout Labeling
29792 \labelwidthstring 00.00.0000
29793 チェックイン:
29794  
29795 \begin_inset Flex Code
29796 status collapsed
29797
29798 \begin_layout Plain Layout
29799 svn propset svn:needs-lock ON 
29800 \begin_inset Quotes eld
29801 \end_inset
29802
29803 <ファイル名>
29804 \begin_inset Quotes erd
29805 \end_inset
29806
29807
29808 \end_layout
29809
29810 \end_inset
29811
29812
29813 \end_layout
29814
29815 \begin_layout Labeling
29816 \labelwidthstring 00.00.0000
29817 チェックアウト:
29818  
29819 \begin_inset Flex Code
29820 status collapsed
29821
29822 \begin_layout Plain Layout
29823 svn propdel svn:needs-lock 
29824 \begin_inset Quotes eld
29825 \end_inset
29826
29827 <ファイル名>
29828 \begin_inset Quotes erd
29829 \end_inset
29830
29831
29832 \end_layout
29833
29834 \end_inset
29835
29836
29837 \end_layout
29838
29839 \begin_layout Subsubsection
29840 \begin_inset CommandInset label
29841 LatexCommand label
29842 name "subsec:VCS改訂情報"
29843
29844 \end_inset
29845
29846 文書の改訂情報
29847 \end_layout
29848
29849 \begin_layout Standard
29850 文書中で改訂情報を有効化するにはいくつかの方法があります.
29851 \end_layout
29852
29853 \begin_layout Itemize
29854 \SpecialChar LyX
29855 による直接サポート
29856 \end_layout
29857
29858 \begin_deeper
29859 \begin_layout Itemize
29860 ツリー改訂情報(
29861 \begin_inset Flex Code
29862 status collapsed
29863
29864 \begin_layout Plain Layout
29865 vcs-tree-revision
29866 \end_layout
29867
29868 \end_inset
29869
29870 ).
29871 \begin_inset Flex Code
29872 status collapsed
29873
29874 \begin_layout Plain Layout
29875 svnversion
29876 \end_layout
29877
29878 \end_inset
29879
29880 コマンドの出力を返します.下記の表が,
29881 結果の読み方のヒントを与えるでしょう.
29882 \end_layout
29883
29884 \begin_layout Standard
29885 \align center
29886 \begin_inset Tabular
29887 <lyxtabular version="3" rows="6" columns="2">
29888 <features tabularvalignment="middle">
29889 <column alignment="center" valignment="top">
29890 <column alignment="center" valignment="top">
29891 <row>
29892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29893 \begin_inset Text
29894
29895 \begin_layout Plain Layout
29896 出力
29897 \end_layout
29898
29899 \end_inset
29900 </cell>
29901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29902 \begin_inset Text
29903
29904 \begin_layout Plain Layout
29905 意味
29906 \end_layout
29907
29908 \end_inset
29909 </cell>
29910 </row>
29911 <row>
29912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29913 \begin_inset Text
29914
29915 \begin_layout Plain Layout
29916 4123:4168
29917 \end_layout
29918
29919 \end_inset
29920 </cell>
29921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29922 \begin_inset Text
29923
29924 \begin_layout Plain Layout
29925 改訂版の混合した作業コピー
29926 \end_layout
29927
29928 \end_inset
29929 </cell>
29930 </row>
29931 <row>
29932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29933 \begin_inset Text
29934
29935 \begin_layout Plain Layout
29936 4168M
29937 \end_layout
29938
29939 \end_inset
29940 </cell>
29941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29942 \begin_inset Text
29943
29944 \begin_layout Plain Layout
29945 修正された作業コピー
29946 \end_layout
29947
29948 \end_inset
29949 </cell>
29950 </row>
29951 <row>
29952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29953 \begin_inset Text
29954
29955 \begin_layout Plain Layout
29956 4123S
29957 \end_layout
29958
29959 \end_inset
29960 </cell>
29961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29962 \begin_inset Text
29963
29964 \begin_layout Plain Layout
29965 スイッチされた作業コピー
29966 \end_layout
29967
29968 \end_inset
29969 </cell>
29970 </row>
29971 <row>
29972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29973 \begin_inset Text
29974
29975 \begin_layout Plain Layout
29976 4123P
29977 \end_layout
29978
29979 \end_inset
29980 </cell>
29981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29982 \begin_inset Text
29983
29984 \begin_layout Plain Layout
29985 チェックアウト頻度が低かったことによる不完全な作業コピー
29986 \end_layout
29987
29988 \end_inset
29989 </cell>
29990 </row>
29991 <row>
29992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29993 \begin_inset Text
29994
29995 \begin_layout Plain Layout
29996 4123:4168MS
29997 \end_layout
29998
29999 \end_inset
30000 </cell>
30001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30002 \begin_inset Text
30003
30004 \begin_layout Plain Layout
30005 改訂版が混合し,
30006 修正され,
30007 スイッチされた作業コピー
30008 \end_layout
30009
30010 \end_inset
30011 </cell>
30012 </row>
30013 </lyxtabular>
30014
30015 \end_inset
30016
30017
30018 \end_layout
30019
30020 \begin_layout Itemize
30021 ファイル改訂情報.
30022 \begin_inset Flex Code
30023 status collapsed
30024
30025 \begin_layout Plain Layout
30026 svn
30027 \begin_inset space ~
30028 \end_inset
30029
30030 info
30031 \begin_inset space ~
30032 \end_inset
30033
30034 --xml
30035 \begin_inset space ~
30036 \end_inset
30037
30038 file.lyx
30039 \end_layout
30040
30041 \end_inset
30042
30043 の出力を解析したものが返されます.サポートされるフラグは
30044 \end_layout
30045
30046 \begin_deeper
30047 \begin_layout Itemize
30048 最終コミットのバージョン番号(
30049 \begin_inset Flex Code
30050 status collapsed
30051
30052 \begin_layout Plain Layout
30053 vcs-revision
30054 \end_layout
30055
30056 \end_inset
30057
30058
30059 \end_layout
30060
30061 \begin_layout Itemize
30062 最終コミットの著者(
30063 \begin_inset Flex Code
30064 status collapsed
30065
30066 \begin_layout Plain Layout
30067 vcs-author
30068 \end_layout
30069
30070 \end_inset
30071
30072
30073 \end_layout
30074
30075 \begin_layout Itemize
30076 最終コミットの日付(
30077 \begin_inset Flex Code
30078 status collapsed
30079
30080 \begin_layout Plain Layout
30081 vcs-date
30082 \end_layout
30083
30084 \end_inset
30085
30086
30087 \end_layout
30088
30089 \begin_layout Itemize
30090 最終コミットの時間(
30091 \begin_inset Flex Code
30092 status collapsed
30093
30094 \begin_layout Plain Layout
30095 vcs-time
30096 \end_layout
30097
30098 \end_inset
30099
30100
30101 \end_layout
30102
30103 \end_deeper
30104 \begin_layout Standard
30105 これらの情報は,
30106 情報差込枠で得ることができます(
30107 \family sans
30108 \series bold
30109 挿入\SpecialChar menuseparator
30110 フィールド\SpecialChar menuseparator
30111 バージョン管理改訂番号
30112 \family default
30113 \series default
30114 ).これらの情報は,
30115 ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
30116 \begin_inset Flex Code
30117 status collapsed
30118
30119 \begin_layout Plain Layout
30120 .svn
30121 \end_layout
30122
30123 \end_inset
30124
30125 ディレクトリがあるときのみ)利用可能です.
30126 \end_layout
30127
30128 \end_deeper
30129 \begin_layout Itemize
30130 もう一つの—
30131 ハッカー的な—
30132 方法は,
30133 SVNキーワードを使用する方法です
30134 \begin_inset Foot
30135 status collapsed
30136
30137 \begin_layout Plain Layout
30138 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
30139 \end_layout
30140
30141 \end_inset
30142
30143 .簡単に言えば,
30144 ファイルキーワード特性を設定して(例:
30145
30146 \family sans
30147 svn propset svn:keywords 'Rev' file.lyx
30148 \family default
30149 ),
30150 文書中にキーワード\SpecialChar TeX
30151 コード
30152 \begin_inset Foot
30153 status collapsed
30154
30155 \begin_layout Plain Layout
30156 これは,
30157 \SpecialChar LyX
30158 がキーワードタグの途中で改行してしまわないことを確実にするための,
30159 簡単な方法です.
30160 \end_layout
30161
30162 \end_inset
30163
30164 タグ(例:
30165
30166 \begin_inset Flex Code
30167 status collapsed
30168
30169 \begin_layout Plain Layout
30170 $Rev$
30171 \end_layout
30172
30173 \end_inset
30174
30175 )を貼り付けるのです.このようにして,
30176 SVNクライアントは,
30177 各更新やコミットの後に自動的に改訂番号を代入することができるのです(例:
30178
30179 \begin_inset Flex Code
30180 status collapsed
30181
30182 \begin_layout Plain Layout
30183 $Rev:
30184  59 $
30185 \end_layout
30186
30187 \end_inset
30188
30189 ).このアプローチにはいくつか問題があります.第一に,
30190 \SpecialChar TeX
30191 の世界では「$」文字は数式を表すのに使われるので,
30192 \SpecialChar LyX
30193 中の
30194 \begin_inset Formula $Rev$
30195 \end_inset
30196
30197 という数式表現が,
30198 すべて
30199 \begin_inset Formula $Rev:59$
30200 \end_inset
30201
30202 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,
30203 SVN出力は使用中のロケールに依存するので,
30204 Dateが用いられると,
30205 SVNは,
30206 問題を引き起こすような文字列を容易に生成してしまいます.第三に,
30207 文書中には,
30208 番号だけでなく「Rev:
30209  59」という文字列全体が表示されてしまいます.Subversionがユーザ定義のキーワードを実装するまでは,
30210 このアプローチを信頼性を持って使用したり,
30211 \SpecialChar LyX
30212 がこれを直接サポートすることは,
30213 難しそうです.
30214 \end_layout
30215
30216 \begin_layout Subsection
30217 SVNとWindows環境
30218 \end_layout
30219
30220 \begin_layout Quote
30221 ユーザが,
30222 かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,
30223 TortoiseSVNを使った方が賢明でしょう.—
30224 P.
30225  A.
30226  ルービン
30227 \end_layout
30228
30229 \begin_layout Subsubsection
30230 準備
30231 \end_layout
30232
30233 \begin_layout Standard
30234 \SpecialChar LyX
30235 を導入して,
30236 Subversionレポジトリへのアクセス権を持っている他に,
30237 ユーザはSubversionクライアントプログラムを導入する必要があります.クライアントプログラムのWindows用インストーラは
30238 \begin_inset CommandInset href
30239 LatexCommand href
30240 name "CollabNet"
30241 target "http://www.collab.net/nonav/downloads/subversion/"
30242 literal "false"
30243
30244 \end_inset
30245
30246 にあります.ユーザは
30247 \begin_inset CommandInset href
30248 LatexCommand href
30249 name "TortoiseSVN"
30250 target "http://tortoisesvn.tigris.org/"
30251 literal "false"
30252
30253 \end_inset
30254
30255 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
30256 外部で行う操作は,
30257 一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,
30258 \SpecialChar LyX
30259 自身が使用するクライアントプログラムの代わりとは成りませんので,
30260 注意してください.
30261 \end_layout
30262
30263 \begin_layout Subsubsection
30264 文書をSubversion管理下に置くには
30265 \end_layout
30266
30267 \begin_layout Standard
30268 \SpecialChar LyX
30269 文書をSubversionのバージョン管理下に置く前に,
30270 その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,
30271 既にレポジトリに存在するプロジェクトに追加する際には,
30272 新規文書が置かれることになるディレクトリへ,
30273 プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,
30274 このディレクトリをレポジトリにインポートしなくてはなりません.これは,
30275 \SpecialChar LyX
30276 の外部で行います.インポートもチェックアウトも共に,
30277 TortoiseSVNを使えば,
30278 Explorerのコンテクストメニューから簡単に終えることができます.あるいは,
30279 DOSプロンプトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは既に存在し,
30280 新規プロジェクトを
30281 \begin_inset Flex Code
30282 status collapsed
30283
30284 \begin_layout Plain Layout
30285 C:
30286 \backslash
30287 new project
30288 \end_layout
30289
30290 \end_inset
30291
30292 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,
30293 DOSシェルで
30294 \begin_inset Flex Code
30295 status collapsed
30296
30297 \begin_layout Plain Layout
30298 svn --help
30299 \end_layout
30300
30301 \end_inset
30302
30303 を実行してください.
30304 \end_layout
30305
30306 \begin_layout Enumerate
30307 Windows Explorerで
30308 \begin_inset Flex Code
30309 status collapsed
30310
30311 \begin_layout Plain Layout
30312 C:
30313 \backslash
30314 new project
30315 \end_layout
30316
30317 \end_inset
30318
30319 を見つけ出して右クリックし,
30320
30321 \begin_inset Flex MenuItem
30322 status collapsed
30323
30324 \begin_layout Plain Layout
30325 TortoiseSVN\SpecialChar menuseparator
30326 Repo-browser
30327 \end_layout
30328
30329 \end_inset
30330
30331 を選択してください.必要であれば,
30332 レポジトリのURLを調整し,
30333 OKをクリックしてください.
30334 \end_layout
30335
30336 \begin_layout Enumerate
30337 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
30338
30339 \begin_inset Flex MenuItem
30340 status collapsed
30341
30342 \begin_layout Plain Layout
30343 Create folder\SpecialChar ldots
30344
30345 \end_layout
30346
30347 \end_inset
30348
30349 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,
30350 再びOKをクリックしてください.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,
30351 レポジトリブラウザを終了してください.
30352 \end_layout
30353
30354 \begin_layout Enumerate
30355 再度
30356 \begin_inset Flex Code
30357 status collapsed
30358
30359 \begin_layout Plain Layout
30360 C:
30361 \backslash
30362 new project
30363 \end_layout
30364
30365 \end_inset
30366
30367 を右クリックし,
30368 今度は
30369 \begin_inset Flex MenuItem
30370 status collapsed
30371
30372 \begin_layout Plain Layout
30373 SVN Checkout\SpecialChar ldots
30374
30375 \end_layout
30376
30377 \end_inset
30378
30379 を選択してください.レポジトリにたった今作成した,
30380 プロジェクトフォルダのURLを選択し,
30381 チェックアウトディレクトリを
30382 \begin_inset Flex Code
30383 status collapsed
30384
30385 \begin_layout Plain Layout
30386 C:
30387 \backslash
30388 new project
30389 \end_layout
30390
30391 \end_inset
30392
30393 に設定してから,
30394 OKをクリックしてください.フォルダが空でないことを警告されますが,
30395 OKをクリックして進んでください.すると,
30396
30397 \begin_inset Flex Code
30398 status collapsed
30399
30400 \begin_layout Plain Layout
30401 C:
30402 \backslash
30403 new project
30404 \end_layout
30405
30406 \end_inset
30407
30408 の下に
30409 \begin_inset Flex Code
30410 status collapsed
30411
30412 \begin_layout Plain Layout
30413 .svn
30414 \end_layout
30415
30416 \end_inset
30417
30418 ディレクトリが作成されます.
30419 \end_layout
30420
30421 \begin_layout Enumerate
30422 \SpecialChar LyX
30423 で文書を新規作成するか開くかして,
30424
30425 \begin_inset Flex MenuItem
30426 status collapsed
30427
30428 \begin_layout Plain Layout
30429 ファイル\SpecialChar menuseparator
30430 バージョン管理\SpecialChar menuseparator
30431 登録
30432 \end_layout
30433
30434 \end_inset
30435
30436 をクリックします.ログメッセージを入力してOKをクリックし,
30437 文書をバージョン管理にコミットしてください.
30438 \end_layout
30439
30440 \begin_layout Standard
30441 爾後,
30442
30443 \begin_inset Flex MenuItem
30444 status collapsed
30445
30446 \begin_layout Plain Layout
30447 ファイル\SpecialChar menuseparator
30448 バージョン管理
30449 \end_layout
30450
30451 \end_inset
30452
30453 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,
30454 コマンドプロンプトでのSubversionクライアントプログラムを使用して,
30455 文書をチェックイン・チェックアウトしたり,
30456 履歴を見たりといったことができるようになります.
30457 \end_layout
30458
30459 \begin_layout Subsubsection
30460 Windows下でSVNと共にSSHトンネルを使うには
30461 \end_layout
30462
30463 \begin_layout Standard
30464 Linuxに較べて,
30465 WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,
30466 かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
30467 少なくとも幾分かのヒントをお示しするつもりですが,
30468 sshとWindowsコマンドラインの知識が前もって必要であり,
30469 それと共にかなりの量のフラストレーションが溜まることを覚悟しておいてください.
30470 \end_layout
30471
30472 \begin_layout Enumerate
30473 前節で述べたように,
30474 Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,
30475 何らかのSVNコマンド(たとえば
30476 \begin_inset Flex Code
30477 status collapsed
30478
30479 \begin_layout Plain Layout
30480 svn --version
30481 \end_layout
30482
30483 \end_inset
30484
30485 )を実行して,
30486 configファイル群を生成させてください.これらは後で変更を加える必要があります.
30487 \end_layout
30488
30489 \begin_layout Enumerate
30490 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,
30491 ここではPutty tools
30492 \begin_inset Foot
30493 status open
30494
30495 \begin_layout Plain Layout
30496 \begin_inset Flex URL
30497 status collapsed
30498
30499 \begin_layout Plain Layout
30500
30501 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
30502 \end_layout
30503
30504 \end_inset
30505
30506
30507 \end_layout
30508
30509 \end_inset
30510
30511 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,
30512 接続を自動化する必要があります.簡単にするために,
30513 追加的なパスワード保護などを加えないキーのみを使用することとします.
30514 \end_layout
30515
30516 \begin_deeper
30517 \begin_layout Enumerate
30518 \begin_inset Flex Code
30519 status collapsed
30520
30521 \begin_layout Plain Layout
30522 puttygen
30523 \end_layout
30524
30525 \end_inset
30526
30527 を使ってキーを生成します..ppkプライベートキーファイルを保存し,
30528 パブリックキーファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,
30529 このパブリックキーの書式はLinuxのopensshと互換性がないために,
30530 「Public key for pasting into OpenSSH authorized_keys file:」編集フィールドから,
30531 直接サーバの
30532 \begin_inset Flex Code
30533 status collapsed
30534
30535 \begin_layout Plain Layout
30536 ~/.ssh/authorized_keys
30537 \end_layout
30538
30539 \end_inset
30540
30541 または
30542 \begin_inset Flex Code
30543 status collapsed
30544
30545 \begin_layout Plain Layout
30546 authorized_keys2
30547 \end_layout
30548
30549 \end_inset
30550
30551 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
30552 \end_layout
30553
30554 \begin_layout Enumerate
30555 Puttyのplinkを入手してください.SVNのconfigファイル
30556 \begin_inset Foot
30557 status collapsed
30558
30559 \begin_layout Plain Layout
30560 正確なパスはWindowsのバージョンに依りますが,
30561 通常は
30562 \begin_inset Flex Code
30563 status collapsed
30564
30565 \begin_layout Plain Layout
30566 c:
30567 \backslash
30568 Documents and Settings
30569 \backslash
30570 user
30571 \backslash
30572 Application Data
30573 \backslash
30574 Subversion
30575 \backslash
30576 config
30577 \end_layout
30578
30579 \end_inset
30580
30581
30582 \begin_inset Flex Code
30583 status collapsed
30584
30585 \begin_layout Plain Layout
30586 AppData
30587 \backslash
30588 Roaming
30589 \backslash
30590 Subversion
30591 \end_layout
30592
30593 \end_inset
30594
30595 辺りにあります.
30596 \end_layout
30597
30598 \end_inset
30599
30600 中の
30601 \begin_inset Flex Code
30602 status collapsed
30603
30604 \begin_layout Plain Layout
30605 [tunnels]
30606 \end_layout
30607
30608 \end_inset
30609
30610 セクションにsshコマンドを設定してください.例:
30611
30612 \begin_inset Flex Code
30613 status collapsed
30614
30615 \begin_layout Plain Layout
30616 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
30617 \end_layout
30618
30619 \end_inset
30620
30621
30622 \begin_inset Foot
30623 status collapsed
30624
30625 \begin_layout Plain Layout
30626 通常,
30627 正確なコマンドを機能させるには長い時間がかかり,
30628 それは多くの物事に依存します.たとえば,
30629 リモートサーバがPuttyなどの既定セッションとして保存されないようにしてください.うまく行かない場合には,
30630 まずSVNなしでplink経由の接続を試してください.
30631 \end_layout
30632
30633 \end_inset
30634
30635
30636 \end_layout
30637
30638 \end_deeper
30639 \begin_layout Enumerate
30640 SVNアーカイブをチェックアウトしてください.例:
30641
30642 \begin_inset Newline newline
30643 \end_inset
30644
30645
30646 \begin_inset Flex Code
30647 status collapsed
30648
30649 \begin_layout Plain Layout
30650 svn co svn+ssh://user@server/repository_path
30651 \end_layout
30652
30653 \end_inset
30654
30655
30656 \end_layout
30657
30658 \begin_layout Subsubsection
30659 行末変換
30660 \end_layout
30661
30662 \begin_layout Standard
30663 共著者同士がLinuxとWindowsを混在させているとき,
30664 \SpecialChar LyX
30665 は.lyxファイル中で異なった行末記号を使用することになります.これは,
30666 \SpecialChar LyX
30667 の機能に関する限り問題になりませんが,
30668 コミット差分は巨大になり,
30669 マージではコンフリクトを引き起こしがちです.幸いにして,
30670 SVNは,
30671 .lyxファイルを
30672 \begin_inset Flex Code
30673 status collapsed
30674
30675 \begin_layout Plain Layout
30676 native
30677 \end_layout
30678
30679 \end_inset
30680
30681 モードに切り替える際
30682 \begin_inset Foot
30683 status collapsed
30684
30685 \begin_layout Plain Layout
30686 手短には
30687 \begin_inset Flex Code
30688 status collapsed
30689
30690 \begin_layout Plain Layout
30691 svn propset svn:eol-style native FILE_NAME
30692 \end_layout
30693
30694 \end_inset
30695
30696
30697 \end_layout
30698
30699 \end_inset
30700
30701
30702 CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
30703 \begin_inset Foot
30704 status collapsed
30705
30706 \begin_layout Plain Layout
30707 \begin_inset Flex URL
30708 status collapsed
30709
30710 \begin_layout Plain Layout
30711
30712 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
30713 \end_layout
30714
30715 \end_inset
30716
30717
30718 \end_layout
30719
30720 \end_inset
30721
30722
30723 \end_layout
30724
30725 \begin_layout Subsection
30726 \SpecialChar LyX
30727 におけるGITコマンド
30728 \end_layout
30729
30730 \begin_layout Standard
30731 \SpecialChar LyX
30732 で,
30733 最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
30734
30735 \family sans
30736 \series bold
30737 ファイル\SpecialChar menuseparator
30738 バージョン管理
30739 \family default
30740 \series default
30741
30742 \begin_inset space \thinspace{}
30743 \end_inset
30744
30745 にあります.リポジトリのアクセスに,
30746 パスワード保護されたsshを使用している場合には,
30747 ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
30748 は,
30749 GIT 1.7に対して試験を行っています
30750 \begin_inset Foot
30751 status collapsed
30752
30753 \begin_layout Plain Layout
30754 Windowsユーザーはgitにパスが通っていることを確認する必要があります.これは,
30755 \SpecialChar LyX
30756 中から
30757 \family sans
30758 ツール\SpecialChar menuseparator
30759 設定\SpecialChar menuseparator
30760 パス\SpecialChar menuseparator
30761 PATH接頭辞
30762 \family default
30763 で設定できます.
30764 \end_layout
30765
30766 \end_inset
30767
30768
30769 \end_layout
30770
30771 \begin_layout Standard
30772 GITと他のバージョン管理システムとの大きな相違点は,
30773 GITの配布形態にあります.伝統的なバージョン管理システムでは,
30774 リポジトリをホストする,
30775 中心となるサーバーがあります.ユーザーは変更点をサーバーにコミットし,
30776 他のユーザーが行った更新分をサーバーから受け取ります.一方,
30777 GITでは,
30778 ユーザーは,
30779 ローカルのリポジトリにコミットを行います.ローカルリポジトリは,
30780 GITコマンドの
30781 \begin_inset Flex Code
30782 status collapsed
30783
30784 \begin_layout Plain Layout
30785 pull
30786 \end_layout
30787
30788 \end_inset
30789
30790 または
30791 \begin_inset Flex Code
30792 status collapsed
30793
30794 \begin_layout Plain Layout
30795 push
30796 \end_layout
30797
30798 \end_inset
30799
30800 を使って,
30801 1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
30802 は,
30803 リモートのGITリポジトリとは,
30804 一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じことを,
30805 ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,
30806 お好みのGITクライアントを使用して,
30807
30808 \begin_inset Flex Code
30809 status collapsed
30810
30811 \begin_layout Plain Layout
30812 pull
30813 \end_layout
30814
30815 \end_inset
30816
30817 または
30818 \begin_inset Flex Code
30819 status collapsed
30820
30821 \begin_layout Plain Layout
30822 push
30823 \end_layout
30824
30825 \end_inset
30826
30827 の操作を行う必要があります.
30828 \end_layout
30829
30830 \begin_layout Subsubsection
30831 登録
30832 \end_layout
30833
30834 \begin_layout Standard
30835 お使いの文書が改訂管理下に置かれていなければ,
30836 メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
30837
30838 \family sans
30839 登録
30840 \family default
30841 項目は表示されません.
30842 \end_layout
30843
30844 \begin_layout Standard
30845 本コマンドは,
30846 既に文書のあるディレクトリをGIT管理下に置いている場合に
30847 \emph on
30848 のみ
30849 \emph default
30850 (すなわち
30851 \begin_inset Flex Code
30852 status collapsed
30853
30854 \begin_layout Plain Layout
30855 .git/index
30856 \end_layout
30857
30858 \end_inset
30859
30860 ファイルが存在する場合にのみ),
30861 お使いの文書をGITに登録します.つまり,
30862 アーカイブはご自分でチェックアウトしなくてはなりません.
30863 \end_layout
30864
30865 \begin_layout Standard
30866 すると,
30867 文書の最初の説明文を入力するように促されます.登録したファイルは,
30868 まだコミットされたわけではないことに注意してください.
30869 \end_layout
30870
30871 \begin_layout Standard
30872 実行されるGITコマンドは,
30873
30874 \begin_inset Flex Code
30875 status collapsed
30876
30877 \begin_layout Plain Layout
30878 git add "<ファイル名>"
30879 \end_layout
30880
30881 \end_inset
30882
30883 です.
30884 \end_layout
30885
30886 \begin_layout Standard
30887 スイッチの説明は
30888 \begin_inset Flex Code
30889 status collapsed
30890
30891 \begin_layout Plain Layout
30892 man git
30893 \end_layout
30894
30895 \end_inset
30896
30897 をお読みください.
30898 \end_layout
30899
30900 \begin_layout Subsubsection
30901 変更をチェックイン
30902 \end_layout
30903
30904 \begin_layout Standard
30905 ファイルの編集を終えたら,
30906 変更をコミットします.このとき,
30907 変更の説明文を入れるよう促されます.その後,
30908 変更がコミットされます.
30909 \end_layout
30910
30911 \begin_layout Standard
30912 GITコマンド:
30913
30914 \begin_inset Flex Code
30915 status collapsed
30916
30917 \begin_layout Plain Layout
30918 git commit -q -m
30919 \begin_inset Quotes erd
30920 \end_inset
30921
30922 <入力した説明文>
30923 \begin_inset Quotes erd
30924 \end_inset
30925
30926  "<ファイル名>"
30927 \end_layout
30928
30929 \end_inset
30930
30931
30932 \end_layout
30933
30934 \begin_layout Subsubsection
30935 リポジトリ版に戻す
30936 \end_layout
30937
30938 \begin_layout Standard
30939 これは,
30940 最後のチェックイン以降,
30941 文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
30942 \end_layout
30943
30944 \begin_layout Standard
30945 GITコマンド:
30946
30947 \begin_inset Flex Code
30948 status collapsed
30949
30950 \begin_layout Plain Layout
30951 git checkout -q 
30952 \begin_inset Quotes qld
30953 \end_inset
30954
30955 <ファイル名>
30956 \begin_inset Quotes qld
30957 \end_inset
30958
30959
30960 \end_layout
30961
30962 \end_inset
30963
30964
30965 \end_layout
30966
30967 \begin_layout Subsubsection
30968 ファイル名変更
30969 \end_layout
30970
30971 \begin_layout Standard
30972 これは,
30973 現行文書のファイル名を変更します.最後のチェックイン以降,
30974 変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,
30975 その後,
30976 ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,
30977 コピーにインクルードされたファイルの相対パスは,
30978
30979 \family sans
30980 ファイル\SpecialChar menuseparator
30981 名前をつけて保存\SpecialChar ldots
30982
30983 \family default
30984 と同様に)全て調整されます.最後に,
30985 新ファイル名を使ってファイルが再度読み込まれます.
30986 \end_layout
30987
30988 \begin_layout Labeling
30989 \labelwidthstring 00.00.0000
30990 GITコマンド:
30991  
30992 \begin_inset space ~
30993 \end_inset
30994
30995
30996 \begin_inset Newline newline
30997 \end_inset
30998
30999
31000 \begin_inset Flex Code
31001 status collapsed
31002
31003 \begin_layout Plain Layout
31004 git mv "<ファイル名>" "<新ファイル名>"
31005 \end_layout
31006
31007 \end_inset
31008
31009
31010 \begin_inset Newline newline
31011 \end_inset
31012
31013
31014 \begin_inset Flex Code
31015 status collapsed
31016
31017 \begin_layout Plain Layout
31018 git commit
31019 \end_layout
31020
31021 \end_inset
31022
31023
31024 \end_layout
31025
31026 \begin_layout Subsubsection
31027 履歴を表示
31028 \end_layout
31029
31030 \begin_layout Standard
31031 これは,
31032 GIT文書の全履歴を表示します.
31033 \begin_inset Flex Code
31034 status collapsed
31035
31036 \begin_layout Plain Layout
31037 git log 
31038 \begin_inset Quotes qld
31039 \end_inset
31040
31041 <ファイル名>
31042 \begin_inset Quotes qld
31043 \end_inset
31044
31045
31046 \end_layout
31047
31048 \end_inset
31049
31050 の出力がブラウザに表示されます.
31051 \end_layout
31052
31053 \begin_layout Subsubsection
31054 改訂情報
31055 \end_layout
31056
31057 \begin_layout Standard
31058 \SpecialChar LyX
31059 は,
31060 ファイルの最終コミットのGITハッシュ番号・その短縮形・著者名・最終コミットの日時をサポートします.これらの情報は,
31061 すべて
31062 \begin_inset Flex Code
31063 status collapsed
31064
31065 \begin_layout Plain Layout
31066 git log -n 1 --pretty=format:%H%n%h%n%an%n%ai
31067 \end_layout
31068
31069 \end_inset
31070
31071 によって抽出されます.ツリーバージョン情報は,
31072
31073 \begin_inset Flex Code
31074 status collapsed
31075
31076 \begin_layout Plain Layout
31077 git describe --abbrev --dirty --long
31078 \end_layout
31079
31080 \end_inset
31081
31082 で取得されます.詳細については,
31083
31084 \begin_inset CommandInset ref
31085 LatexCommand ref
31086 reference "subsec:VCS改訂情報"
31087 nolink "false"
31088
31089 \end_inset
31090
31091 節を参照してください.
31092 \end_layout
31093
31094 \begin_layout Subsection
31095 さらなる調整
31096 \end_layout
31097
31098 \begin_layout Standard
31099 最近になって
31100 \begin_inset Flex Code
31101 status collapsed
31102
31103 \begin_layout Plain Layout
31104 vc-command
31105 \end_layout
31106
31107 \end_inset
31108
31109 機構が付け加えられたおかげで,
31110 \SpecialChar LyX
31111 のパワーユーザは,
31112 改訂管理のための自製コマンドを作ることができるようになりました.
31113 \end_layout
31114
31115 \begin_layout Standard
31116 たとえば,
31117 以下のようにして,
31118 二つのTortoiseSVNコマンドを直接統合することができます.
31119 \end_layout
31120
31121 \begin_layout Description
31122 コミット:
31123  
31124 \begin_inset Flex Code
31125 status collapsed
31126
31127 \begin_layout Plain Layout
31128 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
31129 \end_layout
31130
31131 \end_inset
31132
31133
31134 \end_layout
31135
31136 \begin_layout Description
31137 元に戻す:
31138  
31139 \begin_inset Flex Code
31140 status collapsed
31141
31142 \begin_layout Plain Layout
31143 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
31144 \end_layout
31145
31146 \end_inset
31147
31148
31149 \end_layout
31150
31151 \begin_layout Subsection
31152 バージョン管理と文書比較
31153 \end_layout
31154
31155 \begin_layout Standard
31156 バージョン管理は,
31157 通常
31158 \begin_inset Flex Code
31159 status collapsed
31160
31161 \begin_layout Plain Layout
31162 diff
31163 \end_layout
31164
31165 \end_inset
31166
31167 ダンプを生成することによって,
31168 改訂版の間の変更点を検査するのが,
31169 典型的な使用法です.これは平文ファイルには有効なのですが,
31170 複雑な構造を持つ\SpecialChar LyX
31171 ファイルの場合には,
31172 あまり便利ではありません.そこで,
31173 \SpecialChar LyX
31174 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,
31175 \SpecialChar LyX
31176
31177 \begin_inset Flex Code
31178 status collapsed
31179
31180 \begin_layout Plain Layout
31181 vc-compare
31182 \end_layout
31183
31184 \end_inset
31185
31186 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
31187 関数説明書を参照),
31188 もう1つはツールバーアイコン
31189 \begin_inset Info
31190 type  "icon"
31191 arg   "vc-compare"
31192 \end_inset
31193
31194 による方法,
31195 さらにはメニュー項目
31196 \begin_inset Info
31197 type  "menu"
31198 arg   "vc-compare"
31199 \end_inset
31200
31201 を使用する方法です.当該文書のうち,
31202 任意の2つの改訂版を比較することもできますし,
31203 編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
31204 \begin_inset Flex MenuItem
31205 status collapsed
31206
31207 \begin_layout Plain Layout
31208 0
31209 \end_layout
31210
31211 \end_inset
31212
31213 」は,
31214 編集中のファイルと最後にコミットした改訂版との比較を意味します).
31215 \end_layout
31216
31217 \begin_layout Standard
31218 この機能は,
31219 SVNとRCSでサポートされていますが,
31220 RCSは,
31221 より複雑なバージョン付けスキームを持っているため,
31222 制約があります.ダイアログ中で改訂版を指定する際の数字は,
31223 つねにRCS改訂番号の最後の数を指し示します(例:
31224 「1.2.35」版のときには「35」).現在のところ,
31225 改訂のGIT表記はサポートされておらず,
31226
31227 \begin_inset Flex Code
31228 status collapsed
31229
31230 \begin_layout Plain Layout
31231 HEAD~X
31232 \end_layout
31233
31234 \end_inset
31235
31236
31237 \lang english
31238 .
31239 \lang japanese
31240 の形で表記されるXステップ前の改訂版を,
31241 編集中文書と比較することのみが可能です.
31242 \end_layout
31243
31244 \begin_layout Section
31245 文芸プログラミング
31246 \begin_inset CommandInset label
31247 LatexCommand label
31248 name "sec:文芸プログラミング"
31249
31250 \end_inset
31251
31252
31253 \end_layout
31254
31255 \begin_layout Standard
31256
31257 \noun on
31258 Kayvan Sylvan
31259 \noun default
31260 (kayvan@sylvan.com)改訂 
31261 \noun on
31262 Edmar Wienskoski Jr.
31263 \noun default
31264 (edmar-w-jr@technologist.com)原文
31265 \end_layout
31266
31267 \begin_layout Subsection
31268 はじめに
31269 \end_layout
31270
31271 \begin_layout Standard
31272 この節の主な目的は,
31273 文芸的プログラミング(literate programming)のために,
31274 \SpecialChar LyX
31275 をどう使えばよいかをお見せすることです.ここでは,
31276 あなたがこのプログラミング技術をよくご存じで,
31277 「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,
31278 以下の各節にあるウェブリンクをたどってください.そこには,
31279 かつての開発の歴史から最新のツールチップまで,
31280 たくさんの良質なドキュメンテーションがあります.
31281 \end_layout
31282
31283 \begin_layout Standard
31284 また,
31285 あなたが,
31286 \SpecialChar LyX
31287 の設定を変更することを厭わない程度まで\SpecialChar LyX
31288 に習熟しており,
31289 Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,
31290 あなたの必要とするトピックを扱っている,
31291 \SpecialChar LyX
31292 の他の説明書で調べてください.
31293 \end_layout
31294
31295 \begin_layout Subsection
31296 文芸プログラミング
31297 \end_layout
31298
31299 \begin_layout Standard
31300 以下は,
31301 文芸プログラミング FAQからの抜粋です.
31302 \end_layout
31303
31304 \begin_layout Quotation
31305 文芸プログラミングは,
31306 人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,
31307 文芸的プログラムは楽しい読み物であるべきであり,
31308 さらには参加したいとさえ思わせるべきなのです!
31309 (ボブ,
31310 ごめん.言わずにはいれなかった.)一般的に,
31311 文芸プログラムは,
31312 ソースとドキュメンテーションを同一ファイル上に結合したものです.そして,
31313 文芸プログラミングツールは,
31314 ファイルを解析して,
31315 読むことのできるドキュメンテーションか,
31316 あるいはコンパイル可能なソースを生成します.文芸プログラミングのWEBスタイルは,
31317 D.
31318 \begin_inset space \thinspace{}
31319 \end_inset
31320
31321 E.
31322  Knuthが,
31323 \SpecialChar TeX
31324 組版ソフトウエアを開発中に作り出したものです.
31325 \end_layout
31326
31327 \begin_layout Standard
31328 他のエキスパートの発言です.
31329 \end_layout
31330
31331 \begin_layout Quotation
31332
31333 \emph on
31334 文芸プログラミングは,
31335 冗長なコメント付けと何が違いますか?
31336 \end_layout
31337
31338 \begin_layout Quotation
31339 3つの際立った特徴があります.重要な順に列挙すれば,
31340
31341 \end_layout
31342
31343 \begin_deeper
31344 \begin_layout Itemize
31345 推敲の順序が柔軟
31346 \end_layout
31347
31348 \begin_layout Itemize
31349 ブラウジングの自動サポート
31350 \end_layout
31351
31352 \begin_layout Itemize
31353 特に図式と数式を含んだドキュメンテーションの組版
31354 \end_layout
31355
31356 \end_deeper
31357 \begin_layout Quotation
31358 などがあります.
31359 \end_layout
31360
31361 \begin_layout Standard
31362 あなたの興味に火を付けたところで書誌情報を見てみましょう.
31363 \end_layout
31364
31365 \begin_layout Subsubsection
31366 書誌情報
31367 \end_layout
31368
31369 \begin_layout Standard
31370 完全な文芸プログラミング FAQは
31371 \end_layout
31372
31373 \begin_layout Quote
31374 Literate Programming FAQ 
31375 \begin_inset Flex URL
31376 status open
31377
31378 \begin_layout Plain Layout
31379
31380 http://www.literateprogramming.com/lpfaq.pdf
31381 \end_layout
31382
31383 \end_inset
31384
31385
31386 \end_layout
31387
31388 \begin_layout Standard
31389 にあります.
31390 \end_layout
31391
31392 \begin_layout Standard
31393 このFAQには,
31394 23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,
31395 特定のプログラミング言語用に特化したものですが,
31396 一般的な対象を持つものもあります.私は自分で使うのに,
31397 いくつかの理由から
31398 \noun on
31399 Noweb
31400 \noun default
31401 を選びました.
31402 \end_layout
31403
31404 \begin_layout Itemize
31405 説明文書を\SpecialChar LaTeX
31406 でもHTMLでも出力できる.
31407 \end_layout
31408
31409 \begin_layout Itemize
31410 オープンアーキテクチャを持っているので,
31411 新しいフィルタをプラグインとして加えたり
31412 \begin_inset Foot
31413 status collapsed
31414
31415 \begin_layout Plain Layout
31416
31417 \emph on
31418 フィルタ
31419 \emph default
31420 は,
31421 与えられたデータストリームを読み込み,
31422 操作されたデータストリームを出力するプログラムです.このようにして,
31423 (文芸コードを含んだ)WEBファイルを,
31424 Cプログラムコードや\SpecialChar LaTeX
31425 コードのみを含むファイルに変換することができます.
31426 \end_layout
31427
31428 \end_inset
31429
31430
31431 自分が必要な特別な処理を実行することが容易である.
31432 \end_layout
31433
31434 \begin_layout Itemize
31435 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
31436 \end_layout
31437
31438 \begin_layout Itemize
31439 無料である.
31440 \end_layout
31441
31442 \begin_layout Standard
31443 Nowebのウェブページは
31444 \end_layout
31445
31446 \begin_layout Quote
31447 Nowebホームページ 
31448 \begin_inset Flex URL
31449 status collapsed
31450
31451 \begin_layout Plain Layout
31452
31453 https://www.cs.tufts.edu/~nr/noweb/
31454 \end_layout
31455
31456 \end_inset
31457
31458
31459 \end_layout
31460
31461 \begin_layout Standard
31462 にあります.ここから始めれば,
31463 たくさんの興味深いリンクや,
31464 文芸プログラミングの用例にたどり着くことができます.
31465 \end_layout
31466
31467 \begin_layout Subsection
31468 \SpecialChar LyX
31469 とNowebを使った文芸プログラミング
31470 \end_layout
31471
31472 \begin_layout Standard
31473 \SpecialChar LyX
31474 における文芸プログラミングのサポートは,
31475 \SpecialChar LyX
31476 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,
31477 LyXの設定を変更するだけで,
31478 自分の好きな他の文芸プログラミングツールを使って,
31479 この新しい\SpecialChar LyX
31480 の機能を利用することができます.
31481 \end_layout
31482
31483 \begin_layout Subsubsection
31484 ドキュメントとコードの生成(weavingおよびtangling)
31485 \end_layout
31486
31487 \begin_layout Paragraph
31488 nowebモジュールの使用
31489 \end_layout
31490
31491 \begin_layout Standard
31492 Nowebと\SpecialChar LyX
31493 の導入に成功したならば,
31494 新規文書を開いたときにはいつも,
31495 文書クラスを選択した後,
31496
31497 \family sans
31498 \series bold
31499 文書\SpecialChar menuseparator
31500 設定
31501 \family default
31502 \series default
31503
31504 \begin_inset space \thinspace{}
31505 \end_inset
31506
31507 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,
31508 「モジュール」リンクをクリックした際,
31509 利用可能リストに「noweb」モジュールが表示され,
31510 文書に追加できるようになっています.
31511 \end_layout
31512
31513 \begin_layout Paragraph
31514 コードの入力
31515 \end_layout
31516
31517 \begin_layout Standard
31518 \SpecialChar LyX
31519 では,
31520
31521 \begin_inset Flex Noun
31522 status collapsed
31523
31524 \begin_layout Plain Layout
31525 Chunk
31526 \end_layout
31527
31528 \end_inset
31529
31530 という名前の特別差込枠を使えば,
31531 コードを入力することができます.Nowebは次のようにchunks を区切ります.
31532 \end_layout
31533
31534 \begin_layout LyX-Code
31535 <<My code>>=
31536 \end_layout
31537
31538 \begin_layout LyX-Code
31539   code
31540 \end_layout
31541
31542 \begin_layout LyX-Code
31543   more code
31544 \end_layout
31545
31546 \begin_layout LyX-Code
31547   even more code
31548 \end_layout
31549
31550 \begin_layout LyX-Code
31551   @
31552 \end_layout
31553
31554 \begin_layout Standard
31555 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,
31556 \SpecialChar LyX
31557 は,
31558 この間に書かれたものを特別に解釈することは決してあってはなりません.これも
31559 \begin_inset Flex Noun
31560 status collapsed
31561
31562 \begin_layout Plain Layout
31563 Chunk
31564 \end_layout
31565
31566 \end_inset
31567
31568 によって取り扱われ,
31569 通常のテキスト差込枠のように見えますが,
31570 自由に空白を入れることができます.
31571 \end_layout
31572
31573 \begin_layout Standard
31574 特殊な注釈として,
31575 chunk内でNowebの「%def」を使えば,
31576 Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
31577 \end_layout
31578
31579 \begin_layout LyX-Code
31580 <<My chunk>>=
31581 \end_layout
31582
31583 \begin_layout LyX-Code
31584 def some_function(args):
31585 \end_layout
31586
31587 \begin_layout LyX-Code
31588    "This is the doc string for this function."
31589 \end_layout
31590
31591 \begin_layout LyX-Code
31592    print "My args:
31593  ",
31594  args
31595 \end_layout
31596
31597 \begin_layout LyX-Code
31598 @ %def some_function
31599 \end_layout
31600
31601 \begin_layout Standard
31602 これをどのように使って,
31603 その結果相互参照がどうなるかは
31604 \emph on
31605 LIBDIR/examples/listerrors.lyx
31606 \emph default
31607 の中の文芸pythonプログラムを見るとよくわかります.
31608 \end_layout
31609
31610 \begin_layout Paragraph
31611 説明文書の生成
31612 \end_layout
31613
31614 \begin_layout Standard
31615 この時点で,
31616 適切な文書クラスを持ち,
31617 いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは簡単で,
31618 通常の文書で行うように
31619 \family sans
31620
31621 \begin_inset space \thinspace{}
31622 \end_inset
31623
31624
31625 \series bold
31626 文書\SpecialChar menuseparator
31627 表示
31628 \series default
31629
31630 \begin_inset space \thinspace{}
31631 \end_inset
31632
31633
31634 \family default
31635 等を選ぶだけです.特別な手続きは必要ありません.
31636 \end_layout
31637
31638 \begin_layout Standard
31639 理解を助けるために,
31640 \SpecialChar LyX
31641 の内部で何が起っているかを説明しておきましょう.
31642 \end_layout
31643
31644 \begin_layout Enumerate
31645
31646 \family sans
31647 \series bold
31648 文書\SpecialChar menuseparator
31649 更新
31650 \series default
31651
31652 \begin_inset space \thinspace{}
31653 \end_inset
31654
31655
31656 \family default
31657 が選択されると,
31658 \SpecialChar LaTeX
31659 ファイルがつくられます.
31660 \end_layout
31661
31662 \begin_deeper
31663 \begin_layout Standard
31664 文書が文芸プログラミング用のクラスであった場合には,
31665 拡張子に(
31666 \begin_inset Flex MenuItem
31667 status collapsed
31668
31669 \begin_layout Plain Layout
31670 設定
31671 \end_layout
31672
31673 \end_inset
31674
31675 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
31676 \end_layout
31677
31678 \end_deeper
31679 \begin_layout Enumerate
31680 違いがファイル名だけなのに注意してください.\SpecialChar LyX
31681 による特別な処理は必要ありません.
31682 \begin_inset Flex Noun
31683 status collapsed
31684
31685 \begin_layout Plain Layout
31686 Chunk
31687 \end_layout
31688
31689 \end_inset
31690
31691 差込枠でコードを入力するのだけがポイントです.
31692 \end_layout
31693
31694 \begin_layout Enumerate
31695 文書が何らかの文芸プログラムクラスなら,
31696 \SpecialChar LyX
31697 は,
31698 \SpecialChar LyX
31699 からNowebへの内部変換子を用い,
31700 それからNowebから\SpecialChar LaTeX
31701 への変換子
31702 \begin_inset Foot
31703 status collapsed
31704
31705 \begin_layout Plain Layout
31706 これらの変換子は,
31707
31708 \family sans
31709 ツール\SpecialChar menuseparator
31710 設定
31711 \family default
31712 パネルの変換子タブに定義されています.変換子の一般的な情報については,
31713 取扱説明書『
31714 \emph on
31715 カスタマイズ篇
31716 \emph default
31717 』の「
31718 \emph on
31719 変換子
31720 \emph default
31721 」の節をご覧ください.
31722 \end_layout
31723
31724 \end_inset
31725
31726 を使って\SpecialChar LaTeX
31727 ファイルを生成します.
31728 \end_layout
31729
31730 \begin_deeper
31731 \begin_layout Standard
31732 それ以外の場合はこのステップを飛ばします.
31733 \end_layout
31734
31735 \end_deeper
31736 \begin_layout Enumerate
31737 最後に\SpecialChar LaTeX
31738 が実行され,
31739 通常の文書と同じ後処理が行われます.
31740 \end_layout
31741
31742 \begin_layout Standard
31743 様々な変換子が実行するコマンドを変更すれば,
31744 簡単に,
31745 特定の「文芸プログラムツール」から変更することができます.
31746 \end_layout
31747
31748 \begin_layout Paragraph
31749 コードの生成
31750 \end_layout
31751
31752 \begin_layout Standard
31753 ビルドメニューが選ばれた場合や,
31754 それに対応するツールバーのボタンが押された場合,
31755 上のステップ1と同様に\SpecialChar LaTeX
31756 ファイルが生成されます.それから\SpecialChar LyX
31757
31758 \family typewriter
31759 Noweb->Program
31760 \family default
31761 のコンバータを起動します.通常は,
31762 このコンバータは(他のコンバータと同じように)2つの部分からできています.
31763 \end_layout
31764
31765 \begin_layout Enumerate
31766 変換プログラム.このプログラムは,
31767 一つのフォーマットから他のフォーマットへの変換を行います(この場合は,
31768 Nowebフォーマットからプログラムの疑似フォーマットへ変換します).
31769 \end_layout
31770
31771 \begin_layout Enumerate
31772 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
31773 が理解できる形へ書き直します.これによって,
31774 \SpecialChar LyX
31775 はファイルバッファの正しい位置へエラーボックスを配置することができます.
31776 \end_layout
31777
31778 \begin_layout Standard
31779 冒頭部,
31780 「変換子」設定は
31781 \end_layout
31782
31783 \begin_layout LyX-Code
31784
31785 \family typewriter
31786 build-script $$i $$r
31787 \end_layout
31788
31789 \begin_layout Standard
31790 と指定します.これは基本的に,
31791 \SpecialChar LyX
31792
31793 \begin_inset Quotes erd
31794 \end_inset
31795
31796
31797 \family typewriter
31798 build-script
31799 \family default
31800
31801 \begin_inset Quotes erd
31802 \end_inset
31803
31804 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
31805 の一時ファイル用のディレクトリにつくられる),
31806 Nowebファイルの名前と元の\SpecialChar LyX
31807 ファイルのディレクトリパスを使って呼び出すことを意味しています.
31808 \end_layout
31809
31810 \begin_layout Standard
31811 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
31812 \end_layout
31813
31814 \begin_layout LyX-Code
31815
31816 \family sans
31817 #!/bin/sh
31818 \end_layout
31819
31820 \begin_layout LyX-Code
31821
31822 \family sans
31823 #
31824 \end_layout
31825
31826 \begin_layout LyX-Code
31827
31828 \family sans
31829 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
31830 \end_layout
31831
31832 \begin_layout Standard
31833 変換子設定の次の部分は「フラグ」で,
31834 これは
31835 \end_layout
31836
31837 \begin_layout LyX-Code
31838
31839 \family typewriter
31840 parselog=$$s/scripts/listerrors
31841 \end_layout
31842
31843 \begin_layout Standard
31844 に設定されます.
31845 \begin_inset Newline newline
31846 \end_inset
31847
31848 これは,
31849
31850 \begin_inset Quotes erd
31851 \end_inset
31852
31853 build-script
31854 \begin_inset Quotes erd
31855 \end_inset
31856
31857 プロセスが生成したエラーを
31858 \begin_inset Quotes erd
31859 \end_inset
31860
31861 listerrors
31862 \begin_inset Quotes erd
31863 \end_inset
31864
31865 プログラムを介して処理するものです.
31866 \end_layout
31867
31868 \begin_layout Standard
31869 ビルドは,
31870 通常\SpecialChar LyX
31871 の一時ディレクトリで行われるので,
31872 変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
31873 は,
31874 主要ファイルとみなされるものをコピーして取り出しますが,
31875
31876 \family typewriter
31877 Noweb→プログラム
31878 \family default
31879 変換は複数のファイルを生成することがあるので,
31880 \SpecialChar LyX
31881 を閉じる際に大半が削除される可能性があります.これが,
31882 NOWEB_OUTPUT_DIR環境変数を渡して,
31883 build-script chunkが生成したファイルをその場所に置かれるようにする理由です.
31884 \end_layout
31885
31886 \begin_layout Paragraph
31887 文章中でのプログラムの構築操作の説明
31888 \end_layout
31889
31890 \begin_layout Standard
31891 \SpecialChar LyX
31892 とNowebの統合の最後の部分は,
31893
31894 \begin_inset Quotes eld
31895 \end_inset
31896
31897 build-script
31898 \begin_inset Quotes erd
31899 \end_inset
31900
31901  chunkです.一般に,
31902 あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scriptでは,
31903 chunkを見つけるのにnotangleコマンドを使い,
31904 shを使って起動します.
31905 \end_layout
31906
31907 \begin_layout Standard
31908 以下に典型的なchunkがどのようなものかを書いておきます.
31909 \end_layout
31910
31911 \begin_layout LyX-Code
31912 <<build-script>>=
31913 \begin_inset Newline newline
31914 \end_inset
31915
31916
31917 \end_layout
31918
31919 \begin_layout LyX-Code
31920 #!/bin/sh
31921 \begin_inset Newline newline
31922 \end_inset
31923
31924
31925 \begin_inset Newline newline
31926 \end_inset
31927
31928 if [ -z "${NOWEB_SOURCE}" ]
31929 \begin_inset Newline newline
31930 \end_inset
31931
31932 then
31933 \end_layout
31934
31935 \begin_layout LyX-Code
31936 NOWEB_SOURCE=myfile.nw
31937 \begin_inset Newline newline
31938 \end_inset
31939
31940 fi
31941 \begin_inset Newline newline
31942 \end_inset
31943
31944 [...
31945  code to extract files ...
31946  use NOWEB_OUTPUT_DIR here ...]
31947 \begin_inset Newline newline
31948 \end_inset
31949
31950 [...
31951  code to compile files ...]
31952 \begin_inset Newline newline
31953 \end_inset
31954
31955 @
31956 \end_layout
31957
31958 \begin_layout Standard
31959
31960 \family sans
31961 \series bold
31962 ファイル\SpecialChar menuseparator
31963 用例を開く\SpecialChar menuseparator
31964 モジュール\SpecialChar menuseparator
31965
31966 \series default
31967 Noweb
31968 \begin_inset space \space{}
31969 \end_inset
31970
31971 Listerros
31972 \family default
31973
31974 \begin_inset space \thinspace{}
31975 \end_inset
31976
31977 をご覧ください.このファイルには異なる実装の「listerrors」プログラムが含まれていて,
31978 これまで説明してきた各々の部分が全体としてどのようになるかをわかってもらうための例です.また,
31979
31980 \family sans
31981 \series bold
31982 ファイル\SpecialChar menuseparator
31983 用例を開く\SpecialChar menuseparator
31984 モジュール\SpecialChar menuseparator
31985
31986 \series default
31987 Noweb2\SpecialChar LyX
31988
31989 \family default
31990
31991 \begin_inset space \thinspace{}
31992 \end_inset
31993
31994 もご覧ください.面白いことに,
31995 これらのファイルには,
31996 PythonとPerlが各々使われていて,
31997 \SpecialChar LyX
31998 の文芸プログラミングのサポートがプログラム言語に依存しないことを示しています.
31999 \end_layout
32000
32001 \begin_layout Subsubsection
32002 \SpecialChar LyX
32003 の設定
32004 \end_layout
32005
32006 \begin_layout Standard
32007 すべての文芸プログラムのための設定は,
32008
32009 \family sans
32010 ツール\SpecialChar menuseparator
32011 設定
32012 \family default
32013 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
32014 \end_layout
32015
32016 \begin_layout Description
32017 「NoWeb」形式 ファイル形式タブで設定します.ここで,
32018 Noweb特有の設定を行います.
32019 \family sans
32020 GUI名
32021 \family default
32022
32023 \family typewriter
32024 NoWeb
32025 \family default
32026 に,
32027 拡張子を
32028 \family typewriter
32029 .nw
32030 \family default
32031 に設定してください.これによって,
32032 \SpecialChar LyX
32033 に変換プロセスの第一段階でつくられるファイルに
32034 \family typewriter
32035 .nw
32036 \family default
32037 という拡張子をつけることを指示します.
32038 \end_layout
32039
32040 \begin_layout Description
32041 プログラム形式 これは,
32042 変換の終着点を示すためだけの,
32043 空の形式です(これがあることで,
32044 変換子を作ることができます).
32045 \end_layout
32046
32047 \begin_layout Description
32048
32049 \family sans
32050 NoWeb
32051 \family default
32052 ->
32053 \family sans
32054 \SpecialChar LaTeX
32055
32056 \family default
32057  この変換子は,
32058 文芸的文書の「weaving」を行います.Nowebの場合,
32059
32060 \family typewriter
32061 noweave -delay -index $$i > $$o
32062 \family default
32063 」に設定されます.
32064 \end_layout
32065
32066 \begin_layout Description
32067
32068 \family sans
32069 NoWeb
32070 \family default
32071 ->
32072 \family sans
32073 Program
32074 \family default
32075  これは「tangling」を行います.上述のように,
32076 変換子は「
32077 \family typewriter
32078 build-script $$i $$r
32079 \family default
32080 」,
32081 フラグは「
32082 \family typewriter
32083 parselog=$$s/scripts/listerrors
32084 \family default
32085 」となります.
32086 \end_layout
32087
32088 \begin_layout Subsubsection
32089 デバッグ機能拡張
32090 \end_layout
32091
32092 \begin_layout Standard
32093 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
32094 サーバに実装されました.
32095 \end_layout
32096
32097 \begin_layout Standard
32098 ddd/gdbでデバッグしているとき,
32099 一つのキーストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
32100 \begin_inset Flex MenuItem
32101 status collapsed
32102
32103 \begin_layout Plain Layout
32104 ツール\SpecialChar menuseparator
32105 設定\SpecialChar menuseparator
32106 ファイル書式
32107 \end_layout
32108
32109 \end_inset
32110
32111 ウインドウを表示して,
32112
32113 \begin_inset Flex MenuItem
32114 status collapsed
32115
32116 \begin_layout Plain Layout
32117 編集プログラム
32118 \end_layout
32119
32120 \end_inset
32121
32122 エントリを変えると変えることができます.
32123 \end_layout
32124
32125 \begin_layout Standard
32126 新しい\SpecialChar LyX
32127 サーバの関数と,
32128 このdddの機能を使うために
32129 \begin_inset Flex MenuItem
32130 status collapsed
32131
32132 \begin_layout Plain Layout
32133 編集プログラム
32134 \end_layout
32135
32136 \end_inset
32137
32138 を次のように設定してください.
32139 \end_layout
32140
32141 \begin_layout LyX-Code
32142
32143 \family sans
32144 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
32145 \end_layout
32146
32147 \begin_layout Standard
32148 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,
32149 (dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
32150 サーバに情報を送り,
32151 \SpecialChar LyX
32152 は同じファイルを表示し,
32153 カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
32154 \end_layout
32155
32156 \begin_layout Standard
32157 この機能が動くには\SpecialChar LyX
32158 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
32159 サーバーは使えないようになっています).
32160 \end_layout
32161
32162 \begin_layout Standard
32163
32164 \begin_inset CommandInset ref
32165 LatexCommand ref
32166 reference "sec:サーバーを開始するには"
32167 nolink "false"
32168
32169 \end_inset
32170
32171 節にその方法が説明されています.
32172 \end_layout
32173
32174 \begin_layout Subsubsection
32175 ツールバー拡張
32176 \end_layout
32177
32178 \begin_layout Standard
32179 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの4つのボタンは
32180 \family sans
32181 \series bold
32182 標準
32183 \family default
32184 \series default
32185
32186 \family sans
32187 \series bold
32188
32189 \family default
32190 \series default
32191
32192 \family sans
32193 \SpecialChar LaTeX
32194
32195 \family default
32196
32197 \family sans
32198 \SpecialChar LyX
32199
32200 \series bold
32201 コード
32202 \family default
32203 \series default
32204 の段落環境へのショートカットであり,
32205 1つは特別差込枠
32206 \family sans
32207 Chunk
32208 \family default
32209 へのショートカットです.最後の一つはファイルメニュー項目の「Build Program」へのショートカットです.
32210 \end_layout
32211
32212 \begin_layout Standard
32213 \SpecialChar LyX
32214 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
32215 \begin_inset Flex MenuItem
32216 status collapsed
32217
32218 \begin_layout Plain Layout
32219 文書\SpecialChar menuseparator
32220 更新\SpecialChar menuseparator
32221 DVI
32222 \end_layout
32223
32224 \end_inset
32225
32226
32227 \begin_inset Flex MenuItem
32228 status collapsed
32229
32230 \begin_layout Plain Layout
32231 文書\SpecialChar menuseparator
32232 表示\SpecialChar menuseparator
32233 DVI
32234 \end_layout
32235
32236 \end_inset
32237
32238 を組み合わせたものになっています.
32239 \end_layout
32240
32241 \begin_layout LyX-Code
32242 Toolbar
32243 \end_layout
32244
32245 \begin_layout LyX-Code
32246   Layouts
32247 \end_layout
32248
32249 \begin_layout LyX-Code
32250   Icon "layout Standard"
32251 \end_layout
32252
32253 \begin_layout LyX-Code
32254   Icon "layout Section"
32255 \end_layout
32256
32257 \begin_layout LyX-Code
32258   Icon "layout latex"
32259 \end_layout
32260
32261 \begin_layout LyX-Code
32262   Icon "layout \SpecialChar LyX
32263 -Code"
32264 \end_layout
32265
32266 \begin_layout LyX-Code
32267   Icon "flex.insert Chunk"
32268 \end_layout
32269
32270 \begin_layout LyX-Code
32271   Separator
32272 \end_layout
32273
32274 \begin_layout LyX-Code
32275   Icon "buffer-view"
32276 \end_layout
32277
32278 \begin_layout LyX-Code
32279   Icon "buffer-typeset"
32280 \end_layout
32281
32282 \begin_layout LyX-Code
32283   Icon "build-program"
32284 \end_layout
32285
32286 \begin_layout LyX-Code
32287   Separator
32288 \end_layout
32289
32290 \begin_layout LyX-Code
32291 .
32292 \end_layout
32293
32294 \begin_layout LyX-Code
32295 .
32296 \end_layout
32297
32298 \begin_layout LyX-Code
32299 .
32300 \end_layout
32301
32302 \begin_layout LyX-Code
32303 End
32304 \end_layout
32305
32306 \begin_layout Subsubsection
32307 色の変更
32308 \end_layout
32309
32310 \begin_layout Standard
32311 \SpecialChar LyX
32312 ではいくつもの色を
32313 \begin_inset Flex MenuItem
32314 status collapsed
32315
32316 \begin_layout Plain Layout
32317 設定
32318 \end_layout
32319
32320 \end_inset
32321
32322 で変えることができます.人々が困りがちなのは,
32323 \SpecialChar LaTeX
32324 フォント色でしょう.これは,
32325 既定では赤になっていますが,
32326 chunkは\SpecialChar LaTeX
32327 フォントを使うことになっていて,
32328 文芸プログラミング文書には多くのchunkが現れるために,
32329 すべて赤で見ていると疲れてしまうかもしれません.これは,
32330
32331 \begin_inset Flex MenuItem
32332 status collapsed
32333
32334 \begin_layout Plain Layout
32335 操作性\SpecialChar menuseparator
32336
32337 \end_layout
32338
32339 \end_inset
32340
32341 タブで変更することができます.
32342 \end_layout
32343
32344 \begin_layout Standard
32345 もう一つは,
32346 改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少し違う色にすることを勧めます.こうすると,
32347 改行文字があるのはわかりますが,
32348 じゃまにならないでしょう.
32349 \end_layout
32350
32351 \begin_layout Subsection
32352 \SpecialChar LyX
32353 とknitr/Sweave
32354 \end_layout
32355
32356 \begin_layout Standard
32357 knitrとSweaveへのサポートについては,
32358
32359 \family sans
32360 \series bold
32361 ヘルプ\SpecialChar menuseparator
32362 用途別説明書\SpecialChar menuseparator
32363 Knitr
32364 \family default
32365 \series default
32366 および
32367 \family sans
32368 \series bold
32369 ファイル\SpecialChar menuseparator
32370 用例を開く\SpecialChar menuseparator
32371 モジュール\SpecialChar menuseparator
32372
32373 \series default
32374 Rnw
32375 \begin_inset space \space{}
32376 \end_inset
32377
32378 (knitr)
32379 \family default
32380
32381
32382 \family sans
32383 \series bold
32384 ヘルプ\SpecialChar menuseparator
32385 用途別説明書\SpecialChar menuseparator
32386 Sweave
32387 \family default
32388 \series default
32389 および
32390 \family sans
32391 \series bold
32392 ファイル\SpecialChar menuseparator
32393 用例を開く\SpecialChar menuseparator
32394 モジュール\SpecialChar menuseparator
32395
32396 \series default
32397 Sweave
32398 \family default
32399 に説明があります.
32400 \end_layout
32401
32402 \end_body
32403 \end_document