Re: [NTG-context] gnuplot for Mojca
On 1/2/06, Peter Münster wrote: > Hi Mojca, > if you're still looking for a gnuplot module, here is one: Yes, I'm still looking for it. > http://pmrb.free.fr/work/OS/ConTeXt/t-gnuplot.tex Thanks a lot. I've learnt a lot from the example, it's only that in the way it's written now it's not compatible with windows. I've made a gnuplot.bat. It can be called with gnuplot somescript epstopdf somescript where somescript is something like set terminal postscript eps # should be added automatically set output "someuniquename" # should be added automatically plot sin(x) # between \startGnuplot ... \stopGnuplot My question is: how can I put this into the same buffer (file) without using OS-specific commands? (piping didn't work) The rewritten version of the module works if I add the first two lines manually between \startGnuplot ... \stopGnuplot, but that should be done automatically by the module itself. I looked into metafun code, but it's still too complicated for me to understand it and use it for gnuplot. Gnuplot would also need some kind of \startGnuplotinclusions for stuff like set nokey set xlabel "time" plus the lines for setting the terminal which would automatically be added. (I don't like the postscript terminal itself, but that module s a good start.) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] e-trema
Hi Willi, On the lowest level, \discretionary{-}{e}{ë} does this, so po\discretionary{-}{e}{ë}zie is hyphenated correctly. I doubt that there is a way to automate this (without changing your input), though. Cheers, Taco Willi Egger wrote: Good evening! While typesetting a Dutch text I am confronted with the problem, that in case of a hyphenation of the word poëzie must become po-ezie. Does anybody know a solution in order to keep automatic hyphenation? Kind regards Willi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Bib Module: bibl-ssa
David Wooten wrote: Greetings all, Taco, I've just run across a small bug in the bibl-ssa style for the bib- module. That's in the beta, yes? I know it has bugs in the compression code. I will try to fix that next week, and release a 'non-beta' shortly thereafter. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] nice examples
VnPenguin wrote: On 1/2/06, Idris Samawi Hamid <[EMAIL PROTECTED]> wrote: Hi Hans On Mon, 02 Jan 2006 04:45:21 -0700, Hans Hagen <[EMAIL PROTECTED]> wrote: Hi, I dunno how many of you know this, but the next site gives examples (in pdf) of column handling http://www.math.leidenuniv.nl/~naw/serie5/index.php Were these done in ConTeXT? Please let us know! I wish I could read this one http://www.math.leidenuniv.nl/~naw/serie5/deel06/mrt2005/pdf/craats.pdf You could try e-mailing Jan van de Craats, he might have an english language version avaible. <[EMAIL PROTECTED]> Just load this pdf into Acrobat reader for example. Go to File -> Document Properties -> Description, you will see there many information about PDF Producer : pdfTeX-1.11a,... I don't see any thing related to ConTeXt there, really ? Have a look at the colofon: from 5/1.1 (mrt 2000) Zetwerk Taco Hoekwater, Bittext, Dordrecht (ConTEXt) from 5/5.4 (dec 2004) Programmatuur (CONTEXT) Hans Hagen, PRAGMA-ADE, Hasselt (Overijssel) Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] serial definition
Henning Hraban Ramm wrote: ... > After some hacking I learned how \setvalue works: > > > \def\Set#1#2#3{\setvalue{Key#1}{#2}\setvalue{Val#1}{#3}} > \def\Get#1{\getvalue{Key#1}/\getvalue{Val#1}} > > \dostepwiserecurse{1}{9}{1}{ > \Set{\recurselevel}{K\recurselevel}{V\recurselevel} > } > \Set{1}{eins}{EINS} > \Set{2}{zwei}{ZWEI} > > manually: \Get{1} -- \Get{2} -- \Get{3} > > looping: > \dostepwiserecurse{1}{5}{1}{ > \Get{\recurselevel} -- > } > > > results in: > > manually: eins/EINS – zwei/ZWEI – K0/V0 > looping: eins/EINS – zwei/ZWEI – K3/V3 – K4/V4 – K5/V5 – > > Why do I get K0/V0 for \Get{3}? - it works with \recurselevel! > Is this the TeX riddle of the week? Where is the camera? ;) Sorry, I have no clue, so you better ask the wizzards... Greetings, Peter > > Grüßlis vom Hraban! > --- > http://www.fiee.net/texnique/ > http://contextgarden.net > http://www.cacert.org (I'm an assurer) > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] serial definition
Peter Rolf wrote: Why do I get K0/V0 for \Get{3}? - it works with \recurselevel! You need to expand the \Set commands in that first loop, otherwise you store the literal token \recursevelel inside the definitions of the Key and Val macros (\setvalue{}{} autoexpands its first argument, but not its second argument). When not inside a recursion, \recurselevel expands to the number 0 (zero) in the "manual bit", and you are actually re-evaluating the macro using the then current \recurselevel definition when inside the "looping" bit. So you need: \dostepwiserecurse{1}{9}{1}{ \expanded{\Set{\recurselevel}{K\recurselevel}{V\recurselevel}} } I hope this is clear enough? Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] headers of multiple pages toc
Hi all, I have multiple pages toc, lof and lot and I want to write headers on pages after the first... I have succeeded in writting headers (chapter or section titles) in other parts of my product but I dunno how to manage this in special part (i.e. in \placecompletecontent). Cheers, ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Title page of french phd thesis
Hi all, I want to obtain something like this on my title page : Composition du jury : Président : M. Prénom NOM Rapporteurs : M. Truc BIDULE de paris Mme Machin CHOUETTE blabla Examinateurs : M. Ano NYME I would have macro to do this (inspired from thloria LaTeX package) like : \President = {M. Prénom NOM} \Rapporteurs = {M. Truc BIDULE&de Paris\\ Mme Machin CHOUETTE&blabla } \Examinateurs = {M. Ano NYME} I have some ideas on how to do this but I need advices to know what's the best way to manage this issue. Cheers, ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Title page of french phd thesis
Am 2006-01-03 um 12:08 schrieb Renaud AUBIN: I want to obtain something like this on my title page : Composition du jury : Président : M. Prénom NOM Rapporteurs : M. Truc BIDULE de paris Mme Machin CHOUETTE blabla Examinateurs : M. Ano NYME I would have macro to do this (inspired from thloria LaTeX package) like : \President= {M. Prénom NOM} \Rapporteurs = {M. Truc BIDULE&de Paris\\ Mme Machin CHOUETTE&blabla } \Examinateurs = {M. Ano NYME} I have some ideas on how to do this but I need advices to know what's the best way to manage this issue. What is "this", i.e. where's your problem? How to format the title page? -- You could use a table. Do you need the "jobs" multilingual? -- use \translate[fr=Président, de=Präsident, en=President] How to define a macro? -- \def\President#1{\def\doPresident{#1}} (and use \doPresident in the table) The letter style uses a similar approach; I'm just trying to enhance it, see the "serial definition" thread. I don't think the "\Something = {Anything}" style is possible at all. You could use keyval style like \MyTitle[president={M. Prénom NOM}, somebodyelse={}], see http://wiki.contextgarden.net/ Commands_with_KeyVal_arguments I don't know how that could work with lists of persons. Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Title page of french phd thesis
Hi, What is "this", i.e. where's your problem? How to format the title page? -- You could use a table. Of course but my question is in fact: Is it better to use a ConTeXt table or TeX primitives for a title page ? Do you need the "jobs" multilingual? -- use \translate[fr=Président, de=Präsident, en=President] I don't... How to define a macro? -- \def\President#1{\def\doPresident{#1}} (and use \doPresident in the table) The letter style uses a similar approach; I'm just trying to enhance it, see the "serial definition" thread. I don't think the "\Something = {Anything}" style is possible at all. You could use keyval style like \MyTitle[president={M. Prénom NOM}, somebodyelse={}], see http://wiki.contextgarden.net/ Commands_with_KeyVal_arguments I don't know how that could work with lists of persons. Ok, I'll try. Thanks. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Title page of french phd thesis
Henning Hraban Ramm wrote: I don't think the "\Something = {Anything}" style is possible at all. My guess is these are defined as token registers in LaTeX, so you would have to define only: \newtoks\President and use \the\President inside the table. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] nice examples
VnPenguin wrote: On 1/2/06, Idris Samawi Hamid <[EMAIL PROTECTED]> wrote: Hi Hans On Mon, 02 Jan 2006 04:45:21 -0700, Hans Hagen <[EMAIL PROTECTED]> wrote: Hi, I dunno how many of you know this, but the next site gives examples (in pdf) of column handling http://www.math.leidenuniv.nl/~naw/serie5/index.php Were these done in ConTeXT? Please let us know! sure, I wish I could read this one http://www.math.leidenuniv.nl/~naw/serie5/deel06/mrt2005/pdf/craats.pdf Just load this pdf into Acrobat reader for example. Go to File -> Document Properties -> Description, you will see there many information about PDF Producer : pdfTeX-1.11a,... I don't see any thing related to ConTeXt there, really ? indeed; they run old versions of tex (the usual "system administrator who does not want to update kind of situation") and an older version of context that does not set the banners Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Bib Module: bibl-ssa
Beta, yes indeed. David On Jan 3, 2006, at 1:18 AM, Taco Hoekwater wrote: David Wooten wrote: Greetings all, Taco, I've just run across a small bug in the bibl-ssa style for the bib- module. That's in the beta, yes? I know it has bugs in the compression code. I will try to fix that next week, and release a 'non-beta' shortly thereafter. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] serial definition
Taco Hoekwater wrote: Peter Rolf wrote: Why do I get K0/V0 for \Get{3}? - it works with \recurselevel! You need to expand the \Set commands in that first loop, otherwise you store the literal token \recursevelel inside the definitions of the Key and Val macros (\setvalue{}{} autoexpands its first argument, but not its second argument). When not inside a recursion, \recurselevel expands to the number 0 (zero) in the "manual bit", and you are actually re-evaluating the macro using the then current \recurselevel definition when inside the "looping" bit. So you need: \dostepwiserecurse{1}{9}{1}{ \expanded{\Set{\recurselevel}{K\recurselevel}{V\recurselevel}} } I hope this is clear enough? even this works (#1 being the expanded \recurselevel): \dostepwiserecurse{1}{9}{1}{ \setvalue{hi there #1}{#1 indeed} } \getvalue{hi there 4} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Title page of french phd thesis
Henning Hraban Ramm wrote: Am 2006-01-03 um 12:08 schrieb Renaud AUBIN: I want to obtain something like this on my title page : Composition du jury : Pr�sident : M. Pr�nom NOM Rapporteurs : M. Truc BIDULE de paris Mme Machin CHOUETTE blabla Examinateurs : M. Ano NYME I would have macro to do this (inspired from thloria LaTeX package) like : \President= {M. Pr�nom NOM} \Rapporteurs = {M. Truc BIDULE&de Paris\\ Mme Machin CHOUETTE&blabla } \Examinateurs = {M. Ano NYME} I have some ideas on how to do this but I need advices to know what's the best way to manage this issue. What is "this", i.e. where's your problem? How to format the title page? -- You could use a table. Do you need the "jobs" multilingual? -- use \translate[fr=Pr�sident, de=Pr�sident, en=President] How to define a macro? -- \def\President#1{\def\doPresident{#1}} (and use \doPresident in the table) The letter style uses a similar approach; I'm just trying to enhance it, see the "serial definition" thread. I don't think the "\Something = {Anything}" style is possible at all. You could use keyval style like \MyTitle[president={M. Pr�nom NOM}, somebodyelse={}], see http://wiki.contextgarden.net/ Commands_with_KeyVal_arguments I don't know how that could work with lists of persons. title pages are often made with \startstandardmakeup \vfil \bfd \setupinterlinespace Whatever \par \bfb \setupinterlinespace You Want \par \vfil \vfil \stopstandardmakeup kind of constructs, or (more fun), by putting things on a layer and flushing that one Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Big Manual
David Arnold wrote: Hans, Taco, Any news on releasing source for the "big manuals?" no news, but it will happen Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] headers of multiple pages toc
Renaud AUBIN wrote: Hi all, I have multiple pages toc, lof and lot and I want to write headers on pages after the first... I have succeeded in writting headers (chapter or section titles) in other parts of my product but I dunno how to manage this in special part (i.e. in \placecompletecontent). just use \chapter{...} and \placecontent in a \startfrontmatter .. \stopfrontmatter section Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] gnuplot for Mojca
On Tue, 3 Jan 2006, Mojca Miklavec wrote: > Thanks a lot. I've learnt a lot from the example, it's only that in > the way it's written now it's not compatible with windows. Hello Mojca, if you are using Windows, you can install MinGW, it's free and bash is included. > Gnuplot would also need some kind of \startGnuplotinclusions for stuff like > set nokey > set xlabel "time" > plus the lines for setting the terminal which would automatically be added. or something like \setupGnuplot with keys=vals! > (I don't like the postscript terminal itself, but that module s a good start.) At least, it's not bitmap. But there is a white border around the plot. It would be nice to have a clipping-option in \externalfigure. 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] headers of multiple pages toc
Hans Hagen a écrit : just use \chapter{...} and \placecontent in a \startfrontmatter .. \stopfrontmatter section Hans I use : \setupheadertexts[][chapter] \startfrontmatter \setupheadertexts[][{\sl \getmarking[chapter]}] \setuppagenumbering[conversion=romannumerals] \setuppagenumber[number=1] \completecontent[alternative=c] \completelistoffigures[alternative=c] \component src/chapters/c_intro \stopfrontmatter + \setuphead[chapter][command=\ChapterHeader, style=\tfd, header=high] \def\ChapterHeader#1#2{% \framedtext [width= \overlaywidth, height=12\bodyfontsize, background={foreground,HeaderDeco}, offset=0pt, strut=no, frame=off, align=left]{% \blank[4\bodyfontsize,force] #1 \blank[small] #2}} \setupbackgrounds[header][text][bottomframe=on] \setupbackgrounds[footer][text][topframe=on] ...in my environment. My component c_intro contains a chapter on multiple page, the header text and bottom frame work but I haven't any header text while header bottom frame work in toc and lof Cheers, ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] gnuplot for Mojca
On 1/3/06, Peter Münster wrote: > On Tue, 3 Jan 2006, Mojca Miklavec wrote: > > > Thanks a lot. I've learnt a lot from the example, it's only that in > > the way it's written now it's not compatible with windows. > > Hello Mojca, > if you are using Windows, you can install MinGW, it's free and bash is > included. OK, that could be file for me and maybe for two others, but this can't be a general solution. (Beginners wouldn't install it and the skilled ones have linux anyway.) So my question for gurus remains: how to write a macro, so that \startGnuplotinclusions set title "trigonometry" \stopGnuplotinclusions \startGnuplot plot sin(x) \stopGnuplot \startGnuplot plot cos(x) \stopGnuplot would result in one file with set terminal postscript set output "filename1" set title "trigonometry" plot sin(x) and the other one with set terminal postscript set output "filename2" # If too complicated, the filename may remain the same set title "trigonometry" plot cos(x) Out of curiosity: does "metafun" check if the buffers were changed, so that compiling again the same file is skipped next time? (For a little module as this one it's too little gain for too much anyway.) > > Gnuplot would also need some kind of \startGnuplotinclusions for stuff like > > set nokey > > set xlabel "time" > > plus the lines for setting the terminal which would automatically be added. > > or something like \setupGnuplot with keys=vals! Well, ... yes. That also, of course. Those could be use to set engine to postscript/eps/metapost/png/... or even LaTeX. (But for the beginning, I would be greatful for even the dummiest possible solution.) If ConTeXt terminal would be written, maybe this could be used also for setting symbols, default colors, ... etc. > > (I don't like the postscript terminal itself, but that module s a good > > start.) > > At least, it's not bitmap. I use LaTeX as the terminal otherwise (but your module can be modoified to use LaTeX terminal and convert into PDF as well). If I will find some time and additional motivation (sorry, less motivation for other things), I would like to modify the "metapost.trm". It's only 1000 lines (postscript is a bit longer), but very well structured code and much better understandable than TeX which is still cryptography for me. (Even in that case I would still need a lot of help from the ConTeXt side.) > But there is a white border around the plot. It > would be nice to have a clipping-option in \externalfigure. I would prefer to leave the border in this case as the default behaviour (for example if you have two graphs with different labels, you want the graphs to have the same size, not cropped because of slightly different name for the y axis), but I vote for that feature too. (Hans?) Some time ago Hans mentioned that texexec can crop, but I didn't manage to make it work (it was converting from PDF to PS and back, but it didn't crop anything). There's a nice working script on CTAN (http://www.ctan.org/tex-archive/support/pdfcrop/) for cropping. I guess that texexec could do that as well, but some half year ago as I tried it, I had no luck. Thanks again for all that, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX terminology
Thank you both, Mojca Hans Hagen wrote: > Mojca Miklavec wrote: > > >Hello, > > > >Sorry for a questioin that is a bit off-topic. > > > >I'm a bit confused about the TeX terminology. I know what is what, but > >I don't know how all these programs/packages/macros are officially > >called in English. > > > >How would you explain those in an encyclopedy with no more than one sentence? > > > >* plain TeX, LaTeX, ConTeXt are ... > >? TeX formats ? (but ConTeXt is not just that) > >* TeX, eTeX, pdf(e)TeX, Aleph, Omega, XeTeX are ... > >? TeX engines/extensions, an extended version of TeX ? > > > > > also languages (tex is language and interpreter) > > >* pdflatex is ... > > > > > a shortcut for "run pdftex in pdf mode with latex preloaded" > > >? > >* texexec is ... > >? > > > > > a wrapper around tex (providing it a commandline of sorts) > > >* texutil, texfont are ... > >? scripts/utilities for [whateverthetask] > >* MikTeX, TeX Live, teTeX are ... > >TeX distributions > >* PPCHTeX, XymTeX, MusicTeX are ... > >ConTeXt module(s) / LaTeX package(s) > >* PicTeX is > >? TeX drawing environment > > > > > should be at the same level as ppchtex . > > >* BibTeX is ... > >? > > > > > program/language for handling bibs, output to be supported by the macro > package > > >* TeXCeH is ... > >TeX user group > > > > > > Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] BBEdit and Context
All, Has anyone designed any macros or glossaries to work with Context in BBEdit? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] gnuplot for Mojca
Mojca Miklavec wrote: Some time ago Hans mentioned that texexec can crop, but I didn't manage to make it work (it was converting from PDF to PS and back, but it didn't crop anything). There's a nice working script on CTAN (http://www.ctan.org/tex-archive/support/pdfcrop/) for cropping. I guess that texexec could do that as well, but some half year ago as I tried it, I had no luck. (new)pstopdf can crop (bound) long ago i made a perl script called "cropcrap" which will be in the next distribution under the name "pdftrimwhite" (the more decent name as suggested by karl berry); however, this script works on pdf files Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] gnuplot for Mojca
Mojca Miklavec wrote: Out of curiosity: does "metafun" check if the buffers were changed, so that compiling again the same file is skipped next time? (For a little module as this one it's too little gain for too much anyway.) if you process between runs (texexec --automp) such a check is done Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] gnuplot for Mojca
Mojca Miklavec wrote: On 1/3/06, Peter Münster wrote: On Tue, 3 Jan 2006, Mojca Miklavec wrote: Thanks a lot. I've learnt a lot from the example, it's only that in the way it's written now it's not compatible with windows. Hello Mojca, if you are using Windows, you can install MinGW, it's free and bash is included. OK, that could be file for me and maybe for two others, but this can't be a general solution. (Beginners wouldn't install it and the skilled ones have linux anyway.) that makes me a beginner So my question for gurus remains: how to write a macro, so that \startGnuplotinclusions set title "trigonometry" \stopGnuplotinclusions \startGnuplot plot sin(x) \stopGnuplot \startGnuplot plot cos(x) \stopGnuplot would result in one file with set terminal postscript set output "filename1" set title "trigonometry" plot sin(x) and the other one with set terminal postscript set output "filename2" # If too complicated, the filename may remain the same why should it change an option is to collect *all graphic data* and do it in one run, in which case we can gain some speed set title "trigonometry" plot cos(x) % output=pdf \def\startGNUPLOTinclusions {\bgroup \obeylines \dostartGNUPLOTinclusions} \def\dostartGNUPLOTinclusions#1\stopGNUPLOTinclusions {\gdef\GNUPLOTinclusions{#1}% \egroup} \def\startGNUPLOTgraphic {\bgroup \obeylines \dostartGNUPLOTgraphic} \def\dostartGNUPLOTgraphic#1\stopGNUPLOTgraphic {\def\par{\rawcharacter{13}}% \immediate\openout\scratchwrite=\bufferprefix gnuplot.job \immediate\write\scratchwrite{\GNUPLOTinclusions}% \immediate\write\scratchwrite{set output "\bufferprefix gnuplot.ps"}% \immediate\write\scratchwrite{#1}% \immediate\closeout\scratchwrite \egroup \processGNUPLOTgraphic{\bufferprefix gnuplot}} \def\processGNUPLOTgraphic#1% {\executesystemcommand{start d:/gnuplot/bin/pgnuplot #1.job}% \executesystemcommand{texmfstart newpstopdf #1.ps}% \externalfigure[#1.pdf]} \starttext \startGNUPLOTinclusions set title "trigonometry" set terminal postscript \stopGNUPLOTinclusions \startGNUPLOTgraphic plot sin(x) \stopGNUPLOTgraphic \startGNUPLOTgraphic plot cos(x) \stopGNUPLOTgraphic \stoptext i leave it to you to figure out why i don't get output Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] page references (varioref)
Hello, I tried to implement something like the LaTeX varioref package, but without success. In detail: I would like to create a command like \at[], say \VarioAt[], that outputs a text in function of the page-number, for example: * if page is the same as the current page: "on the current page" * if page is next page: "on the following page" * if page is previous page: "on the preceding page" * else "on page XX" (XX is page-number) I tried with something like \doifelse{\expanded{\at[myRef]}}{\expanded{\currentpage}}% {same page}{different pages} But it seems, that this does not work... :( Could you help please? Greetings, 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] page references (varioref)
� wrote: Hello, I tried to implement something like the LaTeX varioref package, but without success. In detail: I would like to create a command like \at[], say \VarioAt[], that outputs a text in function of the page-number, for example: * if page is the same as the current page: "on the current page" * if page is next page: "on the following page" * if page is previous page: "on the preceding page" * else "on page XX" (XX is page-number) I tried with something like \doifelse{\expanded{\at[myRef]}}{\expanded{\currentpage}}% {same page}{different pages} But it seems, that this does not work... :( there is \atpage[ref] (as well as \somewhere{pre}{post}[ref]) with the associated label texts "hencefore" and "hereafter" rather old code but it should still work Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] BBEdit and Context
David Arnold wrote: All, Has anyone designed any macros or glossaries to work with Context in BBEdit? ctxtools --bbeditinterface (should) generate syntax files for bbedit Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] gnuplot for Mojca
On Tue, 3 Jan 2006, Hans Hagen wrote: > i leave it to you to figure out why i don't get output Hello Hans, really nice example, that's the way I love to learn ConTeXt! I don't have Windows, so I had to modify your code a bit: > {\def\par{\rawcharacter{13}}% changed to {\def\par{\rawcharacter{10}}% because 13 is CR (\r), but gnuplot needs LF (\n) here (Linux) But I don't understand, why the \par must be redefined, is it because \obeylines transforms newlines to paragraphs? > {\executesystemcommand{start d:/gnuplot/bin/pgnuplot #1.job}% just {\executesystemcommand{gnuplot #1.job}% here It works well, but it's two time the cos-function, that gets included. I think, one needs a counter as in my module, to get distinguished file names for \externalfigure. Greetings, 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] th nd and rd
On Friday 30 December 2005 04:35 pm, Mojca Miklavec wrote: > \def\enordinalnumber#1% > {#1\ifnum\lasttwodigits{#1}=11 > \highordinalstr{th}% > \else\ifcase\lastdigit{#1}% > \highordinalstr{th}% > \or % 1 > \highordinalstr{st}% > \or % 2 > \highordinalstr{nd}% > \or % 3 > \highordinalstr{rd}% > \else > \highordinalstr{th}% > \fi\fi} > > And use it as: > > \enordinalnumber{1} > \enordinalnumber{2} > \enordinalnumber{3} > \enordinalnumber{4} > \enordinalnumber{5} > \enordinalnumber{100} > ... It is stored now as part of my "standard macro pack" for Context. Thanks to all. -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] float/figure and wrapping text
I am typesetting books, primarily text and images. My original background is Quark/InDesign, but quite recently, I decided to look into TeX/LaTeX (LaTeX because that is just what most of the TeX references refer to). I first spent some time trying to learn LaTeX and although I was able to accomplish a number of my desired goals, I began to run into some problems related to maintaining text on a baseline grid. When searching for solutions, I came across a reference to ConTeXt. My first impressions are that ConTeXt looks great, and would handle most of what I would like to accomplish with a nice uniform approach. I haven't explored many of the features I will need to use, but am trying to read the manuals and listserv archives and basically trying things out to see how things function. So, I am sure I will have a number of questions that will later turn out to seem obvious (often the case, I guess for the uninitiated). Eventually, I might even be able to answer a couple of questions But, to begin, one thing I would like to do for a project I am working on is to wrap continuous text around an image (placed on one side of the main text body), and I am encountering a little difficulty. The basic situation in my document is that the figure can float, to be inserted at the next available spot, placed at the left or right margin, with text above (if there is space), to the side, and below (if there is space). First, it appears that TeX, LaTeX and ConTeXt can only place a figure next to text at the beginning of a paragraph. Is this correct? Second, using ConText, when I use \placefigure, if there is enough space on a page, it appears to place it, and wrap text around the side. Everything looks fine. But, if there is not enough space remaining on the page, the remainder of the page is left blank, and then the figure is placed at the beginning of the next page, with text wrapped around it. (That is both what I observed, and also I read in the "Details" document as the expected behavior). If I use \placefloat, if there is not enough space remaining on the page, the text will continue printing on the page and the float will be placed on the next page, BUT without any text to the side of it. What I would like is to be able to combine these two behaviors when placing a floating figure: If there is enough space on the page, it would place the figure there and wrap text around it (as it currently does for \placefigure). If there is not enough space, it will 'float' the figure and continue with the text on the current page (as it does with \placefloat, but not with \placefigure) and insert the figure on a subsequent page when there is space, wrapping the text around the figure at that point (again as it does with \placefigure, but does not seem to do with \placefloat). Is it possible to do this using a current set of ConTeXt control sequences and maybe I am just missing something? If not, is this something that can be implemented? (I don't have any experience with lower level TeX macro programming). All of what I am looking for is already there, but not all in one control sequence. Thank you very much for any help, Randolph ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] float/figure and wrapping text
Have you seen this document? http://pragma-ade.com/general/manuals/details.pdf Look in the section "Fine Tuning Graphics" and see if there is anything there that will help. On Jan 3, 2006, at 8:01 PM, Randolph Bertin wrote: I am typesetting books, primarily text and images. My original background is Quark/InDesign, but quite recently, I decided to look into TeX/LaTeX (LaTeX because that is just what most of the TeX references refer to). I first spent some time trying to learn LaTeX and although I was able to accomplish a number of my desired goals, I began to run into some problems related to maintaining text on a baseline grid. When searching for solutions, I came across a reference to ConTeXt. My first impressions are that ConTeXt looks great, and would handle most of what I would like to accomplish with a nice uniform approach. I haven't explored many of the features I will need to use, but am trying to read the manuals and listserv archives and basically trying things out to see how things function. So, I am sure I will have a number of questions that will later turn out to seem obvious (often the case, I guess for the uninitiated). Eventually, I might even be able to answer a couple of questions But, to begin, one thing I would like to do for a project I am working on is to wrap continuous text around an image (placed on one side of the main text body), and I am encountering a little difficulty. The basic situation in my document is that the figure can float, to be inserted at the next available spot, placed at the left or right margin, with text above (if there is space), to the side, and below (if there is space). First, it appears that TeX, LaTeX and ConTeXt can only place a figure next to text at the beginning of a paragraph. Is this correct? Second, using ConText, when I use \placefigure, if there is enough space on a page, it appears to place it, and wrap text around the side. Everything looks fine. But, if there is not enough space remaining on the page, the remainder of the page is left blank, and then the figure is placed at the beginning of the next page, with text wrapped around it. (That is both what I observed, and also I read in the "Details" document as the expected behavior). If I use \placefloat, if there is not enough space remaining on the page, the text will continue printing on the page and the float will be placed on the next page, BUT without any text to the side of it. What I would like is to be able to combine these two behaviors when placing a floating figure: If there is enough space on the page, it would place the figure there and wrap text around it (as it currently does for \placefigure). If there is not enough space, it will 'float' the figure and continue with the text on the current page (as it does with \placefloat, but not with \placefigure) and insert the figure on a subsequent page when there is space, wrapping the text around the figure at that point (again as it does with \placefigure, but does not seem to do with \placefloat). Is it possible to do this using a current set of ConTeXt control sequences and maybe I am just missing something? If not, is this something that can be implemented? (I don't have any experience with lower level TeX macro programming). All of what I am looking for is already there, but not all in one control sequence. Thank you very much for any help, Randolph ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] float/figure and wrapping text
David Arnold wrote: Have you seen this document? http://pragma-ade.com/general/manuals/details.pdf Look in the section "Fine Tuning Graphics" and see if there is anything there that will help. Yes, I had looked through that document, which is where I found the statement (on p. 25): When the figure does not fit on the page, a page break is issued. This, as I mentioned, is a result of \placefigure I would like to get around (and, in fact, \placefloat DOES seem to get around, but with the drawback of not having text wrapped to the side). While I don't understand all the "details" of that manual, (which I am sure will be very helpful for me in fine tuning the placement of a graphic relative to the surrounding text, if I can overcome my current placement difficulty), the remaining "details" do not appear to address the matter. I feel like I am missing something pretty basic, here, but just can't seem to come up with the right combination. Any other thoughts? Regards, Randolph ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page references (varioref)
On Tue, 3 Jan 2006, Hans Hagen wrote: > there is \atpage[ref] (as well as \somewhere{pre}{post}[ref]) with the > associated label texts "hencefore" and "hereafter" > > rather old code but it should still work Thanks a lot! Not as rich as varioref, but exactly what I need! Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context