[NTG-context] [***SPAM***] trouble with kerncharacters
Hi, I noticed that after the command \kerncharacters, I can not use the normal sequence "---" for em-dash. Is there any work around of this effect? Thanks. \starttext One monolithic symbol: --- \kerncharacters[.5] Three separate symbol: --- \stoptext -- Dmitriy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to prevent moving figure on the next page?
I found a solution that suits me: \setuphead[chapter][page=] -- Dmitriy 07.08.2013, 15:51, "Dmitriy Tokarev" : > Hi list, > > I need help to undestand this effect: If setuphead[chapter][page=no] and > after figure start a new chapter, than figure is moved to the page 2, > although on page 1 space is enough. Thanks. > > \setuppapersize[A5][A5] > \setupbodyfont[10pt] > \setuphead[chapter][page=no] > \showframe > > \starttext > \chapter {One} > > \dorecurse{2}{\input{knuth}} > > \placefigure[here][figure]{Description} > {\externalfigure[figure][width=5cm,height=2.0cm]} > > % if setuphead[chapter][page=no] and this comment transform to text, than > figure moves to page 1. What do I need to figure always placing on page 1? > > \chapter {Two} > > \stoptext > > -- > Dmitriy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to prevent moving figure on the next page?
Hi list, I need help to undestand this effect: If setuphead[chapter][page=no] and after figure start a new chapter, than figure is moved to the page 2, although on page 1 space is enough. Thanks. \setuppapersize[A5][A5] \setupbodyfont[10pt] \setuphead[chapter][page=no] \showframe \starttext \chapter {One} \dorecurse{2}{\input{knuth}} \placefigure[here][figure]{Description} {\externalfigure[figure][width=5cm,height=2.0cm]} % if setuphead[chapter][page=no] and this comment transform to text, than figure moves to page 1. What do I need to figure always placing on page 1? \chapter {Two} \stoptext -- Dmitriy ___ 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] [***SPAM***] Re: Setup font size by dimension variable
04.08.2013, 16:49, "Philipp Gesang" : >> the size-related arguments to \switchtobodyfont and >> \setupbodyfont aren’t real TeX dimensions but identifiers for >> predefined bodyfont sets. Example: >> >> \def\mainfontsize{20pt} >> \definebodyfontenvironment [\mainfontsize] >> >> \starttext >> TEXT >> \switchtobodyfont [\mainfontsize] >> TEXT 20pt >> \stoptext >> >> See this thread for some background info: >> >> http://www.mail-archive.com/ntg-context@ntg.nl/msg63901.html > > Sorry for the self-reply, but I just remembered that I already > wikified the topic: > > http://wiki.contextgarden.net/unexpected_behavior#Treacherous_Dimensions > Thanks, Philipp! Now I realized that before the first use of "switchtobodyfont" I need to write "definebodyfontenvironment". In this case, everything is fine. I also found another way without definebodyfontenvironment: \definemeasure[AAA][20.123pt] \newdimen\BBB \BBB=25.127pt \starttext TEXT % ok \normalizebodyfontsize\normalizedAAA{\measure{AAA}} \switchtobodyfont[\normalizedAAA] AAA \normalizedAAA % ok \normalizebodyfontsize\normalizedBBB\BBB \switchtobodyfont[\normalizedBBB] BBB \normalizedBBB \stoptext Is this code correct? Or it's better for some reason using "definebodyfontenvironment"? -- Dmitriy ___ 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] Setup font size by dimension variable
Hi all, I want to set the font size by using the dimension variable, but it doesn't work. What am I doing wrong? \definemeasure[AAA][20pt] \newdimen\BBB \BBB=20pt \starttext TEXT % don't work \switchtobodyfont[\measure{AAA}] AAA % don't work \switchtobodyfont[\the\BBB] BBB % ok \switchtobodyfont[20pt] TEXT 20pt \stoptext -- Dmitriy ___ 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] Error using xtable
Hello all, I experimented with xtables and found the following effect: This code is ok: \starttext \startxtable \startxrow \startxcell \input ward \stopxcell \stopxrow \stopxtable \stoptext But this compiled with an error: \starttext \startxtable %\startxtablebody \startxrow \startxcell \input ward \stopxcell \stopxrow \stopxtable \stoptext Log file: system > tex > error on line 0 in file : Emergency stop ... <*> cont-yes.mkiv *** (job aborted, no legal \end found) ! ==> Fatal error occurred, no output PDF file produced! Is this a bug or a feature? -- Dmitriy ___ 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] [***SPAM***] Shifting table header when using overlay
Hi All, I'm trying to get a table header with such bottom border: || I plan to use an overlay to overlap the the internal borders of the cells. But in this case, the table header somehow slightly shifted to the left relative to the body (see attachment). Is it possible to remove this effect? Or maybe there is another way to achieve the desired border? Thanks. \startuseMPgraphic{MP:thickBtm} draw (0,2pt)--(OverlayWidth,2pt) withpen pensquare scaled 1pt withcolor red; clip currentpicture to OverlayBox; setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay[OL:thickBtm][\useMPgraphic{MP:thickBtm}] \starttext \bTABLE \setupTABLE[align=middle] \setupTABLE[header][background={foreground,OL:thickBtm}] % \bTABLEhead\bTR\dorecurse{3}{\bTH#1\eTH}\eTR\eTABLEhead \bTABLEbody\dorecurse{6}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR}\eTABLEbody \eTABLE \stoptext -- Dmitriy table.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Learning ConTeXt from the Ground Up
> To gather information about ConTeXt I have > - read the ConTeXt Reference Manual (http://pmrb.free.fr/contextref.pdf) > - bought a couple of the published books by Hans Hagen > - started reading the "TeX book" by Donald Knuth In addition to the "TeX book" you might be interested in "TeX for the Impatient": http://www.ctan.org/pkg/impatient see top of p.8 for recommendations for reading. -- Dmitriy ___ 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 ___