Re: [NTG-context] Making checkboxes
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] \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em] \starttext \startcheckbox \nop title \item Yes \item No \item A little bit \stopcheckbox \stoptext I tried this. There is one problem. I want: title [ ] Yes [ ] No [ ] A little bit but I get: title [ ] Yes [ ] No [ ] A little bit I already tried: \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em][itemize][indentnext=no] but that does not work. How can I make the 'title' not indented? -- Cecil Westerhof M cldwester...@gmail.com O ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] Making checkboxes
Op dinsdag 7 sep 2010 02:18 CEST schreef Aditya Mahajan: I am still new to ConTeXt, so I did not know this. But in the future I properly want to work with: [ ] a [ ] b [ ] c [ ] d [ ] e [ ] f [ ] g [ ] h [ ] i [ ] j [ ] k [ ] l instead of: [ ] a [ ] b [ ] c [ ] d [ ] e [ ] f [ ] g [ ] h [ ] i [ ] j [ ] k [ ] l or is that also possible Add \setupitemgroup[checkbox][column,three] Does not work. I have: \startcheckbox \nop Heeft u iets aan deze workshop gehad? \item Ja \item Nee \item Een beetje \stopcheckbox \setupitemgroup[checkbox][column,three] \startcheckbox \nop Een lange versie. \item A \item B \item C \item D \item E \item F \item G \item H \item I \item J \item K \item L \stopcheckbox The first part does mostly what it should. The only problem is that the 'title' is indented, what I do not want. But the second part is still one column, but with empty lines between the elements. -- Cecil Westerhof M cldwester...@gmail.com O ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] Making checkboxes
Op dinsdag 7 sep 2010 09:18 CEST schreef Cecil Westerhof: I wonder why need this command when can get the same result with normal context commands: \definesymbol[checkbox][{[~~~]}] \defineitemgroup[checkbox] \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em] \starttext \startcheckbox \nop title \item Yes \item No \item A little bit \stopcheckbox \stoptext I tried this. There is one problem. I want: title [ ] Yes [ ] No [ ] A little bit but I get: title [ ] Yes [ ] No [ ] A little bit I already tried: \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em][itemize][indentnext=no] but that does not work. How can I make the 'title' not indented? It is a little worse. There is also no space between the 'checkbox' and the description. I want: title [ ] Yes [ ] No [ ] A little bit but I get: title [ ]Yes [ ]No [ ]A little bit -- Cecil Westerhof M cldwester...@gmail.com O ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] Making checkboxes
On Tue, Sep 7, 2010 at 9:18 AM, Cecil Westerhof cldwester...@gmail.com wrote: I already tried: \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em][itemize][indentnext=no] but that does not work. How can I make the 'title' not indented? \definesymbol[checkbox][{[~~~]}] \defineitemgroup[checkbox] \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em] \starttext \startcheckbox \nop \hskip -1.5em title \item Yes \item No \item A little bit \stopcheckbox \stoptext -- luigi ___ 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] Making checkboxes
Op dinsdag 7 sep 2010 09:42 CEST schreef luigi scarso: I already tried: \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em][itemize][indentnext=no] but that does not work. How can I make the 'title' not indented? \definesymbol[checkbox][{[~~~]}] \defineitemgroup[checkbox] \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em] \starttext \startcheckbox \nop \hskip -1.5em title \item Yes \item No \item A little bit \stopcheckbox \stoptext The \hskip needs to be -4em, but then it does what it should. There is not a way to put the hskip in setupitemgroup? The only problem left is that there is not a space between the 'checkbox' and the description. -- Cecil Westerhof M cldwester...@gmail.com O ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] Making checkboxes
On Tue, Sep 7, 2010 at 10:05 AM, Cecil Westerhof cldwester...@gmail.com wrote: Op dinsdag 7 sep 2010 09:42 CEST schreef luigi scarso: I already tried: \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em][itemize][indentnext=no] but that does not work. How can I make the 'title' not indented? \definesymbol[checkbox][{[~~~]}] \defineitemgroup[checkbox] \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em] \starttext \startcheckbox \nop \hskip -1.5em title \item Yes \item No \item A little bit \stopcheckbox \stoptext The \hskip needs to be -4em, but then it does what it should. There is not a way to put the hskip in setupitemgroup? Maybe -- I don't know. In my opinion, title should be go out the startcheckbox env. The only problem left is that there is not a space between the 'checkbox' and the description. \showframe \definesymbol[checkbox][{[~~~]}] \defineitemgroup[checkbox] \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=2em,distance=.5em] \starttext \startcheckbox \nop \hskip -4.5em title \item Yes \item No \item A little bit \stopcheckbox \stoptext -- luigi ___ 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] Making checkboxes
Op dinsdag 7 sep 2010 10:13 CEST schreef luigi scarso: The \hskip needs to be -4em, but then it does what it should. There is not a way to put the hskip in setupitemgroup? Maybe -- I don't know. I found 'a way'. See later. In my opinion, title should be go out the startcheckbox env. Why? The only problem left is that there is not a space between the 'checkbox' and the description. \showframe \definesymbol[checkbox][{[~~~]}] \defineitemgroup[checkbox] \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=2em,distance=.5em] \starttext \startcheckbox \nop \hskip -4.5em title \item Yes \item No \item A little bit \stopcheckbox \stoptext I defined: \definesymbol[checkbox][{[~~~]}] \defineitemgroup[checkbox] \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=2em,distance=.5em] % CheckBoxIndent = -(margin + width) = -4.5em \def\CheckBoxTitle[#1]{ \nop \hskip -4.5em #1 } And I call it with: \startcheckbox \CheckBoxtitle[title] \item Yes \item No \item A little bit \stopcheckbox It can properly be done better. But it works. -- Cecil Westerhof M cldwester...@gmail.com O ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] Making checkboxes
On Tue, Sep 7, 2010 at 11:08 AM, Cecil Westerhof cldwester...@gmail.com wrote: In my opinion, title should be go out the startcheckbox env. Why? Because your title is not a item at all -- its position is completely different from a \item and it's a title. Eventually something like \startcheckbox[title={My title}]..\stopcheckbox But it's an opinion. % CheckBoxIndent = -(margin + width) = -4.5em \def\CheckBoxTitle[#1]{ \nop \hskip -4.5em #1 } Yes; a problem arise if you must modify the margin and/or width a little. You can use dimension eventually \showframe \definesymbol[checkbox][{[~~~]}] \defineitemgroup[checkbox] \newdimen\MyCheckBoxMargin \MyCheckBoxMargin=2em \newdimen\MyCheckBoxWidth \MyCheckBoxWidth=2.5em \def\CheckBoxTitle[#1]{ \nop \hskip \dimexpr -\MyCheckBoxWidth-\MyCheckBoxMargin\relax #1 } \setupitemgroup[checkbox][each][packed][margin=\MyCheckBoxMargin, symbol=checkbox,width=\MyCheckBoxWidth,distance=.5em] \starttext \startcheckbox \CheckBoxTitle[title] \item Yes \item No \item A little bit \stopcheckbox \stoptext -- luigi ___ 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] XeLaTeX logo
Dear Hans, may I request the addition of XeLaTeX logo to ConTeXt core? I'm not sure if there's an official version of it, but I would simply define it the same way as XeTeX logo, only replacing \kern-.15em \TeX} with \kern0em \LaTeX} at the end of definition. (The original XeLaTeX logo definition is extra-complicated, so I'm not sure how it's done. I suspect that they use -0.125 kerning between mirrored E and L, but that makes the two letters clash too much. It's in tex/latex/metalogo/metalogo.sty) Thanks a lot, Mojca ___ 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] XeLaTeX logo
The original XeLaTeX logo definition is extra-complicated, so I'm not sure how it's done. I suspect that they use -0.125 kerning between mirrored E and L, but that makes the two letters clash too much. It's in tex/latex/metalogo/metalogo.sty Yes, they do, according to \tracingmacros, but tex/xelatex/xltxtra/xltxtra.sty apparently only uses 0.1em. Arthur ___ 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] Wanted: ConTeXt: The poster
Hi, for use at a conference booth I'd like to have a poster (A3 up to A0) describing (and of course promoting) ConTeXt. You may assume that the audience already knows (La)TeX. :-) The first use would be at OpenRheinRuhr in November. Since most ConTeXt developers will be together next week, could you please spend some time creating one? A short (say 20 frames) PDF presentation on the same subject would also be nice to have. Best Martin ___ 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] Making checkboxes
Op dinsdag 7 sep 2010 11:24 CEST schreef luigi scarso: In my opinion, title should be go out the startcheckbox env. Why? Because your title is not a item at all -- its position is completely different from a \item and it's a title. Eventually something like \startcheckbox[title={My title}]..\stopcheckbox Make sense. At a certain point I should look at this. But lets try to walk before I start running. ;-) % CheckBoxIndent = -(margin + width) = -4.5em \def\CheckBoxTitle[#1]{ \nop \hskip -4.5em #1 } Yes; a problem arise if you must modify the margin and/or width a little. You can use dimension eventually \showframe \definesymbol[checkbox][{[~~~]}] \defineitemgroup[checkbox] \newdimen\MyCheckBoxMargin \MyCheckBoxMargin=2em \newdimen\MyCheckBoxWidth \MyCheckBoxWidth=2.5em \def\CheckBoxTitle[#1]{ \nop \hskip \dimexpr -\MyCheckBoxWidth-\MyCheckBoxMargin\relax #1 } I wanted to do something like that, but did not know how. I put distance also in a variable. I have now: \newdimen\MyCheckBoxMargin \MyCheckBoxMargin=2em \newdimen\MyCheckBoxWidth \MyCheckBoxWidth=2.5em \newdimen\MyCheckBoxDistance \MyCheckBoxDistance=.5em \definesymbol[checkbox][{[~~~]}] \defineitemgroup[checkbox] \setupitemgroup[checkbox][each][packed][margin=\MyCheckBoxMargin, symbol=checkbox,width=\MyCheckBoxWidth,distance=\MyCheckBoxDistance] \def\CheckBoxTitle[#1]{ \nop \hskip \dimexpr -\MyCheckBoxWidth-\MyCheckBoxMargin\relax #1 } It has been some work, but my feedback macros are beginning to become useful. Thanks everyone. By the way: what would be a good font to use. At the moment I use: \setupbodyfont[roman, 12pt] but layout and typography are not my strong points. So any tips are appreciated. A demo of what I have made can be found at: http://decebal.nl/ConTeXt/sources/feedback-form and the pdf is at: http://decebal.nl/ConTeXt/sources/feedback-form.pdf -- Cecil Westerhof M cldwester...@gmail.com O ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] XeLaTeX logo
On 7-9-2010 11:42, Mojca Miklavec wrote: Dear Hans, may I request the addition of XeLaTeX logo to ConTeXt core? I'm not sure if there's an official version of it, but I would simply define it the same way as XeTeX logo, only replacing \kern-.15em \TeX} with \kern0em \LaTeX} at the end of definition. (The original XeLaTeX logo definition is extra-complicated, so I'm not sure how it's done. I suspect that they use -0.125 kerning between mirrored E and L, but that makes the two letters clash too much. It's in tex/latex/metalogo/metalogo.sty) we can add it to s-abr-01.tex ... actually we can move more logo's there as it does not make sense to have a latex logo in the core and we should not bother too much about the fine points of such logo typesetting .. who cares anyway Hans - 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] XeLaTeX logo
Am 07.09.2010 um 13:07 schrieb Hans Hagen: we can add it to s-abr-01.tex ... actually we can move more logo's there as it does not make sense to have a latex logo in the core Don't remove the LaTeX logo from the core, it's useful when you want to mention LaTeX in a document. 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] Room for comment on the backside of form
I am still trying to make a useful environment for paper feedback forms. One thing I am trying to do now, is to but lines on the back for when someone needs more space to give the feedback. For this I made the following macro: \def\PageWithComment[#1]{ \page #1 \crlf\crlf \thinrules[n=35,inbetween=\vskip1.5ex] \page } There are several needed optimisations. For starters the number of lines is hard coded. Is there a way to calculate them? At the moment it is always called with: \PageWithComment[Room for extra comments] What is the best way to set a default? Because most of the time it will all the time be the same value. With this setup the pagination has to be done completely manually. Not very handy. Is there a way that when a new page is generated, the comment page is inserted before the new page? And also after the last? An example: http://decebal.nl/ConTeXt/sources/feedback-form and the pdf: http://decebal.nl/ConTeXt/sources/feedback-form.pdf -- Cecil Westerhof M cldwester...@gmail.com O ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] layer problem
Hi to all, I'm using this code to insert a page from pdf into a layer: \enableregime[utf8] \mainlanguage[it] \setupinteraction[state=start] \setupcolors[state=start] \setuppagenumbering[state=stop] %%% Colors %%% %\definepapersize [flyer][width=99mm, height=210mm] \setuppapersize[A4][A4] \setuplayout [width=fit, rightmargin=0cm, leftmargin=0cm, leftmargindistance=0pt, rightmargindistance=0pt, height=fit, header=0cm, footer=0cm, topspace=0cm, backspace=0cm, % cutspace=1cm, bottomspace=0cm, location=singlesided] \starttext \definelayer[layer0] \setlayer [layer0] [x=0,y=20cm] {\rotate[90]{\externalfigure[prog.pdf][page=3]}} \setupbackgrounds[page][page][background=layer0, state=repeat] \strut \stoptext Now, the only problem is that the y=20 parameters doesn't affect the output. But I have a 20cm printed into the pdf. It's exactly the structure I'm using for many other projects. Where it works fine. Any ideas? Thanks a lot -a- -- Andrea Valle -- CIRMA - DAMS Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.myspace.com/andreavalle -- http://www.flickr.com/photos/vanderaalle/ -- http://www.youtube.com/user/vanderaalle -- andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) ___ 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] Making checkboxes
Am 07.09.2010 um 09:32 schrieb Cecil Westerhof: It is a little worse. There is also no space between the 'checkbox' and the description. I want: title [ ] Yes [ ] No [ ] A little bit but I get: title [ ]Yes [ ]No [ ]A little bit \definesymbol[checkbox][{[~~~]}] \starttext \def\startcheckbox {\dosingleempty\dostartcheckbox} \def\dostartcheckbox[#1]% {\blank \doifsomething{#1}{\leftaligned{#1}}% \startitemize[packed,intro,joinedup,columns,three][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em]} \def\stopcheckbox {\stopitemize \blank} \startcheckbox \item A \item B \item C \item D \item E \item F \stopcheckbox \startcheckbox[title] \item A \item B \item C \item D \item E \item F \stopcheckbox \stoptext 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] Making checkboxes
On Tue, Sep 7, 2010 at 3:18 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 07.09.2010 um 09:32 schrieb Cecil Westerhof: It is a little worse. There is also no space between the 'checkbox' and the description. I want: title [ ] Yes [ ] No [ ] A little bit but I get: title [ ]Yes [ ]No [ ]A little bit \definesymbol[checkbox][{[~~~]}] \starttext \def\startcheckbox {\dosingleempty\dostartcheckbox} \def\dostartcheckbox[#1]% {\blank \doifsomething{#1}{\leftaligned{#1}}% \startitemize[packed,intro,joinedup,columns,three][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em]} \def\stopcheckbox {\stopitemize \blank} Ah, I forget to say about the coffee... -- luigi ___ 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] layer problem
Am 07.09.2010 um 14:59 schrieb Andrea Valle: Now, the only problem is that the y=20 parameters doesn't affect the output. But I have a 20cm printed into the pdf. It's exactly the structure I'm using for many other projects. Where it works fine. Any ideas? “x” expects a dimension, when you write “x=0pt” the 20cm do no longer appear in the output. 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] Room for comment on the backside of form
Am 07.09.2010 um 14:26 schrieb Cecil Westerhof: I am still trying to make a useful environment for paper feedback forms. One thing I am trying to do now, is to but lines on the back for when someone needs more space to give the feedback. For this I made the following macro: \def\PageWithComment[#1]{ \page #1 \crlf\crlf \thinrules[n=35,inbetween=\vskip1.5ex] \page } There are several needed optimisations. For starters the number of lines is hard coded. Is there a way to calculate them? \def\PageWithComment[#1]% {\page #1 \blank[2*line] \getnoflines{\dimexpr\pagegoal-\pagetotal-3\lineheight\relax} \thinrules[n=\noflines] \page} %\showframe \starttext \PageWithComment[Room for extra comments] \PageWithComment[\input knuth ] \stoptext 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] ctxtools
I did use ctxtools for purging files. But now the command is not found any longer. I installed new minimals, but that didn't help. context version: MTXrun | current version: 2010.09.05 13:23 platform: Mac OS X 10.6.4 Thanks, Jörg ___ 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] ctxtools
Am 07.09.2010 um 16:17 schrieb Jörg Hagmann: I did use ctxtools for purging files. But now the command is not found any longer. I installed new minimals, but that didn't help. context --purge(all) 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] Room for comment on the backside of form
Op dinsdag 7 sep 2010 15:35 CEST schreef Wolfgang Schuster: I am still trying to make a useful environment for paper feedback forms. One thing I am trying to do now, is to but lines on the back for when someone needs more space to give the feedback. For this I made the following macro: \def\PageWithComment[#1]{ \page #1 \crlf\crlf \thinrules[n=35,inbetween=\vskip1.5ex] \page } There are several needed optimisations. For starters the number of lines is hard coded. Is there a way to calculate them? \def\PageWithComment[#1]% {\page #1 \blank[2*line] \getnoflines{\dimexpr\pagegoal-\pagetotal-3\lineheight\relax} \thinrules[n=\noflines] \page} I tried something like that, but that generated 32 pages. Had properly to do with the inbetween. I changed it to: \def\PageWithComment[#1]{ \page #1 \blank {\switchtobodyfont[2.3em] \getnoflines{\dimexpr\pagegoal-\pagetotal-3\lineheight\relax} \thinrules[n=\noflines] } \page} For the inbetween by thinrules I use 1.4em, but to get the same space I need to use here 2.3em. Do not know why. -- Cecil Westerhof M cldwester...@gmail.com O ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] Room for comment on the backside of form
Am 07.09.2010 um 17:03 schrieb Cecil Westerhof: Op dinsdag 7 sep 2010 15:35 CEST schreef Wolfgang Schuster: I am still trying to make a useful environment for paper feedback forms. One thing I am trying to do now, is to but lines on the back for when someone needs more space to give the feedback. For this I made the following macro: \def\PageWithComment[#1]{ \page #1 \crlf\crlf \thinrules[n=35,inbetween=\vskip1.5ex] \page } There are several needed optimisations. For starters the number of lines is hard coded. Is there a way to calculate them? \def\PageWithComment[#1]% {\page #1 \blank[2*line] \getnoflines{\dimexpr\pagegoal-\pagetotal-3\lineheight\relax} \thinrules[n=\noflines] \page} I tried something like that, but that generated 32 pages. Had properly to do with the inbetween. I changed it to: \def\PageWithComment[#1]{ \page #1 \blank {\switchtobodyfont[2.3em] \getnoflines{\dimexpr\pagegoal-\pagetotal-3\lineheight\relax} \thinrules[n=\noflines] } \page} For the inbetween by thinrules I use 1.4em, but to get the same space I need to use here 2.3em. Do not know why. The number of lines are calculated with the normal line distance and your extra space is not taken into account by the calculation. Instead of changing the fontsize you can change the interlinespace but for vertical distances you should use ex-values and not em-values. Here is a variant which use the inbetween key and use the value for the calculation of the lines: \def\PageWithComment[#1]% {\page #1 \blank[2*line] \scratchcounter\dimexpr(\pagegoal-\pagetotal-2\lineheight)/(\dimexpr\lineheight+2.2ex\relax)\relax \thinrules[n=\number\scratchcounter,inbetween={\blank[2.2ex]}] \page} 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] tikz fading graphic
Hi, this is the first time I use tikz and maybe something is missing in my example. I tried the second graphic from page 206 of the tikz manual. Sadly I only get a opaque blue square. Example and log file attached. I get the same error for both marks: [..] (./tikz206.tuo) systems : begin file tikz206 at line 6 Package pgfkeys: Error! I do not know the key '/tikz/innercolor' and I am going to ignore it. Perhaps you misspelled it. Package pgfkeys: Error! I do not know the key '/tikz/outercolor' and I am going to ignore it. Perhaps you misspelled it. Package tikz: Error! You need to say \usetikzlibrary{patterns}. Package pgfkeys: Error! I do not know the key '/tikz/patterncolor' and I am going to ignore it. Perhaps you misspelled it. Package pgfkeys: Error! I do not know the key '/tikz/pathfading' and I am going to ignore it. Perhaps you misspelled it. fonts : resetting map file list [..] Peter \setupcolors[state=start] \usemodule[tikz] \usetikzlibrary{fadings} \starttext \tikzfading[name=fadeout, innercolor=transparent!0, outercolor=transparent!100] %Now we use the fading in another picture: \starttikzpicture %Background \fill[black!20](-1.2,-1.2)rectangle(1.2,1.2); \path[pattern=checkerboard,patterncolor=black!30] (-1.2,-1.2)rectangle(1.2,1.2); \fill[blue,pathfading=fadeout](-1,-1)rectangle(1,1); \stoptikzpicture \stoptext backends entry finishreference in codeinjections is not set (tikz206.tex jobcontrol resuming randomizer with 0.6335642567217 ConTeXt ver: 2010.09.03 11:05 MKIV fmt: 2010.9.7 int: english/english system : cont-new loaded (r:/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (r:/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (r:/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys loaded (r:/tex/texmf-context/tex/context/user/cont-sys.tex) system : tikz206.top loaded % % begin of optionfile % % % runtime options files (command line driven) % \unprotect % % feedback and basic job control % % handy for special styles % \startluacode % document = document or { } % document.arguments={ % } % document.files={ %tikz206.tex, % } % \stopluacode % % process info % \setupsystem[inputfile=tikz206.tex] % \setupsystem[\c!n=1,\c!m=1] % % modes % % options (not that important) % \startsetups *runtime:options % \setupoutput[pdftex] % \stopsetups % % styles and modules % \startsetups *runtime:modules % \stopsetups % % done % \protect \endinput % % end of optionfile % (tikz206.top) fonts : preloading latin modern fonts (r:/tex/texmf-context/tex/context/base/type-def.mkiv) (r:/tex/texmf-context/tex/context/base/type-lua.mkiv) (r:/tex/texmf-context/tex/context/base/type-siz.mkiv) (r:/tex/texmf-context/tex/context/base/type-otf.mkiv){r:/tex/texmf/fonts/map/dvips/lm/lm-math.map}{r:/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{r:/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active system : module tikz loaded (r:/tex/texmf-context/tex/context/pgf/frontendlayer/t-tikz.tex (r:/tex/texmf-context/tex/context/pgf/basiclayer/t-pgf.tex (r:/tex/texmf-context/tex/context/pgf/basiclayer/t-pgfcor.tex (r:/tex/texmf-context/tex/context/pgf/systemlayer/t-pgfsys.tex (r:/tex/texmf-context/tex/context/pgf/utilities/t-pgfrcs.tex (r:/tex/texmf-context/tex/context/pgf/utilities/t-pgfmod.tex) (r:/tex/texmf-context/tex/generic/pgf/utilities/pgfutil-common.tex) (r:/tex/texmf-context/tex/generic/pgf/utilities/pgfutil-context.def) (r:/tex/texmf-context/tex/generic/pgf/utilities/pgfrcs.code.tex)) (r:/tex/texmf-context/tex/generic/pgf/systemlayer/pgfsys.code.tex (r:/tex/texmf-context/tex/generic/pgf/utilities/pgfkeys.code.tex) (r:/tex/texmf-context/tex/generic/pgf/systemlayer/pgf.cfg) (r:/tex/texmf-context/tex/generic/pgf/systemlayer/pgfsys-pdftex.def (r:/tex/texmf-context/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def)) (tikz206.pgf)) (r:/tex/texmf-context/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex) (r:/tex/texmf-context/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex)) (r:/tex/texmf-context/tex/generic/pgf/basiclayer/pgfcore.code.tex (r:/tex/texmf-context/tex/generic/pgf/math/pgfmath.code.tex (r:/tex/texmf-context/tex/generic/pgf/math/pgfmathcalc.code.tex (r:/tex/texmf-context/tex/generic/pgf/math/pgfmathutil.code.tex) (r:/tex/texmf-context/tex/generic/pgf/math/pgfmathparser.code.tex) (r:/tex/texmf-context/tex/generic/pgf/math/pgfmathoperations.code.tex (r:/tex/texmf-context/tex/generic/pgf/math/pgfmathtrig.code.tex) (r:/tex/texmf-context/tex/generic/pgf/math/pgfmathrnd.code.tex))
Re: [NTG-context] Insert page number into multi-page PDF
On Tue, Sep 7, 2010 at 00:00, Hans Hagen pra...@wxs.nl wrote: \setuplayout[page] \copypages[yourfile.pdf][n=10] you can put stuff on top using the background mechanisms Could you give me an example about background mechanism ? Thanks ___ 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] Insert page number into multi-page PDF
Am 07.09.2010 um 18:40 schrieb Vnpenguin: On Tue, Sep 7, 2010 at 00:00, Hans Hagen pra...@wxs.nl wrote: \setuplayout[page] \copypages[yourfile.pdf][n=10] you can put stuff on top using the background mechanisms Could you give me an example about background mechanism ? \defineoverlay [pagenumber] [\vbox to \paperheight {\blank[force,3cm] \midaligned{\pagenumber\ – \lastpagenumber} \vfill}] \setupbackgrounds[page][background={foreground,pagenumber}] \starttext ... \stoptext 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] Insert page number into multi-page PDF
On Tue, Sep 7, 2010 at 18:52, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 07.09.2010 um 18:40 schrieb Vnpenguin: On Tue, Sep 7, 2010 at 00:00, Hans Hagen pra...@wxs.nl wrote: \setuplayout[page] \copypages[yourfile.pdf][n=10] you can put stuff on top using the background mechanisms Could you give me an example about background mechanism ? \defineoverlay [pagenumber] [\vbox to \paperheight {\blank[force,3cm] \midaligned{\pagenumber\ – \lastpagenumber} \vfill}] \setupbackgrounds[page][background={foreground,pagenumber}] \starttext ... \stoptext Wolfgang Excellent, it works well. Thank you so much, Regards, ___ 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] tikz fading graphic
Peter Rolf wrote: Hi, this is the first time I use tikz and maybe something is missing in my example. I tried the second graphic from page 206 of the tikz manual. Sadly I only get a opaque blue square. Example and log file attached. Package tikz: Error! You need to say \usetikzlibrary{patterns}. Read this error message. ___ 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] Wanted: ConTeXt: The poster
2010/9/7 Martin Schröder mar...@oneiros.de: Hi, for use at a conference booth I'd like to have a poster (A3 up to A0) describing (and of course promoting) ConTeXt. You may assume that the audience already knows (La)TeX. :-) The first use would be at OpenRheinRuhr in November. Since most ConTeXt developers will be together next week, could you please spend some time creating one? A short (say 20 frames) PDF presentation on the same subject would also be nice to have. Second both of that. That would be great to have. Regards, -- Vedran Miletić ___ 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] Context to RTF :-/
Hi, is there any practical solution to convert a context-document into a rtf-document? (Unfortunately I must send my documents to word users :-( ) I do not need a perfect rtf file. It would be sufficient if the footnotes and headings would be tranformed. (Layout / Tabells etc are not so important) I've read the FAQ and I know there is no tool like latex2rtf. In 2005 (five years ago) there was a approach to the problem on the mailing list, which suggest to write the document in xml and the produce on pdf and one html file. Is this a practical solution or is it, if you have absolute no idea about xml like me, a to time consuming approach? I've also tried some free pdftortf tools, but so far the results were disillusioning :-(. I am open for any suggestions ;-). Greetings FloMo ___ 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] Context to RTF :-/
This tool seems to be doing that job, though I have never used it. http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn-commands.html --- On Tue, 9/7/10, Florian Baudach florian.baud...@googlemail.com wrote: From: Florian Baudach florian.baud...@googlemail.com Subject: [NTG-context] Context to RTF :-/ To: ntg-context@ntg.nl Date: Tuesday, September 7, 2010, 8:40 PM Hi, is there any practical solution to convert a context-document into a rtf-document? (Unfortunately I must send my documents to word users :-( ) I do not need a perfect rtf file. It would be sufficient if the footnotes and headings would be tranformed. (Layout / Tabells etc are not so important) I've read the FAQ and I know there is no tool like latex2rtf. In 2005 (five years ago) there was a approach to the problem on the mailing list, which suggest to write the document in xml and the produce on pdf and one html file. Is this a practical solution or is it, if you have absolute no idea about xml like me, a to time consuming approach? I've also tried some free pdftortf tools, but so far the results were disillusioning :-(. I am open for any suggestions ;-). Greetings FloMo -Inline Attachment Follows- ___ 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 ___ ___ 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] Context to RTF :-/
On Tue, Sep 07, 2010 at 09:40:23PM +0200, Florian Baudach wrote: Hi, is there any practical solution to convert a context-document into a rtf-document? (Unfortunately I must send my documents to word users :-( ) I do not need a perfect rtf file. It would be sufficient if the footnotes and headings would be tranformed. (Layout / Tabells etc are not so important) I've read the FAQ and I know there is no tool like latex2rtf. In 2005 (five years ago) there was a approach to the problem on the mailing list, which suggest to write the document in xml and the produce on pdf and one html file. Is this a practical solution or is it, if you have absolute no idea about xml like me, a to time consuming approach? I've also tried some free pdftortf tools, but so far the results were disillusioning :-(. I am open for any suggestions ;-). You can try other starting formats like markdown instead of xml, but AFAIK there is no reliable TeX to anything conversion tools, all are hacks with different degrees of complexity. I'm not sure what is wrong with just sending them PDFs, if the text is to be edited, than how RTF will work bidirectionally? -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] Context to RTF :-/
Am 2010-09-07 um 21:40 schrieb Florian Baudach: Hi, is there any practical solution to convert a context-document into a rtf-document? (Unfortunately I must send my documents to word users :-( ) I do not need a perfect rtf file. It would be sufficient if the footnotes and headings would be tranformed. (Layout / Tabells etc are not so important) Acrobat (Pro) can save PDF contents as RTF (not good, but perhaps enough), maybe other PDF tools can, too? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Wanted: ConTeXt: The poster
Am 2010-09-07 um 12:09 schrieb Martin Schröder: Hi, for use at a conference booth I'd like to have a poster (A3 up to A0) describing (and of course promoting) ConTeXt. You may assume that the audience already knows (La)TeX. :-) The first use would be at OpenRheinRuhr in November. Since most ConTeXt developers will be together next week, could you please spend some time creating one? I'm at least planning to compile a cheat-sheet over the meeting. And I should renew my German tutorial... (Many ideas, not enough time...) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] arrangement 3x1 doublesided
Am 08.09.2010 um 02:08 schrieb Andrea Valle: Hi gurus, can anyone please suggest a way to arrange this pdf: http://www.fonurgia.unito.it/andrea/stuff/prog.pdf so that at the end I have two pages A4 landscape with pages 561 and 234? I'd like to print it on A4 double sided and fold it in 3 parts. Tried by myself but no way. http://wiki.contextgarden.net/User:Wolfgang_Schuster#Brochures 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 ___