OSDN Git Service

2020->2021; also regenerated luatexja-{ja,en}.pdf
[luatex-ja/luatexja.git] / README
1 The LuaTeX-ja Package $VER$
2 --------------------------------
3 Copyright (c) 2011--2021 The LuaTeX-ja project
4 License: modified BSD (see COPYING)
5
6 LuaTeX-ja is a macro package for typesetting Japanese documents with LuaTeX.
7 This package is highly affected by ASCII pTeX engine, but not a porting of it.
8
9 Note that this package is still *alpha-stage*; documentations are not complete
10 and specifications are subject to change. Documentations are located at
11   doc/luatexja-en.pdf (en), doc/luatexja-ja.pdf (ja).
12
13 LuaTeX-ja is developed on
14   <https://osdn.jp/projects/luatex-ja/wiki/FrontPage(en)>.
15 If you have questions or recognize bugs/have feature requests,
16 we would like you to create a thread in the forum or a ticket
17 in the way which OSDN supplies, via links found in the page above.
18
19
20 Installation
21 ------------
22
23 0. Please make sure that your TeX distribution is up-to-date.
24    This version of LuaTeX-ja requires
25     - LuaTeX 1.10.0 (or later)
26     - luaotfload (v3.1 or later recommended)
27     - adobemapping (Adobe CMap files)
28     - LaTeX 2020-02-02 patch level 5 or later (if you want to use with LaTeX)
29     - everysel package
30     - etoolbox package
31     - ltxcmds package
32     - pdftexcmds package
33     - atbegshi package
34     - filehook package
35     - stfloats package
36     - Harano Aji fonts (https://github.com/trueroad/HaranoAjiFonts)
37           more specifically, HaranoAjiMincho-Regular and HaranoAjiGothic-Medium
38
39    Using LuaTeX-ja with LuaHBTeX is not well tested.
40    One might be able to typeset documents without an error, but with
41    some unwanted results.
42
43 1. If you are using TeX Live 2020, you can install LuaTeX-ja via tlmgr.
44
45 2. If you must/want to install manually:
46
47    a. Download the source archive from CTAN,
48       or tagged as $VER$ in the Git repository by
49       <http://git.osdn.jp/view?p=luatex-ja/luatexja.git
50                               ;a=snapshot;h=refs/tags/$VER$;sf=tgz>
51
52    b. Extract the archive and process following three files by LuaLaTeX
53       to generate classes for Japanese typesetting:
54         src/ltjclasses.ins
55         src/ltjltxdoc.ins
56         src/ltjsclasses.ins
57
58    c. Put src/ into your TEXMF tree.
59       An example location is TEXMF/tex/luatex/luatexja.
60
61       If you are updating from old version, you MUST remove it before
62       extracting the new version of LuaTeX-ja.
63
64    d. You may need to update the filename database, by mktexlsr (or by another program).
65
66
67 Basic Usage
68 -----------
69
70 LuaTeX-ja supports both the plain format and LaTeX2e.
71 Simply loading luatexja.sty by \input or \usepackage does the minimal setting.
72
73 - If you want to create Japanese-based documents, you can consider the use of
74   ltj{article,book,report}.cls or ltjs{article,book,report}.cls.
75 - If you want to use functionality of the fontspec package with Japanese fonts,
76   load luatexja-fontspec.sty. It defines control sequences such as \setmainjfont,
77   \setsansjfont and  \jfontspec, which can be used for specifying Japanese fonts.
78
79 Notes
80 -----
81 * We don't recommend defining a Japanese font with HarfBuzz, by specifying
82   "Renderer=..." (fontspec) or "mode=harf" (otherwise).
83
84 * This archive contains four .{dtx,ins} pairs:
85     src/ltjclasses.{ins,dtx},  src/ltjltxdoc.{ins,dtx}
86     src/ltjsclasses.{ins,dtx}, doc/luatexja.{ins,dtx}
87   Former three pairs generate class files (see above),
88   while the latter doc/luatexja.{ins,dtx} generates documentations.
89   (You will need Kozuka fonts to regenerate documentaion PDFs.)
90
91   No .{dtx,ins} pair generates .sty files of LuaTeX-ja package.
92
93 * src/*.{ins.dtx} are not needed in regular use.
94
95 * ltj-kinsoku_make.tex is removed in version 20200808.0. 
96   This file and ltj-kinsoku.lua are not used anymore.
97   (Do not remove ltj-kinsoku.tex.)
98
99 Last commit date: $Format:%cd$