Re: [NTG-context] \cite command (bib-module)
On Sep 12, 2008, at 8:25 AM, Taco Hoekwater wrote: > Thomas A. Schmitz wrote: >> I had a quick look at the source, and it doesn't look like you can >> have three [] arguments after \cite. So you can't have \cite[STYLE] >> [EXTRAS][KEY], > > But you can do: > > \cite[KEY][alternative=STYLE,extras=EXTRAS] > > Best wishes, > Taco Ah, I should have taken a longer look! Very elegant, thanks Taco. But maybe hooking the \setupcite setup into the \setufootnotes "before" option is more efficient than adding the style manually every time. All best Thomas ___ 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] span ROWS in \starttables?
On Fri, Sep 12, 2008 at 8:13 AM, Alan BRASLAU <[EMAIL PROTECTED]> wrote: > Hello, > > Is there any mechanism to span ROWS in (\start)tables > similar to column spanning through \use{3}{}? > The aim is to produce a multi-row column entry > as can be done via \bTD[nr=3] in \bTABLE. \NC \use{3} ... \NC ... or \NC \THREE ... \NC ... You can find more information on the wiki page: http://wiki.contextgarden.net/Table 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] width of cell in TABLE
On Thu, Sep 11, 2008 at 10:58 PM, Peter Münster <[EMAIL PROTECTED]> wrote: > Hello, > > How could I get a column with 0 width (useful for dummy columns). > > Example, that shows, that the width is not 0: > > \starttext > \setupTABLE[width=0pt, offset=0pt, height=1cm] > \bTABLE > \bTR\bTD\eTD\eTR > \eTABLE > \framed[width=0pt, offset=0pt, height=1cm]{} > \stoptext use offset=overlay 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] One very silly question
On Fri, Sep 12, 2008 at 8:13 AM, Yue Wang <[EMAIL PROTECTED]> wrote: > Hi, Hans: > >> no, in such cases, just create another typeface with relevant fonts >> using smallcaps and then switch to that typeface > > OK. I see. Thanks. > >> hm, it's nbot that complex, just define a featureset and use it; one can >> even adapt features in between if needed (dynamic features) > > How to use dynamic features? it is not documented in co-typography and > co-fonts. > is there such interface like: > > \definefeature[onum][onum=yes] > \definefeature[smcp][smcp=yes] \def\onum{\setfontfeature{onum}} > {\rm\bf\onum\smcp Hello 2008!} Don't do this, this has nothing to do with logical markup and the better way is to write {\definedfont[SerifBold*onum]Hello 2008!} ... >> you can be pretty sure that whatever you 'predefine' >> (font-blabla-using-oldstyle-and-smallcaps) will have exceptions and then >> we end up with n! possible combinations > > not n!, but 2^n. > > last question: is it possible to add fontconfig-like interface? if I > define to use minion famaily, then all the alternatives are > automatically defined like xetex? Hans need fonts to test this but I could provide you a typescript based solution, it's not so elegant as the XeTeX method but it works. 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] \cite command (bib-module)
Thomas A. Schmitz wrote: > I had a quick look at the source, and it doesn't look like you can > have three [] arguments after \cite. So you can't have \cite[STYLE] > [EXTRAS][KEY], But you can do: \cite[KEY][alternative=STYLE,extras=EXTRAS] Best wishes, Taco ___ 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] One very silly question
Hi, Hans: > no, in such cases, just create another typeface with relevant fonts > using smallcaps and then switch to that typeface OK. I see. Thanks. > hm, it's nbot that complex, just define a featureset and use it; one can > even adapt features in between if needed (dynamic features) How to use dynamic features? it is not documented in co-typography and co-fonts. is there such interface like: \definefeature[onum][onum=yes] \definefeature[smcp][smcp=yes] {\rm\bf\onum\smcp Hello 2008!} > > you can be pretty sure that whatever you 'predefine' > (font-blabla-using-oldstyle-and-smallcaps) will have exceptions and then > we end up with n! possible combinations not n!, but 2^n. last question: is it possible to add fontconfig-like interface? if I define to use minion famaily, then all the alternatives are automatically defined like xetex? Yue Wang ___ 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] span ROWS in \starttables?
Hello, Is there any mechanism to span ROWS in (\start)tables similar to column spanning through \use{3}{}? The aim is to produce a multi-row column entry as can be done via \bTD[nr=3] in \bTABLE. Thanks Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] installation of ConTeXt
Mojca Miklavec wrote: > There are two alternatives for installing ruby. Take this one: > http://rubyinstaller.rubyforge.org/wiki/wiki.pl?RubyInstaller Thanks, I'll give it a try (installation is already running). Juergen ___ 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] installation of ConTeXt
Hans Hagen wrote: > no, try to avoid cygwin \absoluterelief Thanks, Juergen ___ 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] fitting a picture to the available space
On Sep 11, 2008, at 7:59 PM, Thomas A. Schmitz wrote: > > On Sep 11, 2008, at 6:20 PM, Thomas A. Schmitz wrote: > >>> \starttext >>> >>> \start >>> >>> \setbox\scratchbox\vbox{\externalfigure[mill]} >>> >>> \dimen0=\wd\scratchbox >>> \dimen2=\ht\scratchbox >>> >>> \framed[frame=on,strut=no,width=8cm,height=2cm] >>> {\dimen1=\hsize \divide\dimen1 by \dimen0 >>> \dimen3=\vsize \divide\dimen3 by \dimen2 >>> \ifdim\dimen1>\dimen3 >>> \externalfigure[mill][height=\vsize] >>> \else >>> \externalfigure[mill][width=\hsize] >>> \fi} >>> >>> \framed[frame=on,strut=no,width=2cm,height=8cm] >>> {\dimen1=\hsize \divide\dimen1 by \dimen0 >>> \dimen3=\vsize \divide\dimen3 by \dimen2 >>> \ifdim\dimen1>\dimen3 >>> \externalfigure[mill][height=\vsize] >>> \else >>> \externalfigure[mill][width=\hsize] >>> \fi} >>> >>> \stop >>> >>> \stoptext >>> >>> Wolfgang >> >> Wolfgang, >> >> as always, you're a source of wisdom and knowledge... Just I >> understand this correctly and can adapt it to my macro: \dimen1= >> \hsize: here \hsize refers to the size of the \framed inside which >> we're operating, right? > > And another question: I get an error "! Illegal unit of measure (pt > inserted)." Is it really possible to divide a dimension by another > dimension? Not according to what I read here: > http://www.tug.org/utilities/plain/cseq.html#divide-rp > "must be a nonzero integer." See, I'm far from being a native > speaker of TeX... > I now have something along these lines (ugly code ahead!): \setbox\scratchbox\vbox{\externalfigure[mill]% \dimen0=\wd\scratchbox% [EMAIL PROTECTED] \def\@@[EMAIL PROTECTED] \dimen4=\textwidth \divide\dimen4 by \@@WD% \dimen2=\ht\scratchbox% [EMAIL PROTECTED] \def\@@[EMAIL PROTECTED] \dimen6=\textheight \divide\dimen6 by \@@HT% \ifdim\dimen4>\dimen6% \def\Myheight{\textheight}\def\Mywidth{}% \else% \def\Mywidth{\textwidth}\def\Myheight{}% \fi and then use height=\Myheight,width=\Mywidth. Bu there's still a problem... Anyway, does it make sense in general? Thomas ___ 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] rows and columns in TABLE (fwd)
Hello, I would like to adjust the height of each row. But I manage to get the desired result only with a seventh dummy column. Consider this example with and without the mode "seven": %\enablemode[seven] \starttext \setupTABLE[r][2,3,4,5,6,7][height=6ex] \bTABLE[width=0.125\textwidth] \bTR \bTH 1. col\eTH \bTH 2. col\eTH \bTH 3. col\eTH \bTH 4. col\eTH \bTH 5. col\eTH \bTH 6. col\eTH \doifmode{seven}{\bTH 7. col\eTH} \eTR \bTR \bTD[nr=6]6 rows in 1. col\eTD \bTD[nr=2]2 rows in 2. col\eTD \bTD[nr=6]6 rows in 3. col\eTD \bTD[nr=2]2 rows in 4. col\eTD \bTD 1 row in 5. col\eTD \bTD[nr=2]2 rows in 6. col\eTD \doifmode{seven}{\bTD\eTD} \eTR \bTR \bTD[nr=2] 2 rows in 5. col\eTD \doifmode{seven}{\bTD\eTD} \eTR \bTR \bTD[nr=2]2 rows in 2. col\eTD \bTD[nr=2]2 rows in 4. col\eTD \bTD[nr=4]4 rows in 6. col\eTD \doifmode{seven}{\bTD\eTD} \eTR \bTR \bTD[nr=2] 2 rows in 5. col\eTD \doifmode{seven}{\bTD\eTD} \eTR \bTR \bTD[nr=2]2 rows in 2. col\eTD \bTD[nr=2]2 rows in 4. col\eTD \doifmode{seven}{\bTD\eTD} \eTR \bTR \bTD 1 row in 5. col\eTD \doifmode{seven}{\bTD\eTD} \eTR \eTABLE \stoptext Any hints, you to adjust the heights without the dummy column? TIA for any help! Cheers, Peter -- http://pmrb.free.fr/contact/ ___ 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] width of cell in TABLE
Hello, How could I get a column with 0 width (useful for dummy columns). Example, that shows, that the width is not 0: \starttext \setupTABLE[width=0pt, offset=0pt, height=1cm] \bTABLE \bTR\bTD\eTD\eTR \eTABLE \framed[width=0pt, offset=0pt, height=1cm]{} \stoptext Cheers, Peter -- http://pmrb.free.fr/contact/ ___ 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] \mathop inside \sometxt in MKIV
Hi, I am using ConTeXt ver: 2008.09.10 14:01 MKIV fmt: 2008.9.11 and the following file \starttext \startMPcode label.bot(\sometxt{$\mathop{}$}, origin) ; \stopMPcode \stoptext gives ! Missing number, treated as zero. ## \purenumber ...firstofoneargument [EMAIL PROTECTED] {\number #1 } \PDFobjref #1->\purenumber {#1} 0 R l.46 \def\PDFobjref# 1{\purenumber{#1} 0 R} ? ! Missing number, treated as zero. ## It runs correctly with MKII. Any ideas? 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] frameoffset in textbackground
Hallo, I asked this question a week ago, but got no answer. Does anybody know what is 'frameoffset' for? I can not see any difference with and without this parameter. -- \setupcolors[state=start] \definetextbackground[strong] [backgroundcolor=lightgray, location=paragraph, frame=on, frameoffset=5mm] \starttext bla \starttextbackground[strong] zack \stoptextbackground blub \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] fitting a picture to the available space
On Sep 11, 2008, at 6:20 PM, Thomas A. Schmitz wrote: >> \starttext >> >> \start >> >> \setbox\scratchbox\vbox{\externalfigure[mill]} >> >> \dimen0=\wd\scratchbox >> \dimen2=\ht\scratchbox >> >> \framed[frame=on,strut=no,width=8cm,height=2cm] >> {\dimen1=\hsize \divide\dimen1 by \dimen0 >> \dimen3=\vsize \divide\dimen3 by \dimen2 >> \ifdim\dimen1>\dimen3 >>\externalfigure[mill][height=\vsize] >> \else >>\externalfigure[mill][width=\hsize] >> \fi} >> >> \framed[frame=on,strut=no,width=2cm,height=8cm] >> {\dimen1=\hsize \divide\dimen1 by \dimen0 >> \dimen3=\vsize \divide\dimen3 by \dimen2 >> \ifdim\dimen1>\dimen3 >>\externalfigure[mill][height=\vsize] >> \else >>\externalfigure[mill][width=\hsize] >> \fi} >> >> \stop >> >> \stoptext >> >> Wolfgang > > Wolfgang, > > as always, you're a source of wisdom and knowledge... Just I > understand this correctly and can adapt it to my macro: \dimen1= > \hsize: here \hsize refers to the size of the \framed inside which > we're operating, right? And another question: I get an error "! Illegal unit of measure (pt inserted)." Is it really possible to divide a dimension by another dimension? Not according to what I read here: http://www.tug.org/utilities/plain/cseq.html#divide-rp "must be a nonzero integer." See, I'm far from being a native speaker of TeX... Best Thomas ___ 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] One very silly question
Yue Wang wrote: > Hi, > > I read the manual, and it said: > > rm, ss,tt,hw,cg are styles, bf,it,bi,sl,bs, sc, os, tf are alternatives. > one can use one alternative in one style like \rm\bf. > However, I think we should add more alternatives like boldsmallcaps or > bold old style number? no, in such cases, just create another typeface with relevant fonts using smallcaps and then switch to that typeface > in opentype, smcp, onum are just features, and every alternatives > (like bold, bold italic) have them. > > btw, I think there should be a (fontconfig like) mechanism for setting > up opentype fonts easier? hm, it's nbot that complex, just define a featureset and use it; one can even adapt features in between if needed (dynamic features) you can be pretty sure that whatever you 'predefine' (font-blabla-using-oldstyle-and-smallcaps) will have exceptions and then we end up with n! possible combinations 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] fitting a picture to the available space
Thomas A. Schmitz wrote: > On Sep 11, 2008, at 4:13 PM, Wolfgang Schuster wrote: > >> On Thu, Sep 11, 2008 at 3:28 PM, Thomas A. Schmitz >> <[EMAIL PROTECTED]> wrote: >>> On Sep 11, 2008, at 10:04 AM, Thomas A. Schmitz wrote: >>> On Sep 11, 2008, at 9:28 AM, Hans Hagen wrote: > \starttext > > \framed[width=5cm,height4cm]{\externalfigure[mill.png] > [maxwidth=3cm,maxheight=4cm,width=10cm]} > > \stoptext > > seems to work Ah of course! I could set the width to an absurdly high number and so make sure that it will always reach the maxheight/maxwidth, no matter what the ratio! This seems to work, thanks a lot! >>> Alas, I spake too soon. Here is an example: >>> >>> \starttext >>> >>> \framed[frame=on,strut=no,width=8cm,height=2cm] >>> {\externalfigure[mill.png][maxwidth=8cm,maxheight=2cm,width=10cm]} >>> >>> \stoptext >>> >>> I would expect the picture to stay within the maxheight, but it >>> doesn't. >> You could write your own macros and comapre the width/height ration >> of the >> picture with the reation of the box, is simple example is shown below. >> >> \starttext >> >> \start >> >> \setbox\scratchbox\vbox{\externalfigure[mill]} >> >> \dimen0=\wd\scratchbox >> \dimen2=\ht\scratchbox >> >> \framed[frame=on,strut=no,width=8cm,height=2cm] >> {\dimen1=\hsize \divide\dimen1 by \dimen0 >> \dimen3=\vsize \divide\dimen3 by \dimen2 >> \ifdim\dimen1>\dimen3 >> \externalfigure[mill][height=\vsize] >> \else >> \externalfigure[mill][width=\hsize] >> \fi} >> >> \framed[frame=on,strut=no,width=2cm,height=8cm] >> {\dimen1=\hsize \divide\dimen1 by \dimen0 >> \dimen3=\vsize \divide\dimen3 by \dimen2 >> \ifdim\dimen1>\dimen3 >> \externalfigure[mill][height=\vsize] >> \else >> \externalfigure[mill][width=\hsize] >> \fi} >> >> \stop >> >> \stoptext >> >> Wolfgang > > Wolfgang, > > as always, you're a source of wisdom and knowledge... Just I > understand this correctly and can adapt it to my macro: \dimen1= > \hsize: here \hsize refers to the size of the \framed inside which > we're operating, right? be careful ... use \dimen4 and 6 instead of 1 and 3, by convention odd registers < 10 are used global - 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] fitting a picture to the available space
On Thu, Sep 11, 2008 at 12:06 AM, Thomas A. Schmitz wrote: > Hi guys, > > I'm pulling my hair out. I'm trying to set up an automatism to fit > pictures to the available space on a slide. Hello, I'm probably talking about something else, though highly related. There's one thing that I often miss on slides: *Here's a title* - here are - some items [and I want the picture to fill up all the remaining space on slide] Or even if there' only title + image. I tried option=max (or something similar), but always ended up setting image size manually. Most often I got title on one page and image on another (It would be less painful to have image on the same page, even if it hangs much over the lower border - is there something similar to \placefigure[thispage] option (puts the figure on the same page, even if there's no space left)?) Mojca [I need to stop asking questions now.] ___ 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] installation of ConTeXt
On Thu, Sep 11, 2008 at 4:08 PM, Goebel, Juergen wrote: > Hi, > > Do I really have to install ruby? I downloaded it, but can't find > anything like install, setup or something like this. There are two alternatives for installing ruby. Take this one: http://rubyinstaller.rubyforge.org/wiki/wiki.pl?RubyInstaller > Even the > readme is not very helpful at all. And another question: for > using Ruby - and therefore ConTeXt - do I need cygwin? No. It does more harm than good. 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 ___
Re: [NTG-context] fitting a picture to the available space
On Sep 11, 2008, at 4:13 PM, Wolfgang Schuster wrote: > On Thu, Sep 11, 2008 at 3:28 PM, Thomas A. Schmitz > <[EMAIL PROTECTED]> wrote: >> >> On Sep 11, 2008, at 10:04 AM, Thomas A. Schmitz wrote: >> >>> >>> On Sep 11, 2008, at 9:28 AM, Hans Hagen wrote: >>> \starttext \framed[width=5cm,height4cm]{\externalfigure[mill.png] [maxwidth=3cm,maxheight=4cm,width=10cm]} \stoptext seems to work >>> >>> Ah of course! I could set the width to an absurdly high number and >>> so >>> make sure that it will always reach the maxheight/maxwidth, no >>> matter >>> what the ratio! This seems to work, thanks a lot! >>> >> >> Alas, I spake too soon. Here is an example: >> >> \starttext >> >> \framed[frame=on,strut=no,width=8cm,height=2cm] >> {\externalfigure[mill.png][maxwidth=8cm,maxheight=2cm,width=10cm]} >> >> \stoptext >> >> I would expect the picture to stay within the maxheight, but it >> doesn't. > > You could write your own macros and comapre the width/height ration > of the > picture with the reation of the box, is simple example is shown below. > > \starttext > > \start > > \setbox\scratchbox\vbox{\externalfigure[mill]} > > \dimen0=\wd\scratchbox > \dimen2=\ht\scratchbox > > \framed[frame=on,strut=no,width=8cm,height=2cm] > {\dimen1=\hsize \divide\dimen1 by \dimen0 > \dimen3=\vsize \divide\dimen3 by \dimen2 > \ifdim\dimen1>\dimen3 > \externalfigure[mill][height=\vsize] > \else > \externalfigure[mill][width=\hsize] > \fi} > > \framed[frame=on,strut=no,width=2cm,height=8cm] > {\dimen1=\hsize \divide\dimen1 by \dimen0 > \dimen3=\vsize \divide\dimen3 by \dimen2 > \ifdim\dimen1>\dimen3 > \externalfigure[mill][height=\vsize] > \else > \externalfigure[mill][width=\hsize] > \fi} > > \stop > > \stoptext > > Wolfgang Wolfgang, as always, you're a source of wisdom and knowledge... Just I understand this correctly and can adapt it to my macro: \dimen1= \hsize: here \hsize refers to the size of the \framed inside which we're operating, right? Thomas ___ 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] Request for "digested" readers: please change subject
Hello, ConTeXt mailing list is really a huge one and an overkill to follow it as a whole. But to all those of you who read mail in digested mode: feel free to hit reply and answer there, but then please: a) delete all the other non-relevant 24 messages in the digest b) If original subject was "ConTeXt rules!", please change the subject from "ntg-context Digest, Vol X, Issue Y" into "Re: ConTeXt rules!" or "Re: [NTG-context] ConTeXt rules!" It will still mess up the threading a bit (this happens a lot anyway), but simplify matters to all other readers of the mailing list. I think that gmane offers some possibility to answer via their interface as well, but I have never tried it. Thanks a lot, 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 ___
Re: [NTG-context] \cite command (bib-module)
On Sep 11, 2008, at 5:01 PM, Martin Hoher wrote: > Thank you for your answer. The first example works. > > The result is: "Goldstein (2003)" but unfortunately it is impossible > to > combine it with the [extras={:95}] option to get the page number > behind > the citation. > If you type \cite [authoryear][extras={:95}] it won't work. > Although I've tried it with the [authoryear,page] nothing works. > The result of the second example is "Goldstein (vgl. 2003)". I've > tried > to use the left={} option instead, but nothing changed. > \setupcite > [authoryear] > [pubsep={, }, > lastpubsep={ und }, > compress=yes, > inbetween={}, > left={(vgl. }, > right={)}] > > still leads to the result Goldstein (vgl. 2003) when I type in the > command \cite [authoryear][G:2003]. It seems to be impossible to place > something (like "vgl.") in front of the name of the author and > inside of > the brackets like (vgl. Goldstein 2003:95) Sorry, in the second case, you'll need the option "authoryears": \setupcite [authoryears] [pubsep={, }, lastpubsep={ und }, compress=yes, inbetween={ }, left={(vgl. }, right={)}] I had a quick look at the source, and it doesn't look like you can have three [] arguments after \cite. So you can't have \cite[STYLE] [EXTRAS][KEY], you must use the \setuppublications command and set the default. If you want to have a different citation style in the footnotes and in the main text, you will probably want to have a \setuppublications[refcommand=authoryears] in the setup of your footnotes (see p. 101 of cont-eni.pdf). Thomas ___ 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 ConTeXt bug tracker to keep track of reported bugs?
Khaled Hosny wrote: > On Thu, Sep 11, 2008 at 09:24:52AM +0200, Hans Hagen wrote: >> Khaled Hosny wrote: >>> I've reported several bugs (mostly Arabic related) and I'm afraid it >>> might get lost as time goes, I wonder if there is a bug tracker for >> they're still in my mailbox ... time ... > I'm afraid that I'm the one who is going to lose track of them :) So, > should I report those bugs to the tracker.luatex.org or there is no > need? if bugs are collected and come with proper test files i normally look at them (otherwise remind me); with regards to arabic, best coordinate this with idris as well bcause eventually he will write the manual and also because the oriental tex project is closely related to luatex 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] ntg-context Digest, Vol 51, Issue 44
[EMAIL PROTECTED] schrieb: > Send ntg-context mailing list submissions to > ntg-context@ntg.nl > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.ntg.nl/mailman/listinfo/ntg-context > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." > > > Today's Topics: > >1. Re: ntg-context Digest, Vol 51, Issue 36 (Goebel, Juergen) >2. use of the \cite command (bib-module) (Martin Hoher) >3. Re: first steps with \dosingleempty (Goebel, Juergen) >4. Re: use of the \cite command (bib-module) (Thomas A. Schmitz) >5. Re: first steps with \dosingleempty (Wolfgang Schuster) >6. Re: modes questions (Hans Hagen) >7. Re: modes questions (Taco Hoekwater) >8. Re: ntg-context Digest, Vol 51, Issue 36 (Wolfgang Schuster) >9. Re: modes questions (Hans Hagen) > 10. Re: ntg-context Digest, Vol 51, Issue 36 (Goebel, Juergen) > > > -- > > Message: 1 > Date: Thu, 11 Sep 2008 12:13:59 +0200 > From: "Goebel, Juergen" <[EMAIL PROTECTED]> > Subject: Re: [NTG-context] ntg-context Digest, Vol 51, Issue 36 > To: "mailing list for ConTeXt users" > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Mojca Miklavec wrote: > >> But as far as I understood, the problem got resolved, right? Didn't >> the umlaut-utf work OK? > > No, not with my oldtimer. > >> (J?rgen, in case that you are still using the old version of ConTeXt - >> *many* aspects have improved since then, including encodings and >> regimes, so before starting complaining that something doesn't work, >> try upgrading first. And I really mean it.) > > ACK. > > Regards, > > J?rgen > > > -- > > Message: 2 > Date: Thu, 11 Sep 2008 12:19:59 +0200 > From: Martin Hoher <[EMAIL PROTECTED]> > Subject: [NTG-context] use of the \cite command (bib-module) > To: ntg-context@ntg.nl > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-15 > > Hello, > > concerning the bib-module and the \cite command I've got two questions: > > (1) The output in the text of the document should look like this: > Goldstein (2003:95). > The name of the author should be located on the outside of the > brackets. > > > Goldstein refers to the name of the author, 2003 is the year of > publication and 95 is the relevant page number. > My approach until now: \cite[extras={:95}][G:2003] It generates > the > following output: (Goldstein 2003:95) > > > (2) The output in the text should look like this: > (vgl. Goldstein 2003:95) > My intention is to place the expression "vgl." in front of the > authorname and inside of the brackets. > > If someone has an idea to solve this little problem, it will be great to > here from you soon. > > Greetings > Martin >> Hello, >> >> concerning the bib-module and the \cite command I've got two >> questions: >> >> (1) The output in the text of the document should look like this: >>Goldstein (2003:95). >> The name of the author should be located on the outside of the >> >> brackets. >> >> >> Goldstein refers to the name of the author, 2003 is the year of >> publication and 95 is the relevant page number. >> My approach until now: \cite[extras={:95}][G:2003] It generates >> the >> following output: (Goldstein 2003:95) >> > \setupcite > [authoryear] > [pubsep={, }, > lastpubsep={ und }, > compress=yes, > inbetween={ (}, > left={}, > right={)}] > > (chapter 2.3 of the bib manual) > >> (2) The output in the text should look like this: >> (vgl. Goldstein 2003:95) >> My intention is to place the expression "vgl." in front of the >> authorname and inside of the brackets. > > \setupcite > [authoryear] > [pubsep={, }, > lastpubsep={ und }, > compress=yes, > inbetween={ (vgl. }, > left={}, > right={)}] > > HTH > > Thomas Hello, I've found my fault: \setupcite [authoryears] [pubsep={, }, lastpubsep={ und }, compress=yes, inbetween={ (vgl. }, left={}, right={)}] with this you'll get (vgl. Goldstein 2003) The only problem left is the use of the [extras={:10}] option in combination with [authoryears] to include the page number. Martin ___ 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 : htt
[NTG-context] One very silly question
Hi, I read the manual, and it said: rm, ss,tt,hw,cg are styles, bf,it,bi,sl,bs, sc, os, tf are alternatives. one can use one alternative in one style like \rm\bf. However, I think we should add more alternatives like boldsmallcaps or bold old style number? in opentype, smcp, onum are just features, and every alternatives (like bold, bold italic) have them. btw, I think there should be a (fontconfig like) mechanism for setting up opentype fonts easier? Yue Wang ___ 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] \cite command (bib-module)
> Message: 4 > Date: Thu, 11 Sep 2008 12:35:59 +0200 > From: "Thomas A. Schmitz" <[EMAIL PROTECTED]> > Subject: Re: [NTG-context] use of the \cite command (bib-module) > To: mailing list for ConTeXt users > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > On Sep 11, 2008, at 12:19 PM, Martin Hoher wrote: > >> Hello, >> >> concerning the bib-module and the \cite command I've got two >> questions: >> >> (1) The output in the text of the document should look like this: >>Goldstein (2003:95). >> The name of the author should be located on the outside of the >> >> brackets. >> >> >> Goldstein refers to the name of the author, 2003 is the year of >> publication and 95 is the relevant page number. >> My approach until now: \cite[extras={:95}][G:2003] It generates the >> following output: (Goldstein 2003:95) >> > \setupcite > [authoryear] > [pubsep={, }, > lastpubsep={ und }, > compress=yes, > inbetween={ (}, > left={}, > right={)}] > > (chapter 2.3 of the bib manual) > >> (2) The output in the text should look like this: >> (vgl. Goldstein 2003:95) >> My intention is to place the expression "vgl." in front of the >> authorname and inside of the brackets. > > \setupcite > [authoryear] > [pubsep={, }, > lastpubsep={ und }, > compress=yes, > inbetween={ (vgl. }, > left={}, > right={)}] > > HTH > > Thomas Thank you for your answer. The first example works. The result is: "Goldstein (2003)" but unfortunately it is impossible to combine it with the [extras={:95}] option to get the page number behind the citation. If you type \cite [authoryear][extras={:95}] it won't work. Although I've tried it with the [authoryear,page] nothing works. The result of the second example is "Goldstein (vgl. 2003)". I've tried to use the left={} option instead, but nothing changed. \setupcite [authoryear] [pubsep={, }, lastpubsep={ und }, compress=yes, inbetween={}, left={(vgl. }, right={)}] still leads to the result Goldstein (vgl. 2003) when I type in the command \cite [authoryear][G:2003]. It seems to be impossible to place something (like "vgl.") in front of the name of the author and inside of the brackets like (vgl. Goldstein 2003:95) I couldn't find anything specific about these problems in the bib-manual. Perhaps you or someone else can help me? Regards Martin ___ 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] fitting a picture to the available space
Thomas A. Schmitz wrote: > On Sep 11, 2008, at 4:01 PM, Peter Rolf wrote: > >> Hi Thomas, >> >> I tried the above solution for the creation of figure libraries a few >> hours ago... with the same result. Using 'height=10cm' instead of >> 'width=10cm' should work in this case. At least this workaround gives >> the right results for my squared graphics (icons). Anyhow, this is no >> general solution... >> >> Best, Peter > > Hi Peter, > > yes, unfortunately I'm looking for a general solution for images whose > dimensions and ratio are not known beforehand. Looks like we're all > hitting the same snag... the problem is that in mkii the macros involved in this are rather complex; i'm considering a pure lua solution but that would not be fully compatible with mkii (i.e. it would be more clever and precise) 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] fitting a picture to the available space
On Sep 11, 2008, at 4:01 PM, Peter Rolf wrote: > Hi Thomas, > > I tried the above solution for the creation of figure libraries a few > hours ago... with the same result. Using 'height=10cm' instead of > 'width=10cm' should work in this case. At least this workaround gives > the right results for my squared graphics (icons). Anyhow, this is no > general solution... > > Best, Peter Hi Peter, yes, unfortunately I'm looking for a general solution for images whose dimensions and ratio are not known beforehand. Looks like we're all hitting the same snag... Best Thomas ___ 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] installation of ConTeXt
Goebel, Juergen wrote: > Hi, > > Do I really have to install ruby? I downloaded it, but can't find > anything like install, setup or something like this. Even the > readme is not very helpful at all. And another question: for > using Ruby - and therefore ConTeXt - do I need cygwin? no, try to avoid cygwin just download ruby (mswin version), unzip/install it in say c:\ruby and then add c:\ruby\bin to your windows path - 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] installation of ConTeXt
Hi, Do I really have to install ruby? I downloaded it, but can't find anything like install, setup or something like this. Even the readme is not very helpful at all. And another question: for using Ruby - and therefore ConTeXt - do I need cygwin? Regards, Juergen ___ 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] fitting a picture to the available space
On Thu, Sep 11, 2008 at 3:28 PM, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote: > > On Sep 11, 2008, at 10:04 AM, Thomas A. Schmitz wrote: > >> >> On Sep 11, 2008, at 9:28 AM, Hans Hagen wrote: >> >>> \starttext >>> >>> \framed[width=5cm,height4cm]{\externalfigure[mill.png] >>> [maxwidth=3cm,maxheight=4cm,width=10cm]} >>> >>> \stoptext >>> >>> seems to work >> >> Ah of course! I could set the width to an absurdly high number and so >> make sure that it will always reach the maxheight/maxwidth, no matter >> what the ratio! This seems to work, thanks a lot! >> > > Alas, I spake too soon. Here is an example: > > \starttext > > \framed[frame=on,strut=no,width=8cm,height=2cm] > {\externalfigure[mill.png][maxwidth=8cm,maxheight=2cm,width=10cm]} > > \stoptext > > I would expect the picture to stay within the maxheight, but it doesn't. You could write your own macros and comapre the width/height ration of the picture with the reation of the box, is simple example is shown below. \starttext \start \setbox\scratchbox\vbox{\externalfigure[mill]} \dimen0=\wd\scratchbox \dimen2=\ht\scratchbox \framed[frame=on,strut=no,width=8cm,height=2cm] {\dimen1=\hsize \divide\dimen1 by \dimen0 \dimen3=\vsize \divide\dimen3 by \dimen2 \ifdim\dimen1>\dimen3 \externalfigure[mill][height=\vsize] \else \externalfigure[mill][width=\hsize] \fi} \framed[frame=on,strut=no,width=2cm,height=8cm] {\dimen1=\hsize \divide\dimen1 by \dimen0 \dimen3=\vsize \divide\dimen3 by \dimen2 \ifdim\dimen1>\dimen3 \externalfigure[mill][height=\vsize] \else \externalfigure[mill][width=\hsize] \fi} \stop \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] fitting a picture to the available space
Thomas A. Schmitz schrieb: > On Sep 11, 2008, at 10:04 AM, Thomas A. Schmitz wrote: > >> On Sep 11, 2008, at 9:28 AM, Hans Hagen wrote: >> >>> \starttext >>> >>> \framed[width=5cm,height4cm]{\externalfigure[mill.png] >>> [maxwidth=3cm,maxheight=4cm,width=10cm]} >>> >>> \stoptext >>> >>> seems to work >> Ah of course! I could set the width to an absurdly high number and so >> make sure that it will always reach the maxheight/maxwidth, no matter >> what the ratio! This seems to work, thanks a lot! >> > > Alas, I spake too soon. Here is an example: > > \starttext > > \framed[frame=on,strut=no,width=8cm,height=2cm] > {\externalfigure[mill.png][maxwidth=8cm,maxheight=2cm,width=10cm]} > > \stoptext > > I would expect the picture to stay within the maxheight, but it doesn't. > Hi Thomas, I tried the above solution for the creation of figure libraries a few hours ago... with the same result. Using 'height=10cm' instead of 'width=10cm' should work in this case. At least this workaround gives the right results for my squared graphics (icons). Anyhow, this is no general solution... Best, Peter > Thomas > ___ > 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] ntg-context Digest, Vol 51, Issue 36
Wolfgang Schuster wrote: > Can you try my updated version of the two buggy files, I think I found > the problem and want to be sure. Both versions still show no sharp s, but it's the oldtimer running. The download of the new version will soon be finished and tomorrow I'll install it - hopefully successfull! Juergen ___ 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 ConTeXt bug tracker to keep track of reported bugs?
On Thu, Sep 11, 2008 at 09:24:52AM +0200, Hans Hagen wrote: > Khaled Hosny wrote: > > I've reported several bugs (mostly Arabic related) and I'm afraid it > > might get lost as time goes, I wonder if there is a bug tracker for > > they're still in my mailbox ... time ... I'm afraid that I'm the one who is going to lose track of them :) So, should I report those bugs to the tracker.luatex.org or there is no need? Regards, Khaled -- Khaled Hosny Arabic localizer and member of Arabeyes.org team signature.asc Description: Digital 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] fitting a picture to the available space
On Sep 11, 2008, at 10:04 AM, Thomas A. Schmitz wrote: > > On Sep 11, 2008, at 9:28 AM, Hans Hagen wrote: > >> \starttext >> >> \framed[width=5cm,height4cm]{\externalfigure[mill.png] >> [maxwidth=3cm,maxheight=4cm,width=10cm]} >> >> \stoptext >> >> seems to work > > Ah of course! I could set the width to an absurdly high number and so > make sure that it will always reach the maxheight/maxwidth, no matter > what the ratio! This seems to work, thanks a lot! > Alas, I spake too soon. Here is an example: \starttext \framed[frame=on,strut=no,width=8cm,height=2cm] {\externalfigure[mill.png][maxwidth=8cm,maxheight=2cm,width=10cm]} \stoptext I would expect the picture to stay within the maxheight, but it doesn't. Thomas ___ 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] modes questions
On Thu, Sep 11, 2008 at 1:37 PM, Hans Hagen <[EMAIL PROTECTED]> wrote: > Taco Hoekwater wrote: >> Hans Hagen wrote: (1.2) Is there a way to call the modelist and submit it to conditional testing within ConTeXt ? For example, to lookup (true/false) the presence of modes containing/starting with (an) alphannumeric > > \doifinstring > string(s) ? >>> \doifmodeelse{somemode} { } { } etc etc etc >> >> This presumes that you actually know the list of enabled modes, so >> I think a commalist of "set modes" would be useful as well. Modules >> could use that to set up keyword-based behaviours. > > there is already such a mechanism (thomas uses it in his module) Is this mechanism documented somewhere ? > maybe at some point in mkiv we can provide the list because then i can > use lua for keeping track of things; maintaining a comma separated list > is tex is not that fast (and i use modes a lot to control styles that > need a high performance); think of > > \enablemode[a,b,c] > > and a large list of enabled modes that we need to check for already set > nodes (in lua it's just a hash and a the fill list a list-of-keys) > > btw, this would make mkiv incompatible with mkii -- Best, Alan * using ConTeXt ver: 2008.08.18 14:00 MKIV fmt: 2008.8.22 int: english/english (on Windows XP) ___ 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] ntg-context Digest, Vol 51, Issue 36
Wolfgang Schuster wrote: > On Thu, Sep 11, 2008 at 12:13 PM, Goebel, Juergen > <[EMAIL PROTECTED]> wrote: >> Mojca Miklavec wrote: >> >>> But as far as I understood, the problem got resolved, right? Didn't >>> the umlaut-utf work OK? >> No, not with my oldtimer. >> >>> (Jürgen, in case that you are still using the old version of ConTeXt - >>> *many* aspects have improved since then, including encodings and >>> regimes, so before starting complaining that something doesn't work, >>> try upgrading first. And I really mean it.) >> ACK. > > Can you try it again with my new test files. to whoever started this tread ... next time don't use "Digest..." as subject since it does not reflect the thread's topic 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] modes questions
On Thu, Sep 11, 2008 at 12:52 PM, Taco Hoekwater <[EMAIL PROTECTED]> wrote: > Hans Hagen wrote: >> >>> (1.2) Is there a way to call the modelist and submit it to conditional >>> testing within ConTeXt ? For example, to lookup (true/false) the >>> presence of modes containing/starting with (an) alphannumeric >>> string(s) ? >> >> \doifmodeelse{somemode} { } { } etc etc etc > > This presumes that you actually know the list of enabled modes, so > I think a commalist of "set modes" would be useful as well. Modules > could use that to set up keyword-based behaviours. That's what I meant. Thanks for clarifying. > Best wishes, > Taco -- Best, Alan * using ConTeXt ver: 2008.08.18 14:00 MKIV fmt: 2008.8.22 int: english/english (on Windows XP) ___ 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] ntg-context Digest, Vol 51, Issue 36
On Thu, Sep 11, 2008 at 1:56 PM, Goebel, Juergen <[EMAIL PROTECTED]> wrote: > Wolfgang Schuster wrote: > >> Can you try it again with my new test files. > > umlaut-iso-8859-1.tex --> no sharp s > umlaut-utf-8.tex --> sharp s > umlaut-windows-1250.tex --> no sharp s Can you try my updated version of the two buggy files, I think I found the problem and want to be sure. Wolfgang umlaut-iso-8859-1.tex Description: TeX document umlaut-windows-1250.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] ntg-context Digest, Vol 51, Issue 36
Wolfgang Schuster wrote: > Can you try it again with my new test files. umlaut-iso-8859-1.tex --> no sharp s umlaut-utf-8.tex --> sharp s umlaut-windows-1250.tex --> no sharp s BTW: The download is running (or should I say crawling) with a gargantuan data rate of about 25 kbit/s ... Juergen ___ 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] modes questions
Taco Hoekwater wrote: > Hans Hagen wrote: >>> (1.2) Is there a way to call the modelist and submit it to conditional >>> testing within ConTeXt ? For example, to lookup (true/false) the >>> presence of modes containing/starting with (an) alphannumeric \doifinstring >>> string(s) ? >> \doifmodeelse{somemode} { } { } etc etc etc > > This presumes that you actually know the list of enabled modes, so > I think a commalist of "set modes" would be useful as well. Modules > could use that to set up keyword-based behaviours. there is already such a mechanism (thomas uses it in his module) maybe at some point in mkiv we can provide the list because then i can use lua for keeping track of things; maintaining a comma separated list is tex is not that fast (and i use modes a lot to control styles that need a high performance); think of \enablemode[a,b,c] and a large list of enabled modes that we need to check for already set nodes (in lua it's just a hash and a the fill list a list-of-keys) btw, this would make mkiv incompatible with mkii - 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] ntg-context Digest, Vol 51, Issue 36
On Thu, Sep 11, 2008 at 12:13 PM, Goebel, Juergen <[EMAIL PROTECTED]> wrote: > Mojca Miklavec wrote: > >> But as far as I understood, the problem got resolved, right? Didn't >> the umlaut-utf work OK? > > No, not with my oldtimer. > >> (Jürgen, in case that you are still using the old version of ConTeXt - >> *many* aspects have improved since then, including encodings and >> regimes, so before starting complaining that something doesn't work, >> try upgrading first. And I really mean it.) > > ACK. Can you try it again with my new test files. Wolfgang umlaut-iso-8859-1.tex Description: TeX document umlaut-utf-8.tex Description: TeX document umlaut-windows-1250.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] first steps with \dosingleempty
Patrick Gundlach wrote: > http://distribution.contextgarden.net/ Hmm, is there a zip-file or something like this, which I can download via http or ftp for use with windows? I think of something like context-setup-mswin.zip, only not minimal. I would very much appreciated a link to this resource. TIA, Juergen ___ 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] modes questions
Hans Hagen wrote: > >> (1.2) Is there a way to call the modelist and submit it to conditional >> testing within ConTeXt ? For example, to lookup (true/false) the >> presence of modes containing/starting with (an) alphannumeric >> string(s) ? > > \doifmodeelse{somemode} { } { } etc etc etc This presumes that you actually know the list of enabled modes, so I think a commalist of "set modes" would be useful as well. Modules could use that to set up keyword-based behaviours. Best wishes, Taco ___ 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] modes questions
Alan Stone wrote: > Hi, > > (1) --mode=modelist > > (1.1) Is there a limit to the number of modes in modelist ? no, just what the console and memory permit > (1.2) Is there a way to call the modelist and submit it to conditional > testing within ConTeXt ? For example, to lookup (true/false) the > presence of modes containing/starting with (an) alphannumeric > string(s) ? \doifmodeelse{somemode} { } { } etc etc etc > (2) --modefile=file > > (2.1) What's the syntax of a modefile ? this concerns examodes stuff that we use for process control at pragma > (2.2) How does ConTeXt handle a modefile ? Are the modes parsed into a > modelist ( re: question 1.2 ) ? best use ctx files instead, like in == somefile.ctx === texengine=luatex interface=en proofing somestyle.tex texexec --ctx=somefile - 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] first steps with \dosingleempty
On Thu, Sep 11, 2008 at 12:28 PM, Goebel, Juergen <[EMAIL PROTECTED]> wrote: > Patrick Gundlach wrote: > >> http://distribution.contextgarden.net/ > > Hmm, is there a zip-file or something like this, which > I can download via http or ftp for use with windows? I > think of something like context-setup-mswin.zip, only > not minimal. I would very much appreciated a link to > this resource. http://www.pragma-ade.com/download-1.htm mswincontext.zip 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] use of the \cite command (bib-module)
On Sep 11, 2008, at 12:19 PM, Martin Hoher wrote: > Hello, > > concerning the bib-module and the \cite command I've got two > questions: > > (1) The output in the text of the document should look like this: >Goldstein (2003:95). > The name of the author should be located on the outside of the > > brackets. > > > Goldstein refers to the name of the author, 2003 is the year of > publication and 95 is the relevant page number. > My approach until now: \cite[extras={:95}][G:2003] It generates > the > following output: (Goldstein 2003:95) > \setupcite [authoryear] [pubsep={, }, lastpubsep={ und }, compress=yes, inbetween={ (}, left={}, right={)}] (chapter 2.3 of the bib manual) > > (2) The output in the text should look like this: > (vgl. Goldstein 2003:95) > My intention is to place the expression "vgl." in front of the > authorname and inside of the brackets. \setupcite [authoryear] [pubsep={, }, lastpubsep={ und }, compress=yes, inbetween={ (vgl. }, left={}, right={)}] HTH Thomas ___ 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] use of the \cite command (bib-module)
Hello, concerning the bib-module and the \cite command I've got two questions: (1) The output in the text of the document should look like this: Goldstein (2003:95). The name of the author should be located on the outside of the brackets. Goldstein refers to the name of the author, 2003 is the year of publication and 95 is the relevant page number. My approach until now: \cite[extras={:95}][G:2003] It generates the following output: (Goldstein 2003:95) (2) The output in the text should look like this: (vgl. Goldstein 2003:95) My intention is to place the expression "vgl." in front of the authorname and inside of the brackets. If someone has an idea to solve this little problem, it will be great to here from you soon. Greetings Martin ___ 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] modes questions
Hi, (1) --mode=modelist (1.1) Is there a limit to the number of modes in modelist ? (1.2) Is there a way to call the modelist and submit it to conditional testing within ConTeXt ? For example, to lookup (true/false) the presence of modes containing/starting with (an) alphannumeric string(s) ? (2) --modefile=file (2.1) What's the syntax of a modefile ? (2.2) How does ConTeXt handle a modefile ? Are the modes parsed into a modelist ( re: question 1.2 ) ? -- Best, Alan * using ConTeXt ver: 2008.08.18 14:00 MKIV fmt: 2008.8.22 int: english/english (on Windows XP) ___ 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] ntg-context Digest, Vol 51, Issue 36
Mojca Miklavec wrote: > But as far as I understood, the problem got resolved, right? Didn't > the umlaut-utf work OK? No, not with my oldtimer. > (Jürgen, in case that you are still using the old version of ConTeXt - > *many* aspects have improved since then, including encodings and > regimes, so before starting complaining that something doesn't work, > try upgrading first. And I really mean it.) ACK. Regards, Jürgen ___ 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] fitting a picture to the available space
On Sep 11, 2008, at 9:28 AM, Hans Hagen wrote: > \starttext > > \framed[width=5cm,height4cm]{\externalfigure[mill.png] > [maxwidth=3cm,maxheight=4cm,width=10cm]} > > \stoptext > > seems to work Ah of course! I could set the width to an absurdly high number and so make sure that it will always reach the maxheight/maxwidth, no matter what the ratio! This seems to work, thanks a lot! Thomas ___ 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] ntg-context Digest, Vol 51, Issue 40
On Sep 11, 2008, at 10:23 AM, Taco Hoekwater wrote: > Actually I no longer have the source for syst-gen-doc, so the wiki > page is "leading" now. But anyway, this low-level reference > documentation stuff is on hold while we try to sort out a new > infrastructure for texshow. > > Best wishes, > Taco Hey, I was kidding, right? Think of all the millions of ConTeXt users holding their breath because you ended with such a cliffhanger... All best Thomas ___ 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] ntg-context Digest, Vol 51, Issue 36
On Wed, Sep 10, 2008 at 9:04 AM, Wolfgang Schuster wrote: > On Wed, Sep 10, 2008 at 8:56 AM, Goebel, Juergen wrote: >> Wolfgang Schuster wrote: >> >>> Which file do you used for test3 and which for test4? >> >> I'm sorry, seems to be too early in the morning. >> >> test3: umlaut-utf.tex >> test4: umlaut-latin.tex > > Can you try this > > \enableregime[windows] > \starttext > \SS\space\ssharp\space\number`ß > \stoptext [windows] is a bad nomenclature. Either [windows-1252] or [cp1252]. But as far as I understood, the problem got resolved, right? Didn't the umlaut-utf work OK? From the original post: \setupencoding is not supposed to be used this way: \setupencoding[texnansi] maybe \setupencoding[default=texnansi] but that won't have any effect on default font that is loaded. Mojca (Jürgen, in case that you are still using the old version of ConTeXt - *many* aspects have improved since then, including encodings and regimes, so before starting complaining that something doesn't work, try upgrading first. And I really mean it.) ___ 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] ntg-context Digest, Vol 51, Issue 40
Thomas A. Schmitz wrote: > You should really read the wiki section I recommended (there is also a > pdf version at http://tex.aanhet.net/context/syst-gen-doc.pdf, so if you > want to read it offline, just download it. Hey Taco, we're still > waiting for part 2...) Actually I no longer have the source for syst-gen-doc, so the wiki page is "leading" now. But anyway, this low-level reference documentation stuff is on hold while we try to sort out a new infrastructure for texshow. Best wishes, Taco ___ 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] first steps with \dosingleempty
On Thu, Sep 11, 2008 at 9:56 AM, Goebel, Juergen <[EMAIL PROTECTED]> wrote: > Hans Hagen wrote: > >> \unexpanded\def\Geb{\dosingleempty\doMyGeb} >> >> \def\doMyGeb[#1]#2#3% >>{, x \iffirstargument Aha \fi >> \doifsomethingelse{#2}{#2}{...}\space >> \doifsomethingelse{#3}{#3}{...}% >> \par} > > Thanks a lot, elegant and much shorter. > But, alas, I can't test it yet since the > \doifsomethingelse seems to be somewhat > newer. My oldtimer (according to Hraban) > shall really be updated during the next > days or weeks ... You could use \doifelsenothing with reverse order for the second and third argument, \doifsomethingelse was included after the TL 2008 ConTeXt release. 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] Strange behaviour with tikz
On Wed, Sep 10, 2008 at 7:44 PM, Eric DÉTREZ wrote: > Hello again > > I don't understand a strange thing. > > Patterns in tikz become black in some case. > > Here is a minimal example : > *** > \usemodule[tikz] > \usetikzlibrary[patterns] > \starttext > > blabla > > \chapter {blabla} > > \starttikzpicture > \draw [pattern=north west lines](0,0) rectangle +(1,2); > \stoptikzpicture > > \stoptext > * > > Without any text before the chapter or without the chapter command I > see the patterns. > With these commands I just see a black rectangle. > > Can I get my patterns back ? What version of ConTeXt and TikZ are you using? I first tried your example with TeX Live 2008, and it looked like a ConTeXt-related problem in TikZ. The patterns only worked on the first page. But then I checked with the latest version of both ConTeXt and TikZ (http://minimals.contextgarden.net/current/modules/t-tikz/ - you can fetch it with rsync) rsync -av rsync://contextgarden.net/minimals/current/modules/t-tikz/ place-on-your-computer And it worked fine. 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 ___
Re: [NTG-context] first steps with \dosingleempty
Hi, > Does anyone know when the TL 2008 will be > distributed to the DANTE-members? very likely, but you should consider trying out the official context distribution: http://distribution.contextgarden.net/ Patrick -- ConTeXt wiki and more: 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] A ConTeXt bug tracker to keep track of reported bugs?
Khaled Hosny wrote: > I've reported several bugs (mostly Arabic related) and I'm afraid it > might get lost as time goes, I wonder if there is a bug tracker for they're still in my mailbox ... time ... - 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] first steps with \dosingleempty
Hans Hagen wrote: > \unexpanded\def\Geb{\dosingleempty\doMyGeb} > > \def\doMyGeb[#1]#2#3% >{, x \iffirstargument Aha \fi > \doifsomethingelse{#2}{#2}{...}\space > \doifsomethingelse{#3}{#3}{...}% > \par} Thanks a lot, elegant and much shorter. But, alas, I can't test it yet since the \doifsomethingelse seems to be somewhat newer. My oldtimer (according to Hraban) shall really be updated during the next days or weeks ... Does anyone know when the TL 2008 will be distributed to the DANTE-members? Juergen ___ 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] fitting a picture to the available space
Thomas A. Schmitz wrote: > Hi guys, > > I'm pulling my hair out. I'm trying to set up an automatism to fit > pictures to the available space on a slide. I need to consider three > parameters: > > 1. If the user supplies a value for width= or height= , use this value > (captured in a macro); > > 2. respect the maxwidth and maxheight which must not exceed the frame; > > 3. if the picture is smaller than the available space, blow it up so > that it reaches the maxwidth or maxheight (but doesn't exceed either). > > factor=max or =fit does not work because it allows pictures to exceed > one of the maximum values. About a year ago Giuseppe Bilotta wrote a > message which I append; it describes my problem. Is there a generic > solution for this problem? If there is, I'll gladly take it; if there > isn't, I thought I had a solution but may need help with expanding and > conditionals, then I'll be back with more questions. > > Anyway, good night all, and thanks. \starttext \framed[width=5cm,height4cm]{\externalfigure[mill.png][maxwidth=3cm,maxheight=4cm,width=10cm]} \stoptext seems to work > Thomas > >> Subject: Re: [NTG-context] factor=fit images don't fit >> Sunday, July 22, 2007 Hans Hagen wrote: >> >>> the fit assumes operating on a page not in a box; >> Ah, didn't know that. I couldn't even tell from the sources, >> since it uses enclosing box dimensions and not page or paper >> sizes. I suspect the logic is broken at the page level too >> though, let me explain why. >> >> Currently, if I understand the code correctly, factor=fit >> expands the figure to have its major direction fit, while >> factor=max expands the figure to have its minor direction >> fit. >> >> Instead, the behavior I would expect from fit (resp. max) is >> for the *expansion ratio* to be the minimum (resp. maximum) >> of the expansion ratios in the two directions (not the sizes >> in those directions, but the ratio between the sizes of the >> figure and the container). The difference is noticeable when >> the container and contained have different aspect ratios. >> >> Consider for example a 20x30mm figure in a 50x150mm page >> (strange numbers, just used to show what I mean): with the >> current code, using 'fit' would consider the largest >> dimension (30) and thus calculate a factor of 150/30 = 5, >> but this gives us an image which is 100x150mm, i.e. an image >> that doesn't fit! Whereas, if we computed the ratios 50/20 = >> 2.5 and 150/30 = 5, we would know that the ratio to be >> picked was 2.5 in 'fit' and 5 in 'max'. >> >> Or I misintepreting the meaning of 'fit' and 'max'? >> >>> an alternative is: >>> \framed[width=5cm,height4cm] >>> >>> {\externalfigure[mill.png][maxwidth=4cm,maxheight=5cm,width=10cm]} >>> i.e. setting the maximum values >> I hadn't thought about using width and maxwidth (and >> maxheight) at the same time, thanks. Of course, I'd rather >> have 'fit' and 'max' usable in boxes :) > ___ > 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 > ___ -- - 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] A ConTeXt bug tracker to keep track of reported bugs?
Patrick Gundlach wrote: > Hi, > >> I've reported several bugs (mostly Arabic related) and I'm afraid it >> might get lost as time goes, I wonder if there is a bug tracker for >> ConTeXt where we can track reported bugs? I searched the wiki and I >> didn't find any thing. > > There used to be a public bug tracker at foundry.supelec.fr somewhere. > But I have removed the links from the wiki page, since it seems to be > outdated. > > There is an internal bug tracker for the developers which Yue Wang > mentioned. there is atracker running at http://tracker.luatex.org/login_page.php which has an context subtracker as well 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] first steps with \dosingleempty
Goebel, Juergen wrote: > Hi, > > Regarding the following example I've got two questions. > > (1) Why don't I ever see the argument #2 in the output? > (2) What do I have to do to suppress the unwanted space > after the end of the output of this macro (as can be seen > in the result before the following comma)? > > Regards, > > Juergen > > > \def\Geb{\dosingleempty\doMyGeb} > \def\doMyGeb[#1]#2#3{, x % >\iffirstargument% > Aha >\else > \ifsecondargument% >#2 > \else% >... %C% > \fi >\fi >\ifthirdargument% > #3% >\else% > ...% >\fi} > > \starttext > > \Geb{Ulm}{11. 9. 2008} % should deliver x Ulm 11. 9. 2008 > \Geb[Ulm]{Ulm}{11. 9. 2008} % should deliver x Aha Ulm 11. 9. 2008 > \Geb{}{11. 9. 2008} % should deliver x ... 11. 9. 2008 > \Geb{Ulm}{} % should deliver x Ulm ... > \Geb{}{} % should deliver x ... > > \stoptext \unexpanded\def\Geb{\dosingleempty\doMyGeb} \def\doMyGeb[#1]#2#3% {, x \iffirstargument Aha \fi \doifsomethingelse{#2}{#2}{...}\space \doifsomethingelse{#3}{#3}{...}% \par} - 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 ___