# Tag Info

7

No. You don't even need to download anything. By the way, MiKTeX doesn't include a ConTeXt distribution, whereas TeXLive does. Some options for using ConTeXt are presented below: As Marijn says, there's a standalone version available here. It includes ConTeXt LMTX (LuaMetaTeX) and ConTeXt MkIV (LuaTeX). I'd recommend this as it's updated at least once a ...

5

What you need is a bit tricky because ConTeXt is dealing with precomposed characters. A solution would be to manually apply a split for accented characters into non accented characters and combining diacritical marks (Unicode range 0300–036F). Here's a list of other types of features you can define in ConTeXt . Then you color combining marks so you get the ...

4

As I've said, the difficult part is the arrangement. Lua is an overkill, so MetaPost should suffice. Edit: Using Metafun's passvariable and \MPrunvar, explained in Metafun's manual, section 15.8, our generated string is visible to TeX and we can directly typeset it after our division. As a friendly recommendation, to exploit ConTeXt capabilities, you must ...

3

If I understand you correctly, you want section numbers to end with a dot, but dotless references. In such a case you only need to call the numbercommand key to add whatever you need: \groupedcommand{}{.} comes in handy and you don't need to define an ad hoc macro just to add a dot. \setuphead[chapter][ alternative=middle, style={\tfb\bf}, after=...

3

Just for anyone interested, a TikZ-less alternative using overlays which doesn't require manual size adjustment, sorta. Advantages are: not using TikZ, is portable across ConTeXt distributions and less prone to errors. Drawbacks are: since ConTeXt seems to "stack" elements, a small overlap occurs sometimes, but with a small enough offset it doesn't ...

2

I found an answer myself using \rawcountervalue: \setupbodyfont[palatino,10pt] \usecolors[crayola] \usemodule[t-tikz] \startsetups bola \ifnum\rawcountervalue[footnote]>9 \tikz[overlay]\fill[MagicMint] (1.1ex,.8ex) circle (1.6ex); \else \tikz[overlay]\fill[MagicMint] (.5ex,.8ex) circle (1.4ex); \fi \stopsetups %\definefontfeature[f:sups][sups=yes] \...

2

Your SVG doesn't work in my computer nor my PDF viewers once the SVG is embedded in the main file and I don't know who to blame. So I chose some examples from Wikimedia Commons. Due to strange rounding issues on the TeX side, I've made all calculations on the Lua side, what may be wrong or ugly, but useful. It will possibly crash when your picture is too ...

2

There may be a better way to do this in ConTeXt, but the spurious space was removed after placing \ignorespaces as the end of the macro definition: \def\thing{\dosingleargument\dothing} \def\dothing[#1]{thing#1\ignorespaces}

1

Not sure if ConTeXt has an interface for it, but with the \hbox primitive it's quite straightforward. If you need nice frames, wrap a \framed and voilà. Edit: Wolfgang suggested align=paragraph, so I'll include it too. \starttext %%% Low level \hbox to 5cm{Some text} \framed[offset=0cm]{\hbox to 5cm{Some more text}} %%% Cleaner, better \framed[width=5cm,...

1

The vim syntax file for Pov-Ray is called pov. So, you need to change syntax=povray to syntax=pov. Here is a complete example: \usemodule[vim] \definevimtyping [pov] [syntax=pov] \starttext \startpov sphere { <0,0.2,0>, 1 texture{pigment{color Yellow filter .66 } finish{phong .8} } scale<1.5,1.5,1.5> rotate<0,0,0> translate<0,0.5,...

1

This is more of an extended comment .... The solution posted by Marjin can be improved a little. First, you can use cache=yes to ensure that the successive files get a different number. I have also collected the common options in a buffer and then included that using the bufferbefore option: \usemodule[filter] \define[1]\readPNGfile{\externalfigure[#1]} \...

1

The basic povray syntax is povray +Ooutputfile.png inputfile.pov. If the input file does not have the .pov extension (but for example .tmp) then the command should be povray +Ooutputfile.png +Iinputfile.tmp, so +I must be prepended to the filename. Furthermore the space between the two options is removed by LaTeX, so you need to add an explicit \space there. ...

Only top voted, non community-wiki answers of a minimum length are eligible