[NTG-context] Marginal heads and non-text sections
I'm having trouble understanding space inserted around itemize and TABLE objects. I found some great advice from the mailing list archives, and managed to cobble together a setup that *almost* works. Now I have only two problems. I welcome any help. First: In the example below, the word monkey creates no vertical space---even if it's commented out, there's no change in the space between Title and alpha. I'd like to tighten that space up---I've been resorting to \vskip{-10ex}, but surely there's a way to not put that space there in the first place. I'm already using packed,intro,joinedup for the itemize in an attempt to shove it as high as possible; is there another way? Second: in the same example, the Second subject does not appear. Uncommenting the llama doesn't make any surprising difference (well, it moves the table down, showing that tables don't have the space-filling property of itemizes), but uncommenting the apricot does cause the Second subject to appear. How can I force the Second subject to appear next to the table? Thank you for any help. \setuphead[subject][alternative=text,distance=0pt,command=\MyHead] \setupinmargin[style=\setupinterlinespace] \def\MyHead#1#2{\margintitle[low]{\rotate{#1 #2}}} \setupitemize[packed,intro,joinedup,KR] \starttext \title{Title} \subject{First} monkey \startitemize[columns] \item alpha \item beta \item gamma \stopitemize \subject{Second} %llama \bTABLE \bTR \bTD One \eTD \eTR \eTABLE \stoptext -- Brian Sniffen http://evenmere.org/~bts/ b...@evenmere.org ___ 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] Marginal heads and non-text sections
Am 12.10.2010 um 16:39 schrieb Brian Sniffen: I'm having trouble understanding space inserted around itemize and TABLE objects. I found some great advice from the mailing list archives, and managed to cobble together a setup that *almost* works. Now I have only two problems. I welcome any help. First: In the example below, the word monkey creates no vertical space---even if it's commented out, there's no change in the space between Title and alpha. I'd like to tighten that space up---I've been resorting to \vskip{-10ex}, but surely there's a way to not put that space there in the first place. I'm already using packed,intro,joinedup for the itemize in an attempt to shove it as high as possible; is there another way? The position of the itemize doesn’t change because \subject starts a new line and “monkey” is only the first visible word in this line, change the subject definition to \setuphead[subject][alternative=command,command=\MyHead] and the position of the itemize is now correct. Second: in the same example, the Second subject does not appear. Uncommenting the llama doesn't make any surprising difference (well, it moves the table down, showing that tables don't have the space-filling property of itemizes), but uncommenting the apricot does cause the Second subject to appear. How can I force the Second subject to appear next to the table? Force horizontal mode for the table with \dontleavehmode\bTABLE Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] vertical space between \framed’ s
Hi, how do I get rid of the space between two consecutive framed texts? In the following example: ···8 \def\testbox{\framed[frame=on,width=2em,height=2em]{A\par}} \setupinterlinespace[0pt] \starttext \testbox\testbox \stoptext ···8 there’s still a vertical gap that I thought I eliminated by switching off the interlinespace. Thanks for any recommendations, Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpTm9pgniNyv.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] vertical space between \framed ’s
Am 13.10.2010 um 10:54 schrieb Philipp Gesang: Hi, how do I get rid of the space between two consecutive framed texts? In the following example: ···8 \def\testbox{\framed[frame=on,width=2em,height=2em]{A\par}} \setupinterlinespace[0pt] \starttext \testbox\testbox \stoptext ···8 there’s still a vertical gap that I thought I eliminated by switching off the interlinespace. Thanks for any recommendations, I think its \interlineskip: \testbox\nointerlineskip\testbox Greeting Andreas ___ 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] vertical space between \framed’s
On 2010-10-13 10:58:51, Andreas Harder wrote: Am 13.10.2010 um 10:54 schrieb Philipp Gesang: Hi, how do I get rid of the space between two consecutive framed texts? In the following example: I think its \interlineskip: \testbox\nointerlineskip\testbox Thanks, that does it. Is there, perhaps, an ‘official’ setup for this? Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpSZ8z8sGgBP.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] vertical space between \framed ’s
Am 13.10.2010 um 11:25 schrieb Philipp Gesang: \testbox\nointerlineskip\testbox Thanks, that does it. Is there, perhaps, an ‘official’ setup for this? The small space is inserted by *TeX* and you shouldn’t change this at the global level. To disable \interlineskip at a local range you can write \bgroup\offinterlineskip \testbox \testbox \testbox ... \egroup 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] vertical space between \framed’s
On 2010-10-13 11:33:24, Wolfgang Schuster wrote: Am 13.10.2010 um 11:25 schrieb Philipp Gesang: \testbox\nointerlineskip\testbox Thanks, that does it. Is there, perhaps, an ‘official’ setup for this? The small space is inserted by *TeX* and you shouldn’t change this at the global level. To disable \interlineskip at a local range you can write \bgroup\offinterlineskip \testbox \testbox \testbox ... \egroup OK, thanks, I’ll be careful! Philipp 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpms1x2ielrg.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 ___
[NTG-context] A few puzzling problems (bugs?) with enumerations
Hi, using the latest beta, I've had a bunch of problems using enumerations in mkiv. Earlier betas have had the same problems. Consider the following document: \defineenumeration [definition] [text=Definition, title=yes, list=all, listtext={Definition }] \defineenumeration [theorem] [text=Theorem, title=yes, style=italic, list=all, number=definition, listtext={Theorem }] \defineenumeration [proof] [ text=Proof, number=no, headstyle=italic, title=no, closesymbol={\mathematics{\square}}, style=normal] \starttext blah blah \startdefinition{foo} body1 \stopdefinition \startdefinition body2 \stopdefinition \startdefinition[-] body3 \stopdefinition \starttheorem $P = NP$ \stoptheorem \startproof too long to fit here. \stopproof \section{Inside sections} \subsection{Inside subsections} \startdefinition{foo} body1 \stopdefinition \startdefinition body2 \stopdefinition \startdefinition[-] body3 \stopdefinition \starttheorem[thm:pnp] $P = NP$ \stoptheorem \startproof too long to fit here. \stopproof Let's talk about \in{theorem}[thm:pnp]. \stoptext I see five problems : 1. Even when the enumeration has no title, the parentheses appear. Judging by Aditya's code in his MyWay on theorems, it used to be that when there is no title, the parens don't appear. How do I recover this behaviour? 2. I want the theorem enumeration to share its number with the definition environment. That doesn't seem to work. Outside of any section, the theorem just doesn't have any number. Inside a section, the theorem very oddly displays the section number. 3. I want the proof enumeration to have no number. That doesn't work inside a section. As for the theorem enumeration, the section number is printed even though here i requested no number at all! 4. Suppressing the number for a specific enumeration using the [-] switch doesn't work. As before, inside a section, the section number appears instead of no number. 5. Citing a specific theorem using \in{theorem}[thm:pnp] doesn't show the number of a theorem. I'm guessing the last four points are all related. Best regards, Mathieu ___ 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] Error in simplefonts
Am 11.10.2010 um 03:28 schrieb Aditya Mahajan: Hi Wolfgang, \definesimplefont fails in the latest beta. Minimal example: Fixed! \usemodule[simplefonts] \definesimplefont[FontinBold] [Fontin][alternative=bold, size=16pt] \definesimplefont[FontinItalic] [Fontin][alternative=italic, size=24pt] \definesimplefont[FontinRegular][Fontin][alternative=regular,size=sa 2] \starttext \FontinBoldA \FontinItalic A \FontinRegular A \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \setfontfeature-problem
Hi all, please have a look at my example: \definefontfeature[default][default][mode=node,onum=yes] \definefontfeature[sc][default][smcp=yes] \def\sc{\groupedcommand{\setfontfeature{sc}}{}} \setupbodyfont[palatino] \starttext \startTEXpage[offset=1ex] {\sc Abc} 0369 \crlf \sc{Abc} 0369 \stopTEXpage \startTEXpage[offset=1ex] 0369 {\sc Abc} 0369 \crlf 0369 \sc{Abc} 0369 \stopTEXpage \stoptext It seems that if a line starts with \sc{…} the onum-option is ignored. Is there a solution? Greeting Andreas ___ 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] A few puzzling problems (bugs?) with enumerations
Also, I notice that the context reference manual from the svn repository at supelec has the same problem when built with the latest beta (p 241). -- Mathieu On Wed, Oct 13, 2010 at 12:08 PM, Mathieu Boespflug 0xbadc...@gmail.com wrote: Hi, using the latest beta, I've had a bunch of problems using enumerations in mkiv. Earlier betas have had the same problems. Consider the following document: \defineenumeration [definition] [ text=Definition, title=yes, list=all, listtext={Definition }] \defineenumeration [theorem] [ text=Theorem, title=yes, style=italic, list=all, number=definition, listtext={Theorem }] \defineenumeration [proof] [ text=Proof, number=no, headstyle=italic, title=no, closesymbol={\mathematics{\square}}, style=normal] \starttext blah blah \startdefinition{foo} body1 \stopdefinition \startdefinition body2 \stopdefinition \startdefinition[-] body3 \stopdefinition \starttheorem $P = NP$ \stoptheorem \startproof too long to fit here. \stopproof \section{Inside sections} \subsection{Inside subsections} \startdefinition{foo} body1 \stopdefinition \startdefinition body2 \stopdefinition \startdefinition[-] body3 \stopdefinition \starttheorem[thm:pnp] $P = NP$ \stoptheorem \startproof too long to fit here. \stopproof Let's talk about \in{theorem}[thm:pnp]. \stoptext I see five problems : 1. Even when the enumeration has no title, the parentheses appear. Judging by Aditya's code in his MyWay on theorems, it used to be that when there is no title, the parens don't appear. How do I recover this behaviour? 2. I want the theorem enumeration to share its number with the definition environment. That doesn't seem to work. Outside of any section, the theorem just doesn't have any number. Inside a section, the theorem very oddly displays the section number. 3. I want the proof enumeration to have no number. That doesn't work inside a section. As for the theorem enumeration, the section number is printed even though here i requested no number at all! 4. Suppressing the number for a specific enumeration using the [-] switch doesn't work. As before, inside a section, the section number appears instead of no number. 5. Citing a specific theorem using \in{theorem}[thm:pnp] doesn't show the number of a theorem. I'm guessing the last four points are all related. Best regards, Mathieu ___ 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] structuresectionstarterset ?
Hi, as definestructureconversionset is such a convenient command, could we also have the accompanying structuresectionstarterset and structuresectionstopperset? \definestructureconversionset [default] [ ,Characters,Romannumerals,Numbers,characters,charcharacters][numbers] \definestructuresectionstarterset [default] [ , , , , ,{(}][{.}] \definestructuresectionstopperset [default] [ ,{.},{.},{)},{)},{)}][{.}] Best wishes, 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] \setfontfeature-problem
On 13/10/10 12:48, Andreas Harder wrote: Hi all, please have a look at my example: \definefontfeature[default][default][mode=node,onum=yes] \definefontfeature[sc][default][smcp=yes] \def\sc{\groupedcommand{\setfontfeature{sc}}{}} \setupbodyfont[palatino] \starttext \startTEXpage[offset=1ex] {\sc Abc} 0369 \crlf \sc{Abc} 0369 \stopTEXpage \startTEXpage[offset=1ex] 0369 {\sc Abc} 0369 \crlf 0369 \sc{Abc} 0369 \stopTEXpage \stoptext It seems that if a line starts with \sc{…} the onum-option is ignored. Is there a solution? \setfontfeature deletes all other features; try \addfontfeaturetoset or \addfontfeaturetofont instead (not sure what the difference is). -- Michael Murphy ___ 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] structure sanity checks
Using \startchapter\stopchapter or \startitem\stopitem could present some logical advantage over the use of \chapter or \item, for example. However, it would be useful to have some sort of sanity check giving warnings at least if the \start\stop symmetry is violated. As a minimal example, the following simple case of one logical error leads to an undesired result. Of course, you get what you asked, but some sort of warning could be useful. Or, rather, is the general philosophy to silently pass over such errors so as not to load down the log in the face of such user errors? Indeed, under ConTeXt, unknown or incorrect arguments are simply ignored. (in other cases, for example forgetting \stoptext, ConTeXt protests vocally) Alan \starttext \startitemize [n] \startitem first \startitem \startitem second \stopitem \stopitemize \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 ___
Re: [NTG-context] structure sanity checks
On Wed, Oct 13, 2010 at 2:29 PM, Alan BRASLAU alan.bras...@cea.fr wrote: Using \startchapter\stopchapter or \startitem\stopitem could present some logical advantage over the use of \chapter or \item, for example. However, it would be useful to have some sort of sanity check giving warnings at least if the \start\stop symmetry is violated. As a minimal example, the following simple case of one logical error leads to an undesired result. Of course, you get what you asked, but some sort of warning could be useful. Or, rather, is the general philosophy to silently pass over such errors so as not to load down the log in the face of such user errors? Indeed, under ConTeXt, unknown or incorrect arguments are simply ignored. (in other cases, for example forgetting \stoptext, ConTeXt protests vocally) maybe enable xml export and check it with xmllint \setubackend[export=yes] see back-exp.mkiv -- 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] \setfontfeature-problem
On 13-10-2010 12:48, Andreas Harder wrote: It seems that if a line starts with \sc{…} the onum-option is ignored. Is there a solution? fixed in upcoming beta - 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] \setfontfeature-problem
Am 13.10.2010 um 14:40 schrieb Hans Hagen: On 13-10-2010 12:48, Andreas Harder wrote: It seems that if a line starts with \sc{…} the onum-option is ignored. Is there a solution? fixed in upcoming beta Thanks Hans! Andreas ___ 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] Temporary landscape
Hello, I need to typeset contents of a wide file. This works: --- \starttext \setuppapersize[A4,landscape][A4,landscape] \typefile[Dim]{Cha-MMax-iDL.txt} \page % RESTORE ORIGINAL PAGE SETTINGS AAA \stoptext --- And I'd like to find out how to restore previous page settings. I guess I could call something like \setuppapersize[A4][A4] at the place of RESTORE ORIGINAL PAGE SETTINGS, but I'd rather something independent (now I'd have to suppose that previous page is of A4 format). I'm thinking about like enclosing the \setuppapersize[A4,landscape][A4,landscape] \typefile[Dim]{../../Statics/Dim/Res/Cha-MMax-iDL.txt} into an environment or something. Maybe something like \setupenvironment[MyEnv][...] in the preamble and later \startenvironment[MyEnv] \setuppapersize[A4,landscape][A4,landscape] \typefile[Dim]{../../Statics/Dim/Res/Cha-MMax-iDL.txt} \stopenvironment Is there something like that? (Wiki: http://wiki.contextgarden.net/Reference/en/startenvironment is a bit empty.) 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;-+ ; Ponton (R) B - Beam v1.3d/2010-10-13, (C) 2002-2010 Ing. Lukas Prochazka, Pontex s. r. o. | ;-+ ; ; Sec.Name P. LC.Name Cat. N Mx.Cen My.Cen Con.A Con.Sig- C.Sg-.Per Re.AAr/A Re.Sig+ R.Sg+.Per M. Flags Use ;--- .000 1Cha-MMax 1 0 0 0 8.947 0 -18.000 0 0.000% 0 400.000 1 ? .325 1Cha-MMax 1 -0.0003 0.0159 0 8.947 -0.060590 -18.000 0.051472 0.575% 3.239 400.000 1 0.810% .650 1Cha-MMax 1 -0.0005 0.0636 0 8.947 -0.242535 -18.000 0.051472 0.575%13.000 400.000 1 3.25% 0001.350 1Cha-MMax 1 0.0231 -2.081 0 8.947-3.911 -18.000 0.051472 0.575%66.217 400.000 1 21.7% 0002.050 1Cha-MMax 1 0.0086 -4.221 0 8.947-7.934 -18.000 0.051472 0.575% 133.961 400.000 1 44.1% 0002.750 1Cha-MMax 1 0.0080 -5.799 0 8.947 -10.899 -18.000 0.051472 0.575% 183.979 400.000 1 60.6% 0003.450 1Cha-MMax 1 0.0074 -7.376 0 8.947 -13.864 -18.000 0.051472 0.575% 233.997 400.000 1 77.0% 0004.150 1Cha-MMax 1 0.0069 -8.358 0 8.947 -15.709 -18.000 0.051472 0.575% 265.119 400.000 1 87.3% 0004.850 1Cha-MMax 1 0.0063 -9.339 0 8.947 -17.554 -18.000 0.051472 0.575% 296.241 400.000 1 97.5% 0005.550 1Cha-MMax 1 0.0057 -9.638 0 8.947 -18.115 -18.000 0.051472 0.575% 305.712 400.000 1 .C.. 100.6% 0006.250 1Cha-MMax 1 0.0051 -9.937 0 8.947 -18.677 -18.000 0.051472 0.575% 315.183 400.000 1 .C.. 103.8% 0006.950 1Cha-MMax 1 0.0046 -9.616 0 8.947 -18.074 -18.000 0.051472 0.575% 305.003 400.000 1 .C.. 100.4% 0007.650 1Cha-MMax 1 0.0040 -9.295 0 8.947 -17.471 -18.000 0.051472 0.575% 294.823 400.000 1 97.1% 0008.350 1Cha-MMax 1 0.0034 -8.368 0 8.947 -15.729 -18.000 0.051472 0.575% 265.420 400.000 1 87.4% 0009.050 1Cha-MMax 1 0.0028 -7.441 0 8.947 -13.986 -18.000 0.051472 0.575% 236.017 400.000 1 77.7% 0009.750 1Cha-MMax 1 0.0023 -5.861 0 8.947 -11.017 -18.000 0.051472 0.575% 185.903 400.000 1 61.2% 0010.450 1Cha-MMax 1 0.0017 -4.281 0 8.947-8.047 -18.000 0.051472 0.575% 135.788 400.000 1 44.7% 0011.150 1Cha-MMax 1 0.0011 -2.109 0 8.947-3.964 -18.000 0.051472 0.575%66.888 400.000 1 22.0% 0011.850 1Cha-MMax 1 0.0005 0.0636 0 8.947 -0.243019 -18.000 0.051472 0.575%13.089 400.000 1 3.27% 0012.175 1Cha-MMax 1 0.0003 0.0159 0 8.947 -0.060832 -18.000 0.051472 0.575% 3.283 400.000 1 0.821% 0012.500 1Cha-MMax 1 0 0 0 8.947 0 -18.000 0 0.000% 0 400.000 1 ?
Re: [NTG-context] Temporary landscape
On 13-10-2010 3:22, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I need to typeset contents of a wide file. This works: --- \starttext \setuppapersize[A4,landscape][A4,landscape] \typefile[Dim]{Cha-MMax-iDL.txt} \page % RESTORE ORIGINAL PAGE SETTINGS AAA \stoptext You can wikify this: \setuplayout [location=middle] \showframe \def\PushPaperSize {\edef\PopPaperSize{\setuppapersize[\papersize][\printpapersize]}} \starttext \setuppapersize[A4][A3] test \page \PushPaperSize \setuppapersize[A4,landscape][A3,landscape] test \page \PopPaperSize test \page \stoptext - 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] Temporary landscape
On Wed, 13 Oct 2010, Hans Hagen wrote: On 13-10-2010 3:22, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I need to typeset contents of a wide file. This works: --- \starttext \setuppapersize[A4,landscape][A4,landscape] \typefile[Dim]{Cha-MMax-iDL.txt} \page % RESTORE ORIGINAL PAGE SETTINGS AAA \stoptext You can wikify this: \setuplayout [location=middle] \showframe \def\PushPaperSize {\edef\PopPaperSize{\setuppapersize[\papersize][\printpapersize]}} \starttext \setuppapersize[A4][A3] test \page \PushPaperSize \setuppapersize[A4,landscape][A3,landscape] test \page \PopPaperSize test \page \stoptext From my to be completed TUGboat article: \section {Changing paper size within a document} To get one page (containing a table or a figure) in landscape mode, you can use \type{\adaptpapersize}. For example, \starttyping \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape] [A4,landscape] \setuppapersize[main] \starttext Page 1. Potrait \page Page 2. Potrait \page \adaptpapersize[extra] Page 3. Landscape \page Page 4. Potrait \page \stoptext \stoptyping If you have a full page figure that you want to include in a landscape paper, you can combine \type{\adaptpapersize} with \CONTEXT's postponing mechanism. \starttyping \startpostponing \adaptpapersize[extra] \placefigure [here] [fig:reference] {The caption of the figure} {\extrenalgraphics[full-page-figure]} \page \stoppostponing \stoptyping The \type{postponing} environment postpones the figure until the next page. When the new page starts, \type{\adaptpapersize} changes to landscape mode. The \type{\page} is the end is to make sure even if some place is remaining on the page, we do not get any text there. To get more than one page in landscape, you can reuse \type{\setuppapersize}. For example, \starttyping \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape] [A4,landscape] \setuppapersize[main] \starttext Page 1. Potrait \page Page 2. Potrait \page \setuppapersize[extra] Page 3. Landscape \page Page 4. Landscape \page \setuppapersize[main] Page 5. Potrait \page Page 6. Potrait \page \stoptext \stoptyping 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 ___
[NTG-context] OpenType Math
Hi all, there are still some problems with OpenType math. I've collected some: % \setupbodyfont[palatino] % reference % \setupbodyfont[cambria] % \setupbodyfont[euler] \setupbodyfont[asana] \startTEXpage[offset=1ex] $n\choose k$ \crlf $1+\cdots+n$ \crlf $1+\frac{a}{b}$ \crlf $(a+b)\cdot\cdots\cdot(n+k)$ \stopTEXpage Please compare the output. math-palatino.pdf Description: Adobe PDF document math-asana.pdf Description: Adobe PDF document Greeting Andreas___ 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] Error in simplefonts
On Wed, 13 Oct 2010, Wolfgang Schuster wrote: Am 11.10.2010 um 03:28 schrieb Aditya Mahajan: Hi Wolfgang, \definesimplefont fails in the latest beta. Minimal example: Fixed! Thanks a lot. 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 ___
Re: [NTG-context] Temporary landscape
Thank you both for the suggestions. My final code looks like this: --- \def\PushPaperSize{\edef\PopPaperSize{\setuppapersize[\papersize][\printpapersize]}} \definehead[subjectLand][subject] \setuphead[subjectLand][before={\PushPaperSize\page},style=bold] \setuptyping[Dim][bodyfont=small,style={\ttx\setupinterlinespace}] \starttext \def\T#1#2{ \subjectLand{#1} \setuppapersize[A4,landscape][A4,landscape] \typefile[Dim]{../../Statics/Dim/Res/#2.txt} \typefile[Dim]{../../Statics/Dim/Res/#2.txt} % Just to test (= more than one page) \typefile[Dim]{../../Statics/Dim/Res/#2.txt} % Just to test (= more than one page) \page \PopPaperSize } \T{A}{ULS-MMax-iDL} \T{B}{ULS-MMax-iDL} \T{C}{ULS-MMax-iDL} \T{D}{ULS-MMax-iDL} AAA \stoptext --- I'd have one more question about page layout - let's have the following code: --- \showframe \starttext AAA \page \setuppapersize[A4,landscape][A4,landscape] BBB \page \setuppapersize[A4,landscape][A4,landscape] \setuplayout[topspace=3in] % How to change text height to keep the bottom print range? CCC \stoptext --- In this example, I changed the topsize by 2in, i.e. 3in (new value) - 1in (default = previous value). And I want to shorten the textheight by the same difference, i.e. by 2in (i.e. to keep the bottom range of print space). I know that I can set textheight directly - but I don't want to do so, I want this value to be computed from the change of the topsize. Is it possible somehow? Moreover, would it be possible by Lua code? Something like this (pseudo)code: --- \startluacode local ts, th = context.topspace, context.textheight local dif = 72 -- 72bp = 1in -- Or to call a conversion routine, e.g. in2bp(1), if it exists? ts = ts + dif th = th - dif context(string.format(\\setuplayout[topspace=%i,textheight=%i], ts, th)) -- or: context.setuplayout{topspace=ts, textheight=th} \stopluacode --- Best regards, Lukas On Wed, 13 Oct 2010 16:03:33 +0200, Aditya Mahajan adit...@umich.edu wrote: On Wed, 13 Oct 2010, Hans Hagen wrote: On 13-10-2010 3:22, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I need to typeset contents of a wide file. This works: --- \starttext \setuppapersize[A4,landscape][A4,landscape] \typefile[Dim]{Cha-MMax-iDL.txt} \page % RESTORE ORIGINAL PAGE SETTINGS AAA \stoptext You can wikify this: \setuplayout [location=middle] \showframe \def\PushPaperSize {\edef\PopPaperSize{\setuppapersize[\papersize][\printpapersize]}} \starttext \setuppapersize[A4][A3] test \page \PushPaperSize \setuppapersize[A4,landscape][A3,landscape] test \page \PopPaperSize test \page \stoptext From my to be completed TUGboat article: \section {Changing paper size within a document} To get one page (containing a table or a figure) in landscape mode, you can use \type{\adaptpapersize}. For example, \starttyping \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape] [A4,landscape] \setuppapersize[main] \starttext Page 1. Potrait \page Page 2. Potrait \page \adaptpapersize[extra] Page 3. Landscape \page Page 4. Potrait \page \stoptext \stoptyping If you have a full page figure that you want to include in a landscape paper, you can combine \type{\adaptpapersize} with \CONTEXT's postponing mechanism. \starttyping \startpostponing \adaptpapersize[extra] \placefigure [here] [fig:reference] {The caption of the figure} {\extrenalgraphics[full-page-figure]} \page \stoppostponing \stoptyping The \type{postponing} environment postpones the figure until the next page. When the new page starts, \type{\adaptpapersize} changes to landscape mode. The \type{\page} is the end is to make sure even if some place is remaining on the page, we do not get any text there. To get more than one page in landscape, you can reuse \type{\setuppapersize}. For example, \starttyping \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape] [A4,landscape] \setuppapersize[main] \starttext Page 1. Potrait \page Page 2. Potrait \page \setuppapersize[extra] Page 3. Landscape \page Page 4. Landscape \page \setuppapersize[main] Page 5. Potrait \page Page 6. Potrait \page \stoptext \stoptyping 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 ___
[NTG-context] entries in registerentry
Hi, I don't understand the concept of entries in registerentry :o( Say, you have this example: \starttext \placeregister[index] \page page 1 \setregisterentry[index] [entries:1={eins}, entries:2={zwei}, entries:3={drei}, label=range] \page page 2 text \page page 3 \finishregisterentry[index][label=range] text \stoptext Why does only have entries:3 the index range 2-4, both entries:1 and 2 are emtpy? What should I write in order to have all of those entries referering to the same 2-4? Best, 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] page breaks in cells?
Hi, Which kind table supports page breaks in cells? I have a simple, but long table: only two columns, but sometimes very long text in a cell... Thanks, 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] page breaks in cells?
Am 13.10.2010 um 23:34 schrieb Steffen Wolfrum: Hi, Which kind table supports page breaks in cells? tabulate 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] page breaks in cells?
... look at the date/time: This was almost instant reply! Great, thank you Wolfgang, Steffen Am 13.10.2010 um 23:35 schrieb Wolfgang Schuster: Am 13.10.2010 um 23:34 schrieb Steffen Wolfrum: Hi, Which kind table supports page breaks in cells? tabulate 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] page breaks in cells?
... look at the date/time: This was almost instant reply! It's still more than one minute... Arthur ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___