summaryrefslogtreecommitdiff
path: root/context/data/scite/scite-context-visual.tex
blob: 0a1b8bb71eb97d9336a8df4c62c661726febd1ff (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
% language=uk

\usemodule[art-01]

\defineframedtext
  [entry]

\starttext

\startchapter[title=Some fancy title]

    \startluacode
        local entries = { -- there can be more
            { text = "The third entry!" },
            { text = "The fourth entry!" },
        }

        for i=1,#entries do
            context.startentry()
                context(entries[i].text)
            context.stopentry()
        end
    \stopluacode

    This is just some text to demonstrate the realtime spellchecker
    in combination with the embedded lua and metapost lexers and
    inline as well as display \ctxlua{context("lua code")}.

    Non breakable spaces in for instance 10 mm and quads like here
    are shown as well.

    \startlinecorrection
        \startMPcode
            for i=1 upto 100 :
                draw fullcircle scaled (i*mm) ;
            endfor ;
        \stopMPcode
    \stoplinecorrection

    \iftrue
        \def\crap{some text} % who cares
    \else
        \def\crap{some crap} % about this
    \fi

    \blank[2*big]

    \crap

\stopchapter

\stoptext