[NTG-context] Problem with \inmargin on \item lines

2012-05-01 Thread Malte Stien
Hi everyone,

I am experiencing a problem with \inmargin{some text} in \itemized lists. I am 
using them a lot in my documents, and it is kind of annoying. It appears that 
if one uses the \inmargin macro just prior to the \item macro, the in-margin 
text is typeset against the previous line, not the line with the \item. Minimal 
example.

\starttext
\startitemize
\item This is just a normal completely innocent paragraph against which 
one will be able to judge the amount of indentation of the next paragraph.
\inmargin{Duck}\item This paragraph has a duck inmargin comment
\stopitemize
\stoptext

That seems fair enough and even makes sense on some level. If however, one 
reverses the two macros, like so:

\item\inmargin{Duck} This paragraph has a duck inmargin comment

the leading space just after the closing brace is actually printed. I take this 
to be a bug, or is this by design? The only way I can around this is to not use 
a space, like so:

\item\inmargin{Duck}This paragraph has a duck inmargin comment

But I don't find that to be a satisfying solution. After all I am using ConTeXt 
because I am a bit pedantic about text, even the source code in this case.

Regards,
Malte.

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bug with linenumbering

2012-05-01 Thread Aditya Mahajan

On Tue, 1 May 2012, Aditya Mahajan wrote:

Line numbering does not respect the parameters given with 
\startlinenumbering.


I think that the state at the end of the page flush is used, rather than 
the state at the beginning of line numbering. An example illustrating 
this:


\definelinenumbering
  [test]

\starttext
\startlinenumbering[test][color=blue,align=flushright,distance=0.5em]
  \input knuth
\stoplinenumbering

\setuplinenumbering
  [test][color=blue,align=flushright,distance=0.5em]

\startlinenumbering[test]
  \input knuth
\stoplinenumbering

\setuplinenumbering
  [test][color=red,align=flushright,distance=0.5em]
\stoptext

(Both snippets have red line numbers!)

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Bug with linenumbering

2012-05-01 Thread Aditya Mahajan

Hi,

Line numbering does not respect the parameters given with 
\startlinenumbering. For example:


\definelinenumbering
  [test]

\starttext
\startlinenumbering[test][color=blue,align=flushright,distance=0.5em]
  \input knuth
\stoplinenumbering

\page

\setuplinenumbering
  [test][color=blue,align=flushright,distance=0.5em]

\startlinenumbering[test]
  \input knuth
\stoplinenumbering

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Aditya Mahajan

On Tue, 1 May 2012, Wolfgang Schuster wrote:

Am 01.05.2012 um 19:35 schrieb Aditya Mahajan:


On Tue, 1 May 2012, Aditya Mahajan wrote:


On Tue, 1 May 2012, Xenia wrote:


Use \definetextbackground for the frame, framedtext’s are unbreakable boxes.

Thanks, that works, but now the linewrapping does not work correctly
(after the frame)


The bad linebreaks also happen if you remove the background. I'll look into it 
(in any case, hypenation should be disabled, so there is a bug somewhere).


Add:

\startsetups linebreak
 \language\minusone %disable hypenation
 \raggedright   %avoid overflow lines \stopsetups

\unprotect
\setupsyntaxhighlighting
 [setups={syntaxhighlighting@setup,linebreak}]
\protect

I'll add these to the main module and release a new version.


Why don’t you add a align key and use “align={flushleft,nothyphenated}” as 
default.


Good idea! I'll add align key to the filter module and set it to 
`flushleft,nothyphenated` in the vim moule.


Thanks,
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Aditya Mahajan

On Tue, 1 May 2012, Hans Hagen wrote:


On 1-5-2012 19:35, Aditya Mahajan wrote:


\startsetups linebreak
\language\minusone %disable hypenation
\raggedright %avoid overflow lines \stopsetups

\unprotect
\setupsyntaxhighlighting
[setups={syntaxhighlighting@setup,linebreak}]
\protect

I'll add these to the main module and release a new version.


best use a (public) namespace :

\startsetups vim:linebreak


That was just to indicate a quick fix at the user-level.

In the new version of the module, no manual correction in needed.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Wolfgang Schuster

Am 01.05.2012 um 19:35 schrieb Aditya Mahajan:

