[NTG-context] Why doesn't this inherit?
Hans et all, We don't understand, why we have to uncomment the commented line in the code below to make section numbers go away? Why doesn't the enumeration inherit? \usemodule[colors] \setupcolors[state=start] \definecolor[lavender][r=0.25,b=0.75,t=0.095,a=1] \defineframedtext[MyBox] \definemeasure[BoxWidth][\textwidth] \defineblank[BoxBlank][1em plus 1em minus 1em] \setupframedtexts [MyBox] [width=\measure{BoxWidth}, before={\blank[BoxBlank]}, after={\blank[BoxBlank]}, background=color, frame=no, location=middle] \definenumber[CommonCtr][way=bysection,sectionnumber=no] \definenumber[FigCtr][way=bysection,sectionnumber=no] \setupframedtexts [MyBox] [width=\measure{BoxWidth}, before={\blank[BoxBlank]}, after={\blank[BoxBlank]}, background=color, frame=no, location=middle] \setuplabeltext[remark=Remark] \setuplabeltext[theorem=Theorem] \defineenumeration [remark,theorem] [location=serried, width=broad, headstyle=bold, inbetween=\blank, before=\blank, after=\blank, way=bysection, sectionnumber=no, number=yes] \defineenumeration [remark] [text=\labeltext{remark}] \defineenumeration [theorem] [text=\labeltext{theorem}, % sectionnumber=no, before={\startMyBox[backgroundcolor=lavender]}, after=\stopMyBox] \setupnumber[remark][number=CommonCtr] \setupnumber[theorem][number=CommonCtr] \setupnumber[formula][number=CommonCtr] \setupnumber[figure][number=FigCtr] \starttext \chapter[chap:one]{Chapter One} \input knuth \section[sec:one]{Section One} \startremark This is a remark \stopremark \startremark This is a remark \stopremark \starttheorem This is a theorem. \stoptheorem \placeformula[eq:one] \startformula f(x)=x^2 \stopformula \startremark This is a remark \stopremark \starttheorem This is a theorem. \stoptheorem \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.07.13 released
Minimal test: \useencoding[ffr] \mainlanguage[fr] \starttext Un essai, de ponctuation; un autre. \startuseMPgraphic{testMP} draw origin--(1cm,1cm); draw (origin--(1cm,1cm)) rotated 180; \stopuseMPgraphic \placefigure[here]{none}{\useMPgraphic{testMP}} \stoptext texexec returns: This is MetaPost, Version 0.901 (Web2C 7.5.3) (test-mpgraph.mp currentpen.directdiscretionary ! Improper type. to be read again { l.145 draw origin--(1cm,1cm)\directdiscretionary { ;} Renaud AUBIN a écrit : Hi, I'have updated my local ConTeXt to rel. 2006.07.14 and I obtain : to be read again directdiscretionary l.71 enddef \directdiscretionary {;} Cheers, Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Figure. 3
All, Anyone know how to get a period after Figure in figure caption. I tried: \setupcaptions[separator=.] \starttext \placefigure [][fig:one] {Caption.} {\externalfigure[blank]} \stoptext And \let\floatcaptionsuffix=. \starttext \placefigure [][fig:one] {Caption.} {\externalfigure[blank]} \stoptext Neither worked. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] tempdir support in texexec.rb
On 17.07.2006 21:35, Hans Hagen wrote: Matthias Wächter wrote: Naively, I thought that the --tempdir option would allow the 'temporary' files created/updated at a run of texexec be written to whatever is given as --tempdir=/dir/, but it doesn't work, the files remain in the current directory. Additionally, --output seems to disallow the output be put into another directory (it's always put into `pwd`). Is there a (better?) way to specify where these files should go? currently not, an option like that is doable but would involve both an patch to context itself (runtime locating files) and texexec (inbetween/postprocessing) [pretty fuzzy btw] I see. if it's because of the temp files. you can run with --purge and get them removed Well, then Context could not benefit from incremental builds with just one run instead of 4 to 5 runs. But I get the idea. $ texexec --pdf --tempdir=tmp --output=out/project.pdf project --output concerns the backend while --result texexec test --result=what/oeps should work ok given that what exists (i'll add a check for existence) Is /me the only one who desires such a split? I think so Then, is there a list of files that are automatically created by Context (not mentioning files that are manually created as part of TeX output functions and such)? The prime aspect of my question is to have a reasonable list of file names that shouldn't be version controlled with the source code. Our scripts automatically check for unknown files and mark our documents tainted if the local version is not consistent with the repository (say, completely committed and updated). If I could instruct context to put all temporary files into a separate directory, I could simply put tmp/* to the ignore list, and that's it. Maybe for this task, --purge is reasonable enough. I'll give it a try. Thanks, Hans! - Matthias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.07.13 released
Renaud AUBIN wrote: Hi, I'have updated my local ConTeXt to rel. 2006.07.14 and I obtain : to be read again directdiscretionary l.71 enddef \directdiscretionary {;} Cheers, anything funny in your cont-loc/cont-sys or so? - 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] tempdir support in texexec.rb
Matthias Wächter wrote: On 17.07.2006 21:35, Hans Hagen wrote: Matthias Wächter wrote: Naively, I thought that the --tempdir option would allow the 'temporary' files created/updated at a run of texexec be written to whatever is given as --tempdir=/dir/, but it doesn't work, the files remain in the current directory. Additionally, --output seems to disallow the output be put into another directory (it's always put into `pwd`). Is there a (better?) way to specify where these files should go? currently not, an option like that is doable but would involve both an patch to context itself (runtime locating files) and texexec (inbetween/postprocessing) [pretty fuzzy btw] I see. if it's because of the temp files. you can run with --purge and get them removed Well, then Context could not benefit from incremental builds with just one run instead of 4 to 5 runs. But I get the idea. eh ... the tuo file is kept Maybe for this task, --purge is reasonable enough. I'll give it a try. that's indeed the best way to go; btw, here i only version tex files Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] 2006.07.13 release notes (MP-related)
Hi all, First, I don't understand this part of the release notes: "supp-mps.tex: \startuseMPgraphic and \startusableMPgraphic no longer have an argument" Does it mean that we don't have to use \startuseMPgraphic{myMPgrapharg} ... \stopMPgraphic with any myMPgrapharg ? I assume I've missed something... :-\ Second, what's the difference between staticMPfigure and staticMPgraphic and how (and where) can we use it ? Some advice are welcome in this part because I use a lot of MPgraphic and I'm really interested to use staticMPXXX if I can save some processing time... ;) Last but not least: I've posted some days ago a thread "[NTG-context] A page for figures ?"... This problem is always topical... Cheers, Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.07.13 released
Hans Hagen a crit: Renaud AUBIN wrote: Hi, I'have updated my local ConTeXt to rel. 2006.07.14 and I obtain : to be read again directdiscretionary l.71 enddef \directdiscretionary {;} Cheers, anything funny in your cont-loc/cont-sys or so? Hi Hans, The problem is apparently due to \useencoding[ffr] \mainlanguage[fr] without it works well... All I can say is: It was working well before updating (ConTeXt 2006.06.09 + bib beta 5)... I have just updated cont-tmf... It's maybe due to \scanurl-related modifications ??? My cont-sys.tex: %D \module %D [ file=cont-sys, %D version=1995.10.10, %D title=\CONTEXT\ Miscellaneous Macros, %D subtitle=System Specific Setups, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA / Hans Hagen \ Ton Otten}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. \unprotect % Speed up typescript loading, but at the cost of much memory: % \preloadtypescripts % If you want another default font: % % \let\preloadfonts\relax % \usetypescript[palatino][\defaultencoding] % \setupbodyfont[palatino,rm,12pt] % % Please make sure that this defines rm, ss, tt and mm. % Occasionally we will support both A4 and letter in % styles. If you want letter size paper to be the default, % uncomment: % % \enablemode[\systemmodeprefix letter] % % If you always want to default to letter, you may uncomment % the following line, but beware: it makes your documents less % portable: % % \setuppapersize[letter][letter] % If you want some extras, just uncomment the following % line: % % \usemodule[plus] % experimental code % % Here you can take care of overloading some (style) % defaults. What goes here, depends on your local system. % The following commands sets the default font encoding: % \setupencoding [\s!default=texnansi] % % or: %\setupencoding [\s!default=ec] % If you want the default berry names: % % \usetypescript [berry] [\defaultencoding] % % or, if you also want other encodings: \usetypescript [berry] [ec,t5,8r] % texnansi is never present % If you run into missing font metrics kind of problems, % you may want to uncomment: % % \usetypescript[adobekb] [\defaultencoding] % You can let \CONTEXT\ load the map files for \PDFTEX. \autoloadmapfilestrue % (1) you can prevent loading with: % % \preloadmapfile[...somenamemap] % % (2) otherwise, use this if you have a fast machine % %\resetmapfiles \usetypescript [map] [base] [all] % % (3) or this if it's a slow one: \resetmapfiles \donefalse \ifx\pdftexversion\undefined \else \ifnum\number\pdftexversion119 \donetrue \fi \fi \ifdone \loadmapfile[original-base.map] \loadmapfile[original-ams-base.map] \loadmapfile[original-public-lm.map] \else \loadmapfile[original-base.map] \loadmapfile[texnansi-base.map] \loadmapfile[ec-base.map] \loadmapfile[qx-base.map] \loadmapfile[t5-base.map] %loadmapfile[il2-base.map] %loadmapfile[pl0-base.map] \loadmapfile[8r-base.map] \loadmapfile[original-ams-base.map] \loadmapfile[original-ams-euler.map] \loadmapfile[original-public-lm.map] \loadmapfile[texnansi-public-lm.map] \loadmapfile[ec-public-lm.map] \loadmapfile[qx-public-lm.map] \loadmapfile[t5-public-lm.map] %loadmapfile[pl0-public-lm.map] %loadmapfile[il2-public-lm.map] \fi % When you have your own fonts installed, you may want to predefine: % \usetypescriptfile[type-buy] % Some styles default to Lucida Bright. You can overload % Lucida by Times cum suis. Watch out, the pos collection % is not scaled relatively. % % \definetypescriptsynonym [lbr] [pos] % Compensate for missing files: % % \definefontsynonym [gbhei] [gbsong] % \definefontsynonym [gbheisl] [gbsong] % \definefontsynonym [gbheisl] [gbsong] % Setting up a global figure path % % \setupexternalfigures [\c!directory={e:/fig/eps,t:/mine/figs}] % % Loading a specific special driver: % % \setupoutput [dviwindo] % Changing language defaults % % \setuplanguage % [nl] % [\c!leftquote=\upperleftsinglesixquote, % \c!leftquotation=\upperleftdoublesixquote] % Loading local preferences, for example % % \input prag-gen % company styles % \input prag-log % more company styles % % Enabling run time \METAPOST\ (also enable \write18 in % texmf.cnf): \runMPgraphicstrue \runMPTEXgraphicstrue % This saves some runtime, but needs a format, which you can % make with 'texexec --make --alone metafun'. Make sure that % the mem files are moved to the used web2c path (locate with % 'kpsewhich plain.mem'). \useMETAFUNformattrue % This can be a way to get things working on system with % name clashes. (Some \TeX's tend do search system wide.) \protectbufferstrue % You can enable a more extensive figure searching, but % normally this is not really needed and even annoying. % % \runutilityfiletrue % So far. \protect \endinput ___ ntg-context mailing list
Re: [NTG-context] tempdir support in texexec.rb
On 18.07.2006 10:29, Hans Hagen wrote: if it's because of the temp files. you can run with --purge and get them removed Well, then Context could not benefit from incremental builds with just one run instead of 4 to 5 runs. But I get the idea. eh ... the tuo file is kept Appearantly, only mpgraph.mp is removed by --purge, and --purgeall only gives some CtxTools help messages. Hmm ... Maybe for this task, --purge is reasonable enough. I'll give it a try. that's indeed the best way to go; btw, here i only version tex files Depending on the process you have to maintain (you know, I mentioned Context version numbers before ...), you want to version everything except stuff that is there and unversioned by intent. At least you want to get warned of new files you may have forgotten to put under revision control, and as said, you may want to mark the document tainted because of unclean checkouts. The easiest approach would be to have a separate directory for non-output related stuff like .tmp, .log, .tui, .tuo, .mp, then any other unversioned file would be a sign of unallowed modification. OK, I will simply mark *.tmp, *.log, *.tui and *.tuo as ignore. What's the difference between mpgraph.mp and project-mpgraph.mp ? The latter is not removed when using --purge. Is this by intent? Then I have to put *-mpgraph.mp to the ignore list, too. - Matthias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] tempdir support in texexec.rb
Matthias Wächter wrote: On 18.07.2006 10:29, Hans Hagen wrote: if it's because of the temp files. you can run with --purge and get them removed Well, then Context could not benefit from incremental builds with just one run instead of 4 to 5 runs. But I get the idea. eh ... the tuo file is kept Appearantly, only mpgraph.mp is removed by --purge, and --purgeall only gives some CtxTools help messages. Hmm ... Maybe for this task, --purge is reasonable enough. I'll give it a try. that's indeed the best way to go; btw, here i only version tex files Depending on the process you have to maintain (you know, I mentioned Context version numbers before ...), you want to version everything except stuff that is there and unversioned by intent. At least you want to get warned of new files you may have forgotten to put under revision control, and as said, you may want to mark the document tainted because of unclean checkouts. The easiest approach would be to have a separate directory for non-output related stuff like .tmp, .log, .tui, .tuo, .mp, then any other unversioned file would be a sign of unallowed modification. OK, I will simply mark *.tmp, *.log, *.tui and *.tuo as ignore. in ctxtools you can find a more detailed list (*-mpgraph *-mprun, *..mpt, *.mpd, etc) What's the difference between mpgraph.mp and project-mpgraph.mp ? The latter is not removed when using --purge. Is this by intent? Then I have to put *-mpgraph.mp to the ignore list, too. after we introduced the mpgraph name there suddenly apeared a similar file in the metapost paths; so, in order to prevent loading of that file by mistake, (e.g. when not using the prefixing) i create an empty one in the current path. the -mpgraph.mp plays a role in determining multiple runs when not in runtime graphics mode, but it does not need versioning 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] tempdir support in texexec.rb
Matthias Wächter wrote: OK, I will simply mark *.tmp, *.log, *.tui and *.tuo as ignore. i've marked (in tortoise) the following ones: *.tui *.tuo *.tub *.log *.top *.tmp *mpgraph* *mprun* - 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] 2006.07.13 release notes (MP-related)
Renaud AUBIN wrote: Hi all, First, I don't understand this part of the release notes: supp-mps.tex: * \startuseMPgraphic and \startusableMPgraphic no longer have an argument Does it mean that we don't have to use \startuseMPgraphic{myMPgrapharg} ... \stopMPgraphic with any myMPgrapharg ? you can delete those lines; it was a misunderstanding; they are now two-step calls, needed for obeying mp lines; not of importance to users; I assume I've missed something... :-\ Second, what's the difference between staticMPfigure and staticMPgraphic and how (and where) can we use it ? Some advice are welcome in this part because I use a lot of MPgraphic and I'm really interested to use staticMPXXX if I can save some processing time... ;) there was a thread on this list; static ones can be called as figures 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] Context 2006.07.13 released
Renaud AUBIN wrote: Hans Hagen a écrit : Renaud AUBIN wrote: Hi, I'have updated my local ConTeXt to rel. 2006.07.14 and I obtain : to be read again directdiscretionary l.71 enddef \directdiscretionary {;} Cheers, anything funny in your cont-loc/cont-sys or so? Hi Hans, The problem is apparently due to \useencoding[ffr] \mainlanguage[fr] without it works well... All I can say is: It was working well before updating (ConTeXt 2006.06.09 + bib beta 5)... I have just updated cont-tmf... It's maybe due to \scanurl-related modifications ??? My cont-sys.tex: %D \module %D [ file=cont-sys, %Dversion=1995.10.10, %D title=\CONTEXT\ Miscellaneous Macros, %D subtitle=System Specific Setups, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA / Hans Hagen \ Ton Otten}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. \unprotect % Speed up typescript loading, but at the cost of much memory: % \preloadtypescripts % If you want another default font: % % \let\preloadfonts\relax % \usetypescript[palatino][\defaultencoding] % \setupbodyfont[palatino,rm,12pt] % % Please make sure that this defines rm, ss, tt and mm. % Occasionally we will support both A4 and letter in % styles. If you want letter size paper to be the default, % uncomment: % % \enablemode[\systemmodeprefix letter] % % If you always want to default to letter, you may uncomment % the following line, but beware: it makes your documents less % portable: % % \setuppapersize[letter][letter] % If you want some extras, just uncomment the following % line: % % \usemodule[plus] % experimental code % % Here you can take care of overloading some (style) % defaults. What goes here, depends on your local system. % The following commands sets the default font encoding: % \setupencoding [\s!default=texnansi] % % or: %\setupencoding [\s!default=ec] % If you want the default berry names: % % \usetypescript [berry] [\defaultencoding] % % or, if you also want other encodings: \usetypescript [berry] [ec,t5,8r] % texnansi is never present % If you run into missing font metrics kind of problems, % you may want to uncomment: % % \usetypescript[adobekb] [\defaultencoding] % You can let \CONTEXT\ load the map files for \PDFTEX. \autoloadmapfilestrue % (1) you can prevent loading with: % % \preloadmapfile[...somenamemap] % % (2) otherwise, use this if you have a fast machine % %\resetmapfiles \usetypescript [map] [base] [all] % % (3) or this if it's a slow one: \resetmapfiles \donefalse \ifx\pdftexversion\undefined \else \ifnum\number\pdftexversion119 \donetrue \fi \fi \ifdone \loadmapfile[original-base.map] \loadmapfile[original-ams-base.map] \loadmapfile[original-public-lm.map] \else \loadmapfile[original-base.map] \loadmapfile[texnansi-base.map] \loadmapfile[ec-base.map] \loadmapfile[qx-base.map] \loadmapfile[t5-base.map] %loadmapfile[il2-base.map] %loadmapfile[pl0-base.map] \loadmapfile[8r-base.map] \loadmapfile[original-ams-base.map] \loadmapfile[original-ams-euler.map] \loadmapfile[original-public-lm.map] \loadmapfile[texnansi-public-lm.map] \loadmapfile[ec-public-lm.map] \loadmapfile[qx-public-lm.map] \loadmapfile[t5-public-lm.map] %loadmapfile[pl0-public-lm.map] %loadmapfile[il2-public-lm.map] \fi % When you have your own fonts installed, you may want to predefine: % \usetypescriptfile[type-buy] % Some styles default to Lucida Bright. You can overload % Lucida by Times cum suis. Watch out, the pos collection % is not scaled relatively. % % \definetypescriptsynonym [lbr] [pos] % Compensate for missing files: % % \definefontsynonym [gbhei] [gbsong] % \definefontsynonym [gbheisl] [gbsong] % \definefontsynonym [gbheisl] [gbsong] % Setting up a global figure path % % \setupexternalfigures [\c!directory={e:/fig/eps,t:/mine/figs}] % % Loading a specific special driver: % % \setupoutput [dviwindo] % Changing language defaults % % \setuplanguage % [nl] % [\c!leftquote=\upperleftsinglesixquote, %\c!leftquotation=\upperleftdoublesixquote] % Loading local preferences, for example % % \input prag-gen % company styles % \input prag-log % more company styles % % Enabling run time \METAPOST\ (also enable \write18 in % texmf.cnf): \runMPgraphicstrue \runMPTEXgraphicstrue % This saves some runtime, but needs a format, which you can % make with 'texexec --make --alone metafun'. Make sure that % the mem files are moved to the used web2c path (locate with % 'kpsewhich plain.mem'). \useMETAFUNformattrue % This can be a way to get things working on system with % name clashes. (Some \TeX's tend do search system wide.)
Re: [NTG-context] New bib module release (2006.07.13)
Hi Tobias, Your bugs are a bit bizarre. It is not as hot now as it was yesterday evening, so I can think better now. Tobias Burnus wrote: However, I still have some problems (see attached testcase): Testfile runs fine here: no empty braces except for 'url', which is correct. \cite[doi][Slater1954] % produces [ http://dx.doi.org//1498]; with superfluous space and DOI-URL not DOI. Expected: shows 10.1103/Phys not http://; ... This would have fixed it: \setupcite[doi][interaction=stop] But my next version makes this automatic by checking the value of the global interaction mode. (The superfluous space disappears when using \setupinteraction[state=start].) There is no superfluous space when I try it, so I cannot reproduce the problem. Are you sure your local system is loading the right files? I have another feature with for \cite[author*][...]: I'd like to limit the displayed name to the family name of the first author. Currently, I have: (Firstauthor and Lastauthor,1954) or (Firstauthor et al.,2005), however to save space I'd like to have only (Firstauthor,2005). I see andtext, otherstext, but miss the authoretallimit, which I would set to one. My next upload (momentarily) will support: \setupcite[author][authoretallimit=1, otherstext=] Just wait five minutes or so Does APA really uses several authors for authoryear? I do not think so (the bib module doesnt) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] tempdir support in texexec.rb
On 7/17/06, Matthias Wächter wrote: Hi, Naively, I thought that the --tempdir option would allow the 'temporary' files created/updated at a run of texexec be written to whatever is given as --tempdir=/dir/, but it doesn't work, the files remain in the current directory. Additionally, --output seems to disallow the output be put into another directory (it's always put into `pwd`). Is there a (better?) way to specify where these files should go? What I'd expect is a directory layout like the following: files/ onesource.tex env.tex othersource.tex project.tex out/ project.pdf tmp/ project.tmp project.log project.tui project.tuo mpgraph.mp project-mpgraph.mp as a result of $ cd files/ $ texexec --pdf --tempdir=tmp --output=out/project.pdf project Is /me the only one who desires such a split? I would vote for that feature too. With LaTeX you only get approximately two or three additional files which is still acceptable, but esp. when using modules such as R and (yet unfinished) gnuplot, the whole folder becomes pretty messy and you never know what to delete and what not. It's almost impossible to extend ctxtools to delete all the necessary files since even PDF files might serve as temporary files in static MP figures or as intermediate results of gnuplot runs, ... Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 2006.07.13 release notes (MP-related)
On 7/18/06, Renaud AUBIN wrote: Second, what's the difference between staticMPfigure and staticMPgraphic and how (and where) can we use it ? Some advice are welcome in this part because I use a lot of MPgraphic and I'm really interested to use staticMPXXX if I can save some processing time... ;) Take a look if Aditya's remarks on http://wiki.contextgarden.net/Mpgraphic can answer some of your questions. staticMP... seems to create an intermediate PDF which is reused in the next run (I had some troubles making some of the functionality work which otherwise worked in someotherkindofMPgraphic: I don't remember what exactly it was, perhaps StartPage. I kept using the old command since I had no time to investigate, but it wasn't any serious problem.) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] staticMPfigure fonts
Hi all, Considering the test http://renojrl.lrv.uvsq.fr/testbed/ I have some problems using lucida: texexec gives some warnings: kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+420/600 --dpi 420 texnansi-raw-lbr mktexpk: don't know how to create bitmap font for texnansi-raw-lbr. kpathsea: Appending font creation commands to missfont.log. and the resulting pdf leads to "Could not find a font in the Resources dictionary"... Moreover, I don't want to use pk... How to solve this problem to embed lucida into test-3d_kin_foreground.pdf ? Another point: I am affraid that test.pdf embed lucida twice once one can embed the font into the staticMPfigure's pdf... May I have to continue with my old MPgraphics or I'd rather replace them by staticMPfigure ? Cheers, Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] infinite paper height
Hello, Is there any way to create infinite paper size: such a paper that all the content fits exactly on a single page? ̣(As a workaroung I can still create a page of height 2m and then crop it if no other solution is available.) \setuplayout [width=8cm] \definepapersize [infinite] [width=12cm, height=100cm] \setuppapersize [infinite] [infinite] Thank you, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] formula block with align and pagebreak
Hello, I have often longer equations of the type \startformula\startalign A = b c B = c d E = g h \intertext{Some intermediate text} F = h j G = k l \stopformula\stopalign I would like to keep the alignment (per page), however I also would like to have automatic page breaks inbetween. I can split it manually into two \startformula\startalign ... \stopformula\stopalign blocks, but this I would have to adapt any time I change something, which changes the text length, before that block. Any idea? Additional question: Does anyone know why in the example the Gauss' law starts not at the top of the page but roughly two line further down? Tobias PS: I attached an example. test.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] strange font switching (bug?)
Hello, can anyone explain this weird behaviour? The accents on the second page are broken (setting bodyfont to 7pt at the beginning works OK and using other sizes works as well.). \setupbodyfont[8pt] \startsetups{img} \switchtobodyfont[7pt] \stopsetups \starttext \ccaron\scaron\zcaron \page \setups{img} \ccaron\scaron\zcaron \stoptext Thank you very much, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
I think that's not possible because of TeX. TeX limits any dimension to 2^30 scaled points (~5.75 m). But that's only the TeX part. I don't know if dvi drivers can combine several TeX pages in one printer page infinitely. Possibly any of the PostScript tools? Ricard ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
Hi Mojca, Mojca Miklavec [EMAIL PROTECTED] writes: Is there any way to create infinite paper size: such a paper that all the content fits exactly on a single page? ̣(As a workaroung I can still create a page of height 2m and then crop it if no other solution is available.) this is almost an faq :) Perhaps the mailinglist archive can help you. Look for the terms 'pervert' and 'idiot' on the archive (no joke!). Perhaps this helps you!? http://archive.contextgarden.net/search/[EMAIL PROTECTED],idiot.en.html Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] staticMPfigure fonts
Renaud AUBIN wrote: Hi all, Considering the test http://renojrl.lrv.uvsq.fr/testbed/ I have some problems using lucida: texexec gives some warnings: kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+420/600 --dpi 420 texnansi-raw-lbr mktexpk: don't know how to create bitmap font for texnansi-raw-lbr. kpathsea: Appending font creation commands to missfont.log. and the resulting pdf leads to Could not find a font in the Resources dictionary... Moreover, I don't want to use pk... How to solve this problem to embed lucida into test-3d_kin_foreground.pdf ? Another point: I am affraid that test.pdf embed lucida twice once one can embed the font into the staticMPfigure's pdf... May I have to continue with my old MPgraphics or I'd rather replace them by staticMPfigure ? the statics don't work well with text, i need to figure out why 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] infinite paper height
Taco Hoekwater wrote: Ricard Roca wrote: I think that's not possible because of TeX. TeX limits any dimension to 2^30 scaled points (~5.75 m). I just realized you can cheat just a little: \hsize=575cm \advance \hsize \hsize interesting indeed because normally tex checks for overflows when calculating \message{\the\hsize} % reports 32720.66928pt ~ 11.5m A nice one for Pavel's new 'TeX surprises' in eurobachotex next year. actually, one can put stuff in a vbox till tex's mem overflows, and even split off pieces, as long as one does not calculate using the dimensions of a box; tex's overflow check only happens when doing explicit calculations 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] infinite paper height
Hans Hagen wrote: \starttext \startTEXpage your 4 meter poem \stopTEXpage \stoptext doh! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
Thank you, Ricard and Taco, On 7/18/06, Taco Hoekwater wrote: Mojca Miklavec wrote: Hello, Is there any way to create infinite paper size: such a paper that all the content fits exactly on a single page? ̣(As a workaroung I can Automatically cropping it back to the right size, you mean ? No, but that would be a neat feature. :-) still create a page of height 2m and then crop it if no other solution is available.) The maximum paper height TeX can handle is approx 575cm, btw. 5m is inifinite enough for me (I hope). I only need to fit the whole article on a single page and I guess that no article will go over this limit. It would be nice if the paper size could be adjusted automatically (that's what I meant with infinite) to the length of the article, but if that would require too much effort, it would probably be easier if I crop the page after processing it with ConTeXt. Thanks, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
Mojca Miklavec wrote: Hello, Is there any way to create infinite paper size: such a paper that all the content fits exactly on a single page? ̣(As a workaroung I can Automatically cropping it back to the right size, you mean ? No, but that would be a neat feature. :-) still create a page of height 2m and then crop it if no other solution is available.) The maximum paper height TeX can handle is approx 575cm, btw. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
On 7/18/06, Hans Hagen wrote: Mojca Miklavec wrote: Hello, Is there any way to create infinite paper size: such a paper that all the content fits exactly on a single page? ̣(As a workaroung I can still create a page of height 2m and then crop it if no other solution is available.) \setuplayout [width=8cm] \definepapersize [infinite] [width=12cm, height=100cm] \setuppapersize [infinite] [infinite] \starttext \startTEXpage your 4 meter poem \stopTEXpage \stoptext Thank you, that's great! I knew about TEXpage, but never thought/forgot about such a misuse. Except for one little (buggy?) detail: \setuplayout [width=8.55cm, topspace=0cm, backspace=0cm, header=0pt, footer=0pt, height=fit, ] \definepapersize [infinite] [width=8.55cm, height=60cm] \starttext \startTEXpage \section{bla} \input tufte \stopTEXpage \stoptext section is too low and consequently the last (few) line(s) are cropped. The example on http://pub.mojca.org/presek/articles.tex also has the last page wider than the first two. Mojca PS: this last request has nothing to do with the problem above, but I have a little request if anyone is willing to help me. I need the file mentioned above (http://pub.mojca.org/presek/article2.tex) to be typeset in lucida (only to show it to the editor; they'll almost certainly buy the font, but I need the example faster than I can ask them to buy the font and figure out how to use it; they gave me 19 pfb files, but they're dating back to 1990 and it seems to me that there are not enough files anyway). Is anyone willing to compile the file above with lucida font and send me the resulting PDF? I would be very grateful for that. The last page has a little problem with accents and everything is shifted down, but I don't mind if they are a bit wrong this time since it's only an example. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
Mojca Miklavec wrote: 5m is inifinite enough for me (I hope). I only need to fit the whole article on a single page and I guess that no article will go over this limit. FWIW, Acrobat 6 and earlier had severe problems with document dimensions over 200cm, so keep that in mind for compatibility. It would be nice if the paper size could be adjusted automatically (that's what I meant with infinite) to the length of the article, but if that would require too much effort, it would probably be easier if I crop the page after processing it with ConTeXt. Yes. See Hans's reply with \startTEXpage . Very handy command, that. :) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
On 7/18/06, Adam Lindsay wrote: Mojca Miklavec wrote: 5m is inifinite enough for me (I hope). I only need to fit the whole article on a single page and I guess that no article will go over this limit. FWIW, Acrobat 6 and earlier had severe problems with document dimensions over 200cm, so keep that in mind for compatibility. That's not my problem any more. They asked me to prepare long continuous text with TeX (so that formulae and everything else will be OK) - they intend to use the resulting PDF to design a magazine in InDesign after that (I don't know how they're going to do that, but I assume that InDesign should be able to handle that - if not, I'll think about that after the problems arise). Yes. See Hans's reply with \startTEXpage . Very handy command, that. :) He replied faster than I noted ;) Yes, \startTEXpage it's *the* solution that I wanted, only the vertical shifting after \subject has to be fixed somehow. Thanks, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] strange font switching (bug?)
On 7/18/06, Renaud AUBIN wrote: Just a report: Same result here... Seems to be LM-related (it works fine with lucida for example)... Indeed. With Antykwa it works as well. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New bib module release (2006.07.13)
Hi Taco, Taco Hoekwater schrieb: Your bugs are a bit bizarre. Fully granted. And (at least with today's t-bib) I cannot reproduce them anymore ... My next upload (momentarily) will support: \setupcite[author][authoretallimit=1, otherstext=] Thanks! It now works as wanted :-) Tobias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] align question
On Mon, 17 Jul 2006, Hans Hagen wrote: Bruce H. Wagner wrote: Incidentally, the reason I am using the LaTeX syntax is that we are translating LaTeX code into Context automatically using a perl script, and it's therefore much easier to stick to whatever LaTeX code works. Basically, I just want something comparable to the array environment in LaTeX, which works very nicely. Aditya is in more or less charge of the specification/tryout part of the math extensions and taco/myself implement things based on that input, so i suggest that the two of you come up with specs Context supports everything that latex array provides, with a slightly different syntax. Some extract from the update on myway on alignment (I am still working on it) % \def\ShowExample % {\hairline %\typebuffer %\hairline %\getbuffer} \CONTEXT\ provides \tex{startmatrix} for generic alignment mechanism. \startbuffer \startformula \startmatrix \NC A \NC B \NC C \NR \NC a \NC b \NC c \NR \NC 1 \NC 2 \NC 3 \NR \stopmatrix \stopformula \stopbuffer \ShowExample It can take a \typeleft= and \typeright= option which can be used to typeset matrices \startbuffer \startformula I = \startmatrix[left={\left(\,},right={\,\right)}] \NC 1 \NC 0 \NC 0 \NR \NC 0 \NC 1 \NC 0 \NR \NC 0 \NC 0 \NC 1 \NR \stopmatrix \stopformula \stopbuffer \ShowExample It is possible to \tex{definemathmatrix} to use the construct repeatedly. \startbuffer % Paranthesis \definemathmatrix [pmatrix] [left={\left(\,},right={\,\right)}] % Brackets \definemathmatrix [bmatrix] [left={\left[\,},right={\,\right]}] % Curly braces \definemathmatrix [Bmatrix] [left={\left\{\,},right={\,\right\}}] % vertical bars \definemathmatrix [vmatrix] [left={\left\vert\,},right={\,\right\vert}] % double vertical bars \definemathmatrix [Vmatrix] [left={\left\Vert\,},right={\,\right\Vert}] \startformula I = \startpmatrix \NC 1 \NC 0 \NC 0 \NR \NC 0 \NC 1 \NC 0 \NR \NC 0 \NC 0 \NC 1 \NR \stoppmatrix = \startbmatrix \NC 1 \NC 0 \NC 0 \NR \NC 0 \NC 1 \NC 0 \NR \NC 0 \NC 0 \NC 1 \NR \stopbmatrix = \startBmatrix \NC 1 \NC 0 \NC 0 \NR \NC 0 \NC 1 \NC 0 \NR \NC 0 \NC 0 \NC 1 \NR \stopBmatrix \stopformula \startformula \startvmatrix \NC a \NC b \NR \NC c \NC d \NR \stopvmatrix \quad \startVmatrix \NC a \NC b \NR \NC c \NC d \NR \stopVmatrix \stopformula \stopbuffer \ShowExample It is possible to change the alignment of columns using \type{align=} option. \startbuffer \startformula \text{Let } A = \startpmatrix[align={left,right}] \NC 1 \NC 2 \NR \NC 3 \NC -5 \NR \stoppmatrix \stopformula \stopbuffer \ShowExample ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] prevent hyphenation (flush left)
On 7/17/06, Hans Hagen wrote: Mojca Miklavec wrote: Hello, I urgently need to have my \framed texts left-justified (no hyphenation and nothing may go over the right border) I know that it must be trivial, but I assume that explicit \exhyphenpenalty=1 \hyphenpenalty=1 are replaced inside \framed anyway. align={flushleft,nothyphenated,verytolerant} I tested a bit and \framed seems to work OK, but I have no idea how to prevent the name to extend outside of the frame in the next example: \setuppapersize [S6][S6] %\definetypeface [iwona] [ss] [sans] [iwona] [default] [encoding=ec] %\setupbodyfont [iwona,12pt,ss] \setupbackgrounds [page] [background=page] \definelayer [page] [width=\paperwidth, height=\paperheight] \def\contestant#1#2#3{\page \setlayerframed [page] [voffset=3cm, hoffset=3cm, preset=lefttop] [height=6cm, width=9cm, align={flushleft,lohi,nothyphenated,verytolerant}, frame=on, ]{{\switchtobodyfont[35pt]\bf #1 #2\crlf}\crlf\switchtobodyfont[30pt]#3}\strut} \starttext \contestant{Someone}{Withavery long Surname}{Country} \stoptext ̣(All those people Withextremelylongnames are already leaving today, so one problem less now: I had to improvise a bit to get the names approximately OK on the slides, but I still wonder how to handle the problem in the future if it arises again.) Would it be possible to add those definitions somewhere to cont-en.xml? Thank you, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] prevent hyphenation (flush left)
On 18 juil. 2006, at 17:27, Mojca Miklavec wrote: \setuppapersize [S6][S6] %\definetypeface [iwona] [ss] [sans] [iwona] [default] [encoding=ec] %\setupbodyfont [iwona,12pt,ss] \setupbackgrounds [page] [background=page] \definelayer [page] [width=\paperwidth, height=\paperheight] \def\contestant#1#2#3{\page \setlayerframed [page] [voffset=3cm, hoffset=3cm, preset=lefttop] [height=6cm, width=9cm, align={flushleft,lohi,nothyphenated,verytolerant}, frame=on, ]{{\switchtobodyfont[35pt]\bf #1 #2\crlf}\crlf\switchtobodyfont[30pt]#3}\strut} \starttext \contestant{Someone}{Withavery long Surname}{Country} \stoptext Does adding the keyword stretch in align={...} give what you want: \def\contestant#1#2#3{\page \setlayerframed [page] [voffset=3cm, hoffset=3cm, preset=lefttop] [height=6cm, width=9cm, align={flushleft,lohi,nothyphenated,stretch,verytolerant}, frame=on, ]{{\switchtobodyfont[35pt]\bf #1 #2\crlf}\crlf\switchtobodyfont[30pt]#3}\strut} Best regards: OK ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] staticMPfigure fonts
On Tue, 18 Jul 2006, Hans Hagen wrote: Renaud AUBIN wrote: Hi all, Considering the test http://renojrl.lrv.uvsq.fr/testbed/ I have some problems using lucida: texexec gives some warnings: kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+420/600 --dpi 420 texnansi-raw-lbr mktexpk: don't know how to create bitmap font for texnansi-raw-lbr. kpathsea: Appending font creation commands to missfont.log. and the resulting pdf leads to Could not find a font in the Resources dictionary... Moreover, I don't want to use pk... How to solve this problem to embed lucida into test-3d_kin_foreground.pdf ? Another point: I am affraid that test.pdf embed lucida twice once one can embed the font into the staticMPfigure's pdf... May I have to continue with my old MPgraphics or I'd rather replace them by staticMPfigure ? the statics don't work well with text, i need to figure out why Something very strange is happening here. Looks like a typescript loading problem. I can not test with lucida (do not have them) but the same problem appears with palatino also. This does not work \startMPenvironment \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \stopMPenvironment \starttext \startMPpage label.top(btex $a$ first etex,origin) ; \stopMPpage \stoptext While this works. \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \startMPenvironment \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \stopMPenvironment \starttext \startMPpage label.top(btex $a$ first etex,origin) ; \stopMPpage \stoptext The same thing happens in \starttext \setupoutput[pdftex] \setupcolors[state=start] \startTEXpage \convertMPtoPDF{t1-mpgraph.1}{1}{1} \stopTEXpage \stoptext where t1-mpgraph.1 is the eps file created by the first file. %!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: -13 3 13 11 %%HiResBoundingBox: -12.17421 3 12.1742 10.4221 %%Creator: MetaPost 0.901 %%CreationDate: 2006.07.18:1134 %%Pages: 1 %%DocumentFonts: rpxpplri pplr8r %%BeginProlog /rpxpplri /rpxpplri def /pplr8r /pplr8r def /fshow {exch findfont exch scalefont setfont show}bind def %%EndProlog %%Page: 1 1 %%HiResBoundingBox: -12.17421 3 12.1742 10.4221 -12.17421 3.2142 moveto (a) rpxpplri 9.96265 fshow -5.26021 3.2142 moveto (\002rst) pplr8r 9.96265 fshow showpage %%EOF This explains why --mpgraphic switch does not work as expected, and thus staticMPfigure does not work. I do not know how to make this work. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] formula block with align and pagebreak
On Tue, 18 Jul 2006, Tobias Burnus wrote: Hello, I have often longer equations of the type \startformula\startalign A = b c B = c d E = g h \intertext{Some intermediate text} F = h j G = k l \stopformula\stopalign I would like to keep the alignment (per page), however I also would like to have automatic page breaks inbetween. I can split it manually into two \startformula\startalign ... \stopformula\stopalign blocks, but this I would have to adapt any time I change something, which changes the text length, before that block. Any idea? Additional question: Does anyone know why in the example the Gauss' law starts not at the top of the page but roughly two line further down? Tobias Page break with math is a bit tricky at the moment. Before I come to that, some comments. Hans, right now zapf.tex reads \definetypeface [zapf] [cg] [calligraphy] [chancery] \switchtotypeface [zapf] [12pt,cg] Zapf Chancery \input tufte.tex Shouldn't that be surrounded by a start/stop (or bgroup/egroup) to prevent font changes in the entire document? Tobias, startintertext/stopintertext are already in the core, so you do not need to redefine those in your document. Now coming back to the main problem of equations not breaking across pages. Taco had provided a fix for making this work. There are a few issues with math equations breaking across pages, and this is the reason that the fix is not in the core. I am attaching Taco's fix, keep in mind that this is not final. Aditya\unprotect \def\dostartmathcases[#1][#2]% {\begingroup \edef\currentmathcases{#1}% \doifassignmentelse{#2}{\setupmathcases[#1][#2]}\donothing \mathcasesparameter\c!left \vcenter\bgroup \pushmacro\docasesNC \let\endmath\relax \def\NC{\docasesNC}% \def\MC{\docasesNC\ifmmode\else$\def\endmath{$}\fi}% \global\let\docasesNC\dodocasesNC \def\NR{\unskip\endmath\global\let\docasesNC\dodocasesNC\doxxdoubleempty\docasesNR}% \normalbaselines \mathsurround\zeropoint \everycr\emptytoks \tabskip\zeropoint \global\eqaligncolumn\plusone \halign\bgroup $\mathcasesparameter\c!style##$\hfil \hskip\mathcasesparameter\c!distance\relax \popmacro\docasesNC##\hfil \hskip\mathcasesparameter\c!numberdistance\relax \let\formuladistance\!!zeropoint \span\textineqalign{##}% \crcr} % todo: number \def\preparemathmatrix {\!!toksa{\strut \firstineqalign\leftofeqalign \span \textineqalign{\mathmatrixparameter\c!style ##}\rightofeqalign}% \!!toksb{\hskip\mathmatrixparameter\c!distance \nextineqalign\leftofeqalign \span \textineqalign{\mathmatrixparameter\c!style ##}\rightofeqalign}% \!!toksc{\hskip\mathmatrixparameter\c!distance \leftofeqalign \span \textineqalign{\mathmatrixparameter\c!style ##}\rightofeqalign}% \buildmathmatrix \halign [EMAIL PROTECTED] \bgroup\the\scratchtoks \crcr} \def\dostartmathmatrix[#1][#2]% {\begingroup \edef\currentmathmatrix{#1}% \doifassignmentelse{#2}{\setupmathmatrix[#1][#2]}\donothing \null \mathmatrixparameter\c!left \processaction [\mathmatrixparameter\c!location] [\s!default=\let\vchbox\vcenter, \s!unknown=\let\vchbox\vcenter, \v!top=\let\vchbox\vtop, \v!bottom=\let\vchbox\vbox]% \vchbox\bgroup \pushmacro\domatrixNC \let\endmath\relax \def\NC{\domatrixNC}% \def\MC{\domatrixNC\ifmmode\else$\def\endmath{$}\fi}% \global\let\domatrixNC\dodomatrixNC \def\NR{\endmath\global\let\domatrixNC\dodomatrixNC\crcr}% \normalbaselines \mathsurround\zeropoint \everycr\emptytoks \tabskip\zeropoint \eqaligncolumn\zerocount % could be \scratchcounter \processcommacommand[\mathmatrixparameter\c!align]{\advance\eqaligncolumn\plusone\dosetmatrixcolumn}% \scratchcounter=\ifnum\eqaligncolumn\scratchcounter \eqaligncolumn \else \plusone \fi \global\eqaligncolumn\plusone \preparemathmatrix } % uses scratchcounter \def\dobothaligneqalignno#1% {\ifmmode [EMAIL PROTECTED] \global\chardef\mathnumberstatus\plusone \ifcase\mathraggedstatus \def\finishalignno{\crcr\egroup}% \else % we're in a mathbox \vcenter\bgroup \def\finishalignno{\crcr\egroup\egroup}% \fi \fi #1% \halign \ifcase\eqalignmode \or to \displaywidth \fi [EMAIL PROTECTED] \bgroup\the\scratchtoks\crcr} \protect ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] switching font encodings
On 7/17/06, Hans Hagen wrote: Mojca Miklavec wrote: Hello, I have to print plenty of utf-8-encoded entries from a database. I will probably output entries as \contestant{name}{country}{code}, for example \contestant{Đức Đặng}{VNM}{1} I have defined \def\contestant#1#2#3{...#1...} But what's the easiest way to change the encoding to t5 if the country code is VNM and to some other encoding if country code is RUS, SER (or one of other countries using Cyrillic)? I'll probably use you can try to define multiple typefaces, say mainfont-ec, mainfont-qx, mainfont-t5 and then switch to them using languagespecifics related definitions The Vietnamese left, I can sleep well again ;) I swear that they will pay for each single letter that caused us headaches this year: they'll have to organize the same event by themselves next year. (But then again: next year both pdfTeX and XeTeX will hopefully work in a much less painful way.) But I still can't understand why the following code costed me at least an hour to trace and find a workaround for it: \definetypeface [iwona-t5] [ss] [sans] [iwona] [default] [encoding=t5] \definetypeface [iwona] [ss] [sans] [iwona] [default] [encoding=ec] \setupbodyfont [iwona,12pt,ss] \starttext abc \switchtobodyfont[20pt]\switchtobodyfont[iwona-t5] abc \stoptext Here's the output: ... (c:\Programi\context\texmf-local/tex/context/base/type-buy.tex) (c:\Programi\context\texmf-local/tex/context/base/pdfr-ec.tex) (./file.tuo) (./file.tuo) (./file.tuo) (./file.tuo) (./file.tuo) (./file.tuo) (./file.tuo) (./file.tuo) (./file.tuo) (./file.tuo) (c:\Programi\context\texmf-local/tex/context/base/sort-def.tex) (c:\Programi\context\texmf-local/tex/context/base/sort-lan.tex) (./file.tuo) (./file.tuo) systems : begin file file at line 28 ! pdfTeX error (font): invalid font identifier. \@@expanded -\pdffontattr \font {/ToUnicode 1 0 R} argument ...fontresource \endcsname \space 0 R}} \letgvalue {\s!ucmap \font... \firstofoneargument #1-#1 \doincludepdffontresource ...cludepdffontresource \fi \includepdffontresource ...includepdffontresource \fi \fi \fi \setfontcharacteristics ...ifier }\the \everyfont \synchronizepatterns ... l.31 ...obodyfont[20pt]\switchtobodyfont[iwona-t5] abc No pages of output. Transcript written on file.log. TeXExec | runtime: 2.183 The funny part is that it compiles fine on contextgarden (and most probably compiled OK on my computer as well some time ago: the error just appeared at once). Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Losing Chapter Number
Hans et al, Why do we lose the chapter number in headers (and other places) with this: \setupwhitespace[medium] \setupindenting[medium,yes] \def\headermarkleft{\bold{\pagenumber}\headerskip{\sc\headerskip Chapter \headnumber[chapter]\headerskip\getmarking[chapter][current]}} \def\headermarkright{{\sc{}Section \headnumber[section]\headerskip \getmarking[section][current]}\headerskip\bold{\pagenumber}} \def\headerskip{\hskip 1em} \setuppapersize[letter][letter] \setuplayout [backspace=120pt, cutspace=80pt, topspace=50pt, bottomspace=50pt, leftmargin=65pt, rightmargin=50pt, width=middle, header=40pt, footer=40pt, height=middle] \setupheadertexts [] [\headermarkright] [\headermarkleft] [] \setuppagenumbering [state=start, alternative=doublesided, location=, way=bytext] \setupheadnumber[chapter][-1] \starttext \chapter[chap:0]{Preliminaries} \input tufte \section{One} \dorecurse{3}{\input tufte\par} \section{Two} \dorecurse{3}{\input tufte\par} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, Charts, and transparency
On Sat, 15 Jul 2006, Adam Lindsay wrote: Hans Hagen wrote: Idris Samawi Hamid wrote: Yes, but that seems mainly geared towards flow charts, not graphical charts. Can m-chart do things like the example png attached at the start of the thread? i lost that one; actually, willy egger is the most experienced chart user but he's on vacation It was more like a bar graph (with two sets of y-values), nothing to do with m-charts. I thought about mp-graph stuff, but I don't see how it can be (trivially) made to do that visual style. Have a look at http://www-math.univ-poitiers.fr/~phan/statsmac.html to see if can modify them to get the visual effect that you want. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 2006.07.13 release notes (MP-related)
On Tue, 18 Jul 2006, Mojca Miklavec wrote: On 7/18/06, Renaud AUBIN wrote: Second, what's the difference between staticMPfigure and staticMPgraphic and how (and where) can we use it ? Some advice are welcome in this part because I use a lot of MPgraphic and I'm really interested to use staticMPXXX if I can save some processing time... ;) Take a look if Aditya's remarks on http://wiki.contextgarden.net/Mpgraphic can answer some of your questions. staticMP... seems to create an intermediate PDF which is reused in the next run (I had some troubles making some of the functionality work which otherwise worked in someotherkindofMPgraphic: I don't remember what exactly it was, perhaps StartPage. I kept using the old command since I had no time to investigate, but it wasn't any serious problem.) While debugging, it helps to know what is happening in the background. Everything between \startstaticMPfigure{name}...\stopstaticMPfigure is written to \jobname-name.mp. A pdf file is generated using texexec --mpgraphic which creates a temp file in the background with \starttext \setupoutput[pdftex] \setupcolors[state=start] \startTEXpage \convertMPtoPDF{mpfilename}{1}{1} \stopTEXpage \stoptext This file is compiled using texexec and the output is renamed to \jobname-name.pdf The second part (that is creating a pdf) happens only if the mp file did not change, which is checked by comparing the md5 sums. The md5 comparison can fail rarely. If you want to force a new pdf to be created, rm the md5 file. There is nothing inherently different in the processing of staticMPfigure. So anything that works with someotherMP should also work in staticMP. Hope this helps, Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] small new feature on the wiki
On Wed, 12 Jul 2006, Patrick Gundlach wrote: Hi there, since there might be some users here who edit pages on the wiki and who don't read the 'recent changes' page: you can now say context source=yes text=produces \your \TeX \code=here /context this will typeset the source with the texcode/texcode highlighter/formatter, then output the (optional) text 'produces', and finally renders the already known graphical representation of the source. This way you only have to enter the code once (less errors). Special thanks to Jano Kula for this. Patrick, This is great for creating new code as well as editing existing one. However, is it possible to change the width of the image that is created. I fine the default A4 paper width to be too large and ususally add a \setuplayout[width=13cm] in the context code. Is it possible to do this with the new feature? Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, Charts, and transparency
On Tue, 18 Jul 2006 11:30:31 -0600, Aditya Mahajan [EMAIL PROTECTED] wrote: Have a look at http://www-math.univ-poitiers.fr/~phan/statsmac.html to see if can modify them to get the visual effect that you want. Will do: Hans, Aditya, can this be ported to MetaFun or its own m-stats module? Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] switching font encodings
Mojca Miklavec wrote: \starttext abc \switchtobodyfont[20pt]\switchtobodyfont[iwona-t5] abc \stoptext There is no defined bodyfont at 20pt, and that is what is causing the error (indirectly). Add this: \definebodyfont [20pt] [ss] [tf=Sanssa 1, bf=SansBoldsa 1, it=SansItalic sa 1, sl=SansSlanted sa 1, bs=SansBoldSlanted sa 1, bi=SansBoldSlanted sa 1, sc=SansCapssa .8, tfa=Sanssa 1.200, tfb=Sanssa 1.440, tfc=Sanssa 1.728, tfd=Sanssa 2.074, bfa=SansBoldsa 1.200, bfb=SansBoldsa 1.440, bfc=SansBoldsa 1.728, bfd=SansBoldsa 2.074, bsa=SansBoldSlanted sa 1.200, bsb=SansBoldSlanted sa 1.440, bsc=SansBoldSlanted sa 1.728, bsd=SansBoldSlanted sa 2.074] Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] prevent hyphenation (flush left)
On 7/18/06, Otared Kavian wrote: On 18 juil. 2006, at 17:27, Mojca Miklavec wrote: I urgently need to have my \framed texts left-justified (no hyphenation and nothing may go over the right border) \setuppapersize [S6][S6] %\definetypeface [iwona] [ss] [sans] [iwona] [default] [encoding=ec] %\setupbodyfont [iwona,12pt,ss] \setupbackgrounds [page] [background=page] \definelayer [page] [width=\paperwidth, height=\paperheight] \def\contestant#1#2#3{\page \setlayerframed [page] [voffset=3cm, hoffset=3cm, preset=lefttop] [height=6cm, width=9cm, align={flushleft,lohi,nothyphenated,verytolerant}, frame=on, ]{{\switchtobodyfont[35pt]\bf #1 #2\crlf}\crlf\switchtobodyfont[30pt]#3}\strut} \starttext \contestant{Someone}{Withavery long Surname}{Country} \stoptext Does adding the keyword stretch in align={...} give what you want: No, not always (though it seems to be better than without it). The original string was align={flushleft,lohi,stretch,verytolerant,nothyphenated} which surely didn't work, but I have to do some more testing. Does the order of parameters make any difference? Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Losing Chapter Number
David Arnold wrote: Hans et al, Why do we lose the chapter number in headers (and other places) with this: Because of this: \setupheadnumber[chapter][-1] \headnumber contains an explicit test that surpresses the output if the number is zero. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, Charts, and transparency
On Tue, 18 Jul 2006, Idris Samawi Hamid wrote: On Tue, 18 Jul 2006 11:30:31 -0600, Aditya Mahajan [EMAIL PROTECTED] wrote: Have a look at http://www-math.univ-poitiers.fr/~phan/statsmac.html to see if can modify them to get the visual effect that you want. Will do: Hans, Aditya, can this be ported to MetaFun or its own m-stats module? I do not use this too much. I had once tried porting metaobj to context, but found that it is easier to use raw metaobj. However, if you can come up with what you want a module to do, it is relatively straightforward to add context sugar around it. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] texshow-web
Hi there, I've updated texshow-web. It's a complete rewrite. This is now database driven and I have tried hard to preserve all comments and examples from the old texshow-web. Please report any errors (preferrable include me in cc: if you post them on the list). Please fill in descriptions for the commands! Other contexters will find this useful. You can now use most of the mediawiki wiki markup for editing the descriptions. See the help page for more information. Patrick (I almost forgot the url: http://texshow.contextgarden.net) -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] switching font encodings
On 7/18/06, Taco Hoekwater wrote: Mojca Miklavec wrote: \starttext abc \switchtobodyfont[20pt]\switchtobodyfont[iwona-t5] abc \stoptext There is no defined bodyfont at 20pt, and that is what is causing the error (indirectly). Add this: \definebodyfont [20pt] [ss] [tf=Sanssa 1, bf=SansBoldsa 1, it=SansItalic sa 1, sl=SansSlanted sa 1, bs=SansBoldSlanted sa 1, bi=SansBoldSlanted sa 1, sc=SansCapssa .8, tfa=Sanssa 1.200, tfb=Sanssa 1.440, tfc=Sanssa 1.728, tfd=Sanssa 2.074, bfa=SansBoldsa 1.200, bfb=SansBoldsa 1.440, bfc=SansBoldsa 1.728, bfd=SansBoldsa 2.074, bsa=SansBoldSlanted sa 1.200, bsb=SansBoldSlanted sa 1.440, bsc=SansBoldSlanted sa 1.728, bsd=SansBoldSlanted sa 2.074] But why do I have to do it? I would only like that \switchtobodyfont[20pt] scales the font properly (according to whatever definitions are default). I can't define that for all the possible sizes of the font that I want to use in the document. \switchtobodyfont[iwona-t5,20pt] works OK, but one command after another doesn't. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, Charts, and transparency
On Tue, 18 Jul 2006, Aditya Mahajan wrote: On Sat, 15 Jul 2006, Adam Lindsay wrote: Hans Hagen wrote: Idris Samawi Hamid wrote: Yes, but that seems mainly geared towards flow charts, not graphical charts. Can m-chart do things like the example png attached at the start of the thread? i lost that one; actually, willy egger is the most experienced chart user but he's on vacation It was more like a bar graph (with two sets of y-values), nothing to do with m-charts. I thought about mp-graph stuff, but I don't see how it can be (trivially) made to do that visual style. Have a look at http://www-math.univ-poitiers.fr/~phan/statsmac.html to see if can modify them to get the visual effect that you want. There is also the ultimate reference http://zoonek.free.fr/LaTeX/Metapost/metapost.html Check out example from 285 onwards. Also, gnuplot can draw bargraphs easily. Mojca's gnuplot module is functional, so you can also give that a try. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texshow-web
On Tue, 18 Jul 2006, Patrick Gundlach wrote: Hi there, I've updated texshow-web. It's a complete rewrite. This is now database driven and I have tried hard to preserve all comments and examples from the old texshow-web. Please report any errors (preferrable include me in cc: if you post them on the list). Please fill in descriptions for the commands! Other contexters will find this useful. You can now use most of the mediawiki wiki markup for editing the descriptions. See the help page for more information. The help page does not work. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] small new feature on the wiki
Hello Aditya, [...] context source=yes text=produces \your \TeX \code=here /context This is great for creating new code as well as editing existing one. However, is it possible to change the width of the image that is created. I fine the default A4 paper width to be too large and ususally add a \setuplayout[width=13cm] in the context code. Is it possible to do this with the new feature? If we agree on a common page size, I could easily put it in there. If we don't agree on one, I could perhaps say context source=... width=13cm. This would take a few more minutes to implement (I still have to implement that the source and the results are next to each other (left/right).) Patrick (the texshow-web help page is now available) -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] small new feature on the wiki
On 7/18/06, Patrick Gundlach wrote: Hello Aditya, [...] context source=yes text=produces \your \TeX \code=here /context This is great for creating new code as well as editing existing one. However, is it possible to change the width of the image that is created. I fine the default A4 paper width to be too large and ususally add a \setuplayout[width=13cm] in the context code. Is it possible to do this with the new feature? If we agree on a common page size, I could easily put it in there. If we don't agree on one, I could perhaps say context source=... width=13cm. This would take a few more minutes to implement (I still have to implement that the source and the results are next to each other (left/right).) I also suggest scaling down to approximately 0.7 (70%). It's difficult to tell the exact size, but it's nice if the example fits on 800(?) pixel wide screen. I have a bad feeling for what the width should be since I feel claustrophobic on anything below 1200 pixels anyway. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] small new feature on the wiki
Mojca Miklavec wrote: If we agree on a common page size, I could easily put it in there. If we don't agree on one, I could perhaps say context source=... width=13cm. This would take a few more minutes to implement (I still have to implement that the source and the results are next to each other (left/right).) I also suggest scaling down to approximately 0.7 (70%). It's difficult to tell the exact size, but it's nice if the example fits on 800(?) pixel wide screen. I have a bad feeling for what the width should be since I feel claustrophobic on anything below 1200 pixels anyway. Mm, I'd have misgivings about scaling down any more: a lot of detail gets hard to see with the renders, especially with the default LM. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
2006/7/18, Taco Hoekwater [EMAIL PROTECTED]: DVI maybe, but my Acrobat Reader 7 silently drops the bottom off pages that are higher than 200in (508cm). This is an implementation limit of AR7: 200inx200in. This can be overcome by using UserUnit in PDF 1.6: Then you can have up to 15.000.000inx15.000.000in . Best Martin ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] OT: formulae in InDesign (was: infinite paper height)
Am 2006-07-18 um 15:56 schrieb Mojca Miklavec: That's not my problem any more. They asked me to prepare long continuous text with TeX (so that formulae and everything else will be OK) - they intend to use the resulting PDF to design a magazine in InDesign after that (I don't know how they're going to do that, but I assume that InDesign should be able to handle that - if not, I'll think about that after the problems arise). I recently had to typeset a book about steam engineering with some formulae. I would've done it with TeX, but the customer wanted InDesign data to be able to make corrections himself (and I wasn't evil enough to place TeX generated PDF pages in an ID document). I can tell you, typesetting formulae in InDesign are not funny! Maybe they use some Plugin. Greetlings from Lake Constance! 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] 2006.07.13 release notes (MP-related)
Mojca Miklavec wrote: On 7/18/06, Aditya Mahajan wrote: There is nothing inherently different in the processing of staticMPfigure. So anything that works with someotherMP should also work in staticMP. Well, uniqueMPgraphic is slightly different for example. It suspect that staticMP can't handle stuff such as \overlaywidth or PageWidth by design. indeed, because processing is done in a separate run, not everything works the same; i'll try to sort out the map file problem (tricky but doable) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] align question
Aditya, Thanks for the information. Since you indicated that \startalign worked correctly on your system, I decided that I should first check to see if I had the latest Context. After updating, the problems that I was having disappeared. So you'll be glad to know that \startalign does indeed appear to work as it should. Sorry about the false alarm. I'll try out the \startmatrix options as well to see if those will fit my needs better for some constructions. Thanks for the detailed syntax. ---Bruce At 8:12 AM -0700 7/18/06, Aditya Mahajan wrote: On Mon, 17 Jul 2006, Hans Hagen wrote: Bruce H. Wagner wrote: Incidentally, the reason I am using the LaTeX syntax is that we are translating LaTeX code into Context automatically using a perl script, and it's therefore much easier to stick to whatever LaTeX code works. Basically, I just want something comparable to the array environment in LaTeX, which works very nicely. Aditya is in more or less charge of the specification/tryout part of the math extensions and taco/myself implement things based on that input, so i suggest that the two of you come up with specs Context supports everything that latex array provides, with a slightly different syntax. Some extract from the update on myway on alignment (I am still working on it) % \def\ShowExample % {\hairline %\typebuffer %\hairline %\getbuffer} \CONTEXT\ provides \tex{startmatrix} for generic alignment mechanism. \startbuffer \startformula \startmatrix \NC A \NC B \NC C \NR \NC a \NC b \NC c \NR \NC 1 \NC 2 \NC 3 \NR \stopmatrix \stopformula \stopbuffer \ShowExample It can take a \typeleft= and \typeright= option which can be used to typeset matrices \startbuffer \startformula I = \startmatrix[left={\left(\,},right={\,\right)}] \NC 1 \NC 0 \NC 0 \NR \NC 0 \NC 1 \NC 0 \NR \NC 0 \NC 0 \NC 1 \NR \stopmatrix \stopformula \stopbuffer \ShowExample It is possible to \tex{definemathmatrix} to use the construct repeatedly. \startbuffer % Paranthesis \definemathmatrix [pmatrix] [left={\left(\,},right={\,\right)}] % Brackets \definemathmatrix [bmatrix] [left={\left[\,},right={\,\right]}] % Curly braces \definemathmatrix [Bmatrix] [left={\left\{\,},right={\,\right\}}] % vertical bars \definemathmatrix [vmatrix] [left={\left\vert\,},right={\,\right\vert}] % double vertical bars \definemathmatrix [Vmatrix] [left={\left\Vert\,},right={\,\right\Vert}] \startformula I = \startpmatrix \NC 1 \NC 0 \NC 0 \NR \NC 0 \NC 1 \NC 0 \NR \NC 0 \NC 0 \NC 1 \NR \stoppmatrix = \startbmatrix \NC 1 \NC 0 \NC 0 \NR \NC 0 \NC 1 \NC 0 \NR \NC 0 \NC 0 \NC 1 \NR \stopbmatrix = \startBmatrix \NC 1 \NC 0 \NC 0 \NR \NC 0 \NC 1 \NC 0 \NR \NC 0 \NC 0 \NC 1 \NR \stopBmatrix \stopformula \startformula \startvmatrix \NC a \NC b \NR \NC c \NC d \NR \stopvmatrix \quad \startVmatrix \NC a \NC b \NR \NC c \NC d \NR \stopVmatrix \stopformula \stopbuffer \ShowExample It is possible to change the alignment of columns using \type{align=} option. \startbuffer \startformula \text{Let } A = \startpmatrix[align={left,right}] \NC 1 \NC 2 \NR \NC 3 \NC -5 \NR \stoppmatrix \stopformula \stopbuffer \ShowExample -- __ Bruce H. Wagner e-mail: [EMAIL PROTECTED] Department of Mathematics phone: 707-476-4207 College of the Redwoods fax: 707-476-4424 7351 Tompkins Hill Road WWW: http://online.redwoods.edu/instruct/bwagner Eureka, CA 95501 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] OT: formulae in InDesign (was: infinite paper height)
On 7/18/06, Henning Hraban Ramm wrote: Am 2006-07-18 um 15:56 schrieb Mojca Miklavec: That's not my problem any more. They asked me to prepare long continuous text with TeX (so that formulae and everything else will be OK) - they intend to use the resulting PDF to design a magazine in InDesign after that (I don't know how they're going to do that, but I assume that InDesign should be able to handle that - if not, I'll think about that after the problems arise). I recently had to typeset a book about steam engineering with some formulae. I would've done it with TeX, but the customer wanted InDesign data to be able to make corrections himself (and I wasn't evil enough to place TeX generated PDF pages in an ID document). I can tell you, typesetting formulae in InDesign are not funny! 1. not funny 2. extremely ugly I would do everything in ConTeXt, but I'm not a designer and I don't dare to take over the whole design. besides that magazines need sligtly more individuality for each page than books. The most easy solution would be if there was some TeX plugin in InDesign. The designers (students) only know how to work in ID and they suggested that they could do the desing in ID if I provided long columns of text (typeset in TeX) as PDF document. I never worked with ID (so I don't know how exactly it works), but apparently they're going to take the PDF document and order the text more or less graphically on pages. They don't need to modify text any more once they get the PDF (they don't understand the content anyway ;). Taco also mentioned some alternatives to ID, but I forgot which ones. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] linear_shade not working any more
Hello, It seems to me that the following code worked in some beta 2 weeks ago: \setupcolors [state=start] \definecolor [BgColor1] [white] \definecolor [BgColor2] [r=0.7,g=0.7,b=1] \starttext \startMPcode path p; p := unitsquare scaled 3cm; linear_shade(p,0,\MPcolor{BgColor2},\MPcolor{BgColor1}); \stopMPcode \stoptext But with 2006.07.14 I get: This is MetaPost, Version 0.901 (Web2c 7.5.3) (shading-mpgraph.mp (1,0,0) ! Isolated expression. to be read again ; scaledgray-begingroup.red; endgroup l.286 ...(scaledrgb(0.7,0.7,1,1)),(scaledgray(1,1) )); ? Any suggestions about what could go wrong? Thank you, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] control the number of items in the startitemize environment
Dear Sirs. I have a large buffer that include several items packed in a initial startitemize environment. Using this list, I want build a several small lists with five inital items in the random order. I try to do in this way, but without success :-(( % \startsetups SmallList:make \getbuffer[LargeList] \stopsetups \starttext \startbuffer[LargeList] \startitemize[1,random,packed][items=5] %%% -- this d'ont work. Why? \startitem item 1 \stopitem \startitem item 2 \stopitem \startitem item 3 \stopitem \startitem item 4 \stopitem \startitem item 5 \stopitem \startitem item 6 \stopitem \startitem item 7 \stopitem \startitem item 9 \stopitem \startitem item 9 \stopitem \startitem item 10 \stopitem \stopitemize \stopbuffer %\setuprandomize[1234] \dorecurse{3} {\setups[SmallList:make]} \stoptext % Thanks a lot Jorge ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] A page for figures ?
Ok, I find it... Sorry for this dumb post The solution is given in texshow: \placefigure [none] {} {\startcombination {\externalfigure[cow][width=4cm]} {\placefloatcaption[figure]{one}} {\externalfigure[cow][width=4cm]} {\placefloatcaption[figure]{two}} \stopcombination} Renaud You don't know: READ THE MANUAL OR CHECK THE WIKI !!! ;) Renaud AUBIN a crit: Hi all, I would reserve a page for several figure (i.e. \placefigure). \placefigure[page] reserve ONE page for ONE figure... Can \placefigure reserve a page for several figures with an option I don't know yet ??? Since I assume \placefigure can do that for me, I don't want to use \placefigure[page]{none}{\startcombination...\stopcombination}... ;) TIA Renaud ___ 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] linear_shade not working any more
On Tue, 18 Jul 2006, Mojca Miklavec wrote: Hello, It seems to me that the following code worked in some beta 2 weeks ago: \setupcolors [state=start] \definecolor [BgColor1] [white] \definecolor [BgColor2] [r=0.7,g=0.7,b=1] \starttext \startMPcode path p; p := unitsquare scaled 3cm; linear_shade(p,0,\MPcolor{BgColor2},\MPcolor{BgColor1}); \stopMPcode \stoptext But with 2006.07.14 I get: This is MetaPost, Version 0.901 (Web2c 7.5.3) (shading-mpgraph.mp (1,0,0) ! Isolated expression. to be read again ; scaledgray-begingroup.red; endgroup l.286 ...(scaledrgb(0.7,0.7,1,1)),(scaledgray(1,1) )); ? Any suggestions about what could go wrong? Your example works correctly here (Win XP, Context 2006.07.14) Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
� wrote: 2006/7/18, Taco Hoekwater [EMAIL PROTECTED]: DVI maybe, but my Acrobat Reader 7 silently drops the bottom off pages that are higher than 200in (508cm). This is an implementation limit of AR7: 200inx200in. This can be overcome by using UserUnit in PDF 1.6: Then you can have up to 15.000.000inx15.000.000in . so we need an extension in pdftex ... \pdfuserunit 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] small new feature on the wiki
Hi Patrick, On Tue, 18 Jul 2006, Patrick Gundlach wrote: [...] context source=yes text=produces \your \TeX \code=here /context This is great for creating new code as well as editing existing one. However, is it possible to change the width of the image that is created. I fine the default A4 paper width to be too large and ususally add a \setuplayout[width=13cm] in the context code. Is it possible to do this with the new feature? If we agree on a common page size, I could easily put it in there. If we don't agree on one, I could perhaps say context source=... width=13cm. This would take a few more minutes to implement (I still have to implement that the source and the results are next to each other (left/right).) I think that it this is better. context ... width=13cm or context ... scale=0.8 will give enough flexibility. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
Patrick Gundlach wrote: Hi Mojca, Mojca Miklavec [EMAIL PROTECTED] writes: Is there any way to create infinite paper size: such a paper that all the content fits exactly on a single page? ̣(As a workaroung I can still create a page of height 2m and then crop it if no other solution is available.) this is almost an faq :) Perhaps the mailinglist archive can help you. Look for the terms 'pervert' and 'idiot' on the archive (no joke!). Perhaps this helps you!? http://archive.contextgarden.net/search/[EMAIL PROTECTED],idiot.en.html ha, my memory fails me, interesting historic bits and pieces 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] infinite paper height
Mojca Miklavec wrote: On 7/18/06, Adam Lindsay wrote: Mojca Miklavec wrote: 5m is inifinite enough for me (I hope). I only need to fit the whole article on a single page and I guess that no article will go over this limit. FWIW, Acrobat 6 and earlier had severe problems with document dimensions over 200cm, so keep that in mind for compatibility. That's not my problem any more. They asked me to prepare long continuous text with TeX (so that formulae and everything else will be OK) - they intend to use the resulting PDF to design a magazine in InDesign after that (I don't know how they're going to do that, but I assume that InDesign should be able to handle that - if not, I'll think about that after the problems arise). so why not use a small font; if it's cut and pasted in indesign then they can also scale 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] staticMPfigure fonts
Aditya Mahajan wrote: On Tue, 18 Jul 2006, Hans Hagen wrote: Renaud AUBIN wrote: Hi all, Considering the test http://renojrl.lrv.uvsq.fr/testbed/ I have some problems using lucida: texexec gives some warnings: kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+420/600 --dpi 420 texnansi-raw-lbr mktexpk: don't know how to create bitmap font for texnansi-raw-lbr. kpathsea: Appending font creation commands to missfont.log. and the resulting pdf leads to Could not find a font in the Resources dictionary... Moreover, I don't want to use pk... How to solve this problem to embed lucida into test-3d_kin_foreground.pdf ? Another point: I am affraid that test.pdf embed lucida twice once one can embed the font into the staticMPfigure's pdf... May I have to continue with my old MPgraphics or I'd rather replace them by staticMPfigure ? the statics don't work well with text, i need to figure out why Something very strange is happening here. Looks like a typescript loading problem. I can not test with lucida (do not have them) but the same problem appears with palatino also. first a simplication of the example code: \startMPenvironment[global] \usetypescriptfile[type-buy] \loadmapfile[texnansi-bh-lucida.map] \usetypescript[lucida][texnansi] \setupbodyfont[lucida,10pt] \stopMPenvironment the global directive makes the env transparent for the doc anyhow, the problem is that in a mp to pdf conversion the mapo info got lost; i patched texexec a bit and it works ok now here (needs some testing with other mp stuff) Han s - 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] strange font switching (bug?)
Mojca Miklavec wrote: Hello, can anyone explain this weird behaviour? The accents on the second page are broken (setting bodyfont to 7pt at the beginning works OK and using other sizes works as well.). \setupbodyfont[8pt] \startsetups{img} \switchtobodyfont[7pt] \stopsetups \starttext \ccaron\scaron\zcaron \page \setups{img} \ccaron\scaron\zcaron \stoptext Thank you very much, ok, some math-serif optimzation mix up; moved to dev-context 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] control the number of items in the startitemize environment
batela wrote: Dear Sirs. I have a large buffer that include several items packed in a initial startitemize environment. Using this list, I want build a several small lists with five inital items in the random order. I try to do in this way, but without success :-(( % \startsetups SmallList:make \getbuffer[LargeList] \stopsetups \starttext \startbuffer[LargeList] \startitemize[1,random,packed][items=5] %%% -- this d'ont work. Why? items=... has to do with questionares, not with randomize of course such a feature can be added but where does adding such one-shot extensions end ... Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] linear_shade not working any more
On 7/19/06, Aditya Mahajan wrote: On Tue, 18 Jul 2006, Mojca Miklavec wrote: Hello, It seems to me that the following code worked in some beta 2 weeks ago: \setupcolors [state=start] \definecolor [BgColor1] [white] \definecolor [BgColor2] [r=0.7,g=0.7,b=1] \starttext \startMPcode path p; p := unitsquare scaled 3cm; linear_shade(p,0,\MPcolor{BgColor2},\MPcolor{BgColor1}); \stopMPcode \stoptext Your example works correctly here (Win XP, Context 2006.07.14) Sorry for the false alarm. I deleted and reinstalled everything and now it works again. (It seems that I've been messing up again.) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
On 7/19/06, Hans Hagen wrote: Mojca Miklavec wrote: On 7/18/06, Adam Lindsay wrote: Mojca Miklavec wrote: 5m is inifinite enough for me (I hope). I only need to fit the whole article on a single page and I guess that no article will go over this limit. FWIW, Acrobat 6 and earlier had severe problems with document dimensions over 200cm, so keep that in mind for compatibility. That's not my problem any more. They asked me to prepare long continuous text with TeX (so that formulae and everything else will be OK) - they intend to use the resulting PDF to design a magazine in InDesign after that (I don't know how they're going to do that, but I assume that InDesign should be able to handle that - if not, I'll think about that after the problems arise). so why not use a small font; if it's cut and pasted in indesign then they can also scale Most articles will be shorter than 2m anyway, I hope. If not, smaller font size is surely one of the possibilities, but I'll worry about that later (I don't doubt that I'll be bitten by enough ConTeXt bugs before that will happen). Thanks for the tip, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context