Re: [NTG-context] linecorrection
David Arnold wrote: All, I've been using this construct a lot. \startlinecorrection[blank] \midaligned{\getbuffer[table]} \stoplinecorrection My thinking was that it put a blank before and after, but now I am not sure. It is my understanding that the baselinecorrection environment makes sure that its contents fit on a whole number of grid lines, then inserts any skips [#1] before and after. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] sometxt vs textext behaving different
Hans van der Meer wrote: Metapost problem: It seems that sometxt and textext behave different. Yes, they are different. sometxt only works for TeX-only labels. If you need a MetaPost variable in the label, you have to use textext. Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context Quiz?
Aditya Mahajan wrote: On Tue, 11 Jul 2006, Hans Hagen wrote: (There is this Best Of Ruby Quiz book, maybe we should make a Best Of Context Quiz one ... ) Maybe we should first start a Context Quiz? sounds ok to me; we can use the wiki for that and or something similar (maybe patrick can install something like http://rubymanual.org on the wiki server) we also need some volunteers to manage/moderate it if we have a good export function, generating a book is no problem 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] PDF bookmarks problem
Hello Hans,I've noticed a problem with PDF bookmarks when the particular chapter/section titles contain non-ascii characters and/or XML entities. I suppose some "expansion" mechanism should be added (like for the index entries)...Attached you'll find two test files demonstrating this problem.Thanks,Richard test-001.tex Description: TeX document test-002.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] align question
Bruce H. Wagner wrote: Incidentally, the reason I am using the LaTeX syntax is that we are translating LaTeX code into Context automatically using a perl script, and it's therefore much easier to stick to whatever LaTeX code works. Basically, I just want something comparable to the array environment in LaTeX, which works very nicely. Aditya is in more or less charge of the specification/tryout part of the math extensions and taco/myself implement things based on that input, so i suggest that the two of you come up with specs 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] prevent hyphenation (flush left)
Mojca Miklavec wrote: Hello, I urgently need to have my \framed texts left-justified (no hyphenation and nothing may go over the right border) I know that it must be trivial, but I assume that explicit \exhyphenpenalty=1 \hyphenpenalty=1 are replaced inside \framed anyway. align={flushleft,nothyphenated,verytolerant} 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] switching font encodings
Mojca Miklavec wrote: Hello, I have to print plenty of utf-8-encoded entries from a database. I will probably output entries as \contestant{name}{country}{code}, for example \contestant{Đức Đặng}{VNM}{1} I have defined \def\contestant#1#2#3{...#1...} But what's the easiest way to change the encoding to t5 if the country code is VNM and to some other encoding if country code is RUS, SER (or one of other countries using Cyrillic)? I'll probably use you can try to define multiple typefaces, say mainfont-ec, mainfont-qx, mainfont-t5 and then switch to them using languagespecifics related definitions 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] updating minimal distribution
Hello, For some time I was doing ruby /tex/texmf-local/scripts/context/ruby/texsync.rb --update --force --destination=/tex --make to upgrade minimal distribution but it doesn't work for me anymore. Has anything changed in the meantime? Piotr ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] tempdir support in texexec.rb
Hi, Naively, I thought that the --tempdir option would allow the 'temporary' files created/updated at a run of texexec be written to whatever is given as --tempdir=/dir/, but it doesn't work, the files remain in the current directory. Additionally, --output seems to disallow the output be put into another directory (it's always put into `pwd`). Is there a (better?) way to specify where these files should go? What I'd expect is a directory layout like the following: files/ onesource.tex env.tex othersource.tex project.tex out/ project.pdf tmp/ project.tmp project.log project.tui project.tuo mpgraph.mp project-mpgraph.mp as a result of $ cd files/ $ texexec --pdf --tempdir=tmp --output=out/project.pdf project Is /me the only one who desires such a split? - Matthias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New bib module release (2006.07.13)
Hello Taco et al., Taco Hoekwater wrote: After a fairly long list of betas, I have just uploaded a new release of the bibliographic module to contextgarden.net I have two observations and one question. If I use interactivity, \cite[year][myRef] links to the \placepublications[criterium=all] list. However, if I use \cite[authoryear][myRef], it does not. \cite[doi][Slater1954] shows something like [Slater195410.1103/PhysRev.94.1498] rather than 10.1103/PhysRev.94.1498 Has anyone an idea what goes wrong here: \def\onlinecite[#1]{\cite[left=,right=][#1]} [...] \onlinecite[myRef] % does not work, shows [] Logfile: publications : warning: cite argument myRef unknown on 109 However, using \cite[left=,right=][myRef] directly works. Tobias PS: This is with ConTeXt 2006.07.14 12:08 and t-bib 2006.07.14 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New bib module release (2006.07.13)
Hi Tobias Tobias Burnus wrote: I have two observations and one question. If I use interactivity, \cite[year][myRef] links to the \placepublications[criterium=all] list. However, if I use \cite[authoryear][myRef], it does not. This one is a case of NIY: If you really need interactivity, use \setupcite[authoryear][compress=no] for now. I'll fix this in the next feature release (not impossible, but needs a fair amount of juggling with \commalist-lists). \cite[doi][Slater1954] shows something like [Slater195410.1103/PhysRev.94.1498] rather than 10.1103/PhysRev.94.1498 This is a bug introduced by the new reference system that I will fix soon (hopefully tomorrow). If I am not mistaen, \cite[url] has a related problem. Has anyone an idea what goes wrong here: \def\onlinecite[#1]{\cite[left=,right=][#1]} [...] \onlinecite[myRef] % does not work, shows [] Logfile: publications : warning: cite argument myRef unknown on 109 However, using \cite[left=,right=][myRef] directly works. That maes absolutely no sense at all. Do you have a minimal file to play with? Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] tempdir support in texexec.rb
Matthias Wächter wrote: Hi, Naively, I thought that the --tempdir option would allow the 'temporary' files created/updated at a run of texexec be written to whatever is given as --tempdir=/dir/, but it doesn't work, the files remain in the current directory. Additionally, --output seems to disallow the output be put into another directory (it's always put into `pwd`). Is there a (better?) way to specify where these files should go? currently not, an option like that is doable but would involve both an patch to context itself (runtime locating files) and texexec (inbetween/postprocessing) [pretty fuzzy btw] if it's because of the temp files. you can run with --purge and get them removed What I'd expect is a directory layout like the following: files/ onesource.tex env.tex othersource.tex project.tex out/ project.pdf tmp/ project.tmp project.log project.tui project.tuo mpgraph.mp project-mpgraph.mp as a result of $ cd files/ $ texexec --pdf --tempdir=tmp --output=out/project.pdf project --output concerns the backend while --result texexec test --result=what/oeps should work ok given that what exists (i'll add a check for existence) Is /me the only one who desires such a split? I think so 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] updating minimal distribution
Piotr Kopszak wrote: Hello, For some time I was doing ruby /tex/texmf-local/scripts/context/ruby/texsync.rb --update --force --destination=/tex --make normally that tree lage behind the current version of context (i generate those minimal trees only when i need them since it takes a while to generate the whole lot and upload 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New bib module release (2006.07.13)
Hi Taco, Taco Hoekwater wrote: This one is a case of NIY: If you really need interactivity, use \setupcite[authoryear][compress=no] for now. That is fine with me, (I think) I won't have one author with several years thus compression is not important in this case. \cite[doi][Slater1954] shows something like [Slater195410.1103/PhysRev.94.1498] rather than 10.1103/PhysRev.94.1498 Ups, this is seemingly a bug in my environment file (which I recycled from 2004). One definition clashes with t-bib.tex's gotoDOI. But there is nontheless a bug (see below). Has anyone an idea what goes wrong here: \def\onlinecite[#1]{\cite[left=,right=][#1]} [...] \onlinecite[myRef] % does not work, shows [] Logfile: publications : warning: cite argument myRef unknown on 109 Hmm, I don't know why, but this part works now :-/ I should definitely better test. However, I still have some problems (see attached testcase): \setuppublications[alternative=apa] \cite[author][Slater1954] % produces () \cite[year][Slater1954] % produces () \cite[...][Slater1954] with ... key, serial, page and type produces [] (some might be ok, though) \cite[doi][Slater1954] % produces [ http://dx.doi.org//1498]; with superfluous space and DOI-URL not DOI. Expected: shows 10.1103/Phys not http://; ... (The superfluous space disappears when using \setupinteraction[state=start].) And using \setuppublications[alternative=aps], I find: Looks in principle ok, except for the same [doi] as above. - I have another feature with for \cite[author*][...]: I'd like to limit the displayed name to the family name of the first author. Currently, I have: (Firstauthor and Lastauthor,1954) or (Firstauthor et al.,2005), however to save space I'd like to have only (Firstauthor,2005). I see andtext, otherstext, but miss the authoretallimit, which I would set to one. Frankly, I have never seen references of the form (Several authors, year); I do know, however, references of the form several authors (year). Does APA really uses several authors for authoryear? The name suggest not, only for authorsyear I would expect it. If you default to one author for authoryear and author, I'd not mind to have a authors beside author. Tobias mytest.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] updating minimal distribution
On Mon, 17 Jul 2006, Piotr Kopszak wrote: ctxtools --update works for most updates Hello, what is the exact syntax? Here I get: # ctxtools --update kpsewhich: option `--expand-var' requires an argument CtxTools | updating CtxTools | unable to change to 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] updating minimal distribution
� wrote: On Mon, 17 Jul 2006, Piotr Kopszak wrote: ctxtools --update works for most updates Hello, what is the exact syntax? Here I get: # ctxtools --update kpsewhich: option `--expand-var' requires an argument hm, strange, what version? CtxTools | updating CtxTools | unable to change to 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] updating minimal distribution
On Mon, 17 Jul 2006, Hans Hagen wrote: what is the exact syntax? Here I get: # ctxtools --update kpsewhich: option `--expand-var' requires an argument hm, strange, what version? # ctxtools --version CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD # ctxtools --contextversion CtxTools | context version: 2006.07.14 12:08 (/opt/teTeX/texmf-context/tex/context/base/context.tex) CtxTools | context version: 2006.07.14 12:08 (/opt/teTeX/texmf-context/tex/context/base/cont-new.tex) Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context