> On Tue, 1 May 2012, Aditya Mahajan wrote:
> 
>> On Tue, 1 May 2012, Xenia wrote:
>> 
 Use \definetextbackground for the frame, framedtext’s are unbreakable 
 boxes.
>>> Thanks, that works, but now the linewrapping does not work correctly
>>> (after the frame)
>> 
>> The bad linebreaks also happen if you remove the background. I'll look into 
>> it (in any case, hypenation should be disabled, so there is a bug somewhere).
> 
> Add:
> 
> \startsetups linebreak
>  \language\minusone %disable hypenation
>  \raggedright   %avoid overflow lines \stopsetups
> 
> \unprotect
> \setupsyntaxhighlighting
>  [setups={syntaxhighlighting@setup,linebreak}]
> \protect
> 
> I'll add these to the main module and release a new version.

Why don’t you add a align key and use “align={flushleft,nothyphenated}” as 
default.

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Hans Hagen

On 1-5-2012 19:35, Aditya Mahajan wrote:


\startsetups linebreak
\language\minusone %disable hypenation
\raggedright %avoid overflow lines \stopsetups

\unprotect
\setupsyntaxhighlighting
[setups={syntaxhighlighting@setup,linebreak}]
\protect

I'll add these to the main module and release a new version.


best use a (public) namespace :

\startsetups vim:linebreak

or so

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Aditya Mahajan

On Tue, 1 May 2012, Aditya Mahajan wrote:


On Tue, 1 May 2012, Xenia wrote:

Use \definetextbackground for the frame, framedtext’s are unbreakable 
boxes.


Thanks, that works, but now the linewrapping does not work correctly
(after the frame)


The bad linebreaks also happen if you remove the background. I'll look into 
it (in any case, hypenation should be disabled, so there is a bug somewhere).


Add:

\startsetups linebreak
  \language\minusone %disable hypenation
  \raggedright   %avoid overflow lines 
\stopsetups


\unprotect
\setupsyntaxhighlighting
  [setups={syntaxhighlighting@setup,linebreak}]
\protect

I'll add these to the main module and release a new version.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Metapost/Metafun Q: using variables and "building blocks"?

2012-05-01 Thread Peter Rolf
Hi Mari,

Am 30.04.2012 23:40, schrieb Mari Voipio:
> On Mon, Apr 23, 2012 at 20:34, Mari Voipio  wrote:
>> a) I need to be able to stack four of these on top of each other and
>> then four mirrored ones next to them
> 
> OK, I really was being stupid - I had already managed to do a "shift"
> inside a single 'block', somehow I just didn't see that I could do the
> same to the blocks:
> 
> 
> 
> \startMPpage
> 
> 
> picture ll ; % left-hand loop
> ll :=
>   image (
>   path p, q, r ;
> 
>   p := fullcircle scaled 4mm ;
>   q := p shifted (0mm,10mm) ;
>   r := center p .. (5mm,5mm) .. center q ;
> 
>   pair pr, qr ;
> 
>   pr := p intersectionpoint r ;
>   qr := q intersectionpoint r ;
> 
>   r := r cutbefore pr cutafter qr ;
>   r := r cutends 0.2mm ;
> 
>   draw r withpen pencircle scaled 0.2mm withcolor black ; % the 
> connecting curve
>   draw p withpen pencircle scaled 0.2mm withcolor black ; fill p
> withcolor black ; % upper shank
>   draw q withpen pencircle scaled 0.2mm withcolor black ; fill q
> withcolor black ; % lower shank
>   );
> 
> 
> draw ll ;
> draw ll shifted (0mm,20mm) ;
> draw ll shifted (0mm,40mm) ;
> draw ll shifted (0mm,60mm) ;
> 
> 
> \stopMPpage
> 
> 
>> Keeping in mind that I
>> will have to be able to draw a path/arrow on top, so I need to know
>> where they are.
> 
> My little brain got an overflow from all this abstract thinking, but
> then it dawned on me that I could use the millimeter grid recipe in
> the MetaFun manual (p. 214) to draw a grid behind my pattern drawing.
> Now placing the arrows should be a walk in the park...
> 
> 
> 
>> b) The circles p and q can be filled with the same colour or two
>> different colours, and each of the blocks in a pattern can have
>> different fill colour
>>
>> I assume the answer is "use variables", but how?
> 
> Gaah, I still cannot figure it out!
> A real example: one of my own patterns has white up and down on first
> loop, black up white down on second, white up and down on third and
> blue up and down on fourth. So I'd need
> 
> draw ll ; % and fill both circles with white
> draw ll shifted (0mm,20mm) ; % and fill lower circle with white,
> shifted/upper circle with black
> draw ll shifted (0mm,40mm) ; % fill both circles with white
> draw ll shifted (0mm,60mm) ; % fill both circles with blue
>
> 
> What is the shortest way of doing this? I don't mind writing
> definitions earlier in the file, but I'd rather keep this part as
> short as possible to be able to see the pattern at one glance. The
> main problem comes from the bicoloured loops as I can't just apply the
> same fill on both. And on the whole I'd prefer to make sure I apply
> the fill only locally per each half-loop and not all over the place...
>
donno what is the shortest way, but this looks at least handy...


