On Fri, 28 Jul 2017, Gerion Entrup wrote:

3. Text size in t-vim
I've defined a smaller text size in t-vim, but this seems to affect \inline... as well. Is there a way to circumvent this?

Minimal example:
```
\setupinteraction[state=start]

\usemodule[t-vim]
\definevimtyping[python][syntax=python,
                        style={\switchtobodyfont[8pt,tt]},]
\starttext
\startpython
        for line in foo:
                print(line)
\stoppython
This is keyword \inlinepython{in} Python.
\stoptext
```

The simplest solution is:

\definetyping[python][syntax=python]

\definetyping[smallpython][python][style={\switchtobodyfont[8pt]]

And use \inlinepython{....}

and

\startsmallpython
....
\stopsmallpython


Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to