Re: babel(スペイン語) と ArabTeX との混在

名前: 稲垣
日時: 2006-10-07 10:16:48
IPアドレス: 59.85.177.*

>>45247 \catcode の問題は解決していませんが,spanish.ldf あるいは apatch.sty を 修正することなく,スペイン語,古典ギリシャ語,アラビア語の混在がなんとか 可能なようです。 スペイン語の入力は,acute を用いた 'a 'e を tilde を用いた ~a ~e 等に 置き換える他は,spanish.ldf で定義されているとおりです。 なお,下記のサンプルのように,otherlanguage 環境内でスペイン語を記述 願います。\selectlanguage ですと,古典ギリシャ語で ~,アラビア語で " ' が原因となるエラーが生じます。 下記の spanish.cfg をカレントもしくは babel のディレクトリに置いて お試しいただけますでしょうか。 spanish.cfg ======================================== \declare@shorthand{spanish}{~a}{\'a}% \declare@shorthand{spanish}{~A}{\'A}% \declare@shorthand{spanish}{~e}{\'e}% \declare@shorthand{spanish}{~E}{\'E}% \declare@shorthand{spanish}{~i}{\'{\i}}% \declare@shorthand{spanish}{~I}{\'I}% \declare@shorthand{spanish}{~o}{\'o}% \declare@shorthand{spanish}{~O}{\'O}% \declare@shorthand{spanish}{~u}{\'u}% \declare@shorthand{spanish}{~U}{\'U}% \def\deactivatequoting{% \catcode`>=12 \catcode`<=12} \let\es@quoting\deactivatequoting \es@quoting \endinput sample.tex ====================================================================== \documentclass[a4paper]{jsarticle} \usepackage[spanish,greek,english]{babel} \languageattribute{greek}{polutoniko} \usepackage{yarabtex} \begin{document} \begin{otherlanguage}{spanish} "<~N~n"> "?~A~a ~E~e ~I~i ~O~o ~U~u? "!"U"u "C"c! 1"er 1"o 1"a $\lim$ \end{otherlanguage} \selectlanguage{greek} >'Andra moi >'ennepe, Mo~usa, pol'utropon, <`oc m'ala poll`a... \bigskip \RL{```arabiyyaT 'amruN "'u''} \end{document}

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます。適宜改行を入れてください)