Re: [NTG-context] How to prevent empty page after MPpage?
Thanks a lot!!! The magic apparently works. I don't understand what exactly the obeylines macro does (it seems that it just makes sure that none of line endings get lost, not even inside definition itself). sometimes when you typeset a piece of text like poems, you actually want to go to the next line, so one solution would be to put a \par at the end of each line but if there are too much of these lines, then you will get sick of typing \par at the end of each line and so there is a CS namely \obeylines that does this automatically. Lets look at one example: I am a Plain \TeX\ user,\par and you are a Con\TeX t User,\par There are other people who use La\TeX,\par but we all are \TeX\ users. {\obeylines I am a Plain \TeX\ user, and you are a Con\TeX t user. There are other people who use La\TeX, but we all are \TeX\ users.} See in the above one, whenever I wanted to end the line and go to the next line, I had to put a \par, but in the second one I just put \obeylines which is the same that means ecah end of my lines will be treated like a \par. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] First time user trying to get Context to work
This is my first post to the list. I'm a first time user and I'm very eager to give Context a try. However, so far I've been unable to get Context to work properly. Maybe someone can help. I'm using a standard Windows PC running XP SP2. I'm using the minimals version. There are no other Tex related packages on my system. Problem 1 (solved): Ruby error: no such file to load ubygems Solution: this error is caused by the environment variable RUBYOPT. When it is set, it is usually set to -rubygems. Unsetting this variable solves the problem. Suggestion: when running first-setup.bat this error is produced on the very first line. However, since there is a lot of text scrolling down the screen this error is easily overlooked. It may be a good idea to unset the RUBYOPT variable in this .bat file. It may also be a good idea to unset (and probably reset) this variable in the texexec.bat file before texlua is called. Problem 2 (not-solved) I'm getting the infamous error: I can't find the format file `cont-en.fmt'! I searched this list and tried texexec --make --all This doesn't solve the problem. The problem is located in this part of the output: TexExec | using tex engine pdftex TexExec | using tex format path ./pdftex TexExec | unable to make format due to lack of permissions TexExec | using mp engine mpost TexExec | using mps format path . TexExec | generating mps format metafun I then did some debugging on the tex.rb file and found the error is generated in the following piece of code starting at line 646: if texformats texengine then report(using tex engine #{texengine}) texformatpath = if getvariable('local') then '.' else Kpse.formatpath(texengine,true) end # can be empty, to do report(using tex format path #{texformatpath}) Dir.chdir(texformatpath) rescue false if FileTest.writable?(texformatpath) then The last if fails and generates the error on line 679. I then checked for file permissions in the c:\context directory tree and found no problems there. My guess: the ./pdftex format path either doesn't exist or can't be found by tex.rb and this generates the error. The ruby scripts of Context are too large to do a full debug. I simply do not have the time for that. So, after several hours of hacking I hope someone can solve this problem, so I can finally give Context a try. Regards, Harrie Frericks The Netherlands ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to prevent empty page after MPpage?
Mojca Miklavec wrote: On Sun, Jul 12, 2009 at 22:45, Hans Hagen wrote: Mojca Miklavec wrote: Hello, The following code works OK in mkiv, but in mkii it generates a spurious empty page at the end. How can I get rid of it? (I think that it used to work OK a while ago.) \def\startGNUPLOTpage% {\obeyMPlines\dostartGNUPLOTpage} \long\def\dostartGNUPLOTpage#1\stopGNUPLOTpage% {\startMPpage#1\stopMPpage} \starttext \startGNUPLOTpage draw fullcircle scaled 3cm; \stopGNUPLOTpage \stoptext do you reset the color afterwards? What color(s)? (I'm not sure that I understood the question.) This is a complete minimal example (no need for any external package). It seems that \obeyMPlines or something related introduces a space somewhere, and that generates an empty page. there is a node ending up on a page on its own, could be some skip or a special/literal (e.g. color related) how does \def\startGNUPLOTpage {\begingroup \obeyMPlines \dostartGNUPLOTpage} \long\def\dostartGNUPLOTpage#1\stopGNUPLOTpage {\endgroup \startMPpage#1\stopMPpage} perform? do you really need the \obeyMPlines? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to prevent empty page after MPpage?
Mojca Miklavec wrote: On Sun, Jul 12, 2009 at 23:02, Wolfgang Schuster wrote: Am 12.07.2009 um 22:49 schrieb Mojca Miklavec: This is a complete minimal example (no need for any external package). It seems that \obeyMPlines or something related introduces a space somewhere, and that generates an empty page. Why don't you use grouping then? ah .. wolfgang was ahead of me -) I guess because I don't understand what's going on in the first place :) \def\startGNUPLOTpage {\begingroup\obeyMPlines\dostartGNUPLOTpage} \long\def\dostartGNUPLOTpage#1\stopGNUPLOTpage {\endgroup\startMPpage#1\stopMPpage} Thanks a lot!!! The magic apparently works. I don't understand what exactly the obeylines macro does (it seems that it just makes sure that none of line endings get lost, not even inside definition itself). it is not relevant here i think; there was a time when mp could not handle long lines so mkii has the option to split the source into lines (after a ;) which then makes mp happy that restriction is no longer there I had enough problems convincing the macro itself to work (metapost was complaining about too long lines otherwise), but I would definitely not come to the idea of ending the group even before the real macro starts :) oh? how old is your mp? can't you set the buffer to 200K in texmf.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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] from latex pstricks to context
Bonjour, i am transferring sources from latex to context. so i write separate files for every pstricks part and compile in a pdf-file (tex - dvips - epstopdf) with a script; finally the graphics go into the the text by \externalfigure ... 1. is there a better way ? 2. is there a way to translate Latex - Context ? PS: i dont like metapost René Bastian -- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First time user trying to get Context to work
Harrie Frericks wrote: Suggestion: when running first-setup.bat this error is produced on the very first line. However, since there is a lot of text scrolling down the screen this error is easily overlooked. It may be a good idea to unset the RUBYOPT variable in this .bat file. It may also be a good idea to unset (and probably reset) this variable in the texexec.bat file before texlua is called. ok, another option is to do this in mtx-context.lua as that one can also start texexec, like: if texexec ~= then os.setenv(RUBYOPT,) local command = string.format(ruby %s %s,texexec,environment.reconstruct_commandline(environment.arguments_after)) os.exec(command) end so context --pdftex ... then should work Problem 2 (not-solved) I'm getting the infamous error: I can't find the format file `cont-en.fmt'! I searched this list and tried texexec --make --all This doesn't solve the problem. The problem is located in this part of the output: did you run 'setuptex' in the tex path first? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to prevent empty page after MPpage?
Vafa Khalighi wrote: Thanks a lot!!! The magic apparently works. I don't understand what exactly the obeylines macro does (it seems that it just makes sure that none of line endings get lost, not even inside definition itself). sometimes when you typeset a piece of text like poems, you actually want to go to the next line, so one solution would be to put a \par at the end of each line but if there are too much of these lines, then you will get sick of typing \par at the end of each line and so there is a CS namely \obeylines that does this automatically. Lets look at one example: I am a Plain \TeX\ user,\par and you are a Con\TeX t User,\par There are other people who use La\TeX,\par but we all are \TeX\ users. {\obeylines I am a Plain \TeX\ user, and you are a Con\TeX t user. There are other people who use La\TeX, but we all are \TeX\ users.} See in the above one, whenever I wanted to end the line and go to the next line, I had to put a \par, but in the second one I just put \obeylines which is the same that means ecah end of my lines will be treated like a \par. \startlines I am a Plain \TeX\ user, and you are a Con\TeX t user. There are other people who use La\TeX, but we all are \TeX\ users. \stoplines - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] generating figures lists
Piotr Kopszak wrote: Hello, How do we generate them with recent MInimals? texexec --figures=c --paperoffset=.5cm *.pdf *.png *.jpg does -- figures alternative=c work? -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First time user trying to get Context to work
Problem 2 (not-solved) I'm getting the infamous error: I can't find the format file `cont-en.fmt'! I searched this list and tried texexec --make --all This doesn't solve the problem. The problem is located in this part of the output: did you run 'setuptex' in the tex path first? Hans Yes, I did. It makes no difference. Thanks, Harrie. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, Jul 13, 2009 at 9:55 AM, R. Bastian rbast...@free.fr wrote: Bonjour, i am transferring sources from latex to context. so i write separate files for every pstricks part and compile in a pdf-file (tex - dvips - epstopdf) with a script; finally the graphics go into the the text by \externalfigure ... 1. is there a better way ? no, or I don't know anything better Maybe you can write your own macro in context using \executesystemcommand 2. is there a way to translate Latex - Context ? AFAIK, not in an automatic fashion PS: i dont like metapost hmm, you should change your mind here.. metapost and context are very well integrated :) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
Am 13.07.2009 um 09:55 schrieb R. Bastian: Bonjour, i am transferring sources from latex to context. so i write separate files for every pstricks part and compile in a pdf-file (tex - dvips - epstopdf) with a script; finally the graphics go into the the text by \externalfigure ... 1. is there a better way ? \usemodule[pstricks] \startPSTRICKS ... \stopPSTRICKS Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First time user trying to get Context to work
Harrie Frericks wrote: Problem 2 (not-solved) I'm getting the infamous error: I can't find the format file `cont-en.fmt'! I searched this list and tried texexec --make --all This doesn't solve the problem. The problem is located in this part of the output: did you run 'setuptex' in the tex path first? Hans Yes, I did. It makes no difference. the ./pdftex suggests that your env vars are not set up; on unix make sure that you run . setuptex (with period) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, Jul 13, 2009 at 10:19 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 13.07.2009 um 09:55 schrieb R. Bastian: Bonjour, i am transferring sources from latex to context. so i write separate files for every pstricks part and compile in a pdf-file (tex - dvips - epstopdf) with a script; finally the graphics go into the the text by \externalfigure ... 1. is there a better way ? \usemodule[pstricks] \startPSTRICKS ... \stopPSTRICKS which is an elaborate wrapper around \executesystemcommand -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, Jul 13, 2009 at 09:55, R. Bastian wrote: Bonjour, i am transferring sources from latex to context. so i write separate files for every pstricks part and compile in a pdf-file (tex - dvips - epstopdf) with a script; finally the graphics go into the the text by \externalfigure ... 1. is there a better way ? 2. is there a way to translate Latex - Context ? PS: i dont like metapost If you don't like metapost, you could take a look at TikZ. It's very similar to PStricks, more portable and extremely poverful. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to prevent empty page after MPpage?
On Mon, Jul 13, 2009 at 09:50, Hans Hagen wrote: Mojca Miklavec wrote: \def\startGNUPLOTpage {\begingroup\obeyMPlines\dostartGNUPLOTpage} \long\def\dostartGNUPLOTpage#1\stopGNUPLOTpage {\endgroup\startMPpage#1\stopMPpage} Thanks a lot!!! The magic apparently works. I don't understand what exactly the obeylines macro does (it seems that it just makes sure that none of line endings get lost, not even inside definition itself). it is not relevant here i think; there was a time when mp could not handle long lines so mkii has the option to split the source into lines (after a ;) which then makes mp happy that restriction is no longer there The macro handles both MKII and MKIV and I had problem in MKII. Not all restrictions are gone now (I still get memory limit exceeded in MKIV) and even if MP handles long lines now ... I don't want to risk since the code is already there anyway. I had enough problems convincing the macro itself to work (metapost was complaining about too long lines otherwise), but I would definitely not come to the idea of ending the group even before the real macro starts :) oh? how old is your mp? can't you set the buffer to 200K in texmf.cnf? That macro has been written back in 2006 I guess. I didn't try to remove newlines, but the output of gnuplot could be as long as 1 million characters or more, so it's better to keep the lines splitted. Not that those million characters would make sense: usually TeX complains first about memory limit exceeded, but soon after that (even in MKIV) metapost starts complaining. The TikZ terminal almost works and that one manages to digest the contents (it just takes forever before it's done). (The point is not me trying to remove the limitation locally as any other user will stumble upon the same limitation. I'll keep the newlines there.) To Vafa: I meant \obeyMPlines, not \obeylines, and that one behaves a bit different. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, 13 Jul 2009 10:11:33 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Mon, Jul 13, 2009 at 9:55 AM, R. Bastian rbast...@free.fr wrote: Bonjour, [...] PS: i dont like metapost hmm, you should change your mind here.. metapost and context are very well integrated :) yo lo sé, and i regreat ;-) -- luigi -- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, 13 Jul 2009 10:19:32 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: Am 13.07.2009 um 09:55 schrieb R. Bastian: Bonjour, i am transferring sources from latex to context. so i write separate files for every pstricks part and compile in a pdf-file (tex - dvips - epstopdf) with a script; finally the graphics go into the the text by \externalfigure ... 1. is there a better way ? \usemodule[pstricks] are you schuhr ? (c) Nebenbei : the doc http://source.contextgarden.net/m-pstric.tex says %M \usemodule[pstric] etc i tried \usemodule[pstricks] and: \startPSTRICKS ... \stopPSTRICKS Wolfgang but the result is the same : dummy What is the sense of \startPSTRICKS ... \stopPSTRICKS ? rb -- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, Jul 13, 2009 at 11:05 AM, R. Bastian rbast...@free.fr wrote: On Mon, 13 Jul 2009 10:11:33 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Mon, Jul 13, 2009 at 9:55 AM, R. Bastian rbast...@free.fr wrote: Bonjour, [...] PS: i dont like metapost hmm, you should change your mind here.. metapost and context are very well integrated :) yo lo sé, and i regreat ;-) ..e su dai, dagli una possibilità :) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, Jul 13, 2009 at 11:05 AM, R. Bastian rbast...@free.fr wrote: What is the sense of \startPSTRICKS ... \stopPSTRICKS ? A wrapper around \executesystemcommand, \long\def\dostartPSTRICKS[#1]#2\stopPSTRICKS {\doifelse{\jobsuffix}{dvi} % will some day move to app as switch {\hbox{#2}} {\startTEXapplication[#1]{\usemodule[pstric]}#2\stopTEXapplication}} for \startTEXapplication see page-app.tex \long\def\dostartTEXapplication[#1]#2#3\stopTEXapplication {\bgroup \bgroup \let\f!temporaryextension\c!tex \setbuffer[\@@texapp]% \starttext #2% preamble \startTEXpage[#1]% \topskip\zeropoint \setbox\scratchbox\hbox{#3}% \saveTEXapplication02% dimensions \box\scratchbox \stopTEXpage \stoptext \endbuffer \egroup \doifelse\jobsuffix{dvi}\donetrue\donefalse \executesystemcommand{texexec \bufferprefix\@@texapp.tex --once --batch}% \ifdone % eps \executesystemcommand{dvips -E* -o \@@texapp.eps \@@texapp}% \else % pdf \executesystemcommand{dvips \bufferprefix\@@texapp}% \executesystemcommand{ps2pdf \bufferprefix\@@texapp.ps\bufferprefix\@@texapp.pdf}% % \executesystemcommand{texmfstart pstopdf \bufferprefix\@@texapp.ps\bufferprefix\@@texapp.pdf}% \fi \restoreTEXapplication % dimensions \doifelse\jobsuffix{dvi}\donetrue\donefalse \setbox\scratchbox\hbox {\expanded{\externalfigure [\bufferprefix\@@texapp.\ifdone eps\else pdf\fi] [\c!object=\v!no]}}% \setbox\scratchbox\hbox {\lower\ht\scratchbox\hbox{\raise\dimen2\box\scratchbox}}% \wd\scratchbox\dimen0 \ht\scratchbox\dimen2 \dp\scratchbox\zeropoint \box\scratchbox \egroup} I suppose that works ok in mkii, but maybe not in mkiv so the actually the best way is (imho) make pdf images using traditional way (latex+dvips) and include them by \externalfigure -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
Am 13.07.2009 um 11:05 schrieb R. Bastian: 1. is there a better way ? \usemodule[pstricks] are you schuhr ? (c) Yes I am. Nebenbei : the doc http://source.contextgarden.net/m-pstric.tex says %M \usemodule[pstric] etc 'pstricks' is a synonym for 'pstric' and there are more of them for the many presentation styles. i tried \usemodule[pstricks] and: \startPSTRICKS ... \stopPSTRICKS but the result is the same : dummy I explained why this happen a while ago in a longer thread, the short version is: ConTeXt produce pdf files by default while pstricks requires dvi - ps and to do this modifications in the pstricks module have to be done. What is the sense of \startPSTRICKS ... \stopPSTRICKS ? The code between \startPSTRICKS ... \stopPSTRICKS is written to a external file which is then converted to pdf and afterwards included as figure (the same procedure as the pst-pdf or whatever is the current method use). Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
What is the sense of \startPSTRICKS ... \stopPSTRICKS ? Maybe he meant: \startpspicture \stoppspicture The actual macros of pstricks are defined in pstricks.tex and that is all Plain TeX. I myself generally would do something like this in Plain TeX \input pstricks \pspicture(0,0)(2,2) \psline(1,1)(2,2) \endpspicture \bye and In LaTeX actually if you want to define an environment, you can use \def\environment and \def\endenvironment. I guess then you could probably use it in ConTeXt as \startpspicture \stoppspicture and you can probable load pstricks by saying \usemodule[pstricks] or anything that context uses. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
Am 13.07.2009 um 11:14 schrieb luigi scarso: \executesystemcommand{texexec \bufferprefix\@@texapp.tex --once -- batch}% I suppose that works ok in mkii, but maybe not in mkiv You're wrong, it will only work when you enable the dvi/dvips backend. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, 13 Jul 2009 10:46:53 +0200 Mojca Miklavec mojca.miklavec.li...@gmail.com scribit: On Mon, Jul 13, 2009 at 09:55, R. Bastian wrote: Bonjour, i am transferring sources from latex to context. so i write separate files for every pstricks part and compile in a pdf-file (tex - dvips - epstopdf) with a script; finally the graphics go into the the text by \externalfigure ... 1. is there a better way ? 2. is there a way to translate Latex - Context ? PS: i dont like metapost If you don't like metapost, you could take a look at TikZ. It's very similar to PStricks, more portable and extremely poverful. I tried the example http://wiki.contextgarden.net/TikZ texexec compiled it but with an error on coordinate Thanks for the tip. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, Jul 13, 2009 at 11:23 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 13.07.2009 um 11:14 schrieb luigi scarso: \executesystemcommand{texexec \bufferprefix\@@texapp.tex --once --batch}% I suppose that works ok in mkii, but maybe not in mkiv You're wrong, it will only work when you enable the dvi/dvips backend. not so sure by default \executesystemcommand{texexec \bufferprefix\@@texapp.tex --once --batch}% (line 151 on page-app.tex) gives a dvi file ( \executesystemcommand{texexec --pdf \bufferprefix\@@texapp.tex --once --batch}% gives a pdf ) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, Jul 13, 2009 at 11:23, R. Bastianrbast...@free.fr wrote: On Mon, 13 Jul 2009 10:46:53 +0200 Mojca Miklavec mojca.miklavec.li...@gmail.com scribit: On Mon, Jul 13, 2009 at 09:55, R. Bastian wrote: Bonjour, i am transferring sources from latex to context. so i write separate files for every pstricks part and compile in a pdf-file (tex - dvips - epstopdf) with a script; finally the graphics go into the the text by \externalfigure ... 1. is there a better way ? 2. is there a way to translate Latex - Context ? PS: i dont like metapost If you don't like metapost, you could take a look at TikZ. It's very similar to PStricks, more portable and extremely poverful. I tried the example http://wiki.contextgarden.net/TikZ texexec compiled it but with an error on coordinate Thanks for the tip. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
Am 13.07.2009 um 11:37 schrieb luigi scarso: by default \executesystemcommand{texexec \bufferprefix\@@texapp.tex --once -- batch}% (line 151 on page-app.tex) gives a dvi file ( \executesystemcommand{texexec --pdf \bufferprefix\@@texapp.tex --once --batch}% gives a pdf ) that's weird because 'texexec file' without any parameter gives for me pdf since many years and this is also what I got when I tried the pstricks module in the past Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
Wolfgang Schuster wrote: Am 13.07.2009 um 11:37 schrieb luigi scarso: by default \executesystemcommand{texexec \bufferprefix\@@texapp.tex --once --batch}% (line 151 on page-app.tex) gives a dvi file ( \executesystemcommand{texexec --pdf \bufferprefix\@@texapp.tex --once --batch}% gives a pdf ) that's weird because 'texexec file' without any parameter gives for me pdf since many years and this is also what I got when I tried the pstricks module in the past This was changed a while back: texexec by default generates pdf these days (I've been bitten by that as well) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
(I'm sorry, problems with computer, I'm afraid that I just sent an empty reply ...) On Mon, Jul 13, 2009 at 11:23, R. Bastian wrote: I tried the example http://wiki.contextgarden.net/TikZ texexec compiled it but with an error on coordinate I think it's best to ask the author. When compiling with MKIV (context filename) it doesn't report any error, but it doesn't draw the line either. I have no idea what could possibly go wrong. You may uncomment these two lines \draw[important line,orange!80!black] (1,0) -- node[right=1pt,fill=white] { $\displaystyle \tan \alpha \black = \frac{{\red \sin \alpha}}{\blue \cos \alpha}$} (intersection of 0,0--30:1cm and 1,0--1,1) coordinate (t); \draw (0,0) -- (t); and the rest should work. I mean: under normal usage, most things that you'll want to try will work. If not, the author usually fixes the bugs rather quickly. (I was testing with ConTeXt ver: 2009.06.14 21:01.) Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First time user trying to get Context to work
I did some more debugging: In the file kpse.rb I entered an exception object after line 274, like this: unless done then formatpaths.each do |fp| fpp = fp.sub(/#{engine}\/*$/o,'') begin FileUtils.makedirs(fpp) rescue = excobj puts #{excobj.class}: #{excobj.message} # false # maybe we don't have an path yet end if FileTest.directory?(fpp) FileTest.writable?(fpp) then # use this path This generates the following output when running texexec --make --all TeXExex | using tex engine pdftex Errno::ENOENT: No such file or directory - c:/context/tex/texmf-mswin/web2c/pdftex:c: TeXExex | using tex format path ./pdftex TeXExex | unable to make format due to lack of permissions TeXExex | using mp engine mpost Errno::ENOENT: No such file or directory - c:/context/tex/texmf-mswin/web2c/:c: TeXExex | using mps format path Does this help in solving this problem? Thanks, Harrie On Mon, Jul 13, 2009 at 10:22 AM, Hans Hagen pra...@wxs.nl wrote: Harrie Frericks wrote: Problem 2 (not-solved) I'm getting the infamous error: I can't find the format file `cont-en.fmt'! I searched this list and tried texexec --make --all This doesn't solve the problem. The problem is located in this part of the output: did you run 'setuptex' in the tex path first? Hans Yes, I did. It makes no difference. the ./pdftex suggests that your env vars are not set up; on unix make sure that you run . setuptex (with period) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, Jul 13, 2009 at 11:53 AM, Taco Hoekwater t...@elvenkind.com wrote: that's weird because 'texexec file' without any parameter gives for me pdf since many years and this is also what I got when I tried the pstricks module in the past This was changed a while back: texexec by default generates pdf these days (I've been bitten by that as well) true nowadays imho, it's better include pdf externalfigure made in traditional way . -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
R. Bastian a écrit : 2. is there a way to translate Latex - Context ? PS: i dont like metapost Salut, From my humble experience, I have faced the very same dilemna (back in 2003) and... I have switched to metapost... Did you try to use metapost + metaobj ? See sections 10.3 and 7.7 of http://tex.loria.fr/prod-graph/momanual.pdf. What's the complexity of your graphics? Did you use special pst-circ stuffs or others? If you choose to get stuck with pstricks because you don't like metapost, you should use \externalfigure. Renaud ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to prevent empty page after MPpage?
Mojca Miklavec wrote: The macro handles both MKII and MKIV and I had problem in MKII. Not all restrictions are gone now (I still get memory limit exceeded in MKIV) and even if MP handles long lines now ... I don't want to risk since the code is already there anyway. in mkiv you can use a dedicated instance for gnuplot graphics Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
Thanks for your answers. I will compile the old figures in the traditional way and include the pdf with \externalfigure \usemodule[pstricks] \startPSTRICKS ... \stopPSTRICKS does not work on my Minimal installation. For the new figures, I must ... metapost, metaobj, tikz, but also with pyx reportlab. René Bastian -- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
but also with pyx reportlab. Beware of proper fonts inclusion when you use these tools . -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List of all math macros
On Thu, 9 Jul 2009, Maurício wrote: Is there a command that prints all math macros available in ConTeXt? http://wiki.contextgarden.net/Math/basic#List_of_All_Math_macros Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
On Mon, 13 Jul 2009 18:03:19 +0200 luigi scarso luigi.sca...@gmail.com scribit: but also with pyx reportlab. Beware of proper fonts inclusion when you use these tools Yes, I suppose the best is to make figures without any font. In my case, the canvas concept of pyx is a very good tool to draw scores which expand over n pages. -- luigi -- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List of all math macros
Is there a command that prints all math macros available in ConTeXt? http://wiki.contextgarden.net/Math/basic#List_of_All_Math_macros I think \showmathcharacters is not supposed to work anymore. Maurício ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
Am 13.07.2009 um 17:12 schrieb R. Bastian: Thanks for your answers. I will compile the old figures in the traditional way and include the pdf with \externalfigure \usemodule[pstricks] \startPSTRICKS ... \stopPSTRICKS does not work on my Minimal installation. As I said the pstricks was never updated to changes in ConTeXt a few years ago where pdf was set as default output and with uninterested after the module didn't work at the first time this will never change. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] verses together
I am writing a book with poems and need to maintain four, sometimes five, lines together in the same page. I don't know in advance which four lines will be split at the end of the page. How would I implement this? Using \testpage[n] works, only if I know in advance where the the split happens. thank you Ciro -- Links of your interest: http://www-personal.engin.umd.umich.edu/~cirosoto/ http://www.TheGuitarMakerExploration.com http://www.myspace.com/sotoaguirre ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___