Re: [NTG-context] Context replacement for bibitem
Hi Peter, 2007/8/30, Peter Schorsch [EMAIL PROTECTED]: Hi, first thanks for your help. I got it working at the basic-level. I put it into a module for the case that other beginner looking for the bibitem-replacement. But two questions are left before I think, that the module could be uploaded to the wiki: - how to make the 12*broad flexible? \currentmoduleparamter{itemspace}*broad is not working :-( - how to make that the \item are right-aligned? itemalign=right is also not working Here is the module-code followed by an appliance-example: ---the module: \startmodule[biblist] \unprotect %\setupmodule[itemspace=12] \defineitemgroup[bibliography] \setupitemgroup[bibliography][levels=1,left={[},right={]},stopper=] \setupitemgroup[bibliography][1][n,12*broad] %\setupitemgroup[bibliography][1][n \currentmoduleparameter{itemspace}*broad] Replace this line with \expanded{\setupitemgroup[bibliography][1][n,\currentmoduleparameter{itemspace}*broad]} to force expansion of \currentmoduleparameter. You can also use \setupbibliography as a abbreviation for \setupitemgroup[bibliography] Wolfgang \def\bibitem[#1]#2{\doifemptyelse{#2} {\item[#1]} {\sym{\cap{#2}}\textreference[#1]{\cap{#2 \def\bibref[#1]#2{\doifemptyelse{#2} {[\in[#1]]} {[\in[#1], #2]}} \protect \stopmodule \endinput ---how to use: \usemodule[biblist] \starttext \section{hamha} asdfklsj fk~\bibref[keykeykey]{} \section{dumdidim} asdfsaff alfs hfdsj~\bibref[aha]{Abs. 4.1/1} \subject{Bibliography} \subsubject{hamha} \startbibliography \bibitem[keykeykey]{Der Schlüssel} erstes \stopbibliography \subsubject{dumdidim} \startbibliography[continue] \bibitem[aha]{} zweites \stopbibliography \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] balancing colums
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 ___
Re: [NTG-context] A sometxt bug (rather misfeature)
Aditya Mahajan wrote: On Wed, 29 Aug 2007, Aditya Mahajan wrote: Hi, Found an interesting sometxt misfeature. \startMPinclusions boolean test ; test=true ; \stopMPinclusions \startbuffer[test] if test : label(\sometxt{True}, origin) ; fi ; label(\sometxt{False}, (10,10)) ; \stopbuffer \processMPbuffer[test] \blank[big] \startMPinitializations test := false ; \stopMPinitializations \processMPbuffer[test] Too bad context cannnot parse metapost syntax :) Workaround (ugly) Another workaround, slightly less ugly (as long as you count the number of \sometxt in the if part. \startbuffer[test] if test : label(\sometxt{True}, origin) ; else : txtnext := txtnext + 1 ; fi ; label(\sometxt{False}, (10,10)) ; \stopbuffer \processMPbuffer[test] picture p ; p := label(\sometxt{True}, origin) ; if test then draw p ; fi ; label(\sometxt{False}, (10,10)) ; - 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 ___
[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 ___
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 ___
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
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] 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
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] 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 ___
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 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 x0\NR \NC 0 \MC x0\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] 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
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 x0\NR \NC 0 \MC x0\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 x0\NR \NC 0 \MC x0\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] 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 ___
[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] 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 x0\NR \NC 0 \MC x0\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-date 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 ___
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] 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
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] 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] 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] 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 ___
[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 ___
[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 ___
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 ___
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: 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] 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 ___