From: Uwe Stöhr Date: Thu, 22 Apr 2010 00:16:16 +0000 (+0000) Subject: Japanese example files: again a bunch of updates and some new translated files by... X-Git-Tag: 2.0.0~3372 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=566a95224e5d526e2e9be5d6cdf98d615f576348;p=features.git Japanese example files: again a bunch of updates and some new translated files by Koji git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34255 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/scons/scons_manifest.py b/development/scons/scons_manifest.py index cb6d325ca0..a11cf79959 100644 --- a/development/scons/scons_manifest.py +++ b/development/scons/scons_manifest.py @@ -2610,7 +2610,11 @@ lib_examples_it_files = Split(''' lib_examples_ja_files = Split(''' Braille.lyx + linguistics.lyx + multicol.lyx splash.lyx + xyfigure.png + xypic.lyx ''') diff --git a/lib/Makefile.am b/lib/Makefile.am index 9f575d0bdf..6130b4fbd3 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -169,7 +169,11 @@ dist_itexamples_DATA = \ jaexamplesdir = $(pkgdatadir)/examples/ja dist_jaexamples_DATA = \ examples/ja/Braille.lyx \ - examples/ja/splash.lyx + examples/ja/linguistics.lyx \ + examples/ja/multicol.lyx \ + examples/ja/splash.lyx \ + examples/ja/xyfigure.png \ + examples/ja/xypic.lyx nlexamplesdir = $(pkgdatadir)/examples/nl dist_nlexamples_DATA = \ diff --git a/lib/examples/ja/linguistics.lyx b/lib/examples/ja/linguistics.lyx new file mode 100644 index 0000000000..3b2e55cc7b --- /dev/null +++ b/lib/examples/ja/linguistics.lyx @@ -0,0 +1,1201 @@ +#LyX 1.6.5 created this file. For more info see http://www.lyx.org/ +\lyxformat 345 +\begin_document +\begin_header +\textclass article +\begin_preamble +%% Uncomment the following for Tableaux captions on top: +%\floatstyle{plaintop} +%\restylefloat{tableau} +\end_preamble +\use_default_options false +\begin_modules +linguistics +\end_modules +\language japanese +\inputencoding auto +\font_roman lmodern +\font_sans default +\font_typewriter default +\font_default_family default +\font_sc false +\font_osf false +\font_sf_scale 100 +\font_tt_scale 100 + +\graphics default +\paperfontsize default +\spacing single +\use_hyperref true +\pdf_bookmarks true +\pdf_bookmarksnumbered false +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle true +\papersize default +\use_geometry false +\use_amsmath 1 +\use_esint 1 +\cite_engine basic +\use_bibtopic false +\paperorientation portrait +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\defskip medskip +\quotes_language english +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\author "" +\author "" +\end_header + +\begin_body + +\begin_layout Title +LyXで言語学の論文を書く +\end_layout + +\begin_layout Author +Jürgen Spitzmüller +\begin_inset Newline newline +\end_inset + + +\begin_inset CommandInset href +LatexCommand href +target "spitz@lyx.org" +type "mailto:" + +\end_inset + + +\end_layout + +\begin_layout Date +平成20å¹´9月14日 +\end_layout + +\begin_layout Abstract +この小論は、LyXが言語学者に提供している機能のいくつかを説明します。ここでは、付番用例や語句注解、OT表、セマンティックマークアップ、発音記号(IPA)を生成 +するために用意されているネイティブサポートを利用する方法を説明します。 +\end_layout + +\begin_layout Section +目的と必要な準備 +\end_layout + +\begin_layout Standard +基本的に、この小論は、第1.6.0版現在においてLyXに同梱されている「言語学」モジュールの機能を説明するものです。(LyX 1.6.0で導入された)「モジュール」は、 +どの文書からでも簡単に選択できるようにしたサポートファイルです。言語学モジュールを使用するためには、 +\family sans +文書\SpecialChar \menuseparator +設定\SpecialChar \menuseparator +モジュール +\family default +を開き、選択可能モジュール一覧から「言語学」を選択し、(この文書で既にそうなっているように)使用中の文書に加えるために +\family sans +追加 +\family default +ボタンを押してください。 +\end_layout + +\begin_layout Standard +このモジュールは、どの文書クラスでも使えるようになったはずです(もしそうなっていなければ、私に知らせてください)。しかし、すべての機能を使用するには、以下の各L +aTeXパッケージが導入されている必要があります。 +\end_layout + +\begin_layout Enumerate + +\emph on +covington.sty +\emph default + +\begin_inset CommandInset citation +LatexCommand cite +key "covington" + +\end_inset + +:これは付番用例と語句注解に使用される基本パッケージです。 +\end_layout + +\begin_layout Enumerate + +\emph on +enumitem.sty +\emph default + +\begin_inset CommandInset citation +LatexCommand cite +key "enumitem" + +\end_inset + +:このパッケージは、Subexamplesスタイルに使用されます。これは一般的に、箇条書き( +\emph on +連番 +\emph default +・ +\emph on +記号 +\emph default +・ +\emph on +記述 +\emph default +など)の外観を変えるのに役立ちます。 +\end_layout + +\begin_layout Enumerate + +\emph on +csquotes.sty +\emph default + +\begin_inset CommandInset citation +LatexCommand cite +key "csquotes" + +\end_inset + +: +\emph on +意味 +\emph default +文字様式に必要です。このパッケージは、使用中の言語に依存して、文脈依存の引用符を提供するようにします。 +\end_layout + +\begin_layout Enumerate + +\emph on +float.sty +\emph default + +\begin_inset CommandInset citation +LatexCommand cite +key "float" + +\end_inset + +:OT表とフロート一覧に必要とsれます。このパッケージは、すべてのLaTeX頒布版に同梱されているはずです。 +\end_layout + +\begin_layout Section +付番用例 +\end_layout + +\begin_layout Standard +付番用例は、ツールバーのレイアウトドロップダウンボックスを使って挿入することができます。これには、以下の三つの派生型があります。 +\end_layout + +\begin_layout Numbered Example (multiline) +これは複数行の例です。[ +\emph on +付番用例(複数行) +\emph default +スタイル] +\end_layout + +\begin_layout Numbered Example (multiline) +これには複数の段落を入れることができます。 +\end_layout + +\begin_layout Numbered Examples (consecutive) +これは単独の用例です。 +\begin_inset CommandInset label +LatexCommand label +name "exa:single-example" + +\end_inset + + [ +\emph on +付番用例(連続) +\emph default +スタイル] +\end_layout + +\begin_layout Numbered Examples (consecutive) +連続した単独用例は、それぞれ番号が振られます。 +\end_layout + +\begin_layout Subexample +これは小例です。 +\begin_inset CommandInset label +LatexCommand label +name "sub:subexample" + +\end_inset + + [ +\emph on +小例 +\emph default +スタイル] +\end_layout + +\begin_layout Subexample +もう一つの小例です。 +\end_layout + +\begin_layout Standard +例への参照は通常通り作成することができます。例にラベルを挿入し、 +\family sans +挿入\SpecialChar \menuseparator +相互参照 +\family default +で相互参照を入れてください。これを例示するために、ここでは +\begin_inset CommandInset ref +LatexCommand ref +reference "exa:single-example" + +\end_inset + +と +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:subexample" + +\end_inset + +への参照をしておきましょう。 +\end_layout + +\begin_layout Section +語句注解 +\end_layout + +\begin_layout Standard +言語学モジュールは、2つの語句注解を提供しており、 +\family sans +挿入\SpecialChar \menuseparator +任意設定差込枠 +\family default +で挿入することができます。標準の +\emph on +任意設定:語句注解 +\emph default +は、2行と翻訳から成る語句注解を提供し、 +\emph on +任意設定:三行語句注解 +\emph default +差込枠は、三行と翻訳から成ります。各翻訳行は、複数行に展開されるかもしれません。つまり、本文幅を超えた段落は、自動的に改行されます。翻訳行は必須であり、その先頭 +には +\family typewriter + +\backslash +glt +\family default +コマンドを、語句注解差込枠中にそのまま入れなくてはなりません(TeXモードは必要でなく、実のところTeXモードにすることはできません)。 +\end_layout + +\begin_layout Standard +以下は簡単な例です。 +\end_layout + +\begin_layout Standard +\begin_inset Flex Custom:Glosse +status open + +\begin_layout Plain Layout + +C'est un exemple simple +\end_layout + +\begin_layout Plain Layout + +{This is} an example simple +\end_layout + +\begin_layout Plain Layout + + +\backslash +glt +\begin_inset Quotes els +\end_inset + +This is a simple example +\begin_inset Quotes ers +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +波括弧が複数単語の表現をくくるのに使われていることに注意してください。 +\end_layout + +\begin_layout Standard +同じようにして、以下のように三行語句注解を作ることができます。 +\end_layout + +\begin_layout Standard +\begin_inset Flex Custom:Tri-Glosse +status open + +\begin_layout Plain Layout + +C'est un exemple simple +\end_layout + +\begin_layout Plain Layout + +{Das ist} ein Beispiel einfach +\end_layout + +\begin_layout Plain Layout + +{This is} an example simple +\end_layout + +\begin_layout Plain Layout + + +\backslash +glt +\begin_inset Quotes els +\end_inset + +This is a simple example +\begin_inset Quotes ers +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +連番の付いた語句注解が欲しい場合には、以下のように、語句注解差込枠を付番用例段落に入れるだけです。 +\end_layout + +\begin_layout Numbered Examples (consecutive) +\begin_inset Flex Custom:Tri-Glosse +status open + +\begin_layout Plain Layout + +Mein Luftkissenfahrzeug ist voller Aale +\end_layout + +\begin_layout Plain Layout + +My skeertuig is vol palings +\end_layout + +\begin_layout Plain Layout + +My hovercraft is {full of} eels +\end_layout + +\begin_layout Plain Layout + + +\backslash +glt +\begin_inset Quotes els +\end_inset + +Do you have matches? +\begin_inset Quotes ers +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +語句注解中では、フォントの変更はできないことに注意してください。したがって +\family sans +文字様式 +\family default +ダイアログは無効になっています。語句注解はハイフネートしないので、LaTeX出力中で明示的に言語を設定することは必要とされません(むしろ、covingtonがサ +ポートしないため、出力が崩れてしまいます)。それでも、正しいスペルチェックをするために、言語を設定したいと思うかもしれません。現在のところ、これは以下のようにし +なくてはなりません。文章を選択して、 +\begin_inset Info +type "shortcut" +arg "command-execute" +\end_inset + + +\family sans +language <言語> +\family default +と打ってください。ここで +\family sans +<言語> +\family default +は、 +\family sans +english +\family default +・ +\family sans +french +\family default +・ +\family sans +ngerman +\family default +などの各言語に置き換えてください。LaTeX出力中では、この設定は出力されません。 +\end_layout + +\begin_layout Section +最適理論表 +\end_layout + +\begin_layout Standard +OT表自体は、もちろん単純に、通常の表として入れることができます(点線や影付きセルなどの特定の機能については、 +\emph on +埋め込みオブジェクト +\emph default +説明書を参照)。しかし、これらの表には、文書を通して連番を振り、 +\emph on +表一覧 +\emph default +のように +\emph on +OT表一覧 +\emph default +を置きたいところです。 +\end_layout + +\begin_layout Standard +言語学モジュールは、この2つをサポートしています。 +\family sans +挿入\SpecialChar \menuseparator +フロート +\family default +の中には、以下のようなOT表フロートがあります。 +\end_layout + +\begin_layout Standard +\begin_inset Float tableau +placement h +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +/atikap/ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\noun on +Onset +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\noun on +NoCoda +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\noun on +Dep +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\noun on +Max +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\mbox{☞}$ +\end_inset + + +\begin_inset Formula $\mbox{\textipa{P}}$ +\end_inset + +a.ti.ka +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +* +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +* +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +a.ti.ka +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +*! +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +* +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\mbox{\textipa{P}}$ +\end_inset + +a.ti.kap +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +*! +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +* +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +a.ti.kap +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +*! +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +*! +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +OT表の例 +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +出力中のキャプションは、LyXウィンドウ内での置き方にかかわらず、既定ではつねに、OT表の下に置かれることに注意してください。OT表のキャプションを上に置くには +、 +\family sans +文書\SpecialChar \menuseparator +設定\SpecialChar \menuseparator +LaTeX プリアンブル +\family default +に以下のコードを書いてください。 +\end_layout + +\begin_layout LyX-Code + +\backslash +floatstyle{plaintop} +\end_layout + +\begin_layout LyX-Code + +\backslash +restylefloat{tableau} +\end_layout + +\begin_layout Standard +KOMAクラスを使用している場合には、代わりに以下のようにした方がきれいな余白取りがされます。 +\end_layout + +\begin_layout LyX-Code + +\backslash +floatstyle{komaabove} +\end_layout + +\begin_layout LyX-Code + +\backslash +restylefloat{tableau} +\end_layout + +\begin_layout Standard +OT表一覧差込枠の一覧は、 +\family sans +挿入\SpecialChar \menuseparator +一覧/目次 +\family default +にあります。OT表一覧は、通常、文書の始まりか終わりに置かれますが、ここでは例示のためにこの場所に置くことにします。 +\end_layout + +\begin_layout Standard +\begin_inset FloatList tableau + +\end_inset + + +\end_layout + +\begin_layout Section +セマンティック・マークアップ(文字様式) +\end_layout + +\begin_layout Standard +言語学モジュールは、以下のような言語学でよく使われる文字様式を同梱しています。 +\end_layout + +\begin_layout Enumerate +概念(スモールキャップ体): +\begin_inset Flex CharStyle:Concepts +status collapsed + +\begin_layout Plain Layout +concept +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Enumerate +表現(強調): +\begin_inset Flex CharStyle:Expression +status collapsed + +\begin_layout Plain Layout +expression +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Enumerate +意味(一重引用符): +\begin_inset Flex CharStyle:Meaning +status collapsed + +\begin_layout Plain Layout +meaning +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +これらの文字様式は、 +\family sans +編集\SpecialChar \menuseparator +文字様式 +\family default +サブメニューで入れることができます。これらの様式の外観を後で変更する必要があれば、プリアンブル中で再定義することができます。たとえば、ボールド体の表現にするため +には、以下のように入れてください。 +\end_layout + +\begin_layout LyX-Code + +\backslash +renewcommand +\backslash +lingexpr[1]{ +\backslash +textbf{#1}} +\end_layout + +\begin_layout Standard +同様にして、概念( +\family typewriter + +\backslash +lingconcept +\family default +)と意味( +\family typewriter + +\backslash +lingmeaning +\family default +)も修正することができます。 +\end_layout + +\begin_layout Section +発音記号(IPA) +\end_layout + +\begin_layout Standard +発音記号を挿入するには、言語学モジュールは必要でなく、LyXの基本機能となっています。しかしながら、発音記号は言語学者が頻繁に用いるので、本稿でも(手短に)説明 +します。 +\end_layout + +\begin_layout Standard +LyXのIPAサポートを利用するには、LaTeXパッケージ +\emph on +tipa +\emph default + +\begin_inset CommandInset citation +LatexCommand cite +key "tipa" + +\end_inset + +が必要です。加えて自動プレビューを必要とするなら、 +\emph on +preview-latex +\emph default +パッケージ +\begin_inset CommandInset citation +LatexCommand cite +key "preview" + +\end_inset + +を導入しておかなくてはなりません。 +\end_layout + +\begin_layout Standard +発音記号は、 +\family sans +挿入\SpecialChar \menuseparator +特殊文字\SpecialChar \menuseparator +発音記号 +\family default +で入れることができます。すると小さな枠が現れるので、そこに +\emph on +tipa +\emph default +説明書に説明されている短絡表記で記号を挿入します。例: +\begin_inset Formula $\text{\textipa{[Ekspl@"neIS@n]}}$ +\end_inset + +( +\emph on +tipa +\emph default +短絡表記: +\family typewriter +[Ekspl@"neIS@n +\family default +])。 +\emph on +preview-latex +\emph default +が導入されていて、自動プレビューを( +\family sans +ツール\SpecialChar \menuseparator +設定\SpecialChar \menuseparator +表示 +\family default +で)有効にしてあれば、カーソルを枠から出すとすぐに、きれいなプレビューを見ることができます。 +\end_layout + +\begin_layout Standard +さらに、ほとんどのIPAグリフを( +\family sans +挿入\SpecialChar \menuseparator +特殊文字\SpecialChar \menuseparator +記号\SpecialChar \ldots{} + +\family default +で)挿入したり、[ɛkspləˈneɪʃən]のように直接LyXに貼り付けたりすることもできます。出力中では、これらは正しい +\emph on +tipa +\emph default +マクロに自動的に変換されます(そうならなければ私に知らせてください)。しかしながら、以下の二つの理由から、前者の方法の方が良質の出力を生成することに注意してくだ +さい。 +\end_layout + +\begin_layout Enumerate +直接入力すると、フォントがばらばらになる可能性があります(上例では、ラテン文字は基本フォントから採られ、IPAグリフはIPAフォントから採られていますが、 +\family sans +挿入\SpecialChar \menuseparator +特殊文字\SpecialChar \menuseparator +発音記号 +\family default +で入れると、すべての文字にIPAフォントが使われます)。 +\end_layout + +\begin_layout Enumerate +文字のカーニングは保持されません。 +\end_layout + +\begin_layout Standard +したがって、単一のIPA文字を入れるだけでいいのでなければ、前者の方法が推奨されます。それに、(かなり直感的な)IPA短絡表記は学んでおくに値します。 +\end_layout + +\begin_layout Section +さらなる情報 +\end_layout + +\begin_layout Standard +言語学者に特有の利用法について詳しくは、LyX wiki +\begin_inset CommandInset citation +LatexCommand cite +key "linguistlyx" + +\end_inset + +のLinguistLyXページをご参照ください(ご自身のコツもご自由に書き加えてください)。 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "covington" + +\end_inset + +covingtonパッケージ: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/macros/latex/contrib/covington/ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "csquotes" + +\end_inset + +csquotesパッケージ: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes/ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "enumitem" + +\end_inset + +enumitemパッケージ: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "float" + +\end_inset + +floatパッケージ: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/macros/latex/contrib/float/ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "linguistlyx" + +\end_inset + +Maria Gouskova, Stacia Hartleben and Jürgen Spitzmüller: Using LyX for Linguisti +c Papers. + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://wiki.lyx.org/LyX/LinguistLyX +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "preview" + +\end_inset + +preview-latexパッケージ: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/macros/latex/contrib/preview/ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "tipa" + +\end_inset + +tipaパッケージおよびフォント: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/fonts/tipa/ +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/ja/multicol.lyx b/lib/examples/ja/multicol.lyx new file mode 100644 index 0000000000..511fce0c63 --- /dev/null +++ b/lib/examples/ja/multicol.lyx @@ -0,0 +1,977 @@ +#LyX 1.6.5 created this file. For more info see http://www.lyx.org/ +\lyxformat 345 +\begin_document +\begin_header +\textclass article +\begin_preamble +\usepackage{multicol} +\end_preamble +\use_default_options false +\language japanese +\inputencoding default +\font_roman default +\font_sans default +\font_typewriter default +\font_default_family default +\font_sc false +\font_osf false +\font_sf_scale 100 +\font_tt_scale 100 + +\graphics default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_amsmath 0 +\use_esint 0 +\cite_engine basic +\use_bibtopic false +\paperorientation portrait +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\defskip medskip +\quotes_language english +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\author "" +\author "" +\end_header + +\begin_body + +\begin_layout Title +多段組について +\end_layout + +\begin_layout Author + +\noun on +Lars Gullik Bjønnes著 +\end_layout + +\begin_layout Section +目的 +\end_layout + +\begin_layout Standard +本章のねらいは、LaTeXパッケージ +\family typewriter +multicol +\family default +をLyX文書中でどのように使ったらよいかを示すことです。LyXは、まだ +\family typewriter +multicol +\family default +をネイティブにはサポートしていないので、ちょっとしたハックを用いなくてはなりません。この節を読めば、その方法がよくわかることでしょう。 +\end_layout + +\begin_layout Subsection +制限 +\end_layout + +\begin_layout Standard + +\family typewriter +multicol +\family default +パッケージを使うと、同一ページ上で一段組書式と多段組書式を切り替えることができます。脚注は(ほとんどの場合)正しく取り扱われますが、各段の下ではなくページ全体の +下の置かれます。ただし、現在の実装では、LaTeXのフロート機構は部分的に無効にされており、現在のところ、 +\family typewriter +multicol +\family default +環境内では、ページ幅のフロートのみを使用することができるようになっています。 +\end_layout + +\begin_layout Subsection +用例 +\end_layout + +\begin_layout Subsubsection +二段組 +\end_layout + +\begin_layout Standard +文章中で二段組を行いたい場合には、以下のように、二段組レイアウトを開始したい場所に、LaTeXモードで +\family typewriter + +\backslash +begin{multicols}{2} +\family default +と入れ、二段組を終了する場所に +\family typewriter + +\backslash +end{multicols} +\family default +と入れます。 +\end_layout + +\begin_layout Standard +\begin_inset VSpace -2ex +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{multicols}{2} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent + +\series bold +\size small +The Adventure of the Empty House +\series default + +\begin_inset Newline newline +\end_inset + +by +\noun on +Sir Arthur Conan Doyle +\end_layout + +\begin_layout Standard + +\size small +It was in the spring of the year 1894 that all London was interested, and + the fashionable world dismayed, by the murder of the Honourable Ronald + Adair under most unusual and inexplicable circumstances. + The public has already learned those particulars of the crime which came + out in the police investigation, but a good deal was suppressed upon that + occasion, since the case for the prosecution was so overwhelmingly strong + that it was not necessary to bring forward all the facts. + Only now, at the end of nearly ten years, am I allowed to supply those + missing links which make up the whole of that remarkable chain. + The crime was of interest in itself, but that interest was as nothing to + me compared to the inconceivable sequel, which afforded me the greatest + shock and surprise of any event in my adventurous life. + Even now, after this long interval, I find myself thrilling as I think + of it, and feeling once more that sudden flood of joy, amazement, and increduli +ty which utterly submerged my mind. + Let me say to that public, which has shown some interest in those glimpses + which I have occasionally given them of the thoughts and actions of a very + remarkable man, that they are not to blame me if I have not shared my knowledge + with them, for I should have considered it my first duty to do so, had + I not been barred by a positive prohibition from his own lips, which was + only withdrawn upon the third of last month. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{multicols} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +多段組 +\end_layout + +\begin_layout Standard +三段以上が欲しい場合にも、同じ方法を使います(欲すれば四段以上も組めますが、見かけ上快適ではないかもしれません)。 +\end_layout + +\begin_layout Standard +\begin_inset VSpace -2ex +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{multicols}{3} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\size footnotesize +It can be imagined that my close intimacy with Sherlock Holmes had interested + me deeply in crime, and that after his disappearance I never failed to + read with care the various problems which came before the public. + And I even attempted, more than once, for my own private satisfaction, + to employ his methods in their solution, though with indifferent success. + There was none, however, which appealed to me like this tragedy of Ronald + Adair. + As I read the evidence at the inquest, which led up to a verdict of willful + murder against some person or persons unknown, I realized more clearly + than I had ever done the loss which the community had sustained by the + death of Sherlock Holmes. + There were points about this strange business which would, I was sure, + have specially appealed to him, and the efforts of the police would have + been supplemented, or more probably anticipated, by the trained observation + and the alert mind of the first criminal agent in Europe. + All day, as I drove upon my round, I turned over the case in my mind and + found no explanation which appeared to me to be adequate. + At the risk of telling a twice-told tale, I will recapitulate the facts + as they were known to the public at the conclusion of the inquest. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{multicols} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +段中の段 +\end_layout + +\begin_layout Standard +以下のように、段の中に段を入れることもできます。 +\end_layout + +\begin_layout Standard +\begin_inset VSpace -2ex +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{multicols}{2} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\size footnotesize +The Honourable Ronald Adair was the second son of the Earl of Maynooth, + at that time governor of one of the Australian colonies. + Adair's mother had returned from Australia to undergo the operation for + cataract, and she, her son Ronald, and her daughter Hilda were living together + at 427 Park Lane. +\end_layout + +\begin_layout Standard +\begin_inset VSpace -2ex +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{multicols}{2} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\size footnotesize +The youth moved in the best society--had, so far as was known, no enemies + and no particular vices. + He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement + had been broken off by mutual consent some months before, and there was + no sign that it had left any very profound feeling behind it. + For the rest {sic} the man's life moved in a narrow and conventional circle, + for his habits were quiet and his nature unemotional. + Yet it was upon this easy-going young aristocrat that death came, in most + strange and unexpected form, between the hours of ten and eleven-twenty + on the night of March 30, 1894. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{multicols} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\size footnotesize +Ronald Adair was fond of cards--playing continually, but never for such + stakes as would hurt him. + He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs. + It was shown that, after dinner on the day of his death, he had played + a rubber of whist at the latter club. + He had also played there in the afternoon. + +\size default + +\size footnotesize +The evidence of those who had played with him-- Mr. + Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist, + and that there was a fairly equal fall of the cards. + Adair might have lost five pounds, but not more. + His fortune was a considerable one, and such a loss could not in any way + affect him. + He had played nearly every day at one club or other, but he was a cautious + player, and usually rose a winner. + It came out in evidence that, in partnership with Colonel Moran, he had + actually won as much as four hundred and twenty pounds in a sitting, some + weeks before, from Godfrey Milner and Lord Balmoral. + So much for his recent history as it came out at the inquest. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{multicols} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +応用例 +\end_layout + +\begin_layout Standard +ご存じかもしれませんが、 +\family typewriter +multicol +\family default +にはカスタマイズ用の変数がいくつかあります。以下の各例は、これをLyXからどのように使ったらよいかを示すものです。 +\end_layout + +\begin_layout Subsubsection +導入文に垂直スキップ +\end_layout + +\begin_layout Standard +以下は二段組の上に導入文の付いた例で、ページに残り5センチ以下しかない場合には、その前に改頁を挿入するものです。 +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{multicols}{2}[ +\end_layout + +\end_inset + +そして、おはなしはつづく、つづく、つづく、つづく、つづく、つづく\SpecialChar \ldots{} + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +][5cm] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\size small +On the evening of the crime, he returned from the club exactly at ten. + His mother and sister were out spending the evening with a relation. + The servant deposed that she heard him enter the front room on the second + floor, generally used as his sitting-room. + She had lit a fire there, and as it smoked she had opened the window. + No sound was heard from the room until eleven-twenty, the hour of the return + of Lady Maynooth and her daughter. + Desiring to say good-night, she attempted to enter her son's room. + The door was locked on the inside, and no answer could be got to their + cries and knocking. + Help was obtained, and the door forced. + The unfortunate young man was found lying near the table. + His head had been horribly mutilated by an expanding revolver bullet, but + no weapon of any sort was to be found in the room. + On the table lay two bank notes for ten pounds each and seventeen pounds + ten in silver and gold, the money arranged in little piles of varying amount. + There were some figures also upon a sheet of paper, with the names of some + club friends opposite to them, from which it was conjectured that before + his death he was endeavouring to make out his losses or winnings at cards. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{multicols} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +導入文に節 +\end_layout + +\begin_layout Standard +導入文を節分けコマンドにしたい場合はどうすればよいのでしょう。これは可能ですが、 +\family typewriter +multicols +\family default +コマンドのパラメータ内部にLaTeXコマンドを使わなくてはなりません。このため、節分けコマンドは、LyXの側から指定することはできません。 +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{multicols}{2}[ +\backslash +subsubsection{ +\end_layout + +\end_inset + +これは導入文に入れた節分けコマンドです +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}][5cm] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\size small +A minute examination of the circumstances served only to make the case more + complex. + In the first place, no reason could be given why the young man should have + fastened the door upon the inside. + There was the possibility that the murderer had done this, and had afterwards + escaped by the window. + The drop was at least twenty feet, however, and a bed of crocuses in full + bloom lay beneath. + Neither the flowers nor the earth showed any sign of having been disturbed, + nor were there any marks upon the narrow strip of grass which separated + the house from the road. + Apparently, therefore, it was the young man himself who had fastened the + door. + But how did he come by his death? No one could have climbed up to the window + without leaving traces. + Suppose a man had fired through the window, he would indeed be a remarkable + shot who could with a revolver inflict so deadly a wound. + Again, Park Lane is a frequented thoroughfare; there is a cab stand within + a hundred yards of the house. + No one had heard a shot. + And yet there was the dead man and there the revolver bullet, which had + mushroomed out, as soft-nosed bullets will, and so inflicted a wound which + must have caused instantaneous death. + Such were the circumstances of the Park Lane Mystery, which were further + complicated by entire absence of motive, since, as I have said, young Adair + was not known to have any enemy, and no attempt had been made to remove + the money or valuables in the room. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{multicols} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +可変余白 +\end_layout + +\begin_layout Standard + +\family typewriter +multicol +\family default +パッケージには、多段組部の前後にある程度の余白を入れることができることが必要です。それだけでなく、 +\family typewriter +multicol +\family default +は、多段部の前後に一定の余白を挿入します。この既定設定値を変更するコマンドは、 +\family typewriter + +\backslash +begin{multicols} +\family default +の直前に入れなくてはなりません。以下の例は、多段文の前後に3センチの余白を入れています。 +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +multicolsep}{3cm} +\backslash +begin{multicols}{2} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\size small +All day I turned these facts over in my mind, endeavouring to hit upon some + theory which could reconcile them all, and to find that line of least resistanc +e which my poor friend had declared to be the starting-point of every investigat +ion. + I confess that I made little progress. + In the evening I strolled across the Park, and found myself about six o'clock + at the Oxford Street end of Park Lane. + A group of loafers upon the pavements, all staring up at a particular window, + directed me to the house which I had come to see. + A tall, thin man with coloured glasses, whom I strongly suspected of being + a plain-clothes detective, was pointing out some theory of his own, while + the others crowded round to listen to what he said. + I got as near him as I could, but his observations seemed to me to be absurd, + so I withdrew again in some disgust. + As I did so I struck against an elderly, deformed man, who had been behind + me, and I knocked down several books which he was carrying. + I remember that as I picked them up, I observed the title of one of them, + THE ORIGIN OF TREE WORSHIP, and it struck me that the fellow must be some + poor bibliophile, who, either as a trade or as a hobby, was a collector + of obscure volumes. + I endeavoured to apologize for the accident, but it was evident that these + books which I had so unfortunately maltreated were very precious objects + in the eyes of their owner. + With a snarl of contempt he turned upon his heel, and I saw his curved + back and white side-whiskers disappear among the throng. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{multicols} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Paragraph +註: +\end_layout + +\begin_layout Standard + +\family typewriter + +\backslash +setlength +\family default +で設定した値は、使用後は既定値にリセットしなくてはなりません。これをしないと、使用中の文書の残りでは修正した値が使われ続けます。 +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +multicolsep}{13pt} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +段幅と分離幅 +\end_layout + +\begin_layout Standard + +\family sans +multicols +\family default +環境内の段幅は自動的に計算されますが、段の間の余白は明示的に変えることができます。以下の2段の間の余白は3センチです。 +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +columnsep}{3cm} +\backslash +begin{multicols}{2} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\size small +My observations of No. + 427 Park Lane did little to clear up the problem in which I was interested. + The house was separated from the street by a low wall and railing, the + whole not more than five feet high. + It was perfectly easy, therefore, for anyone to get into the garden, but + the window was entirely inaccessible, since there was no water pipe or + anything which could help the most active man to climb it. + More puzzled than ever, I retraced my steps to Kensington. + I had not been in my study five minutes when the maid entered to say that + a person desired to see me. + To my astonishment it was none other than my strange old book collector, + his sharp, wizened face peering out from a frame of white hair, and his + precious volumes, a dozen of them at least, wedged under his right arm. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{multicols} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Once again, we have to reset the value after use to avoid using it in the + rest of the document. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +columnsep}{10pt} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +垂直線 +\end_layout + +\begin_layout Standard +各段の間には、 +\family typewriter + +\backslash +columnseprule +\family default +幅の罫線を置くことができます。この罫線を0 ptに設定すると、罫線は出力されません。以下の例は、2段を分ける線2 ptにしたものです。 +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +columnseprule}{2pt} +\backslash +begin{multicols}{2} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\size small +\begin_inset Quotes eld +\end_inset + +You're surprised to see me, sir, +\begin_inset Quotes erd +\end_inset + + said he, in a strange, croaking voice. +\end_layout + +\begin_layout Standard + +\size small +I acknowledged that I was. +\end_layout + +\begin_layout Standard + +\size small +\begin_inset Quotes eld +\end_inset + +Well, I've a conscience, sir, and when I chanced to see you go into this + house, as I came hobbling after you, I thought to myself, I'll just step + in and see that kind gentleman, and tell him that if I was a bit gruff + in my manner there was not any harm meant, and that I am much obliged to + him for picking up my books. +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Standard + +\size small +\begin_inset Quotes eld +\end_inset + +You make too much of a trifle, +\begin_inset Quotes erd +\end_inset + + said I. + +\begin_inset Quotes eld +\end_inset + +May I ask how you knew who I was? +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Standard + +\size small +\begin_inset Quotes eld +\end_inset + +Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for + you'll find my little bookshop at the corner of Church Street, and very + happy to see you, I am sure. + Maybe you collect yourself, sir. + Here's +\noun on +British +\begin_inset space ~ +\end_inset + +Birds +\noun default +, and +\noun on +Catullus +\noun default +, and +\noun on +The Holy War +\noun default +--a bargain, every one of them. + With five volumes you could just fill that gap on that second shelf. + It looks untidy, does it not, sir? +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{multicols} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +いつも通り、使った後は値を元に戻します。 +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +columnseprule}{0pt} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +この物語の続きを読むには、図書館に行かなくてはいけません +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +\SpecialChar \ldots{} +あるいは、私たちがしたように楽をするには、インターネット上のどこかにあるGutenbergプロジェクトで見つけてください。 +\end_layout + +\end_inset + +。嘘だと思われるかもしれませんが、実のところ、この物語は、ちょっといいところなのです\SpecialChar \ldots{} + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/ja/splash.lyx b/lib/examples/ja/splash.lyx index 50ee562214..da1a4c3906 100644 --- a/lib/examples/ja/splash.lyx +++ b/lib/examples/ja/splash.lyx @@ -1,4 +1,4 @@ -#LyX 1.6.2svn created this file. For more info see http://www.lyx.org/ +#LyX 1.6.6svn created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header @@ -66,7 +66,7 @@ LyXは優秀な取扱説明書を同梱していますので、これをお使 \begin_layout Enumerate LyXは、われわれが「文書プロセッサ」と呼ぶところのものです。設計思想として、通常のワードプロセッサとは異なっています------すなわち文書の執筆を容易にする -ことを優先しているのです。しかしながら、その違いはわずかですので、恐れることはありません。取扱説明書を読めば、すべてあきらかになるでしょう。 +ことを優先しているのです。しかしながら、その違いはわずかですので、恐れることはありません。取扱説明書を読めば、すべてあきらかになるでしょう \begin_inset Foot status collapsed @@ -76,7 +76,7 @@ status collapsed \end_inset - +。 \end_layout \begin_layout Enumerate diff --git a/lib/examples/ja/xyfigure.png b/lib/examples/ja/xyfigure.png new file mode 100644 index 0000000000..6770e91365 Binary files /dev/null and b/lib/examples/ja/xyfigure.png differ diff --git a/lib/examples/ja/xypic.lyx b/lib/examples/ja/xypic.lyx new file mode 100644 index 0000000000..ec4a021110 --- /dev/null +++ b/lib/examples/ja/xypic.lyx @@ -0,0 +1,3349 @@ +#LyX 1.6.5 created this file. For more info see http://www.lyx.org/ +\lyxformat 345 +\begin_document +\begin_header +\textclass scrartcl +\begin_preamble +\usepackage[all]{xy} + + +% define new commands used in sec. 5.1 +\newcommand{\xyR}[1]{ + \xydef@\xymatrixrowsep@{#1}} +\newcommand{\xyC}[1]{ + \xydef@\xymatrixcolsep@{#1}} + +\newdir{|>}{!/4.5pt/@{|}*:(1,-.2)@^{>}*:(1,+.2)@_{>}} + +% a pdf-bookmark for the TOC is added +\let\myTOC\tableofcontents +\renewcommand\tableofcontents{% + \pdfbookmark[1]{\contentsname}{} + \myTOC } + +% redefine the \LyX macro for PDF bookmarks +\def\LyX{\texorpdfstring{% + L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} + {LyX}} +\end_preamble +\options BCOR7.5mm +\use_default_options false +\language japanese +\inputencoding auto +\font_roman ae +\font_sans default +\font_typewriter default +\font_default_family default +\font_sc false +\font_osf false +\font_sf_scale 100 +\font_tt_scale 100 + +\graphics default +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "Using XY-pc in LyX" +\pdf_author "H. Peter Gumm" +\pdf_subject "LyX's XY-pic manual" +\pdf_keywords "LyX, documentation" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 2 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks true +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true,pdfstartview=XYZ, plainpages=false, pdfpagelabels" +\papersize a4paper +\use_geometry false +\use_amsmath 1 +\use_esint 0 +\cite_engine basic +\use_bibtopic false +\paperorientation portrait +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\defskip medskip +\quotes_language english +\papercolumns 1 +\papersides 2 +\paperpagestyle default +\tracking_changes false +\output_changes false +\author "" +\author "" +\end_header + +\begin_body + +\begin_layout Title +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-PicをLyXで使用する +\end_layout + +\begin_layout Author +H. + Peter Gumm +\end_layout + +\begin_layout Abstract + +\family typewriter +preview +\family default +スタイルの導入されたLaTeXシステムと、比較的新しい版のLyXがあれば、LyX内部からグラフ描画パッケージ +\family typewriter + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\family default +-Picを便利に使用することができます。LyXのメイン編集ウィンドウ内部で、図式を編集したり表示したりすることができるのです。ここでは、主に圏論や代数などの関連 +領域で使用される図式を描いたり、編集したり、プレビューしたりするためには、 +\family typewriter +xypic +\family default +の +\family typewriter + +\backslash +xymatrix +\family default +コマンドをLyX内部からどのように使えばいいのかを説明します。 +\end_layout + +\begin_layout Abstract +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Section +はじめに +\end_layout + +\begin_layout Standard + +\family typewriter +xypic +\family default +パッケージは、LaTeXにおいてグラフと図式を簡単に構成するための便利なツールとして、長い間使われてきています。不幸にして長い間、LyX中でこのパッケージを使え +るのは、悪名高きTeXコードボックスに限定されてきたため、LyXエディタでは、完成した図式ではなくLaTeXソースしか表示されませんでした。しかしついに、AUC +TeXプロジェクト +\begin_inset CommandInset citation +LatexCommand cite +key "AUCTeX" + +\end_inset + +の一部である新しいLaTeXスタイル +\family typewriter +preview +\family default +によって、LyX内部から構成し、表示し、対話式に編集する形で、 +\family typewriter +xypic +\family default +図式の編集や表示ができるようになりました。 +\end_layout + +\begin_layout Standard +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Standard +\align center +\begin_inset Graphics + filename xyfigure.png + width 80col% + BoundingBox 0bp 0bp 680bp 445bp + clip + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Standard +このメモでは、 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-PicをLyX内部からどのように使用すればよいか、図式をどのように作成し編集すればよいかを説明します。下記の手順は、Windows +\begin_inset space \thinspace{} +\end_inset + +XPおよびWindows Vistaそれぞれの環境下で、LyXの第1.3.7版から第1.6版までを使用して検証されています。 +\end_layout + +\begin_layout Standard +操作には二つのモードがあります。最初のうち、何回かの練習では、まず +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-PicコードをLyXウィンドウに入力し、その全体を選択した後、 +\family sans +Ctrl-m +\family default +か +\family sans +Ctrl-M +\family default +を押して +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +【訳註】これはキー割り当てがcuaの場合です(以下同)。その他のキー割り当てであれば、 +\family typewriter +math-mode +\family default +関数に割り当てられたキーになります。たとえば、emacs配列では +\family typewriter +Ctrl-m m +\family default +です。 +\end_layout + +\end_inset + +図表示に変換するのが、最も簡単でしょう。 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picをもっとよく使うようであったり、最初に作った図を修正したりしたいのであれば、目的の図は、LyX数式エディタを使って組み立て、修正した方がよいでしょう。 +\end_layout + +\begin_layout Standard +カーソルを図式の上に動かすと、図式はノードコマンドと矢印コマンドの配列として表示され、これは対話的に変更することができます。カーソルを編集領域から動かすと、図式 +が再び表示されます。 +\end_layout + +\begin_layout Standard +この文書の最初の2節では、上述した最初のモードでLyXを使うにはどうすればよいか説明し、可換図やグラフやオートマトンを描くのに便利な、すべての +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picの機能を紹介します。第 +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:数式エディタ" + +\end_inset + +節では、数式編集領域内での +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picコマンドの使い方を説明します。 +\end_layout + +\begin_layout Standard +この文書の意図は、新しい +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picの入門を書くことではなく、これらのうち最も重要なコマンドがLyX内部でどう機能するのかを紹介することにあります。というのも、 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Pic取扱説明書 +\begin_inset CommandInset citation +LatexCommand cite +key "xypic manual" + +\end_inset + +で説明されているキー割り当ては、LyX内部では必ずしも正しく動作しないからです。 +\end_layout + +\begin_layout Section +準備 +\end_layout + +\begin_layout Standard +ここからは、LaTeXパッケージの +\family typewriter +xypic +\family default +と +\family typewriter +preview +\family default +が、LaTeXシステムに導入されていることが必要です。これらはCTANから入手することができます。それぞれ +\begin_inset CommandInset citation +LatexCommand cite +key "instant-preview" + +\end_inset + +と +\begin_inset CommandInset citation +LatexCommand cite +key "xypic" + +\end_inset + +を参照してください。これらを新しく導入した場合には、LyXのメインメニューから +\family sans +編集\SpecialChar \menuseparator +再設定 +\family default +を実行する必要があるかもしれません。すると、LyXで最初の図式を作るための手順は以下のようになります。 +\end_layout + +\begin_layout Enumerate + +\family typewriter +preview +\family default +の有効化とテスト +\end_layout + +\begin_deeper +\begin_layout Enumerate +LyXを開き、 +\family sans +ツール\SpecialChar \menuseparator +設定\SpecialChar \menuseparator +操作性\SpecialChar \menuseparator +表示 +\family default +を選択して、 +\emph on +自動プレビュー +\emph default +ドロップダウンメニューを「有効」にしてください。 +\end_layout + +\begin_layout Enumerate +LyX文書を開き、適当な数式、たとえば +\begin_inset Formula $a+b=c$ +\end_inset + +を入力して、 +\family typewriter +instant-preview +\family default +が動作するかどうかテストします。 +\end_layout + +\begin_layout Enumerate +カーソルを数式の外に出し、その外観が、DVI文書やPostScript文書の仕上がりと同じような外観に変化するのを確認してください。 +\end_layout + +\end_deeper +\begin_layout Enumerate +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picの有効化とテスト +\end_layout + +\begin_deeper +\begin_layout Enumerate +LyX文書内部で +\family typewriter + +\begin_inset Newline newline +\end_inset + + +\backslash +xymatrix{A +\backslash +ar[r] & B} +\family default + . +\begin_inset Newline newline +\end_inset + +という文を入力してください。 +\end_layout + +\begin_layout Enumerate +この文章全体を選択して、 +\family sans +挿入\SpecialChar \menuseparator +数式\SpecialChar \menuseparator +別行建て数式 +\family default +を選択するか、対応する短絡キー +\family sans +Ctrl-M +\family default +を使用してください。 +\end_layout + +\begin_layout Enumerate +マウスカーソルを編集ボックスから出し、 +\begin_inset Formula $\xymatrix{A\ar[r] & B} +$ +\end_inset + +のような矢印が現れるまでほんの一瞬待ってください。 +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picの作成者Kristoffer H. + Roseが書いた +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picの取扱説明書 +\begin_inset CommandInset citation +LatexCommand cite +key "xypic manual" + +\end_inset + +から採った、以下の図式は、このパッケージで利用できる機能の多くに対する使用例となるでしょう。 +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{ +\begin_inset Newline newline +\end_inset + + U +\backslash +ar@/_{1pc}/[ddr]_ +\backslash +psi +\backslash +ar@/^{1pc}/[drr]^ +\backslash +varphi +\begin_inset Newline newline +\end_inset + + +\backslash +ar@{.>}[dr]|-{(x,y)} +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & X +\backslash +times_Z Y +\backslash +ar[d]^q +\backslash +ar[r]_p & X +\backslash +ar[d]_f +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & Y +\backslash +ar[r]^g & Z } +\end_layout + +\begin_layout LyX-Code + +\end_layout + +\begin_layout Standard +先ほどと同じように、このコードをグラフィカルな出力に置き換えるには、これを一度に全部、 +\family typewriter + +\backslash +xymatrix{ +\family default + \SpecialChar \ldots{} +から閉じ波括弧\SpecialChar \ldots{} + +\family typewriter +} +\family default +までを選択して、上述したように別行建て数式に変えてください。カーソルを数式領域から出してしばらくすると、以下のような輝かしいフルグラフィックスとして図式が表示さ +れるはずです。 +\end_layout + +\begin_layout Standard +\begin_inset Formula $\xymatrix{U\ar@/_{1pc}/[ddr]_{\psi}\ar@/{}^{1pc}/[drr]^{\varphi}\ar@{.>}[dr]|-{(x,y)}\\ + & X\times_{Z}Y\ar[d]^{q}\ar[r]_{p} & X\ar[d]_{f}\\ + & Y\ar[r]^{g} & Z} +$ +\end_inset + + +\end_layout + +\begin_layout Subsection +図式の行列レイアウト +\end_layout + +\begin_layout Standard + +\family typewriter +xymatrix +\family default +は、図式の頂点のレイアウトを定義するのに、行列を使います。上記の例では、 +\begin_inset Formula $3\times3$ +\end_inset + +行列が必要とされ、そのうち5つの場所は、 +\begin_inset Formula $U$ +\end_inset + +・ +\begin_inset Formula $X\times_{Z}Y$ +\end_inset + +・ +\begin_inset Formula $X$ +\end_inset + +・ +\begin_inset Formula $Y$ +\end_inset + +・ +\begin_inset Formula $Z$ +\end_inset + +の各頂点用に使用され、残りの位置は空のままに残されています。この場合には、以下の行列がレイアウトを決定しています。 +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{ +\begin_inset Newline newline +\end_inset + + U +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & X +\backslash +times_Z Y & X +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & Y & Z } +\end_layout + +\begin_layout Standard +このパターンはLaTeXで慣れておられると思います。ここには3つの行があり、最初の2行は行末マーカ +\family typewriter + +\backslash + +\backslash + +\family default +で終わっています。各行には、各要素がアンパサンド +\family typewriter +& +\family default +で区切られて入っています。 +\end_layout + +\begin_layout Subsection +矢印 +\end_layout + +\begin_layout Standard +頂点を入れたので、それらの間に矢印を加えます。矢印を生成する +\family typewriter +xypic +\family default +の基本コマンドは +\family typewriter + +\backslash +ar +\family default +ですが、これを矢印の始まる行列セルに入れます。矢印の終点は、方向コマンド +\family typewriter +u +\family default +(上)・ +\family typewriter +d +\family default +(下)・ +\family typewriter +l +\family default +(左)・ +\family typewriter +r +\family default +(右)で決定します。これらは経路を表すように結合して、角括弧の中に入れます。たとえば、左上角の頂点 +\begin_inset Formula $U$ +\end_inset + +を起点として、右下の +\begin_inset Formula $X\times_{Z}Y$ +\end_inset + +・ +\begin_inset Formula $Y$ +\end_inset + +・ +\begin_inset Formula $X$ +\end_inset + +に向かう矢印はそれぞれ、 +\family typewriter + +\backslash +ar[dr] +\family default +・ +\family typewriter + +\backslash +ar[ddr] +\family default +・ +\family typewriter + +\backslash +ar[drr] +\family default +と定義します。よって、上記の図式にすべての矢印を加えたものは以下のようになります。 +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{ +\begin_inset Newline newline +\end_inset + + U +\backslash +ar[ddr] +\backslash +ar[drr] +\backslash +ar[dr] +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & X +\backslash +times_Z Y +\backslash +ar[d] +\backslash +ar[r]& X +\backslash +ar[d] +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & Y +\backslash +ar[r] & Z } +\end_layout + +\begin_layout Standard +\begin_inset Formula \xymatrix{ U \ar[ddr] \ar[drr] \ar[dr]\\ + & X \times_{Z} Y \ar[d] \ar[r] & X \ar[d]\\ + & Y \ar[r] & Z } + + +\end_inset + + +\end_layout + +\begin_layout LyX-Code + +\end_layout + +\begin_layout LyX-Code + +\end_layout + +\begin_layout Subsection +ラベル +\end_layout + +\begin_layout Standard +矢印に加えるラベルは、 +\family typewriter + +\backslash +ar +\family default +コマンドに上添字または下添字として書き加えれば、付けることができます。したがって、 +\family typewriter + +\backslash +ar[drr]^ +\backslash +varphi +\family default +と書けば、セルを一つ下に下がって二つ右に行く矢印で、上に +\begin_inset Formula $\varphi$ +\end_inset + +というラベルを付けた矢印を定義することになります。ラベルを矢印の下に付けるには、 +\family typewriter + +\backslash +ar[ddr]_ +\backslash +psi +\family default +のように、ラベルを下添字にしてください。実は、この説明は右向きの矢印にのみ該当します。正確には、矢印が指している方向に矢印に沿って見ると、上添字はラベルを矢印の +左に置き、下添字は右に置くのです。その結果、 +\family typewriter + +\backslash +ar[l]^ +\backslash +alpha_ +\backslash +beta +\family default +のように右から左に向いている矢印では、ラベル +\begin_inset Formula $\alpha$ +\end_inset + +が矢印の下、ラベル +\begin_inset Formula $\beta$ +\end_inset + +が上になり、 +\begin_inset Formula $\xymatrix{\ & \ \ar[l]_{\beta}^{\alpha}} +$ +\end_inset + +のようになります。^や_の代わりに、|という文字を使用すると、ラベルを矢印の上に(柄の部分が埋もれてしまいますが)置くこともできます。 +\end_layout + +\begin_layout Standard +通常、ラベルは、矢印の起点となるオブジェクトと終点のオブジェクトの中点に置かれます。以下の図式では、 +\begin_inset Formula $U$ +\end_inset + +から始まる真ん中の矢印にあるラベル +\begin_inset Formula $(x,y)$ +\end_inset + +は、それがつなぐ二つのオブジェクトの中点ではなく、矢印の柄の中点にあります。これは、 +\family typewriter + +\backslash +ar[dr]|-{(x,y)} +\family default +のように、ラベルの前にマイナス記号を付けることで実現しています。 +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{ +\begin_inset Newline newline +\end_inset + + U +\backslash +ar[ddr]_ +\backslash +psi +\backslash +ar[drr]^ +\backslash +varphi +\backslash +ar[dr]|-{(x,y)} +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & X +\backslash +times_Z Y +\backslash +ar[d]^q +\backslash +ar[r]_p& X +\backslash +ar[d]_f +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & Y +\backslash +ar[r]^g & Z } +\end_layout + +\begin_layout LyX-Code +\begin_inset Formula \xymatrix{ U \ar[ddr]_{\psi}\ar[drr]^{\varphi}\ar[dr]|-{(x,y)}\\ + & X \times_{Z} Y \ar[d]^{q} \ar[r]_{p} & X \ar[d]_{f}\\ + & Y \ar[r]^{g} & Z } + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picは、通常、 +\family typewriter +(.3) +\family default +のように比率をラベルの前に付けることによって、ラベルを矢印の先の方や根本の方にずらすことができますが、これはLyXでは、 +\family typewriter + +\backslash +ar[r]|(0.3){ +\backslash +phi} +\family default +のように矢印の上に置かれているラベルに関してのみ行うことができます。 +\end_layout + +\begin_layout Standard +これは、矢印の右や左に置かれているラベルに対しては機能しないのです。LyXの数式エディタは、このような場合に対応する、 +\family typewriter + +\backslash +ar[r]^(.3) +\backslash +phi +\family default +や +\family typewriter + +\backslash +ar[r]_(.3) +\backslash +psi +\family default +と云った +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picコードを正しく解釈できません。これを回避する二つの方法は、この文書の最後の節で提案されています。 +\end_layout + +\begin_layout Subsection +矢印の修正 +\end_layout + +\begin_layout Standard +矢印のデザインや形状や配置の修正は、 +\family typewriter +@ +\family default +文字を使って行われます。その後に括弧対を置き、その括弧の形、 +\family typewriter +{ } +\family default +や +\family typewriter +< > +\family default +や +\family typewriter +/ / +\family default +が、矢印のデザインを修正したいのか配置を変えたいのか曲率を変えたいのかを示します。これと同時に、矢印に対する様々な修正も加えることができます。 +\end_layout + +\begin_layout Subsubsection +矢印のデザイン +\end_layout + +\begin_layout Standard +矢印の柄に対しては、 +\emph on +実線 +\emph default +・ +\emph on +点線 +\emph default +・ +\emph on +二重線 +\emph default +のような様々なデザインを施すことができます。これと同時に、様々な鏃や根本を指定できます。一般的に、矢印のデザインは、 +\family typewriter + +\backslash +ar +\family default +コマンドの直後に +\family typewriter +@ +\family default +印を置き、その後に矢印の根本と柄、鏃を指定する文字を入れた括弧対{\SpecialChar \ldots{} +}を置くことで指定することができます。この指定文字は、実際の矢印をASCII文字で模したような +ものになっています。たとえば、 +\family typewriter + +\backslash +ar@{>..>>} +\family default +と書くと、二股の矢羽根に、点線の矢柄、二重の鏃を持つ矢印が生成されます。その他の矢印デザインを下記の表に多数列挙しておきます。 +\begin_inset Formula $\xymatrix{A\ar@{^{(}->}[r] & B} +$ +\end_inset + +のような埋込矢印の矢羽根は、 +\family typewriter + +\backslash +ar@{^(->}[r] +\family default +のように左括弧を上添えにするか下添えにするかで記述します。 +\family typewriter + +\begin_inset Newline newline +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +出力 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +LyX中のソースコード +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@{-->}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{-->} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@{..>}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{..>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@{~>}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{~>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@{->>}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{->>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@{-->>}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{-->>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@{>->>}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{>->>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@{_{(}->}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{_(->} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@{^{(}->}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{^(->} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@{|-|}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{|-|} +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +@文字の後に、2や3や^を続けることによって、二重・三重線の矢柄を持つ矢印や、鏃と矢羽根の上側ないし下側のみが表示された矢印を作ることができます。最後の例が示す +ように、矢印は必ずしも鏃と矢羽根を持っていなくてはならないということはありません。 +\begin_inset Newline newline +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +出力 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +LyX中のソースコード +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@2[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@2 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@3[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@_{->}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@_{->} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@^{->}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@^{->} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@^{>>->>}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@^{>>->>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@{^{<}-_{>}}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{^<-_>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula \xymatrix{\ \ar@2{--}[r] & \ } + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@2{--} +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +自作の矢印をデザインする +\end_layout + +\begin_layout Standard +一定の制限内であれば、自作の矢印をデザインする方法もあります。 +\family typewriter +><|ox+/()[ +\family default +という文字のうちいくつかを使えば、プリアンブル中で +\family typewriter + +\backslash +newdir +\family default +コマンドを使って、自作の鏃をデザインすることができます。説明は +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picの取扱説明書にゆだねますが、以下はそこから採った例です。 +\end_layout + +\begin_layout Standard + +\family typewriter + +\backslash +newdir{|>}{!/4.5pt/@{|}*:(1,-.2)@^{>}*:(1,+.2)@_{>}} +\family default +. +\end_layout + +\begin_layout Standard +\noindent +これは +\family typewriter +|> +\family default +で参照される新しい鏃を定義し、 +\family typewriter + +\backslash +ar@{-|>}[r] +\family default +とすれば、LyX中で以下のように正しく表示されます。 +\begin_inset Formula \[ +\xymatrix{A\ar@{-|>}[r] & \ \ B} +\] + +\end_inset + + +\end_layout + +\begin_layout Subsection +矢印の配置 +\end_layout + +\begin_layout Standard +矢印は、修飾子 +\family typewriter +@< +\family default + +\begin_inset Formula $\ldots$ +\end_inset + + +\family typewriter +> +\family default +を使えば、横にずらすことができます。ここで省略符号の部分には正か負の長さを入れます。たとえば、二つのノードの間に右向きと左向きの矢印を並べてデザインするには、矢 +印の間が離れるようにシフトさせなくてはなりません。(正の)シフトの方向は、矢印に沿って見たときに左側になることに注意してください。したがって、 +\end_layout + +\begin_layout Standard + +\family typewriter + +\backslash +xymatrix{ +\backslash +circ +\backslash +ar@<1ex>[r]& +\backslash +circ +\backslash +ar@<1ex>[l]} +\end_layout + +\begin_layout Standard +\noindent +とすれば、以下のように出力されます。 +\begin_inset space ~ +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset Formula \[ +\xymatrix{\circ\ar@<1ex>[r] & \circ\ar@<1ex>[l]} +\] + + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +行内図式と中央揃え図式 +\end_layout + +\begin_layout Standard +矢印と図式は、 +\begin_inset Formula $\xymatrix{\circ\ar@<1ex>[r] & \circ\ar@<1ex>[l]} +$ +\end_inset + +のように、行内で使用することができます。上記のように、このコードをLyX内で書いたならば、それを選択して、行内表示にしたければ +\family sans +Ctrl-m +\family default +を押し、別行建てにしたければ +\family sans +Ctrl-M +\family default +を押します。 +\family sans +編集\SpecialChar \menuseparator +数式\SpecialChar \menuseparator +数式の表記を変更 +\family default +を行内として作られた図式は後から中央揃えにすることもできますし、逆に中央揃えの図式を行内にすることもできます。 +\end_layout + +\begin_layout Subsection +矢印を曲げる +\end_layout + +\begin_layout Standard +矢印を曲げるには、簡単な方法が二つあります。最初の方法は、矢印の柄の中点をどれだけ持ち上げるか、あるいはどれだけ押し下げるかを示す値を明示的に与える方法です。も +う一つの方法は、矢印が起点を指定した方角に出るように指定し、終点に指定した方角から入るように規定する方法です。必要な矢印の曲率は、自動的に決定されます。以下でこ +の二つの方法を説明します。 +\end_layout + +\begin_layout Subsubsection +矢柄を持ち上げる +\end_layout + +\begin_layout Standard +矢印を曲げるには、修飾子@/ +\begin_inset Formula $\ldots$ +\end_inset + +/を使用します。省略記号の部分には、TeX式の長さを下添字か上添字として入力する必要があります。たとえば、矢印を +\family typewriter +1pc +\family default +下に曲げるには、 +\family typewriter +xypic +\family default +では +\family typewriter + +\backslash +ar@/_1pc/ +\family default +と書けばいいのですが、LyXでは直接このように書くことはできません。LyXでは、長さを +\family typewriter + +\backslash +ar@/_{1pc}/ +\family default +のように波括弧対の中に入れる必要があります。下記の例は、それぞれ.5ピカ分曲げられた、 +\begin_inset Formula $A$ +\end_inset + +と +\begin_inset Formula $B$ +\end_inset + +の間で対向する二つの矢印です。以下のソースコードで与えられます。 +\end_layout + +\begin_layout Standard + +\family typewriter + +\backslash +xymatrix{A +\backslash +ar@/_{.5pc}/[r] & B +\backslash +ar@/_{.5pc}/[l]} +\end_layout + +\begin_layout Standard +\begin_inset Formula \[ +\xymatrix{A\ar@/{}_{.5pc}/[r] & B\ar@/{}_{.5pc}/[l]} +\] + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +入射角と出射角を指定する +\end_layout + +\begin_layout Standard +矢印を曲げるもう一つの方法は、起点を出る際と終点に入る際の方角を指定する方法です。方角は、北・北東・東などと指定はしないで、 +\family typewriter +u +\family default +(up:上)・ +\family typewriter +ur +\family default +(up-right:右上)・ +\family typewriter +r +\family default +(right:右)・ +\family typewriter +dr +\family default +(down-right:右下)・ +\family typewriter +d +\family default +(down:下)・ +\family typewriter +dl +\family default +(down-left:左下)・ +\family typewriter +l +\family default +(left:左)・ +\family typewriter +ul +\family default +(up-left:左上)というふうに指定します。方角は@( +\emph on +出射 +\emph default +, +\emph on +入射 +\emph default +)のように指定し、 +\emph on +出射 +\emph default +は最初のオブジェクトを出る方角を示し、 +\emph on +入射 +\emph default +は終点に入る方角を示します。例として、曲がった矢印と、矢印の終点を指定せずに入射角と出射角のみを指定すると作ることのできるループを示します。 +\end_layout + +\begin_layout Standard +\begin_inset Formula \[ +\xymatrix{A\ar@(dr,dl)[r]\ar@(dr,dl)[rr] & B\ar@(d,r)[dl] & C\\ +E\ar@(ul,ur)} +\] + +\end_inset + + +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{A +\backslash +ar@(dr,dl)[r] +\backslash +ar@(dr,dl)[rr] +\begin_inset Newline newline +\end_inset + + &B +\backslash +ar@(d,r)[dl] &C +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + E +\backslash +ar@(ul,ur)} +\end_layout + +\begin_layout Subsection +頂点を修正する +\end_layout + +\begin_layout Standard +上述の例は、オートマトン図式を思い起こさせますが、通常、オートマトン図式では、状態が小さな丸で囲まれ、最終状態は二重丸で囲まれています。 +\end_layout + +\begin_layout Subsubsection +オブジェクトに枠を付ける +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picでは、要素の前に +\family typewriter +*[F-] +\family default +または +\family typewriter +*[F=] +\family default +と付けて、枠を付けたい要素部分を波括弧で囲えば、 +\begin_inset Formula $\xymatrix{*+[F]{A}} +$ +\end_inset + +や +\begin_inset Formula $\xymatrix{*+[F=]{B}} +$ +\end_inset + +のように、要素に一重または二重の枠を付けることができます。通常、枠は非常に窮屈なので、前に +\family typewriter ++ +\family default +または +\family typewriter +++ +\family default +を付けて枠を広げなくてはなりません。 +\begin_inset Formula $\xymatrix{*++[o][F]{A}} +$ +\end_inset + +や +\begin_inset Formula $\xymatrix{*++[o][F=]{B}} +$ +\end_inset + +のように丸い枠は、形を +\family typewriter +[o] +\family default +として指定することで得ることができます。この後者の例は、*++[o][F=]{B}として構成されています。このようにして、以下のオートマトン +\end_layout + +\begin_layout Standard +\begin_inset Formula \[ +\xymatrix{\txt{\text{開始}}\ar[r] & *++[o][F]{1}\ar[r] & *++[o][F=]{2}\ar@(ur,dr)\ar@(ur,ul)[l]} +\] + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +は、下記のようにして組版することができます。 +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{ +\backslash +txt{開始} +\backslash +ar[r] +\end_layout + +\begin_layout LyX-Code + & *++[o][F]{1} +\backslash +ar[r] +\end_layout + +\begin_layout LyX-Code + & *++[o][F=]{2} +\backslash +ar@(ur,dr) +\backslash +ar@(ur,ul)[l] +\end_layout + +\begin_layout LyX-Code + }. +\end_layout + +\begin_layout Standard +LaTeXコマンドの +\family typewriter + +\backslash +entrymodifiers={ +\family default +\SpecialChar \ldots{} + +\family typewriter +} +\family default +は、ある要素の様式を既定に設定するものですが、もちろん各要素において、この様式を上書きすることができます。したがって、 +\family typewriter + +\backslash +entrymodifiers={++[o][F-]} +\family default +の後では、 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-行列内のすべての要素は丸で囲まれるようになります。 +\end_layout + +\begin_layout Subsubsection +長方形による枠付け +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-行列内での長方形の囲いは、マクロ対 +\family typewriter + +\backslash +save ... + +\backslash +restore +\family default +で作れます。長方形の寸法は、長方形の左上と右下を示す点をピリオドでつなげた対 +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + +\begin_inset Formula $P_{0}.P_{1}$ +\end_inset + +で与えられ、その各点は、行 +\begin_inset Formula $x$ +\end_inset + +と列 +\begin_inset Formula $y$ +\end_inset + +のコンマ区切りを二重引用符でくくったもの +\begin_inset Quotes eld +\end_inset + + +\begin_inset Formula $x,y$ +\end_inset + + +\begin_inset Quotes erd +\end_inset + +で与えられます。その後には、以下のような図を生成するための枠付けコマンドが続きます。 +\begin_inset Formula \[ +\xymatrix{A & B\ar@(d,r)[dl]\sp(0.2)\phi\sp(0.7)\psi\save"1,1"."2,1"*+[F=]\frm{}\restore\,\\ +C & \save"1,1"."1,2"*++[F]\frm{}\restore} +\] + +\end_inset + +ここで +\family typewriter +\series default +\shape default +\size default +\emph default +\bar default +\noun default +\color inherit + +\backslash +save"1,1"."2,1"*+[F=] +\backslash +frm{} +\backslash +restore +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +というコードは、二重線長方形を生成し、もう一つの横に長い長方形は、 +\family typewriter +\series default +\shape default +\size default +\emph default +\bar default +\noun default +\color inherit + +\backslash +save"1,1"."1,2"*++[F] +\backslash +frm{} +\backslash +restore +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +で作られます。このコードは、 +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default +\color inherit + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-行列のどのセルにも置くことができます。 +\end_layout + +\begin_layout Section +LyX数式エディタを使う +\begin_inset CommandInset label +LatexCommand label +name "sec:数式エディタ" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\family typewriter +xypic +\family default +コードを書いてそれをマークし、 +\family sans +Ctrl-m +\family default +か +\family sans +Ctrl-M +\family default +を適用して数式編集環境に変換する方法以外にも、LyX数式エディタ内でxypic図式を作成して編集することができます。上記のような図を編集する手順を説明することに +しましょう。 +\end_layout + +\begin_layout Subsection +注意—波括弧の入れ方 +\end_layout + +\begin_layout Standard +LyX数式エディタでは、マクロパラメータを囲む波括弧の対 +\family typewriter +{ +\family default +と +\family typewriter +} +\family default +は、 +\family typewriter + +\backslash +{ +\family default +を一回入力するだけで入れなくてはなりません。閉じ括弧は自動的に付け加えられ、間にはパラメータを入れるボックスが現れます。 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-図式との関連について云えば、矢羽根・矢柄・鏃を指定するために、通常 +\family typewriter +@{ +\family default + \SpecialChar \ldots{} + +\family typewriter +} +\family default +の形で入力する矢印修飾子についても同じことが云えます。数式エディタ内では、 +\family typewriter +@ +\backslash +{ +\family default +とだけ入力して、LyXがボックスと閉じ括弧を入れてくれるのを待ち、そこに矢印の指定を入れてください。 +\end_layout + +\begin_layout Standard +バックスラッシュ +\family typewriter + +\backslash + +\family default +なしで入れた波括弧は、打ったとおりに出ますが、マクロパラメータを受けるために使用することはできません。こうした波括弧は、集合などを示すのに便利です。たとえば、 +\family typewriter +{x +\backslash +in X +\backslash +mid x +\backslash +notin x} +\family default +は +\begin_inset Formula $\{x\in X\mid x\notin x\}$ +\end_inset + +と表示されます。 +\end_layout + +\begin_layout Subsection +行列を用意する +\end_layout + +\begin_layout Standard + +\family sans +Ctrl-m +\family default +または +\family sans +Ctrl-M +\family default +で数式環境を開始し、 +\family typewriter + +\backslash +xymatrix +\family default +と入れてください。すると、1 +\begin_inset Formula $\times$ +\end_inset + +1- +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-行列が作られます。行を追加するには、 +\family sans +Ctrl-Enter +\family default +と入力し、列を追加するには、 +\family sans +Alt-m c i +\family default +と入力します。 +\end_layout + +\begin_layout Standard +行や列は、 +\family sans +編集\SpecialChar \menuseparator +数式 +\family default +にあるコマンド、あるいは +\family sans +Alt-m c +\family default +で始まる列コマンド短絡キーや +\family sans +Alt-m w +\family default +で始まる行コマンド短絡キーを使って、いつでも追加したり削除したりすることができます。 +\end_layout + +\begin_layout Subsection +ノード・矢印・ラベルを入力する +\end_layout + +\begin_layout Standard +まずノードを行列中の正しい位置に入力してください。行列の外にカーソルを動かすと、ノードレイアウトの最初のレンダリングを見ることができます。次に、矢印を開始するノ +ードに +\family typewriter + +\backslash +ar[ +\family default +\emph on +p +\family typewriter +\emph default +] +\family default +と打って矢印を加えてください。ここで +\emph on +p +\emph default +は、 +\family typewriter +u +\family default +・ +\family typewriter +d +\family default +・ +\family typewriter +l +\family default +・ +\family typewriter +r +\family default +の文字を組み合わせて作られたパスを示します。このパスが、本当に行列中の既存ノードに向かっていることを確認してください。正しくないと、カーソルを編集領域から出して +も、図が表示されません。 +\end_layout + +\begin_layout Standard +次に、矢印のパスの終わりに上添字か下添字としてラベルを書くことで、矢印にラベルを付けてください。LyX数式エディタにおいては常に、アンダースコア +\family typewriter +_ +\family default +を打つと下添字のボックスが開き、 +\family typewriter +^ +\family default +の後にスペースを押すと上添字のボックスが開きます。ラベルには、LaTeXコードを自由に入れることができます。 +\end_layout + +\begin_layout Subsection +矢印を修飾する +\end_layout + +\begin_layout Standard +最後に、@-修飾子 +\family typewriter +@{ +\family default +\SpecialChar \ldots{} + +\family typewriter +} +\family default +・ +\family typewriter +@< +\family default +\SpecialChar \ldots{} +>・ +\family typewriter +@( +\family default +\SpecialChar \ldots{} +,\SpecialChar \ldots{} +)・ +\family typewriter +@/ +\family default +\SpecialChar \ldots{} + +\family typewriter +/ +\family default +を入れることによって、矢印の見かけを修正することができます。上記の注意は、最初の修飾子のみに該当し、 +\family typewriter +@ +\backslash +{ +\family default +と打つと出てくるボックスの中に矢印の指定を入力するようにしなくてはなりません。このボックスを空のままにしておくと、空の矢印を指定したことになります。次節で見るよ +うに、これもまた便利な作図法です。 +\end_layout + +\begin_layout Standard +その他の修飾子 +\family typewriter +@< +\family default +\SpecialChar \ldots{} + +\family typewriter +> +\family default +・ +\family typewriter +@( +\family default +\SpecialChar \ldots{} +,\SpecialChar \ldots{} + +\family typewriter +) +\family default +・ +\family typewriter +@/ +\family default +\SpecialChar \ldots{} + +\family typewriter +/ +\family default +は、省略記号部分を矢印の指定に置き換える他は、そのまま入力します。曲がった矢印のコードは、 +\family typewriter +xypic +\family default +では、 +\family typewriter +@/_ +\family default +\emph on +寸法 +\family typewriter +\emph default +/ +\family default +または +\family typewriter +@/ +\emph on +^ +\family default +寸法 +\family typewriter +\emph default +/ +\family default +として入れます(ここで +\emph on +寸法 +\emph default +は有効なTeX寸法であり、最初のスラッシュ/の後に上添字または下添字として入力します)。最後のスラッシュが、上添字や下添字の一部のままにならないように注意してく +ださい。 +\end_layout + +\begin_layout Subsection +おかしくなったらどうするか +\end_layout + +\begin_layout Standard +図式を作図するときに、ときどきカーソルを編集領域の外に出して、自動プレビューがグラフィカル出力に正しく変換されるかどうかを確かめると良いでしょう。うまく変換され +ないときには、何らかの理由で自動プレビューがグラフィックスを再描画すべきことに気づかないせいかもしれません。カーソルを編集領域にいったん入れてからまた出すと、自 +動プレビューが引き起こされることがあります。 +\end_layout + +\begin_layout Standard +もっと深刻な理由としては、入力中の文法エラーであることもあります。必要であれば、 +\emph on +Ctrl+Z +\emph default +を使って編集の最後の手順をやり直すか、 +\emph on +Ctrl+D +\emph default +または +\family sans +表示\SpecialChar \menuseparator +DVI +\family default +を使って、LyXファイルを +\emph on +DVI +\emph default +に変換してみてください。いくつかエラーが出力されるはずなので、間違いの原因についてのヒントが得られるかもしれません。 +\end_layout + +\begin_layout Section +手を入れる +\end_layout + +\begin_layout Standard +一部には、LyX内部では正しく動作しないものがあります。私たちが(かつて)最も望んでいたものは、図式の水平・垂直伸縮であり、矢印の正確な配置でした。これにはいく +つか回避法があり、それをここで説明します。 +\end_layout + +\begin_layout Subsection +水平・垂直伸縮 +\end_layout + +\begin_layout Standard +行間コマンドや列間コマンドを使用して、図式全体の水平寸法や垂直寸法を伸縮させることが便利なことがよくあります。 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-取扱説明書によれば、たとえば +\family typewriter + +\backslash +xymatrix@R=1pc{ +\family default +\SpecialChar \ldots{} + +\family typewriter +} +\family default +とすると、1ピカの行間を持つ +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-行列が定義されます。同様に、 +\family typewriter + +\backslash +xymatrix@C= +\family default +\SpecialChar \ldots{} + +\family typewriter +{ +\family default +\SpecialChar \ldots{} + +\family typewriter +} +\family default +とすれば、列間を指定することができます。残念ながら@-文字は、LyXに +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-行列マクロの終わりと解釈されてしまうので、これらのコマンドは、現在のところ、LyX内では動作しません。 +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +が、行間および列間を +\family typewriter + +\backslash +xymatrixrowsep@ +\family default +変数と +\family typewriter + +\backslash +xymatrixrowsep@ +\family default +変数に保存することが知られていることから、プリアンブル( +\family sans +文書\SpecialChar \menuseparator +設定\SpecialChar \menuseparator +LaTeXプリアンブル +\family default +)に以下のマクロを付け加えます。 +\begin_inset Newpage pagebreak +\end_inset + + +\end_layout + +\begin_layout LyX-Code + +\backslash +newcommand{ +\backslash +xyR}[1]{% +\end_layout + +\begin_layout LyX-Code + +\backslash +xydef@ +\backslash +xymatrixrowsep@{#1}} +\end_layout + +\begin_layout LyX-Code + +\end_layout + +\begin_layout Standard + +\family typewriter + +\backslash +xymatrixrowsep@ +\family default +を +\family typewriter + +\backslash +xymatrixcolsep@ +\family default +に変えることによって、 +\family typewriter + +\backslash +xyC +\family default +マクロも定義できます。すると、 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-行列に +\backslash +xyR{...}を入れることによって、図を伸縮することができます。カーソルを行列の内部、最初の要素の前に置きます。そこに、 +\family typewriter + +\backslash +xyR +\backslash +{ +\family default +または +\family typewriter + +\backslash +xyC +\backslash +{ +\family default +、あるいは両者を入力します。バックスラッシュを忘れないようにし、閉じ括弧はLyXが自動的に供給することに注意してください。波括弧の中に寸法を入れます。既定値は、 +\family typewriter +2pt +\family default +です。以下は、 +\family typewriter + +\backslash +xyR{9pc} +\backslash +xyC{.5pc} +\family default +と指定して、縦方向に圧縮し、横方向に伸ばした図式の例です。 +\end_layout + +\begin_layout Standard +\begin_inset Formula \[ +\xyC{.5pc}\xyC{9pc}\xymatrix{A\ar[r]\ar[d] & B\\ +C\ar@{}[ur]|{\text{{\text{æ°´}\text{å¹³}\text{方}\text{向}\text{に}\text{延}\text{ば}\text{す}}}}} +\] + +\end_inset + + +\end_layout + +\begin_layout Subsection +ラベルの位置 +\end_layout + +\begin_layout Standard +もう一つの便利な +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-コマンドに、ラベルを矢柄の正確な位置に配置させるものがあります。ラベルの既定位置が絵を汚くしてしまったり、下記の図における矢印の交点のように、他の要素と干渉し +てしまったりする場合には、この機能が必要となります。矢柄に沿ってラベル位置を移動させるために、 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +では、括弧の中に十進数を入れて、矢の中でラベルを配置する相対位置を指定することができます。たとえば、 +\family typewriter + +\backslash +ar[r]|(0.3) +\backslash +varphi +\family default +というコードは、ラベルを柄の3分の1のところに配置します。同じことを矢印の上や下に付けるラベルに対してしようとして、 +\family typewriter + +\backslash +ar[dr]^(0.3) +\backslash +varphi +\family default +あるいは +\family typewriter + +\backslash +ar[ur]_(0.3) +\backslash +phi +\family default +としたとしても、LyXの内部からではうまく動作しません。その代替策として、ハット記号^あるいはアンダースコア_を、それぞれ +\family typewriter + +\backslash +sp +\family default +・ +\family typewriter + +\backslash +sb +\family default +に置き換え、 +\family typewriter + +\backslash +ar[dr] +\backslash +sp(0.3) +\backslash +varphi +\family default +または +\family typewriter + +\backslash +ar[ur] +\backslash +sb(0.3) +\backslash +phi +\family default +のようにしてください。じつは、このようにして複数のラベルを入れ、たとえ矢印が曲がっていても、これらのラベルを正確に配置することができるのです。以下の図では、 +\family typewriter + +\begin_inset Newline linebreak +\end_inset + + +\backslash +ar@(r,r)[d] +\backslash +sp(0.2){ +\backslash +phi_{1}} +\backslash +sp(0.4){ +\backslash +phi_{2}} +\backslash +sb(0.6){ +\backslash +phi_{3}} +\begin_inset Newline linebreak +\end_inset + + +\backslash +sp(0.8){ +\backslash +phi_{4}} +\family default +と指定することによって、4つのラベルを持つ曲がった矢印を生成しています。 +\end_layout + +\begin_layout Standard +\begin_inset Formula \[ +\xyC{4pc}\xymatrix{\bullet\ar[dr]\sp(0.3)\varphi & \circ\ar@{}[d]|\vdots\ar@(r,r)[d]\sp(0.2){\phi_{1}}\sp(0.4){\phi_{2}}\sb(0.6){\phi_{3}}\sp(0.8){\phi_{4}}\\ +\circ\ar[ur]\sb(0.3)\phi & \bullet} +\] + +\end_inset + + +\end_layout + +\begin_layout Subsection +見えない矢印の引き延ばし +\end_layout + +\begin_layout Standard +図式の好きなオブジェクトを(ほぼ任意の)好きな場所に配置するトリックとして、見えない矢印を使う方法がよく使われます。見えない矢印を作成し、パスに伸縮比 +\family typewriter +(0.6) +\family default +や +\family typewriter +(1.4) +\family default +などを加えて、その行き先を縮めたり延ばしたりしてください。この見えない矢印にラベルを付加します。 +\end_layout + +\begin_layout Standard +したがって、上図中の、矢柄の(0.3)の位置に +\begin_inset Formula $\varphi$ +\end_inset + +というラベルを付けた下向きの矢印は、通常の矢印 +\family typewriter + +\backslash +ar[dr] +\family default +に、ラベル +\begin_inset Formula $\varphi$ +\end_inset + +を持った見えない矢印 +\family typewriter + +\backslash +ar@{}[dr(0.6)]^ +\backslash +varphi +\family default +を付け加え、それを比率0.6に縮めることによっても作成することができます。そのラベルは、元の見える矢印の0.3の位置に表示されることになります。 +\end_layout + +\begin_layout Standard +この回避法には、2つ微少な短所があります。一つは、これは曲がった矢印には機能しないことです。二つめは、見えない矢印を図全体の正常な寸法を超えて延ばしてしまうと、 +図のボックスの余白を延ばしてしまい、図と前後の段落との間に垂直余白を取りすぎることになってしまうことです。 +\end_layout + +\begin_layout Standard +それでも、見えない矢印は、基本的に図式中の任意の場所に情報を置くのに用いることができるので、重要なツールなのです。たとえば、上図中では、 +\family typewriter + +\backslash +vdots +\family default +をラベルとしておくのに見えない矢印が使われていますし、その前の図では、図の真ん中に「 +\family typewriter +水平方向に延ばす +\family default +」という文章を置くのに見えない矢印を使用しています。 +\end_layout + +\begin_layout Subsection +その他の +\family typewriter + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\family default +-トリック +\end_layout + +\begin_layout Standard +ここでは、 +\family typewriter + +\backslash +xymatrix +\family default +コマンドに焦点を当てましたが、これは、Kris Roseによる素晴らしい +\family typewriter + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\family default +-パッケージの機能の一つに過ぎないのです。 +\family typewriter + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\family default +-Picの取扱説明書 +\begin_inset CommandInset citation +LatexCommand cite +key "xypic manual" + +\end_inset + +には、このパッケージの進んだ使い方が多く示されています。そこでは簡潔な説明しか与えられていないため、そこにある多くの実例をあれこれ試したり修正したりする必要があ +るかもしれないので、注意してください。Lauda +\begin_inset CommandInset citation +LatexCommand cite +key "Lauda" + +\end_inset + +には、組ひも・コボルディズム・ひも図式などを作るための +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Picの使い方がたくさん説明されています。 +\family typewriter + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\family default +-行列へのシステマティックで良い入門書は +\begin_inset CommandInset citation +LatexCommand cite +key "Ouvaton" + +\end_inset + +です。あなたが私同様にエスペラント語に長けていないとしても、ほとんどの部分はわかるでしょう。 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "1" +key "xypic manual" + +\end_inset + +Kristoffer H. + Rose: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\emph on +-Pic User's Guide +\emph default +. + Version 3.7, Feb. + 16, 1999. +\begin_inset Newline newline +\end_inset + +LaTeXパッケージ +\family typewriter +xypic +\family default +の一部として入手できます。 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "2" +key "instant-preview" + +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.tug.org/tex-archive/help/Catalogue/entries/preview-latex.html +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "3" +key "xypic" + +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.tug.org/tex-archive/help/Catalogue/entries/xypic.html +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "4" +key "AUCTeX" + +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.gnu.org/software/auctex/ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "5" +key "Lauda" + +\end_inset + +Aarlon Lauda: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\emph on +-Pic +\emph default + +\emph on +tutorial with an archive of examples +\emph default +. +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.dpmms.cam.ac.uk/~al366/xytutorial.html +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "6" +key "Ouvaton" + +\end_inset + +Filipp Ouvaton: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\emph on +-Pic +\emph default +: +\emph on +Enkonduko pri Xymatrix +\emph default +. +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://filip.ouvaton.org/xypic/xymatrix/index.html +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document