Hi,

I don't know whether the audience of this mailing list can help me  with a
problem concerning the VIM module or I should personally ask Aditya for
help.

The problem is that when I define an environment based on VIM's mechanisms
and use this environment surrounded with ConTeXt's narrowing commands then
these commands are ignored. You can see this effect in the PDF obtained by
contexting the script given below.

Best Regards
Ryszard

\setupbodyfont[12pt]

\setuppagenumbering[state=stop]
\parindent=0pt\parskip=2ex

\usemodule[vim]
\definevimtyping[PY][syntax=python,
  before={\bgroup\switchtobodyfont[9pt]},
  after={\egroup}]

\starttext

Text before a narrowed block.

\startnarrower[left]
Text starting a narrowed block.

\startPY
#: The bonds file is absolutely vital for Fontplant to work. That's why we
#: define a function to verify its existence on disk.
\stopPY

Text finishing a narrowed block.
\stopnarrower

Text after a narrowed block.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to