Uwe Stöhr wrote:
Can you process LyX's current LaTeX code? For me it only works when I omit the inputenc package.

Uwe,

No, you must omit the inputenc package, and the japanese package should be loaded after babel declaration. To avoid inputenc, I had to tweak current LyX to write Japanese with the following two patches and make preamble declaration in each document as:

   \usepackage{babel}
   \usepackage{japanese}

Since LyX loads babel after users' preamble, this means \usepackage{babel} is called twice but this is currently necessary to load babel before japanese package.

I will check the wiki page.

Regards,

Koji

--- lib/encodings.orig  Fri Jul 13 01:10:01 2007
+++ lib/encodings       Fri Jul 13 01:10:01 2007
@@ -183,6 +183,15 @@
Encoding utf8-plain utf8-plain UTF-8 variable none
End

+# Traditional Japanese TeX programs require neither CJK nor inputenc
+# package.
+Encoding euc-jp-plain EUC-JP-plain EUC-JP variable none
+End
+Encoding jis-plain JIS-plain JIS variable none
+End
+#Encoding shift-jis-plain SJIS-plain SJIS variable none
+#End
+
# Pure 7bit ASCII encoding (partially hardcoded in LyX)
Encoding ascii ascii ascii fixed none
End


--- lib/languages.orig  Fri Jul 13 02:41:51 2007
+++ lib/languages       Fri Jul 13 02:41:51 2007
@@ -41,6 +41,7 @@
irish       irish       "Irish"               false  iso8859-15 ga_IE  ""
italian     italian     "Italian"     false  iso8859-15 it_IT  ""
japanese    ""                "Japanese"    false  euc-jp     ja_JP  ""
+japanese-plain ""    "Japanese (non-CJK)" false euc-jp-plain ja_JP  ""
kazakh      kazakh      "Kazakh"      false  pt154      kk_KZ  ""
# there is no country code for Korean because ko_KR is the same as ko_KI
korean      ""                "Korean"      false  euc-kr     ko     ""

Reply via email to