[NTG-context] Centering a figure vertically on a page
Hello, the subject line basically covers my problem: I have a large (tikz) figure, and I want to have it by itself on a page, centered both horizontally and vertically. How can I achieve this? I already know that \setuppagenumber[state=stop] is a good idea, and \midaligned{...} gives me horizontal centering; what about vertical? The problem is that the figure is larger than the text area (and this doesn't bother me, it's a game board and it may extend almost to the paper border), so \vfill doesn't work (and \vss doesn't, either). TIA -- Marcin Borkowski http://mbork.pl ___ 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] Centering a figure vertically on a page
Am 03.07.2012 um 13:21 schrieb Marcin Borkowski: Hello, the subject line basically covers my problem: I have a large (tikz) figure, and I want to have it by itself on a page, centered both horizontally and vertically. How can I achieve this? I already know that \setuppagenumber[state=stop] is a good idea, and \midaligned{...} gives me horizontal centering; what about vertical? The problem is that the figure is larger than the text area (and this doesn't bother me, it's a game board and it may extend almost to the paper border), so \vfill doesn't work (and \vss doesn't, either). \starttext %\noheaderandfooterlines \centerbox{\externalfigure[cow]} \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 ___
Re: [NTG-context] Centering a figure vertically on a page
Dnia 2012-07-03, o godz. 13:30:22 Wolfgang Schuster schuster.wolfg...@gmail.com napisał(a): Am 03.07.2012 um 13:21 schrieb Marcin Borkowski: Hello, the subject line basically covers my problem: I have a large (tikz) figure, and I want to have it by itself on a page, centered both horizontally and vertically. How can I achieve this? I already know that \setuppagenumber[state=stop] is a good idea, and \midaligned{...} gives me horizontal centering; what about vertical? The problem is that the figure is larger than the text area (and this doesn't bother me, it's a game board and it may extend almost to the paper border), so \vfill doesn't work (and \vss doesn't, either). \starttext %\noheaderandfooterlines \centerbox{\externalfigure[cow]} \stoptext Wolfgang Thanks a lot, it works! -- Marcin Borkowski http://mbork.pl ___ 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] [***SPAM***] quotationmarks just before new line
Hello, It frequently happens to me that a new line in an output-document starts just after a quotation mark. So I encounter lines in my ConTeX-created .pdf like: And the prince of Denmark spoke: ' ?how weary, stale, flat, and unprofitable seem to me all the uses of this world!' Its hard to say how often this happens but I'd say its roughly every 50 quotations. A minimal example to see the problem in action: (also onhttp://pastebin.com/cEMiGZju) \mainlanguage [de] \setuppapersize[A4] \setuplayout[width=6cm] \setupquotation [1] [left=, right=] \setupquote [1] [left=, right=] \starttext \language[de] Bereiche der\quotation{waren transparent, so dass} man auf. \quotation{die darunterliegenden} Grafiken sehen konnte. \quotation{Die Paletten konnten mit der} nicht-dominanten \quotation{Hand bewegt werden} %gibberish content \stoptext I'm using LiveTex 2011/LuaTex typeset but the problem can be reproduced using the example code athttp://live.contextgarden.net/ and the XeTeX-Setting. Is there any fix to this problem? You have to add \nobreak between the quotation mark and the text, e.g. \setupdelimitedtext[quotation][1][left=?\nobreak] but I can give you better answer when you tell use why do you want to change the delimiters as shown above because ? and ? are the default symbols for german when you use \quotation. Wolfgang Hello, Thanks! That did the job as far as I can see. I did set the Quotation Marks manually since I considered to change them to Guillemets (?» «) later. 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] Centering a figure vertically on a page
On Tue, 3 Jul 2012 13:30:22 +0200 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: \centerbox{\externalfigure[cow]} Wow! \centerbox{} Alan ___ 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] quotationmarks just before new line
Am 03.07.2012 um 15:03 schrieb d_jan: Hello, Thanks! That did the job as far as I can see. I did set the Quotation Marks manually since I considered to change them to Guillemets (» «) later. When you want to change the quotation marks it’s better to change them with \setuplanguage and set the right sign for the current level with \symbol[…quotation] and \symbol[…quote]. \setuplanguage [de] [ leftquotation=», rightquotation=«, leftquote=›, rightquote=‹] \mainlanguage[de] \starttext text \quotation{text} text \quote{text} text text \quotation{text \quote{text} text} text text \quotation{text \quotation{text} text} text \setupdelimitedtext[quotation:1][left={\symbol[leftquotation]},right={\symbol[rightquotation]}] \setupdelimitedtext[quotation:2][left={\symbol[leftquote]}, right={\symbol[rightquote]}] text \quotation{text \quotation{text} text} text \stoptext BTW: There is a change in the way how to set the values for a certain delimited text level in MkIV as shown above. 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] Centering a figure vertically on a page
On 3-7-2012 15:10, Alan BRASLAU wrote: On Tue, 3 Jul 2012 13:30:22 +0200 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: \centerbox{\externalfigure[cow]} Wow! \centerbox{} It's a rather (old) low level boxing macro ... \start \showboxes \centerbox width 10cm height 3cm {Alan is surprised} \stop .. simulating the regular tex syntax for box dimensions 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] Centering a figure vertically on a page
On Tue, 3 Jul 2012 15:48:43 +0200 Hans Hagen pra...@wxs.nl wrote: It's a rather (old) low level boxing macro ... \start \showboxes \centerbox width 10cm height 3cm {Alan is surprised} \stop My TeX culture remains, alas, always limited (even if I have the TeXbook on my office bookshelf, indeed \centerbox does not appear in plain TeX). Nothing in the ConTeXt manual, either. Of course, a leisurely browsing of the source code would reveal many such treasures! On the garden: Context 2005.05.25 ... \centerbox now accepts \par in it;s argument ... Alan ___ 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] Centering a figure vertically on a page
On Tue, 3 Jul 2012, Alan BRASLAU wrote: plain TeX). Nothing in the ConTeXt manual, either. Of course, a leisurely browsing of the source code would reveal many such treasures! supp-box.mkiv is a good place to start a leisurely browsing of the source code. It contains many useful box manipuation macros. 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] Centering a figure vertically on a page
On Tue, Jul 3, 2012 at 5:27 PM, Alan BRASLAU alan.bras...@cea.fr wrote: On Tue, 3 Jul 2012 15:48:43 +0200 Hans Hagen pra...@wxs.nl wrote: It's a rather (old) low level boxing macro ... \start \showboxes \centerbox width 10cm height 3cm {Alan is surprised} \stop My TeX culture remains, alas, always limited (even if I have the TeXbook on my office bookshelf, indeed \centerbox does not appear in plain TeX). Nothing in the ConTeXt manual, either. Of course, a leisurely browsing of the source code would reveal many such treasures! There is also \vcenter \starttext xxg\ruledvbox{\hsize=5cm\vcenter to 3cm{Alan is surprised}}gx \type{\vcenter}\par xxg\ruledvbox{\centerbox width5cm height3cm{Alan is surprised}}gx \type{\centerbox}\par xxg\ruledvbox{\vcenter{\centerbox width5cm height3cm{Alan is surprised}}}gx\type{\centerbox+\vcenter}\par \stoptext (\vcenter is a TeX primitive) -- 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] Centering a figure vertically on a page
Am 03.07.2012 um 18:04 schrieb luigi scarso: On Tue, Jul 3, 2012 at 5:27 PM, Alan BRASLAU alan.bras...@cea.fr wrote: On Tue, 3 Jul 2012 15:48:43 +0200 Hans Hagen pra...@wxs.nl wrote: It's a rather (old) low level boxing macro ... \start \showboxes \centerbox width 10cm height 3cm {Alan is surprised} \stop My TeX culture remains, alas, always limited (even if I have the TeXbook on my office bookshelf, indeed \centerbox does not appear in plain TeX). Nothing in the ConTeXt manual, either. Of course, a leisurely browsing of the source code would reveal many such treasures! There is also \vcenter \starttext xxg\ruledvbox{\hsize=5cm\vcenter to 3cm{Alan is surprised}}gx \type{\vcenter}\par xxg\ruledvbox{\centerbox width5cm height3cm{Alan is surprised}}gx \type{\centerbox}\par xxg\ruledvbox{\vcenter{\centerbox width5cm height3cm{Alan is surprised}}}gx\type{\centerbox+\vcenter}\par \stoptext (\vcenter is a TeX primitive) ConTeXt redefines \vcenter because the primitive can only be used in math mode. 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] Centering a figure vertically on a page
On Tue, Jul 3, 2012 at 6:08 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 03.07.2012 um 18:04 schrieb luigi scarso: On Tue, Jul 3, 2012 at 5:27 PM, Alan BRASLAU alan.bras...@cea.fr wrote: On Tue, 3 Jul 2012 15:48:43 +0200 Hans Hagen pra...@wxs.nl wrote: It's a rather (old) low level boxing macro ... \start \showboxes \centerbox width 10cm height 3cm {Alan is surprised} \stop My TeX culture remains, alas, always limited (even if I have the TeXbook on my office bookshelf, indeed \centerbox does not appear in plain TeX). Nothing in the ConTeXt manual, either. Of course, a leisurely browsing of the source code would reveal many such treasures! There is also \vcenter \starttext xxg\ruledvbox{\hsize=5cm\vcenter to 3cm{Alan is surprised}}gx \type{\vcenter}\par xxg\ruledvbox{\centerbox width5cm height3cm{Alan is surprised}}gx \type{\centerbox}\par xxg\ruledvbox{\vcenter{\centerbox width5cm height3cm{Alan is surprised}}}gx\type{\centerbox+\vcenter}\par \stoptext (\vcenter is a TeX primitive) ConTeXt redefines \vcenter because the primitive can only be used in math mode. yes I know ... and original TeX primitive is still available as \normalvcenter (kind of easter egg for Alan..) -- 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] Centering a figure vertically on a page
Am 03.07.2012 um 18:19 schrieb luigi scarso: (\vcenter is a TeX primitive) ConTeXt redefines \vcenter because the primitive can only be used in math mode. yes I know ... and original TeX primitive is still available as \normalvcenter (kind of easter egg for Alan..) All primitives are available as \normal… and sometimes it’s the only way to use them because the names are used for other commands, e.g. \unexpanded. 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] itemize behaviour
I do not understand the workings of the itemize. What I want is two nested itemlists. The outer one unpacked, the inner one packed. In the inner one the itemlist should be joinedup with the text before it. I do not get this working, see the examples. The inner list is separated from the Intro to inner list. It looks like the joinedup in the second example has no effect, because deleting it makes no difference. Switching the joinedup over to the outer itemize in the third example pulls everything together and destroys the unpacked of the first list. How to achieve the following? -- - Intro to inner list o one inner list o two inner list - second outer item -- Hans van der Meer \starttext \setupitemgroup[itemize][1][unpacked][symbol=4] \setupitemgroup[itemize][2][unpacked][symbol=5] \startitemize \startitem Intro to inner list. \startitemize \startitem one inner list \stopitem \startitem two inner list \stopitem \stopitemize \stopitem \startitem second outer item \stopitem \stopitemize \blank\thinrule\blank \setupitemgroup[itemize][1][unpacked][symbol=4] \setupitemgroup[itemize][2][packed,joinedup][symbol=5] \startitemize \startitem Intro to inner list. \startitemize \startitem one inner list \stopitem \startitem two inner list \stopitem \stopitemize \stopitem \startitem second outer item \stopitem \stopitemize \blank\thinrule\blank \setupitemgroup[itemize][1][unpacked,joinedup][symbol=4] \setupitemgroup[itemize][2][packed][symbol=5] \startitemize \startitem Intro to inner list. \startitemize \startitem one inner list \stopitem \startitem two inner list \stopitem \stopitemize \stopitem \startitem second outer item \stopitem \stopitemize \stoptext itemize.pdf Description: itemize.pdf ___ 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] problem with aligncharacter=yes
Hi, This file generates an error (Missing control sequence inserted) with the latest beta version: --8---cut here---start-8--- \starttext \bTABLE[aligncharacter=yes] \bTR \bTD 3.3 \eTD \eTR \eTABLE \stoptext --8---cut here---end---8--- -- Peter ___ 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] clutter with \start and \stop
Hi, Say I want Tufte in 2 columns and Knuth in 1 column: --8---cut here---start-8--- \starttext \startcolumns[n=2] \startsection[title=Tufte] \input tufte \stopsection \startsection[title=Tufte and Knuth] \input tufte \stopcolumns \input knuth % \startcolumns[n=1] knuth \stopcolumns does not work \startcolumns[n=2] \input tufte \stopsection \stopcolumns \stoptext --8---cut here---end---8--- It works, but isn't this a bit ugly to mix up the \starts and \stops ? In XML, that would be wrong. Is this just the normal ConTeXt way, or is there a cleaner method? TIA for any hints, -- Peter ___ 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 ___