Changes

Jump to navigation Jump to search
1,347 bytes added ,  08:24, 16 February 2020
m
→‎Mark VI: <tt> tag is obsolete
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
texexec --lua filenameor
context filename
There are fundamental differences between Mark IV and Mark II that you should be aware of. Many parts of ConTeXt have been redesigned from scratch making extensive use of the Lua programming language. And that is besides the heavy use of LuaTeX-only features in MkIV. As a result, there are a few intentional incompatibilities between the two ConTeXt versions. See [[MkIV Differences]] for these details. The first public beta has been released on the 6th of August, 2007. It will be available on [[TeX Live]] 2008 and [[MikTeX]] 2.8. Currently the easiest way to try it out is to install [[ConTeXt MinimalsStandalone]].
It takes advantage of the amazing capabilities of LuaTeX and opens up a whole new world of possibilities, in particular with fonts.
 
In the distribution the MkIV files have suffix 'mkiv'. There are also files with suffix 'mkvi' and more will follow. The most significant difference is that these files use a different (and still somewhat experimental) syntax.
 
=== Mark VI ===
 
Mark VI is ''identical to Mark IV'' in every respect, except that when you define a new macro you can give parameters names instead of numbers. This make programming a great deal more pleasant. For example, instead of
 
<texcode>
\def\colortext[#1]#2%
{\color[#1]{#2}}
</texcode>
 
you can write
 
<texcode>
\def\colortext[#color]#text%
{\color[#color]{#text}}
</texcode>
 
To use Mark VI, add the comment {{code|1=% macros=mkvi}} as the first line of your file, or save the file with a {{code|.mkvi}} extension.
== Installation and maintenance ==
== Troubleshooting ==
The environment variable TEXINPUTS has to be empty or unset. If not, youcan get errors about "file.tex /module/whatever not found". TEXINPUTS can *always* be a problem and really should not be used at all any more. It is a historical environment variable from the nineties, and it overrules just about every path in a modern texmf tree. If you need something special, use TEXMFLOCAL or TEXMFPROJECT instead.
== Sample code ==
Here are some examples of cool stuff you can do with Mark IV ([http://live.contextgarden.net/ test it!]). 
=== Lua core ===
Other examples of Lua(TeX) code are to be found on [[User:Luigi.scarso#Luatex_examples|Luigi's user page]] as well as [http://luatex.bluwiki.com/ http://luatex.bluwiki.com/]
 
[[Category:LuaTeX]]
35

edits

Navigation menu