\startMPinclusions

patternsize:= 20mm;

def lhl(expr ca,cb,sx,sy) =
 picture lefthandloop;
 lefthandloop := image (
 path p, q, r ;
 p := fullcircle scaled 4mm ;
 q := p shifted (0mm,10mm) ;
 r := center p .. (5mm,5mm) .. center q ;
 r := r cutbefore (p intersectionpoint r) cutafter (q
intersectionpoint r) ;

 draw r withpen pencircle scaled 0.2mm withcolor black ; % the
connecting curve
 fill p withcolor ca;
 draw p withpen pencircle scaled 0.2mm withcolor black ; % upper
shank
 fill q withcolor cb;
 draw q withpen pencircle scaled 0.2mm withcolor black ; % lower
shank
 );
 draw lefthandloop shifted (sx*patternsize,sy*patternsize);
enddef;

\stopMPinclusions


\startMPpage

lhl(white,white,0,0);
lhl(white,black,0,1);
lhl(white,white,0,2);
lhl(blue ,blue ,0,3);

\stopMPpage




Best wishes, Peter
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Aditya Mahajan

On Tue, 1 May 2012, Xenia wrote:


Use \definetextbackground for the frame, framedtext’s are unbreakable boxes.


Thanks, that works, but now the linewrapping does not work correctly
(after the frame)


The bad linebreaks also happen if you remove the background. I'll look 
into it (in any case, hypenation should be disabled, so there is a bug 
somewhere).



and the line numbering starts in line 2.
I am attaching all files.


Add location=paragraph to definebackground.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Xenia
On 01.05.2012 13:02, Wolfgang Schuster wrote:
> 
> Am 01.05.2012 um 12:24 schrieb Xenia:
> 
>> On 01.05.2012 08:50, Aditya Mahajan wrote:
>>> On Tue, 1 May 2012, Xenia wrote:
>>>
 Dear context folks,

 since Aditya recommended I am using the vim module for including
 MATLAB-files in my TeX-files. But for longer code snippets there is no
 pagebreak, so that the code is cuttet at the end of the page. What do I
 have to do?

 current version: 2012.04.19 23:18
>>>
>>> Can you post a minimal example? The attached simple test gives me page
>>> breaks.
>>
>> The reason seems so be the frame, that I prefer. I am attaching the files.
> 
> Use \definetextbackground for the frame, framedtext’s are unbreakable boxes.

Thanks, that works, but now the linewrapping does not work correctly
(after the frame) and the line numbering starts in line 2.
I am attaching all files.

Thank you.

