[NTG-context] Mixed Normal and Bold Math -- Problem with Lucida
Hi all, I use lucida for a document and now I need some bold math fonts so I have followed the instructions given in "This Way - Mixed Normal and Bold Math". The resulting test file is: \starttext \usetypescript[lucida] [texnansi] \usetypescript[lucidabfm] [texnansi] \usetypescript[lucidaboldmath][texnansi] \setupformulas[method=bold] \startformula[lucida] 1 \Gamma \alpha x \stopformula \startformula[lucida] 1 \Gamma {\bfm \alpha x} \stopformula \startformula[lucidaboldmath] 1 \Gamma \alpha x \stopformula \startformula[lucidaboldmath] 1 \Gamma {\bfm \alpha x} \stopformula \stoptext I have installed lucida with texfont and added some .tfm (lucida.zip from Hans). Since I'm on debian, I've done some modifications to /etc/updmap.d/10tetex-base (I use tetex + latest ConTeXt in ~/texmf) + sudo update-updmap + sudo updmap-sys... \loadmapfile[texnansi-bh-lucida.map] is in my cont-sys.tex texexec gives: TeXExec | processing document 'lucidabfm.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file lucidabfm.top TeXExec | using randomseed 1128 TeXExec | tex engine: pdfetex TeXExec | tex format: cont-en TeXExec | progname: context This is pdfeTeX, Version 3.141592-1.30.6-2.2 (Web2C 7.5.5) \write18 enabled. (/home/renaud/texmf/web2c/natural.tcx) entering extended mode (./lucidabfm.tex ConTeXt ver: 2006.07.28 23:56 fmt: 2006.8.1 int: english mes: english language : language en is active system : cont-new loaded (/home/renaud/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex color : palette rollover is available ) system : cont-old loaded (/home/renaud/texmf/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/home/renaud/texmf/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (/home/renaud/texmf/tex/context/user/cont-sys.tex (/home/renaud/texmf/tex/context/base/type-exa.tex) (/home/renaud/texmf/tex/context/base/type-syn.tex) (/home/renaud/texmf/tex/context/base/type-enc.tex) (/home/renaud/texmf/tex/context/base/type-siz.tex) (/home/renaud/texmf/tex/context/base/type-map.tex) (/home/renaud/texmf/tex/context/base/type-spe.tex) (/home/renaud/texmf/tex/context/base/type-akb.tex)) bodyfont : 12pt rm is loaded language : patterns nl->texnansi:texnansi->1->2:3 nl->ec:ec->2->2:3 fr-> texnansi:texnansi->3->2:3 fr->ec:ec->4->2:3 de->texnansi:texnansi->5->2:3 de->e c:ec->6->2:3 it->texnansi:texnansi->7->2:3 it->ec:ec->8->2:3 pt->texnansi:texna nsi->9->2:3 pt->ec:ec->10->2:3 hr->ec:ec->11->2:3 pl->pl0:pl0->12->2:3 pl->ec:e c->13->2:3 pl->qx:qx->14->2:3 cz->il2:il2->15->2:3 cz->ec:ec->16->2:3 sk->il2:i l2->17->2:3 sk->ec:ec->18->2:3 sl->ec:ec->19->2:3 en->ec:ec->21->2:3 uk->ec:ec- >22->2:3 us->ec:ec->23->2:3 agr->agr:agr->24->2:3 da->ec:ec->25->2:3 sv->ec:ec- >26->2:3 af->ec:ec->27->2:3 no->ec:ec->28->2:3 deo->ec:ec->29->2:3 es->ec:ec->3 0->2:3 ca->ec:ec->31->2:3 la->ec:ec->32->2:3 ro->ec:ec->33->2:3 tr->ec:ec->34-> 2:3 fi->ec:ec->36->2:3 hu->ec:ec->37->2:3 loaded specials : tex,postscript,rokicki loaded system : lucidabfm.top loaded (./lucidabfm.top specials : loading definition file tpd (/home/renaud/texmf/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/home/renaud/texmf/tex/context/base/spec-fdf.tex) specials : fdf loaded ) specials : fdf,tpd loaded ) systems : system commands are enabled (/home/renaud/texmf/tex/context/base/sort-def.tex) (/home/renaud/texmf/tex/context/base/sort-lan.tex) systems : begin file lucidabfm at line 1 (/home/renaud/texmf/tex/context/base/type-buy.tex) (/home/renaud/texmf/tex/context/base/math-lbr.tex)kpathsea: Running mktextfm LucidaNewMath-Demibold /usr/share/texmf/web2c/mktexnam: Could not map source abbreviation L for LucidaNewMath-Demibold. /usr/share/texmf/web2c/mktexnam: Need to update /usr/share/texmf-tetex/fonts/map/fontname/special.map? mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input LucidaNewMath-Demibold This is METAFONT, Version 2.71828 (Web2C 7.5.4) kpathsea: Running mktexmf LucidaNewMath-Demibold ! I can't find file `LucidaNewMath-Demibold'. <*> ...; nonstopmode; input LucidaNewMath-Demibold Please type another input file name ! Emergency stop. <*> ...; nonstopmode; input LucidaNewMath-Demibold Transcript written on mfput.log. grep: LucidaNewMath-Demibold.log: Aucun fichier ou répertoire de ce type mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input LucidaNewMath-Demibold' failed to make LucidaNewMath-Demibold.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*lucida7ptmmmrbfrm*:=LucidaNewMath-Demibold at 7.0pt not loadable: Metr ic (TFM) file not found. \relax \xxdododefinefont ...tspec {#4}\newfontidentifier
Re: [NTG-context] Specify the part/chapter number
On Thu, 3 Aug 2006, Confused Scientist wrote: > Hello, > > I'm working on a project with a few other people and we are each responsible > for writing a single chapter/component of a larger document. I am, for > example, responsible for chapters 2 and 6. Unfortunately, when I run pdftex > on my component, the chapter number always begins from 1 which means all my > sections, equations, figures, and tables are all numbered as 1.x.x.x. Is > there a way to force a component to use a different chapter number? \setuphead[chapter][ownnumber=yes] \chapter{2}{Chapter Title} Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Specify the part/chapter number
Hello,I'm working on a project with a few other people and we are each responsible for writing a single chapter/component of a larger document. I am, for example, responsible for chapters 2 and 6. Unfortunately, when I run pdftex on my component, the chapter number always begins from 1 which means all my sections, equations, figures, and tables are all numbered as 1.x.x.x. Is there a way to force a component to use a different chapter number?Thanks,James ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setupcaptions
Taco Hoekwater wrote: > Thomas A. Schmitz wrote: > >> There has been a discussion about this three months ago, but I can't >> figure it out: I have >> >> \setupcaptions[separator={:}] >> >> in my document and would expect something like "figure 1: a figure," >> but I don't get a colon, the same for stopper={:}. Isn't this >> supposed to work? >> > > One of them is supposed to work, but somehow neither does. There is a > bit of a problem with these caption settings in the current release, > see also the post by David Arnold "Figure 1", a few days ago. > separator is between numbers (chap.fig) and stopper is at the end (i have to look into it; something is messed up since we introduced separators for subnumbers in split floats) remind me 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] \startMPenvironment : personal font weirdness
Hans Hagen wrote: > what is the label font then? probably defaultfont so you need to set > that as well > also, label does not use tex, use > > label(\textext("very"),z46) > That's it, indeed (though without the back-slash for textext): label(textext("very"),z46) > and friends > > Hans Many thanks! David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \startMPenvironment : personal font weirdness
David Wooten wrote: > Hans Hagen wrote: > > >> \startMPenvironment [global] > >> \usetypescriptfile[minionpro-diss] > >> \usetypescript[Minion] > >> \switchtobodyfont[Minion,12pt] > >> \stopMPenvironment > >> > > dangerous to use such a upper/lowercase mix (typos) > > I see what you mean. > > > hm, looks like a bronwser problem > > > > what happens if you only include the graphic, > > > > \startMPpage > > z40 = (2cm,0cm); z41 = (3cm,0cm) ; > > z42 = (3cm,1cm); z43 = (2cm,1cm) ; > > z46 = (2.5cm,.5cm) ; > > > > path F ; F := (z40--z41--z42--z43--cycle) ; > > > > linejoin := mitered ; > > > > drawpath F ; > > label("very", z46) ; > > \stopMPpage > > > > so, no other text > > Same results, and I also checked with a different viewer. Points to my > typescript file as a problem, does it? (Which works fine in non-MP > ConTeXt). > what is the label font then? probably defaultfont so you need to set that as well also, label does not use tex, use label(\textext("very"),z46) and friends 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] \startMPenvironment : personal font weirdness
Hans Hagen wrote: >> \startMPenvironment [global] >> \usetypescriptfile[minionpro-diss] >> \usetypescript[Minion] >> \switchtobodyfont[Minion,12pt] >> \stopMPenvironment >> > dangerous to use such a upper/lowercase mix (typos) I see what you mean. > hm, looks like a bronwser problem > > what happens if you only include the graphic, > > \startMPpage > z40 = (2cm,0cm); z41 = (3cm,0cm) ; > z42 = (3cm,1cm); z43 = (2cm,1cm) ; > z46 = (2.5cm,.5cm) ; > > path F ; F := (z40--z41--z42--z43--cycle) ; > > linejoin := mitered ; > > drawpath F ; > label("very", z46) ; > \stopMPpage > > so, no other text Same results, and I also checked with a different viewer. Points to my typescript file as a problem, does it? (Which works fine in non-MP ConTeXt). ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX trigger in MP macro
Peter Rolf wrote: > Hi all, > > Currently I am using > > \startuniqueMPgraphic{foo} > ... > if (\DbgFill=0) : > fill whatever > fi > ... > \stopuniqueMPgraphic > > in my MP graphics. \DbgFill (0|1) is just a trigger, which prevents > filling in case of visual debugging. Instead of always writing this > 'long' form, it should be possible to use a self written mp-macro > instead. But my naive approach > > def dbg_fill (expr p) = > if (\DbgFill=0) : > fill p ; > fi > enddef ; > > doesn't work. I get > > >>> DbgFill >>> > ! Unknown relation will be considered false. > > > How do I realize this trigger inside pure MP code and set it outside in > TeX? The trigger should be global and can change during runtime. Any > help is welcome. > can you make a test file? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Natural Tables with verbatim text
Confused Scientist wrote: > Hello > > Is it possible to use \type{} in a natural table cell? The example below > seems to generate an error for me. > > Thanks! > > % example > \starttext > > This is a quick \type{test_run} of the problem. > > \bTABLE > \bTR \bTD first\eTD\bTD {\bf alpha} \eTD\bTD one > \eTD\eTR > \bTR \bTD {\em second} \eTD\bTD beta\eTD\bTD two > \eTD\eTR > \bTR \bTD third\eTD\bTD gamma \eTD\bTD \type{three_ex} > \eTD\eTR > \eTABLE > > \stoptext frozen catcode problem, tex limitation etc etc try \retype{three_ex} instead 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] \startMPenvironment : personal font weirdness
David Wooten wrote: > Greetings all, > > I've been experimenting with MetaPost/Fun of late. It is indeed fun. In > trying to have a uniform font in both text and MP areas, however, I am > running into some difficulty. With a little file like this: > > --- > > \setupcolors[state=start] > \setuppagenumbering[state=stop] > > \startMPenvironment [global] > \usetypescript[palatino][ec] > \switchtobodyfont[palatino,12pt] > \stopMPenvironment > > \starttext > > The following example should be very interesting: > \blank > > \startuseMPgraphic{very-interesting} > > z40 = (2cm,0cm); z41 = (3cm,0cm) ; > z42 = (3cm,1cm); z43 = (2cm,1cm) ; > z46 = (2.5cm,.5cm) ; > > path F ; F := (z40--z41--z42--z43--cycle) ; > > linejoin := mitered ; > > drawpath F ; > label("very", z46) ; > > \stopuseMPgraphic > > \useMPgraphic{very-interesting} > > \stoptext > > --- > > everything works very nicely (fonts identical). When I use my own > typescript file, however: > > --- > > \startMPenvironment [global] > \usetypescriptfile[minionpro-diss] > \usetypescript[Minion] > \switchtobodyfont[Minion,12pt] > \stopMPenvironment > dangerous to use such a upper/lowercase mix (typos) > --- > > The text appears in the correct font, but the MP section, _while at > first showing the correct font_, then changes to CM before my eyes. (my > pdf viewer auto-updates). > hm, looks like a bronwser problem what happens if you only include the graphic, \startMPpage z40 = (2cm,0cm); z41 = (3cm,0cm) ; z42 = (3cm,1cm); z43 = (2cm,1cm) ; z46 = (2.5cm,.5cm) ; path F ; F := (z40--z41--z42--z43--cycle) ; linejoin := mitered ; drawpath F ; label("very", z46) ; \stopMPpage so, no other text 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] setuppublicationlist
Hi Taco, An extra line was due to \def\setuppublicationlayout[#1]#2% {\setvalue{@@pvdata#1}{#2\unskip\unskip\vadjust{\kern 12pt}}} in my bibl-aub.tex ;) Cheers, Renaud Taco Hoekwater a écrit : Renaud AUBIN wrote: Hi all, How to control vertical spaces between references ? (\setuplist options ? I have tried some but nothing happened...) This should work: \setuppublicationlist[before=\blank] Cheers, Taco ___ 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] Natural Tables with verbatim text
Confused Scientist wrote: > Hello > > Is it possible to use \type{} in a natural table cell? The example > below seems to generate an error for me. > > Thanks! > \type works (try \type{\TEST}), but not exactly as in normal environment. For your example you can use '\_' instead of '_' (even without \type). Dunno if there are more limitations. HTH, Peter > % example > \starttext > > This is a quick \type{test_run} of the problem. > > \bTABLE > \bTR \bTD first\eTD\bTD {\bf alpha} \eTD\bTD one > \eTD\eTR > \bTR \bTD {\em second} \eTD\bTD beta\eTD\bTD two > \eTD\eTR > \bTR \bTD third\eTD\bTD gamma \eTD\bTD \type{three_ex} > \eTD\eTR > \eTABLE > > \stoptext > > > > > ___ > 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] Newbie installation problems
> I suppose it's a font problem, but where can I find these fonts, and > how should I install them ? Right, it's the latin-modern font problem. If you're using Debian testing/unstable, you can probably just do apt-get install lmodern to install lmodern v1.00. Ubuntu gives you v0.92, which isn't recent enough. You can install the Debian package on Ubuntu but it needs a bit of work (see my earlier messages in the Ubuntu thread about a week ago). If you're not using Debian or Ubuntu, you can install it by hand from CTAN. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Newbie installation problems
Hello, I've just installed teTex and Context packages (no previous installations). When I run texexec on a sample file (\starttext \framed{Does it work?} \stoptext), texexec stops with the following lines: > bodyfont: 12pt rm is loaded > kpathsea: Running mktextfm ec-lmr12 > mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; > input ec-lmr12 > This is METAFONT, Version 2.71828 (Web2C 7.5.4) > > kpathsea: Running mktexmf ec-lmr12 > ! I can't find file `ec-lmr12'. > <*> ...ljfour; mag:=1; nonstopmode; input ec-lmr12 > > Please type another input file name > ! Emergency stop. > <*> ...ljfour; mag:=1; nonstopmode; input ec-lmr12 > > Transcript written on mfput.log. > grep: ec-lmr12.log: No such file or directory > mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input > ec-lmr12' failed to ma > ke ec-lmr12.tfm. > kpathsea: Appending font creation commands to missfont.log. > ! Font \*12ptrmtfrm*=ec-lmr12 not loadable: Metric (TFM) file not found. > >\relax > \xxdododefinefont ...tspec {#4}\newfontidentifier > \let > \localrelativefontsiz... > > \fontstrategy ...ame #1\csname #2#3#4#5\endcsname > \tryingfontfalse \fi > ...yle \fontalternative \fontsize > \fi \iftryingfont > \fontstr... > > \synchronizefont ...strategy \the \fontstrategies > \relax \fi > \ifskipfontchar... > \getvalue [EMAIL PROTECTED]@ \fontstyle } >\edef \fontstyle {\fontstyle > }\if... > ... > l.1 > \starttext > ? I suppose it's a font problem, but where can I find these fonts, and how should I install them ? I also have a problem with "texexec --version" which reports: > TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 > >texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 >texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 >tex : unknown >context : ver: 2006.07.28 23:56 >cont-en : unknown >cont-cz : unknown >cont-de : unknown >cont-nl : unknown >cont-uk : unknown > > total run time : 1 seconds > >warning : use 'texmfstart texexec' instead Can anybody help me ? Thanks for your replies. Vincent De Groote ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cdwincontext
> If the batch file is still functionally equivalent, it would > make sense to include it in the distribution. I vaguely recall > that I had removed all of the 'smart' stuff from the batch > file to please command.com, making it much less functional, > but perhaps that is more an indication of how well I know > command.com ;-) As I remember, most, if not all of the smart stuff mentioned has to do with automatic recognition of the install-directory. All this smartness is nice, if things work. In the other cases smartness is a jungle and it would be easier to check a dumb but simple list of set commands. These batch-files for example are not smart enough to recognize if they are running under the right command- prozessor and a normal windows 98 user might be very helpless what had gone wrong. But the settings in scite had to be altered too. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] "e" sends error to bbedit
All, I have an error here: \setupcolors[state=start] \startuniqueMPgraphic{demo circle} path p; p:=fullcircle xscaled \overlaywidth yscaled \overlayheight; fill p with color .85whwite; draw p withpen pencircle scaled 2pt withcolor .625red; \stopuniqueMPgraphic \defineoverlay[demo circle][\uniqueMPgraphic{demo circle}] \starttext \input tufte \framed[background=demo circle]{This text is overlayed.} \input tufte \stoptext When I press "e" at the question prompt when the compiles stop, vi opens the file overlay-mpgraph.mp and deposits me at the end of this file. What I'd rather have is to be taken to the line in overlay.tex in bbedit. I tried this in my .bash_profile: export TEXEDIT="bbedit +%d %s" To no avail. Any other Mac users on this list have bbedit set up correctly? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Natural Tables with verbatim text
HelloIs it possible to use \type{} in a natural table cell? The example below seems to generate an error for me.Thanks!% example\starttextThis is a quick \type{test_run} of the problem. \bTABLE \bTR \bTD first \eTD\bTD {\bf alpha} \eTD\bTD one \eTD\eTR \bTR \bTD {\em second} \eTD\bTD beta \eTD\bTD two \eTD\eTR \bTR \bTD third \eTD\bTD gamma \eTD\bTD \type{three_ex} \eTD\eTR \eTABLE\stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \startMPenvironment : personal font weirdness
Greetings all, I've been experimenting with MetaPost/Fun of late. It is indeed fun. In trying to have a uniform font in both text and MP areas, however, I am running into some difficulty. With a little file like this: --- \setupcolors[state=start] \setuppagenumbering[state=stop] \startMPenvironment [global] \usetypescript[palatino][ec] \switchtobodyfont[palatino,12pt] \stopMPenvironment \starttext The following example should be very interesting: \blank \startuseMPgraphic{very-interesting} z40 = (2cm,0cm); z41 = (3cm,0cm) ; z42 = (3cm,1cm); z43 = (2cm,1cm) ; z46 = (2.5cm,.5cm) ; path F ; F := (z40--z41--z42--z43--cycle) ; linejoin := mitered ; drawpath F ; label("very", z46) ; \stopuseMPgraphic \useMPgraphic{very-interesting} \stoptext --- everything works very nicely (fonts identical). When I use my own typescript file, however: --- \startMPenvironment [global] \usetypescriptfile[minionpro-diss] \usetypescript[Minion] \switchtobodyfont[Minion,12pt] \stopMPenvironment --- The text appears in the correct font, but the MP section, _while at first showing the correct font_, then changes to CM before my eyes. (my pdf viewer auto-updates). Any clues? Many thanks, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cdwincontext
Taco, Hans, This would be terrific if we had a working bat for Win98. My colleague would be extremely happy. Thanks for considering this. On Aug 3, 2006, at 7:30 AM, Hans Hagen wrote: > Taco Hoekwater wrote: >> >> If the batch file is still functionally equivalent, it would >> make sense to include it in the distribution. I vaguely recall >> that I had removed all of the 'smart' stuff from the batch >> file to please command.com, making it much less functional, >> but perhaps that is more an indication of how well I know >> command.com ;-) >> > sure, we can add a working bat file as xxx-win98.bat or so > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > - > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Conflict with chapter definition and header
Thanks Taco.This is certainly closer to what I'm trying to do, but I still have a problem with the chapter names missing from the header of every odd/left page. Below is how I setup the headers:\setupheadertexts [] % even left [section] % even right [chapter] % odd left [] % odd rightAny ideas?Thanks,James-- example --%%% Layout\setuppagenumbering[ alternative=doublesided, style={\sc}, location={footer, marginedge}, partnumber=no, way=bytext]\setuppapersize[a4][a4] % paper size (210 x 297 mm)\definelayout[even] % Even = Left [topspace=14mm, % at the very top of the page bottomspace=14mm, % at the very bottom of the page header=6mm, % for header headerdistance=4mm, % between body and header footer=6mm, % for footer footerdistance=4mm, % between body and footer backspace=38mm, % binding edge space cutspace=32mm, % opposite to binding edge leftmargin=25mm, % space for margin notes rightmargin=25mm, % space for right margin notes width=fit, height=fit]\definelayout[odd] % Odd = Right [topspace=14mm, % at the very top of the page bottomspace=14mm, % at the very bottom of the page header=6mm, % for header headerdistance=4mm, % between body and header footer=6mm, % for footer footerdistance=4mm, % between body and footer backspace=38mm, % binding edge cutspace=32mm, % opposite to binding edge leftmargin=25mm, % the space for margin notes rightmargin=25mm, % the space for right margin notes width=fit, height=fit]\setuplayout [location=doublesided] % double-sided pages\setupheader[style={\it}]\setupheadertexts [] % even left [section] % even right [chapter] % odd left [] % odd right\definetext[chapter][footer][pagenumber]\setupheadtext [chapter=Chapter]\setuphead [chapter] [command=\MyChapterText, style={\sc\tfc}, placehead=yes, color=black, number=yes, continue=no, page=, header=high, footer=chapter, distance=0pt, before=\setups{chapter:before}, after=\setups{chapter:after}] \def\MyChapterText#1#2{\vbox{\sc\tfc\headtext{chapter}~#1\blank[small]#2}}\startsetups [chapter:before] \page[left] \noheaderandfooterlines \vbox to 35mm{} \vbox{\blank \startalignment[left,nothyphenated] \noindent \setups[chapter:quote] \stopalignment} \resetsetups[quote:text] \page[right] \noheaderandfooterlines \vbox to 35mm \bgroup\stopsetups\startsetups [chapter:after] \vss\egroup \stopsetups\showframe%%% Text\starttext\startsetups[chapter:quote] \vbox{My quote goes here\par \it{---author from ``source'', 1900.}}\stopsetups\chapter{This is a split chapter title\blank[small]% On two lines}\input tufte\section{Section One}\dorecurse{3}{\input tufte \par \input knuth \par}\section{Section Two}\dorecurse{3}{\input tufte \par \input knuth \par}\startsetups[chapter:quote] \vbox{My quote goes here\par \it{---author from ``source'', 1900.}}\stopsetups\chapter{A short title}\input tufte\section{Section One}\dorecurse{3}{\input tufte \par \input knuth \par} \section{Section Two}\dorecurse{3}{\input tufte \par \input knuth \par}\stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuppublicationlist
Renaud AUBIN wrote: > Hi all, > > How to control vertical spaces between references ? > (\setuplist options ? I have tried some but nothing happened...) This should work: \setuppublicationlist[before=\blank] Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setuppublicationlist
Hi all, How to control vertical spaces between references ? (\setuplist options ? I have tried some but nothing happened...) Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cdwincontext
Taco Hoekwater wrote: > > If the batch file is still functionally equivalent, it would > make sense to include it in the distribution. I vaguely recall > that I had removed all of the 'smart' stuff from the batch > file to please command.com, making it much less functional, > but perhaps that is more an indication of how well I know > command.com ;-) > sure, we can add a working bat file as xxx-win98.bat or so Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setupcaptions
Thomas A. Schmitz wrote: > There has been a discussion about this three months ago, but I can't > figure it out: I have > > \setupcaptions[separator={:}] > > in my document and would expect something like "figure 1: a figure," > but I don't get a colon, the same for stopper={:}. Isn't this > supposed to work? One of them is supposed to work, but somehow neither does. There is a bit of a problem with these caption settings in the current release, see also the post by David Arnold "Figure 1", a few days ago. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] fullpage graphic
> > The difference to the example that I have posted is, that you gave > > the options [page,none] explicitly with \placefigure and I have > used > > \setupfloat[figure][page,none]. > > > \setupfloat[figure][default={page,none}] > > may work (untested) > > Hans Yes, this works! Thank you for your help! But where are such things documented? I tried to access 'http://texshow.contextgarden.net/' some times the last days. I saw the left frame and the topics home and help are functioning, but all the other stuff gave me an error. Is this me alone? Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cdwincontext
[EMAIL PROTECTED] wrote: >>>Same batch file, so yes. >>> >>>It would be possible to convert the batch file into a perl or >> >>ruby >> >>>scripts plus a one-line batch that starts the interpreter + >> >>script, > > > Hmm, > > aren't you shutting with 'Kanonen auf Spatzen'? Perhaps, but the advantage is that you don't have to aim :-) > I have running the standalone-context here on WindowsME. > I have modifyed the original batch-files a bit If the batch file is still functionally equivalent, it would make sense to include it in the distribution. I vaguely recall that I had removed all of the 'smart' stuff from the batch file to please command.com, making it much less functional, but perhaps that is more an indication of how well I know command.com ;-) Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setupcaptions
There has been a discussion about this three months ago, but I can't figure it out: I have \setupcaptions[separator={:}] in my document and would expect something like "figure 1: a figure," but I don't get a colon, the same for stopper={:}. Isn't this supposed to work? Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Updated My Way on math alignment
Hi, I have updated myway on using alignment. It now also explains features of matrix (similar to array of latex), cases, substack and intertext. Most of the discussion on mathalignment (similar to align and gather environments of latex) is the same as before. http://dl.contextgarden.net/myway/mathalign.pdf source http://dl.contextgarden.net/myway/mathalign.tex Taco, I am also describing how to use style=... feature of matrix that you sent a while back, hoping that it will make to the core :-) Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] whitespace and paragraphs
This I don't get right about whitespace between paragraphs made with \defineparagraphs.\starttext\setupwhitespace[none]a\par b\par c\par% the above close spaced thus behaving as expected% these do not obey setupwhitespace[none]:\defineparagraphs[param][n=2,before={\setupwhitespace[none]}]\setupparagraphs[param][1][width=2cm]\startparam first \param {\sl contents} \stopparam\startparam second \param {\sl contents} \stopparam% I tried other things, remembering a recent question about a similar problem with framed texts.% Neither of the following made a difference:\defineparagraphs[param][n=2,before={\setupwhitespace[none]}]\setupparagraphs[param][1][width=2cm,before={\setupwhitespace[none]}]\setupparagraphs[param][2][before={\setupwhitespace[none]}]% height=... seems not to influence the distance between the paragraphs\stoptextHow can one for these paragraphs the wanted distance apart?Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] TeX trigger in MP macro
Hi all, Currently I am using \startuniqueMPgraphic{foo} ... if (\DbgFill=0) : fill whatever fi ... \stopuniqueMPgraphic in my MP graphics. \DbgFill (0|1) is just a trigger, which prevents filling in case of visual debugging. Instead of always writing this 'long' form, it should be possible to use a self written mp-macro instead. But my naive approach def dbg_fill (expr p) = if (\DbgFill=0) : fill p ; fi enddef ; doesn't work. I get >> DbgFill ! Unknown relation will be considered false. How do I realize this trigger inside pure MP code and set it outside in TeX? The trigger should be global and can change during runtime. Any help is welcome. Greetings, Peter ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figures disappear with subtextblocks
David Arnold wrote: > Hans, > > What does generate formats under tools mean? > > I have to do something more than: > > texmfstart texexec --make all --all no, that's what 'generate formats' does (you can see the meaning of the tools in the properties files of scite) 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] fullpage graphic
[EMAIL PROTECTED] wrote: > Hallo! > > >>> \setuppapersize[a4][a4] >>> \setupfloat[figure][none,fit,here,always,top,bottom,force,page] >>> \setupcaption[figure][number=no] >>> \setuplayout[grid=yes]% Problem doesn't exist with grid=no >>> \starttext >>> \input tufte >>> \placefigure{}{\framed[offset=none]{% >>> >>> >> \externalfigure[float.png][width=\makeupwidth,height=\textheight]}} >> >>> \dorecurse{10}{\par\input tufte} >>> \stoptext >>> >>> >> >> > > >> Maybe I am missing something here. But \placefigure[page] seems >> to work fine for me. Even larger dimensions do not seem to be a >> problem. >> >> \input tufte >> >> \placefigure[page,none]{}{\blackrule[width=\textwidth,height=0.9\tex >> theight,color=green]} >> \input tufte >> \placefigure[page,none]{}{\blackrule[width=\textwidth,height=1.0\tex >> theight,color=green]} >> \input tufte >> \placefigure[page,none]{}{\blackrule[width=\textwidth,height=1.1\tex >> theight,color=green]} >> \dorecurse{10}{\input tufte} >> > > You are right! Your example works! > The difference to the example that I have posted is, that you gave > the options [page,none] explicitly with \placefigure and I have used > \setupfloat[figure][page,none]. > \setupfloat[figure][default={page,none}] may work (untested) 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] A bug in character alignment?
Nicolas Grilly wrote: > Peter: Thanks for your help in clarifying my example. > > Taco: Thanks for fixing this bug! When will the next release be delivered? > you can download a beta (or do ctxtools --update) 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] A bug in character alignment?
Peter: Thanks for your help in clarifying my example. Taco: Thanks for fixing this bug! When will the next release be delivered? On 8/2/06, Taco Hoekwater <[EMAIL PROTECTED]> wrote: > Peter Münster wrote: > > On Tue, 1 Aug 2006, Nicolas Grilly wrote: > > > > > >>>Sorry, I can't see it. The column are right-aligned, which is normal, since > >>>there is no alignment-character. > >> > >>No, it is not normal. ConTeXt Wiki says "if there's no > >>alignmentcharacter in the cell, the content will be aligned in the > >>following way depending on the value of \characteralignmentmode". > >> > >>By default, characteralignmentmode=4. Therefore, according to the > >>wiki, cell content should be aligned on the last character of each > >>cell. > > > > > > Ok, by "right-aligned" I wanted to say: aligned at the right-most > > character. > > > > Now I see your problem: the values are still aligned at the right-most > > character, but the whole column is pushed a bit to the right. > > It was definately a bug. We found it and it will be fixed in the next > ConTeXt release. > > Taco > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > -- Garden - Conseil en Marketing & Datamining Nicolas Grilly Tel +33 1 45 72 48 78 Mob +33 6 03 00 25 34 www.garden-paris.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cdwincontext
> > Same batch file, so yes. > > > > It would be possible to convert the batch file into a perl or > ruby > > scripts plus a one-line batch that starts the interpreter + > script, Hmm, aren't you shutting with 'Kanonen auf Spatzen'? I have running the standalone-context here on WindowsME. I have modifyed the original batch-files a bit and I had to adapt some entrys in scite, where cmd.exe is called. (btw isn't it possible to call the command interpreter via COMMSPEC? So the whole thing is not depending on the command interpreter.) Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] couple of metafun questions
On Aug 2, 2006, at 11:56 PM, Mojca Miklavec wrote: > So you have to draw the path twice with different color and pattern > (you can write a macro for it of course if you need it often). > > beginfig(1); > pickup pencircle scaled 2pt; > picture dp[]; > dp[1] := dashpattern(on 2 off 6) scaled 3pt; > dp[2] := dashpattern(off 4 on 2 off 2) scaled 3pt; > > path p; p := (origin .. (2,1) .. (3,-1) .. (5,0)) scaled 3cm; > > draw p dashed dp[1] withcolor blue; > draw p dashed dp[2] withcolor red; > endfig; > end. > > Mojca Mojca, thanks so much, this works and does exactly what I want! For the rest of my questions: I've decided to go for an embedded staticMPfigure instead of MPpositiongraphic, so I can manage. But I'd still be curious if these things are possible or not. Anyways, thanks a lot! Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] fullpage graphic
Hallo! > > \setuppapersize[a4][a4] > > \setupfloat[figure][none,fit,here,always,top,bottom,force,page] > > \setupcaption[figure][number=no] > > \setuplayout[grid=yes]% Problem doesn't exist with grid=no > > \starttext > > \input tufte > > \placefigure{}{\framed[offset=none]{% > > > \externalfigure[float.png][width=\makeupwidth,height=\textheight]}} > > > > \dorecurse{10}{\par\input tufte} > > \stoptext > > > > Maybe I am missing something here. But \placefigure[page] seems > to work fine for me. Even larger dimensions do not seem to be a > problem. > > \input tufte > > \placefigure[page,none]{}{\blackrule[width=\textwidth,height=0.9\tex > theight,color=green]} > \input tufte > \placefigure[page,none]{}{\blackrule[width=\textwidth,height=1.0\tex > theight,color=green]} > \input tufte > \placefigure[page,none]{}{\blackrule[width=\textwidth,height=1.1\tex > theight,color=green]} > \dorecurse{10}{\input tufte} You are right! Your example works! The difference to the example that I have posted is, that you gave the options [page,none] explicitly with \placefigure and I have used \setupfloat[figure][page,none]. So, what is wrong with using \setupfloat? Please try my example exactly as given and you will see what I mean. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] column overflow at times --- any thoughts?
Thanks for trying, Taco. Appreciate the help. On Aug 3, 2006, at 1:00 AM, Taco Hoekwater wrote: > > > David Arnold wrote: >> Taco, >> >> Nice try, but didn't help. > > If the \column break works out ok, then I am not going to spend > any more time on this, ok? No doubt there is a bug somewhere, > but without a minimal file it will be extremely hard to track > down anyway. > > Cheers, taco > ___ > 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] column overflow at times --- any thoughts?
David Arnold wrote: > Taco, > > Nice try, but didn't help. If the \column break works out ok, then I am not going to spend any more time on this, ok? No doubt there is a bug somewhere, but without a minimal file it will be extremely hard to track down anyway. Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] fullpage graphic
Aditya Mahajan wrote: >>I would like to place a floating, framed graphic at the next page >>following the \placefigure[]{}{\framed[]{...}} command. >> >>Problem: The graphicdimensions are (\makeupwidth,\textheight). >> >>Neither the options page, here, force or always help. > Maybe I am missing something here. But \placefigure[page] seems to > work fine for me. Even larger dimensions do not seem to be a problem. > Works fine here as well. Are you using an old(er) ConTeXt version? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] column overflow at times --- any thoughts?
Taco,Nice try, but didn't help.On Aug 3, 2006, at 12:08 AM, Taco Hoekwater wrote:\displaywidowpenalty0\brokenpenalty0 The difficulty might be that Exercise #27 is in a textblock.% Exercise #27\beginquestion\startquestion[ex:secqu.27]$f(x)=\sqrt{x+5}$.\stopquestion\endquestion\beginlonganswer[]\startanswer\stopanswer\endlonganswer\beginshortanswer[]\startanswer$\text{Domain}=[-5,\infty)=\{x:\,x\ge -5\}$\startbuffer%initialize scalenumeric u; 20u=2in;%draw axes\includeMPgraphic{1010_xy_axes_ti}%define functionvardef f(expr x)= sqrt(x+5)enddef;%create function pathpath p; p:=(-5,f(-5));for x=-5 step .1 until 10: p:=p--(x,f(x));endfor;p:=p--(10,f(10));p:=p scaled u;drawarrow p withcolor blue;label.rt(btex $\tfx f$ etex, (10,f(10)) scaled u);%create projection domainfor x=-5 step 1 until 10: drawarrow ((x,f(x))--(x,0)) scaled u withcolor green;endfor;pickup pencircle scaled 2pt; drawarrow (-5u,0)--(10u,0) withcolor red;pickup defaultpen;filleddotred((-5u,0));label.bot(btex $\tfx -5$ etex, (-5u,0));\stopbuffer\startlinecorrection[blank]\midaligned{\processMPbuffer}\stoplinecorrection\column
Re: [NTG-context] column overflow at times --- any thoughts?
David Arnold wrote: > We've edited that page and the problem is gone. To see another > example, consider page 61 of: > > http://msenux.redwoods.edu/IntAlgText/chapter1/chapter1.pdf Can you try to manally add: \displaywidowpenalty0\brokenpenalty0 after the \startcolumns and see if it helps? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cdwincontext
Mojca Miklavec wrote: > > ... and even in that abnormal cases Taco somehow manages to get > Windows 98 installed instead of XP ;) Yeah, well, that was not a really smart move. ;-) > But the problem was that changes to environmental variables were seen > only locally, so it didn't make any sense at all. Do you indeed have > any ideas how to set environmental variables inside of a ruby script, > so that they would be seen from outside? Because that would solve a > whole lot of problems in MikTeX. The traditional trick is to start a new shell/command window inside your script (last line). On Windows, I am more or less certain that you can also store stuff in the registry is a way that is permanent. Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context