[NTG-context] Making checkboxes

2010-09-06 Thread Cecil Westerhof
I am trying to define a (paper) feedback form. One of the things I need is checkboxes. A first stab for this (for example I need also a start text, but I do one step at a time) is, based on TeX by Topic, a Texnician's Reference page 106: \def\checkBox#1,{\space\space\space\space[\space\space]

Re: [NTG-context] Making checkboxes

2010-09-06 Thread Wolfgang Schuster
Am 06.09.2010 um 11:14 schrieb Cecil Westerhof: I am trying to define a (paper) feedback form. One of the things I need is checkboxes. A first stab for this (for example I need also a start text, but I do one step at a time) is, based on TeX by Topic, a Texnician's Reference page 106:

Re: [NTG-context] Making checkboxes

2010-09-06 Thread Cecil Westerhof
Op maandag 6 sep 2010 12:55 CEST schreef Wolfgang Schuster: \def\CheckBoxes[#1]% {\par \getcommalistsize[#1]% count the number of arguments \processcommalist[#1]\doCheckBoxes} \def\doCheckBoxes#1% {\hskip1em[ ] #1\par} I changed the code to: \def\CheckBoxes[#1]% {\par

Re: [NTG-context] impostion

2010-09-06 Thread Willi Egger
Hi Jan, Hm, looking at your arrangement, I do not quite understand what purpose it serves. Context does contain a list of arrangements which can be useful for most users. However, it we will have to convince Hans, that your scheme is useful also to others. Could you explain what the idea is

Re: [NTG-context] Making checkboxes

2010-09-06 Thread Wolfgang Schuster
Am 06.09.2010 um 13:50 schrieb Cecil Westerhof: Op maandag 6 sep 2010 12:55 CEST schreef Wolfgang Schuster: \def\CheckBoxes[#1]% {\par \getcommalistsize[#1]% count the number of arguments \processcommalist[#1]\doCheckBoxes} \def\doCheckBoxes#1% {\hskip1em[ ] #1\par} I changed the

Re: [NTG-context] Making checkboxes

2010-09-06 Thread Cecil Westerhof
Op maandag 6 sep 2010 14:58 CEST schreef Wolfgang Schuster: How about this: \def\CheckBoxes[#1]% {\startitemize[packed] \processcommalist[#1]\doCheckBoxes \stopitemize} \def\doCheckBoxes#1% {\sym{\mathematics{\Box}}#1\par} Does not work either. I have now (I added a SimpleCheckBoxes

[NTG-context] breaking a line

2010-09-06 Thread Hannes Baur
Dear all I should break a line to correct for an Overfull \hbox ... error. How can I achieve this, so that the line before the manual line break remains justified. Example: Original text Abb. 1. Männchen von Megarhyssa rixator, einer charakteristischen Schlupf- wespe von im Holz lebenden

Re: [NTG-context] Making checkboxes

2010-09-06 Thread Cecil Westerhof
I ran it with batchmode and silent, so I did not see errors, but it is not correct. I get: ! Use of \CheckBoxes doesn't match its definition. l.19 \CheckBoxes Y es, No, A little bit H gives: If you say, e.g., `\def\a1{...}', then you must always put `1' after

Re: [NTG-context] breaking a line

2010-09-06 Thread Arthur Reutenauer
The command should be the equivalent to LaTeX's \linebreak command. LaTeX's \linebreak is roughly equivalent to \penalty-1; that should do what you need. Arthur ___ If your question is of interest to

Re: [NTG-context] Making checkboxes

2010-09-06 Thread Wolfgang Schuster
Am 06.09.2010 um 17:55 schrieb Cecil Westerhof: I ran it with batchmode and silent, so I did not see errors, but it is not correct. I get: ! Use of \CheckBoxes doesn't match its definition. l.19 \CheckBoxes Y es, No, A little bit [...] So

Re: [NTG-context] Making checkboxes

2010-09-06 Thread Cecil Westerhof
Op maandag 6 sep 2010 18:37 CEST schreef Wolfgang Schuster: Use the command in the correct way: \CheckBoxes[Yes, No, A little bit] \def\CheckBoxes[#1]% {\startitemize[packed][margin=2.5em,width=2em] \processcommalist[#1]\doCheckBoxes \stopitemize} \def\doCheckBoxes#1%

Re: [NTG-context] Making checkboxes

2010-09-06 Thread Wolfgang Schuster
Am 06.09.2010 um 19:57 schrieb Cecil Westerhof: I start to understand it. Thanks. I changed it a little. I implemented 'title'. And with startitemize I got empty space between my 'title' and the checkboxes. The blank line comes from itemize, you can get rid of it with

Re: [NTG-context] breaking a line

2010-09-06 Thread Henning Hraban Ramm
Am 2010-09-06 um 18:24 schrieb Wolfgang Schuster: Original text Abb. 1. Männchen von Megarhyssa rixator, einer charakteristischen Schlupf- wespe von im Holz lebenden Pflanzenwespen. R. Burri. Während der The word Schlupf cannot be hyphenated any further and therefore Schlupfwespe should

[NTG-context] dorecurse in table

2010-09-06 Thread Cecil Westerhof
The following code does what I want: \blank \SetTableToWidth{\textwidth} \starttable[|lp(0.90\textwidth)|] Some text \SR \SR \HL \SR \HL \SR \HL \SR \HL \stoptable \blank I would think that the following code is equivalent: \blank

[NTG-context] Insert page number into multi-page PDF

2010-09-06 Thread Vnpenguin
Hi, I have a multi-page PDF without page number . Is there simple way to insert page number by using ConTeXt ? I'm thinking about: * Setup ConTeXt with zero or small margins, * Setup page number (possibility to start from some value, not necessary from 1) * Include each page of PDF as

Re: [NTG-context] dorecurse in table

2010-09-06 Thread Aditya Mahajan
On Mon, 6 Sep 2010, Cecil Westerhof wrote: The following code does what I want: \blank \SetTableToWidth{\textwidth} \starttable[|lp(0.90\textwidth)|] Some text \SR \SR \HL \SR \HL \SR \HL \SR \HL \stoptable \blank The correct syntax is \NC ... \NC \SR

Re: [NTG-context] Making checkboxes

2010-09-06 Thread Aditya Mahajan
On Mon, 6 Sep 2010, Wolfgang Schuster wrote: Am 06.09.2010 um 19:57 schrieb Cecil Westerhof: I start to understand it. Thanks. I changed it a little. I implemented 'title'. And with startitemize I got empty space between my 'title' and the checkboxes. The blank line comes from itemize,

Re: [NTG-context] vim syntax highlighting in MKIV

2010-09-06 Thread Aditya Mahajan
On Sat, 4 Sep 2010, Wolfgang Schuster wrote: context’s error message is misleading, the problem appears with the \startMATLAB command but the undefined control sequence is “\v!unknwon” as shown below the message, it’s only a typo in the module and the correct value is “\v!unknown”. Thanks. I

Re: [NTG-context] Insert page number into multi-page PDF

2010-09-06 Thread Hans Hagen
On 6-9-2010 11:11, Vnpenguin wrote: Hi, I have a multi-page PDF without page number . Is there simple way to insert page number by using ConTeXt ? I'm thinking about: * Setup ConTeXt with zero or small margins, * Setup page number (possibility to start from some value, not necessary from

Re: [NTG-context] Insert page number into multi-page PDF

2010-09-06 Thread Aditya Mahajan
On Mon, 6 Sep 2010, Vnpenguin wrote: Hi, I have a multi-page PDF without page number . Is there simple way to insert page number by using ConTeXt ? I'm thinking about: * Setup ConTeXt with zero or small margins, * Setup page number (possibility to start from some value, not necessary from 1)

Re: [NTG-context] dorecurse in table

2010-09-06 Thread Cecil Westerhof
Op maandag 6 sep 2010 23:18 CEST schreef Aditya Mahajan: The following code does what I want: \blank \SetTableToWidth{\textwidth} \starttable[|lp(0.90\textwidth)|] Some text \SR \SR \HL \SR \HL \SR \HL \SR \HL \stoptable \blank [CUT] Table and expansion are tricky. The error is

[NTG-context] Macros for paper feedback form

2010-09-06 Thread Cecil Westerhof
I am trying to make a set of macros for a paper feedback form. The first part is: \setuplayout [backspace=20mm,footer=5mm,header=5mm,height=middle,margin=1cm,topspace=0mm,width=middle] \setupindenting[yes,none] \enableregime[utf-8] \mainlanguage[nl] \setupbodyfont[roman,

Re: [NTG-context] Making checkboxes

2010-09-06 Thread Cecil Westerhof
Op maandag 6 sep 2010 20:29 CEST schreef Wolfgang Schuster: I wonder why need this command when can get the same result with normal context commands: \definesymbol[checkbox][{[~~~]}] \defineitemgroup[checkbox]

Re: [NTG-context] Making checkboxes

2010-09-06 Thread Aditya Mahajan
On 2010-09-06, at 7:07 PM, Cecil Westerhof cldwester...@gmail.com wrote: Op maandag 6 sep 2010 20:29 CEST schreef Wolfgang Schuster: I wonder why need this command when can get the same result with normal context commands: \definesymbol[checkbox][{[~~~]}]