Xenia
(linewrap.tex

ConTeXt  ver: 2012.04.19 23:18 MKIV  fmt: 2012.4.22  int: english/english

system  > cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > linewrap.top loaded

system  > options > start used options

used options> % runtime options files (command line driven)
used options> \unprotect
used options> % feedback and basic job control
used options> % handy for special styles
used options> \startluacode
used options> document = document or { }
used options> document.arguments={
used options> }
used options> document.files={
used options>  "linewrap",
used options> }
used options> \stopluacode
used options> % process info
used options> \setupsystem[inputfile=linewrap]
used options> \setupsystem[\c!n=2,\c!m=2]
used options> % modes
used options> % options (not that important)
used options> \startsetups *runtime:options
used options> \stopsetups
used options> % styles and modules
used options> \startsetups *runtime:modules
used options> \stopsetups
used options> % done
used options> \protect \endinput

system  > options > stop used options

(linewrap.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
resolvers   > modules > loaded: 'vim'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex
loading > Vim syntax highlighting (ver: 2012.04.18)
resolvers   > modules > loaded: 'filter'
(../../home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv
loading > Filter (ver: 2012.04.18)
resolvers   > modules > loaded: 'module-catcodes'
(../../home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex
loading > Module Catcodes (ver: 2011.12.17)
))
resolvers   > modules > loaded: 'syntax-highlight'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv
loading > Code syntax highlighting (ver: 2012.04.18)
resolvers   > modules > loaded: 'syntax-groups'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex
loading > Syntax highlighting groups (ver: 2012.01.03)
resolvers   > modules > already loaded: 'module-catcodes'
)
resolvers   > modules > already loaded: 'filter'
)){/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown: library 'loc'
{/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
(linewrap-temp-MATLAB-0.vimout
Overfull \hbox (5.81206pt too wide) in paragraph at lines 2--2
[][][]\3>modern-designsize-12pt-tt-tf-0--0 ran-dom tex-tran-dom tex-tran-dom tex-tran-dom tex-tran-dom tex-tran-dom tex-tran-

\hbox(7.332+0.072)x426.78743, direction TLT
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\latelua0"_plib_.enhance("p:2")"
.\3>modern-designsize-12pt-tt-tf-0--0 r
.\3>modern-designsize-12pt-tt-tf-0--0 a
.etc.

) (linewrap-temp-MATLAB-1.vimout
Overfull \hbox (24.35204pt too wide) in paragraph at lines 14--1
[][][][]\3>modern-designsize-12pt-tt-tf-0--0 fprintf('ran-dom text ran-dom text ran-dom text ran-dom text ran-dom text ran-

\hbox(10.42677+4.05482)x426.78743, direction TLT
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\latelua0"_plib_.enhance("p:4")"
.\hbox(10.42677+4.05482)x0.0, direction TLT
..\latelua0"_plib_.enhance("b:tbg:2")"
..\hbox(10.42677+4.05482)x0.0, direction TLT
..\glue 0.0 plus 1.0fil minus 1.0fil
.\3>modern-designsize-12pt-tt-tf-0--0 f
.etc.

)
metapost>

Re: [NTG-context] Should command `\setnumber' print number in text?

2012-05-01 Thread Wolfgang Schuster

Am 29.04.2012 um 14:23 schrieb Vladimir Lomov:

> Just to clarify question (before update wiki): is `\setnumber' command
> obsolete and `\setupnumber' should be used instead?

Both commands have a different purpose, with \setupnumber you can
change the conversion of the counter (romannumerals, characters etc.),
add a prefix (chapter, section … number) and let the counter be reset
with each new sectionblock or heading.

With \setnumber you can set the counter to a certain value but to fit
the command in the normal syntax there was a change a while back.

In MkII you set the number in braces

  \setnumber[…]{}

but for MkIV you use brackets to set the number

  \setnumber[…][]

> I'm also reading "dev-context", some time ago there were discussion about
> `\definestructure...', in message `<4f737d98.5040...@wxs.nl>' Hans shown
> several `\let' commands, from that I thought that `\setnumber' is ok to
> use with `[]{}'.

In MkIV the real names for the counter mechanism are

- \definecounter
- \setupcounter
- \incrementcounter
- \convertedcounter
- …

but for backward compatibility (the names are mentioned in manuals) the old
names from MkII are synonyms with the same syntax.

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] EuroTeX 2012 / 6th ConTeXt Meeting

2012-05-01 Thread Taco Hoekwater

Hi all,

Invitation
==

EuroTeX 2012, the sixth ConTeXt meeting, the NTG najaarsbijeenkomst,
and Dante's Herbsttagung will all be held together at the same time
and place in Breskens, the Netherlands, on

  October 8 - October 12

The organisation of the conference is a joint effort of the NTG, Dante
and the ConTeXt Group.


Call for papers
===

We all know already that TeX is one of the best tools in the world for
all forms of professional typesetting. But also, it is one of the very
few totally programmable tools in the world, and that makes it possible
to adapt TeX (as well as many accompanying tools) to a very, very large
extent.

Breskens is a small beach town that lives mostly off tourism, and
people on vacation tend to do slightly odd, relaxing things that they
do not normally have time for. Combining these two, the motto of this
conference is:

  Recreational uses of TeX

Of course, as usual on a TeX conference, we are not too picky about the
topic of talks and as recreational also embeds "creation", this theme
opens up to whatever you can make to fit in. Just be creative.

Please send submissions (and other proposals) to eurotex AT ntg.nl.


Registering
===

Registration is open starting today, and will be possible until
September 10.

See http://www.ntg.nl/eurotex2012/ for additional details.

The programme promises to be quite interesting, so we hope to see
you there!

On behalf of the organising committee,

Taco Hoekwater

PS Please forward this message to whoever seems appropriate to you.

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Wolfgang Schuster

Am 01.05.2012 um 12:24 schrieb Xenia:

> On 01.05.2012 08:50, Aditya Mahajan wrote:
>> On Tue, 1 May 2012, Xenia wrote:
>> 
>>> Dear context folks,
>>> 
>>> since Aditya recommended I am using the vim module for including
>>> MATLAB-files in my TeX-files. But for longer code snippets there is no
>>> pagebreak, so that the code is cuttet at the end of the page. What do I
>>> have to do?
>>> 
>>> current version: 2012.04.19 23:18
>> 
>> Can you post a minimal example? The attached simple test gives me page
>> breaks.
> 
> The reason seems so be the frame, that I prefer. I am attaching the files.

Use \definetextbackground for the frame, framedtext’s are unbreakable boxes.

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Xenia
On 01.05.2012 08:50, Aditya Mahajan wrote:
> On Tue, 1 May 2012, Xenia wrote:
> 
>> Dear context folks,
>>
>> since Aditya recommended I am using the vim module for including
>> MATLAB-files in my TeX-files. But for longer code snippets there is no
>> pagebreak, so that the code is cuttet at the end of the page. What do I
>> have to do?
>>
>> current version: 2012.04.19 23:18
> 
> Can you post a minimal example? The attached simple test gives me page
> breaks.

The reason seems so be the frame, that I prefer. I am attaching the files.

Thanks,

Xenia
(code.tex

ConTeXt  ver: 2012.04.19 23:18 MKIV  fmt: 2012.4.22  int: english/english

system  > cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > code.top loaded

system  > options > start used options

used options> % runtime options files (command line driven)
used options> \unprotect
used options> % feedback and basic job control
used options> % handy for special styles
used options> \startluacode
used options> document = document or { }
used options> document.arguments={
used options> }
used options> document.files={
used options>  "code",
used options> }
used options> \stopluacode
used options> % process info
used options> \setupsystem[inputfile=code]
used options> \setupsystem[\c!n=2,\c!m=2]
used options> % modes
used options> % options (not that important)
used options> \startsetups *runtime:options
used options> \stopsetups
used options> % styles and modules
used options> \startsetups *runtime:modules
used options> \stopsetups
used options> % done
used options> \protect \endinput

system  > options > stop used options

(code.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
resolvers   > modules > loaded: 'vim'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex
loading > Vim syntax highlighting (ver: 2012.04.18)
resolvers   > modules > loaded: 'filter'
(../../home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv
loading > Filter (ver: 2012.04.18)
resolvers   > modules > loaded: 'module-catcodes'
(../../home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex
loading > Module Catcodes (ver: 2011.12.17)
))
resolvers   > modules > loaded: 'syntax-highlight'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv
loading > Code syntax highlighting (ver: 2012.04.18)
resolvers   > modules > loaded: 'syntax-groups'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex
loading > Syntax highlighting groups (ver: 2012.01.03)
resolvers   > modules > already loaded: 'module-catcodes'
)
resolvers   > modules > already loaded: 'filter'
)){/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown: library 'loc'
{/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
(code-temp-MATLAB-0.vimout)
backend > xmp > using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
 )

system  > files > start used files

used files  >1: filename=code | filetype=tex | foundname=code.tex | usedmethod=filesystem
used files  >2: filename=cont-new.mkiv | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database
used files  >3: filename=code.top | foundname=code.top | usedmethod=direct
used files  >4: filename=lang-us.lua | filetype=lua | foundname=/home/context/tex/texmf-context/tex/context/patterns/lang-us.lua | usedmethod=database
used files  >5: filename=t-vim.tex | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=database
used files  >6: filename=../../home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | foundname=../../home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=direct
used files  >7: filename=t-filter.mkiv | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=database
used files  >8: filename=../../home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | foundname=../../home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=direct
used files  >9: filename=t-module-catcodes.tex | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/