Re: [NTG-context] how to print a simple booklet
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. Backspace is for the back of the book, i.e. the inner sides. Now I see, thank you for this confirmation. So eg. the \setuppagenumbering[location={footer,left} means that the numbers would be on the left side on the right pages of a book. So I was dumb and ConTeXt behaves correctly. ___ 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] how to print a simple booklet
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: \setuppagenumbering[location={footer,right},alternative=doublesided] ? Yes :) It helps with page number position, and everything is ok when using \setuplayout[width=middle]. But when one use narrower width then the backspace is on the opposite side. 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. thanks Jan So is the problem caused just by my total misunderstanding of page layout? ___ 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] how to print a simple booklet
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},alternative=doublesided] ? Yes :) It helps with page number position, and everything is ok when using \setuplayout[width=middle]. But when one use narrower width then the backspace is on the opposite side. 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. thanks Jan ___ 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] how to print a simple booklet
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 edges... Works here. Did you forget to compile with the --arrange flag? Hi, --arrange flag has no impact on the output. Please check the outputfile in attachment. 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. thanks Jan test.pdf Description: Adobe PDF document ___ 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] how to print a simple booklet
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 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 right of first sheet but all pages have backspace and page number on the right edge. Is that correct behaviour or I'm missing some basic fact? \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \setuplayout[ width=8cm,height=middle, backspace=10mm,topspace=10mm, footer=8mm,header=0mm, alternative=doublesided] \setuppagenumbering[location={footer,left},alternative=doublesided] \showframe \starttext TITLE PAGE \page[yes] \dorecurse{15}{\input knuth} \stoptext Thanks Jan ___ 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] how to print a simple booklet
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 right of first sheet but all pages have backspace and page number on the right edge. Is that correct behaviour or I'm missing some basic fact? \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \setuplayout[ width=8cm,height=middle, backspace=10mm,topspace=10mm, footer=8mm,header=0mm, alternative=doublesided] \setuppagenumbering[location={footer,left},alternative=doublesided] \showframe \starttext TITLE PAGE \page[yes] \dorecurse{15}{\input knuth} \stoptext Thanks Jan ___ 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] back cover of booklet
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 \advance\!!counta 5 \divide\!!counta 4 \multiply\!!counta 4 \advance\!!countb 2 \advance\!!counta-\!!countb \executepagebreakhandler\v!yes \dorecurse\!!counta{\executepagebreakhandler\v!empty}% \fi} \protect \setuppapersize[A5][A4] \setuparranging[2UP,rotated,doublesided] \setuppagenumbering[alternative=doublesided] \starttext \subject Front Cover \dorecurse{10}{\input tufte \par} \page[beforequadruple] Imprint \page Back Cover \stoptext Unfortunately this does not work anymore nor in MKII or MKIV. Can please someone give me some actual solution? Thanks. mtx-context | run 1: luatex --fmt="/home/honza/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="test" --lua="/home/honza/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv" This is LuaTeX, Version beta-0.75.0-2013031401 (rev 4589) \write18 enabled. (/home/honza/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.03.17 13:59 MKIV fmt: 2013.3.19 int: english/english system > 'cont-new.mkiv' loaded (/home/honza/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > files > jobname 'test', input 'test', result 'test' fonts > latin modern fonts are not preloaded languages > language 'en' is active (test.tex ! Undefined control sequence. log system > tex > error on line 18 in file test.tex: Undefined control sequence ... \??pagebreakmethod \v!beforequadruple \setvalue #1->\expandafter \def \csname #1 \endcsname \installpagebreakhandler ...\??pagebreakmethod #1} {#2} l.18\fi} ? x With best regards Jan ___ 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] \convertnumber with macro parameter
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}] \setuphead [section] [alternative=mysection, conversion=I, sectionstopper=.] \starttext \section{Test} \stoptext Wolfgang It works nice, thanks Jan ___ 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] \convertnumber with macro parameter
\definesectionalternative[mysection][renderingsetup=mysection] \startsetups[mysection] \vbox\bgroup \headsetupspacing \strut\headnumbercontent\par \begstrut\headtextcontent\endstrut \egroup \stopsetups \setuplabeltext[en][section={}{Section] \setuphead[section][alternative=mysection] It seams that my context does not know /definesectionalternative/ mtx-context | run 1: luatex --fmt="/home/honza/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="test" --lua="/home/honza/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv" This is LuaTeX, Version beta-0.75.0-2013031401 (rev 4589) \write18 enabled. (/home/honza/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.03.17 13:59 MKIV fmt: 2013.3.19 int: english/english system > 'cont-new.mkiv' loaded (/home/honza/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > files > jobname 'test', input 'test', result 'test' fonts > latin modern fonts are not preloaded languages > language 'en' is active (test.tex ! Undefined control sequence. log system > tex > error on line 9 in file test.tex: Undefined control sequence ... l.9 \definesectionalternative [mysection][renderingsetup=mysection] ? thanks Jan ___ 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] \convertnumber with macro parameter
\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 and colors are applied) content of the section number. Thanks, I'm aware of this method and I mentioned it in the original question. The question is what to do if I need to use the command key to apply more complex formating using \framed etc. At least I need to make \section{My section title} to print I. Section My section title regards Jan ___ 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] \convertnumber with macro parameter
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 complicated command. thanks Jan ___ 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] \vtop with middle alignment in a screenplay
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 a line 3 \stoplyrics \stoptext Thank you again. Placing the names in the margin is not a bad idea, but it would need to rework the rest of my macros as they do not count with it. Also increasing the backspace causes that the lyrics is not centered ideally. Can you please kindly advice me some another solution? I can imagine some negative hskip, but it is probably just ugly hack. best regards Jan ___ 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] \vtop with middle alignment in a screenplay
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 preceded by a person name on the left {Person 1: \setupalign[middle]{\vtop{% song asdf line 1\\ song line 2\\ song a line 3}}} This code obviously does not work as I need. Can please someone advice me proper ConTeXt way how to do it? You can place the lyrics with the \startlines environment: \starttext Person 1: \startlines[before=,align=middle] song asdf line 1 song line 2 song a line 3 \stoplines \stoptext Hi Wolfgang, thank you for fast answer. Your solution works well, but I would like to have the first line of lyrics on the same line with Person: thanks Jn ___ 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] \vtop with middle alignment in a screenplay
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\\ song a line 3}}} This code obviously does not work as I need. Can please someone advice me proper ConTeXt way how to do it? many thanks Jan ___ 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] Argument of \myheading has an extra }
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 context: http://article.gmane.org/gmane.comp.tex.context/77610 Marco ___ 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 ___ -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] Argument of \myheading has an extra }
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/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en" --jobname="git_info2" --lua="/home/honza/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:input="./git_info2.tex" --c:kindofrun=1 "cont-yes.mkiv" This is LuaTeX, Version beta-0.70.2-2012052410 (TeX Live 2012) \write18 enabled. (/home/honza/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.2 int: english/english system > cont-new.mkiv loaded (/home/honza/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) fonts > latin modern fonts are not preloaded languages > language en is active (git_info2.tex{/home/honza/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/home/honza/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/honza/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded structure > sectioning > section @ level 3 : 0.0.1 -> Hello ! Argument of \myheading has an extra }. system > tex > error on line 11 in file git_info2.tex: Argument of ... 1 2 \def\myheading#1#2{% 3 #1 #2} 4 5 \setuphead[section,subject] 6 [command={\myheading}] 7 8 9 \starttext 10 11 >> \section{Hello} 12 13 \stoptext 14 \par } \strc_rendering_inject_number_and_text ...ommand } \ifx \p_command \empty \di... \strc_rendering_place_head_number_and_text ...ext }\fi \strc_rendering_stop_... \strc_sectioning_handle ...e_head_number_and_text \else \strc_rendering_plac... l.11 \section{Hello} regards Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] Can C-Pretty-Printing module for MKIV be installed through first-setup
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řevratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] directory structure
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 have to use \setupexternalfigures, but is it possible to specify a path independently of the env file and document file location. I mean some kind of global variable $TEMPLATES_DIR. Is it also possible to set some global path, where context will search the env files and not to use the full path in document file? Is enviroment good aproach to define templates? I have read Han's document about project structure, but it does something a bit different I think. template file in some directory on the system: \startenvironment myreport ... \setupexternalfigures[directory=???] \setupfootertexts[{\externalfigure[mypic]}] ... \stopenvironment document file in some other directory: \enviroment myreport \starttext \stoptext best regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] conditional format of headings
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 vertical spacing for \section and \subsection when they follows immediately each other and when there is some text between them. % SectionBlank \def\DefineSectionBlank {\dotripleempty\doDefineSectionBlank} \def\doDefineSectionBlank[#1][#2][#3]#4% {\edef\CurrentSection{#1}% \setvalue{#1:#2:\ifthirdargument\the\dimexpr#3\relax\fi}{#4}} \def\SectionBlank#1#2% {\edef\CurrentSection{#1}% \executeifdefined{#1:#2:\LastSectionBlankSignal}{\executeifdefined{#1:#2:\the\dimexpr\zeropoint\relax}{\getvalue{#1:#2: \let\LastSectionBlankSignal\zeropoint \EveryPar{\let\LastSectionBlankSignal\zeropoint} \def\SectionBlankSignal {\setevalue{LastSectionBlankSignal}{\the\dimexpr\csname\CurrentSection Signal\endcsname\relax}} % Heading \newsignal\PartSignal \DefineSectionBlank [Part] [before] {\blank[force,48pt]} \DefineSectionBlank [Part] [after] {\blank[15pt]\SectionBlankSignal} \setuphead [Part] [before=\SectionBlank{Part}{before}, after=\SectionBlank{Part}{after}] \newsignal\ChapterSignal \DefineSectionBlank [Chapter] [before] [\PartSignal] {\blank[\the\dimexpr 12pt*200/100-6pt\relax]} \DefineSectionBlank [Chapter] [before] {\blank[\the\dimexpr 12pt*200/100\relax]} \DefineSectionBlank [Chapter] [after] {\blank[\the\dimexpr 12pt*150/100\relax]\SectionBlankSignal} \setuphead [chapter] [before=\SectionBlank{Chapter}{before}, after=\SectionBlank{Chapter}{after}] \newsignal\SectionSignal \DefineSectionBlank [Section] [before] [\PartSignal] {\blank[\the\dimexpr 12pt*175/100\relax]} %\DefineSectionBlank [Section] [before] [\ChapterSignal] {\blank[\the\dimexpr 12pt*175/100-3pt\relax]} \DefineSectionBlank [Section] [before] [\ChapterSignal] {\blank[\the\dimexpr 12pt*175/100+2cm\relax]} \DefineSectionBlank [Section] [before] {\blank[\the\dimexpr 12pt*175/100\relax]} \DefineSectionBlank [Section] [after] {\blank[\the\dimexpr 12pt*133/100\relax]\SectionBlankSignal} \setuphead [section] [before=\SectionBlank{Section}{before}, after=\SectionBlank{Section}{after}] \starttext \chapter{Chapter 1} \section{Section 1.1} \chapter{Chapter 2} text \section{Section 2.1} \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 ___ ___ 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] heading and a few lines at the end of a page
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 regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] conditional format of headings
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 different vertical spacing for \section and \subsection when they follows immediately each other and when there is some text between them. No, at least not now. There are some possibilities with weighted skips so that some win over others but I'm not sure if that solves your case. 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 ___
[NTG-context] conditional format of headings
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í aplikací Opery: http://www.opera.com/mail/ ___ 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] placecontent after section command
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 ___ 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] placecontent after section command
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 behavior is same in MKII and MKIV. regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] transluency/transparency
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 externalfigure "logo.pdf" scaled 5cm softened 0.5; \stopMPcode ...lable:=true; ]===], false)} \meta_process_graphic ...!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \m... regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] transluency/transparency
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 than the rest of the page. Surely I can set a color of the text to gray and edit the image, but is there some other way? best regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] how to write two or three single hyphens?
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 (e.g. ligatures or kerning) have to enabled, this is done in two steps. 1. You define a list with the features you want, e.g. \definefontfeature[myfeatures][liga=yes,kern=yes] which activates ligatures and kerning. 2. You apply this list to a font, normally this is done in the typescripts, e.g. \definetypeface[mainface][rm][serif][palatino][default][features=myfeatures] Sometimes it is necessary to add additional features or to switch a different feature list *in* the document. To do this context provides the commands \addfontfeature and \setfontfeature which can be also called in the two shorter commands \addff and \setff. In the \definehighlight command I enabled the predefined “none” list where ligatures and kerning is disabled to prevent that -- results in –. 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 ___ ___ 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] how to write two or three single hyphens?
\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řevratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] how to write two or three single hyphens?
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'm still getting the long dashes. How can I prevent this conversion, please? regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] alignment in a footer
Thank you for answer, I have discovered, that \tbox does the job for me. \startoverlay {\leftaligned{nazev}} {\midaligned{\pagenumber /\totalnumberofpages}} {\rightaligned{\tbox{\externalfigure[jc_logo_small][width=4cm]}}} \stopoverlay regards Jan Dne Wed, 30 May 2012 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 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 permission of COMPANY. This document is copyrighted by COMPANY with all rights reserved.} \startoverlay {\leftaligned{title}} {\midaligned{1/1}} {\rightaligned{\externalfigure[jc_logo_small][width=4cm]}} \stopoverlay Unfortunately I have two problems with code above. I need to have the text and figure in overlay top aligned and also the text in the frame should have the exactly same width as the overlay. How can I achieve this please? best regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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 ___ -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] alignment in a footer
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 permission of COMPANY. This document is copyrighted by COMPANY with all rights reserved.} \startoverlay {\leftaligned{title}} {\midaligned{1/1}} {\rightaligned{\externalfigure[jc_logo_small][width=4cm]}} \stopoverlay Unfortunately I have two problems with code above. I need to have the text and figure in overlay top aligned and also the text in the frame should have the exactly same width as the overlay. How can I achieve this please? best regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] columnset - float vertical spacing
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 read the columns.pdf manual, but I don't understand it clearly. [balance=yes] does not balance the columns even without the figures. regards Jan \definepapersize[poster][width=73cm,height=73cm] \setuppapersize[poster][oversized] \setuplayout[ header=0cm,footer=0cm, backspace=2.54cm,topspace=1.5cm, width=middle,height=middle, location=middle,marking=on] \setuppagenumbering[location=] \mainlanguage[en] \enableregime[utf8] \usetypescript[helvetica][ec] \setupbodyfont[helvetica,25pt] \setupindenting[always,small] \definecolumnset[cols][n=3,distance=1em,balance=yes] \setupfloats[frame=on,spacebefore=none,spaceafter=none,before=,after=] \starttext \showframe \startcolumnset[cols] \input knuth \input tufte \placefigure[][fig:stereoblock] {AAxxxm} {\externalfigure[xxx][width=0.8\textwidth]} \input knuth \input tufte \input knuth \input tufte \placefigure[][fig:stereoblock] {Axxxm} {\externalfigure[xxx][width=0.8\textwidth]} \input knuth \input tufte \stopcolumnset \stoptext -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] columnset - float vertical spacing
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 read the columns.pdf manual, but I don't understand it clearly. [balance=yes] does not balance the columns even without the figures. regards Jan \definepapersize[poster][width=73cm,height=73cm] \setuppapersize[poster][oversized] \setuplayout[ header=0cm,footer=0cm, backspace=2.54cm,topspace=1.5cm, width=middle,height=middle, location=middle,marking=on] \setuppagenumbering[location=] \mainlanguage[en] \enableregime[utf8] \usetypescript[helvetica][ec] \setupbodyfont[helvetica,25pt] \setupindenting[always,small] \definecolumnset[cols][n=3,distance=1em,balance=yes] \setupfloats[frame=on,spacebefore=none,spaceafter=none,before=,after=] \starttext \showframe \startcolumnset[cols] \input knuth \input tufte \placefigure[][fig:stereoblock] {AAxxxm} {\externalfigure[xxx][width=0.8\textwidth]} \input knuth \input tufte \input knuth \input tufte \placefigure[][fig:stereoblock] {Axxxm} {\externalfigure[xxx][width=0.8\textwidth]} \input knuth \input tufte \stopcolumnset \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 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] poster in context
Hello, I wonder how to create a poster presentation using ConTeXt. It should have following layout. _ | title, ...| _ | | | | | text in 3 columns | | with titles etc. | | | _ | 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 Technical University in Prague Technická 2, 16627 Praha 6 tel. 224352058 email: poha...@fel.cvut.cz ___ 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] TABLE border width for row
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? \setupTABLE[r][2][rulethickness=2pt] \bTABLE \bTR \bTD \eTD \bTD \eTD \bTD \eTD \eTR \bTR \bTD \eTD \bTD \eTD \bTD \eTD \eTR \bTR \bTD \eTD \bTD \eTD \bTD \eTD \eTR \eTABLE best regards Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] impostion
Hello, is it possible to create following impostion, please? \setuppapersize[A5,landscape][A4] \setuparranging[???] | 2nd page| | bottom up | | | | | | 1 st page | | normal | | | | | | 4th page| | bottom up | | | | | | 3rd page | | normal | | | | | regards Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] complicated layout - impostion
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 code works fine for A6 pages, but I'm not sure how to include also A5 landscape pages. Whole work should end with a document similar to http://www.eprona.com/kdp/data/skladacka2010.pdf greetings Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] description: whitespace between head and text
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 -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] Publishing matlab figures
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 (generated by Matlab) with a text typesets with TeX engine. There is also an alternative package which converts thess psfragged figures to pdf and full work can be processed by pdftex. Is there any similar way how to do this in Context? It would really help me. I can of course use a workaround with preparing pictures with LaTeX and using generated pdfs lately, but it is not an ideal solution. greetings Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] pdf options
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-side automatically? You can set the 'Page Display' in the Reader to 'Single Page' (Edit->Preferences->Page Layout). Yes I mean this. But I think that pdf file can tell the Reader how to show it, because the same file processed by MKII is shown normally. So is there any way to specify this pdf behaviour in Context? best regards Jan Best wishes, Taco ___ 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 ___ -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] pdf options
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 anything. best regards Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] \ldots
Thanks for the reply, it helped. Exploring the math- files I found other questions. What's the difference between \definemathsymbol and \definemathcharacter? I expect that [punct] means punctuation character, but what the [inner] means? Where can I found what [xx] different characters 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-*.mkii files. The relevant file in this case is math-tex.mkii, which defines \definemathsymbol [ldotp] [punct] [mi] ["3A] saying the \ldots uses character on position 3A. In the font (type 1), there is really the semicolon on this position. How to make context to use proper character (\period), which is on position 2E in the font without changing this file? You need to define a new math encoding (see math-ams.mkii or math-eul.mkii). Or is it possible to use a special glyph for horizontal ellipsis with \ldots command? (It exists in the font) \definemathsymbol [ldots] [inner] [mi] ["XX] where XX is the location of the glyph. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] \ldots
Hello, I discovered that with one font the \ldots command typesets three colons (:::). I found these lines in plain.tex \mathchardef\ldotp="613A % ldot as a punctuation mark \def\ldots{\mathinner{\ldotp\ldotp\ldotp}} saying the \ldots uses character on position 3A. In the font (type 1), there is really the semicolon on this position. How to make context to use proper character (\period), which is on position 2E in the font without changing this file? Or is it possible to use a special glyph for horizontal ellipsis with \ldots command? (It exists in the font) best regads 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 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] [NTG Context] Storm (Lido) font support seems to be broken in newer versions of MKII
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 \usetypescriptfile[t-type-sto] in t-type-slido.tex, cascading of \usetypescriptfile works only with typescriptcollection best regards Jan Dne Thu, 13 May 2010 19:40:02 +0200 Aditya Mahajan napsal(a): On Thu, 13 May 2010, Honza Pohanka wrote: What does [mr] [mc] [ma] in mathcollection stands for? This is what I remember mr = Math Roman ma, mb, mc, md, me = Extra math families. The actual corresponance between ma etc and the fonts are set in a typescript. For example, \starttypescript [math] [] [size] \definebodyfont [] [mm] [ma = sa 1] \stoptypescript here is something like default, ams, etc, which is the 4th argument of \definetypescript. \definetypescript[] [math] [mm] [] [] is something like 10pt, etc. It can also be a list. is the name of the font that ma should stand for. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] [NTG Context] Storm (Lido) font support seems to be broken in newer versions of MKII
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): 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 problem that you are reporting: I don't understand what the "st" in t-math-sto.tex does. \definemathsymbol [times] [bin] [st] ["0E] The line \let\stfam\mcfam \let\hexstfam\hexmcfam should map the st math family to the mc family, maybe this is not working anymore. I have tried \definefamilysynonym [default] [st] [mc] but with no succes. does \definemathsymbol [times] [bin] [mc] ["0E] work? btw, in mkiv that will never work as we now only use two families, there one needs to make a lfg file as with the other type1 math fonts 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 - -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] [NTG Context] Storm (Lido) font support seems to be broken in newer versions of MKII
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://modules.contextgarden.net/stormfontsupport $$ 2 \times 2 $$ % error Dear Jan, About the first problem that you are reporting: I don't understand what the "st" in t-math-sto.tex does. \definemathsymbol [times] [bin] [st] ["0E] The line \let\stfam\mcfam \let\hexstfam\hexmcfam should map the st math family to the mc family, maybe this is not working anymore. I have tried \definefamilysynonym [default] [st] [mc] but with no succes. does \definemathsymbol [times] [bin] [mc] ["0E] work? No, it does not. btw, in mkiv that will never work as we now only use two families, there one needs to make a lfg file as with the other type1 math fonts I know that mkiv could be better in this, but I'd like to have mkii working too. (Using of miktex (no lua) is one of the reasons). 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 - -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] [NTG Context] Storm (Lido) font support seems to be broken in newer versions of MKII
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 problem that you are reporting: I don't understand what the "st" in t-math-sto.tex does. \definemathsymbol[times] [bin] [st] ["0E] The line \let\stfam\mcfam \let\hexstfam\hexmcfam should map the st math family to the mc family, maybe this is not working anymore. I have tried \definefamilysynonym [default] [st] [mc] but with no succes. Jan That is: I'm not sure if the "st" font is defined somewhere or not. (This is the first time that I see this.) The character is present in sldr6s.tfm at slot 0x0E. The font is defined as \definefontsynonym [MathStorm][Lido-Math-Storm] \definefontsynonym [Lido-Math-Storm] [sldr6s] [encoding=st3] but I'm not sure how this maps to (or why it is supposed to map to) "[st]". Once this is resolved (once somebody explains me how the mapping is supposed to work), the problem with incorrect font will probably be solved simultaneously. (Boldmath is something that I never really understood when or why it works or doesn't work.) 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 ___ -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] how to compute the sum of numbers
Thank you, I have an additional question. Is it possible to have the sum available before the \question commands? I mean Total points: \the\totalpoints % or something like that \question{5}{text text} \question{3}{text text} \question{1}{text text} greetings, Jan Dne Tue, 11 May 2010 11: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 stands for points. I'd like to compute the sum of points to be used as "Total points: xx" Total points: \the\totalpoints Best wishes, Taco ___ 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 ___ -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] how to compute the sum of numbers
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 -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] \hfill at the end of line
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't overflow to the next line. In that case the word stays on the next line but left aligned. example Zakreslete průběh na signálu TX při vyslání dvou znaků, které odpovídají vaším iniciálám. Jak dlouho bude tento proces trvat? (Předpokládejte rychlost 57600 Bd, 8 datových bitů, 1 stopbit.) \hfill (4 body) Try \wordright{(4 body)} Aditya -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] [NTG Context] Storm (Lido) font support seems to be broken in newer versions of MKII
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[Lido,12pt] \starttext $$ 3 + 3 + 3 = 3^2 $$ % ok $$ a + b + c = d $$ % incorrect font $$ 2 \times 2 $$ % error $$ 1 \neq 2 $$ % error \formula[boldmath]{a^2+b^2=c^2} % don't work (not bold) \stoptext Jan Dne Mon, 03 May 2010 22:09:35 +0200 Honza Pohanka napsal(a): Hello, the Storm font support by Vit Zyka is broken in actual version of MKII. I spoke with him, but unfortunately he uses old version and does not have the time for updates. I discovered that renaming the enco-*.tex files to enco-*.mkii solves a part of the problem, but there still remains an issue with math typesetting. Context does not know many characters (\times, \neq, ...), boldmath etc. Typescripts looks OK and I don't know enough to look deeper. Could anyone help? greetings Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] Grid typesetting, colums and vertical spacing
Hello, I'm trying to typeset on the grid, but I also need to reduce vertical spacing around headings. Unfortunately when i specify the 'before/after' setting for head, grid typesetting fails. Is there any option to make \blank more flexible? (I'm using MKII) example: \setupoutput[pdftex] \setuppapersize[A4,landscape][A4,landscape] \setuplayout[backspace=0.5cm,topspace=0.5cm,top=0cm,footer=0.5cm, width=middle,height=middle,margin=0cm,header=0cm] \setupbodyfont[10pt] \mainlanguage[cz] \enableregime[utf8] \setuppagenumbering[location=] \setuphead[section][style={\bf}] \setuphead[section][before={\blank[halfline,flexible]}] % not working well % \setuphead[section][after={\blank[halfline,flexible]}] % not working well \starttext \setuplayout[grid=yes] \showgrid \definecolumnset[my][n=4,distance=1.2em,balance=yes] % balance not work \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 University Technická 2, 16627 Praha 6 tel. 224352058 email: poha...@fel.cvut.cz ___ 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] Treating orphans and widows
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/ ___ 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] Indent of heading when using command option
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 causes the small horizontal space in front of the subject. Is there any possibility to get rid of it? best regards Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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 ___