Changes

Jump to navigation Jump to search
2,198 bytes added ,  14:15, 11 October 2008
no edit summary
and apt will download and install the latest ConTeXt packages.
Additionally, in particular if you intend on using mkiv (luatex) you may want to install the tex-gyre package(not yet in unstable as the license situation is unclear).Add these lines to your <tt>/etc/apt/sources.list</tt>:
<nowiki>
The long path to <tt>context.tex</tt> and <tt>cont-new.tex</tt> show where the system thinks the context macros are installed. Make sure your installation is finding those versions!
 
== Postscript: Mark IV ==
(README.MarkIV)
 
Mark IV is the name of the LuaTeX-aware part of ConTeXt; that is, when you use ConTeXt over the LuaTeX engine instead of PDFTeX or XeTeX. You run it with <code>texexec --lua</code>.
 
Currently the integration of Mark IV into Debian is not completely done, especially because the details are currently worked out (see the dev-context mailing list).
 
If you want to start using Mark IV the following the following few points should get you started:
 
1) Right versions:
luatex >= 0.20.2
context >= 2007.12.20
 
2) environment variables and luatex-cache. Mark IV ships its own implementation of file searching and doesn't use the ls-R databases, but luatex-cache. You have to tell luatools where to find texmf.cnf, and then generate the cache:
<code>
export TEXMFCNF=/usr/share/texmf/web2c
luatools --generate --verbose
</code>
This will generate the luatex-cache in $HOME. If you want to put it somewhere else set (and export) the TEXMFCACHE variable:
<code>
export TEXMFCACHE=/tmp
</code>
 
3) Generate a Mark IV format. This is not integrated into the usual format building process, and probably will need some time to be worked out completely as the current fmtutil cannot cope with Mark IV formats. Call
<code>
luatools --ini --compile cont-en
</code>
 
4) Now you can try some simple document like (thanks to Arthur Reutenauer)
<code>
[[Category:Installation]]
See also the [[Debian TeXlive install]] page.
\starttext
\ctxlua{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}
% or the equivalent:
\startlua
a = 1.5
b = 1.8
c = a*b
tex.print(c)
\stoplua
% You can also do more elaborate calculations with the lua math library:
\ctxlua{tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")}
\stoptext
</code>
 
and run it with
<code>
texexec --lua filename.tex
</code>
 
== ==
[[Category:Installation]]
See also the [[Debian TeXlive install]] page.
Anonymous user

Navigation menu