Re: [NTG-context] Problem with cross references
On Sat, Aug 7, 2010 at 6:54 PM, Thomas Schmitz wrote: Robert Blackstone blackstone.rob...@gmail.com wrote: Hi all, I would like to get some advice concerning a problem, or rather a nuisance, with internal references. Difficult to analyze, of course, but one thing that occurred to me: are you using a proper project structure, with the chapters as components, as described in chapter 2.3 of the manual, or just using \input for the chapters? Right now, I'm editing a book (~ 300 pages) with cross-references between chapters, and I don't see any of the problems you describe. Btw, the version of TeXshop is irrelevant to the problem, but you may want to update your minimals. Thomas Thank you, I updated the minimals, thrashed all auxiliary files, ran my project again and everything worked right from the start. Best regards, Robert Blackstone ___ 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] referenceformat, text
Hi! The following code: \definereferenceformat[lem][text=Lemma] \inlem[lem:mylemma] produces just a number, no Lemma prefix. I've sent a patch to fix it a while ago. Could you please apply it, or tell me why you don't want to apply it? -- Yury G. Kudryashov--- a/tex/texmf-context/tex/context/base/strc-ref.mkiv 2010-05-21 15:44:04.0 +0400 +++ b/tex/texmf-context/tex/context/base/strc-ref.mkiv 2010-05-31 22:18:38.0 +0400 @@ -983,10 +983,13 @@ {\ifx\next\bgroup \afterassignment\doinatreferenceonetwo \expandafter\leftreferencetoks - \else + \else\ifx\textofreference\empty \leftreferencetoks\emptytoks - \expandafter\dodoinatreferencenone - \fi} + \expandafter\expandafter\expandafter\dodoinatreferencenone + \else + \leftreferencetoks{\textofreference}% + \expandafter\expandafter\expandafter\doinatreferenceonetwo + \fi\fi} \def\doinatreferenceonetwo {\futurelet\next\doinatreferencetwo} ___ 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] 949 more named colors
Hi, I've put up a small script that generates color definitions from Randall Munroe's color survey for use with ConTeXt.[1] This yields 949 more rgb colors that might be more adequately labeled than e.g. those from X11. You can find it at http://bitbucket.org/phg/xcs-colors/ From the usage notes: --8--- [1] Go somewhere safe, where you have writing permissions. [2] texlua conv.lua colo-xcs.tex [3] For a preview, create a file “testcol.tex” with your favourite editor: FILE testcol.tex · \setupcolor[xcs] \setupcolors[state=start] \starttext \showcolor[xcs] \stoptext · END testcol.tex · [4] context testcol.tex --8--- Have fun, Philipp [1] http://blog.xkcd.com/2010/05/03/color-survey-results/ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpLLOOb0U7aM.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] abbreviations as macros (Aditya Mahajan)
Message: 5 Date: Sat, 7 Aug 2010 11:10:21 -0400 (EDT) From: Aditya Mahajan [ To: mailing list for ConTeXt users Subject: Re: [NTG-context] abbreviations as macros Message-ID: [ Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Sat, 7 Aug 2010, ivo welch wrote: If you never need to use a full form of the abbreviation, then you can just use the same in ConTeXt. The equivalent of \ensuremath is \math; everything else is the same. \define\NPV{\text{NPV\math{_0}} I would, however, write this slightly differently (even in LaTeX) as \math{\text{NPV}_0} but that is just a stylistic issue. Is there a recommended way to do this on conTeXt? The usual way of defining abbreviations in ConTeXt is \abbreviation [NPV] {\math{\text{NPV}_0}} {full form} Then you can use \NPV\ for a short form of the abbreviation and \infull{NPV} for the full form. The advantage is that you can also get a list of used abbreviations. Aditya Hi Aditya, can you tell me how I can ensure as in AMSmath that the font size in abbreviations automatically match the font size of current text? see my example below. Best Armin EXAMPLE \definealternativestyle[ImportantStyle][{\definedfont[Kurier-Bold at 24pt]}] \definetextbackground[zhu] [location=paragraph, background=color,backgroundcolor=orange, leftoffset=0.5\bodyfontsize,rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize,bottomoffset=.5\bodyfontsize, style=ImportantStyle, frame=off] \startsetups important:start \starttextbackground[zhu] \stopsetups \startsetups important:stop \endgraf \stoptextbackground \stopsetups \definestartstop [important] [before=\setups{important:start}, after=\setups{important:stop}] \abbreviation [NPV] {\math{\text{NPV}}} {full form} \starttext this looks normal $x$, \NPV. \startimportant this looks bad \mathematics{x}, \NPV. \stopimportant this looks normal $x$, \NPV. \stoptext END EXAMPLE ___ WEB.DE DSL SOMMER-SPECIAL: Surf Phone Flat 16.000 für nur 19,99 ¿/mtl.!* http://web.de/DSL-Doppel-Flatrate/ ___ 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] hack needed (MkIV)
On 6-8-2010 8:22, Steffen Wolfrum wrote: Am 06.08.2010 um 19:40 schrieb Hans Hagen: On 6-8-2010 7:01, Steffen Wolfrum wrote: Could you give an example on this (thresholds for ht and dp), please? % none don't enlarge % halfline enlarge by halfline/halfline This I know, only I don't understand the syntax ;o) Is this 0.8 the threshold you mentioned ... \definegridsnapping[\v!strict] [\v!maxdepth:0.8,\v!maxheight:0.8,\v!strut] or 0.8 in here ... \definegridsnapping[\v!broad][\v!maxheight,\v!maxdepth,\v!strut,0.8] Or is the second kind of abbreviation for the first? indeed in mkii we had all kind of keywords, here we have sets that provide more control And even more interesting: what does local do, I mean really? % localuse local interline space Do I have local interline space in my example? normally grids will obey the global settings, local settings can be handy when building boxes with different spacing that then are snapped globally as a whole (section heads already have a grid key for local settings and more constructs will have them0 - 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] referenceformat, text
On 8-8-2010 2:44, Yury G. Kudryashov wrote: Hi! The following code: \definereferenceformat[lem][text=Lemma] \inlem[lem:mylemma] produces just a number, no Lemma prefix. I've sent a patch to fix it a while ago. Could you please apply it, or tell me why you don't want to apply it? because it needs another patch, i'll look at it - 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] abbreviations as macros (Aditya Mahajan)
On Sun, 8 Aug 2010, Armin Varmaz wrote: Hi Aditya, can you tell me how I can ensure as in AMSmath that the font size in abbreviations automatically match the font size of current text? see my example below. Best Armin EXAMPLE Shorter example showing what goes wrong: \definealternativestyle[ImportantStyle] [{\definedfont[Kurier-Bold at 24pt]}] \defineframedtext[important][style=ImportantStyle] \starttext \startimportant Math $x$ does not scale \stopimportant \stoptext The reason is that you only specified how to scale text. To get the right math scaling you have to use \switchtobodyfont. You can go about it in two ways \defineframedtext[important][style={\switchtobodyfont[24pt]\ImportantStyle}] (which will scale the math font, but not change it to Kurier-Bold). Or you can define a typescript for kurier-bold (see type-otf for examples), and then use \usetypescript[kurier-bold] \defineframedtext[important][style={\switchtobodyfont[kurier-bold,24pt]}] 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] referenceformat, text
Hans Hagen wrote: On 8-8-2010 2:44, Yury G. Kudryashov wrote: Hi! The following code: \definereferenceformat[lem][text=Lemma] \inlem[lem:mylemma] produces just a number, no Lemma prefix. I've sent a patch to fix it a while ago. Could you please apply it, or tell me why you don't want to apply it? because it needs another patch, i'll look at it It applies with some shift (GNU patch resolves this automatically), and works here. ___ 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] referenceformat, text
On 8-8-2010 7:19, Yury G. Kudryashov wrote: Hans Hagen wrote: On 8-8-2010 2:44, Yury G. Kudryashov wrote: Hi! The following code: \definereferenceformat[lem][text=Lemma] \inlem[lem:mylemma] produces just a number, no Lemma prefix. I've sent a patch to fix it a while ago. Could you please apply it, or tell me why you don't want to apply it? because it needs another patch, i'll look at it It applies with some shift (GNU patch resolves this automatically), and works here. this is only one case (we also need labels, content, left and right to work ok) - 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] referenceformat, text
Hans Hagen wrote: On 8-8-2010 7:19, Yury G. Kudryashov wrote: Hans Hagen wrote: On 8-8-2010 2:44, Yury G. Kudryashov wrote: Hi! The following code: \definereferenceformat[lem][text=Lemma] \inlem[lem:mylemma] produces just a number, no Lemma prefix. I've sent a patch to fix it a while ago. Could you please apply it, or tell me why you don't want to apply it? because it needs another patch, i'll look at it It applies with some shift (GNU patch resolves this automatically), and works here. this is only one case (we also need labels, content, left and right to work ok) At least left and right work ok without any patch. ___ 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] referenceformat, text
On 8-8-2010 7:40, Yury G. Kudryashov wrote: this is only one case (we also need labels, content, left and right to work ok) I uploaded a beta that handles the following as intended. \starttext \definereferenceformat [intesta] [left=(,right=),text=Whatever~] \definereferenceformat [intestb] [left=(,right=),label=figure] \placeformula[x]\startformula a \stopformula \starttabulate[|] \NC \in [x] \NC \in {left}[x] \NC \in {}{right}[x] \NC \in {left}{right}[x] \NC \NR \NC \intesta[x] \NC \intesta{left}[x] \NC \intesta{}{right}[x] \NC \intesta{left}{right}[x] \NC \NR \NC \intestb[x] \NC \intestb{left}[x] \NC \intestb{}{right}[x] \NC \intestb{left}{right}[x] \NC \NR \stoptabulate \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] referenceformat, text
Am 09.08.10 00:22, schrieb Yury G. Kudryashov: I see no left or right in the first string in PDF output. Just 1\t1\t1\t1. Try it again later, it takes always a while till the beta is in the minimals. Other strings work as expected except for ~ in text= field. In the earlier versions ~ was inserted automatically. For example, http://wiki.contextgarden.net/References suggests \definereferenceformat[insec][text=section] Am I right that the main difference between text and label (in the new version) is that context automatically uppercases label and adds ~ after it? No, the label key takes whatever you set with \setuplabeltext[language][figure=...] and in the default value for figure is 'Figure ' with a space after the string. 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] referenceformat, text
On 9-8-2010 12:22, Yury G. Kudryashov wrote: \NC \in [x] \NC \in {left}[x] \NC \in {}{right}[x] \NC \in {left}{right}[x] \NC \NR I see no left or right in the first string in PDF output. Just 1\t1\t1\t1. sure, as \in has no left and right (nor a setup) - 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] Some Experiences
Hi all, I do a lot of LaTeX writing as my stuff is very math intensive, but I have a lot of interest in ConTeXt as I would like my books to look better. Anyway, I try on and off to get ConTeXt running so I can experiment. I just spent a pleasurable day playing. Here is what I found. It was pretty easy to install the newest minimals. I just followed the instructions and installed it in a local place separate from my texlive2009 installation. I spent a lot of time with a direct update of ConTeXt into my texlive2009 folder (yes, I know I was doomed but I was on a roll). I found the usual errors running either luatools --generate or mtxrun --generate and also context --make All the files needed to make this work are actually installed, but the problem is the way luatools finds stuff and caches it. Something is wrong there. The files that are in the folder can't be located. Also, with my local minimals installed and trying to add ConTeXt to my texlive2009, luatools seemed to find the ConTeXt stuff from both minimals and texlive2009. That was not good, but temporarily removing the minimals did not change the bad results, still I have no idea how to get luatools to ignore the minimals folder when it is setting up the cache. Finally, this all started because I am tired of my bad chemical drawings in my books and wanted to use the package m-ch-en in LaTeX. The original context supplied with texlive2009 wouldn't let me compile a m-ch-en source so since I am still heavily using LaTeX, I wanted to update luatex, context etc to see if I could get it to work. I still can't use context from texlive2009, but with my updates I can compile m-ch-en source. So at least a small win. The ConTeXt stuff is fascinating and I am moving towards it, but I need to do it in baby steps and I need to do it with a concomittant LaTeX installation. So I will eagerly await any sort of a fix for a LaTeX/ConTeXt combined world while I continue to learn and move away for LaTeX. As a long time user of LaTeX, I know its limitations very well and ConTeXt will allow me to do more interesting things. Keep up the good work. I read the digest every day and look around the wiki too. Thanks! Jim Peterson ___ 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] al...@0, etc, from plain.tex
There's a plain TeX package (bussproofs.sty from CTAN; I realize that the file ends with .sty but it's intended to work in plain TeX) that I'm trying to get working with ConTeXt. I'm stuck at one point though: the package has the statements \def\newcount{\al...@0\count\countdef\insc@unt} \def\newdimen{\al...@1\dimen\dimendef\insc@unt} \def\newskip{\al...@2\skip\skipdef\insc@unt} \def\newbox{\al...@4\box\chardef\insc@unt} ConTeXt complains because it doesn't know what al...@0, etc., are. Any advice for how to import this functionality from plain.tex into ConTeXt? thanks, Jesse ___ 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 ___