Re: [NTG-context] XeTeX working on Windows as well !!!
On 6/6/06, Hans Hagen wrote: Mojca Miklavec wrote: > On 6/6/06, Hans Hagen wrote: > >> hm, i didn't try that fc stuff yet >> > > One of the most important things about XeTeX :( > > but i'm not in that hurry to use the platform fonts -) > While talking about fonts: do you have any suggestions about (old) > Type1 (ec-encoded) fonts? The problem is that XeTeX handles them as if > they were Latin1/Unicode-encoded (if you type in Yen, you'll get > whatever glyphy is present at that slot independint of font encoding), > so the only way to get other characters from EC encoding is to: > a) "redefine" (make active) some parts of Unicode (\defč{\ccaron}) > isn't that what \enableregime[ec] does? No, it doesn't (and it would be a magic if it would), but what exactly is its purpose anyway? \ccaron works perfect, but writing č (ccaron) literally doesn't. XeTeX doesn't know what to do with character "010C" (ccaron) since the font only contains glyphs from 0 to 255. But well, the pound sign (£ or ^^a3) will become ccaron eventually since A3 (Unicode slot for a pound) is ccaron in EC fonts. What would be needed is a list of (something less than) 256 mappings from Unicode to named glyphs (or perhaps the whole latin repertoair). > b) extend XeTeX, so that it knows which glyph is "hidden" on which slot > c) forget about support for Type1 fonts > > Another thing to adapt is (again :) the \enableregime macro (see > http://wiki.contextgarden.net/Encodings_and_Regimes_in_XeTeX for some > notes about that), so that regimes will work with XeTeX as well. Two > possibilities are: > a) \XeTeXinputencoding "somename" for native XeTeX handling, but with > the same problems with EC fonts as above > b) \XeTeXinputencoding "bytes" + loading the regime definitions with > exactly the same behaviour as in pdfTeX, but without the support for > non-latin regimes > well, if you prepare a test file (including font defs and a recepi) i can have a look, I can prepare extensive tests, but the attached file (csz.tex) should be enough for basic testing. No other font definitions are needed since EC is the default font anyway, but you can try with \font\A='Arial' \A or something similar. Recipe nr. 1 -- In \enableregime: if XeTeX is used, do \XeTeXinputencoding "bytes" before reading the regime file. Pros: * exactly the same behaviour as in pdfTeX * accented characters will work OK with EC font * both regimes and ec fonts will become obsolete one day: this approach works OK for both of those 'to-become-obsolete' stuff Cons: * \font\A='some unicode font' \A might not work out-of-the-box (uc encoding has to be specified for the font): not so convenient, but high-level macros can be used * no support for some exotic regimes yet (Hewbrew, Arabic, ...): not so serious since they probably use Unicode anyway and they can be added if needed Recipe nr. 2 -- In \enableregime: if XeTeX is used, do \XeTeXinputencoding "argument of enableregime" and don't read regime file. Pros: * support for exotic regimes out-of-the-box (those regimes most probably need OpenType fonts anyway) * works perfect with unicode fonts Cons: * most probably doesn't work with EC fonts without additional tweaking here i get the right characters when i say: I don't have XeTeX on this computer, but ... \starttext \XeTeXinputencoding "utf8" I never tried it, but isn't this the default one? It works! [\eacute][\rawcharacter{233}][Ã(c)] \yen \yen is OK. It's literal ¥ (or ^^a5) the one that results in "random glyph" (ie. the one that is located under a5 in the current font encoding). I don't know what happens with the last one, but from the experience I would guess that it would be left blank. \XeTeXinputencoding "bytes" % \enableregime[ec] It works! [\eacute][\rawcharacter{233}][é] This works under assumption that one is using EC input encoding (which is never the case). But yes, \XeTeXinputencoding "bytes" \enableregime[cp1250] would be almost OK. Mojca ccaron-xetex.tex Description: TeX document csz.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texsync --delete
On Mon, 5 Jun 2006, Hans Hagen wrote: > > could you please add the option "--delete" to @@rsync in texsync.rb? > > > > I've just realised, that cont-lmt.zip no more exists, but texsync never > > deleted it on my hard-disk. > > > sure, but only if you also tell me how i can tell rsync to avoid deleting > >the context/user and context/third paths (and tested as well -) > > (there is now also ctxtools --update which just takes the zip) Hello Hans, texsync --tree=current also takes the zips. --tree=tex seems to be more, than just the unzipped zips. Is there any tree that is exactly the same as "current" but unzipped? You're right, the --delete option is not good for people who have user-files in the same texmf-tree as the distribution. Perhaps, I'll just use rsync directly without using texsync nor ctxtools... If you want to include the --delete nevertheless, you could add something like --exclude=context/user/* --exclude=context/third/* 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] XeTeX working on Windows as well !!!
Mojca Miklavec wrote: > On 6/6/06, Hans Hagen wrote: > >> hm, i didn't try that fc stuff yet >> > > One of the most important things about XeTeX :( > > > While talking about fonts: do you have any suggestions about (old) > Type1 (ec-encoded) fonts? The problem is that XeTeX handles them as if > they were Latin1/Unicode-encoded (if you type in Yen, you'll get > whatever glyphy is present at that slot independint of font encoding), > so the only way to get other characters from EC encoding is to: > a) "redefine" (make active) some parts of Unicode (\def�{\ccaron}) > b) extend XeTeX, so that it knows which glyph is "hidden" on which slot > c) forget about support for Type1 fonts > > Another thing to adapt is (again :) the \enableregime macro (see > http://wiki.contextgarden.net/Encodings_and_Regimes_in_XeTeX for some > notes about that), so that regimes will work with XeTeX as well. Two > possibilities are: > a) \XeTeXinputencoding "somename" for native XeTeX handling, but with > the same problems with EC fonts as above > b) \XeTeXinputencoding "bytes" + loading the regime definitions with > exactly the same behaviour as in pdfTeX, but without the support for > non-latin regimes > here i get the right characters when i say: \starttext \XeTeXinputencoding "utf8" It works! [\eacute][\rawcharacter{233}][é] \yen \XeTeXinputencoding "bytes" % \enableregime[ec] It works! [\eacute][\rawcharacter{233}][é] \yen \stoptext Do you have an example that fails? 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] Writing a ConTeXt module for R
Attachment seems to have failed I put the content of the file below. 2006/6/6, Johan Sandblom <[EMAIL PROTECTED]>: > Since I sometimes use the open-source statistics environment R > (http://www.r-project.org) as well as ConTeXt, I thought a module that > could typeset R code as well as evaluate it on the fly would be > useful. Borrowing largely without understanding but lots of trial and > eror from m-gnustep.tex, I came up with the attached. Limited testing > indicates it works, but at least one problem is apparent: the R code > snippets have one unnecessary line break to start them and two after > the end. How can I fix that? Of course, any other suggestions are also > welcome. > > A recent R needs to be in the path, but given that, it seems to work > on Windows XP as well as Linux. > > Regards, Johan > > PS Emacs users may appreciate the following to get r-mode where appropriate: > (require 'mmm-mode) > (setq mmm-global-mode 'maybe) > (setq mmm-submode-decoration-level 2) > (mmm-add-group > 'context-plus > '((context-MP > :submode metapost-mode > :face mmm-code-submode-face > :front ".*start\\w*MP\\w*\\({\\w*}\\|\\[\\w*\\]\\|\\)\\W" > :back ".*stop\\w*MP") >(context-R > :submode r-mode > :face mmm-comment-submode-face > :front ".*startR.*\\W" > :back ".*stopR.*"))) > (add-to-list > 'mmm-mode-ext-classes-alist '(context-mode nil context-plus)) > > -- > Johan Sandblom N8, MRC, Karolinska sjh > t +46851776108 17176 Stockholm > m +46735521477 Sweden > "What is wanted is not the will to believe, but the > will to find out, which is the exact opposite" > - Bertrand Russell > > > % Copyright Johan Sandblom, distributed and redistributable under the % terms of the GNU Lesser General Public License. \unprotect \newcounter\Rnumber % I would like to reduce this two-stage call, but then line-endings disappear \def\startR% {\bgroup \obeylines \catcode`\%=\@@letter \catcode`\#=\@@letter \dostartR% }% \def\dostartR#1\stopR% {\doglobal\increment\Rnumber% \letgvalue{rcs:n:\Rnumber}\Rnumber% \setgvalue{rcs:d:\Rnumber}{#1}% \edef\Rfile {\bufferprefix R-\Rnumber}% \bgroup% \the\everyR% \immediate\openout\scratchwrite=\Rfile.r% \def\par{\rawcharacter{10}}% \immediate\write\scratchwrite{\getvalue{rcs:d:\Rnumber}}% \immediate\closeout\scratchwrite% \egroup% \startmode[*\v!first]% \runR% \stopmode \typeRout% \egroup}% \def\startRhidden% {\bgroup \obeylines \catcode`\%=\@@letter \dostartRhidden{}} \def\dostartRhidden#1\stopRhidden {\doglobal\increment\Rnumber \letgvalue{rcs:n:\Rnumber}\Rnumber \setgvalue{rcs:d:\Rnumber}{#1}% \edef\Rfile {\bufferprefix R-\Rnumber}% \bgroup \the\everyR% \immediate\openout\scratchwrite=\Rfile.r% \def\par{\rawcharacter{10}}% \immediate\write\scratchwrite{\getvalue{rcs:d:\Rnumber}}% \immediate\closeout\scratchwrite% \egroup \startmode[*\v!first]% \runR% \stopmode \egroup} \newtoks\everyR \appendtoks \obeylines \to \everyR % The call to R has -q in order to prevent banner, --save to make sure % it saves the workspace after the run, --restore to make sure it % reads any workspace from a previous session \def\runR {\executesystemcommand{R -q --save --restore < \Rfile.r > \Rfile.Rout}} \def\typeRout {\typefile{\Rfile.Rout}} \protect \doifnotmode{demo}{\endinput} \starttext \startR a <- "bla" b <- "blabla" ls() \stopR bla bla \startRhidden rm(list=ls()) save.image() \stopRhidden bla \startR ls() ushape <- c(rexp(50), 12-rexp(50)) pdf("ushape.pdf") par(mfrow=c(1,2)) hist(ushape) plot(density(ushape), main="Density") dev.off() \stopR \input tufte \input knuth \startR x <- rnorm(900) y <- rexp(900) # test comment f <- gl(9,9,900) summary(aov(y~x+Error(f))) library(lattice) pdf("lattice.pdf") xyplot(y~x|f) dev.off() \stopR \placefigure[here]{}{\externalfigure[lattice]} \placefigure[here]{}{\externalfigure[ushape]} \input tufte \startR (test <- ".* []{}=?!+%#|<|>@$") cat(test) \stopR \input bryson \input knuth \startR a.df <- data.frame(a=1:2, b=rnorm(2)) a.df$a testfunction <- function(a=NULL, ...) { for(i in 1:length(a)) { gsub(a[[i]], "([a-r]|[A-R])", "bla")} print(a)} \stopR \stoptext -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX working on Windows as well !!!
Mojca Miklavec wrote: > On 6/6/06, Hans Hagen wrote: > >> hm, i didn't try that fc stuff yet >> > > One of the most important things about XeTeX :( > > but i'm not in that hurry to use the platform fonts -) > While talking about fonts: do you have any suggestions about (old) > Type1 (ec-encoded) fonts? The problem is that XeTeX handles them as if > they were Latin1/Unicode-encoded (if you type in Yen, you'll get > whatever glyphy is present at that slot independint of font encoding), > so the only way to get other characters from EC encoding is to: > a) "redefine" (make active) some parts of Unicode (\def�{\ccaron}) > isn't that what \enableregime[ec] does? > b) extend XeTeX, so that it knows which glyph is "hidden" on which slot > c) forget about support for Type1 fonts > > Another thing to adapt is (again :) the \enableregime macro (see > http://wiki.contextgarden.net/Encodings_and_Regimes_in_XeTeX for some > notes about that), so that regimes will work with XeTeX as well. Two > possibilities are: > a) \XeTeXinputencoding "somename" for native XeTeX handling, but with > the same problems with EC fonts as above > b) \XeTeXinputencoding "bytes" + loading the regime definitions with > exactly the same behaviour as in pdfTeX, but without the support for > non-latin regimes > well, if you prepare a test file (including font defs and a recepi) i can have a look, 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] XeTeX working on Windows as well !!!
On 6/6/06, Hans Hagen wrote: > hm, i didn't try that fc stuff yet One of the most important things about XeTeX :( While talking about fonts: do you have any suggestions about (old) Type1 (ec-encoded) fonts? The problem is that XeTeX handles them as if they were Latin1/Unicode-encoded (if you type in Yen, you'll get whatever glyphy is present at that slot independint of font encoding), so the only way to get other characters from EC encoding is to: a) "redefine" (make active) some parts of Unicode (\defč{\ccaron}) b) extend XeTeX, so that it knows which glyph is "hidden" on which slot c) forget about support for Type1 fonts Another thing to adapt is (again :) the \enableregime macro (see http://wiki.contextgarden.net/Encodings_and_Regimes_in_XeTeX for some notes about that), so that regimes will work with XeTeX as well. Two possibilities are: a) \XeTeXinputencoding "somename" for native XeTeX handling, but with the same problems with EC fonts as above b) \XeTeXinputencoding "bytes" + loading the regime definitions with exactly the same behaviour as in pdfTeX, but without the support for non-latin regimes Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Writing a ConTeXt module for R
Since I sometimes use the open-source statistics environment R (http://www.r-project.org) as well as ConTeXt, I thought a module that could typeset R code as well as evaluate it on the fly would be useful. Borrowing largely without understanding but lots of trial and eror from m-gnustep.tex, I came up with the attached. Limited testing indicates it works, but at least one problem is apparent: the R code snippets have one unnecessary line break to start them and two after the end. How can I fix that? Of course, any other suggestions are also welcome. A recent R needs to be in the path, but given that, it seems to work on Windows XP as well as Linux. Regards, Johan PS Emacs users may appreciate the following to get r-mode where appropriate: (require 'mmm-mode) (setq mmm-global-mode 'maybe) (setq mmm-submode-decoration-level 2) (mmm-add-group 'context-plus '((context-MP :submode metapost-mode :face mmm-code-submode-face :front ".*start\\w*MP\\w*\\({\\w*}\\|\\[\\w*\\]\\|\\)\\W" :back ".*stop\\w*MP") (context-R :submode r-mode :face mmm-comment-submode-face :front ".*startR.*\\W" :back ".*stopR.*"))) (add-to-list 'mmm-mode-ext-classes-alist '(context-mode nil context-plus)) -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell t-rweave.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX working on Windows as well !!!
Mojca Miklavec wrote: > On 6/6/06, Hans Hagen wrote: > >> Mojca Miklavec wrote: >> >>> Hello all, >>> >>> I have no idea when this came out, but it works like a charm! >>> http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html >>> >>> I didn't try out ConTeXt + XeTeX yet (I only played with plain XeTeX a >>> bit), but the fact that the distribution includes the latest ConTeXt >>> (even more recent that the one on the pragma-ade.com, namely the >>> version of 30th May :) and that it includes texmfstart.exe makes me >>> feel that I'll love that Japanese TeX distribution! >>> >>> >> texexec --make --all --xetex >> >> and after that a file saying: >> >> % output=xetex >> >> \starttext >> It works! >> \stoptext >> >> or just: >> >> \starttext >> It works! >> \stoptext >> >> texexec --xetex thatfile >> >> works like a charm (produces a pdf file) >> >> Hans >> > > For some strange reason something fc-related (I guess) started > crashing when I try to change fonts (files that used to work already > are crashing at once). :( > hm, i didn't try that fc stuff yet 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] XeTeX working on Windows as well !!!
On 6/6/06, Hans Hagen wrote: > Mojca Miklavec wrote: > > Hello all, > > > > I have no idea when this came out, but it works like a charm! > > http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html > > > > I didn't try out ConTeXt + XeTeX yet (I only played with plain XeTeX a > > bit), but the fact that the distribution includes the latest ConTeXt > > (even more recent that the one on the pragma-ade.com, namely the > > version of 30th May :) and that it includes texmfstart.exe makes me > > feel that I'll love that Japanese TeX distribution! > > > texexec --make --all --xetex > > and after that a file saying: > > % output=xetex > > \starttext > It works! > \stoptext > > or just: > > \starttext > It works! > \stoptext > > texexec --xetex thatfile > > works like a charm (produces a pdf file) > > Hans For some strange reason something fc-related (I guess) started crashing when I try to change fonts (files that used to work already are crashing at once). :( I have a problem with interfering binaries/lack of environmental variables/some files missing - actually nothing serious (apart from the problem with crashing), I just have to play a bit with it. It didn't work out of the box, but I hope that I'll convince it to work soon. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX working on Windows as well !!!
Mojca Miklavec wrote: > Hello all, > > I have no idea when this came out, but it works like a charm! > http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html > > I didn't try out ConTeXt + XeTeX yet (I only played with plain XeTeX a > bit), but the fact that the distribution includes the latest ConTeXt > (even more recent that the one on the pragma-ade.com, namely the > version of 30th May :) and that it includes texmfstart.exe makes me > feel that I'll love that Japanese TeX distribution! > texexec --make --all --xetex and after that a file saying: % output=xetex \starttext It works! \stoptext or just: \starttext It works! \stoptext texexec --xetex thatfile works like a charm (produces a pdf file) 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] XeTeX working on Windows as well !!!
Mojca Miklavec wrote: > Hello all, > > I have no idea when this came out, but it works like a charm! > http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html > > I didn't try out ConTeXt + XeTeX yet (I only played with plain XeTeX a > bit), but the fact that the distribution includes the latest ConTeXt > (even more recent that the one on the pragma-ade.com, namely the > version of 30th May :) and that it includes texmfstart.exe makes me > feel that I'll love that Japanese TeX distribution! > > indeed ptex is always pretty up to date, including recent binaries 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] MPinclusions strangeness with labels
On 6/6/06, Aditya Mahajan wrote: Hi, Aditya! > I am surprised that it works without any modification on your machine. > Do you have \forMPTEXgraphictrue set in your cont-sys.tex? User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. > Is it possible that the mpx files are generated from a previous run > (from your testing). That is, if you purge all temporary files and > rerun texexec, do you still get the correct output? No, impossible since I ran the file for the first time. And yes, I deleted everything and rerun and it was OK again. > If not, what magic setting do you have :) I don't know (I've just configured one of the machines in the university, ie. replaced new tmf over old MikTeX files, added texmfstart and stubs, so there's no way that the TeX tree would be polluted from my old failures to compile gnuplot graphics), but it must be a lucky TeX day today! Apart from some great news from Hans about lua and the "Windows news" on the XeTeX mailing list ... I have nothing more to say! Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPinclusions strangeness with labels
On Tue, 6 Jun 2006, Mojca Miklavec wrote: > On 6/6/06, Jean Magnan de Bornier wrote: > >> Now what happens? The label in the mp file "Costs, prices" is replaced by >> "unknown" in the pdf. But if I add a label in the startuseMPgraphic >> environment, (decommenting line 3 in it), then both labels appear!! >> >> I tried several other files, it seems to happen every time. >> Anything I'm doing wrong? >> tia > > In addition to Aditya's comments. > > OK, aliens at work! I tried to compile your documents in order to > experiement a bit > (\forceMPTEXcheck{nameofsomecommandtobecheckedfortextextpresence} > might help in such cases as well), but now I don't understand why the > example DOES work here without any modifiction. It seems to me that > Hans debugged that part of ConTeXt even better than I thought :). Mojca, I am surprised that it works without any modification on your machine. Do you have \forMPTEXgraphictrue set in your cont-sys.tex? Is it possible that the mpx files are generated from a previous run (from your testing). That is, if you purge all temporary files and rerun texexec, do you still get the correct output? If not, what magic setting do you have :) Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] XeTeX working on Windows as well !!!
Hello all, I have no idea when this came out, but it works like a charm! http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html I didn't try out ConTeXt + XeTeX yet (I only played with plain XeTeX a bit), but the fact that the distribution includes the latest ConTeXt (even more recent that the one on the pragma-ade.com, namely the version of 30th May :) and that it includes texmfstart.exe makes me feel that I'll love that Japanese TeX distribution! Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Using Ralph Smith's Formal Script font
On Tue, 6 Jun 2006, Hans Hagen wrote: > Aditya Mahajan wrote: > > bla bla ... does not work ... bla bla -) > > since it's an italic script, maybe adding an italic correction in the > definition is enough: > > \def\mathrsfs#1{\text{\definedfont[RalfSmithFormalScript]#1\/}} > > and using $\mathrsfs{A}$ works, but does not give correct spacing for > superscipts. Compare $\mathrsfs{A}^T$ Thanks, this works perfectly. Now, I need to worry about getting dsfont working :) Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPinclusions strangeness with labels
Le 06 juin à 16:02:01 "Mojca Miklavec" <[EMAIL PROTECTED]> écrit notamment: | On 6/6/06, Jean Magnan de Bornier wrote: > | > Now what happens? The label in the mp file "Costs, prices" is replaced by | > "unknown" in the pdf. But if I add a label in the startuseMPgraphic | > environment, (decommenting line 3 in it), then both labels appear!! | > | > I tried several other files, it seems to happen every time. | > Anything I'm doing wrong? | > tia > | In addition to Aditya's comments. > | OK, aliens at work! I tried to compile your documents in order to | experiement a bit | (\forceMPTEXcheck{nameofsomecommandtobecheckedfortextextpresence} | might help in such cases as well), but now I don't understand why the | example DOES work here without any modifiction. It seems to me that | Hans debugged that part of ConTeXt even better than I thought :). > > | So just a few guidelines: it might help(*) if you have a ConTeXt | version that is not more than 1 month old and if you run ConTeXt with | "texmfstart" (texexec should resolve to "texmfstart texexec.rb"). If | you don't know how to do that, ask again (tell which distribution and | OS you're using). Perhaps we should put that info right on the top of | the first wiki page. > | (*) read: you have to Well, sorry I forgot to say about my installation; actually I have an uptodate one, less than 10 days, last metapost, and using "texmfstart texexec" all right (I found a script for that on the list with this line: "ruby /texmfstart.rb $*"). Then again there has to be something different with your installation... thx -- Jean ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPinclusions strangeness with labels
Le 06 juin à 15:44:05 Aditya Mahajan <[EMAIL PROTECTED]> écrit notamment: | On Tue, 6 Jun 2006, Jean Magnan de Bornier wrote: > | > Hi all, | > | > I found something strange with a metapost file where I want to store | > various definitions for reuse in several tex files; here are example | > files: [...] | > | > Now what happens? The label in the mp file "Costs, prices" is replaced by | > "unknown" in the pdf. But if I add a label in the startuseMPgraphic | > environment, (decommenting line 3 in it), then both labels appear!! | > > | This is because of the way textext works. tex.rb scans the file to see | if textext is present. It is not, so it does not use mpx. When you | uncomment the line, textext is present and mpx files are processed. > | > I tried several other files, it seems to happen every time. | > Anything I'm doing wrong? > | Add \forceMPTEXgraphictrue on top of your file if you want to force | mpx to be run everytime. I do not know the equivalent command line | switch (if there is any) > | Aditya Thanks Aditya for the explanation and the solution, that was it! -- Jean ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Using Ralph Smith's Formal Script font
Aditya Mahajan wrote: bla bla ... does not work ... bla bla -) since it's an italic script, maybe adding an italic correction in the definition is enough: \def\mathrsfs#1{\text{\definedfont[RalfSmithFormalScript]#1\/}} and using $\mathrsfs{A}$ works, but does not give correct spacing for superscipts. Compare $\mathrsfs{A}^T$ 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] MPinclusions strangeness with labels
On 6/6/06, Jean Magnan de Bornier wrote: > Now what happens? The label in the mp file "Costs, prices" is replaced by > "unknown" in the pdf. But if I add a label in the startuseMPgraphic > environment, (decommenting line 3 in it), then both labels appear!! > > I tried several other files, it seems to happen every time. > Anything I'm doing wrong? > tia In addition to Aditya's comments. OK, aliens at work! I tried to compile your documents in order to experiement a bit (\forceMPTEXcheck{nameofsomecommandtobecheckedfortextextpresence} might help in such cases as well), but now I don't understand why the example DOES work here without any modifiction. It seems to me that Hans debugged that part of ConTeXt even better than I thought :). So just a few guidelines: it might help(*) if you have a ConTeXt version that is not more than 1 month old and if you run ConTeXt with "texmfstart" (texexec should resolve to "texmfstart texexec.rb"). If you don't know how to do that, ask again (tell which distribution and OS you're using). Perhaps we should put that info right on the top of the first wiki page. (*) read: you have to Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Generating Module documentation
On Tue, 6 Jun 2006, Taco Hoekwater wrote: > Aditya Mahajan wrote: >> Hi, >> How does one generate module documentation? I copied mult-ini.tex to >> a temp directory and did >> >> texmfstart texexec --modules mult-ini.tex > > It seems that 'texutil -- documents' is not implemented yet > in the ruby scripts, so you have to use the perl version > instead (it is needed internally). This should do it: > > texmfstart texutil.pl --documents mult-ini.tex > texmfstart texexec --module mult-ini.tex > On Tue, 6 Jun 2006, Hans Hagen wrote: > ah, we have a new texutil noe (or actually, texutil is gone) ... > > in texexec.rb replace: > > job.runtexutil(ffname,"--documents", true) > > by > > Kpse.runscript('ctxtools',ffname,'--document') Thanks. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Grouping with \dosingleempty
On Tue, 6 Jun 2006, Taco Hoekwater wrote: > Aditya Mahajan wrote: >> Hi, >> I am confused why the following definition does not work as expected. >> >> \def\PM{\dosingleempty\doPM} >> \def\doPM[#1]{\iffirstargument P_{M_{#1}} >>\else P_{M_t}\fi} >> >> \starttext >> Why is $\widetilde \PM[T]$ not the same as $\widetilde P_{M_T}$ >> \stoptext > > The argument to \widetilde cannot be a macro that requires > arguments, that just won't work. If you want the accent on > top of a single character, you have to give it a single > argument. It is possbile to do so, like this: > > \def\PM{P\dosingleempty\doPM} > \def\doPM[#1]{\iffirstargument _{M_{#1}}\else _{M_t}\fi} > \let\normalwidetilde\widetilde > \def\widetilde{\expandafter\normalwidetilde} Thanks. I will test around to see it this has undesired side-effects. If something else breaks, I will define \def\ewidetilde{\expandafter\widetilde} and use \ewidetilde before \PM. > But it is better to create a new set of macros \widetildePM. That is what I was doing till now. But I have a lot of costructs like this, \PM[t] <=> P_{M_t}, \PYM <=> P_{Y_t,M_{t-1}}, \PYMS <=> P_{Y_t,M_{t-1},S_t} and so on and all of them can have widetilde and wildehat. Gets kind of boring to define \tPM for widetilde \hPM for widehat for all of them. Thanks, Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Using Ralph Smith's Formal Script font
On Tue, 6 Jun 2006, Taco Hoekwater wrote: > > Hi Aditya, > > Aditya Mahajan wrote: >> On Mon, 30 Jan 2006, Hans Hagen wrote: >> >> >>> Aditya Mahajan wrote: >>> How do I use Ralph Smith's formal script font [1] within context. I want to define a command like \mathrsfs{A} that will use A in this font. > > I am only replying to let you know that I've seen this message, > but cannot help you out, sorry. Thank you. I will play around with magstep to get the scaling right to the document font size. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPinclusions strangeness with labels
On Tue, 6 Jun 2006, Jean Magnan de Bornier wrote: > Hi all, > > I found something strange with a metapost file where I want to store > various definitions for reuse in several tex files; here are example > files: > > ...inc.mp... > numeric u; u=.8cm; > path AX; AX = (10u,0) -- (0,0) -- (0,10u); > > picture cax; cax = thelabel(textext("Costs, prices") rotated 90,(-.3u,8u)); > > > ...inc.tex.. > \setupoutput[pdftex] > > \startMPinclusions > \input inc > \stopMPinclusions > > \starttext > > \startuseMPgraphic{toto} > drawdblarrow AX; > % label.rt(textext("$3x^2+\pi$"), (5u,6u)); > draw cax; > \stopuseMPgraphic > > \placefigure[left]{bla.bla}{\useMPgraphic{toto}} > > \input dawkins > > \stoptext > > > Now what happens? The label in the mp file "Costs, prices" is replaced by > "unknown" in the pdf. But if I add a label in the startuseMPgraphic > environment, (decommenting line 3 in it), then both labels appear!! > This is because of the way textext works. tex.rb scans the file to see if textext is present. It is not, so it does not use mpx. When you uncomment the line, textext is present and mpx files are processed. > I tried several other files, it seems to happen every time. > Anything I'm doing wrong? Add \forceMPTEXgraphictrue on top of your file if you want to force mpx to be run everytime. I do not know the equivalent command line switch (if there is any) Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] MPinclusions strangeness with labels
Hi all, I found something strange with a metapost file where I want to store various definitions for reuse in several tex files; here are example files: ...inc.mp... numeric u; u=.8cm; path AX; AX = (10u,0) -- (0,0) -- (0,10u); picture cax; cax = thelabel(textext("Costs, prices") rotated 90,(-.3u,8u)); ...inc.tex.. \setupoutput[pdftex] \startMPinclusions \input inc \stopMPinclusions \starttext \startuseMPgraphic{toto} drawdblarrow AX; % label.rt(textext("$3x^2+\pi$"), (5u,6u)); draw cax; \stopuseMPgraphic \placefigure[left]{bla.bla}{\useMPgraphic{toto}} \input dawkins \stoptext Now what happens? The label in the mp file "Costs, prices" is replaced by "unknown" in the pdf. But if I add a label in the startuseMPgraphic environment, (decommenting line 3 in it), then both labels appear!! I tried several other files, it seems to happen every time. Anything I'm doing wrong? tia -- Jean ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Using Ralph Smith's Formal Script font
Hi Aditya, Aditya Mahajan wrote: > On Mon, 30 Jan 2006, Hans Hagen wrote: > > >>Aditya Mahajan wrote: >> >>>How do I use Ralph Smith's formal script font [1] within context. I >>>want to define a command like \mathrsfs{A} that will use A in this >>>font. I am only replying to let you know that I've seen this message, but cannot help you out, sorry. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Generating Module documentation
Aditya Mahajan wrote: > Hi, > How does one generate module documentation? I copied mult-ini.tex to > a temp directory and did > > texmfstart texexec --modules mult-ini.tex > > but did not get any output. Looking into texexec.rb, I tried to > recreate a temp file to generate the documentation. The following > > \usemodule[abr-01,mod-01] > \def\ModuleNumber{1} > > \starttext > \readlocfile{mult-ini.tex}{}{} > \stoptext > > gives > > This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5) > (format=cont-en 2006.5.31) 5 JUN 2006 21:13 > entering extended mode > \write18 enabled. > (e:\isoimage\usr\local\context\tex\texmf-local/web2c/natural.tcx) > **f:/Research/real_time/examples/test2.tex \emergencyend > (f:/Research/real_time/examples/test2.tex > > ConTeXt ver: 2006.05.28 13:28 fmt: 2006.5.31 int: english mes: > english > > language: language en is active > > system : cont-new loaded > (e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/cont-new.tex > systems : beware: some patches loaded from cont-new.tex > color : palette rollover is available > ) > system : cont-old loaded > (e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/cont-old.tex > loading : Context Old Macros > ) > system : cont-fil loaded > (e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/cont-fil.tex > loading : Context File Synonyms > ) > system : cont-sys loaded > (e:\isoimage\usr\local\context\tex\texmf-local/tex/context/user/cont-sys.tex > system : module newmat loaded > (e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/m-newmat.tex)) > bodyfont: 12pt rm is loaded > language: patterns nl->texnansi:texnansi->1->2:3 > nl->ec:ec->2->2:3 fr-> > texnansi:texnansi->3->2:3 fr->ec:ec->4->2:3 > de->texnansi:texnansi->5->2:3 de->e > c:ec->6->2:3 it->texnansi:texnansi->7->2:3 it->ec:ec->8->2:3 > pt->texnansi:texna > nsi->9->2:3 pt->ec:ec->10->2:3 hr->ec:ec->11->2:3 pl->pl0:pl0->12->2:3 > pl->ec:e > c->13->2:3 pl->qx:qx->14->2:3 cz->il2:il2->15->2:3 cz->ec:ec->16->2:3 > sk->il2:i > l2->17->2:3 sk->ec:ec->18->2:3 sl->ec:ec->19->2:3 en->ec:ec->21->2:3 > uk->ec:ec- > >> 22->2:3 us->ec:ec->23->2:3 agr->agr:agr->24->2:3 da->ec:ec->25->2:3 >> > sv->ec:ec- > >> 26->2:3 af->ec:ec->27->2:3 no->ec:ec->28->2:3 deo->ec:ec->29->2:3 >> > es->ec:ec->3 > 0->2:3 ca->ec:ec->31->2:3 la->ec:ec->32->2:3 ro->ec:ec->33->2:3 > tr->ec:ec->34-> > 2:3 fi->ec:ec->36->2:3 hu->ec:ec->37->2:3 loaded > specials: tex,postscript,rokicki loaded > \openout2 = `test2.tui'. > > system : test2.top loaded > (./test2.top > specials: loading definition file tpd > (e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/spec-tpd.tex > specials: loading definition file fdf > (e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/spec-fdf.tex) > specials: fdf loaded > ) > specials: fdf,tpd loaded > ) > \openout0 = `test2-mpgraph.mp'. > > \openout0 = `mpgraph.mp'. > > > systems : system commands are enabled > system : module abr-01 loaded > (e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/s-abr-01.tex > check : logo AMSTEX replaces a macro, use CAPITALS! > check : logo CONTEXT replaces a macro, use CAPITALS! > check : logo ETEX replaces a macro, use CAPITALS! > check : logo LAMSTEX replaces a macro, use CAPITALS! > check : logo LATEX replaces a macro, use CAPITALS! > check : logo MATHML replaces a macro, use CAPITALS! > check : logo METAFONT replaces a macro, use CAPITALS! > check : logo METAPOST replaces a macro, use CAPITALS! > check : logo PDFETEX replaces a macro, use CAPITALS! > check : logo PDFTEX replaces a macro, use CAPITALS! > check : logo PICTEX replaces a macro, use CAPITALS! > check : logo PPCHTEX replaces a macro, use CAPITALS! > check : logo PRAGMA replaces a macro, use CAPITALS! > check : logo TABLE replaces a macro, use CAPITALS! > check : logo TEXADRES replaces a macro, use CAPITALS! > check : logo TEXEDIT replaces a macro, use CAPITALS! > check : logo TEXEXEC replaces a macro, use CAPITALS! > check : logo TEXFORM replaces a macro, use CAPITALS! > check : logo TEXSPELL replaces a macro, use CAPITALS! > check : logo TEXUTIL replaces a macro, use CAPITALS! > check : logo TEX replaces a macro, use CAPITALS! > check : logo XML replaces a macro, use CAPITALS! > check : logo XETEX replaces a macro, use CAPITALS! > check : logo METAFUN replaces a macro, use CAPITALS! > ) > system : module mod-01 loaded > (e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/s-mod-01.tex > system : module mod-00 loaded > (e:\isoimage\usr\local\context
Re: [NTG-context] Generating Module documentation
Aditya Mahajan wrote: > Hi, > How does one generate module documentation? I copied mult-ini.tex to > a temp directory and did > > texmfstart texexec --modules mult-ini.tex It seems that 'texutil -- documents' is not implemented yet in the ruby scripts, so you have to use the perl version instead (it is needed internally). This should do it: texmfstart texutil.pl --documents mult-ini.tex texmfstart texexec --module mult-ini.tex Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Grouping with \dosingleempty
Aditya Mahajan wrote: > Hi, > I am confused why the following definition does not work as expected. > > \def\PM{\dosingleempty\doPM} > \def\doPM[#1]{\iffirstargument P_{M_{#1}} >\else P_{M_t}\fi} > > \starttext > Why is $\widetilde \PM[T]$ not the same as $\widetilde P_{M_T}$ > \stoptext The argument to \widetilde cannot be a macro that requires arguments, that just won't work. If you want the accent on top of a single character, you have to give it a single argument. It is possbile to do so, like this: \def\PM{P\dosingleempty\doPM} \def\doPM[#1]{\iffirstargument _{M_{#1}}\else _{M_t}\fi} \let\normalwidetilde\widetilde \def\widetilde{\expandafter\normalwidetilde} But it is better to create a new set of macros \widetildePM. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] I-installer tex install --- no ligatures
Hi David, Sounds likely this is the same TEXFONTMAPS problem again, where the texmf.cnf is making pdfetex search in the wrong place for its map files. We have had a number of reports on that. Can someone on the mac that fixed this problem please write down how to do that and put it here or on the wiki in the 'problems' section? Cheers, Taco David Arnold wrote: > All, > > I have a colleague who installed tex on his Mac using Gerben's i- > installer, installing the files in the order defined on: > > http://www.uoregon.edu/~koch/texshop/installing.html > > He did not install CB Greek, MusixTeX, or XeTeX, but all the other > files on this page, he installed in the order given. Ligatures are > missing. > > Can you help me advise my colleague? > > Anyone else have any font problems with the latest install of > Getben's tex? > ___ > 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