Changes

Jump to navigation Jump to search
551 bytes added ,  13:24, 9 August 2020
m
Text replacement - "<cmd>" to "{{cmd|"
== Introducing Mark IV (and MkVI) ==
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
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 MkII 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 ==
</texcode>
Note that the above works with any flavour of LuaTeX; nothing is actually ConTeXt-specific (except for <{{cmd>|ctxlua</cmd> }} and <{{cmd>|startlua</cmd>}}/<{{cmd>|stoplua</cmd>}}).
=== Fonts and typescripts ===
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:LuaTeXTools]][[Category:Programming and Databases]]

Navigation menu