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

2013-06-13 Thread Jan Pohanka
Dne 13.6.2013 11:50, Peter Münster napsal(a): On Thu, Jun 13 2013, Jan Pohanka wrote: I always thought that backspace is on the left side of single page, or on the outer sides when the sheets are in a book. So is the problem caused just by my total misunderstanding of page layout? Probably

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] 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 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
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

[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 rig

[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 \!!countb\realpageno

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

2013-06-11 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}] \se

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] \setuphead[section][alternative=mys

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

[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 compl

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

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 : 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, but pre

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

2013-06-11 Thread Jan Pohanka
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, but preceded by a person name on the left {Person 1: \setupalign[middle]{\vtop{% song asdf line 1\\ song line 2\\

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 napsal(a): On 2012-08-02 "Jan Pohanka" wrote: Hi Jan, \def\myheading#1#2{% #1 #2} \define[2]\myheading{% #1 #2} Also interesting in this con

[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 --fmt="/home/honza

[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 převra

[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 ha

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 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 different verti

[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 rega

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 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 dif

[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í apl

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] placecontent after section command

2012-06-04 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... This

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

[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 t

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 napsal(a): Am 31.05.2012 um 11:46 schrieb Jan Pohanka: Great, thank you. Anyway what is the purpose of the \setff macro? In MkIV you have tell which features of a font

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 převrat

[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 I'

Re: [NTG-context] alignment in a footer

2012-05-30 Thread Jan Pohanka
17:21:07 +0200 Willi Egger 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 and we ne

[NTG-context] alignment in a footer

2012-05-30 Thread Jan Pohanka
Hello, I'm making a template for company documents and we need to have something similar in the footer \framed[frame=off,bottomframe=on,width=broad,align=flushleft]{\ss No part of this document may be reproduced, modified or disclosed to third parties in any form without the prior written

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 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 have rea

[NTG-context] columnset - float vertical spacing

2010-09-30 Thread Jan Pohanka
mnset \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 que

[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? \setupT

[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 Jan

[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 figure

Re: [NTG-context] pdf options

2010-06-14 Thread Jan Pohanka
Dne Mon, 14 Jun 2010 08:59:32 +0200 Taco Hoekwater 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 it displays side-by

[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 anythin

Re: [NTG-context] \ldots

2010-05-20 Thread Jan Pohanka
need? greetings Jan Dne Wed, 19 May 2010 20:55:44 +0200 Aditya Mahajan 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 at math-*

[NTG-context] \ldots

2010-05-19 Thread Jan Pohanka
s Jan -- 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 intere

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 \use

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 napsal(a): On 13-5-2010 9:40, Jan Pohanka wrote: Dne Wed, 12 May 2010 20:36:38 +0200 Mojca Miklavec napsal(a

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 napsal(a): On 13-5-2010 9:40, Jan Pohanka wrote: Dne Wed, 12 May 2010 20:36:38 +0200 Mojca Miklavec napsal(a): 2010/5/4 Jan Pohanka : Minimal example is here and support files are attached. Original support can be downloaded here: http

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 napsal(a): 2010/5/4 Jan Pohanka : Minimal example is here and support files are attached. Original support can be downloaded here: http://modules.contextgarden.net/stormfontsupport $$ 2 \times 2 $$ % error Dear Jan, About the first

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

2010-05-11 Thread Jan Pohanka
:23:30 +0200 Taco Hoekwater 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 parametr stand

[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] \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 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, when this word doesn

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] \setupbodyfont[

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

2010-04-20 Thread Jan Pohanka
\startcolumnset[my] \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 Un

[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 caus