Re: [NTG-context] Itemize not breaking across pages?
On 10-3-2011 8:10, Alasdair McAndrew wrote: I am setting up notes and exercises for my students. Each set of exercises is in an itemize environment, and each \item consists of a table of problems. The trouble is, the itemize doesn't break across pages - I have to put manual page breaks in. small example needed - 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] extra line in tabulate headers
Hi, how can I suppress the extra line in the header of the example on contextgarden (http://wiki.contextgarden.net/Tabulate#Headers)? Removing header=repeat from \setuptabulate helps but I'd like to keep header repetition. Thanks, Florian ___ 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] extra line in tabulate headers
On 2011-03-10 11:08:22, Florian Wobbe wrote: Hi, how can I suppress the extra line in the header of the example on contextgarden (http://wiki.contextgarden.net/Tabulate#Headers)? Removing header=repeat from \setuptabulate helps but I'd like to keep header repetition. Hi Florian, wrapping it into a “\placetable”-float seems to get rid of it: ···8 \setuptabulate[split=yes,header=repeat] \starttext \starttabulatehead \HL \NC {\bf format char} \NC {\bf meaning} \NC \NR \HL \stoptabulatehead \placetable[here]{none}{% \starttabulate[|r|l|] \NC c \NC centered \AR \NC l \NC left aligned \AR \NC r \NC right aligned \AR \stoptabulate } \stoptext % vim:ft=context ···8 Regards, Philipp Thanks, Florian ___ 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpSHbawDhAGe.pgp Description: PGP signature ___ 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] extra line in tabulate headers
how can I suppress the extra line in the header of the example on contextgarden (http://wiki.contextgarden.net/Tabulate#Headers)? Removing header=repeat from \setuptabulate helps but I'd like to keep header repetition. Hi Florian, wrapping it into a “\placetable”-float seems to get rid of it Hi Philipp, in deed it does with \placetable[here]. I should have added that I wrapped it inside \placetable[split] to split the table over several pages. Unfortunately this messes up the header lines: \setuptabulate[split=yes,header=repeat] \starttabulatehead \HL \NC {\bf format char} \NC {\bf meaning} \NC \NR \HL \stoptabulatehead \placetable[split]{none}{% \starttabulate[|r|l|] \dorecurse{20}{ \NC c \NC centered \AR \NC l \NC left aligned \AR \NC r \NC right aligned \AR \HL} \stoptabulate } Best, Florian ___ 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] extra line in tabulate headers
On 2011-03-10 11:53:11, Florian Wobbe wrote: how can I suppress the extra line in the header of the example on contextgarden (http://wiki.contextgarden.net/Tabulate#Headers)? Removing header=repeat from \setuptabulate helps but I'd like to keep header repetition. Hi Florian, wrapping it into a “\placetable”-float seems to get rid of it Hi Philipp, in deed it does with \placetable[here]. I should have added that I wrapped it inside \placetable[split] to split the table over several pages. Unfortunately this messes up the header lines: Sorry, I should have expected that. All I can say is that the stray spacing vanishes with double-line headers: ··8· \starttabulatehead \HL \NC {\bf format char} \NC {\bf meaning} \NC \NR \NC {\bf format char} \NC {\bf meaning} \NC \NR \HL \stoptabulatehead ··8· Messing around with tabl-tbl.mkiv didn’t get me any further here. Good luck, Philipp \setuptabulate[split=yes,header=repeat] \starttabulatehead \HL \NC {\bf format char} \NC {\bf meaning} \NC \NR \HL \stoptabulatehead \placetable[split]{none}{% \starttabulate[|r|l|] \dorecurse{20}{ \NC c \NC centered \AR \NC l \NC left aligned \AR \NC r \NC right aligned \AR \HL} \stoptabulate } Best, Florian ___ 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpihGit1fIOu.pgp Description: PGP signature ___ 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] extra line in tabulate headers
how can I suppress the extra line in the header of the example on contextgarden (http://wiki.contextgarden.net/Tabulate#Headers)? Removing header=repeat from \setuptabulate helps but I'd like to keep header repetition. Hi Florian, wrapping it into a “\placetable”-float seems to get rid of it Hi Philipp, in deed it does with \placetable[here]. I should have added that I wrapped it inside \placetable[split] to split the table over several pages. Unfortunately this messes up the header lines: Sorry, I should have expected that. All I can say is that the stray spacing vanishes with double-line headers: But then, the second header line vanishes on the second page. Leaving out the \HL at the end of the header would be another solution: ··8· \starttabulatehead \HL \NC {\bf format char} \NC {\bf meaning} \NC \NR \NC {\bf format char} \NC {\bf meaning} \NC \NR \HL \stoptabulatehead \starttabulatehead \HL \NC {\bf format char} \NC {\bf meaning} \NC \NR \stoptabulatehead ··8· And starting \starttabulate[|r|l|] with \HL messes the header up again: \starttabulatehead \HL \NC {\bf format char} \NC {\bf meaning} \NC \NR \stoptabulatehead \placetable[split]{none}{% \starttabulate[|r|l|] \HL \dorecurse{20}{ \NC c \NC centered \AR \NC l \NC left aligned \AR \NC r \NC right aligned \AR \HL} \stoptabulate } Messing around with tabl-tbl.mkiv didn’t get me any further here. Good luck, Philipp Well, thanks for your efforts, Florian ___ 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] Compile script
2011/3/3 Cecil Westerhof cldwester...@gmail.com I have been asking a lot of questions lately and getting very speedy replies. Time to give something back. ;-} I attached a script I made to easily compile ConTeXt files in the current directory. Default it looks if there are tex files where there is no pdf file, or the pdf file is older. Those are compiled. It is possible that a tex file has not changed, but a file that it depends on has. That is why there is the parameter --all. When this is given, all tex files are compiled. I hope it is useful to someone. -- Cecil Westerhof good idea. it would be cool to extend it to utilize texworks' modelineshttp://code.google.com/p/texworks/wiki/TipsAndTricks, which are a pretty straightforward way to tell programs which files are root files and which command shjould be used to compile them (a bit like shebangs). i would like to see these standardized in some way (and a good start is to tell everyone they are there) flying sheep ___ 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] Acrobat JavaScript in ConTeXt
1) how to deal with commas in strings? MyAlert{Hello, World} displays only Hello. does {{Hello, World}} work? 2) is it possible to get international charcters (such as čćžšđ) in strings? I don't know if javascript does utf - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header entries semi-wrong
Am 06.03.2011 um 11:56 schrieb Steffen Wolfrum: --on page 1 there is section 1.1 one and you get the header entry 1.1 one - on page 3 there is still section 1.1 one and you get the header entry 1.2 one (- ?!) - on page 5 there is section 1.2 two and you get the header entry 1.2 two you see the problem? the getmarking behaves correctly (one/one/two) while the headnumber is confused (1.1/1.2/1.2))! Could some maybe please have look at my test file (see original post): Is this asynchronoushead a bug or am I simply doing something wrong?? Steffen ___ 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] header entries semi-wrong
On Thu, Mar 10, 2011 at 2:38 PM, Steffen Wolfrum cont...@st.estfiles.de wrote: Am 06.03.2011 um 11:56 schrieb Steffen Wolfrum: --on page 1 there is section 1.1 one and you get the header entry 1.1 one - on page 3 there is still section 1.1 one and you get the header entry 1.2 one (- ?!) - on page 5 there is section 1.2 two and you get the header entry 1.2 two you see the problem? the getmarking behaves correctly (one/one/two) while the headnumber is confused (1.1/1.2/1.2))! Could some maybe please have look at my test file (see original post): Is this asynchronoushead a bug or am I simply doing something wrong?? I don't know, but with \dorecurse{2}{\input tufte \par} \page \section{Two} things go better. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \startsetups amd \startJSpreamble
Hello, just to confirm - the role of the text after \start*: \startsetups thumbs - on http://wiki.contextgarden.net/Thumb_index and \startJSpreamble MyStuff used later - in the last mails between Vedran and Hans. Do I understand well that thumbs and MyStuff used later in both cases are names of the setups and are reffered later by these names? I fell a bit confused as normally such names are enclosed in brackets; thus I'd rather expect syntax like: \startsetups[thumbs] ... \stopsetups and \startJSpreamble[MyStuff used later] ... \stopJSpreamble Kind regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] header entries semi-wrong
I agree with Luigi, after using different length and \page I was able to produce correct output. According to me your example is probably a border case. Willi On 10 Mar 2011, at 14:59, luigi scarso wrote: On Thu, Mar 10, 2011 at 2:38 PM, Steffen Wolfrum cont...@st.estfiles.de wrote: Am 06.03.2011 um 11:56 schrieb Steffen Wolfrum: --on page 1 there is section 1.1 one and you get the header entry 1.1 one - on page 3 there is still section 1.1 one and you get the header entry 1.2 one (- ?!) - on page 5 there is section 1.2 two and you get the header entry 1.2 two you see the problem? the getmarking behaves correctly (one/one/two) while the headnumber is confused (1.1/1.2/1.2))! Could some maybe please have look at my test file (see original post): Is this asynchronoushead a bug or am I simply doing something wrong?? I don't know, but with \dorecurse{2}{\input tufte \par} \page \section{Two} things go better. -- luigi \showframe \setupbodyfont[postscript, 10pt]\setupinterlinespace[line=12pt] \definepapersize[Pape][width=14.7cm,height=22.3cm] \setuppapersize[Pape][Pape] \setuplayout [width=113mm,height=572pt\relax, backspace=17mm,topspace=17mm, header=12pt,headerdistance=6pt, footer=36pt,footerdistance=0pt, location=middle,marking=off] \setupwhitespace[halfline] \setuppagenumbering [alternative=doublesided,location=] \setupheader[align=middle] \mainlanguage[de] \def\HeadL{Part {\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[EbeneEins]} \def\HeadR{\headnumber[section]\enskip\getmarking[section][current]} \setupheadertexts [\vtop{\startalignment[center]\HeadR\stopalignment}] [pagenumber] [pagenumber] [\vtop{\startalignment[center]\HeadL\stopalignment}] \starttext \chapter{X} \section{One} \dorecurse{9}{\input ward \par} % \dorecurse{5}{\input ward \par} %\dorecurse{2}{\input tufte \par} \page \strut\page \dorecurse{2}{\input tufte \par} \section{Two} \dorecurse{11}{\input ward \par} \page \section{Three} \dorecurse{11}{\input ward \par} \stoptext ___ 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] \startsetups amd \startJSpreamble
Am 10.03.2011 um 15:13 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: I fell a bit confused as normally such names are enclosed in brackets; thus I'd rather expect syntax like: \startsetups[thumbs] ... \stopsetups You can write \startsetups[long name with spaces] ... \stopsetups or \startsetups shortname ... \stopsetups Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header entries semi-wrong
Am 06.03.2011 um 11:56 schrieb Steffen Wolfrum: Hi, please run the minimal example attached: --on page 1 there is section 1.1 one and you get the header entry 1.1 one - on page 3 there is still section 1.1 one and you get the header entry 1.2 one (- ?!) - on page 5 there is section 1.2 two and you get the header entry 1.2 two you see the problem? the getmarking behaves correctly (one/one/two) while the headnumber is confused (1.1/1.2/1.2))! Is this a bug or am I doing something wrong? TeX reads always more text than it needs for a page and in your example the “Section 1.2” was seen by TeX when it was building page 3 although it didn’t fit and was postponed till page 4. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startsetups amd \startJSpreamble
... Thanks for the explanation. You can write \startsetups[long name with spaces] ... \stopsetups or \startsetups shortname ... \stopsetups Wolfgang I guess the same approach in general, so also: \startJSpreamble[MyStuff used later] Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] \setuppublications problem
Hi all, Using the last mkiv from the minimals, \setuppublications seems out of order. If I write: .. \setupbibtex [database=/home/jean/biblio] \setuppublications[alternative=apa] \starttext {\bf Bibliography} \nocite[foo, bla, blu] \placepublications \stoptext ... the pub list is empty. But if comment out this line the bibliography is printed; it works also ok with \setuppublications[] -- Jean ___ 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] \startsetups amd \startJSpreamble
Am 10.03.2011 um 15:32 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: I guess the same approach in general, so also: \startJSpreamble[MyStuff used later] No, you need braces here, e.g. \startJSpreamble {Mystuff used later} ... Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header entries semi-wrong
Am 10.03.2011 um 15:26 schrieb Wolfgang Schuster: Am 06.03.2011 um 11:56 schrieb Steffen Wolfrum: Hi, please run the minimal example attached: --on page 1 there is section 1.1 one and you get the header entry 1.1 one - on page 3 there is still section 1.1 one and you get the header entry 1.2 one (- ?!) - on page 5 there is section 1.2 two and you get the header entry 1.2 two you see the problem? the getmarking behaves correctly (one/one/two) while the headnumber is confused (1.1/1.2/1.2))! Is this a bug or am I doing something wrong? TeX reads always more text than it needs for a page and in your example the “Section 1.2” was seen by TeX when it was building page 3 although it didn’t fit and was postponed till page 4. Sure, but why does TeX write 1.2 one? The second part one is correct ... Why can't both parts be synchronized (correctly of course!)?? Steffen ___ 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] header entries semi-wrong
Of course, manually tweaking helps. Only, one needs to see that here is a page where tweaking is needed! And this is the problem: The head says 1.2 one, but it should be 1.1 one! First I trusted the automated head entries, then I realized it can be wrong and now I skim typeset books before sending them to printer. But when skimming a book it is quite likely to not-see the wrong 1 when seeing the correct one! Is there no way to automatically get the correct number information 1.1 that is corresponding to the correct text entry one?? \getmarking[section] provides the right information, \headnumber[section] is too far in border cases ... Isn't there a command that gets the number that belongs to the text of \getmarking[section] Steffen Am 10.03.2011 um 15:16 schrieb Willi Egger: I agree with Luigi, after using different length and \page I was able to produce correct output. According to me your example is probably a border case. Willi On 10 Mar 2011, at 14:59, luigi scarso wrote: On Thu, Mar 10, 2011 at 2:38 PM, Steffen Wolfrum cont...@st.estfiles.de wrote: Am 06.03.2011 um 11:56 schrieb Steffen Wolfrum: --on page 1 there is section 1.1 one and you get the header entry 1.1 one - on page 3 there is still section 1.1 one and you get the header entry 1.2 one (- ?!) - on page 5 there is section 1.2 two and you get the header entry 1.2 two you see the problem? the getmarking behaves correctly (one/one/two) while the headnumber is confused (1.1/1.2/1.2))! Could some maybe please have look at my test file (see original post): Is this asynchronoushead a bug or am I simply doing something wrong?? I don't know, but with \dorecurse{2}{\input tufte \par} \page \section{Two} things go better. -- luigi \showframe \setupbodyfont[postscript, 10pt]\setupinterlinespace[line=12pt] \definepapersize[Pape][width=14.7cm,height=22.3cm] \setuppapersize[Pape][Pape] \setuplayout [width=113mm,height=572pt\relax, backspace=17mm,topspace=17mm, header=12pt,headerdistance=6pt, footer=36pt,footerdistance=0pt, location=middle,marking=off] \setupwhitespace[halfline] \setuppagenumbering [alternative=doublesided,location=] \setupheader[align=middle] \mainlanguage[de] \def\HeadL{Part {\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[EbeneEins]} \def\HeadR{\headnumber[section]\enskip\getmarking[section][current]} \setupheadertexts [\vtop{\startalignment[center]\HeadR\stopalignment}] [pagenumber] [pagenumber] [\vtop{\startalignment[center]\HeadL\stopalignment}] \starttext \chapter{X} \section{One} \dorecurse{9}{\input ward \par} % \dorecurse{5}{\input ward \par} %\dorecurse{2}{\input tufte \par} \page \strut\page \dorecurse{2}{\input tufte \par} \section{Two} \dorecurse{11}{\input ward \par} \page \section{Three} \dorecurse{11}{\input ward \par} \stoptext ___ 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 ___ ___ 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] header entries semi-wrong
Am 10.03.2011 um 15:48 schrieb Steffen Wolfrum: Sure, but why does TeX write 1.2 one? The second part one is correct ... Why can't both parts be synchronized (correctly of course!)?? It’s because \headnumber is macro expansion which happens when TeX collects material for the page and \getmarking use TeX’s mark mechanism which is meant for elements which are added after the page is finished. Here is a example which shows a problem with expansion: \setuplayout[lines=10] \def\foo{foo} \appendtoks\gdef\foo{bar}\to\everyaftershipout \starttext \dorecurse{20}{\foo\par} \stoptext What you can do is to create a new mark with \definemarking where you set \headnumber and which you then use in the header. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header entries semi-wrong
Am 10.03.2011 um 15:55 schrieb Steffen Wolfrum: Isn't there a command that gets the number that belongs to the text of \getmarking[section] \getmarking[sectionnumber] % partnumber, chapternumber etc. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header entries semi-wrong
On Thu, Mar 10, 2011 at 3:59 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 10.03.2011 um 15:55 schrieb Steffen Wolfrum: Isn't there a command that gets the number that belongs to the text of \getmarking[section] \getmarking[sectionnumber] % partnumber, chapternumber etc. Wolfgang Right: this works ok. \showframe \setupbodyfont[postscript, 10pt]\setupinterlinespace[line=12pt] \definepapersize[Pape][width=14.7cm,height=22.3cm] \setuppapersize[Pape][Pape] \setuplayout [width=113mm,height=572pt\relax, backspace=17mm,topspace=17mm, header=12pt,headerdistance=6pt, footer=36pt,footerdistance=0pt, location=middle,marking=off] \setupwhitespace[halfline] \setuppagenumbering [alternative=doublesided,location=] \setupheader[align=middle] %\def\HeadL{Part {\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[section][first]}%[EbeneEins]} %\def\HeadR{\headnumber[section]\enskip\getmarking[section][first]} \def\HeadL{Part {\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[EbeneEins]} \def\HeadR{\getmarking[sectionnumber]\enskip\getmarking[section]} \setupheadertexts [\vtop{\startalignment[center]\HeadR\stopalignment}] [pagenumber] [pagenumber] [\vtop{\startalignment[center]\HeadL\stopalignment}] \starttext \chapter{X} \section{One} \page x \page \dorecurse{5}{\input ward \par} \dorecurse{2}{\input tufte \par} \section{Two} \dorecurse{11}{\input ward \par} \stoptext -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header entries semi-wrong
Am 10.03.2011 um 15:59 schrieb Wolfgang Schuster: Am 10.03.2011 um 15:55 schrieb Steffen Wolfrum: Isn't there a command that gets the number that belongs to the text of \getmarking[section] \getmarking[sectionnumber] % partnumber, chapternumber etc. Yes! \getmarking[sectionnumber] This one I have been seeking for so long now. Wolfgang, the Living ConTeXt Reference :o) Thank you so much for your response! Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ConTeXt in MiKTeX
Hello. I need ConTeXt Mark IV environment on a USB stick because I don´t have administrative rights over the computer. The operating system is windows. I downloaded MiKTex 2.9 portable (Texworks) and ConTeXt package but I can not get it run. I've searched on the web how configurate Texworks but I did not find a manual. Could you help me? Thanks. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Line spacing on a cover page
To me the space between 'Freed' and 'by' looks awkward: \starttext \startalignment[left] \bgroup \switchtobodyfont[72pt] {\ss Freed \par by \par Design} \egroup \stoptext -- Should I be using \start..\stoplines ? or is this a bug? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt in MiKTeX
On Thu, Mar 10, 2011 at 18:26, Carlos Breton Besnier wrote: Hello. I need ConTeXt Mark IV environment on a USB stick because I don´t have administrative rights over the computer. The operating system is windows. I downloaded MiKTex 2.9 portable (Texworks) and ConTeXt package but I can not get it run. I've searched on the web how configurate Texworks but I did not find a manual. Somebody would have to test, but one thing that is sure is that at every location where you plan to put the USB stick you will have to run luatools --generate and context --make before compiling the document. This has been fixed recently, but is not part of MikTeX yet. Where exactly do you get stuck? Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Line spacing on a cover page
2011/3/10 John Haltiwanger john.haltiwan...@gmail.com To me the space between 'Freed' and 'by' looks awkward: \starttext \startalignment[left] \bgroup \switchtobodyfont[72pt] {\ss Freed \par by \par Design} \egroup \stoptext -- Should I be using \start..\stoplines ? or is this a bug? It could be just an impression. By the way, how abou this instead: \starttext \startalignment[left] \definedfont[Sans at 72pt] {Freed \blank by \blank Design} \stopalignment \stoptex This way, you can control how much blank space you want. Regards, Vedran Miletić ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt in MiKTeX
2011/3/10 Mojca Miklavec mojca.miklavec.li...@gmail.com On Thu, Mar 10, 2011 at 18:26, Carlos Breton Besnier wrote: Hello. I need ConTeXt Mark IV environment on a USB stick because I don´t have administrative rights over the computer. The operating system is windows. I downloaded MiKTex 2.9 portable (Texworks) and ConTeXt package but I can not get it run. I've searched on the web how configurate Texworks but I did not find a manual. Somebody would have to test, but one thing that is sure is that at every location where you plan to put the USB stick you will have to run luatools --generate and context --make before compiling the document. This has been fixed recently, but is not part of MikTeX yet. Where exactly do you get stuck? Mojca In the beginning: ! Undefined control sequence l.1 \starttext I can´t configure texworks. ___ 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] Line spacing on a cover page
Am 10.03.2011 um 18:28 schrieb John Haltiwanger: \startalignment[left] \bgroup \switchtobodyfont[72pt] {\ss Freed \par by \par Design} \egroup \startlines[align=flushright,style={\switchtobodyfont[72pt,ss]}] Freed by Design \stoplines Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Line spacing on a cover page
Thanks Verdan and Wolfgang. As I suspected, \startlines was the way to go. On Thu, Mar 10, 2011 at 6:56 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 10.03.2011 um 18:28 schrieb John Haltiwanger: \startalignment[left] \bgroup \switchtobodyfont[72pt] {\ss Freed \par by \par Design} \egroup \startlines[align=flushright,style={\switchtobodyfont[72pt,ss]}] Freed by Design \stoplines 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] +tlig fails sometimes in mkiv
On 5-3-2011 5:24, Ulrike Fischer wrote: On c.t.t. there was a discussion about the TeX-ligatures -- and --- for endash and emdash. It seems that the luaotfload/context code fails for some font/mode combination: For some fonts +tlig works with both modes, some works only with mode=base, and there was also a report of font which doesn't work at all (Frutiger LT 55 Roman). E.g. on my PC +tlig works for Arial (c:/windows/fonts/Arial.ttf) tested with a current context minimals only with mode=base. \font\test=Arial:mode=node;+tlig \font\testb=Arial:mode=base;+tlig \starttext \test -- --- abc %fails \testb -- --- abc %works \stoptext \bye this is a side effect of there being two hyphens, think of: \char 45\char 45 \char173\char173 \char173\char 45 \char 45\char173 \char 45\char 45\char 45 \char173\char173\char173 \char173\char 45\char 45 \char 45\char173\char173 fixed in next beta Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] fonts.enc.reencodings works with latex but not with context
On 9-3-2011 5:34, Ulrike Fischer wrote: I'm now trying to find out how to setup things so that context users could also benefit from the reencoding. But the equivalent code of the code working with latex doesn't work in context this feature is indeed not part of context 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] Am not getting Roman numeral page numbers in MKIV
The following code is intended to produce lower-case Roman numeral page numbers for the first 3 pages before switching to Hindu-Arabic numerals starting with the Introduction. However, I get Hindu-Arabic numerals instead of the lower-case Roman numerals page numbers. \definehead [intro][chapter] \setuphead [intro][number=no] \setuppagenumbering [state=start, conversion=romannumerals, location=bottom] \startsectionblockenvironment[frontpart] \definecombinedlist [content][intro,chapter,section] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \stopsectionblockenvironment \startsectionblockenvironment[backmatter] \stopsectionblockenvironment \starttext \setuppagenumber[state=start] \startfrontmatter %sample front matter \input knuth \completecontent[alternative=c,criterium=all] \chapter{Preface} \input knuth \stopfrontmatter \startbodymatter \setuppagenumber[state=start,conversion=number,number=1] \intro{Introduction} \input knuth \setupheadnumber[chapter][0] %resets first chapter number to 1 \chapter{I Was Born} \input knuth \chapter{I Observe} \input knuth \stopbodymatter \startbackmatter \stopbackmatter \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] \copypages and friends
Hello Hans, I believe that there is a bug or something has changed from Context version 14 february and version 25 february. While in the older version the commands \insertpages and \copypages work as expected, the newest beta simply ignores the commands. There is no error message. Kind regards Willi ___ 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] Verbatim text: intext colors (mkiv)
Hi, When using verbatim text (for source code) in mkiv: Line numbers in the text as well as /BTEX … /ETEX (for colors) don't work. It is fine using mkii. Attached the two minimal examples. Adam \setupcolors[state=start] \starttext %% SC colors %% \definecolor [SCwhite] [r=1.0, g=1.0, b=1.0] \definecolor [SCblack] [r=0.0, g=0.0, b=0.0] \definecolor [SCblue] [r=0.0, g=0.0, b=0.75] \definecolor [SCred] [r=0.75, g=0.0, b=0.0] \definecolor [SCgrey] [r=0.376, g=0.376, b=0.376] \definecolor [SCgreen] [r=0.0, g=0.45, b=0.0] \definecolor[cirmaBlue] [r=.0,g=.2,b=.6] \defineframedtext [framedSC] [framecolor=cirmaBlue, strut=yes, offset=2mm, width=local, align=right] \definetyping[SC][option=commands, tab=2,numbering=line, before={\startframedSC}, after={\stopframedSC}] \startSC /BTEX{\color[SCred] an example starting with a comment}/ETEX /BTEX{\color[SCgrey] ``this is a string''}/ETEX .postln ; /BTEX{\color[SCgreen] \letterbackslash aSymbol}/ETEX ; /BTEX{\color[SCblue] ThisClassDoesNotExists}/ETEX ; \stopSC \stoptext \starttext \defineframedtext [framedcode] [strut=yes, offset=2mm, width=7cm, align=right] \definetyping[code][numbering=line, bodyfont=small, before={\startframedcode}, after={\stopframedcode}] \setuplinenumbering[location=intext] \startcode This is the first line This is a rather long line that is wrapped, so look how the line numbering is done Another line Last line after an empty line \stopcode \stoptext ___ 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] Roman numeral page numbers produced in MKII
After posting the message about the following code not generating lower-case Roman numeral page numbers, I tested the code with MKII and it works fine. There must be a difference in how page number conversion is done between MKII and MKIV. \definehead [intro][chapter] \setuphead [intro][number=no] \setuppagenumbering [state=start, conversion=romannumerals, location=bottom] \startsectionblockenvironment[frontpart] \definecombinedlist [content][intro,chapter,section] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \stopsectionblockenvironment \startsectionblockenvironment[backmatter] \stopsectionblockenvironment \starttext \setuppagenumber[state=start] \startfrontmatter %sample front matter \input knuth \completecontent[alternative=c,criterium=all] \chapter{Preface} \input knuth \stopfrontmatter \startbodymatter \setuppagenumber[state=start,conversion=number,number=1] \intro{Introduction} \input knuth \setupheadnumber[chapter][0] %resets first chapter number to 1 \setuppagenumbering [state=start, conversion=numbers, location=bottom] \chapter{I Was Born} \input knuth \chapter{I Observe} \input knuth \stopbodymatter \startbackmatter \stopbackmatter \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Itemize not breaking across pages?
The trouble arises when I put my tables into narrower, framedtext so as to be able to force proper indentation: \starttext \startitemize[n] \dorecurse{20}{\item This is a test \startnarrower[left] \startframedtext[frame=off,offset=overlay] \starttables[|l|l|l|l|l|l|l|l|] \NC (a) \NC Problem 1 \NC (b) \NC Problem 2 \NC (c) \NC Problem 3 \NC (d) \NC Problem 4 \NC\NR \noalign{\blank[3mm]} \NC (e) \NC Problem 5 \NC (f) \NC Problem 6 \NC (g) \NC Problem 7 \NC (h) \NC Problem 8 \NC\NR \stoptables \stopframedtext \stopnarrower} \stopitemize \stoptext On the other hand, the file: \starttext \startitemize[n] \dorecurse{20}{\item This is a test \starttables[|l|l|l|l|l|l|l|l|] \NC (a) \NC Problem 1 \NC (b) \NC Problem 2 \NC (c) \NC Problem 3 \NC (d) \NC Problem 4 \NC\NR \noalign{\blank[3mm]} \NC (e) \NC Problem 5 \NC (f) \NC Problem 6 \NC (g) \NC Problem 7 \NC (h) \NC Problem 8 \NC\NR \stoptables} \stopitemize \stoptext breaks across pages properly, but the tables aren't properly aligned at the left. cheers, Alasdair On Thu, Mar 10, 2011 at 9:01 PM, Hans Hagen pra...@wxs.nl wrote: On 10-3-2011 8:10, Alasdair McAndrew wrote: I am setting up notes and exercises for my students. Each set of exercises is in an itemize environment, and each \item consists of a table of problems. The trouble is, the itemize doesn't break across pages - I have to put manual page breaks in. small example needed - 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 - -- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew ___ 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] Am not getting Roman numeral page numbers in MKIV
Dear Tom, Please add following lines in the preamble, then you will get roman numerals. \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] Also I use \startstructureblockenvironment[backpart] instead of \startsectionblockenvironment[backmatter]. cheers, and enjoy ConTeXt! Dalyoung ___ 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 ___