Re: [NTG-context] ntg-context Digest, Vol 51, Issue 40
On Sep 11, 2008, at 7:21 AM, Goebel, Juergen wrote: > ACK. > Accustomed to LaTeX this handling had the feeling > of TeX, but of course it isn't. Nevertheless I'm > afraid I'm going to have a hard time to learn this. > The next problem(s) are already in the pipeline. > > Juergen Of course all of this is highly personal, and everyone is bound to find the solution he's been working with for a long time "natural" and everything else "difficult" or "clumsy." Nevertheless: if you want to write more than just a few trivial macros, you will appreciate all the system tools that ConTeXt provides. When I started using TeX, I tried LaTeX, but if you want configurable macros, you have to use additional packages such as ifthen, keyval or xkeyval. I found their use extremely clumsy and their documentation horrible. Doing conditionals in pure TeX isn't easy either. ConTeXt, on the other hand, provides a wealth of consistent \doif... tests; they are logical and easy to use. The key=val parser is maybe the center of the entire ConteXt philosophy and a wonderful mechanism, and even a completely non-CS, non-scientific user such as I am can learn how to use it. 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...) and you will soon appreciate the elegance and ease of use of these macros. 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] first steps with \dosingleempty
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 ___ 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?
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. 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] ntg-context Digest, Vol 51, Issue 40
Thomas A. Schmitz wrote: > ??? I have no idea what you want to say here. ACK. Accustomed to LaTeX this handling had the feeling of TeX, but of course it isn't. Nevertheless I'm afraid I'm going to have a hard time to learn this. The next problem(s) are already in the pipeline. 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?
maybe tracker.luatex.org On Thu, Sep 11, 2008 at 9:06 AM, Khaled Hosny <[EMAIL PROTECTED]> 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 > ConTeXt where we can track reported bugs? I searched the wiki and I > didn't find any thing. > > -- > Khaled Hosny > Arabic localizer and member of Arabeyes.org team > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkjIbyAACgkQRoqITGOuyPLZFwCfeHlOhobI3Ic6IjuaY9vlbyjw > SVYAnjRpY8XLq7lgWgklkkJCgDShnCNF > =L268 > -END PGP SIGNATURE- > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : 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] A ConTeXt bug tracker to keep track of reported bugs?
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. -- 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 ___
[NTG-context] fitting a picture to the available space
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. 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 ___
Re: [NTG-context] project too large??
On Sep 10, 2008, at 9:41 PM, Steffen Wolfrum wrote: > ... ok fine again. I just increased the weak settings by ten: > > hash_extra = 50 % 5 > pool_size.context= 2000 % 200 > > But I assume the fact that these variables have predefined values > indicates that they shouldn't be fantastic high. Otherwise why would > they have these precise values anyway? > > So I am wondering: what is the right value, what is too high and what > happens if the values are too high? > > Steffen > Maybe of interest: here's what Taco wrote in December 2007: > Increase hash_extra, as Hans said. There is (virtuallly) no limit > to that. As to the question why the values are so low in texmf.cnf: keep in mind that TeX runs on some pretty old computers with maybe only 256 MB of RAM. When you prepare such a big system as TeXLive which has to run on all sorts of platforms and hardware, you prefer to err on the low side. 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] project too large??
Steffen Wolfrum wrote: > ok fine again. I just increased the weak settings by ten: > > hash_extra = 50 % 5 > pool_size.context= 2000 % 200 > > But I assume the fact that these variables have predefined values > indicates that they shouldn't be fantastic high. Otherwise why would > they have these precise values anyway? > > So I am wondering: what is the right value, what is too high and what > happens if the values are too high? the larger, the more mem is allocated beforehand - 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] project too large??
... ok fine again. I just increased the weak settings by ten: hash_extra = 50 % 5 pool_size.context= 2000 % 200 But I assume the fact that these variables have predefined values indicates that they shouldn't be fantastic high. Otherwise why would they have these precise values anyway? So I am wondering: what is the right value, what is too high and what happens if the values are too high? Steffen Am 10.09.2008 um 18:46 schrieb Steffen Wolfrum: > > Am 09.09.2008 um 18:38 schrieb Hans Hagen: > >> Steffen Wolfrum wrote: >>> Hi, >>> >>> I have a quite large project: over 700 pages, 2500 footnotes, some >>> tables, figures etc. >>> Everything works well when typeset in two parts. >>> >>> But when I typeset the entire project as one, I get this error: >>> >>> >>> >>> EbeneSechs : C.III.7.b Wirksamkeit trotz mündlicher und >>> konkludenter Abtr >>> etungsverbote >>> ! TeX capacity exceeded, sorry [hash size=6]. >> >> you can increase the hash in texmf.cnf > > > that worked ... but after some more working on my project I get > another error (see below): > > which one I can increase now ? > > pool_free.context= 47500 > pool_size.context= 200 > pool_size = 125 > pool_free = 47500 > > Thanks, Steffen > > = > > ! TeX capacity exceeded, sorry [pool size=529543]. > \defconvertedargument ...\edef #1{\detokenize {#2} > } > \dodododoconstructhead ...ko #1\c!expansion }}{#4} > \gdef > \currentheadtext {#4... > l.3933 ...\kern-0.05em}, \hbox{ZfgKW} 2005, 981.]} > > If you really absolutely need more capacity, > you can ask a wizard to enlarge me. > > > Here is how much of TeX's memory you used: > 33083 strings out of 457141 > 529543 string characters out of 529543 > 5331289 words of memory out of 7759285 > 61694 multiletter control sequences out of 1+50 > 1283787 words of font info for 969 fonts, out of 300 for 5000 > 543 hyphenation exceptions out of 8191 > 72i,21n,94p,4610b,14879s stack positions out of 5000i,500n,1p, > 20b,5s > ! ==> Fatal error occurred, no output PDF file produced! > > ___ > 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] Strange behaviour with tikz
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 ? ___ 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] \setuphead question
How do you obtain the same result as \setuphead[chapter][header=option(,footer=option)] ( option = none empty high nomarking ) in a document where [header/footer][left/rightedge]="not empty" on chapter pages i.e. only [header/footer][text]=option for chapter pages and others ( left/right edge ) are not modified ? -- 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] project too large??
Am 09.09.2008 um 18:38 schrieb Hans Hagen: > Steffen Wolfrum wrote: >> Hi, >> >> I have a quite large project: over 700 pages, 2500 footnotes, some >> tables, figures etc. >> Everything works well when typeset in two parts. >> >> But when I typeset the entire project as one, I get this error: >> >> >>> >> >> EbeneSechs : C.III.7.b Wirksamkeit trotz mündlicher und >> konkludenter Abtr >> etungsverbote >> ! TeX capacity exceeded, sorry [hash size=6]. > > you can increase the hash in texmf.cnf that worked ... but after some more working on my project I get another error (see below): which one I can increase now ? pool_free.context= 47500 pool_size.context= 200 pool_size = 125 pool_free = 47500 Thanks, Steffen = ! TeX capacity exceeded, sorry [pool size=529543]. \defconvertedargument ...\edef #1{\detokenize {#2} } \dodododoconstructhead ...ko #1\c!expansion }}{#4} \gdef \currentheadtext {#4... l.3933 ...\kern-0.05em}, \hbox{ZfgKW} 2005, 981.]} If you really absolutely need more capacity, you can ask a wizard to enlarge me. Here is how much of TeX's memory you used: 33083 strings out of 457141 529543 string characters out of 529543 5331289 words of memory out of 7759285 61694 multiletter control sequences out of 1+50 1283787 words of font info for 969 fonts, out of 300 for 5000 543 hyphenation exceptions out of 8191 72i,21n,94p,4610b,14879s stack positions out of 5000i,500n,1p, 20b,5s ! ==> Fatal error occurred, no output PDF file produced! ___ 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] ifdim ... or ... else ...
Wolfgang Schuster wrote: > On Wed, Sep 10, 2008 at 2:31 PM, Hans Hagen <[EMAIL PROTECTED]> wrote: >> Marcin Borkowski wrote: >>> Dnia Wed, Sep 10, 2008 at 01:49:52PM +0200, Steffen Wolfrum napisał(a): Hi, I'd like to change the phrase "if lastskip equals \EinsSignal set vskip to 0pt else ..." to "if lastskip equals \EinsSignal set vskip to 0pt else if lastskip equals \\ZweiSignal set vskip to -2pt else ... " in the following code ... \newsignal\ZweiSignal \def\EbeneDreibefore {\ifdim\lastskip=\EinsSignal \vskip-0pt \else \blank[20pt]\fi} \setuphead[EbeneDrei][...,before=\EbeneDreibefore,...] >>> What about just that you wrote? >>> >>> \ifdim ... \else\ifdim ... \fi\fi >>> Some native (tex)speaker can help me translating? >>> Non-native, but close (OTOH, not so close as Hans;)) >> ok then, an obscure solution for the natives ... untested: >> >> \setvalue{Ebene:\the\dimexpr 0pt\relax}{1pt} >> \setvalue{Ebene:\the\dimexpr 1pt\relax}{-2pt} >> >> \vskip\executeifdefined{Ebene:\the\lastskip}{0pt}\relax > > But this is newspeak ;-) newspeak would be using an attribute and postprocessing the node list -) 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] ifdim ... or ... else ...
On Wed, Sep 10, 2008 at 2:31 PM, Hans Hagen <[EMAIL PROTECTED]> wrote: > Marcin Borkowski wrote: >> Dnia Wed, Sep 10, 2008 at 01:49:52PM +0200, Steffen Wolfrum napisał(a): >>> Hi, >>> >>> >>> I'd like to change the phrase >>> >>> "if lastskip equals \EinsSignal set vskip to 0pt else ..." >>> >>> to >>> >>> "if lastskip equals \EinsSignal set vskip to 0pt else if lastskip >>> equals \\ZweiSignal set vskip to -2pt else ... " >>> >>> >>> in the following code ... >>> >>> \newsignal\ZweiSignal >>> \def\EbeneDreibefore {\ifdim\lastskip=\EinsSignal \vskip-0pt \else >>> \blank[20pt]\fi} >>> \setuphead[EbeneDrei][...,before=\EbeneDreibefore,...] >> >> What about just that you wrote? >> >> \ifdim ... \else\ifdim ... \fi\fi >> >>> >>> Some native (tex)speaker can help me translating? >> >> Non-native, but close (OTOH, not so close as Hans;)) > > ok then, an obscure solution for the natives ... untested: > > \setvalue{Ebene:\the\dimexpr 0pt\relax}{1pt} > \setvalue{Ebene:\the\dimexpr 1pt\relax}{-2pt} > > \vskip\executeifdefined{Ebene:\the\lastskip}{0pt}\relax But this is newspeak ;-) 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] ntg-context Digest, Vol 51, Issue 39
Wolfgang Schuster wrote: > http://wiki.contextgarden.net/Commands_with_optional_arguments > > And we have also \define and \redefine but you can't use > optional arguments with them. That's a good starting point, thanks for the link. My first attempts are running, although faulty. Perhaps I'll be back here for further help. 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] ntg-context Digest, Vol 51, Issue 39
On Sep 10, 2008, at 3:21 PM, Goebel, Juergen wrote: > Yes, it does. Although I must admit, that this 'handling' might > be an advantage of LaTeX. I never wanted to learn TeX, but maybe > now I have to (at least to some extent). ??? I have no idea what you want to say here. 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 39
Thomas A. Schmitz wrote: > No, we never define any commands... Err, in fact yes, > sometimes we do. > You want to read http://wiki.contextgarden.net/System_Macros , > especially > http://wiki.contextgarden.net/System_Macros/Handling_Arguments > > HTH Yes, it does. Although I must admit, that this 'handling' might be an advantage of LaTeX. I never wanted to learn TeX, but maybe now I have to (at least to some extent). And sorry for the changing subject, I'll change to the non-digest mode. 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] ifdim ... or ... else ...
Marcin Borkowski wrote: > Dnia Wed, Sep 10, 2008 at 01:49:52PM +0200, Steffen Wolfrum napisał(a): >> Hi, >> >> >> I'd like to change the phrase >> >> "if lastskip equals \EinsSignal set vskip to 0pt else ..." >> >> to >> >> "if lastskip equals \EinsSignal set vskip to 0pt else if lastskip >> equals \\ZweiSignal set vskip to -2pt else ... " >> >> >> in the following code ... >> >> \newsignal\ZweiSignal >> \def\EbeneDreibefore {\ifdim\lastskip=\EinsSignal \vskip-0pt \else >> \blank[20pt]\fi} >> \setuphead[EbeneDrei][...,before=\EbeneDreibefore,...] > > What about just that you wrote? > > \ifdim ... \else\ifdim ... \fi\fi > >> >> Some native (tex)speaker can help me translating? > > Non-native, but close (OTOH, not so close as Hans;)) ok then, an obscure solution for the natives ... untested: \setvalue{Ebene:\the\dimexpr 0pt\relax}{1pt} \setvalue{Ebene:\the\dimexpr 1pt\relax}{-2pt} \vskip\executeifdefined{Ebene:\the\lastskip}{0pt}\relax - 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] was: ifdim ... or ... else ...
On Wed, Sep 10, 2008 at 2:23 PM, Steffen Wolfrum <[EMAIL PROTECTED]> wrote: > Thanks Marcin, that's it! > > BTW: what language is that actually? TeX or ConTeXt? > I'd like to learn some more then just "Hello World" ;o) \ifdim is a TeX primitive Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] was: ifdim ... or ... else ...
Thanks Marcin, that's it! BTW: what language is that actually? TeX or ConTeXt? I'd like to learn some more then just "Hello World" ;o) Steffen Am 10.09.2008 um 14:15 schrieb Marcin Borkowski: > Dnia Wed, Sep 10, 2008 at 01:49:52PM +0200, Steffen Wolfrum > napisał(a): >> Hi, >> >> >> I'd like to change the phrase >> >> "if lastskip equals \EinsSignal set vskip to 0pt else ..." >> >> to >> >> "if lastskip equals \EinsSignal set vskip to 0pt else if lastskip >> equals \\ZweiSignal set vskip to -2pt else ... " >> >> >> in the following code ... >> >> \newsignal\ZweiSignal >> \def\EbeneDreibefore {\ifdim\lastskip=\EinsSignal \vskip-0pt \else >> \blank[20pt]\fi} >> \setuphead[EbeneDrei][...,before=\EbeneDreibefore,...] > > What about just that you wrote? > > \ifdim ... \else\ifdim ... \fi\fi > >> >> >> Some native (tex)speaker can help me translating? > > Non-native, but close (OTOH, not so close as Hans;)) > > -- > Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl) > > <>< > ___ > 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] ifdim ... or ... else ...
Dnia Wed, Sep 10, 2008 at 01:49:52PM +0200, Steffen Wolfrum napisał(a): > Hi, > > > I'd like to change the phrase > > "if lastskip equals \EinsSignal set vskip to 0pt else ..." > > to > > "if lastskip equals \EinsSignal set vskip to 0pt else if lastskip > equals \\ZweiSignal set vskip to -2pt else ... " > > > in the following code ... > > \newsignal\ZweiSignal > \def\EbeneDreibefore {\ifdim\lastskip=\EinsSignal \vskip-0pt \else > \blank[20pt]\fi} > \setuphead[EbeneDrei][...,before=\EbeneDreibefore,...] What about just that you wrote? \ifdim ... \else\ifdim ... \fi\fi > > > Some native (tex)speaker can help me translating? Non-native, but close (OTOH, not so close as Hans;)) -- Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl) <>< ___ 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] ifdim ... or ... else ...
On Sep 10, 2008, at 1:49 PM, Steffen Wolfrum wrote: > Hi, > > > I'd like to change the phrase > > "if lastskip equals \EinsSignal set vskip to 0pt else ..." > > to > > "if lastskip equals \EinsSignal set vskip to 0pt else if lastskip > equals \\ZweiSignal set vskip to -2pt else ... " > > > in the following code ... > > \newsignal\ZweiSignal > \def\EbeneDreibefore {\ifdim\lastskip=\EinsSignal \vskip-0pt \else > \blank[20pt]\fi} > \setuphead[EbeneDrei][...,before=\EbeneDreibefore,...] > > > Some native (tex)speaker can help me translating? > > Steffen I'm not a native texspeaker, but this should wo what you want: \def\EbeneDreibefore% {\ifdim\lastskip=\EinsSignal \vskip-0pt% \else\ifdim\lastskip=\ZweiSignal \vskip-2pt% \else \blank[20pt]% \fi% \fi} You just nest the two \ifdim tests. 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] ifdim ... or ... else ...
Hi, I'd like to change the phrase "if lastskip equals \EinsSignal set vskip to 0pt else ..." to "if lastskip equals \EinsSignal set vskip to 0pt else if lastskip equals \\ZweiSignal set vskip to -2pt else ... " in the following code ... \newsignal\ZweiSignal \def\EbeneDreibefore {\ifdim\lastskip=\EinsSignal \vskip-0pt \else \blank[20pt]\fi} \setuphead[EbeneDrei][...,before=\EbeneDreibefore,...] Some native (tex)speaker can help me translating? Steffen ___ 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] Protrude quotation marks
On Wed, Sep 10, 2008 at 10:30 AM, Hans Hagen <[EMAIL PROTECTED]> wrote: > Wolfgang Schuster wrote: >> Hi Hans, >> >> >> can you add quotation marks (guillemets too) to the punctuation >> table in font-ext.lua >> >> I have also two antries I want in the pure table, they are >> IDEOGRAPHIC COMMA U+3001 >> IDEOGRAPHIC FULL STOP U+3002 > > just provide me the lines to add done, see attachment. Wolfgang pure: [0x3001] = { 0, 1}, -- ã ideographic comma [0x3002] = { 0, 1}, -- ã ideographic full stop punctuation: [0x2039] = { 0.70, 0.70 }, -- â¹ left single guillemet [0x203A] = { 0.70, 0.70 }, -- ⺠right single guillemet [0x00AB] = { 0.50, 0.50 }, -- « left guillemet [0x00BB] = { 0.50, 0.50 }, -- » right guillemet [0x2018] = { 0.70, 0.70 }, -- â left single quotation mark [0x2019] = { 0,0.70 }, -- â right single quotation mark [0x201A] = { 0.70, 0}, -- , single low-9 quotation mark [0x201B] = { 0.70, 0}, -- â single high-reversed-9 quotation mark [0x201C] = { 0.50, 0.50 }, -- â left double quotation mark [0x201D] = { 0,0.50 }, -- â right double quotation mark [0x201E] = { 0.50, 0}, -- â double low-9 quotation mark [0x201F] = { 0.50, 0}, -- â double high-reversed-9 quotation mark ___ 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] defining (new) macros with optional arguments
On Wed, Sep 10, 2008 at 12:26 PM, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote: > > On Sep 10, 2008, at 11:54 AM, Goebel, Juergen wrote: > >> Hi, >> >> Does something like \newcommand exist in ConTeXt? >> My questions aims especially at the optional argument >> with a predefined value. So, how do I realize >> >> \newcommand{\test}[2][A]{foo} >> >> with ConTeXt. In the fine manual I found an index entry >> \definecommand, but in the 'rest' of the manual it was >> never mentioned (print and screen version alike)! >> >> Regards, >> >> Juergen >> > No, we never define any commands... Err, in fact yes, sometimes we do. > You want to read http://wiki.contextgarden.net/System_Macros , > especially http://wiki.contextgarden.net/System_Macros/Handling_Arguments > > Thomas http://wiki.contextgarden.net/Commands_with_optional_arguments And we have also \define and \redefine but you can't use optional arguments with them. 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] defining (new) macros with optional arguments
On Sep 10, 2008, at 11:54 AM, Goebel, Juergen wrote: > Hi, > > Does something like \newcommand exist in ConTeXt? > My questions aims especially at the optional argument > with a predefined value. So, how do I realize > > \newcommand{\test}[2][A]{foo} > > with ConTeXt. In the fine manual I found an index entry > \definecommand, but in the 'rest' of the manual it was > never mentioned (print and screen version alike)! > > Regards, > > Juergen > No, we never define any commands... Err, in fact yes, sometimes we do. You want to read http://wiki.contextgarden.net/System_Macros , especially http://wiki.contextgarden.net/System_Macros/Handling_Arguments 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 ___
Re: [NTG-context] ntg-context Digest, Vol 51, Issue 38
Wolfgang Schuster schrieb: > Can you try this > > \enableregime[windows] > \starttext > \SS\space\ssharp\space\number`? > \stoptext The result is shown in the attached test5.pdf, \SS and \ssharp show the 'eszet', \number` deliveres 63. Juergen test5.pdf Description: test5.pdf ___ 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] defining (new) macros with optional arguments
Hi, Does something like \newcommand exist in ConTeXt? My questions aims especially at the optional argument with a predefined value. So, how do I realize \newcommand{\test}[2][A]{foo} with ConTeXt. In the fine manual I found an index entry \definecommand, but in the 'rest' of the manual it was never mentioned (print and screen version alike)! 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 ___
[NTG-context] scope of references and symbols
Hi, What's the scope of references and symbols defined through \definereference[myRef][ThisRef] \definesymbol[myRef][ThisSymbol] and \reference[ThisRef]{} -- 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] Protrude quotation marks
Wolfgang Schuster wrote: > Hi Hans, > > > can you add quotation marks (guillemets too) to the punctuation > table in font-ext.lua > > I have also two antries I want in the pure table, they are > IDEOGRAPHIC COMMA U+3001 > IDEOGRAPHIC FULL STOP U+3002 just provide me the lines to add 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] Texlive 2008 on Windows (Vista)
On Tue, Sep 9, 2008 at 8:12 PM, Mohamed Bana <[EMAIL PROTECTED]> wrote: > Is anyone actually testing texlive 2008 on vista? Or is it just me :) Is Vista that different? On WINE, with TL installed to C:\texlive\2008, I got a little further, after editing context.cmd because wine set %~dp0% to the current path: @echo off setlocal REM set ownpath=%~dp0% set ownpath=C:\texlive\2008\bin\win32\ texlua "%ownpath%mtxrun.lua" --script context %* endlocal Having done this, I still see "not found" errors: $ context --make [... locating, loading ...] MtxRun | using script: C:/texlive/2008/texmf-dist/scripts/context/lua/mtx-contex t.lua MtxRun | running command: luatools --make --compile cont-enFile not found MtxRun | running command: luatools --make --compile cont-nlFile not found MtxRun | running command: luatools --make --compile mptopdfFile not found Have you tried using luatools to see if "mtx-context.lua" is found? It should be a trivial exercise to just move your TeXLive to a path without the space. Somewhere the changes to the registry are mentioned and are minimal, just the PATH setting, Also, watch for problems with settings left from old TeX installs (many MiKTeX users have TEXINPUTS). -- George N. White III <[EMAIL PROTECTED]> Head of St. Margarets Bay, Nova Scotia ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Protrude quotation marks
Hi Hans, can you add quotation marks (guillemets too) to the punctuation table in font-ext.lua I have also two antries I want in the pure table, they are IDEOGRAPHIC COMMA U+3001 IDEOGRAPHIC FULL STOP U+3002 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] Mkiv Colour issue and more
Mohamed Bana wrote: >> luatex --version > This is LuaTeX, Version snapshot-0.29.0-2008072009 > >> texexec --version > TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD > > The file source; http://pastebin.com/f4923f52c. > >> \placecontent[criterium=chapter, >> level=section, >> color=headingcolour, >>interaction=all, >>alternative=c, >> aligntitle=yes, >> before={\startnarrower[0*left,8*right]}, >> after={\stopnarrower}, >> margin=2em] >> \blank[2*big] > > 1. The first line "1.1 section1 . . . . . . . . . . . . . . . . . . . . . . > . > .. . . . 1" is red! This is only the case with mkiv. > > mkii; http://filebin.ca/vfqedy/test.pdf or http://filebin.ca/vfqedy > mkiv; http://filebin.ca/xmupe/test.pdf or http://filebin.ca/xmupe i'll have a look at it ... there is some leader bug in luatex itself that might to be solved first > 2. Is it possible to have the \blank[2*big] generated by the placecontent > command? The default space generated after chapter seems fine, but I'd > really > like to have a listing of the sections after the chapter. \startsetups chapter:after \blank[2*big] \placecontent % or \placelist[section][] [criterium=chapter, level=section, color=headingcolour, interaction=all, alternative=c, aligntitle=yes, before={\startnarrower[0*left,8*right]}, after={\stopnarrower}, margin=2em] \blank[2*big] \stopsetups \setuphead[chapter][after=\setups{chapter:after}] > 3. Am I missing something? I'd like the same effect or better without the > explicit call to \startnarrower or \stopnarrower no problem with startnarrower but you might want to use the nicer looking \startsetups chapter:after \blank[2*big] \startnarrower[0*left,8*right] \placecontent [criterium=chapter, level=section, color=headingcolour, interaction=all, alternative=c, aligntitle=yes, before=, after=, margin=2em] \stopnarrower \blank[2*big] \stopsetups >> \definecolor[ucolour] [c=0,m=0.83,y=1,k=0.7] >> \definecolor[urlcolour] [c=0,m=0.51,y=1,k=0] >> ... >> ... >> \setupinteraction[ >> state=start, >>color=ucolour, >>option=bookmark] > > 4. Doesn't work, but strangely enough "color=urlcolour" does. If I do use > "ucolour", the links are shown in black; http://filebin.ca/dnoqva/test.pdf > or > http://filebin.ca/dnoqva hm, i dunno, both work ok here > 5. > \useURL[key][http://wiki.contextgarden.net/][][http://wiki.contextgarden.net/] > > fails, but \useURL[key][http://httpd.apache.org/download.cgi] works. The > former fails with; http://pastebin.com/f3cc75b10. > > I'm actually quiet baffled by this. Also now the dots are green; > http://filebin.ca/cezdzr/test.pdf, http://filebin.ca/cezdzr or > http://www.4shared.com/file/62409267/2d29710c/test.html. how does that code look? (not in the sample file) > 6. Why aren't the paragraphs that have a picture to the right or left > indented > on the first line? Compare the paragraphs on page1-section1 with those on > page2-section3. feature -) > 7. Why aren't the the urls broken across lines, page2-3. I'm pretty sure > the > hyperref package in latex supported this. no example; breaking urls is supported > 8. What must I do to the 3rd paragraph on the first page to get it to space > properly? It's far too close to the previous one. ? > 9. the d in "praised" protrudes to the margin, how do I stop this. I should > point out that this happens often. depends ... || should handle it > 10. And the last question :). Is it possible to get a table of contents > similar to that on page 36 of 'the elements of typographic style'? I.e., > > chapter-namex - page x > chapter-namey - page y > chapter-namez - page z > > and it's centered aligned according to the -. hook in a command that does it 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 36
On Wed, Sep 10, 2008 at 8:56 AM, Goebel, Juergen <[EMAIL PROTECTED]> 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 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 ___