Re: [NTG-context] Matlab formatting?

2011-08-25 Thread Alasdair McAndrew
Thank you so much! The vim module with Matlab formatting is just what I wanted. -Alasdair On Fri, Aug 26, 2011 at 4:02 PM, Mojca Miklavec < mojca.miklavec.li...@gmail.com> wrote: > On Fri, Aug 26, 2011 at 07:42, Alasdair McAndrew wrote: > > Hello, > > > > I'm writing up some student notes about

[NTG-context] Exported figures

2011-08-25 Thread Aditya Mahajan
Hi Hans, Two bugs in figure export: 1. If one uses images without extension, then the generated \jobname-images.css file does not contain any extensions; so no figures are shown in the output. One possible fix is to change \dotagfigure in back-ini.mkiv to \appendtoks % we can have different

Re: [NTG-context] Matlab formatting?

2011-08-25 Thread Mojca Miklavec
On Fri, Aug 26, 2011 at 07:42, Alasdair McAndrew wrote: > Hello, > > I'm writing up some student notes about Matlab, and I'm including examples > of Matlab functions.  I'd like all the functions to be typeset in typewriter > font (which means using a "typing" environment), but I'd also like some >

Re: [NTG-context] Imposition and repeating pages

2011-08-25 Thread Marcin Borkowski
Dnia 2011-08-25, o godz. 19:19:13 Aditya Mahajan napisał(a): > On Fri, 26 Aug 2011, Marcin Borkowski wrote: > > > > Thanks - but this is exactly what I do *not* want to do. My first > > idea was to do something like > > > > \def\onepageworthofmaterial{\page} > > \dorecurse{4}{\onepageworthofmate

Re: [NTG-context] aleternative=command not working with setuphead

2011-08-25 Thread Wolfgang Schuster
Am 26.08.2011 um 06:17 schrieb Aditya Mahajan: > Hi, > > \setuphead[section] > [alternative=command, > command=\TitleCommand] > > \def\TitleCommand#1#2{#2} > > \starttext > \section{Test} > \stoptext > > gives > > ! Argument of \@@ns::normal has an extra }. strc-sec.mkiv:

[NTG-context] aleternative=command not working with setuphead

2011-08-25 Thread Aditya Mahajan
Hi, \setuphead[section] [alternative=command, command=\TitleCommand] \def\TitleCommand#1#2{#2} \starttext \section{Test} \stoptext gives ! Argument of \@@ns::normal has an extra }. Aditya ___

Re: [NTG-context] Changing export tags

2011-08-25 Thread Aditya Mahajan
On Thu, 25 Aug 2011, Aditya Mahajan wrote: What is the right command for changing the name of the exported tags. Using \setuptaglabeltext[sectiontitle={h1}] does not work. Using \def\t!sectiontitle{h1} works, but surely, that can't be the way to go. The attached patch fixes this, but I am

[NTG-context] Changing export tags

2011-08-25 Thread Aditya Mahajan
Hi, What is the right command for changing the name of the exported tags. Using \setuptaglabeltext[sectiontitle={h1}] does not work. Using \def\t!sectiontitle{h1} works, but surely, that can't be the way to go. Aditya

Re: [NTG-context] Is there any change in processing of Projects, Product and Components?

2011-08-25 Thread Jaroslav Hajtmar
Hello Hans, Thanks for the advice. Enough swap (change) \startproject ... \stopproject to \startproduct ... \stopproduct in the source file and everything runs just fine! Thanx Jaroslav Hajtmar Dne 26.8.2011 1:18, Hans Hagen napsal(a): On 26-8-2011 00:46, Jaroslav Hajtmar wrote: Hello Con

Re: [NTG-context] Imposition and repeating pages

2011-08-25 Thread Hans Hagen
On 26-8-2011 00:40, Marcin Borkowski wrote: 2. I'd like to prepare a cheat sheet of size, say, A6, so I want *the same page* to be repeated 4 times on an A4 sheet. Is there a "canonical" way to do it? (I mean, other than copying-and-pasting, or equivalently, defining a macro and repeating it 4

Re: [NTG-context] Imposition and repeating pages

2011-08-25 Thread Aditya Mahajan
On Fri, 26 Aug 2011, Marcin Borkowski wrote: 2. I'd like to prepare a cheat sheet of size, say, A6, so I want *the same page* to be repeated 4 times on an A4 sheet. Is there a "canonical" way to do it? (I mean, other than copying-and-pasting, or equivalently, defining a macro and repeating it

Re: [NTG-context] Is there any change in processing of Projects, Product and Components?

2011-08-25 Thread Hans Hagen
On 26-8-2011 00:46, Jaroslav Hajtmar wrote: Hello ConTeXtsist ... Has anything changed in the functioning of ConTeXt MkIV processing of larger projects (containing more components)? Some time (one or two months) ago I was using standalone to compiled an extensive project and everything was OK, b

Re: [NTG-context] Is there any change in processing of Projects, Product and Components?

2011-08-25 Thread Jaroslav Hajtmar
Hello Sorry, apparently I was wrong. Before I compiled by ConTeXt ver: 2010.05.24 13:05 MKIV fmt: 2010.9.21 (LuaTeX, Version beta-0.60.2-2010071421) (Web2C 2010) (rev 3736) and not by minimals ie standalone version of context When I use old ConTeXt MkIV (part of TeX Live 2010) now in th

Re: [NTG-context] Imposition and repeating pages

2011-08-25 Thread Marcin Borkowski
Dnia 2011-08-25, o godz. 18:59:32 Aditya Mahajan napisał(a): > On Fri, 26 Aug 2011, Marcin Borkowski wrote: > > > Hi, > > > > imposition in ConTeXt is great, but... > > > > 1. When I last used it (MkII), I had to invoke texexec with the > > --arrange option or something like this. Does it work

Re: [NTG-context] Export and itemize

2011-08-25 Thread Aditya Mahajan
On Thu, 25 Aug 2011, Aditya Mahajan wrote: I sometimes misuse the command key of itemize like this: \definehighlight[important][style=italic, color=red] Sorry...this works. My test file had \definehighlight[important][style=em, color=red] which fails even for \important{A} For pdf outout,

Re: [NTG-context] Imposition and repeating pages

2011-08-25 Thread Aditya Mahajan
On Fri, 26 Aug 2011, Marcin Borkowski wrote: Hi, imposition in ConTeXt is great, but... 1. When I last used it (MkII), I had to invoke texexec with the --arrange option or something like this. Does it work in an easier way with MkIV? (I mean, I just do context filename and don't care about m

[NTG-context] Is there any change in processing of Projects, Product and Components?

2011-08-25 Thread Jaroslav Hajtmar
Hello ConTeXtsist ... Has anything changed in the functioning of ConTeXt MkIV processing of larger projects (containing more components)? Some time (one or two months) ago I was using standalone to compiled an extensive project and everything was OK, but now it looks as if the component does n

Re: [NTG-context] Export and itemize

2011-08-25 Thread Aditya Mahajan
On Thu, 25 Aug 2011, Aditya Mahajan wrote: Hi, I sometimes misuse the command key of itemize like this: \definehighlight[important][style=italic, color=red] \starttext \startitemize[command=\important] \item {Term}: definition \stopitemize \stoptext However when I try this with \setupbacken

[NTG-context] Imposition and repeating pages

2011-08-25 Thread Marcin Borkowski
Hi, imposition in ConTeXt is great, but... 1. When I last used it (MkII), I had to invoke texexec with the --arrange option or something like this. Does it work in an easier way with MkIV? (I mean, I just do context filename and don't care about multiple runs etc.) 2. I'd like to prepare a che

[NTG-context] Export and itemize

2011-08-25 Thread Aditya Mahajan
Hi, I sometimes misuse the command key of itemize like this: \definehighlight[important][style=italic, color=red] \starttext \startitemize[command=\important] \item {Term}: definition \stopitemize \stoptext However when I try this with \setupbackend[export=yes] I get the following error: !

Re: [NTG-context] Pretty printing ConTeXt sources

2011-08-25 Thread Wolfgang Schuster
Am 25.08.2011 um 19:15 schrieb Marcin Borkowski: > Thanks a lot! > ...but there's still a problem. The files pack-lyr.mkiv and > type-otf.mkiv compile just fine, but pack-rul.mkiv still issues an > error. Here's the log: pack-rul.mkiv -> line 1172 %D \macros %D {\doassigncheckedframeoffset}

Re: [NTG-context] Pretty printing ConTeXt sources

2011-08-25 Thread Marcin Borkowski
Dnia 2011-08-25, o godz. 18:49:34 Wolfgang Schuster napisał(a): > > Am 25.08.2011 um 15:03 schrieb Marcin Borkowski: > > >> Have you tried it with another file? I can try to look why it fails > >> but not now. > > > > Finally I found some time. I tried two other .mkiv files > > (pack-lyr.mkiv

Re: [NTG-context] Pretty printing ConTeXt sources

2011-08-25 Thread Wolfgang Schuster
Am 25.08.2011 um 15:03 schrieb Marcin Borkowski: >> Have you tried it with another file? I can try to look why it fails >> but not now. > > Finally I found some time. I tried two other .mkiv files > (pack-lyr.mkiv and type-otf.mkiv) and *the same* error occurred. Change in s-mod-00.mkiv \de

Re: [NTG-context] Pretty printing ConTeXt sources

2011-08-25 Thread Marcin Borkowski
Dnia 2011-08-21, o godz. 10:16:49 Wolfgang Schuster napisał(a): > > Am 20.08.2011 um 20:55 schrieb Marcin Borkowski: > > > Any ideas, please? > > > Have you tried it with another file? I can try to look why it fails > but not now. Finally I found some time. I tried two other .mkiv files (pa

Re: [NTG-context] \assignfullfilename

2011-08-25 Thread Hans Hagen
On 23-8-2011 22:26, Hans van der Meer wrote: I might be in error, but I thought I could use the ConTeXt macro \assignfullfilename used in \def\setexamfilename#1\to#2{% \assignfullfilename{\the\questiondir}{#1}\to#2} Did something happen to \assignfullfilename? Is it missing from MKIV?

Re: [NTG-context] environments broken?

2011-08-25 Thread Hans Hagen
On 23-8-2011 22:07, Hans van der Meer wrote: I am desperately (not much time left) looking for the solution of this error: ! Undefined control sequence. system> tex> error on line 11 in file crypto2011-08-25.tex: Undefined control sequence ... l.11 \startlocalenvironment

Re: [NTG-context] icc stream handling broken?

2011-08-25 Thread Hans Hagen
On 24-8-2011 15:10, Peter Rolf wrote: Am 23.08.2011 14:36, schrieb Peter Rolf: Hi Hans, can you check the attached example (the normal PDF/X-4p test file)? lpdf.flushstreamfileobject() breaks here when calling the local table 'dict()'. Is this normally handled by metatables? Obviously a stupi

Re: [NTG-context] \setupfields needs linefeed

2011-08-25 Thread Hans Hagen
On 24-8-2011 16:39, Peter Rolf wrote: Hi, I use '\setupfields[reset]%' in a tooltip macro and this single line breaks compilation. [..] Runaway argument? ]\stoptext ! File ended while scanning use of \scrn_field_setup_fields. \par <*> ./tooltip \stoptext ? ! Em

Re: [NTG-context] menu changes in mkiv?

2011-08-25 Thread Hans Hagen
On 24-8-2011 13:54, Hans van der Meer wrote: What has been changed regarding menus? Previous code stops working with the following error message: ! Missing { inserted. \par ...ect \everysetmenucommands \par \par \par \par