Re: [NTG-context] Context replacement for bibitem
Hi Peter, 2007/8/30, Peter Schorsch <[EMAIL PROTECTED]>: > Hi Wolfgang, > > > Replace this line with > > > > \expanded{\setupitemgroup[bibliography][1][n, > \currentmoduleparameter{itemspace}*broad]} > > Unluckily that is not working :-( I also tried: > > \setupitemgroup[bibliography][1][n > \expanded{\currentmoduleparameter{itemspace}}*broad] > > and > > \setupitemgroup[bibliography][1][n > \expandafter\currentmoduleparameter{itemspace}*broad] > > In all three tries I didn't got any error-break but the pdf showed directly > that the lines were not accepted. I attached my local version from yesterday plus my test documents and they work for me. > I posted the right-this-state module into the wiki: > http://wiki.contextgarden.net/Simple_Bibliography > > The mulilingual-interface I will try later.. but right now I am stocked with > this and the other listed points :-( > > I would be more than happy for any further hint :-) You should better you english names for your macros and not german ones or write to different versions. Wolfgang t-biblist.tex Description: TeX document biblist-test-1.tex Description: TeX document biblist-test-2.tex Description: TeX 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] value-copy - e.g. in \textreference
2007/8/30, Peter Schorsch <[EMAIL PROTECTED]>: > Hi, > > during my first tries of context-programming I bounced a couple of times > against a problem I am calling myself my value-copy-border. > > E.g. number is a register/variable that helps numbering some paragraphs. > Some of these paragraphs also should be cross-linked. But the pointer gets > always the value, number has at the point of the pointer - and not at the > point of the marked paragraph. > > How can I get just the value of a variable? - like currentsection in the > example: > > > \definenumber[number] > > \setuphead[chapter,section,subsection,subsubsection > [after={\resetnumber[number]}] > > \def\MyMark[#1] > {\textreference[#1]{Para. \currentheadnumber / \getnumber[number]}} \def\MyMark[#1]% {\expanded{\textreference[#1]{Para. \currentheadnumber / \getnumber[number]}}} > \definestartstop[MyPara] > [before= > {\blank[medium]\incrementnumber[number]% > \inothermargin{\getnumber[number]~}}, >after={\blank[medium]}] > > \starttext > > \section \section{...} > \startMyPara > blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla > blabla blabla blabla blabla > \stopMyPara > > \subsection \subsection{...} > \startMyPara > blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla > blabla blabla blabla blabla > \stopMyPara > > \startMyPara\MyMark[testmark] > blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla > blabla blabla blabla blabla > \stopMyPara > > \section > The Link should be [Abs. 1.1/2] but is \in[testmark] > %unluckily it is [Abs. 1.1/0] > > \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \starttable \stoptable and some math
On Fri, 31 Aug 2007, WN wrote: > >> Compiles fine here, using the "old" >> > I know it compiles, that is not the problem. But look closely at the output, > in the starttable/stoptable the \oiint is ''ignored but in the > startformula/stopformula it is shown. > So the starttable/stoptable is doing something , what I don't know. I see. I do not have the oiint in the the table, so something is wrong. The plain tex alignment works, so must be something that table is changing. \halign{\tabskip 3cm # \cr $\oiint \vec{E}$ & ${\rm div} \: \vec{E}$ \cr} \loggingall suggests that math collection is reset to default inside tables. So, a quick workaround: Change the collection from extra to default. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \starttable \stoptable and some math
> Compiles fine here, using the "old" > I know it compiles, that is not the problem. But look closely at the output, in the starttable/stoptable the \oiint is ''ignored but in the startformula/stopformula it is shown. So the starttable/stoptable is doing something , what I don't know. That is what I observed Wim > ConTeXt ver: 2007.08.24 14:18 MKII fmt: 2007.8.24 int: english/english > > So maybe something that changed recently. I cannot test with the > current version right now (have a hard deadline, do not want to mess > with the system...) > > 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \starttable \stoptable and some math
On Fri, 31 Aug 2007, WN wrote: > Hi, > > After recompiling a 1-year old document I stumbled on the following > (which used to work) > Some of math symbols in a table environment are ''ignored'' i.e are not > shown. > They do work outside the table environment though. > I think it has to do with some font switching in the table environment, but > cannot verify this. I also tried the bTABLE/eTABLE but same result. Compiles fine here, using the "old" ConTeXt ver: 2007.08.24 14:18 MKII fmt: 2007.8.24 int: english/english So maybe something that changed recently. I cannot test with the current version right now (have a hard deadline, do not want to mess with the system...) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with \starttable \stoptable and some math
Hi, After recompiling a 1-year old document I stumbled on the following (which used to work) Some of math symbols in a table environment are ''ignored'' i.e are not shown. They do work outside the table environment though. I think it has to do with some font switching in the table environment, but cannot verify this. I also tried the bTABLE/eTABLE but same result. Any help is welcome. Wim Version context TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6) \write18 enabled. (c:/Context/isoimage/usr/local/context/tex/texmf-mswin/web2c/natural.tcx) entering extended mode .. ConTeXt ver: 2007.07.29 22:06 MKII fmt: 2007.7.31 int: english/english Minimal test file (also checked on livecontext) \loadmapfile[original-youngryu-tx.map] \startmathcollection [extra] \definemathsymbol [oiint] [op] [mc] ["08] [mc] ["09] \definemathsymbol [oiiint] [op] [mc] ["29] [mc] ["2a] \definemathsymbol [ointctrclockwise][op] [mc] ["0A] [mc] ["0B] \definemathsymbol [ointclockwise] [op] [mc] ["0C] [mc] ["0D] \definemathsymbol [varointctrclockwise] [op] [mc] ["2B] [mc] ["2C] \definemathsymbol [varointclockwise][op] [mc] ["2D] [mc] ["2E] \definemathsymbol [iint][op] [mc] ["21] [mc] ["22] \definemathsymbol [iiint] [op] [mc] ["23] [mc] ["24] \definemathsymbol [nt] [op] [mc] ["25] [mc] ["26] \definemathsymbol [idotsint][op] [mc] ["27] [mc] ["28] \definemathsymbol [oiintctrclockwise] [op] [mc] ["40] [mc] ["41] \definemathsymbol [oiintclockwise] [op] [mc] ["48] [mc] ["49] \definemathsymbol [varoiintctrclockwise][op] [mc] ["4A] [mc] ["4B] \definemathsymbol [varoiintclockwise] [op] [mc] ["42] [mc] ["43] \definemathsymbol [oiiintctrclockwise] [op] [mc] ["44] [mc] ["45] \definemathsymbol [oiiintclockwise] [op] [mc] ["4C] [mc] ["4D] \definemathsymbol [varoiiintctrclockwise][op] [mc] ["4E] [mc] ["4F] \definemathsymbol [varoiiintclockwise] [op] [mc] ["46] [mc] ["47] % added 10-06-2007 \stopmathcollection \starttypescript [math] [modern,computer-modern,latin-modern,ams] [size] \definebodyfont [28pt,24pt,18pt,17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [mm] [mc=txexa sa 1] \stoptypescript \definetypeface[mainface] [rm] [serif] [times] [default] [encoding=texnansi] \definetypeface[mainface] [mm] [math] [modern] [modern] [encoding=texnansi] \setupbodyfont[mainface,11pt] \enablemathcollection[extra] \starttext \startformula \oiint \vec{E} \cdot d \vec{S} \ \stopformula $\oiint \vec{E} \cdot d \vec{S}$ \startitemize[a][stopper=)] \item De wet van Gauss \starttable[|lp(0.2\textwidth)|p(0.4\textwidth)|p(0.3\textwidth)|lp(0.3\textwidth)|] \NC \NC $\oiint \vec{E} \cdot d \vec{S}$ \NC ${\rm div} \: \vec{E} = etc. $ \NC extra tekst \NC \NR \stoptable \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: typo-fun
frantisek holop schrieb: > http://www.smashingmagazine.com/images/404-2/book.png Shouldn't page 404 be a left-hand page? Best regards, Stephan Hennig ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to get a commalist out of {}-brackets
On Thu, 30 Aug 2007, Peter Schorsch wrote: > Hi, > > I need to forward an embedded commalist to an subfunction. The problem: how > can I get rid of the {}-brackets to access the embedded commalist? > > The functions looks like: > > \def\function#1[#2] > {\getparameters[label][a=,b=,embedded=,#2] > subfunction[\labelembedded] \expanded{\subfunction[\labelembedded]} > ...} > > \def\subfunction#1[#2] > {\getparamters[label][a,c,#1] > \labela% will answer with emptyness > #2 % returns {a=,c=} ... but I need for the getparamteres a=,c= > ...} > > to call the function: > > \function[a=etwas,b=ddd,embedded={a=nochWas,c=hope}] 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] how to get a commalist out of {}-brackets
Hi, I need to forward an embedded commalist to an subfunction. The problem: how can I get rid of the {}-brackets to access the embedded commalist? The functions looks like: \def\function#1[#2] {\getparameters[label][a=,b=,embedded=,#2] subfunction[\labelembedded] ...} \def\subfunction#1[#2] {\getparamters[label][a,c,#1] \labela% will answer with emptyness #2 % returns {a=,c=} ... but I need for the getparamteres a=,c= ...} to call the function: \function[a=etwas,b=ddd,embedded={a=nochWas,c=hope}] ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] value-copy - e.g. in \textreference
Hi, during my first tries of context-programming I bounced a couple of times against a problem I am calling myself my value-copy-border. E.g. number is a register/variable that helps numbering some paragraphs. Some of these paragraphs also should be cross-linked. But the pointer gets always the value, number has at the point of the pointer - and not at the point of the marked paragraph. How can I get just the value of a variable? - like currentsection in the example: \definenumber[number] \setuphead[chapter,section,subsection,subsubsection [after={\resetnumber[number]}] \def\MyMark[#1] {\textreference[#1]{Para. \currentheadnumber / \getnumber[number]}} \definestartstop[MyPara] [before= {\blank[medium]\incrementnumber[number]% \inothermargin{\getnumber[number]~}}, after={\blank[medium]}] \starttext \section \startMyPara blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla \stopMyPara \subsection \startMyPara blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla \stopMyPara \startMyPara\MyMark[testmark] blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla \stopMyPara \section The Link should be [Abs. 1.1/2] but is \in[testmark] %unluckily it is [Abs. 1.1/0] \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color expansion (not colo-new related)
Hans Hagen schrieb: > Peter Rolf wrote: >> Hi all, >> >> I tried to seperate some style specific code to external variables. Most >> things work so far, but the expansion of color causes me problems. I >> must emphasize that this is no colo-new problem, as my code fails with >> the old colo-ini too. >> >> I have tried several things, but still no luck. What (expansion) magic >> is missing in my code? Any help is welcome. > > \def\GetFGcolor#1#2#3#4#5{% >\ifconditional\CondA > \ifconditional\CondC#4% > \else#5\fi >\else > \ifconditional\CondB#1% > \else >\ifconditional\CondC#2% >\else#3\fi > \fi >\fi} > > you introduce spaces > yes, stupid me :) > btw, often its easier to remap colors > > > > \def\test{\color[whatever]{some color}} > > \definecolor[whatever][green] test > \definecolor[whatever][red] test > > or to use palets or ... > I will think about it. Thanks Hans! > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using context with cweave
On Tue, 28 Aug 2007, John Luciani wrote: > On 8/28/07, luigi scarso <[EMAIL PROTECTED]> wrote: for screen >>> >>> ??? >> This is a new topicct for me; to compile, I have had a quick look >> inside m-cweb but >> nothing more. >> Actually I have no idea if one can have a screen version with some macro >> like \activateCWEB, I'm sorry. > > I appreciate your help. Thanks. > > The screen version example that I like is at > http://www.pragma-ade.com/itdemos/internal/cweb/cweb-scr.pdf Did you try: http://wiki.contextgarden.net/CWEB (the page says cweb is broken, but you got partial success, so worth a try) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Too small { in the fourier font
On 8/30/07, Hans Hagen <[EMAIL PROTECTED]> wrote: > George N. White III wrote: > > On 8/30/07, Mikael Persson <[EMAIL PROTECTED]> wrote: > > > >> Update: > >> > >> This seems to be a problem that is introduced after 20070403. I am > >> running that version at work (minimal installation on linux there > >> aswell), and there it looks OK with the fourier fonts. > > > > There have been some major changes in font handling. It turned out that > > the lm fonts didn't define a design size but apparently it didn't matter > > until > > quite recently, and then more recently a workaround was added. I wouldn't > > be surprised to see the problem in other fonts either because they use lm > > for some glyphs or because they were created using the same toolchain. > > indeed, the tex gyre fonts etc also suffer from this but in many cases > they default to 10 > > the lm/gyre authors are notified and will sort it out > > Hans > Thanks for your replies. The lm/gyre authors does not take care of the fourier fonts, right? What does this mean if one wants to use the fourier fonts? /Micke P ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Too small { in the fourier font
On Thu, 30 Aug 2007, Mikael Persson wrote: > Thanks, but if I try that, I dont get the fourier fonts at all, but > the lm ones (both home and at live.contextgarden.net). Sorry, did not notice that using texnansi encoding with fourier switches to lm. Probably the result of a fallback. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color expansion (not colo-new related)
Peter Rolf wrote: > Hi all, > > I tried to seperate some style specific code to external variables. Most > things work so far, but the expansion of color causes me problems. I > must emphasize that this is no colo-new problem, as my code fails with > the old colo-ini too. > > I have tried several things, but still no luck. What (expansion) magic > is missing in my code? Any help is welcome. \def\GetFGcolor#1#2#3#4#5{% \ifconditional\CondA \ifconditional\CondC#4% \else#5\fi \else \ifconditional\CondB#1% \else \ifconditional\CondC#2% \else#3\fi \fi \fi} you introduce spaces btw, often its easier to remap colors \def\test{\color[whatever]{some color}} \definecolor[whatever][green] test \definecolor[whatever][red] test or to use palets or ... - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Too small { in the fourier font
George N. White III wrote: > On 8/30/07, Mikael Persson <[EMAIL PROTECTED]> wrote: > >> Update: >> >> This seems to be a problem that is introduced after 20070403. I am >> running that version at work (minimal installation on linux there >> aswell), and there it looks OK with the fourier fonts. > > There have been some major changes in font handling. It turned out that > the lm fonts didn't define a design size but apparently it didn't matter until > quite recently, and then more recently a workaround was added. I wouldn't > be surprised to see the problem in other fonts either because they use lm > for some glyphs or because they were created using the same toolchain. indeed, the tex gyre fonts etc also suffer from this but in many cases they default to 10 the lm/gyre authors are notified and will sort it out Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Too small { in the fourier font
On 8/30/07, Mikael Persson <[EMAIL PROTECTED]> wrote: > Update: > > This seems to be a problem that is introduced after 20070403. I am > running that version at work (minimal installation on linux there > aswell), and there it looks OK with the fourier fonts. There have been some major changes in font handling. It turned out that the lm fonts didn't define a design size but apparently it didn't matter until quite recently, and then more recently a workaround was added. I wouldn't be surprised to see the problem in other fonts either because they use lm for some glyphs or because they were created using the same toolchain. > Another problem is given by $\hat f$. In the older one it looks OK, > but in the newer the hat is placed wrongly. New minimal example that > shows both these problems: > > > \usetypescript[fourier][ec] > \setupbodyfont[fourier,10pt] > > \starttext > \startformula > \hat f(x)= > \startcases > \NC 1 \MC x>0\NR > \NC 0 \MC x<0\NR > \stopcases > \stopformula > \stoptext > > > Any ideas? I don't want to switch back to ver 20070407 if it is not > necessary... I'd try the latest version first. Normally I have my systems configured with a separate texmf-cont tree that I link to cont-tmf- so I can very quickly switch versions. -- George N. White III <[EMAIL PROTECTED]> Head of St. Margarets Bay, Nova Scotia ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] color expansion (not colo-new related)
Hi all, I tried to seperate some style specific code to external variables. Most things work so far, but the expansion of color causes me problems. I must emphasize that this is no colo-new problem, as my code fails with the old colo-ini too. I have tried several things, but still no luck. What (expansion) magic is missing in my code? Any help is welcome. Peter \setupcolors[state=start] \newconditional\CondA \newconditional\CondB \newconditional\CondC % state dependend color \def\GetFGcolor#1#2#3#4#5{% \ifconditional\CondA \ifconditional\CondC#4 \else#5\fi \else \ifconditional\CondB#1 \else \ifconditional\CondC#2 \else#3\fi \fi \fi}% \starttext %\settrue\CondA %\settrue\CondB \settrue\CondC \setvariables[FOO][foregroundcolor=\GetFGcolor{red}{green}{blue}{lightgray}{darkgray}] \color[red]{color} is working. \edef\FGcolor{\getvariable{FOO}{foregroundcolor}} %\edef\FGcolor{\GetFGcolor{red}{green}{blue}{lightgray}{darkgray}} FGcolor=\FGcolor foregroundcolor= \color[\FGcolor]{\getvariable{FOO}{foregroundcolor}}% no color here \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context replacement for bibitem
Hi Wolfgang, > Replace this line with > > \expanded{\setupitemgroup[bibliography][1][n, \currentmoduleparameter{itemspace}*broad]} Unluckily that is not working :-( I also tried: \setupitemgroup[bibliography][1][n \expanded{\currentmoduleparameter{itemspace}}*broad] and \setupitemgroup[bibliography][1][n \expandafter\currentmoduleparameter{itemspace}*broad] In all three tries I didn't got any error-break but the pdf showed directly that the lines were not accepted. I posted the right-this-state module into the wiki: http://wiki.contextgarden.net/Simple_Bibliography The mulilingual-interface I will try later.. but right now I am stocked with this and the other listed points :-( I would be more than happy for any further hint :-) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Too small { in the fourier font
Update: This seems to be a problem that is introduced after 20070403. I am running that version at work (minimal installation on linux there aswell), and there it looks OK with the fourier fonts. Another problem is given by $\hat f$. In the older one it looks OK, but in the newer the hat is placed wrongly. New minimal example that shows both these problems: \usetypescript[fourier][ec] \setupbodyfont[fourier,10pt] \starttext \startformula \hat f(x)= \startcases \NC 1 \MC x>0\NR \NC 0 \MC x<0\NR \stopcases \stopformula \stoptext Any ideas? I don't want to switch back to ver 20070407 if it is not necessary... /Micke P On 8/30/07, Mikael Persson <[EMAIL PROTECTED]> wrote: > Hi all, > > when using the fourier font I get the wrong size of the opening { in > the \startcases \stopcases environment. The following small example > shows the problem and it fails both at my place and at > http://live.contextgarden.net/ > > > \usetypescript[fourier][ec] > \setupbodyfont[fourier,10pt] > > \starttext > \startformula > f(x)= > \startcases > \NC 1 \MC x>0\NR > \NC 0 \MC x<0\NR > \stopcases > \stopformula > \stoptext > > > I run the minimal ConTeXt, from 8th of august: > ConTeXt ver: 2007.08.08 14:35 MKII fmt: 2007.8.26 int: english/english > > Moreover, if I comment the first lines out above, the opening { is > "stretched" correctly (in latin modern). > > Any ideas? > > Best regards, Micke P > ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] page breaks and itemization
Am 2007-08-30 um 11:30 schrieb Jörg Hagmann: > Itemizations occur very often in my manuscript (typically > [packed,joinedup]). I would like page breaking to occur when the > page is > full, regardless of the number of lines left over on the next page (or > the number of lines at the bottom of a page). At present, the gaps > left > at the bottom of a page look ugly, especially when there is a footnote > with its line above. > \adaptlayout doesn't do anything > > Is there a way to setup this behaviour (without affecting pagebreaking > outsitde itemizations)? Normally yoou influence pagebreaking with \setuptolerance, or plain TeX style with setting the appropriate penalties. I don't know if it would work to set club and widow penalty to a very low value inside of the itemization (setup "before" or the like). (Is this setting always global or does it work locally?) \setuptolerance [{horizontal, verytolerant},{vertical, verystrict}] %\clubpenalty=8000 % no clubs / keine Schusterjungen %\widowpenalty=8000 % no widows / keine Hurenkinder %\tolerance=1750% line breaking tolerance (ca. 500--3000) %\emergencystretch=10 pt% additional stretching space per line Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Too small { in the fourier font
On 8/30/07, Mikael Persson <[EMAIL PROTECTED]> wrote: > Hi all, > > when using the fourier font I get the wrong size of the opening { in > the \startcases \stopcases environment. The following small example > shows the problem and it fails both at my place and at > http://live.contextgarden.net/ I wonder if this is the missing design size in lm fonts problem. Using ConTeXt ver: 2007.08.23 the sizes look OK for me. > > > \usetypescript[fourier][ec] > \setupbodyfont[fourier,10pt] > > \starttext > \startformula > f(x)= > \startcases > \NC 1 \MC x>0\NR > \NC 0 \MC x<0\NR > \stopcases > \stopformula > \stoptext > > > I run the minimal ConTeXt, from 8th of august: > ConTeXt ver: 2007.08.08 14:35 MKII fmt: 2007.8.26 int: english/english > > Moreover, if I comment the first lines out above, the opening { is > "stretched" correctly (in latin modern). > > Any ideas? > > Best regards, Micke P > ___ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > -- George N. White III <[EMAIL PROTECTED]> Head of St. Margarets Bay, Nova Scotia ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Too small { in the fourier font
Thanks, but if I try that, I dont get the fourier fonts at all, but the lm ones (both home and at live.contextgarden.net). Best regards, Micke P On 8/30/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote: > On Thu, 30 Aug 2007, Mikael Persson wrote: > > > Hi all, > > > > when using the fourier font I get the wrong size of the opening { in > > the \startcases \stopcases environment. The following small example > > shows the problem and it fails both at my place and at > > http://live.contextgarden.net/ > > An easy workaround, use texnasi encoding :-) > > \usetypescript[fourier][texnansi] > > Maybe a bug somewhere, but math fonts are like a black box to me. > > 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Too small { in the fourier font
On Thu, 30 Aug 2007, Mikael Persson wrote: > Hi all, > > when using the fourier font I get the wrong size of the opening { in > the \startcases \stopcases environment. The following small example > shows the problem and it fails both at my place and at > http://live.contextgarden.net/ An easy workaround, use texnasi encoding :-) \usetypescript[fourier][texnansi] Maybe a bug somewhere, but math fonts are like a black box to me. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Too small { in the fourier font
Hi all, when using the fourier font I get the wrong size of the opening { in the \startcases \stopcases environment. The following small example shows the problem and it fails both at my place and at http://live.contextgarden.net/ \usetypescript[fourier][ec] \setupbodyfont[fourier,10pt] \starttext \startformula f(x)= \startcases \NC 1 \MC x>0\NR \NC 0 \MC x<0\NR \stopcases \stopformula \stoptext I run the minimal ConTeXt, from 8th of august: ConTeXt ver: 2007.08.08 14:35 MKII fmt: 2007.8.26 int: english/english Moreover, if I comment the first lines out above, the opening { is "stretched" correctly (in latin modern). Any ideas? Best regards, Micke P ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: typo-fun
On Thu, 30 Aug 2007, frantisek holop wrote: > hmm, on Thu, Aug 30, 2007 at 02:37:02PM +0200, Hans Hagen said that >> frantisek holop wrote: >>> hi there, >>> >>> is it possible to achieve this somehow?: >>> http://www.smashingmagazine.com/images/404-2/book.png > > i am sorry, i wasn't specific enough. > > what i meant was, to have a book in context, any book, > check if we are on page 404, output the joke, continue > normally. Wolfgang's solution does exactly that. \startpostponing[404] will put the material on page 404. Aditya >> \starttext >> >> \dorecurse{100}{\input tufte \par} >> >> \startpostponing >> \vbox to \vsize \bgroup \vfill >> \definedfont[Serif at 40pt] \setupinterlinespace >> \raggedleft Who Took \endgraf This Page? \par >> \vfill \egroup >> \stoppostponing >> >> \dorecurse{100}{\input linden \par} >> >> \stoptext > > -- > never test for an error you don't know how to handle. > ___ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > > > -- Aditya Mahajan | EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam | Ph: 734.262.4008 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A sometxt bug (rather misfeature)
On Thu, 30 Aug 2007, Hans Hagen wrote: > picture p ; p := label(\sometxt{True}, origin) ; > if test then > draw p ; > fi ; > label(\sometxt{False}, (10,10)) ; Much cleaner. Thanks. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: typo-fun
hmm, on Thu, Aug 30, 2007 at 02:37:02PM +0200, Hans Hagen said that > frantisek holop wrote: > > hi there, > > > > is it possible to achieve this somehow?: > > http://www.smashingmagazine.com/images/404-2/book.png i am sorry, i wasn't specific enough. what i meant was, to have a book in context, any book, check if we are on page 404, output the joke, continue normally. > \starttext > > \dorecurse{100}{\input tufte \par} > > \startpostponing > \vbox to \vsize \bgroup \vfill > \definedfont[Serif at 40pt] \setupinterlinespace > \raggedleft Who Took \endgraf This Page? \par > \vfill \egroup > \stoppostponing > > \dorecurse{100}{\input linden \par} > > \stoptext -- never test for an error you don't know how to handle. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: typo-fun
frantisek holop wrote: > hi there, > > is it possible to achieve this somehow?: > http://www.smashingmagazine.com/images/404-2/book.png > > :) \starttext \dorecurse{100}{\input tufte \par} \startpostponing \vbox to \vsize \bgroup \vfill \definedfont[Serif at 40pt] \setupinterlinespace \raggedleft Who Took \endgraf This Page? \par \vfill \egroup \stoppostponing \dorecurse{100}{\input linden \par} \stoptext -) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: typo-fun
2007/8/30, frantisek holop <[EMAIL PROTECTED]>: > hi there, > > is it possible to achieve this somehow?: > http://www.smashingmagazine.com/images/404-2/book.png \starttext \startpostponing[404] \startstandardmakeup[align=left] The page\crlf cannot be found \stopstandardmakeup \stoppostponing \dorecurse{420}{\dontleavehmode\page} \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] OT: typo-fun
hi there, is it possible to achieve this somehow?: http://www.smashingmagazine.com/images/404-2/book.png :) -f -- the perfect guest is one who makes his host feel at home. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] balancing columns (solved)/ page breaks and itemization (new)
Balancing columns: Since the problem occurred twice only, I adopted Wolfgangs solution. Thanks Hraban and Wolfgang! Another problem: Itemizations occur very often in my manuscript (typically [packed,joinedup]). I would like page breaking to occur when the page is full, regardless of the number of lines left over on the next page (or the number of lines at the bottom of a page). At present, the gaps left at the bottom of a page look ugly, especially when there is a footnote with its line above. \adaptlayout doesn't do anything Is there a way to setup this behaviour (without affecting pagebreaking outsitde itemizations)? Thanks, Jörg Wolfgang Schuster wrote: > 2007/8/29, Henning Hraban Ramm <[EMAIL PROTECTED]>: > >> Am 2007-08-29 um 15:53 schrieb Jörg Hagmann: >> >> >>> In the following minimal example, the left column contains 5, the >>> right >>> one 3 lines. I tried \column to get 4 + 4, but it didn't work >>> >> The columns features are broken for a long time now, esp. with stuff >> like \startlines, \starttabulate etc. >> >> Maybe you could try column sets. I resolved to tables for my lead >> sheets (ugly code, like old HTML). >> >> http://wiki.contextgarden.net/Columns >> >> Greetlings from Lake Constance! >> Hraban >> > > Hi, > > if he has this problem only at one place and has no time he could > use TeX's halign primitive because this did still work. > > It is also easy to write a simple wrapper around this this emulate > ConTeXt's table syntax. > > \starttext > > \startcolumns[rule=on] > \halign{\strut#\quad&\hfil#\cr > one: & text \cr > two: & text \cr > three: & text \cr > four: & text \cr > five: & text \cr > six: & text \cr > seven: & text \cr > eight: & text \cr} > \stopcolumns > > \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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > > -- Prof.Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics Centre of Biomedicine, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 267 3565 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize start=2
On 8/29/07, Wolfgang Werners-Lucchini wrote: > > > how can I start an itemization with 2 > > > > > > I have tried snippets like > > > > > > \setupitemgroup[[itemize][start=2] > > > \startitemize[n] > > > \item zwei > > > \item drei > > > \stopitemize > > > > > > but could'nt found a solution. It looks like a misfeature (ie. bug) to me. > But two questions remain: > > 1) I am wondering, how you find such answers. What is your strategie > searching the sources? > 2) What is that existing option 'start' for? Take this as an example > for question 1). As far as I can see, 'start' currently serves no purpose since it gets overridden in line 447 in \expanded{\setitemparameter{\itemlevel}{\c!start}{1}}% in core-itm.tex anyway. Try to comment out that line. The next problem lies a few lines below: \doifelsenothing{\getitemparameter\itemlevel\c!start} {\def\currentitemoffset{1}} {\def\currentitemoffset{\getitemparameter\itemlevel\c!start}% \letitemparameter\itemlevel\c!start\empty}% You need to say \edef instead of \def, otherwise the empty value will be used for calculating \currentitemoffset. How to search? It's difficult to tell, but in this particular case, you take a look into core-itm.tex (assuming you know where itemizations are. If you don't, you can execute "grep \setupitem *" in tex/context/base/.) Then, you search for \c!start and try to figure out where it is used. You find \setitemlevel. OK, great. What does it do there? It's supposed to change \currentitemoffset. If you want to check \currentitemoffset, you simply place (my debug: \currentitemoffset) at the end of \setitemlevel. Now, you either need to copy that definition on the top of your document (which will override the global one), or remake the formats with "texexec --make en" before running texexec on your document again. You will get some extra info on top of your itemization. It doesn't belong there, but you will remove it afterwards. (Did I forget to say that it might be wise to make a bacup of the original file?) Now when you remade the formats (or placed the definition on top of your file or to cont-new.tex) and compiled the document again, take a look at the result. Oh, well, you only get (my debug: ). \currentitemoffset seems to be empty. Then try to put (I wanted to have: \getitemparameter\itemlevel\c!start) somewhere at the beginning of \setitemlevel, somewhere inbetween (after \expandex{...}) and somewhere at the end. It works at the beginning, then it gets reset to 1, and then it gets deleted. And they you try to figure out why. Btw: the two modifications mentioned above don't solve the problem yet, since you now have a problem with offset +1 (I remember a bug report from not so long ago, when itemizations started with 0, so that might be related). But I would better leave that for Hans. Itemizations are so complex that I don't dare to touch anything there. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___