Recent Changes

2015-05-18
2015-04-20
2014-11-11
2014-01-04
2012-04-21

Latest File Releases

This Project Has Not Released Any Files

Wiki Guide

Side Bar

Language: en | ja | zh

LuaTeX-ja wiki

LuaTeX-ja is a macro package to typeset Japanese texts using Lua(La)TeX. A goal of this project is to provide an equal or superior typesetting system to ASCII pTeX, which is a traditional standard Japanese TeX engine.

Download

At this moment, there is no stable version. You can download the latest versions from the ,#4Git repository.

LuaTeX-ja is also available from the following archive and distributions:

Recent version of LuaTeX-ja (20150420.0 or later) requires the followings:

  • LuaTeX beta-0.80.0 or later
  • luaotfload package (v2.5 or later)
  • luatexbase package (v0.6 or later)

Also, three CMap files UniJIS2004-UTF32-{H,V} and Adobe-Japan1-UCS2 must be found by Kpathsea. You can check this by kpsewhich command:

$ kpsewhich -format=cmap  UniJIS2004-UTF32-H
/opt/texlive/2013/texmf-dist/fonts/cmap/adobemapping/aj16/CMap/UniJIS2004-UTF32-H
$ kpsewhich -format=cmap  Adobe-Japan1-UCS2
/opt/texlive/2013/texmf-dist/fonts/cmap/adobemapping/ToUnicode/Adobe-Japan1-UCS2

Bug information

  • \newjfontfamilly command in LuaTeX-ja version 20150307.0 can cause an error like below:
    ! LaTeX Error: Missing \begin{document}.
    
    See the LaTeX manual or LaTeX Companion for explanation.
    Type  H <return>  for immediate help.
     ...                                              
                                                      
    l.179   \newjfontfamily\midasifont{KozMinPr6N-Bold}
                                                     
    ?  
    
    It is just a bug of LuaTeX-ja. The following is a patch for this (fixed in 20150420.0 or later):
    --- a/src/addons/luatexja-fontspec-24.sty
    +++ b/src/addons/luatexja-fontspec-24.sty
    @@ -207,7 +207,7 @@
     
     \DeclareDocumentCommand \newjfontfamily { m O{} m O{} } {
       \cs_set_eq:NN \fontspec_set_family:Nnn \ltj_fontspec_set_family:Nnn
    -  \newfontfamily #1 [#2] {#3} [#4]
    +  \newfontfamily #1 [#2,#4] {#3}
       \cs_set_eq:NN \fontspec_set_family:Nnn \__ltj_orig_fontspec_set_family:Nnn
     }
     
    
  • With LuaTeX-ja 20150513.0 (or 20150420.0), accent such as \"o without using the fontspec package causes an error like
    ltj-jfmglue.lua:357: attempt to perform arithmetic on a nil value
    
    To cope with the error, change lp at l. 357 of ltj-jfmglue.lua to lx, or just use the fontspec package.

Sorry for the inconvenience.

Documentation and talks

See Documentation page.

Support

If you have questions or recognize bugs/have feature requests, we would like you to create a thread in the forum or a ticket in the way which SourceForge.JP supplies: