Re: [NTG-context] ConTeXt installtion and Debian
Hi Taco, hi all! I am trying to fix all the problems for Debian ... Another thing Taco wrote was: * TEXFORMATS as shipped with teTeX/TL is uncomplete: there is that missing format-specific subdirectory. If you are not root, then you have to create a local texmf.cnf to overrule the default texmf.cnf. I have: TEXFORMATS= .;$TEXMF/web2c/{$engine,} because context's texexec pushes the $engine setting to the environment, this works fine (Originally this was supposed to be handled by kpathsea, but like I said, that never got off the ground) This change I have executed in the tex-common depot, it will not hurt anybody. * TEXFONTMAPS is also wrong: it makes pdftex (and dvipdfmx as well, I guess) find the mapfiles for dvips before their own mapfiles (those are shipped with ConTeXt). I have: TEXFONTMAPS.dvipdfm = .;$TEXMF/fonts/map/{dvipdfm,dvips,}// TEXFONTMAPS.dvipdfmx = .;$TEXMF/fonts/map/{dvipdfm,dvips,}// TEXFONTMAPS.pdftex = .;$TEXMF/fonts/map/{pdftex,dvips,}// TEXFONTMAPS.pdfetex = .;$TEXMF/fonts/map/{pdftex,dvips,}// TEXFONTMAPS.xetex= .;$TEXMF/fonts/map/{xetex,pdftex,dvips,}// TEXFONTMAPS.dvips= .;$TEXMF/fonts/map/{dvips,pdftex,}// TEXFONTMAPS =.;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//;\ $TEXMF/{$progname,pdftex,dvips}/{config,}// this works fine (but it is perhaps a bit too verbose). Debian currently has: TEXFONTMAPS = .;$TEXMF/{fonts/,}map//;$TEXMF/dvips// What about this? I am not completely convinced about it since with updmap we generate input file for all the different programs. For Taco: I have NOT installed the dvipdfm map files, only those from fonts/map/pdftex/context and fonts/map/dvips/context Furthermore I have added all the maps in fonts/map/dvips/context to the updmap config file and called updmap-sys. So now I can call texexec on several documents without any problems and all the fonts are found. What is the problem with - removing the dvipdfm maps - generating lines for dvipdfm(x), pdfetex, dvips from the dvips config files as done by updmap-sys It would be great if we could straighten this out and get nice packages for Debian rather soon. Best wishes Norbert --- Dr. Norbert Preining [EMAIL PROTECTED]Università di Siena Debian Developer [EMAIL PROTECTED] Debian TeX Group gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- HERSTMONCEUX (n.) The correct name for the gold medallion worn by someone who is in the habit of wearing their shirt open to the waist. --- Douglas Adams, The Meaning of Liff ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt installtion and Debian
Hi all! On Die, 24 Okt 2006, Norbert Preining wrote: # texexec --make --all [--xetex | --aleph | --pdftex] formats Where formats are the desired formats to run. The accepted list at the moment is: the eight ConTeXt formats, in both long (cont-en etc.) and short from (en,nl,de,it,fr,cz, ro,uk), and mptopdf, and the metapost mems mpost and metafun. Ok, I have rewritten the Debian context package so that it does the following: On installation/update time a script context-build-formats is called which reads the file /etc/texmf/context/formats.cnf where all the formats to be build are defined. Currently my file looks like this: # # This file defines which ConTeXt formats are build # {pdftex,aleph} {de,en,it,mptopdf} Yes, it expands the curly braces. On removal currently I don't do anything, because I don't know how to know which files should be removed. But this shouldn't be to hard, remove /usr/share/texmf/web2c/$engine/$format.* Anyway, it is not very intellignet the script, no error checking, nothing, but it runs. What do you say: - you ConTeXt people: concerning the format file, the way of updating? - you Debian people: concerning the new way to define it? The context-build-formats should be something like fmtutil(-sys) for context. I didn't come around to implement the difference between the -sys and the normal variant, but it should be easy, as in fmtutil-sys. Any suggestions? BTW, here is the code for the script, it is short: #!/bin/bash # context-build-formats export TEXMFSYSCONFIG=/usr/share/texmf parse_line() { engine=$1 format=$2 eval set $engine allengines=$@ eval set $format allformats=$@ for e in $allengines ; do for f in $allformats ; do texexec --make --$e $f done done } OIFS=$IFS IFS=' ' set $(echo x; sed '/^#/d; /^[ ]*$/d' /etc/texmf/context/formats.cnf) ; shift IFS=$OIFS for line do parse_line $line; done # eof You see where I robbed the code ... fmtutil. Best wishes Norbert --- Dr. Norbert Preining [EMAIL PROTECTED]Università di Siena Debian Developer [EMAIL PROTECTED] Debian TeX Group gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- SKETTY (n.) Apparently self-propelled little dance a beer glass performs in its own puddle. --- Douglas Adams, The Meaning of Liff ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt installtion and Debian
On Tue, Oct 24, 2006 at 18:51 +0200, Norbert Preining wrote: Ok, I have rewritten the Debian context package so that it does the following: On installation/update time a script context-build-formats is called which reads the file /etc/texmf/context/formats.cnf where all the formats to be build are defined. Minor point: /etc/texmf is a TEXMF tree that IMHO should follow TDS, hence /etc/texmf/tex/context/formats.cnf might be more appropriate. Currently my file looks like this: # # This file defines which ConTeXt formats are build # {pdftex,aleph} {de,en,it,mptopdf} Yes, it expands the curly braces. On removal currently I don't do anything, because I don't know how to know which files should be removed. But this shouldn't be to hard, remove /usr/share/texmf/web2c/$engine/$format.* Really /usr/share? To which tree are format files written? BTW, here is the code for the script, it is short: #!/bin/bash # context-build-formats export TEXMFSYSCONFIG=/usr/share/texmf Why that? (Probably related to the question to which tree format files are written.) cheerio ralf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] global layout change from header=none in \setuphead
Did you try [header=high]? \setuphead[title][header=high] As far as I can see this is the option which does what you want. Willi Sanjoy Mahajan wrote: Another of those 'not sure if I'm confused' examples: \setuphead[title][header=none] \starttext \title{Hello} \dorecurse{15}{\input tufte} \stoptext With header=empty, it worked as I expected: The first page had no page number in the header and the other pages had a page number. Then I tried the example above, with its header=none, so that the first page would allocate no space for the header (as well as have no page number). But then no pages, not only the first, allocated the header space. Is there a subtle difference between header=none and header=empty making the first one a global setting but the second one local to the page with the title (the local behavior is what I had wanted)? It's probably a related confusion or bug, but an alternative solution (from http://www.ntg.nl/pipermail/ntg-context/2005/009180.html) using \definelayout[1] also produced a global layout change: \definelayout[1][height=7in] \starttext \title{Hello} \dorecurse{15}{\input tufte} \stoptext This is all with ConTeXt ver: 2006.10.24 13:47 (same results on the live context). Any hints appreciated! -Sanjoy ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt on Debian: The wiki entry
On Mon, Oct 23, 2006 at 10:35:30AM +0200, Frank Küster wrote: or, if you have a bit experience, you can straight away add deb http://www.tug.org/texlive/Debian/ context/ to your /etc/apt/sources.list file and install context. After this, please tell us our experiences/failures/suggestions. Frank, is this truely a valid line for sources.list? My apt shows errors with this line. Gerhard -- Gerhard Kugler Psychotherapeut Bensheim (Germany) http://www.psychotherapie-kugler.de ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Hardcoded options in the Ruby scripts
Hello Hans,thanks for the answer. (adding a user inferface is more that adding something to texexec)I understand, but I use the English interface for all languages anyway.Maybe I'm doing something wrong or in a non-standard way...For processing files with ConTeXt, I have a script which does (simplified to the minimum):texmfstart texexec --interface=cont-$1 $2So when I started to experiment with Chinese and Japanese, for example, I naturally wanted the processing to be consistent with other languages. I've simply "cloned" the cont-en.tex format file into cont-cn.tex and cont-ja.tex and defined the default language, default encoding etc. in them. And created new formats. But I had to add these new formats into scripts/ruby/base/tex.rb in order to generate and use them. In case of ConTeXt update, I have to do this change again and again. That's the reason why I've suggested to put these definitons into a separate (user) file. 2. "Make all" should make ALL the defined ConTeXt formats, not the default ones. --all means: all patterns Mmm, sorry... I forgot that there are many formats other than cont-*... :-/What does "all patterns" mean?Before altering the tex.rb script, I've tried "texexec --make --all" several times, and it had always rebuilt the 'cont-en', 'cont-nl' and 'mptopdf' formats (maybe also 'metafun'(?); I'm not completely sure...).-Richard From: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Mon, 23 Oct 2006 14:42:05 +0200Subject: Re: [NTG-context] Hardcoded options in the Ruby scriptsRichard Gabriel wrote: Lines 131-137: Here are a few languages predefined which texexec "knows". If I want to add a format for another language, I have to add a new line here. such as ...? (adding a user inferface is more that adding something to texexec) Line 339: Here are the "default" TeX formats defined. No problem to consider something as default ;-), but the point is that "texexec --make --all" actually does "make all DEFAULT formats", NOT "make all AVAILABLE formats". :-( which would be quite a lot -) what do you mean with all? Anyway, the main problem I see is altering of a script which comes with the ConTeXt distribution - the changes made into this scripts must be done again and again after each update. My suggestion is: 1. To put the format definition into a separate file (like user.rb or so) which won't be owerwritten in any case. [Note: cont-usr.tex is a good analogy to this] hm, must think about it ; i don't like too many dependencies 2. "Make all" should make ALL the defined ConTeXt formats, not the default ones. --all means: all patterns 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt installtion and Debian
Ralf Stubner wrote: On Tue, Oct 24, 2006 at 18:51 +0200, Norbert Preining wrote: Ok, I have rewritten the Debian context package so that it does the following: On installation/update time a script context-build-formats is called which reads the file /etc/texmf/context/formats.cnf where all the formats to be build are defined. Minor point: /etc/texmf is a TEXMF tree that IMHO should follow TDS, hence /etc/texmf/tex/context/formats.cnf might be more appropriate. it depends a bit, data and configuration files go under /tex/context, but you're right about a missing path part, it probably should be etc/texmf/context/config/formats.cnf 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] In-line syntax highlighting for type
Aditya Mahajan wrote: Hi, How can I define a command that is the inline version of \startTEX ... \stopTEX. (I need to show inline commands in color). There had been a discussion on this in the past, and Taco had suggested a solution http://archive.contextgarden.net/thread/20050907.093522.baf795f5.en.html which is also posted on the wiki. http://wiki.contextgarden.net/Verbatim_text#In-line_text However, due to the recent changes in verbatim code, that solution no longer works. Can anyone suggest how to fix it? \setupcolors[state=start] \setuptype[option=TEX] \definetype[typeTEX][option=tex] \starttext \type+\type{\type is a wonderful macro}+, isn't it? \typeTEX+\typeTEX{\typeTEX is a wonderful macro}+, isn't it? \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] how to define a new math symbol
Taco, I'm not sure I understand your question. I'm using TexLive on a linux system. I do not use any other fonts other than CM. The file prodint.afm has the following contents: StartFontMetrics 4.0 Comment This is prodint.afm created from prodint.pfb by t1lib V. 1.0.0. Comment File creation date: Thu Mar 8 00:02:51 2001 Comment t1lib is copyright (c) Rainer Menzner, 1996, 1997, 1998. Comment t1lib is distributed under the GNU General Public Library License (LGPL) FontName prodint FullName prodint FamilyName prodint Weight Plain ItalicAngle 0 IsFixedPitch false FontBBox 0 -53 2581 2298 UnderlinePosition 0 UnderlineThickness 0 Version 000.001 Notice 2001, JC Loredo-Osti. Based in R. Gill's `pi.ps'. Right to use, copy, distribute and modify this file is granted. EncodingScheme FontSpecific StdHW 47 StdVW 47 StartCharMetrics 7 C 80 ; WX 785 ; N prodinttext ; B 0 0 713 999 ; C 82 ; WX 1255 ; N prodintdisplay ; B 0 0 1141 1599 ; C 84 ; WX 1804 ; N prodintbig ; B 0 0 1640 2298 ; C 120 ; WX 1205 ; N oldpitext; B13 -33 1237 966 ; C 122 ; WX 1928 ; N oldpidisplay ; B23 -53 1982 1547 ; C 160 ; WX 1637 ; N ancientpitext; B50 -27 1611 974 ; C 162 ; WX 2619 ; N ancientpidisplay ; B81 -40 2581 1561 ; EndCharMetrics EndFontMetrics End of file prodint.afm So based on some of the symb-xxx.tex files, I tried \loadmapfile[prodint.map] \definefontsynonym [Prodint] [prodint] \def\ProdintSymbol#1{\getglyph{Prodint}{\char#1}} \startsymbolset \definesymbol[prodi] [\ProdintSymbol{80}] \definesymbol[Prodi] [\ProdintSymbol{82}] \definesymbol[PRODI] [\ProdintSymbol{84}] \stopsymbolset but texexec stops when mktexfm cannot find the file 'prodint' or it says the TFM file is missing. Another problem with this approach is the fact that this does not define a MATH symbol, which is really what I would want. Based on the LaTeX style file prodint.sty, I'm guessing I'll at least need a command like: \definemathsymbol [prodi] [op] [prodint] [xx] but I can't figure out the usage of this command. I also suspect that I can not used the prodint.tfm file, supplied with the LaTeX package, but need to run Texfont to create one for ConTeXt. Can you confirm this? I greatly appreciate any help! Maarten-Jan - Original Message From: Taco Hoekwater [EMAIL PROTECTED] To: mailing list for ConTeXt users ntg-context@ntg.nl Sent: Tuesday, October 24, 2006 5:31:10 PM Subject: Re: [NTG-context] how to define a new math symbol MJK wrote: Hi, I would like to use of the product integral (a curly \prod-like symbol which is to \prod what \int is to \sum) in Context. There is a LaTeX package (not official) available from Richard Gill's website (http://www.math.uu.nl/people/gill/, all the way at the bottom), which supplies a .sty file with the following contents: What font setup do you use in ConTeXt? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Two problems with current ruby scripts
Dear all! THe packages of ConTeXt I am currently preparing are tested by a user and he send back the following questions/comments. Could you please comment on this. For the background: I install all the stubs from scripts/context/stubs/unix into /usr/bin, add a texmfstart stub that calls ruby with the right path to texmfstart.rb. - Forwarded message from Mike Bird [EMAIL PROTECTED] - From: Mike Bird [EMAIL PROTECTED] Subject: New texexec very confused To: [EMAIL PROTECTED] Date: Tue, 24 Oct 2006 20:52:30 -0700 The new ruby texexec is very confused. The problem of output defaulting to pdf instead of dvi has already been noted. Here are some additional problems: Command:texexec --output=dvips foo Should produce: foo.dvi Actually produces: foo.pdf Command:texexec --dvi foo Should produce: foo.dvi Actually produces: foo.dvi AND OVERWRITES foo.ps --Mike Bird - End forwarded message - - Forwarded message from Mike Bird [EMAIL PROTECTED] - From: Mike Bird [EMAIL PROTECTED] Subject: Is texmfstart secure? To: [EMAIL PROTECTED] Date: Tue, 24 Oct 2006 21:08:53 -0700 Package: context 2006.08.08-0.4 If anyone who knows Ruby has time, can you tell if texmfstart is secure? I was really surprised to see client-server code. Even localhost services can lead to privilege escalation if not careful. For example, /usr/share/texmf/scripts/context/ruby/texmfstart.rb contains the following. I'm not a Ruby programmer but the comment leads me to think there is a potential problem here: # danger lurking buffer = ' ' * 260 length = filemethod.call(filename,buffer,buffer.size) if length0 then return buffer.slice(0..length-1) It looks like PRAGMA is trying to reinvent kpsewhich, integrate internet explorer, launch editors, and do a whole bunch of other stuff I haven't figured out. texexec should be a simple wrapper around tex or pdftex but it works via texmfstart.rb which is 2541 lines of Ruby - and that's a lot of Ruby. It may all be wonderful (I am not a Ruby programmer) but it makes me nervous. Is an older/simpler texexec still available? --Mike Bird - End forwarded message - Best wishes Norbert --- Dr. Norbert Preining [EMAIL PROTECTED]Università di Siena Debian Developer [EMAIL PROTECTED] Debian TeX Group gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- TABLEY SUPERIOR (n.) The look directed at you in a theatre bar in the interval by people who've already got their drinks. --- Douglas Adams, The Meaning of Liff ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] how to define a new math symbol
M.J. Kallen wrote: Taco, I'm not sure I understand your question. I'm using TexLive on a linux system. I do not use any other fonts other than CM. That last bit of information is crucial, because there is a difference between font handling between CM/Lm and commercial fonts. I've been skyping with Hans and he came up with the code below. You can use the font files from the LaTeX zip, you just have to make sure that pdftex can find the (map) file, of course. Cheers, taco % test-prodint.tex \definefontsynonym [MathGamma] [prodint] \definefamilysynonym [default] [xop] [mc] \startmathcollection [default] \definemathsymbol [prodi] [op] [xop] [80] %80 prodinttext \definemathsymbol [Prodi] [op] [xop] [82] %82 prodintdisplay \definemathsymbol [PRODI] [op] [xop] [84] %84 prodintbig \stopmathcollection \loadmapfile[prodint] \starttypescript [math] [modern,computer-modern,latin-modern,ams] [size] \definebodyfont [17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [mm] [mc=prodint] \stoptypescript \definetypeface [modern] [mm] [math] [modern] [computer-modern][encoding=default] \setupbodyfont[reset,modern,10pt] \enablemathcollection[prodint] \starttext $\prodi$ \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two problems with current ruby scripts
Norbert Preining wrote: Dear all! THe packages of ConTeXt I am currently preparing are tested by a user and he send back the following questions/comments. Could you please comment on this. For the background: I install all the stubs from scripts/context/stubs/unix into /usr/bin, add a texmfstart stub that calls ruby with the right path to texmfstart.rb. - Forwarded message from Mike Bird [EMAIL PROTECTED] - From: Mike Bird [EMAIL PROTECTED] Subject: New texexec very confused To: [EMAIL PROTECTED] Date: Tue, 24 Oct 2006 20:52:30 -0700 The new ruby texexec is very confused. The problem of output defaulting to pdf instead of dvi has already been noted. Here are some additional problems: Command:texexec --output=dvips foo Should produce: foo.dvi Actually produces: foo.pdf hm, i need to check that, maybe there is no dvips option Command:texexec --dvi foo Should produce: foo.dvi Actually produces: foo.dvi AND OVERWRITES foo.ps --Mike Bird that's because the backend is called as well (dvips) ; the latest version has a --nobackend option - End forwarded message - - Forwarded message from Mike Bird [EMAIL PROTECTED] - From: Mike Bird [EMAIL PROTECTED] Subject: Is texmfstart secure? To: [EMAIL PROTECTED] Date: Tue, 24 Oct 2006 21:08:53 -0700 Package: context 2006.08.08-0.4 If anyone who knows Ruby has time, can you tell if texmfstart is secure? I was really surprised to see client-server code. Even localhost services can lead to privilege escalation if not careful. hm, if you don't invoke that code it's not used so there can hardly be a leak then; the server/client code is a bit experimental and is related to distributed ruby code; imagine a situation where one has many (frozen) tex trees on a server that is used for automated tex processing; in that case, instead of calling kpsewhich each time, a service will keep the file databases (for multiple trees) in memory etc etc ; as said, the average user never enters this code, and it's not even loaded when your system is not explicitly configured to do so For example, /usr/share/texmf/scripts/context/ruby/texmfstart.rb contains the following. I'm not a Ruby programmer but the comment leads me to think there is a potential problem here: # danger lurking buffer = ' ' * 260 length = filemethod.call(filename,buffer,buffer.size) if length0 then return buffer.slice(0..length-1) this has to do with windows long/short names and this branch is never entered under unix ; also, buffer is just a string and has nothing to do with buffers that produce those buffer overflows It looks like PRAGMA is trying to reinvent kpsewhich, integrate internet well, it's mostly a wrapper around kpsewhich; it would be natural to have kpse as a library but (1) it's not stable [api cq. names changes] and i don't see a stable kpse lib usable in script languages show up; (and yes: i rewrote kpse in ruby, and surprise, in some case it even runs faster than the c version); consider that in context there can be runs with (say) 400 calls to metapost and then it really pays off to bypass this ls-r loading explorer, launch editors, and do a whole bunch of other stuff I haven't this launching is only used when one starts documentation -- we use this in editors: context sensitive help started by a few keystrokes another option is to use file associations but that has some disadvantaged anyhow, i see no security risks here since all happens inside the tex domain; i don't need tex to crash an internet browser (on any system) -) figured out. texexec should be a simple wrapper around tex or pdftex but it works via texmfstart.rb which is 2541 lines of Ruby - and that's a lot of Ruby. It may all be wonderful (I am not a Ruby programmer) but well, if kpse* would have evolved ... sure, but it didn't; also, since i run tex on windows, linux and macosx, i want one launcher for all of them, not all kind of os dependent scripts it makes me nervous. well, i would be more worried about tons of cryptic perl code, even if i've written it myself, after a few years i can no longer figure out what it does; Is an older/simpler texexec still available? there is still texexec.pl (will always be around) but i will no longer develop the perl scripts 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 - ___ ntg-context mailing list
Re: [NTG-context] ConTeXt on Debian: The wiki entry
Gerhard Kugler [EMAIL PROTECTED] wrote: On Mon, Oct 23, 2006 at 10:35:30AM +0200, Frank Küster wrote: or, if you have a bit experience, you can straight away add deb http://www.tug.org/texlive/Debian/ context/ to your /etc/apt/sources.list file and install context. After this, please tell us our experiences/failures/suggestions. Frank, is this truely a valid line for sources.list? Yes, I've got plenty of those. My apt shows errors with this line. which errors? Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] url compared to hyperref
Hi Marko, Marko Schütz wrote: When using hyperref and displaying the resulting PDF in xpdf, I see links that are active. I tried achieving the same with useURL, url and goto, but the resulting links aren't active in xpdf. I have to use acroread to have active links. Is there a compelling reason for this behavior? Quick test here works fine. Can you post a small example file? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] character width
\hphantom ! What a promising word for exactly what I needed! Again and again I am surprised how many (strange) commands there exist. Where does \hphantom come frome? Where is it documented? Thank you for your replies! But it could be even better: As I need, finally, a construct like ... \writetolist[Test]{}{{\hphantom{999}}{\hfill}\bf{Nicely centers TOC entry}{\hfill}\it 999} ... I would like to make sure that both manually entered numbers are the same (I don't want to risk a typo!). So I'd like to use something like \def\FakePageNumber{999}, using \FakePageNumber at the beginning and the end of the above line. The following worked ... \expanded{\writetolist[Test]{}{\hfill {\bf Nicely centers TOC entry} \hfill \FakePageNumber}} ... but not in combination with \MySpace or \hphantom anymore: \expanded{\writetolist[Test]{}{???\hfill {\bf Nicely centers TOC entry} \hfill \FakePageNumber}} Could someone please help me over this expanded/argument/ whateveristheproblem gap? Thank you very much, Steffen Am 24.10.2006 um 21:31 schrieb Peter Münster: On Tue, 24 Oct 2006, Wolfgang Schuster wrote: \def\MySpace {\dosingleempty\doMySpace} \def\doMySpace[#1]% {\setbox\scratchbox=\hbox{#1}% \unskip\hskip \the\wd \scratchbox} Or perhaps just: \starttext Text\hphantom{999}Text \stoptext ? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] doubleminus verbatim
Wolfgang Werners-Lucchini wrote: Hallo! \type{--mode} results in '-mode' (one minus eaten). this is a bug in the ec fonts (for reasons unknown tt fonts have ligatures there); the ec vector + specs is pretty flawed and i wonder why it ever got popular; \usetypescript[modern][texnansi] \setupbodyfont[modern] \type{--mode --mode --mode} anyhow, it seems that some definition got lost in the occasional pdftex primitive renaming game ... add: \let\normalnoligatures\noligatures someplace and it should work ok with ec too 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two misfeatures in placefigure
Aditya Mahajan wrote: Hi, I found two misfeatures in placefigure. 1) with \placefigure[top] the figure can float to the top of the page, even if the page starts a title or a chapter. 2) The paragraph after the figure is indented, even if it comes right after a \section. For moral support only: Yes, twice! Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] resource libraries
Wolfgang Schuster wrote: I use myself pdfimages to extract pictures from pdf-files, but it did not always work perfect on the files I use them. I dont know what is possible with commercial tools like Acrobat. You should test first if you can restore your images from the picture file before you delete them all. texexec --pdfselect --select=1:1 blabla.pdf - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] register fine tuning
Hi, I am not sure how a ConTeXt index register is generated and what role the tui and tuo files play. But could it be possible to manually fine tune the generated register? Something like from ... Keywords -- secret 35 -- popular 25, 26, 27, 88, 89 ... to ... Keywords see also Commands -- secret 35 -- popular 25-27, 88-89 ... just by typing the changes in one of those helper files? Steffen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] how to define a new math symbol
Great, it works! Running texexec --pdf test-prodint worked immediately, but xdvi test-prodint.dvi gave me an error relating to mktexpk not being able to create a bitmap font. Solved this problem by running updmap --enable Map prodint.map. I don't think I could have done this myself, as I do not understand some of the steps in your solution. Thank you very much! Maarten-Jan - Original Message From: Taco Hoekwater [EMAIL PROTECTED] To: mailing list for ConTeXt users ntg-context@ntg.nl Sent: Wednesday, October 25, 2006 10:40:10 AM Subject: Re: [NTG-context] how to define a new math symbol M.J. Kallen wrote: Taco, I'm not sure I understand your question. I'm using TexLive on a linux system. I do not use any other fonts other than CM. That last bit of information is crucial, because there is a difference between font handling between CM/Lm and commercial fonts. I've been skyping with Hans and he came up with the code below. You can use the font files from the LaTeX zip, you just have to make sure that pdftex can find the (map) file, of course. Cheers, taco % test-prodint.tex \definefontsynonym [MathGamma] [prodint] \definefamilysynonym [default] [xop] [mc] \startmathcollection [default] \definemathsymbol [prodi] [op] [xop] [80] %80 prodinttext \definemathsymbol [Prodi] [op] [xop] [82] %82 prodintdisplay \definemathsymbol [PRODI] [op] [xop] [84] %84 prodintbig \stopmathcollection \loadmapfile[prodint] \starttypescript [math] [modern,computer-modern,latin-modern,ams] [size] \definebodyfont [17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [mm] [mc=prodint] \stoptypescript \definetypeface [modern] [mm] [math] [modern] [computer-modern][encoding=default] \setupbodyfont[reset,modern,10pt] \enablemathcollection[prodint] \starttext $\prodi$ \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt installtion and Debian
Norbert Preining wrote: Debian currently has: TEXFONTMAPS = .;$TEXMF/{fonts/,}map//;$TEXMF/dvips// What about this? I am not completely convinced about it since with updmap we generate input file for all the different programs. TEXFONTMAPS =.;$TEXMF/fonts/map/{$progname,pdftex,dvips,}// this should be ok for todays situation is better since it permits installation of fonts without the need for updmap magic (and side effects); maybe at some point in the future there will be a common map syntax (side product of pdftex project) which will make live easier 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] index bug ?
Hi, hopefully just my system is corrupted. Please have a look at the following strange register entry under g Gesetzesvorbehalt: Arbeitsanweisungen durch Bun- desminister 2, 1, 2 Below you may try the original minimal example (it's not small, but otherwise the problem doesn't show up). If you comment/uncomment the \chapter line the entry becomes correct 1,2 Same for the second text paragraph (from here to there). Does someone experience the same? Steffen (ConTeXt ver: 2006.10.13 20:06) \starttext \chapter{Auswahl und Vorgehensweise}% - un/comment ! Der Gesetzesvorbehalt\index{Gesetzesvorbehalt} verlangt für eine grundrechtsbeeinträchtigende staatliche Maßnahme eine Rechtsgrundlage. Die Problematik der Altschulden“regelung“ besteht darin, daß sich ihr Regelungsgehalt (Fortbestand der Altverbindlichkeiten) nicht einer einzigen Norm entnehmen läßt, sondern hierfür eine Reihe von Einzelvorschriften der beiden Staatsverträge und des D|-|Markbilanzgesetzes herangezogen werden müssen. Zudem mußten die Regelungen über die Entschuldungsmöglichkeiten den Anforderungen des Gesetzesvorbehalts genügen. %%% - from here Hinsichtlich \index{Gesetzesvorbehalt} des Fortbestand der Altschulden fehlt zwar eine ausdrückliche Regelung; aus den genannten Einzelvorschriften kann aber auf deren Fortbestehen geschlossen werden \footnote{BVerfGE 95, 267 (306).}. Das Bundesverfassungsgericht läßt somit einen mittelbar zum Ausdruck gebrachten Willen als Eingriffsgrundlage ausreichen\footnote{BVerfGE 95, 267 (306).}. Schon in früheren Judikaten ist es davon ausgegangen, daß sich die Regelungsabsicht des Gesetzgebers nicht ohne weiteres aus dem Wortlaut ergeben muß, sondern daß es genügt, wenn der gesetzgeberische Wille mit Hilfe der allgemeinen Auslegungsmethoden erschlossen werden kann\footnote{Vgl. BVerfGE 82, 209 (224) m.\,w. \,N.}. Bei Anwendung dieser Grundsätze zeigt sich zunächst, daß der Gesetzgeber die Altschuldenfrage weder positiv noch negativ, sondern im Grunde gar nicht beantwortet hat. Die staatsvertraglichen und einfachgesetzlichen Einzelvorschriften, die der BGH für seine Gesamtschau heranzieht, nehmen lediglich Bezug auf bestehende „Verbindlichkeiten“. Deren Existenz gilt es aber gerade zu belegen \footnote{Ausführlich zu den von einem Teil der zivilrechtlichen Literatur geäußerten Zweifeln \it{W.~Harms}, DZWir 1993, 123 (124).}. Gleichwohl ist mit dem Bundesverfassungsgericht vom Fortbestand der Altschulden auszugehen, wofür vor allem die Existenz der verschiedenen Entschuldungsmöglichkeiten streitet. Gestützt wird das Ergebnis durch den vom Senat ins Spiel gebrachten allgemeinen kollisionsrechtlichen Grundsatz, daß die nicht unmittelbar verfassungsrechtlich begründeten Rechtsbeziehungen – gleich ob systemgeprägt oder systemneutral – bei einem Verfassungswechsel regelmäßig bestehen bleiben, sofern nicht ihre Aufhebung ausdrücklich angeordnet wurde\footnote{BVerfGE 95, 267 (306\,f.) mit weiteren Nachweisen aus der Rechtsprechung des BGH zum intertemporalen Privatrecht; zum Verfassungskollisionsrecht \it{D.~Blumenwitz}, HStR IX, §\,211 Rn.\,75. }. Eine solche Anordnung liegt im vorliegenden Fall aber unstreitig nicht vor. %%% - to there In anderer Hinsicht problematisch waren die Entschuldungsregelungen. Art.\,25 III EinigungsV und §\,16 III DMBilG schrieben nur die Entschuldungsmöglichkeit fest. Das Verfahren jedoch, vor allem die Voraussetzungen und der Umfang der Entschuldung, wurde nur in zwei nicht veröffentlichten Arbeitsanweisungen\index{Gesetzesvorbehalt– Arbeitsanweisungen durch Bundesminister} des Bundesministers der Finanzen\index{Arbeitsanweisungen des Bundesministers der Finanzen} geregelt. Fraglich war somit, ob dies den vom Bundesverfassungsgericht aufgestellten Anforderungen des Gesetzesvorbehalts genügte, wonach alle wesentlichen Fragen vom Parlament selbst entschieden werden müssen\footnote[332]{BVerfGE 33, 125 (158); 34, 165 (193); 40, 237 (249); 49, 89 (126\,f.); 57, 295 (321); 83, 130 (142); 98, 218 (251), st. Rspr. – Zum Ganzen \it{H.~Schulze|-|Fielitz}, in: H.~Dreier (Hrsg.), Grundgesetz|-|Kommentar, Bd.\,2, 2.\,Aufl.\,2006, Art.\,20 (Rechtsstaat), Rn.\,113.}. „Wesentlich“ im Sinne dieser Rechtsprechung \index{Wesentlichkeitslehre}sind auch die streitbefangenen Entschuldungsregelungen, da von ihnen die Intensität der Grundrechtsbeeinträchtigung abhängt\footnote{BVerfGE 95, 267 (308); daß vor allem solche Regelungen „wesentlich“ sind, die Grundrechtsrelevanz haben, ist st. Rspr.: BVerfGE 34, 165 (192\,f.); 40, 237 (249); 47, 46 (79\,f.); 83, 130 (142); 98, 218 (251\,f.); aus der einhelligen Literatur \it{K.~Hesse}, Grundzüge des Verfassungsrechts der Bundesrepublik Deutschland, 20.\,Aufl.\,1995, Rn.\,509; \it{Schulze|-|Fielitz} (Fn.\,84), Art.\,20 (Rechtsstaat), Rn.\,113; \it{P.~Badura}, Staatsrecht, 3.\,Aufl.\,2003, Rn.~F 13; \it{K.-P.~Sommermann}, in:
Re: [NTG-context] Two misfeatures in placefigure
Taco Hoekwater wrote: Aditya Mahajan wrote: Hi, I found two misfeatures in placefigure. 1) with \placefigure[top] the figure can float to the top of the page, even if the page starts a title or a chapter. 2) The paragraph after the figure is indented, even if it comes right after a \section. For moral support only: Yes, twice! two misfeatures are below my threshold -) one problem with figures is that one (tex) never really knows where they end up but when i have time i will look into it - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] (fwd) Debian context 2006.08.08-0.5
Hi all! I am forwarding this to the context list for those who do not follow the debian-tex-maint. - Forwarded message from Norbert Preining [EMAIL PROTECTED] - From: Norbert Preining [EMAIL PROTECTED] Subject: context -0.5 To: [EMAIL PROTECTED] Date: Wed, 25 Oct 2006 12:35:48 +0200 Content-Type: text/plain; charset=iso-8859-15 Hi all! New package context 2006.08.08-0.5 Changes: - only create cont-en, mptopdf, and metafun formats on pdftex by default - make ctxfmtutil shut up in the default case - install perl scripts - config file is now /etc/texmf/context/config/formats.cnf Please remove the old config file if it is still present. (Suggested by Hans) - install formats into TEXMFSYSVAR=/var/lib/texmf for root calling and TEXMFVAR=~/.texmf-var for user calling PLEASE REMOVE THE OLD FORMATS UNDER /usr/share/texmf/web2 by HAND. Sorry for this, I was stupid! - add a check for the presence of the driving engine and issue a warning. - Some small stuff (man page, extend example in confif file) - End forwarded message - If you are a seasoned ConTeXt user on Debian, please give it a try and tell me about your experiences. Best is to send feed-back to [EMAIL PROTECTED] Best wishes Norbert --- Dr. Norbert Preining [EMAIL PROTECTED]Università di Siena Debian Developer [EMAIL PROTECTED] Debian TeX Group gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- CRAIL (n. mineral) Crail is a common kind of rock or gravel found widely across the British Isles. Each individual stone (due to an as yet undiscovered gravitational property) is charged with 'negative buoyancy'. This means that no matter how much crail you remove from the garden, more of it will rise to the surface. Crail is much employed by the Royal Navy for making the paperweights and ashtrays used inside submarines. --- Douglas Adams, The Meaning of Liff ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two misfeatures in placefigure
2) The paragraph after the figure is indented, even if it comes right after a \section. wild speculation Thinking about how I prevented such parindents in my plain TeX days, by using \ignorespaces\noindent in the definition of \section. If that's what ConTeXt does, perhaps the \placefigure code inserts a spurious space, which normally doesn't show up because it's inserted in vertical mode, but it is enough to confuse the \ignorespaces? /wild speculation -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] global layout change from header=none in \setuphead
\setuphead[title][header=high] Magic! Thanks a lot. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two problems with current ruby scripts
On 10/25/06, Hans Hagen wrote: Command:texexec --output=dvips foo Should produce: foo.dvi Actually produces: foo.pdf hm, i need to check that, maybe there is no dvips option Command:texexec --dvi foo Should produce: foo.dvi Actually produces: foo.dvi AND OVERWRITES foo.ps --Mike Bird that's because the backend is called as well (dvips) ; the latest version has a --nobackend option But shouldn't --dvi produce only dvi (no dvips run afterwards) by default as was already suggested some time ago? I don't know how exactly backends and specials work, but why should the user bother about backends if he wants dvi output only? Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt on Debian: The wiki entry
Frank � wrote: Yes, it is. ConTeXt does not support only pdfetex, but all major engines, like XeTeX and Aleph. I have formats in: $TEXMF/web2c/aleph/ $TEXMF/web2c/luatex/ $TEXMF/web2c/pdfetex/ $TEXMF/web2c/xetex/ Ah, okay, that's clear. Has this already been this way one year ago when texlive2005 was released? Do you know whether the TeXlive developers are aware of that? sure, but as taco explained in a previous mail, it was considered to be to complicated to adapt fmtutil to this which is why texexec tries to take care of it It is almost certainly better to ignore/block fmtutil and use texexec instead. Properly setting up a ConTeXt update is not necesarily limited to format generation only. Hm. What are the other things that need to be done? texexec can instruct context in ini mode what patterns to preload, which font/encoding to default to, which combination of interface and message interface to use, etc in the case of luatex (we're experimenting with that now) it may also involve preparing lua startup scripts in the case of kpse overloading and such - fix fmtutil and updmap so that they do the right thing for ConTeXt i cannot answer that bacuse i don't use updmap but others on this list may know - or implement a way to automate calling texexec. This would include using some configuration file, since not everybody who has aleph or xetex installed also wants a context format for this engine. indeed; for now you can safely assume that those using aleph of xetex will make formats with texexec --make --xetex | --aleph if only because they need to be able to tweak their system to the latest features in those systems anyway (esp xetex involves more than just the xetex binary) To me, as a TeXlive and teTeX guy, it seems preferrable to choose option 1 and fix the existing distribution scripts. However, I don't know yet what else is needed when ConTeXt is updated, therefore I might be wrong, and switching to texexec might actually be better. But then this should be done consistently, and fmtutil should drop context handling completely (or just call texexec). just calling texexec may be a safe option; handling context directly is ok, but then it should be able to handle engine paths (but that has been fixed by now, if i understood the other mails right) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Directories of pictures
� wrote: Mari Voipio wrote: On Fri, 20 Oct 2006, J�rg Hagmann wrote: Use: \setupexternalfigures[directory={path_to_your_figures,another_path}] And you can even use relative paths and go 'down' in the directory tree: \setupexternalfigures[directory={../pdf-images,../png-images}] See also: http://wiki.contextgarden.net/Using_Graphics Do you think it's possible to say something like: \setupexternalfigures[directory={tex_file_directory/png-images}] ? Note that ./png-images seems to look for current_shell_directory/png-images. what is tex_file_directory? - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] In-line syntax highlighting for type
On Wed, 25 Oct 2006, Hans Hagen wrote: Aditya Mahajan wrote: Hi, How can I define a command that is the inline version of \startTEX ... \stopTEX. (I need to show inline commands in color). There had been a discussion on this in the past, and Taco had suggested a solution http://archive.contextgarden.net/thread/20050907.093522.baf795f5.en.html which is also posted on the wiki. http://wiki.contextgarden.net/Verbatim_text#In-line_text However, due to the recent changes in verbatim code, that solution no longer works. Can anyone suggest how to fix it? \setupcolors[state=start] \setuptype[option=TEX] \definetype[typeTEX][option=tex] \starttext \type+\type{\type is a wonderful macro}+, isn't it? \typeTEX+\typeTEX{\typeTEX is a wonderful macro}+, isn't it? \stoptext Thanks, that looks easy :-) However, there seems to be a bug, sometimes the color spills across the type boundary. \setupcolors[state=start] \setuptype[option=TEX] \definetype[typeTEX][option=tex] \starttext The options \type+before=\startsolutionbackground+ and \type+after=\stopsolutionbackground+ take care of putting a frame, which can {\black The options \typeTEX+before=\startsolutionbackground+ and \typeTEX+after=\stopsolutionbackground+ take care of putting a frame, which can } \stoptext Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two misfeatures in placefigure
On Wed, 25 Oct 2006, Hans Hagen wrote: Taco Hoekwater wrote: Aditya Mahajan wrote: Hi, I found two misfeatures in placefigure. 1) with \placefigure[top] the figure can float to the top of the page, even if the page starts a title or a chapter. 2) The paragraph after the figure is indented, even if it comes right after a \section. For moral support only: Yes, twice! two misfeatures are below my threshold -) one problem with figures is that one (tex) never really knows where they end up but when i have time i will look into it Is it possible to provide an option, say topofnextpage, which is just like top, but does not attempt to place the figure on the top current page? This way, as an author, I can ask tex not to place the figure on the top of current page. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] In-line syntax highlighting for type
On Wed, 25 Oct 2006, Aditya Mahajan wrote: On Wed, 25 Oct 2006, Hans Hagen wrote: Aditya Mahajan wrote: Hi, How can I define a command that is the inline version of \startTEX ... \stopTEX. (I need to show inline commands in color). There had been a discussion on this in the past, and Taco had suggested a solution http://archive.contextgarden.net/thread/20050907.093522.baf795f5.en.html which is also posted on the wiki. http://wiki.contextgarden.net/Verbatim_text#In-line_text However, due to the recent changes in verbatim code, that solution no longer works. Can anyone suggest how to fix it? \setupcolors[state=start] \setuptype[option=TEX] \definetype[typeTEX][option=tex] \starttext \type+\type{\type is a wonderful macro}+, isn't it? \typeTEX+\typeTEX{\typeTEX is a wonderful macro}+, isn't it? \stoptext Thanks, that looks easy :-) However, there seems to be a bug, sometimes the color spills across the type boundary. Is is possible that everything written with \tex{command} is also printed in color? I do not want to change \tex{command} to \type{\command} since \tex is more robust (No catcode trickery and stuff). Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] In-line syntax highlighting for type
On 10/25/06, Aditya Mahajan [EMAIL PROTECTED] wrote: On Wed, 25 Oct 2006, Aditya Mahajan wrote: On Wed, 25 Oct 2006, Hans Hagen wrote: Aditya Mahajan wrote: Hi, How can I define a command that is the inline version of \startTEX ... \stopTEX. (I need to show inline commands in color). \setupcolors[state=start] \setuptype[option=TEX] \definetype[typeTEX][option=tex] \starttext \type+\type{\type is a wonderful macro}+, isn't it? \typeTEX+\typeTEX{\typeTEX is a wonderful macro}+, isn't it? \stoptext Thanks, that looks easy :-) However, there seems to be a bug, sometimes the color spills across the type boundary. I wanted to warn you about that, but you were faster. A workaround is to create an additional space: so to \type{\commands }like that. There are many bugs in \type-ing code, but the code is rather complex ... even Taco complaind about complexity. Hopefully lua will be able to do the task better ;) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] In-line syntax highlighting for type
Mojca Miklavec wrote: On 10/25/06, Aditya Mahajan [EMAIL PROTECTED] wrote: On Wed, 25 Oct 2006, Aditya Mahajan wrote: On Wed, 25 Oct 2006, Hans Hagen wrote: Aditya Mahajan wrote: Hi, How can I define a command that is the inline version of \startTEX ... \stopTEX. (I need to show inline commands in color). \setupcolors[state=start] \setuptype[option=TEX] \definetype[typeTEX][option=tex] \starttext \type+\type{\type is a wonderful macro}+, isn't it? \typeTEX+\typeTEX{\typeTEX is a wonderful macro}+, isn't it? \stoptext Thanks, that looks easy :-) However, there seems to be a bug, sometimes the color spills across the type boundary. I wanted to warn you about that, but you were faster. A workaround is to create an additional space: so to \type{\commands }like that. There are many bugs in \type-ing code, but the code is rather complex even Taco complaind about complexity. Hopefully lua will be able to do the task better ;) actually, the mkiv code does it completely different already, but that's on my machine -) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] figure captions in the margin
Alex Lubberts wrote: Hi, Does somebody know whether it is possible and how it is possible to place the caption of a figure in the margin? yes, actually i implemented this last week but i need to update the details manual; captions can go in margins, hang in centered figures, there is support for all kind of inner/outer alignments etc 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] In-line syntax highlighting for type
Mojca Miklavec wrote: There are many bugs in \type-ing code, but the code is rather complex even Taco complaind about complexity. hm, that many? well, keep in mind that everything that involves catcode changes combined with arguments will be messy; also, much of this code evolved when mem and speed were issues, and of course there was this \type+crap+ kind of syntax to deal with 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] In-line syntax highlighting for type
Aditya Mahajan wrote: However, there seems to be a bug, sometimes the color spills across the type boundary. the problem is that we cannot mess around too much with egroup because otherwise we get into problems with alignments (which have their own idea about these things 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] index bug ? [urgent]
Urgent!! As the book should go to the printing house tomorrow I need some help as soon as possible! Just the index register is missing ... and the register seems to be corrupted. I hope i can avoid checking each single index entry individually (would be some hundred...) Steffen PS: The example below is authentic. Am 25.10.2006 um 13:26 schrieb Steffen Wolfrum: Hi, hopefully just my system is corrupted. Please have a look at the following strange register entry under g Gesetzesvorbehalt: Arbeitsanweisungen durch Bun- desminister 2, 1, 2 Below you may try the original minimal example (it's not small, but otherwise the problem doesn't show up). If you comment/uncomment the \chapter line the entry becomes correct 1,2 Same for the second text paragraph (from here to there). Does someone experience the same? Steffen (ConTeXt ver: 2006.10.13 20:06) \starttext \chapter{Auswahl und Vorgehensweise}% - un/comment ! Der Gesetzesvorbehalt\index{Gesetzesvorbehalt} verlangt für eine grundrechtsbeeinträchtigende staatliche Maßnahme eine Rechtsgrundlage. Die Problematik der Altschulden“regelung“ besteht darin, daß sich ihr Regelungsgehalt (Fortbestand der Altverbindlichkeiten) nicht einer einzigen Norm entnehmen läßt, sondern hierfür eine Reihe von Einzelvorschriften der beiden Staatsverträge und des D|-|Markbilanzgesetzes herangezogen werden müssen. Zudem mußten die Regelungen über die Entschuldungsmöglichkeiten den Anforderungen des Gesetzesvorbehalts genügen. %%% - from here Hinsichtlich \index{Gesetzesvorbehalt} des Fortbestand der Altschulden fehlt zwar eine ausdrückliche Regelung; aus den genannten Einzelvorschriften kann aber auf deren Fortbestehen geschlossen werden \footnote{BVerfGE 95, 267 (306).}. Das Bundesverfassungsgericht läßt somit einen mittelbar zum Ausdruck gebrachten Willen als Eingriffsgrundlage ausreichen\footnote{BVerfGE 95, 267 (306).}. Schon in früheren Judikaten ist es davon ausgegangen, daß sich die Regelungsabsicht des Gesetzgebers nicht ohne weiteres aus dem Wortlaut ergeben muß, sondern daß es genügt, wenn der gesetzgeberische Wille mit Hilfe der allgemeinen Auslegungsmethoden erschlossen werden kann\footnote{Vgl. BVerfGE 82, 209 (224) m.\,w. \,N.}. Bei Anwendung dieser Grundsätze zeigt sich zunächst, daß der Gesetzgeber die Altschuldenfrage weder positiv noch negativ, sondern im Grunde gar nicht beantwortet hat. Die staatsvertraglichen und einfachgesetzlichen Einzelvorschriften, die der BGH für seine Gesamtschau heranzieht, nehmen lediglich Bezug auf bestehende „Verbindlichkeiten“. Deren Existenz gilt es aber gerade zu belegen \footnote{Ausführlich zu den von einem Teil der zivilrechtlichen Literatur geäußerten Zweifeln \it{W.~Harms}, DZWir 1993, 123 (124).}. Gleichwohl ist mit dem Bundesverfassungsgericht vom Fortbestand der Altschulden auszugehen, wofür vor allem die Existenz der verschiedenen Entschuldungsmöglichkeiten streitet. Gestützt wird das Ergebnis durch den vom Senat ins Spiel gebrachten allgemeinen kollisionsrechtlichen Grundsatz, daß die nicht unmittelbar verfassungsrechtlich begründeten Rechtsbeziehungen – gleich ob systemgeprägt oder systemneutral – bei einem Verfassungswechsel regelmäßig bestehen bleiben, sofern nicht ihre Aufhebung ausdrücklich angeordnet wurde\footnote{BVerfGE 95, 267 (306\,f.) mit weiteren Nachweisen aus der Rechtsprechung des BGH zum intertemporalen Privatrecht; zum Verfassungskollisionsrecht \it{D.~Blumenwitz}, HStR IX, §\,211 Rn.\,75. }. Eine solche Anordnung liegt im vorliegenden Fall aber unstreitig nicht vor. %%% - to there In anderer Hinsicht problematisch waren die Entschuldungsregelungen. Art.\,25 III EinigungsV und §\,16 III DMBilG schrieben nur die Entschuldungsmöglichkeit fest. Das Verfahren jedoch, vor allem die Voraussetzungen und der Umfang der Entschuldung, wurde nur in zwei nicht veröffentlichten Arbeitsanweisungen\index{Gesetzesvorbehalt– Arbeitsanweisungen durch Bundesminister} des Bundesministers der Finanzen\index{Arbeitsanweisungen des Bundesministers der Finanzen} geregelt. Fraglich war somit, ob dies den vom Bundesverfassungsgericht aufgestellten Anforderungen des Gesetzesvorbehalts genügte, wonach alle wesentlichen Fragen vom Parlament selbst entschieden werden müssen\footnote[332]{BVerfGE 33, 125 (158); 34, 165 (193); 40, 237 (249); 49, 89 (126\,f.); 57, 295 (321); 83, 130 (142); 98, 218 (251), st. Rspr. – Zum Ganzen \it{H.~Schulze|-|Fielitz}, in: H.~Dreier (Hrsg.), Grundgesetz|-|Kommentar, Bd.\,2, 2.\,Aufl.\,2006, Art.\,20 (Rechtsstaat), Rn.\,113.}. „Wesentlich“ im Sinne dieser Rechtsprechung \index{Wesentlichkeitslehre}sind auch die streitbefangenen Entschuldungsregelungen, da von ihnen die Intensität der Grundrechtsbeeinträchtigung abhängt\footnote{BVerfGE 95, 267 (308); daß vor allem solche Regelungen „wesentlich“ sind, die Grundrechtsrelevanz haben, ist st. Rspr.: BVerfGE 34, 165 (192\,f.); 40, 237 (249); 47, 46
Re: [NTG-context] In-line syntax highlighting for type
On Wed, 25 Oct 2006, Hans Hagen wrote: Aditya Mahajan wrote: However, there seems to be a bug, sometimes the color spills across the type boundary. the problem is that we cannot mess around too much with egroup because otherwise we get into problems with alignments (which have their own idea about these things I understand that this is one of the more tricky things in TeX. Right now, Mojca's workaround of adding a space after the comand works most of the time. If there is a punctuations after the type+...+ one does not want a space between the type and the punctuation. \unskip and friends make the output look alright, but with a horrible looking source. I hope that lua will make doing these things a bit easier. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] In-line syntax highlighting for type
Aditya Mahajan wrote: I understand that this is one of the more tricky things in TeX. Right now, Mojca's workaround of adding a space after the comand works most of the time. If there is a punctuations after the type+...+ one does not want a space between the type and the punctuation. \unskip and friends make the output look alright, but with a horrible looking source. I hope that lua will make doing these things a bit easier. in that case the whole pretty printing is done in lua ; in tex we have to use aftergroup stuff and the problem is that info is lost on the way (ok, there is a solution, but it involves messy macros because we want to use all that stuff nested 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two misfeatures in placefigure
On Tue, 24 Oct 2006, Aditya Mahajan wrote: 2) The paragraph after the figure is indented, even if it comes right after a \section. Hello, this seems to be already in the bug-database: http://context.literatesolutions.com/collector/65 Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] resource libraries
Wolfgang Werners-Lucchini wrote: Is it possible somehow to extract all the images covered in an image database without lose of quality? eh ... normally there should beno loss at all, pdftex just copies the resources Sorry, I see my question was'nt clear enough. Is there a way to restore all the images included in a figure library as jpg's, png's or what else? I could then delete the original images. in principle one could extract them but one also has to make sure that no xforms are used then, otherwise after a few cycles one ends up with many nested xforms; think of something \startTEXpage \externalfigure[yourbase.pdf][page=1,object=no] \stopTEXpage another option is to use pdfimages (which can extract bitmaps); it's probably no big deal to extend rlxtools with an option do extract the images and give them their original names; maybe on a rainy day ... 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] character width
Wolfgang Schuster wrote: \def\doMySpace[#1]% {\unskip\hphantom{#1}\ignorespaces} \ifhmode\unskip\fi or use \removeunwantedspaces - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] PNG pictures in original size
Hi, When using bitmap figures (.png etc.) using \externalfigure, is it possible to set that I want the picture to have it's original size in pixels; or, better, that I don't want it to be scaled? I'm using some pictures that look terrible when converted to a different size, even if the new size is close to the original one. Thanks, Maurício ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] figure captions in the margin
On wo, 2006-10-25 at 18:44 +0200, Hans Hagen wrote: Does somebody know whether it is possible and how it is possible to place the caption of a figure in the margin? yes, actually i implemented this last week but i need to update the details manual; captions can go in margins, hang in centered figures, there is support for all kind of inner/outer alignments etc Great! I looked at the source to find out how to do it. Am I right in thinking that this should work? \setupcaptions[location=outermargin] \starttext \placefigure{Caption}{\framed{Figuur}} \stoptext However, when I try this, there is no caption printed at all. Am I doing something wrong? (Perhaps, can I be of any assistance?) Regards, Alex ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] index bug ? [urgent]
Hi Steffen, After adding \enableregime[windows] \mainlanguage[de] I get as expected an index. The only thing which I do not understand quite well, is, that the entry for \index{Gesetzesvorbehalt– Arbeitsanweisungen durch Bundesminister} results in the references 2,1,2, where I would expect only 1,2. For the test I used ConTeXt ver: 2006.09.27 14:45 MK II fmt: 2006.9.30 int: english/english (beta version) Willi Steffen Wolfrum wrote: Urgent!! As the book should go to the printing house tomorrow I need some help as soon as possible! Just the index register is missing ... and the register seems to be corrupted. I hope i can avoid checking each single index entry individually (would be some hundred...) Steffen PS: The example below is authentic. Am 25.10.2006 um 13:26 schrieb Steffen Wolfrum: Hi, hopefully just my system is corrupted. Please have a look at the following strange register entry under g Gesetzesvorbehalt: Arbeitsanweisungen durch Bun- desminister 2, 1, 2 Below you may try the original minimal example (it's not small, but otherwise the problem doesn't show up). If you comment/uncomment the \chapter line the entry becomes correct 1,2 Same for the second text paragraph (from here to there). Does someone experience the same? Steffen (ConTeXt ver: 2006.10.13 20:06) \starttext \chapter{Auswahl und Vorgehensweise}% - un/comment ! Der Gesetzesvorbehalt\index{Gesetzesvorbehalt} verlangt für eine grundrechtsbeeinträchtigende staatliche Maßnahme eine Rechtsgrundlage. Die Problematik der Altschulden“regelung“ besteht darin, daß sich ihr Regelungsgehalt (Fortbestand der Altverbindlichkeiten) nicht einer einzigen Norm entnehmen läßt, sondern hierfür eine Reihe von Einzelvorschriften der beiden Staatsverträge und des D|-|Markbilanzgesetzes herangezogen werden müssen. Zudem mußten die Regelungen über die Entschuldungsmöglichkeiten den Anforderungen des Gesetzesvorbehalts genügen. %%% - from here Hinsichtlich \index{Gesetzesvorbehalt} des Fortbestand der Altschulden fehlt zwar eine ausdrückliche Regelung; aus den genannten Einzelvorschriften kann aber auf deren Fortbestehen geschlossen werden \footnote{BVerfGE 95, 267 (306).}. Das Bundesverfassungsgericht läßt somit einen mittelbar zum Ausdruck gebrachten Willen als Eingriffsgrundlage ausreichen\footnote{BVerfGE 95, 267 (306).}. Schon in früheren Judikaten ist es davon ausgegangen, daß sich die Regelungsabsicht des Gesetzgebers nicht ohne weiteres aus dem Wortlaut ergeben muß, sondern daß es genügt, wenn der gesetzgeberische Wille mit Hilfe der allgemeinen Auslegungsmethoden erschlossen werden kann\footnote{Vgl. BVerfGE 82, 209 (224) m.\,w. \,N.}. Bei Anwendung dieser Grundsätze zeigt sich zunächst, daß der Gesetzgeber die Altschuldenfrage weder positiv noch negativ, sondern im Grunde gar nicht beantwortet hat. Die staatsvertraglichen und einfachgesetzlichen Einzelvorschriften, die der BGH für seine Gesamtschau heranzieht, nehmen lediglich Bezug auf bestehende „Verbindlichkeiten“. Deren Existenz gilt es aber gerade zu belegen \footnote{Ausführlich zu den von einem Teil der zivilrechtlichen Literatur geäußerten Zweifeln \it{W.~Harms}, DZWir 1993, 123 (124).}. Gleichwohl ist mit dem Bundesverfassungsgericht vom Fortbestand der Altschulden auszugehen, wofür vor allem die Existenz der verschiedenen Entschuldungsmöglichkeiten streitet. Gestützt wird das Ergebnis durch den vom Senat ins Spiel gebrachten allgemeinen kollisionsrechtlichen Grundsatz, daß die nicht unmittelbar verfassungsrechtlich begründeten Rechtsbeziehungen – gleich ob systemgeprägt oder systemneutral – bei einem Verfassungswechsel regelmäßig bestehen bleiben, sofern nicht ihre Aufhebung ausdrücklich angeordnet wurde\footnote{BVerfGE 95, 267 (306\,f.) mit weiteren Nachweisen aus der Rechtsprechung des BGH zum intertemporalen Privatrecht; zum Verfassungskollisionsrecht \it{D.~Blumenwitz}, HStR IX, §\,211 Rn.\,75. }. Eine solche Anordnung liegt im vorliegenden Fall aber unstreitig nicht vor. %%% - to there In anderer Hinsicht problematisch waren die Entschuldungsregelungen. Art.\,25 III EinigungsV und §\,16 III DMBilG schrieben nur die Entschuldungsmöglichkeit fest. Das Verfahren jedoch, vor allem die Voraussetzungen und der Umfang der Entschuldung, wurde nur in zwei nicht veröffentlichten Arbeitsanweisungen\index{Gesetzesvorbehalt– Arbeitsanweisungen durch Bundesminister} des Bundesministers der Finanzen\index{Arbeitsanweisungen des Bundesministers der Finanzen} geregelt. Fraglich war somit, ob dies den vom Bundesverfassungsgericht aufgestellten Anforderungen des Gesetzesvorbehalts genügte, wonach alle wesentlichen Fragen vom Parlament selbst entschieden werden müssen\footnote[332]{BVerfGE 33, 125 (158); 34, 165 (193); 40, 237 (249); 49, 89 (126\,f.); 57, 295 (321); 83, 130 (142); 98, 218 (251), st. Rspr. – Zum Ganzen \it{H.~Schulze|-|Fielitz}, in: H.~Dreier (Hrsg.),
Re: [NTG-context] PNG pictures in original size
� wrote: Hi, When using bitmap figures (.png etc.) using \externalfigure, is it possible to set that I want the picture to have it's original size in pixels; or, better, that I don't want it to be scaled? I'm using some pictures that look terrible when converted to a different size, even if the new size is close to the original one. just saying \externalfigure[blabla.png] should work 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] index bug ? [urgent]
Willi Egger wrote: Hi Steffen, After adding \enableregime[windows] \mainlanguage[de] I get as expected an index. The only thing which I do not understand quite well, is, that the entry for \index{Gesetzesvorbehalt� Arbeitsanweisungen durch Bundesminister} results in the references 2,1,2, where I would expect only 1,2. that's indeed the problem (has to do with the fact that the main item has subitems + a main item ; i already sent S a potential fix 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] figure captions in the margin
Alex Lubberts wrote: On wo, 2006-10-25 at 18:44 +0200, Hans Hagen wrote: Does somebody know whether it is possible and how it is possible to place the caption of a figure in the margin? yes, actually i implemented this last week but i need to update the details manual; captions can go in margins, hang in centered figures, there is support for all kind of inner/outer alignments etc Great! I looked at the source to find out how to do it. Am I right in thinking that this should work? \setupcaptions[location=outermargin] \starttext \placefigure{Caption}{\framed{Figuur}} \stoptext However, when I try this, there is no caption printed at all. Am I doing something wrong? (Perhaps, can I be of any assistance?) Regards, Alex ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- - 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 - text-109.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] index bug ? [urgent]
Willi Egger wrote: Hi Steffen, After adding \enableregime[windows] \mainlanguage[de] I get as expected an index. The only thing which I do not understand quite well, is, that the entry for \index{Gesetzesvorbehalt– Arbeitsanweisungen durch Bundesminister} results in the references 2,1,2, where I would expect only 1,2. Guessing: is not the index entry inside the \chapter title which also goes to content (or another list) that is on a separate page numbering? Vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] url compared to hyperref
Dear Taco, At Wed, 25 Oct 2006 11:01:06 +0200, Taco Hoekwater wrote: Hi Marko, Marko Schütz wrote: When using hyperref and displaying the resulting PDF in xpdf, I see links that are active. I tried achieving the same with useURL, url and goto, but the resulting links aren't active in xpdf. I have to use acroread to have active links. Is there a compelling reason for this behavior? Quick test here works fine. Can you post a small example file? below I attach a LaTeX and a ConTeXt version. In xpdf the LaTeX version gives me the link that launches urlCommand, whereas the ConTeXt version presents the url text, but does not make it a link. In acroread both documents result in links, however they are presented slightly different. Thanks, Marko test-context.tex Description: TeX document test-latex.tex Description: TeX document test-context.pdf Description: Adobe PDF document test-latex.pdf Description: Adobe PDF document pgpOITrcyM9kJ.pgp Description: PGP signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Directories of pictures
Note that ./png-images seems to look for current_shell_directory/png-images. what is tex_file_directory? I'm guessing the directory in which the tex source file lives, what I often wished TeX used as its search path for relative paths -- the way some (all?) C compilers will when looking for include files. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] url compared to hyperref
On Thu, 26 Oct 2006, Marko Schütz wrote: Dear Taco, At Wed, 25 Oct 2006 11:01:06 +0200, Taco Hoekwater wrote: Hi Marko, Marko Schütz wrote: When using hyperref and displaying the resulting PDF in xpdf, I see links that are active. I tried achieving the same with useURL, url and goto, but the resulting links aren't active in xpdf. I have to use acroread to have active links. Is there a compelling reason for this behavior? Quick test here works fine. Can you post a small example file? below I attach a LaTeX and a ConTeXt version. In xpdf the LaTeX version gives me the link that launches urlCommand, whereas the ConTeXt version presents the url text, but does not make it a link. Add \setupinteraction[state=start] in the beginning of the file. In acroread both documents result in links, however they are presented slightly different. That is because acroread tries to guess the url from the text. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context