summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-05-14 22:47:27 +0000
committerKarl Berry <karl@freefriends.org>2013-05-14 22:47:27 +0000
commitf1eb912094cb75b46a509542819cb9c34364d22d (patch)
tree4da5ed0af07a3c4c7bfa34659aaed8eee42238b5 /Master/texmf-dist
parent2e22f30e7e1fb9eae364bbcd4e76f50fa878af7e (diff)
lualatex-doc (14may13)
git-svn-id: svn://tug.org/texlive/trunk@30473 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/lualatex/lualatex-doc/News10
-rw-r--r--Master/texmf-dist/doc/lualatex/lualatex-doc/lualatex-doc.pdfbin124700 -> 155858 bytes
-rw-r--r--Master/texmf-dist/source/lualatex/lualatex-doc/Makefile7
-rw-r--r--Master/texmf-dist/source/lualatex/lualatex-doc/lltxdoc.cls3
-rw-r--r--Master/texmf-dist/source/lualatex/lualatex-doc/lualatex-doc.tex114
5 files changed, 68 insertions, 66 deletions
diff --git a/Master/texmf-dist/doc/lualatex/lualatex-doc/News b/Master/texmf-dist/doc/lualatex/lualatex-doc/News
index e0f3967b957..29ef9b4a976 100644
--- a/Master/texmf-dist/doc/lualatex/lualatex-doc/News
+++ b/Master/texmf-dist/doc/lualatex/lualatex-doc/News
@@ -1,7 +1,11 @@
+2013/05/10 (Elie Roux)
+ * update for the large changes appearing in TeXLive 2013 and
+ for Lua 5.2.
+
2010/11/11
* fix a lot of typos, thanks to all readers
- * add a paragraph about hyphenation and other matric changes, with
- relevant information provided by Stephan Henning
+ * add a paragraph about hyphenation and other metric changes, with
+ relevant information provided by Stephan Hennig
* add a stub paragraph about languages support (suggested by Stephan)
* fix euenc/xunicode description thanks to Ulrike Fischer
* be more realistic about soul and listings thanks to Ulrike
@@ -12,3 +16,5 @@
2010/11/08
* initial release
+
+vim: spell spelllang=en
diff --git a/Master/texmf-dist/doc/lualatex/lualatex-doc/lualatex-doc.pdf b/Master/texmf-dist/doc/lualatex/lualatex-doc/lualatex-doc.pdf
index 75c18ab6bda..27dfd1bafa4 100644
--- a/Master/texmf-dist/doc/lualatex/lualatex-doc/lualatex-doc.pdf
+++ b/Master/texmf-dist/doc/lualatex/lualatex-doc/lualatex-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/lualatex/lualatex-doc/Makefile b/Master/texmf-dist/source/lualatex/lualatex-doc/Makefile
index 7b0e90330aa..f2778000a56 100644
--- a/Master/texmf-dist/source/lualatex/lualatex-doc/Makefile
+++ b/Master/texmf-dist/source/lualatex/lualatex-doc/Makefile
@@ -17,10 +17,11 @@ world: all ctan
.PHONY: all world
+# (with the next version of latexmk: -pdf -pdflatex=lualatex)
+LATEXMK_FMT = -pdf -e '$$pdflatex = q(lualatex %O %S)'
+
%.pdf: %.tex
- # option -pdflatex will be available in the next release
- # of latexmk (4.19)
- latexmk -pdf -silent -pdflatex=lualatex $< >/dev/null
+ latexmk -silent $(LATEXMK_FMT) $< >/dev/null
$(README): $(MKD)
@cp $(MKD) $(README)
diff --git a/Master/texmf-dist/source/lualatex/lualatex-doc/lltxdoc.cls b/Master/texmf-dist/source/lualatex/lualatex-doc/lltxdoc.cls
index 13c52ca6e87..ae0e8961b1c 100644
--- a/Master/texmf-dist/source/lualatex/lualatex-doc/lltxdoc.cls
+++ b/Master/texmf-dist/source/lualatex/lualatex-doc/lltxdoc.cls
@@ -97,6 +97,9 @@
\newcommand \VK {Vafa Khalighi\xspace}
\newcommand \HH {Hans Hagen\xspace}
\newcommand \Taco {Taco Hoewater\xspace}
+\newcommand \FC {François Charette\xspace}
+\newcommand \PHG {Philipp Gesang\xspace}
+\newcommand \AR {Arthur Reuntenauer\xspace}
\newenvironment{myquote}{%
\list{}{\leftmargin0pt \rightmargin1em}%
diff --git a/Master/texmf-dist/source/lualatex/lualatex-doc/lualatex-doc.tex b/Master/texmf-dist/source/lualatex/lualatex-doc/lualatex-doc.tex
index a150bfb8ffc..445c9ff1c0e 100644
--- a/Master/texmf-dist/source/lualatex/lualatex-doc/lualatex-doc.tex
+++ b/Master/texmf-dist/source/lualatex/lualatex-doc/lualatex-doc.tex
@@ -36,7 +36,6 @@
\vspace*{\stretch{2}}
\clearpage
-
\section{Introduction}\label{intro}
\subsection{Just what is \lualatex?}\label{what}
@@ -150,7 +149,8 @@ the rest of the document provides more details about the available packages.
There are only three differences:
\begin{enumerate}
\item Don't load \pf{inputenc}, just encode your source in UTF-8.
- \item Don't load \pf{fontenc}, but load \pf{fontspec}.
+ \item Don't load \pf{fontenc} nor \pf{textcomp}, but load \pf{fontspec}.
+ \item \pf{babel} works with \lualatex{} but you can load \pf{polyglossia} instead.
\item Don't use any package that changes the fonts, but use \pf{fontspec}'s
commands instead.
\end{enumerate}
@@ -216,7 +216,7 @@ Depending on your programming culture, you may be directly interested in the
rest of part~1 and part~2 which present more advanced features of the
language, but part~4 is useless in a \luatex context, unless of course you
want to hack \luatex itself. Finally, the \emph{Lua reference manual} is
-\href{http://www.lua.org/manual/}{available online in various languages} and
+\href{http://www.lua.org/manual/5.2/}{available online} and
comes with a handy index.
\medskip
@@ -237,9 +237,9 @@ it's the simplest (since it's more Lua than \tex). If you look at the \luatex
manual, you'll see there is another function with a simpler name, ©tex.print©,
to pass information this way. It works by virtually inserting a full line into
your \tex source, whose contents are its argument. In case you didn't know,
-\tex does all kinds of nasty\footnote{Okay, these are usually nice and helpful
+\tex does many nasty\footnote{Okay, these are usually nice and helpful
actions, but in this case they are most probably unexpected so I call them
- nasty.} things with full lines of the source, like
+ nasty.} things with full lines of the source:
ignoring spaces at the beginning and end of line and appending an end-of-line
character. Most of the time, you don't want this to happen, so I recommend
using ©tex.sprint© which virtually inserts its argument in the current line,
@@ -344,7 +344,7 @@ remains ©\luatexversion©. The rationale is detailed in section~\ref{formats}.
\medskip
Oh, and by the way, did I mention that \luatex is in beta and version 1.0 is
-expected in late 2012? You can learn more on the roadmap page of
+expected in spring 2014? You can learn more on the roadmap page of
\href{http://luatex.org/}{the \luatex site}. Stable betas are released
regularly and are included in \texlive since 2008 and \miktex since 2.9.
@@ -360,7 +360,6 @@ written or updated, without keeping track of changes. Hopefully, you'll update
your distribution as a whole so that you always get matching versions of this
guide and the packages, formats and engine it describes.
-
\section{Essential packages and practices}\label{essential}
This section presents the packages you'll probably want to always load as a
@@ -373,6 +372,10 @@ user, or that you should absolutely know about as a developer.
Nice interface to font management, well-integrated in to the \latex font
selection scheme. Already presented in the previous section.
+\pkdesc{polyglossia}{\FC \& \AR}{\xetex, \luatex}{\latex}{%
+ macros/latex/contrib/polyglossia/}[https://github.com/reutenauer/polyglossia/]
+A simple and modern replacement for Babel, working in synergy with \pk{fontspec}.
+
\subsection{Developer-level}
\subsubsection{Naming conventions}
@@ -388,14 +391,13 @@ unique prefix for internal macros in all of your packages, aren't you?
On the Lua end, please keep the global namespace as clean as possible. That
is, use a table ©mypackage© and put all your public functions and objects in
-this table. You might want to use Lua's
-\href{http://www.lua.org/manual/5.1/manual.html#pdf-module} {\code{module()}}.
+this table. You might want to avoid using Lua's deprecated \code{module()}.
Other strategies for Lua module management are discussed in
\href{http://www.lua.org/pil/15.html} {chapter~15 of \emph{Programming in
- Lua}}. Also, it is probably a good idea to use ©local© for your internal
-variables and functions. Finally, to avoid clashes with future versions of
-\luatex, it is recommended to avoid modifying the namespaces of \luatex's
-default libraries.
+ Lua}}, and examples are given in \file{luatexbase-modutils.pdf}. Also, it
+is a good and necessary practice to use ©local© for your internal variables and
+functions. Finally, to avoid clashes with future versions of \luatex, it is
+necessary to avoid modifying the namespaces of \luatex's default libraries.
\subsubsection{Engine and mode detection}\label{detect}
@@ -425,8 +427,8 @@ that this doesn't include \xetex, whose support for PDF is different).
\subsubsection{Basic resources}
-\pkdesc{luatexbase}{\ER \& \MPG}{\luatex}{\latex, Plain}{%
- macros/luatex/generic/luatexbase/}[https://github.com/mpg/luatexbase]
+\pkdesc{luatexbase}{\ER, \MPG \& \PHG}{\luatex}{\latex, Plain}{%
+ macros/luatex/generic/luatexbase/}[https://github.com/lualatex/luatexbase]
The Plain and \latex formats provide macros to manage \tex basic resources,
such as count or box registers. \luatex introduces new resources that need to
be shared gracefully by packages. This package provides the basic tools to
@@ -444,8 +446,8 @@ packages in the near future, though the timeline is not clear.
See the description of \pk{luatexbase} above. This package provides the same
core features except for callback management and Lua module identification.
-\pkdesc{lualibs}{\ER}{\luatex}{Lua}{%
- macros/luatex/generic/lualibs/}[https://github.com/mpg/lualibs]
+\pkdesc{lualibs}{\ER \& \PHG}{\luatex}{Lua}{%
+ macros/luatex/generic/lualibs/}[https://github.com/lualatex/lualibs]
Collection of Lua libraries and additions to the standard libraries; mostly
derived from the \context libraries. If you need a basic function that Lua
doesn't provide, check this package before rolling your own implementation.
@@ -456,8 +458,8 @@ Those packages are loaded by \pk{fontspec} to handle some low-level font and
encoding issues. A normal user should only use \pk{fontspec}, but a developer
may need to know about them.
-\pkdesc{luaotfload}{\ER \& \KH}{\luatex}{\latex, Plain}{%
- macros/luatex/generic/luaotfload/}[https://github.com/khaledhosny/luaotfload]
+\pkdesc{luaotfload}{\ER, \KH \& \PHG}{\luatex}{\latex, Plain}{%
+ macros/luatex/generic/luaotfload/}[https://github.com/lualatex/luaotfload]
Low-level OpenType font loading, adapted from the generic subset of \context.
Basically, it uses the ©fontloader© Lua library and the appropriate callbacks
to implement a syntax for the ©\font© primitive very similar to that of \xetex
@@ -468,12 +470,18 @@ loading.
\pkdesc{euenc}{\WSPR, \ER \& \KH}{\xetex, \luatex}{\latex}{%
macros/latex/contrib/euenc/}[https://github.com/wspr/euenc]
-Implements the ©EUx© Unicode font encodings for \latex's \pf{fontenc} system.
-Currently, \xelatex is using ©EU1© and \luatex is using ©EU2©. Includes
+Implements the EUx Unicode font encodings for \latex's \pf{fontenc} system.
+Currently, \xelatex is using ©EU1© and \lualatex is using ©EU2©. Includes
definitions (\file{fd} files) for Latin Modern, the default font loaded by
\pk{fontspec}.
-
+To be precise, \pf{euenc} merely declares the encoding, but
+doesn't provide definitions for LICR macros; this is done by loading
+\pk{xunicode} with ©\UTFencname© defined to ©EU1© or ©EU2©, which
+\pk{fontspec} does. The actual encodings are the same, but it is useful to
+have distinct names so that different \file{fd} files can be used according to
+the engine (which is actually the case with Latin Modern).
+
\section{Other packages}\label{other}
Note that the packages are not listed in any particular order.
@@ -481,25 +489,25 @@ Note that the packages are not listed in any particular order.
\subsection{User-level}
\pkdesc{luatextra}{\ER \& \MPG}{\luatex}{\latex}{%
- macros/luatex/latex/luatextra/}[https://github.com/mpg/luatextra]
+ macros/luatex/latex/luatextra/}[https://github.com/lualatex/luatextra]
Loads usual packages, currently \pk{fontspec}, \pk{luacode}, \pf{metalogo}
(commands for logos, including ©\LuaTeX© and ©\LuaLaTeX©), \pk{luatexbase},
\pk{lualibs}, \pf{fixltx2e} (fixes and enhancements for the \latex core).
\pkdesc{luacode}{\MPG}{\luatex}{\latex}{%
- macros/luatex/latex/luacode/}[https://github.com/mpg/luacode]
+ macros/luatex/latex/luacode/}[https://github.com/lualatex/luacode]
Provides commands and macros that help including Lua code in a \tex source,
especially concerning special characters.
\pkdesc{luainputenc}{\ER \& \MPG}{\luatex, \xetex, \pdftex}{\latex}{%
- macros/luatex/latex/luainputenc/}[https://github.com/mpg/luainputenc]
+ macros/luatex/latex/luainputenc/}[https://github.com/lualatex/luainputenc]
Helps compiling documents relying on legacy encodings (either in the source or
with the fonts). Already presented in the introduction. When running \xetex,
just loads \pf{xetex-inputenc}; under \pdftex, loads the standard
\pf{inputenc}.
-\pkdesc{luamplib}{\HH, \Taco \& \ER}{\luatex}{\latex, Plain}{%
- macros/luatex/generic/luamplib/}[https://github.com/mpg/luamplib]
+\pkdesc{luamplib}{\HH, \Taco \& \PHG}{\luatex}{\latex, Plain}{%
+ macros/luatex/generic/luamplib/}[https://github.com/lualatex/luamplib]
Provides a nice interface for the ©mplib© Lua library that embeds metapost in
\luatex.
@@ -509,11 +517,6 @@ Changes low-level color implementation to use \luatex attributes in place of
whatsits. This makes the implementation more robust and fixes strange bugs
such as wrong alignment when ©\color© happens at the beginning of a ©\vbox©.
-\pkdesc{luadirections}{\KH}{\luatex}{\latex, Plain, \context}{}
-[https://github.com/khaledhosny/luadirections]
-Higher-level interface to \luatex's multi-directional support. Currently not
-released on CTAN.
-
\subsection{Developer-level}
\pkdesc{pdftexcmds}{\HO}{\luatex, \pdftex, \xetex}{\latex, Plain}{%
@@ -530,12 +533,11 @@ types, etc. used internally by \tex and its successors. Under \luatex, a more
efficient implementation is used and a Lua interface is provided.
\pkdesc{lua-alt-getopt}{Aleksey Cheusov}{\cmd{texlua}}{command-line}{%
- support/lua/lua-alt-getopt}[http://luaforge.net/project/lua_altgetopt]
+ support/lua/lua-alt-getopt}[https://github.com/LuaDist/alt-getopt]
Command-line option parser, mostly compatible with POSIX and GNU getopt, to be
used in command-line Lua scripts such as \cmd{mkluatexfontdb} from
\pk{luaotfload}.
-
\section{The \cmd{luatex} and \cmd{lualatex} formats}\label{formats}
This section is for developers and curious users only; normal users can safely
@@ -586,11 +588,6 @@ implements this for the \cmd{lualatex} format, is:
maybe prefixing was not necessary/desirable for them. However, we
tried to make the prefixing rule as simple as possible, so that
the previous point doesn't get even worse.
- \item The final name of some primitive may sound strange, namely those
- already containing the name of an engine, such as
- ©\luatexOmegaVersion©. However, since \luatex is not a drop-in
- replacement for Omega/Aleph, we felt it wrong to provide
- ©\OmegaVersion©.
\item Maybe some day we'll feel it's better to provide all primitives
without prefixing. If this happens, it will be easy to add the
unprefixed primitives in the format while keeping the prefixed names
@@ -623,12 +620,10 @@ For more details, see
on the \luatex mailing lists, and \file{lualatexquotejobname.tex} for the
implementation of the workaround.
-\para{babel}
-\luatex offers dynamic loading for hyphenation patterns. There is currently no
-support for this in \pf{babel} but some files have been modified to provide
-semi-dynamic loading, to achieve a better loading time of the format. This is
-only an implementation change, nothing should be visible at the user level.
-A modified pattern loading scheme is used for Plain-based formats too.
+\para{hyphenation}
+\luatex offers dynamic loading for hyphenation patterns. The support for this in
+\pf{babel} and \pf{polyglossia} appeared only on \texlive 2013, but should
+work well since then.
Documentation and implementation details are included in
\file{luatex-hyphen.pdf}. The sources are part of the
@@ -663,13 +658,13 @@ use any non-ASCII character for short verbatim with \pf{fancyvrb}, etc.
The good news is, with \lualatex, some of these package's features start
working on arbitrary Unicode characters without needing to modify the package.
-The bad news is, this isn't always true. Se the next section for details.
+The bad news is, this isn't always true. See the next section for details.
\subsection{Partially working}\label{partial}
\para{microtype}
Package \pf{microtype} has limited support for \luatex: more precisely, as of
-version 2.4 2010/01/10, protrusion and expansion are available and activated
+version 2.5 2013/03/13, protrusion and expansion are available and activated
by default in PDF mode, but kerning, spacing and tracking are not supported
(see table~1 in section~3.1 of \file{microtype.pdf}).
@@ -712,31 +707,28 @@ the same fonts, it is not at all unlikely that a bug in \luatex\footnote{For
involved. As usual, make sure your distribution is up-to-date before reporting
such a problem.
-\par{babel}
-Short version: working mostly without problems for Latin languages. For other
-languages, your mileage may vary. A more modern, but less complete, package
-for multilingual support, \pf{polyglossia} is available for \xelatex but is
-not ported to \lualatex yet.
+\para{babel}
+Mostly working mostly without problems for Latin languages. For other
+languages, your mileage may vary. Even for Latin languages, encoding-related
+problems my happen.
-Long version: erf, actually I don't know the details yet. I'll try to gather
-more information and update this paragraph. Please let me know if you have
-experience or knowledge to share in this domain.
+\para{polyglossia}
+A more modern, but less complete, package for multilingual support,
+\pf{polyglossia}, is also available and should be preffered, though it does
+not support all \pf{babel} features yet.
\subsection{Not working (yet)}\label{notworking}
\para{old encodings}[oldenco] Packages playing with input (source files) or
-output (fonts) encodings are very likely to break with \luatex. The good news
+output (fonts) encodings are very likely to break with \luatex. This includes
+\pf{inputenc}, \pf{fontenc}, \pf{textcomp}, and probably most classical font
+packages such as \pf{mathptmx} or \pf{fourier}. The good news
is, Unicode is a more powerful way to handle encoding problems that old
packages were trying to solve, so you most likely don't need these packages
anyway. However, not everything is already ported to the shiny new world of
Unicode, so you may have a more limited (or just different) set of choices
available for some time (this is especially true for fonts).
-\para{soul} The \pf{soul} package uses a clever trick with a monospaced font
-to count characters. However, due to differences in font handling (and maybe a
-bug in \luatex), this doesn't work yet with character above 256 (that is,
-outside the Latin-1 set).
-
\para{spaces} Spaces in file names are not really well supported in the \tex
world in general. This doesn't really get better with \luatex. Also, due to
tricky reasons, things may be worse if you have spaces in the name of your main