File: README.MarkIV

package info (click to toggle)
context 2020.03.10.20200331-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 173,548 kB
  • sloc: xml: 179,911; ruby: 15,247; perl: 1,893; sh: 233; ansic: 179; csh: 125; makefile: 49
file content (40 lines) | stat: -rw-r--r-- 973 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 
	context <filename>

Current tex-common will try to call mtxrun when necessary. Users should
not have the need to run anything, but a call as user of
	mtxrun --generate
might help in certain cases.

Now you can try some simple document like (thanks to Arthur Reutenauer)
	\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
and run it with
  	context filename.tex

More needs to be done, but we are happy to get feedback/ideas/suggestions
on the integration, please contact
	debian-tex-maint@lists.debian.org


Norbert Preining
2012-05-24