Re: [NTG-context] Experience with DITA XML or XSL/FO

2014-05-23 Thread Hans Hagen
On 5/23/2014 1:30 AM, Mica Semrick wrote: Hi Hans, Thanks for your reply. I found my way to foxet, but never got it working. I've written several mapping files for XML with good results, but DITA is a bit of a different beast. that's mkii and will not work in mkiv DITA is geared towards

Re: [NTG-context] Testing TeX Live 2014: last call

2014-05-23 Thread Hans Hagen
On 5/23/2014 7:19 AM, Mojca Miklavec wrote: Dear Pablo, On Fri, May 23, 2014 at 7:00 AM, Pablo Rodriguez wrote: Only a question. When Luigi announced luajittex-0.78.2 (http://www.ntg.nl/pipermail/ntg-context/2014/076633.html), he commented the possibility of having only luajittex in the

Re: [NTG-context] \startbackground with footnote

2014-05-23 Thread Xan
Thanks Aditya. What's the difference between startbackground and starttextbackground? I can't see the options of textbackground. Thanks, ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] \startbackground with footnote

2014-05-23 Thread Xan
Sorry, I mean Wolfgang not 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 :

[NTG-context] Italic small capitals with Latin Modern font

2014-05-23 Thread Maggyero
How can I use Latin Modern italic small capitals? I have seen on a previous thread that small caps are separated in an other file for Latin Modern font and that one should load it to use them in italic, but there was no example given to achieve that. Minimal example: \starttext \it \sc \input

[NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Matthias Weber
Dear All, I would like to define a command that expands \vector{2,4} % or vector[2,4] if that’s easier to \startpmatrix \NC 2 \NR \NC 4 \NR \stoppmatrix and more generally \vector{2,4,1,7} to \startpmatrix \NC 2 \NR \NC 4 \NR \NC 1 \NR \NC 7 \NR \stoppmatrix Any hints how to achieve

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Otared Kavian
Hi, Some time ago Wolfgang S. gave a solution to a similar problem: maybe this can help you. begin \def\somemacro#1% {\def\dosomemacro##1{Execute ##1, }% \processcommalist[#1]\dosomemacro} \starttext \somemacro{A,B,C} \somemacro{E,F} \stoptext end Best regards: OK On 23 May

[NTG-context] Ctx goes into infinite loop?

2014-05-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have problem running the latest Ctx beta. Suppose having: -- C:\Lukas\Jobs\D3-Sk\SO_237-20.RDS\Drawings\t2.mkiv \startluacode local home = (os.getenv(HOME.ORG) or os.getenv(HOME) or ?):gsub(\\, /) context.setvalue(HOME, home) \stopluacode \input \HOME/Common/_Defs_.ctx

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Matthias Weber
Thanks Otared, that looks very promising. My attempt to wrap the arguments with \NC \NR fails, though. It looks like only the first argument is used, and I am clearly missing something. Also, I’d like to use the example you posted but without the last comma so that in the example below I get

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Aditya Mahajan
On Fri, 23 May 2014, Matthias Weber wrote: Dear All, I would like to define a command that expands \vector{2,4} % or vector[2,4] if that’s easier to \startpmatrix \NC 2 \NR \NC 4 \NR \stoppmatrix and more generally \vector{2,4,1,7} to \startpmatrix \NC 2 \NR \NC 4 \NR \NC 1 \NR \NC 7

[NTG-context] \setuplist ignores width=dim in combination with headnumber=no

2014-05-23 Thread Mojca Miklavec
Hi, I would like to remove header numbers for subsections, but keep subsections properly aligned in the table of contents. However, the width= parameter seems to be completely ignored in that case. Here's a nearly-minimal example: \setuplist[section][width=10mm,style=bold]

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Matthias Weber
Thanks Aditya,but out of the box the following\usemodule[simplematrix]\definesimplematrix[MATRIX][fence=bracket]\starttext\startformula\MATRIX{1,2,3}\MATRIX{1;2;3}\stopformula\stoptextgives me texshop_image.pdf Description: Adobe PDF document MatthiasOn May 23, 2014, at 6:56 AM, Aditya Mahajan

Re: [NTG-context] Ctx goes into infinite loop?

2014-05-23 Thread Hans Hagen
On 5/23/2014 12:40 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I have problem running the latest Ctx beta. Suppose having: -- C:\Lukas\Jobs\D3-Sk\SO_237-20.RDS\Drawings\t2.mkiv \startluacode local home = (os.getenv(HOME.ORG) or os.getenv(HOME) or ?):gsub(\\, /)

Re: [NTG-context] Ctx goes into infinite loop?

2014-05-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, \input \HOME/Common/_Defs_.ctx at least put { } around the input name -- \startluacode local home = (os.getenv(HOME.ORG) or os.getenv(HOME) or ?):gsub(\\, /) context.setvalue(HOME, home) \stopluacode \input{\HOME/Common/_Defs_.ctx} \starttext Test \stoptext -- similar

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Aditya Mahajan
On May 23, 2014, at 7:14 AM, Matthias Weber matwe...@indiana.edu wrote: Thanks Aditya, but out of the box the following \usemodule[simplematrix] \definesimplematrix[MATRIX][fence=bracket] \starttext \startformula \MATRIX{1,2,3} \MATRIX{1;2;3} \stopformula \stoptext

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread luigi scarso
On Fri, May 23, 2014 at 11:54 AM, Matthias Weber matwe...@indiana.eduwrote: Dear All, I would like to define a command that expands \vector{2,4} % or vector[2,4] if that’s easier to \startpmatrix \NC 2 \NR \NC 4 \NR \stoppmatrix and more generally \vector{2,4,1,7} to

Re: [NTG-context] Ctx goes into infinite loop?

2014-05-23 Thread Hans Hagen
On 5/23/2014 1:30 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, \input \HOME/Common/_Defs_.ctx at least put { } around the input name -- \startluacode local home = (os.getenv(HOME.ORG) or os.getenv(HOME) or ?):gsub(\\, /) context.setvalue(HOME, home) \stopluacode

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Matthias Weber
Indeed - I should have checked, I tried this with the TeXLive version. With the current beta it works. Thank! Matthias On May 23, 2014, at 7:37 AM, Aditya Mahajan adit...@umich.edu wrote: Strange. What version of context are you using? Aditya signature.asc Description: Message

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Matthias Weber
Thanks Luigi! Now I have a lot to play with… Matthias On May 23, 2014, at 7:44 AM, luigi scarso luigi.sca...@gmail.com wrote: On Fri, May 23, 2014 at 11:54 AM, Matthias Weber matwe...@indiana.edu wrote: Dear All, I would like to define a command that expands \vector{2,4} % or

Re: [NTG-context] \setuplist ignores width=dim in combination with headnumber=no

2014-05-23 Thread Wolfgang Schuster
Am 23.05.2014 um 13:08 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com: Hi, I would like to remove header numbers for subsections, but keep subsections properly aligned in the table of contents. However, the width= parameter seems to be completely ignored in that case. Here's a

Re: [NTG-context] Edit the arrows default Metapost

2014-05-23 Thread Fabrice
Hi, Thank you Hans. I saw on the net a macro created by Hans van der Meer (hvdm.mp). Do you have an example of its use? Fabrice ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Jeong Dal
{document.matthias.lua_columnvector(#1)}} \starttext \startformula \columnvector{{1,2,3}} %% watch the double { ! \stopformula \stoptext -- luigi -- next part -- An HTML attachment was scrubbed... URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20140523/569165d6

Re: [NTG-context] Ctx goes into infinite loop?

2014-05-23 Thread Peter Rolf
Am 23.05.2014 13:50, schrieb Hans Hagen: On 5/23/2014 1:30 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, \input \HOME/Common/_Defs_.ctx at least put { } around the input name -- \startluacode local home = (os.getenv(HOME.ORG) or os.getenv(HOME) or ?):gsub(\\, /)

Re: [NTG-context] [OT] Twenty Questions for DEK

2014-05-23 Thread Thomas A. Schmitz
On 21.05.2014 09:54, Hans Hagen wrote: In fact, awareness of pdf as option is (imo) mostly surfacing because html viewers opened their eyes. We can produce highly interactive documents but I still have to meet the first publishers who really wants them (given that they see it as option). It is

[NTG-context] Bold small caps

2014-05-23 Thread Mojca Miklavec
Hi, I always forget how to use bold or italic small caps (I keep mixing addff/setff and smcp/+smcp/smallcaps etc.). In ideal world it could be nice if simply {\sc Normal and \bf Bold Small Caps} or {\bf\sc Bold Small Caps} would work out-of-the-box. The first hit on the wiki was

Re: [NTG-context] Ctx goes into infinite loop?

2014-05-23 Thread Peter Rolf
Am 23.05.2014 16:18, schrieb Peter Rolf: Am 23.05.2014 13:50, schrieb Hans Hagen: On 5/23/2014 1:30 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, \input \HOME/Common/_Defs_.ctx at least put { } around the input name -- \startluacode local home = (os.getenv(HOME.ORG) or

Re: [NTG-context] Bold small caps

2014-05-23 Thread Wolfgang Schuster
Am 23.05.2014 um 17:55 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com: Hi, I always forget how to use bold or italic small caps (I keep mixing addff/setff and smcp/+smcp/smallcaps etc.). In ideal world it could be nice if simply {\sc Normal and \bf Bold Small Caps} or

Re: [NTG-context] \setuplist ignores width=dim in combination with headnumber=no

2014-05-23 Thread Mojca Miklavec
On Fri, May 23, 2014 at 2:39 PM, Wolfgang Schuster wrote: Am 23.05.2014 um 13:08 schrieb Mojca Miklavec wrote: I would like to remove header numbers for subsections, but keep subsections properly aligned in the table of contents. However, the width= parameter seems to be completely ignored in

Re: [NTG-context] Bold small caps

2014-05-23 Thread Mojca Miklavec
On Fri, May 23, 2014 at 6:11 PM, Wolfgang Schuster wrote: Am 23.05.2014 um 17:55 schrieb Mojca Miklavec: Would it make sense to fix this for the default LM setup as well? This need to be done by the font designers because Latin Modern uses a separate font for the small capitals and the

Re: [NTG-context] Bold small caps

2014-05-23 Thread Hans Hagen
On 5/23/2014 5:55 PM, Mojca Miklavec wrote: Hi, I always forget how to use bold or italic small caps (I keep mixing addff/setff and smcp/+smcp/smallcaps etc.). In ideal world it could be nice if simply {\sc Normal and \bf Bold Small Caps} or {\bf\sc Bold Small Caps} would work

Re: [NTG-context] Bold small caps

2014-05-23 Thread Hans Hagen
On 5/23/2014 6:46 PM, Mojca Miklavec wrote: On Fri, May 23, 2014 at 6:11 PM, Wolfgang Schuster wrote: Am 23.05.2014 um 17:55 schrieb Mojca Miklavec: Would it make sense to fix this for the default LM setup as well? This need to be done by the font designers because Latin Modern uses a

Re: [NTG-context] [OT] Twenty Questions for DEK

2014-05-23 Thread Hans Hagen
On 5/23/2014 4:27 PM, Thomas A. Schmitz wrote: On 21.05.2014 09:54, Hans Hagen wrote: In fact, awareness of pdf as option is (imo) mostly surfacing because html viewers opened their eyes. We can produce highly interactive documents but I still have to meet the first publishers who really wants

[NTG-context] I'm too studpid for Context...

2014-05-23 Thread Werner Hintze
I believe, it is possible to use in Conext the otf-fonts I have in my computer. I generated the database, the quert shows me, that the font is there, but I can not get it in my file. And when I read the chapter in the Manual or whatever I can find, I read a lot about Typescripts and unterstand

Re: [NTG-context] I'm too studpid for Context...

2014-05-23 Thread Wolfgang Schuster
Am 23.05.2014 um 19:14 schrieb Werner Hintze we.hin...@gmail.com: I believe, it is possible to use in Conext the otf-fonts I have in my computer. I generated the database, the quert shows me, that the font is there, but I can not get it in my file. And when I read the chapter in the

Re: [NTG-context] Experience with DITA XML or XSL/FO

2014-05-23 Thread Jan Tosovsky
On 2014-05-22 Mica Semrick wrote: I've been contemplating making a ConTeXt output or parser for DITA XML and was wondering if anyone has worked with DITA and ConTeXt before? If you have and could offer any advice and/code, that would be most helpful! What is your real use case? A typical

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Hans Hagen
{document.matthias.lua_columnvector(#1)}} \starttext \startformula \columnvector{{1,2,3}} %% watch the double { ! \stopformula \stoptext -- luigi -- next part -- An HTML attachment was scrubbed... URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20140523/569165d6

Re: [NTG-context] Experience with DITA XML or XSL/FO

2014-05-23 Thread Hans Hagen
On 5/23/2014 7:39 PM, Jan Tosovsky wrote: On 2014-05-22 Mica Semrick wrote: I've been contemplating making a ConTeXt output or parser for DITA XML and was wondering if anyone has worked with DITA and ConTeXt before? If you have and could offer any advice and/code, that would be most helpful!

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Jeong Dal
Dear Hans, Thank you for checking and enhancing. I also got an error at “uppertri” as you point out. The version that I have sent is one in my notebook which may be different from that in the desktop at school. When I made a class material, it worked fine. I have to check it and send it to you

[NTG-context] Problem with \framed align and orientation on landscape pages

2014-05-23 Thread Rik Kabel
For the /\framed/ command, any value for the key /align /other than a null value pushes the frame beyond the bottom margin on a landscape page for many values of /orientation/. The following MWE demonstrates this: \setuppapersize [A4,landscape] \starttext