[NTG-context] how to print a simple booklet

2013-06-13 Thread Jan Pohanka
Hi, this is probably a question with very simple solution, but I cannot figure it out or find a solution in wiki or manual. I just want to print simple booklet and after and after picking papers from printer do a single fold. With the following code the TITLE PAGE is correctly placed to the

Re: [NTG-context] how to print a simple booklet

2013-06-13 Thread Jan Pohanka
Maybe I have not described my doubts clearly enough. I see that on all arranged pages the backspace and page numbers (specified as footer,left) are in the middle of A4 page, I would expect them on outer edges... Dne 13.6.2013 09:38, Jan Pohanka napsal(a): Hi, this is probably a question

Re: [NTG-context] how to print a simple booklet

2013-06-13 Thread Jan Pohanka
Dne 13.6.2013 09:51, Thomas A. Schmitz napsal(a): On 06/13/2013 09:46 AM, Jan Pohanka wrote: Maybe I have not described my doubts clearly enough. I see that on all arranged pages the backspace and page numbers (specified as footer,left) are in the middle of A4 page, I would expect them on outer

Re: [NTG-context] how to print a simple booklet

2013-06-13 Thread Jan Pohanka
Dne 13.6.2013 10:03, Peter Münster napsal(a): On Thu, Jun 13 2013, Jan Pohanka wrote: Maybe it is just my misunderstanding but I think that page number should be placed on the left side of page 2, on the right side of page 3, etc. Did you try: \setuppagenumbering[location={footer,right

Re: [NTG-context] how to print a simple booklet

2013-06-13 Thread Jan Pohanka
Dne 13.6.2013 10:25, Jan Pohanka napsal(a): Dne 13.6.2013 10:03, Peter Münster napsal(a): On Thu, Jun 13 2013, Jan Pohanka wrote: Maybe it is just my misunderstanding but I think that page number should be placed on the left side of page 2, on the right side of page 3, etc. Did you try

Re: [NTG-context] \convertnumber with macro parameter

2013-06-12 Thread Jan Pohanka
Has to be \defineheadalternative: \defineheadalternative[mysection][renderingsetup=mysection] \startsetups[mysection] \vbox\bgroup \headsetupspacing \strut\headnumbercontent\par \begstrut\headtextcontent\endstrut \egroup \stopsetups \setuplabeltext[en][section={, Section}]

[NTG-context] back cover of booklet

2013-06-12 Thread Jan Pohanka
Hi, I have found following example to set back cover of a booklet using imposition on the wiki \unprotect \startvariablesall beforequadruple: beforequadruple \stopvariables \installpagebreakhandler \v!beforequadruple {\ifdoublesided \!!counta\realpageno

Re: [NTG-context] \vtop with middle alignment in a screenplay

2013-06-11 Thread Jan Pohanka
Dne 11.6.2013 11:53, Wolfgang Schuster napsal(a): Am 11.06.2013 um 11:44 schrieb Jan Pohanka xhpoha...@gmail.com: Hi all, I'm trying to make a simple template for screenplays for our amateur theatre. I have following code and I'd like to have the single lines of the song centered in a page

Re: [NTG-context] \vtop with middle alignment in a screenplay

2013-06-11 Thread Jan Pohanka
Dne 11.6.2013 12:15, Wolfgang Schuster napsal(a): You can place the name in the margin. \setuplayout[backspace=4cm] \definemargindata[Person][inmargin][style=normal] \definelines[lyrics][align=middle] %\showframe \starttext \Person{Person 1:} \startlyrics song asdf line 1 song line 2 song

[NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Jan Pohanka
Hi, just another newbie question \setuphead[section] [command=\MyCommand] \define[2]\MyCommand% {\convertnumber{I}{#1} --- #2} \convertnumber does not work on command parameter. What am I doing wrong? I know that I can use /conversion/ key in setuphead, but I need slightly more

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Jan Pohanka
\convertnumber does not work on command parameter. What am I doing wrong? I know that I can use /conversion/ key in setuphead, but I need slightly more complicated command. Use \setuphead[section][conversion=I], you can't use \convertnumber because the first argument is the formatted (styles

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Jan Pohanka
\definesectionalternative[mysection][renderingsetup=mysection] \startsetups[mysection] \vbox\bgroup \headsetupspacing \strut\headnumbercontent\par \begstrut\headtextcontent\endstrut \egroup \stopsetups \setuplabeltext[en][section={}{Section]

[NTG-context] Argument of \myheading has an extra }

2012-08-02 Thread Jan Pohanka
Hello, this worked in recent versions, I think... \def\myheading#1#2{% #1 #2} \setuphead[section,subject] [command={\myheading}] \starttext \section{Hello} \stoptext but now I'm getting en error mtx-context | run 1: luatex

Re: [NTG-context] Argument of \myheading has an extra }

2012-08-02 Thread Jan Pohanka
Thank you for the quick response and the link... regards Jan Dne Thu, 02 Aug 2012 14:41:12 +0200 Marco Patzer home...@lavabit.com napsal(a): On 2012-08-02 Jan Pohanka xhpoha...@gmail.com wrote: Hi Jan, \def\myheading#1#2{% #1 #2} \define[2]\myheading{% #1 #2} Also

[NTG-context] Can C-Pretty-Printing module for MKIV be installed through first-setup

2012-06-11 Thread Jan Pohanka
Hello, I'd like to use C-Pretty-Printing module. As it is listed on http://modules.contextgarden.net I thought it should be installed by first-setup.sh --modules=all. Unfortunately this module is missing even all others are installed. best regards Jan -- Tato zpráva byla vytvořena

Re: [NTG-context] conditional format of headings

2012-06-08 Thread Jan Pohanka
Far beyond my tex and context skills, but nice :) regards Jan Dne Wed, 06 Jun 2012 14:46:29 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com napsal(a): Am 05.06.2012 um 10:34 schrieb Jan Pohanka: Hello, is it possible to have some conditional format? I mean I'd like to have

[NTG-context] directory structure

2012-06-08 Thread Jan Pohanka
Hello, here's next of my newbie questions. I have a template for some sort of documents, lets say a report in one file as an environment. It contains also a definition for a footer with an image. I'd like to have the image on some other path than documents together with the template so I

[NTG-context] heading and a few lines at the end of a page

2012-06-07 Thread Jan Pohanka
Hello, sometimes I get a heading and a single line (or two lines) at the end of the page and it does not look good? Is there any way (TeX or ConTeXt) to force pagebreak before heading in this case? Ideally I'd like to be able to specify the count of lines when this should occur. best

Re: [NTG-context] conditional format of headings

2012-06-06 Thread Jan Pohanka
Ok, thank you. I will solve this manually by creating some additional headings. regards Jan Dne Wed, 06 Jun 2012 09:52:40 +0200 Hans Hagen pra...@wxs.nl napsal(a): On 5-6-2012 10:34, Jan Pohanka wrote: Hello, is it possible to have some conditional format? I mean I'd like to have

[NTG-context] placecontent after section command

2012-06-05 Thread Jan Pohanka
Hello, This example works as expected \starttext \subject{Contents} \placecontent \section{One} \section{Two} \stoptext but when I replace \subject with \section like this \starttext \section{Contents} \placecontent \section{One} \section{Two} \stoptext the contents are not printed out...

Re: [NTG-context] placecontent after section command

2012-06-05 Thread Jan Pohanka
here you get a list if the entries below \section{Content} and there are one; lists by default are local add [criterium=text] to get a complete document based list thank you for clarification best regards Jan

[NTG-context] conditional format of headings

2012-06-05 Thread Jan Pohanka
Hello, is it possible to have some conditional format? I mean I'd like to have different vertical spacing for \section and \subsection when they follows immediately each other and when there is some text between them. best regards Jan -- Tato zpráva byla vytvořena převratnou poštovní

[NTG-context] transluency/transparency

2012-06-04 Thread Jan Pohanka
Hello, is it possible to somehow set transluency or transparency of several objects? The example should clarify, what I need: I have a template for company documents, which has some text, lines and graphics (external pdf or png) in its footer. Now I want to make the header be less visible

Re: [NTG-context] transluency/transparency

2012-06-04 Thread Jan Pohanka
See page 204, section 8.5 of the metafun book loadfigure gracht.mp number 1 scaled .5 ; addto currentpicture also (currentpicture softened .8) shifted (bbwidth(currentpicture)+.5cm,0) ; thank you for the hint, but it seems, that softened does not work for externalfigure \startMPcode draw

Re: [NTG-context] alignment in a footer

2012-05-31 Thread Jan Pohanka
17:21:07 +0200 Willi Egger cont...@boede.nl napsal(a): In such cases I define a layer and put the individual pieces into the right spot. The layer can be used as a background then. Willi On May 30, 2012, at 2:19 PM, Jan Pohanka wrote: Hello, I'm making a template for company documents

[NTG-context] how to write two or three single hyphens?

2012-05-31 Thread Jan Pohanka
Hello, describing linux file permissions I would like to write rwx-- As I expected the hyphens are converted to two long dashes (excuse me if I missed the correct name), so I tried something like this rwx{-}{-}{-}{-}{-}{-} or rwx{}-{}-{}-{}-{}-{}- which works in latex, but in context

Re: [NTG-context] how to write two or three single hyphens?

2012-05-31 Thread Jan Pohanka
\definehighlight[filepermission][style=\setff{none}] Great, thank you. Anyway what is the purpose of the \setff macro? I have not found its documentation anywhere. Also why the latex way -{}- does not work? It is a feature of luatex? best regards Jan -- Tato zpráva byla vytvořena

Re: [NTG-context] how to write two or three single hyphens?

2012-05-31 Thread Jan Pohanka
Thank you for the detailed explanation. best regards Jan Dne Thu, 31 May 2012 12:19:38 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com napsal(a): Am 31.05.2012 um 11:46 schrieb Jan Pohanka: výřez Great, thank you. Anyway what is the purpose of the \setff macro? In MkIV you

[NTG-context] columnset - float vertical spacing

2010-09-30 Thread Jan Pohanka
\stoptext -- Ing. Jan Pohanka Department of Measurement Faculty of Electrical Engineering Czech Technical University in Prague Technická 2, 16627 Praha 6 tel. 224352058 email: poha...@fel.cvut.cz ___ If your question

Re: [NTG-context] columnset - float vertical spacing

2010-09-30 Thread Jan Pohanka
I forgot. I'm using MKIV. Dne Thu, 30 Sep 2010 12:57:05 +0200 Jan Pohanka xhpoha...@gmail.com napsal(a): Hello, I need to reduce vertical spacing around floats in columnset. I have tried \setupfloats command as in example below, but without succes. And what about columns balancing? I

[NTG-context] poster in context

2010-09-29 Thread Jan Pohanka
. | | | _ | acknowledgement| _ Is there any way to fix the height of the depicted areas? Now I use columnset for the main text. Maybe layers can be useful? regards Jan -- Ing. Jan Pohanka Department of Measurement Faculty of Electrical Engineering Czech

[NTG-context] TABLE border width for row

2010-09-02 Thread Jan Pohanka
Hello, is it possible to increase border width of single row (or column) without affecting inner (between cell) borders using TABLE macro? On the wiki, there is a solution for wider border around whole table using additional \framed, would work something similar for single row?

[NTG-context] impostion

2010-08-26 Thread Jan Pohanka
Hello, is it possible to create following impostion, please? \setuppapersize[A5,landscape][A4] \setuparranging[???] | 2nd page| | bottom up | | | | | | 1 st page | | normal | |

[NTG-context] complicated layout - impostion

2010-07-30 Thread Jan Pohanka
Hallo, I need to create a document with complicated layout. four A6 pages on one side of A4 sheet (two upper ones with bottom up) two A5 landscape pages on back side of A4 sheet (upper one with bottom up) How can I reach this in Context please? \setuppapersize[A6][A4] \setuparranging[2*4] This

[NTG-context] description: whitespace between head and text

2010-07-23 Thread Jan Pohanka
Hello, \definedescription [definition] [headstyle=bold, inbetween=, headcolor=TheColor, location=top] \definition{AAA} AAA is an aglorithm \par which parameter controls the white space between the description title (at top location) and the description text. greetings

[NTG-context] Publishing matlab figures

2010-07-19 Thread Jan Pohanka
Hello, I'm used to use LaTeX for scientific publishing mainly because many conferences offers an article template in this language. I'd like to use Context to typeset my thesis, but I miss one important feature from LaTeX. Psfrag package can be used to replace selected marks in an eps

Re: [NTG-context] pdf options

2010-06-14 Thread Jan Pohanka
Dne Mon, 14 Jun 2010 08:59:32 +0200 Taco Hoekwater t...@elvenkind.com napsal(a): Jan Pohanka wrote: Hello, this code \setuppagenumbering[location={footer,margin},alternative=doublesided] forces a pdf viewer to show the document as doublepages. How can I suppress it, please? You mean

[NTG-context] pdf options

2010-06-13 Thread Jan Pohanka
Hello, this code \setuppagenumbering[location={footer,margin},alternative=doublesided] forces a pdf viewer to show the document as doublepages. How can I suppress it, please? Is there any document that describes the pdf options changing in Context? Unfortunately I was not able to find

Re: [NTG-context] \ldots

2010-05-20 Thread Jan Pohanka
? greetings Jan Dne Wed, 19 May 2010 20:55:44 +0200 Aditya Mahajan adit...@umich.edu napsal(a): On Wed, 19 May 2010, Jan Pohanka wrote: Hello, I discovered that with one font the \ldots command typesets three colons (:::). I found these lines in plain.tex No, for mkii you should look

[NTG-context] \ldots

2010-05-19 Thread Jan Pohanka
-- Ing. Jan Pohanka Department of Measurement Faculty of Electrical Engineering Czech Technical University Technická 2, 16627 Praha 6 tel. 224352058 email: poha...@fel.cvut.cz ___ If your question is of interest

Re: [NTG-context] [NTG Context] Storm (Lido) font support seems to be broken in newer versions of MKII

2010-05-14 Thread Jan Pohanka
Hello, thanks all for help, the problem is solved now. Original Vit's support will work with two modifications. 1) enco-*.tex must be renamed to enco-*.mkii 2) contents of t-type-s*.tex must be enclosed to \starttypescriptcollection \stoptypescriptcollection the problem lied in the line

Re: [NTG-context] [NTG Context] Storm (Lido) font support seems to be broken in newer versions of MKII

2010-05-13 Thread Jan Pohanka
Dne Wed, 12 May 2010 20:36:38 +0200 Mojca Miklavec mojca.miklavec.li...@gmail.com napsal(a): 2010/5/4 Jan Pohanka xhpoha...@gmail.com: Minimal example is here and support files are attached. Original support can be downloaded here: http://modules.contextgarden.net/stormfontsupport $$ 2

Re: [NTG-context] [NTG Context] Storm (Lido) font support seems to be broken in newer versions of MKII

2010-05-13 Thread Jan Pohanka
Dne Thu, 13 May 2010 10:59:14 +0200 Hans Hagen pra...@wxs.nl napsal(a): On 13-5-2010 9:40, Jan Pohanka wrote: Dne Wed, 12 May 2010 20:36:38 +0200 Mojca Miklavec mojca.miklavec.li...@gmail.com napsal(a): 2010/5/4 Jan Pohanka xhpoha...@gmail.com: Minimal example is here and support files

Re: [NTG-context] [NTG Context] Storm (Lido) font support seems to be broken in newer versions of MKII

2010-05-13 Thread Jan Pohanka
I also uploaded the corresponding files including the free Lido font here for testing. http://neuron.feld.cvut.cz/LidoType1.zip Jan Dne Thu, 13 May 2010 10:59:14 +0200 Hans Hagen pra...@wxs.nl napsal(a): On 13-5-2010 9:40, Jan Pohanka wrote: Dne Wed, 12 May 2010 20:36:38 +0200 Mojca

Re: [NTG-context] \hfill at the end of line

2010-05-11 Thread Jan Pohanka
Thanks, this works. (But it's a little bit tricky with hyphens) Dne Mon, 10 May 2010 21:51:58 +0200 Aditya Mahajan adit...@umich.edu napsal(a): On Mon, 10 May 2010, Honza Pohanka wrote: Hello, I'd like add a word at the end of the last line of the paragraph. \hfill command works fine,

[NTG-context] how to compute the sum of numbers

2010-05-11 Thread Jan Pohanka
Hello, I'm preparing a simple template for exam tests. I have following commad. \question{3}{text text text} where firtst parametr stands for points. I'd like to compute the sum of points to be used as Total points: xx What is the correct approach to do that if I'm using MKII? greetings Jan

Re: [NTG-context] how to compute the sum of numbers

2010-05-11 Thread Jan Pohanka
:23:30 +0200 Taco Hoekwater t...@elvenkind.com napsal(a): Jan Pohanka wrote: Hello, I'm preparing a simple template for exam tests. I have following commad. \question{3}{text text text} \newcount\totalpoints \def\question#1#2{\global\advance\totalpoints #1\relax ... #2 ...} where firtst

Re: [NTG-context] [NTG Context] Storm (Lido) font support seems to be broken in newer versions of MKII

2010-05-04 Thread Jan Pohanka
Minimal example is here and support files are attached. Original support can be downloaded here: http://modules.contextgarden.net/stormfontsupport \mainlanguage[cz] \enableregime[il2] \useencoding[st2] \useencoding[st3] \usetypescriptfile[t-type-slido] \usetypescript[Lido][st2]

[NTG-context] Grid typesetting, colums and vertical spacing

2010-04-20 Thread Jan Pohanka
] \section{Pokus} \input knuth \input knuth \subsection{Pokus 2} \input knuth \input knuth \input knuth \subsection{Pokus 3} \input knuth \stopcolumnset \stoptext greetings Jan -- Ing. Jan Pohanka Department of Measurement Faculty of Electrical Engineering Czech Technical University Technická 2

[NTG-context] Treating orphans and widows

2010-04-17 Thread Jan Pohanka
Hello, could anyone describe me, how to deal with orphans and widows in Context? Now I use \clubpenalty=8000 \widowpenalty=8000 is there any context way how to do that? greetings Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/

[NTG-context] Indent of heading when using command option

2010-04-05 Thread Jan Pohanka
Hello, I have following code (simplified) \def\mySubject#1{#1} \setuphead[subject][style=\bfb\ss,color=HeadColor,before=,after=,textcommand={\mySubject}] When the command option is not set it works as expected and typeset the heading (subject) without any indenting, but using the command