diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/luatex/latex/luatextra |
Initial commit
Diffstat (limited to 'macros/luatex/latex/luatextra')
-rw-r--r-- | macros/luatex/latex/luatextra/Makefile | 92 | ||||
-rw-r--r-- | macros/luatex/latex/luatextra/News | 58 | ||||
-rw-r--r-- | macros/luatex/latex/luatextra/README | 37 | ||||
-rw-r--r-- | macros/luatex/latex/luatextra/luatextra.dtx | 200 | ||||
-rw-r--r-- | macros/luatex/latex/luatextra/luatextra.pdf | bin | 0 -> 315129 bytes |
5 files changed, 387 insertions, 0 deletions
diff --git a/macros/luatex/latex/luatextra/Makefile b/macros/luatex/latex/luatextra/Makefile new file mode 100644 index 0000000000..93d290d0ad --- /dev/null +++ b/macros/luatex/latex/luatextra/Makefile @@ -0,0 +1,92 @@ +# Makefile for luatextra. + +NAME = luatextra +DTX = $(wildcard *.dtx) +DOC_DTX = $(patsubst %.dtx, %.pdf, $(DTX)) + +# Files grouped by generation mode +UNPACKED= luatextra.sty +COMPILED = $(DOC_DTX) +GENERATED = $(UNPACKED) $(COMPILED) +SOURCE = $(DTX) README Makefile News + +# Files grouped by installation location +RUNFILES = $(filter-out test.tex, $(UNPACKED)) +DOCFILES = $(DOC_DTX) test.tex README News +SRCFILES = $(DTX) Makefile + +# The following definitions should be equivalent +# ALL_FILES = $(RUNFILES) $(DOCFILES) $(SRCFILES) +ALL_FILES = $(GENERATED) $(SOURCE) + +# Installation locations +FORMAT = lualatex +RUNDIR = $(TEXMFROOT)/tex/$(FORMAT)/$(NAME) +DOCDIR = $(TEXMFROOT)/doc/$(FORMAT)/$(NAME) +SRCDIR = $(TEXMFROOT)/source/$(FORMAT)/$(NAME) +TEXMFROOT = ./texmf + +CTAN_ZIP = $(NAME).zip +TDS_ZIP = $(NAME).tds.zip +ZIPS = $(CTAN_ZIP) $(TDS_ZIP) + +DO_TEX = tex --interaction=batchmode $< >/dev/null +DO_LATEXMK = latexmk -pdf -silent $< >/dev/null + +all: $(GENERATED) +doc: $(COMPILED) +unpack: $(UNPACKED) +ctan: check $(CTAN_ZIP) +tds: $(TDS_ZIP) +world: all ctan +.PHONY: all doc unpack ctan tds world check + +%.pdf: %.dtx + $(DO_LATEXMK) + +$(UNPACKED): luatextra.dtx + $(DO_TEX) + +check: $(UNPACKED) + lualatex --interaction=batchmode test.tex >/dev/null + +$(CTAN_ZIP): $(SOURCE) $(COMPILED) $(TDS_ZIP) + @echo "Making $@ for CTAN upload." + @$(RM) -- $@ + @zip -9 $@ $^ >/dev/null + +define run-install +@mkdir -p $(RUNDIR) && cp $(RUNFILES) $(RUNDIR) +@mkdir -p $(DOCDIR) && cp $(DOCFILES) $(DOCDIR) +@mkdir -p $(SRCDIR) && cp $(SRCFILES) $(SRCDIR) +endef + +$(TDS_ZIP): TEXMFROOT=./tmp-texmf +$(TDS_ZIP): $(ALL_FILES) + @echo "Making TDS-ready archive $@." + @$(RM) -- $@ + $(run-install) + @cd $(TEXMFROOT) && zip -9 ../$@ -r . >/dev/null + @$(RM) -r -- $(TEXMFROOT) + +.PHONY: install manifest clean mrproper + +install: $(ALL_FILES) + @echo "Installing in '$(TEXMFROOT)'." + $(run-install) + +manifest: + @echo "Source files:" + @for f in $(SOURCE); do echo $$f; done + @echo "" + @echo "Derived files:" + @for f in $(GENERATED); do echo $$f; done + +clean: + @latexmk -silent -c *.dtx >/dev/null + @# for tex-only runs: + @rm -f -- *.log + +mrproper: clean + @$(RM) -- $(GENERATED) $(ZIPS) test.* + diff --git a/macros/luatex/latex/luatextra/News b/macros/luatex/latex/luatextra/News new file mode 100644 index 0000000000..c841768bdb --- /dev/null +++ b/macros/luatex/latex/luatextra/News @@ -0,0 +1,58 @@ + History of the luatextra package + + +2010-12-14 v1.0.1 + * work around bug (loading order) reported by Damien Robert + +2010/10/10 v1.0 + * move to latex only + * remove old callback code + * remove old macro/primitive aliases + * load fontspec + +2010/10/10 v0.99a + * adapt to luatexbase v3.0 + +2010/10/08 v0.99 + * delegate definition of {luacode} and \luadirect to package luacode + * raise an error rather than a warning when not running LuaTeX + * load fixltx2e under LaTeX + +2010/10/04 v0.98 + * load metalogo under LaTeX; don't define logos under Plain TeX + * documentation overhaul; added a "planned changes" section + * rm luatextra-reference.pdf; will be back separatly as lualatex-doc.pdf + +2010/08/02 v0.971 + * fix latex detection that used to break latex detection in other packages + (inc. TikZ). + +2010/05/10 + * adaptation to the new luatexbase package + +2010/03/29 v0.97 + * bump version to account for luaextra (now lualibs) separation + +2010/03/28 + * move luaextra to a separate package + +2010/03/28, luatextra v0.96 + * a lot of stuff moved to luatexbase. Now using luatexbase v0.1. + +2010/01/10, luaextra v0.92: + * making the file loadable without luatextra (useful for lua scripts) + * fixing typo in localize_sep + +2009/12/16, luatextra v0.95: + * package can now be loaded with a different engine, it then loads only + \LuaTeX and \LuaLaTeX + * \CatcodeTableLaTeXAtLetter and \CatcodeTableExpl have appeared + * short names have been added to the tex.catcodetablenumber table + +2009/09/22, luatextra v0.94: + * prefixing macros with \luatex instead of \lua, to be coherent with + TeX Live 2009. + +2009/09/18, luamcallbacks v0.93: + * adding the callback process_output_buffer, to use it with luainputenc + diff --git a/macros/luatex/latex/luatextra/README b/macros/luatex/latex/luatextra/README new file mode 100644 index 0000000000..30ebacd7db --- /dev/null +++ b/macros/luatex/latex/luatextra/README @@ -0,0 +1,37 @@ + The luatextra package for LuaLaTeX + + +The luatextra package loads essential and useful packages for LuaLaTeX. It is +meant as convenience for users who don't want to load them individually. + + +Installation +------------ + +Here are the recommended installation methods (preferred first). + +1. If you are using TeX Live 2008 or later, use 'tlmgr install luatextra'. +Alternatively, try your (TeX or Linux) distribution's package management system. + +2. a. Grab luatextra.tds.zip on the CTAN. + b. Unzip it at the root of one or your TDS trees. + c. You may need to update some filename database after this, see your TeX +distribution's manual for details. + +3. a. Grab the sources from CTAN or github. + b. Run 'make install TEXMFROOT=/path/to/texmf'. + c. See 2c. + + +License +------- + +This work and the derived files are under the Creative Commons CC0 license. + +See the full text at + +http://creativecommons.org/publicdomain/zero/1.0/legalcode + +and a FAQ at + +http://wiki.creativecommons.org/CC0 diff --git a/macros/luatex/latex/luatextra/luatextra.dtx b/macros/luatex/latex/luatextra/luatextra.dtx new file mode 100644 index 0000000000..824c441fb3 --- /dev/null +++ b/macros/luatex/latex/luatextra/luatextra.dtx @@ -0,0 +1,200 @@ +% \iffalse meta-comment +% +% Written in 2009, 2010 by Manuel Pégourié-Gonnard and Élie Roux. +% <mpg@elzevir.fr> +% <elie.roux@telecom-bretagne.eu> +% +% This work is under the CC0 license. +% +% This work consists of the main source file luatextra.dtx +% and the derived files +% luatextra.sty, luatextra.lua, luatextra.pdf. +% +% Unpacking: +% tex luatextra.dtx +% Documentation: +% pdflatex luatextra.dtx +% +%<*ignore> +\begingroup + \def\x{LaTeX2e}% +\expandafter\endgroup +\ifcase 0\ifx\install y1\fi\expandafter + \ifx\csname processbatchFile\endcsname\relax\else1\fi + \ifx\fmtname\x\else 1\fi\relax +\else\csname fi\endcsname +%</ignore> +%<*install> +\input docstrip.tex + +\keepsilent +\askforoverwritefalse + +\preamble + +Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. + +This work is under the CC0 license. +See source file '\inFileName' for details. + +\endpreamble + +\generate{% + \usedir{tex/luatex/luatextra}% + \file{luatextra.sty}{\from{luatextra.dtx}{package}}% +} + +\generate{% + \usedir{doc/luatex/luatextra}% + \file{test.tex}{\from{luatextra.dtx}{test}}% +} + +\obeyspaces +\Msg{************************************************************************} +\Msg{*} +\Msg{* To finish the installation you have to move the following} +\Msg{* files into a directory searched by TeX:} +\Msg{*} +\Msg{* luatextra.sty luatextra.lua} +\Msg{*} +\Msg{* Happy TeXing!} +\Msg{*} +\Msg{************************************************************************} + +\endbatchfile +%</install> +%<*ignore> +\fi +%</ignore> +%<*driver> +\documentclass{ltxdoc} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{lmodern} +\usepackage{metalogo} +\usepackage[bookmarks=true, colorlinks=true]{hyperref} +\usepackage{bookmark} +\usepackage[english]{babel} +\providecommand\eTeX{e\TeX} +\newcommand\pf{\textsf} +\newcommand\file{\texorpdfstring{\nolinkurl}{}} +\newcommand\code{\texttt} +\newcommand*\email[1]{\href{mailto:#1}{#1}} +\begin{document} + \DocInput{luatextra.dtx}% +\end{document} +%</driver> +% \fi +% +% \CheckSum{0} +% +% \CharacterTable +% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +% Digits \0\1\2\3\4\5\6\7\8\9 +% Exclamation \! Double quote \" Hash (number) \# +% Dollar \$ Percent \% Ampersand \& +% Acute accent \' Left paren \( Right paren \) +% Asterisk \* Plus \+ Comma \, +% Minus \- Point \. Solidus \/ +% Colon \: Semicolon \; Less than \< +% Equals \= Greater than \> Question mark \? +% Commercial at \@ Left bracket \[ Backslash \\ +% Right bracket \] Circumflex \^ Underscore \_ +% Grave accent \` Left brace \{ Vertical bar \| +% Right brace \} Tilde \~} +% +% \title{The \textsf{luatextra} package} +% \date{2010/10/10 v1.0} +% \author{% +% Manuel P\'egouri\'e-Gonnard \& \'Elie Roux \\ +% Support: \email{lualatex-dev@tug.org}} +% +% \maketitle +% +% \begin{abstract} +% The \pf{luatextra} package loads essential and useful packages for +% \LuaLaTeX. It is meant as convenience for users who don't want to load them +% individually. +% \end{abstract} +% +% \tableofcontents +% +% \section{Documentation} +% +% The following packages are loaded: +% \begin{description} +% \item[fontspec] --- advanced font management, integrated in the \LaTeX\ font +% selection scheme, with access to system fonts and opentype features; +% \item[luacode] --- tools for easier integration of Lua code in \LaTeX; +% \item[metalogo] --- commands for logos, including |\LuaTeX| and +% |\LuaLaTeX|; +% \item[fixltx2e] --- various fixes and small enchancements for the \LaTeX\ +% core; +% \item[luatexbase] --- low-level management of \LuaTeX's new and extended +% resources; +% \item[lualibs] --- additional general-purpose Lua functions. +% \end{description} +% +% In case you are not yet familiar with the available \LuaLaTeX\ packages, you +% might want to check the document \nolinkurl{lualatex-doc.pdf} from the +% eponymous package. +% +% \section{Implementation} +% +% \begin{macrocode} +%<*package> +% \end{macrocode} +% +% Identify. +% +% \begin{macrocode} +\ProvidesPackage{luatextra}[2010/10/10 v1.0 Loading usual LuaLaTeX packages] +% \end{macrocode} +% +% Make sure Lua\TeX\ is being used. +% +% \begin{macrocode} +\RequirePackage{ifluatex} +\ifluatex\else + \PackageError{luatextra}{LuaTeX is required for this package. Aborting.}{% + This package can only be used with the LuaTeX engine^^J% + (command `lualatex' or `luatex').^^J% + Package loading has been stopped to prevent additional errors.} + \expandafter\endinput +\fi +% \end{macrocode} +% +% Load packages; \pf{luatexbase} and \pf{lualibs} are loaded (indirectly) +% by fontspec, but just to be sure (in case it changes in the future). +% +% \begin{macrocode} +\RequirePackage{fontspec} +\RequirePackage{luatexbase} +\RequireLuaModule{lualibs} +\RequirePackage{metalogo} +\RequirePackage{luacode} +\RequirePackage{fixltx2e} +% \end{macrocode} +% +% \begin{macrocode} +%</package> +% \end{macrocode} +% +% \section{Test file} +% +% Very minimal, just check that the package correctly loads. We have to use +% |\documentclass| to make \pf{xkeyval} (loaded by \pf{fontspec}) happy. +% +% \begin{macrocode} +%<*test> +\documentclass{minimal} +\usepackage{luatextra} +\stop +%</test> +% \end{macrocode} +% +% +% \Finale +\endinput diff --git a/macros/luatex/latex/luatextra/luatextra.pdf b/macros/luatex/latex/luatextra/luatextra.pdf Binary files differnew file mode 100644 index 0000000000..d4f7ebb52f --- /dev/null +++ b/macros/luatex/latex/luatextra/luatextra.pdf |