Re: [NTG-context] Part head centering and empty header
Johannes Graumann wrote: > Hans Hagen wrote: > > >> \defineXMLenvironment >> [appendices] >> {\directsetup{appendices:start}} >> {\directsetup{appendices:stop}} >> >> \startsetups appendices:start >> \startappendices >> \setuppagenumbering [ >> way=bytext, >> partnumber=no, >> conversion=numbers, >> location={header,right} >> ] >> \startstandardmakeup [ >> headerstate=empty, >> pagestate=start >> ] >> \framed [ >> width=\textwidth, >> frame=off >> ] { >> \switchtobodyfont[60pt,ss] >> \setupinterlinespace[line=2.8ex] >> Appendices >> \writetolist[part]{Appendices}{} >> } >> \stopstandardmakeup >> \stopsetups >> >> \startsetups appendices:start >> \stopappendices >> \stopsetups >> > > This produces nothing. Fixing 'start' to 'stop' on the third to last line > oeps > doesn't change that. > strange -- - 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] Align with comments
Hi David, On Wed, 3 May 2006, David Arnold wrote: > I think a while back you provided an align example with comments, such as: > > 2x+3=5 Add -3 to both sides > 2x+3-3=5-3 Simplify > 2x=2 Divide both sides by 2 > > Etc. > > Could you provide another sample of this for us? Assuming that you want to align at the = in the equations, you can use the following \startformula \startalign[m=2,distance=4em] \NC 2x + 3 \NC = 5 \NC\NC \text{Add -3 to both sides} \NR \NC 2x + 3 - 3 \NC = 5 - 3 \NC\NC \text{Simplify} \NR \NC 2x \NC = 2 \NC\NC \text{Divide both sides by 2} \NR \stopalign \stopformula If you use this kind of thing frequently, you can add some syntax sugar. \definemathalignment [aligncomments] [m=2,distance=4em] \def\Comment#1\NR{\NC\NC\text{#1}\NR} \startformula \startaligncomments \NC 2x + 3 \NC = 5 \Comment Add -3 to both sides \NR \NC 2x + 3 - 3 \NC = 5 - 3 \Comment Simplify \NR \NC 2x \NC = 2 \Comment Divide both sides by 2 \NR \stopaligncomments \stopformula If you simply want to left align the equations, you can use \definemathalignment [aligncomments] [n=1,align={left},m=2,distance=4em] \def\Comment#1\NR{\NC\text{#1}\NR} \startformula \startaligncomments \NC 2x + 3 = 5 \Comment Add -3 to both sides \NR \NC 2x + 3 - 3 = 5 - 3 \Comment Simplify \NR \NC 2x = 2 \Comment Divide both sides by 2 \NR \stopaligncomments \stopformula Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Duplicate names in figure libraries
Hans et al, I'm afraid I don't know enough xml to understand this. How would something lik this change with your suggested strategy? sec4twoa.png sec4twoa College of the Redwoods Mathematics Department Here's why I asked. You have a team working on Chapter 5, which has sections 1-7. Let's say each person volunteers to write a section. Unless they agree on a naming strategy beforehand, there could be duplicate names in the figure library files. And then you could have several chapters with more sections. On May 3, 2006, at 1:27 PM, Hans Hagen wrote: > Willi Egger wrote: >> Hi David, >> >> unless Hans releases some magic, there is no way than to have >> different >> labels in both files. >> >> > we can consider adding a somename > element so that one has to use somename:somelabel to locate a graphic > > 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
[NTG-context] Align with comments
Aditya, I think a while back you provided an align example with comments, such as: 2x+3=5 Add -3 to both sides 2x+3-3=5-3 Simplify 2x=2 Divide both sides by 2 Etc. Could you provide another sample of this for us? Thanks. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Part head centering and empty header
Hans Hagen wrote: > \defineXMLenvironment > [appendices] > {\directsetup{appendices:start}} > {\directsetup{appendices:stop}} > > \startsetups appendices:start > \startappendices > \setuppagenumbering [ > way=bytext, > partnumber=no, > conversion=numbers, > location={header,right} > ] > \startstandardmakeup [ > headerstate=empty, > pagestate=start > ] > \framed [ > width=\textwidth, > frame=off > ] { > \switchtobodyfont[60pt,ss] > \setupinterlinespace[line=2.8ex] > Appendices > \writetolist[part]{Appendices}{} > } > \stopstandardmakeup > \stopsetups > > \startsetups appendices:start > \stopappendices > \stopsetups This produces nothing. Fixing 'start' to 'stop' on the third to last line doesn't change that. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Synonyms and XML - HOWTO?
Rather than doing this dirtily and on the fly (as implied by the quoted code, I'd like to use synonyms in a more cleaner fashion: separate calling and definition. I have come up with the following code, but have two problems: 1) '' just gives me '[key]' after defining 'shortkeyslightly longer key'. 2) The '\XMLop{key}' should really be the result of that preceeded by a '\' to make the short version callable as a command. How to do that? Thanks for any help, Joh % setup 'synonymes' list called 'abbreviations' \definesynonyms[abbreviation][abbreviations][\infull] % give all out in the list \setupsynonyms[abbreviation][criterium=all] % calls the completelist as a 'chapter' \defineXMLargument [abbreviations] {\completelistofabbreviations} % abbreviations are defined as follows \defineXMLenvironment [abbreviation] [key=] { \defineXMLsave[short] \defineXMLsave[full] } {\expanded{\abbreviation[\XMLop{key}]{\XMLflush{short}}{\XMLflush{full % abbreviations are recalled like this (short version is the default) \defineXMLargument [abb] [key=,opt=short] { \doifelse{\XMLop{opt}}{full} {\expanded{\infull{\XMLop{key {\XMLop{key}} } Johannes Graumann wrote: > \definesynonyms[abbreviation][abbreviations][\infull] > > \defineXMLargument > [abbrev] > [short=,full=] > {\expanded{\abbreviation{\XMLop{short}}{\XMLop{full > > \defineXMLargument [abbreviations] {\completelistofabbreviations} > > \starttext > \startXMLdata > > Blabla short. > \stopXMLdata > \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt + MetaUML
Hi Hans, The example with clearboxes's crash: \setupoutput[pdftex] \starttext \startuseMPgraphic{my_uml_figure} input metauml; Class.A("Point") ("+x: int", "+y: int") (); Class.B("Circle") ("radius: int") ("+getRadius(): int", "+setRadius(r: int):void"); topToBottom(45)(A, B); drawObjects(A, B); clink(aggregationUni)(A, B); \stopuseMPgraphic \placefigure[here]{none}{\useMPgraphic{my_uml_figure}} \stoptext The resulting pdf looks good... strange... I use teTeX on debian + metapost 0.901 [EMAIL PROTECTED]:/usr/share/texmf-tetex/metapost/base$ grep clearboxes * boxes.mp: expandafter def expandafter clearboxes expandafter = boxes.mp: clearboxes cl($); boxes.mp: & "boxjoin();save pic_,sproc_,pproc_;def clearboxes=enddef;"; boxes.mp:extra_endfig := extra_endfig & "clearboxes;"; Now, I have solved my problem with this (horrible!?) hack: \startuseMPgraphic{my_uml_figure} input metauml; beginfig(1); Class.A("Point") ("+x: int", "+y: int") (); Class.B("Circle") ("radius: int") ("+getRadius(): int", "+setRadius(r: int):void"); topToBottom(45)(A, B); drawObjects(A, B); clink(aggregationUni)(A, B); endfig; \stopuseMPgraphic I don't want to put "input metauml;" within MPinclusions because for my PhD thesis, I have a lot of MPgraphic (without MetaUML) and: 1. I don't want to load metauml for each metapost run 2. I use MetaObj... (MetaUML and MetaObj interfere to each other) Cheers, Renaud Hans Hagen a écrit : Renaud AUBIN wrote: clearboxes ! Isolated _expression_. can you grep your metapost tree for 'clearboxes'? where is it defined? 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] Duplicate names in figure libraries
Willi Egger wrote: > Hi David, > > unless Hans releases some magic, there is no way than to have different > labels in both files. > > we can consider adding a somename element so that one has to use somename:somelabel to locate a graphic 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] Part head centering and empty header
Johannes Graumann wrote: > John R. Culleton wrote: > > >> I would take a different approach, with each part header (there >> can't be that many) enclosed in >> \startstandardmakeup >> and >> \stopstandardmakeup >> >> To get the part into the TOC there is a command to write an >> entry manually, with \writetolist. >> > > Thanks a lot for this comment. It solved my problem. I'm now using: > > \defineXMLenvironment > [appendices] > {% > \startappendices > \setuppagenumbering > [% > way=bytext,% > partnumber=no,% > conversion=numbers,% > location={header,right}% > ]% > \startstandardmakeup > [% > headerstate=empty,% > pagestate=start% > ] > \framed > [% > width=\textwidth,% > frame=off,% > ] > {% > \ss\switchtobodyfont[60pt]\setupinterlinespace[line=2.8ex] > Appendices > \writetolist[part]{Appendices}{} > } > \stopstandardmakeup > } > {\stopappendices} > > And it does exactly what I want. > less messing around with %'s: \defineXMLenvironment [appendices] {\directsetup{appendices:start}} {\directsetup{appendices:stop}} \startsetups appendices:start \startappendices \setuppagenumbering [ way=bytext, partnumber=no, conversion=numbers, location={header,right} ] \startstandardmakeup [ headerstate=empty, pagestate=start ] \framed [ width=\textwidth, frame=off ] { \switchtobodyfont[60pt,ss] \setupinterlinespace[line=2.8ex] Appendices \writetolist[part]{Appendices}{} } \stopstandardmakeup \stopsetups \startsetups appendices:start \stopappendices \stopsetups (spaces and lineending are ignored, use \space when a space is needed) - 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 + MetaUML
Renaud AUBIN wrote: > > >> clearboxes > ! Isolated expression. can you grep your metapost tree for 'clearboxes'? where is it defined? 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] Synonyms and XML - HOWTO?
Mojca Miklavec wrote: > [criterium=all] Thanks for the tip. Works now. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] separating layout from content: section blocks?
On 5/1/06, Andrew D. Crouse wrote: > To whom it may concern, > > I have a large document with several distinct pieces. Each piece has > different layout requirements. I can setup the layout before each > piece, but I would prefer to separate the layout from content. > Currently what is the best way to do this? I guess that you can use \startsetups[somename] ... whatever setups you need ... \stopsetups and then recall them by \setups[somename] I first saw the example of usage here, but didn't try them out by myself yet: http://source.contextgarden.net/tex/context/base/s-mag-01.tex http://www.pragma-ade.com/general/magazines/mag-.pdf Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Synonyms and XML - HOWTO?
On 5/2/06, Johannes Graumann wrote: > Hello, > > I'm trying to get the following to work: > > \definesynonyms[abbreviation][abbreviations][\infull] \setupsynonyms[abbreviation][criterium=all] Otherwise only the used synonyms will be written to the list. (\infull{short}) > \defineXMLargument > [abbrev] > [short=,full=] > {\expanded{\abbreviation{\XMLop{short}}{\XMLop{full > > \defineXMLargument [abbreviations] {\completelistofabbreviations} > > \starttext > \startXMLdata > > Blabla short. > \stopXMLdata > \stoptext > > But I don't succeede: the synonym is not put out. Any ideas on what I'm > screwing up? > > Joh Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Accessing local files -- relative file names?
Thanks Willi,I mistakenly believed \goto only works within one document.My current solution is to use\goto{3DXM}[program(/test/cycloids.ODE3D)]which works in Acrobat (not in preview though, which is something I can live with)and TeXShop.Curiously enough, if I use relative file names, they still work in Acrobat but not inTeXShop anymore...Thanks again!MatthiasOn May 3, 2006, at 12:18 PM, Willi Egger wrote:Please look the details up in the widget-manual ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mp file not compiling
On Wed, 3 May 2006, Mojca Miklavec wrote: > On 5/3/06, Aditya Mahajan wrote: >> Hi, >> Is the mp support for btex...etex broken in the latest context >> (ConTeXt ver: 2006.04.27 15:59) The following does not compile, >> >> \starttext >> \startMPpage >>label(btex This is a test etex, origin) ; >> \stopMPpage >> \stoptext >> >> I get an error >> >> ! Unable to make mpx file. >> l.123 label(btex >>This is a test etex >> >> Even an mp file >> >> beginfig(1) >>label(btex hello world etex, origin) ; >> endfig >> end; >> >> with texexec --mptex gives the same error message. >> >> Can somebody confirm this? Or is something broken at my end? > > First of all: > 1. in case you are using windows, update "texmfstart.exe" from > cont-win.zip (you have to do that every now and then) I am indeed using windows. I deleted my entire tree and downloaded the latest mswincontext.zip, uninstalled it. I verified that texmfstart.exe is in the path and ran texmfstart newtexexec --mptex and get the same error. > 2. check that "texexec" is a synonym (for example texexec.bat under > windows or an executable) for running "texmfstart [new]texexec" I did check that. texexec is a synonym for texmfstart newtexexec. Infact, the example does not compile on live.contextgarden.net I get the same error message when I compile the tex file there. > 3. Hans would say that you have to use "textext" instead of btex ... etex with \startMPpage label(textext("This is a test"),origin) ; \stopMPpage I get || >> test1-mpgraph.mp || >> test1-mpgraph.mpx || ! Unable to make mpx file. || l.124 texpictures[1] := btex || This is a test etex ; as textext internally uses btex/etex. In the pdf file I get *unknown* instead of *This is a test*. I guess that unknown is textext's fallback mechanism. > I doubt that this came with the latest distribution. The btex/etex and > textext functionality is a bit broken anyway: sometimes it works and > sometimes it doesn't. This is the first time I found it to be broken. > It depends a lot on the system that you use > (MikTeX/tetex/standalone), on texexec that you run (texexec or > newtexexec), how you run it (a batch/shell script with "texmfstart > [new]texexec" or from linux/windows binaries that come with other > distributions than the standalone one). I am using the standalone distribution from pragma on windows. > It might also be that "write18" is set to off, it might be that some > \runMP[TEX]graphic[s]true, \forceMP[TEX]graphic[s]true are set to > false (chech your cont-usr.tex file). (I don't know which variable > does what, but if you try to use an undefined one, TeX will complain > anyway. Check the sources or try to switch on all the possible > combinations of the commands mentioned above.) I had \runMPgraphicstrue and \runMPTEXgraphicstrue in cont-sys.tex I added \forceMPTEXgraphictrue to cont-sys.tex and remade the formats. Still, I get the same error. I checked in texmf.cnf and mpxcommand is set to makempx If I run makempx.exe test.mp test.mpx I get dvitomp.exe: mpx3568.dvi: No such file or directory makempx: Command failed: dvitomp mpxerr.dvi test.mpx makempx: can't move mpx3568.dvi to mpxerr.dvi: No such file or directory mpx3568.mp has one line "end." and mpxerr.log is empty. The help of makempx says that makempx is equivalent to mpto -tex, texexec --batch --once --nomp, and dvitomp If I follows these steps manaually, adding --dvi to texexec I get an mpx file. My guess that the error is because 1. texmfstart texexec calls newtexexec 2. On the standalone distribution, newtexexec produces pdf by default. To check this, I created a texexec.bat file in my current directory so that it calls texmfstart texexec.pl and everything works fine now. Thus, for the time being, I have changed my texexec.bat to call texexec.pl. To use newtexexec, makempx should be changed to call texexec --batch --once --nomp --dvi ^^ Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mixing fonts ?
Hi Wim, You can have a look into the files in the distribution beginning with "type-". Most of the free fonts are already defined in those files \usetypescript[times][texnansi] ---> get times, this will result in tx-fonts for math. Otherwise define your own typeface: \starttypescript[myfont][texnansi] \definetypeface[Times-CMR][rm][serif][times][default][encoding=\typescripttwo] \definetypeface[Times-CMR][ss][sans] [helvetica] [default] [encoding=\typescripttwo,rscale=0.9] \definetypeface [Times-CMR] [tt] [mono] [modern][default] [encoding=\typescripttwo,rscale=1.05] \definetypeface [Times-CMR] [mm] [math] [modern] [default] [encoding=\typescripttwo] \stoptypescript \usetypescript[myfont][texnansi] \setupbodyfont[Times-CMR, rm, 12pt] \starttext This is Times, \fontname\font \blank $$a^2 + b^2 = c^2$$ {\switchtobodyfont[ss,16pt] it works} \stoptext Another source for getting into this is the context wiki: http://wiki.contextgarden.net/Main_Page Kind regards Willi WN wrote: >I am trying to learn more about font switching (read the font manuals >but to no avail). >The thing I am trying to do is : > >* For normal text I want to use the Times-Roman font >* For math's I want to use a different font, i.e. Computer Modern > >I think I have to work with typescripts and use combinations of >\setupbodyfont but >I cannot work out the proper combination. > >Thanks for any help >Regards >Wim > >___ >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] ConTeXt minimal distribution + bibtex
Hello, I am trying to setup bibtex with ConTeXt minimal distribution but with no success yet. Is there any recommeded way to do it? Piotr -- Piotr Kopszak, Ph.D. Polish Art Gallery, National Museum in Warsaw ->http://kopszak.mnw.art.pl/ http://www.magnatune.com/artists/altri_stromenti ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt minimal distribution + bibtex
On 5/2/06, Piotr Kopszak wrote: > Hello, > > I am trying to setup bibtex with ConTeXt minimal distribution but with > no success yet. Is there any recommeded way to do it? > > Piotr For bibliography there's a wiki page on http://wiki.contextgarden.net/Bibliography and the manual on http://modules.contextgarden.net/bib. You don't need any special settings for bibtex (Taco's bib module) to work with ConTeXt. For installation you only need to unzip the files from http://www.pragma-ade.com/download-1.htm, for example http://www.pragma-ade.com/context/install/mswincontext.zip for windows. and execute the proper batch file which sets the environmental variables and path properly. See also http://wiki.contextgarden.net/Main_Page#Installing_ConTeXt and ask again if you struggle against any troubles (tell on which platform you wanted to install and what went wrong/didn't work). You have to ask more specifically, otherwise it's difficult to answer you. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Accessing local files to launch helper progam using \useURL and \from
Hi Matthias, I would suggest to use \goto... Please look the details up in the widget-manual Kind regards Willi Matthias Weber wrote: >Dear all, > >I am trying to us \useURL and \from with mixed success to access a >local file so that it will be >opened by a helper program. Both the program and the file to be >opened by it >reside in my local file system. Here is a small example: > >\setupcolors[state=start] > >\setupinteraction >[state=start,color=blue] > > >\useURL[cycloids][{file://3dxm/cycloids.stng}][][3DXM] > >\starttext > >\inmargin{\from[cycloids]} >In this section, we study curves that are obtained by tracing a point >on a fixed circle while it is rolling along another circle. > >\stoptext > > > >cycloids.stng is a file, that, when double-clicked, starts a program >it is associated with. >For trying, you can replace it by any other file that uses a special >application to go with. > >Unfortunately, this *only* works with the pdf viewer in TeXShop (I am >on a Mac). >Preview doesn't do anything but beep, and Acrobat 6 offers a few >choices, none of which is to >open a helper application. Does anybody know if there is another way >of launching helper >applications when accessing documents? > >Also, while at it: When accessing local files, the URL appears to be >absolute. Is there a way to use >URLs relative to the location of the PDF that is referencing the URL? > >Thanks, > >Matthias >___ >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] Duplicate names in figure libraries
Hi David, unless Hans releases some magic, there is no way than to have different labels in both files. Willi David Arnold wrote: >Hans et al, > >I have two figure libraries, figlibSection1.xml and >figlibSection2.xml. In the first, I have: > > >sec1rat1.png >rat1 >College of the Redwoods Mathematics Department > > > >In the second, I have: > > >section2figs-mpgraph.1 >rat1 >College of the Redwoods Mathematics Department > > > >Now, section1.tex does: > >\usefigurebase[figures/figlibSection1] > >And later: > >\startbuffer[figure] >\startcombination[3*1] > {\externalfigure[rat1][width=.2\textwidth]}{(a)} > {\externalfigure[rat2][width=.2\textwidth]}{(b)} > {\externalfigure[rat3][width=.2\textwidth]}{(c)} >\stopcombination >\stopbuffer > >\placefigure >[][fig:rat] >{The calculator attempts to draw a continuous function when it >shouldn't.} >{\getbuffer[figure]} > > >Section2.tex does: > >\usefigurebase[figures/figlibSection2] > >And later: > >\placefigure >[][fig:rat1] >{The numerator is zero at $x=-2$. This is an $x$-intercept of the >graph. The denominator is zero at $x=3$. This is a vertical asymptote >of the graph.} >{\externalfigure[rat1]} > >All is fine if I compile section1.tex and section2.tex separately. >But I have chapter6.tex with: > >\startproduct chapter6 > >\project book > >\startbodymatter > >\setupheadnumber[chapter][5] > >\chapter[chap:6]{Rational Functions} > >\component chapter6/section1 %Introducing Rational Functions > >\component chapter6/section2 %Zeros and Asymptotes > >\stopbodymatter > >\stopproduct > >When I compile this, the rat1 in section2.tex uses the rat1 meant for >section1.tex instead. Any I can fix this other than giving unique >names to everything? >___ >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] separating layout from content: section blocks?
Hi Andrew, Humble, what I do is using the project structure and load layout files at the moment I need the new layout-features. - Indeed I separate the layout, the setups from the content. Loading such files can best be done with \environment respectivefile. Kind regards Willi Andrew D. Crouse wrote: >To whom it may concern, > >I have a large document with several distinct pieces. Each piece has >different layout requirements. I can setup the layout before each >piece, but I would prefer to separate the layout from content. >Currently what is the best way to do this? > >I have tried defining section blocks and then specifying the layout >for the section blocks between \startsectionblockenvironment >[mySectionBlock] and \stopsectionblockenvironment commands. I have >also tried the project, product, component, environment structure >from the manuals. I have not had success with either method. > >I would be very interested to know the approach taken by more >experienced users. > >Thank you for your help. > >Sincerely, > >Andrew Crouse >___ >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] mp file not compiling
On 5/3/06, Aditya Mahajan wrote: > Hi, > Is the mp support for btex...etex broken in the latest context > (ConTeXt ver: 2006.04.27 15:59) The following does not compile, > > \starttext > \startMPpage >label(btex This is a test etex, origin) ; > \stopMPpage > \stoptext > > I get an error > > ! Unable to make mpx file. > l.123 label(btex >This is a test etex > > Even an mp file > > beginfig(1) >label(btex hello world etex, origin) ; > endfig > end; > > with texexec --mptex gives the same error message. > > Can somebody confirm this? Or is something broken at my end? First of all: 1. in case you are using windows, update "texmfstart.exe" from cont-win.zip (you have to do that every now and then) 2. check that "texexec" is a synonym (for example texexec.bat under windows or an executable) for running "texmfstart [new]texexec" 3. Hans would say that you have to use "textext" instead of btex ... etex I doubt that this came with the latest distribution. The btex/etex and textext functionality is a bit broken anyway: sometimes it works and sometimes it doesn't. It depends a lot on the system that you use (MikTeX/tetex/standalone), on texexec that you run (texexec or newtexexec), how you run it (a batch/shell script with "texmfstart [new]texexec" or from linux/windows binaries that come with other distributions than the standalone one). It might also be that "write18" is set to off, it might be that some \runMP[TEX]graphic[s]true, \forceMP[TEX]graphic[s]true are set to false (chech your cont-usr.tex file). (I don't know which variable does what, but if you try to use an undefined one, TeX will complain anyway. Check the sources or try to switch on all the possible combinations of the commands mentioned above.) Since the topic is already open: Hans, if you find out what is going on with those input-ed strings, can you please also check what has to be done to enable "textext" under XeTeX? The more combinations I try, the more I break the system as the whole, so that I even had to reinstall everything. How does "runtexmpjob" know which TeX engine to use? Here the labels are processed with pdfTeX instead of being processed with XeTeX. I also have some problems with defining the proper font for those labels, but that's another story anyway. Thanks a lot, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mp file not compiling
Aditya Mahajan wrote: > Hi, > Is the mp support for btex...etex broken in the latest context > (ConTeXt ver: 2006.04.27 15:59) The following does not compile, > > \starttext > \startMPpage >label(btex This is a test etex, origin) ; > \stopMPpage > \stoptext > > I get an error > > ! Unable to make mpx file. > l.123 label(btex >This is a test etex > > Even an mp file > > beginfig(1) >label(btex hello world etex, origin) ; > endfig > end; > > with texexec --mptex gives the same error message. > > Can somebody confirm this? Or is something broken at my end? > Both examples work here (27.4.2006). My best wishes for a fast and successful bug hunt ;) Greets, Peter > Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Accessing local files -- more precise description
Dear all again, as a follow-up to my previous question, I think I can now ask more precisely: In Acrobat, a linked document can be treated in different ways. A 'webdocument' is typically just downloaded (and opened in Acrobat if possible). This is the behavior I get when using \from with \useURL. There is another possible behavior, called 'Open File' in Acrobat, which will launch a program to open the linked document. This is what I want. Is this feature of Acrobat accessible in ConTeXt? (I can manually edit the pdf to this effect in Acrobat). Thanks again, Matthias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TABLE + \rotate problem
Peter Münster wrote: > On Thu, 27 Apr 2006, Karsten Heymann wrote: > >> Why is the "Low Tech" typeset as it is below? > > I don't know why, but you could try \rotate[rotation=90]{\hbox{Low Tech}} I now use \framed (without a frame) and it seems to work. Thanks, Karsten -- | ~ Karsten Heymann ~ | Christian-Albrecht-Universität zu Kiel | | Fon: +49 431 880-1186 |Netzwerkteam des Ökologiezentrum| | Fax: +49 431 880-4083 | http://www.ecology.uni-kiel.de | | - Selbständiger EDV-Dienstleister im Auftrag des ÖZK - | signature.asc Description: OpenPGP digital signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] installation problem
Hello, my customer has tried to install the current context minimal installation (following my instructions :-/) and is running into the following problem (I currently don't have more information but can ask for): when running texexec --make --alone he gets: SNIP unable to locate base/kpseremote on library paths: /usr/lib/ruby/site_ruby/1.6 /usr/lib/ruby/site_ruby/1.6/i686-linux /usr/lib/ruby/site_ruby /usr/lib/ruby/1.6 /usr/lib/ruby/1.6/i686-linux . /home/archiv/tex/texmf-linux/bin /home/archiv/tex/texmf-linux/bin/texmfstart-lib /home/archiv/tex/texmf-local/scripts/context/ruby /home/archiv/tex/texmf/scripts/context/ruby an option is to copy /scripts/context/ruby/base to e.g. /texmfstart-lib/base /home/archiv/tex/texmf-linux/bin/texmfstart:167:in `check_kpse': uninitialized constant KpseRemote (NameError) from /home/archiv/tex/texmf-linux/bin/texmfstart:552:in `find' from /home/archiv/tex/texmf-linux/bin/texmfstart:1027:in `execute' from /home/archiv/tex/texmf-linux/bin/texmfstart:1022:in `process' from /home/archiv/tex/texmf-linux/bin/texmfstart:1022:in `execute' from /home/archiv/tex/texmf-linux/bin/texmfstart:1044 SNAP--- :~> set | grep tex OLDPWD=/home/archiv/tex PATH=/home/archiv/tex/texmf-linux/bin:/home/archiv/bin:/usr/local/bin:/usr/b in:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/b in:/usr/lib/java/jre/bin:/opt/gnome/bin:. SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments: monitor TEXMFCNF='$TEXROOT/texmf{-local,}/web2c' TEXMFEXTRA=/home/archiv/tex/texmf-extra TEXMFFONTS=/home/archiv/tex/texmf-fonts TEXMFLOCAL=/home/archiv/tex/texmf-local TEXMFMAIN=/home/archiv/tex/texmf TEXMFOS=/home/archiv/tex/texmf-linux TEXMFPROJECT=/home/archiv/tex/texmf-project TEXROOT=/home/archiv/tex VARTEXMF=/texmf-var tex | latex) e='!*.+(tex|TEX|texi|latex)' :~> Does someone have an idea what causes the problem? -- | ~ Karsten Heymann ~ | Christian-Albrecht-Universität zu Kiel | | Fon: +49 431 880-1186 |Netzwerkteam des Ökologiezentrum| | Fax: +49 431 880-4083 | http://www.ecology.uni-kiel.de | | - Selbständiger EDV-Dienstleister im Auftrag des ÖZK - | signature.asc Description: OpenPGP digital signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TABLE + \rotate problem
Hi Peter, Peter Münster wrote: > \bTD[nr=7,align=low] thanks, I overlooked that option! Yours, Karsten -- | ~ Karsten Heymann ~ | Christian-Albrecht-Universität zu Kiel | | Fon: +49 431 880-1186 |Netzwerkteam des Ökologiezentrum| | Fax: +49 431 880-4083 | http://www.ecology.uni-kiel.de | | - Selbständiger EDV-Dienstleister im Auftrag des ÖZK - | signature.asc Description: OpenPGP digital signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mixing fonts ?
On Wed, 2006-05-03 at 12:54 +0200, WN wrote: > I am trying to learn more about font switching (read the font manuals > but to no avail). > The thing I am trying to do is : > > * For normal text I want to use the Times-Roman font > * For math's I want to use a different font, i.e. Computer Modern > > I think I have to work with typescripts and use combinations of > \setupbodyfont but > I cannot work out the proper combination. > > Thanks for any help > Regards > Wim This should work: \usetypescript[modern] \usetypescript[times][ec] \definetypeface[MyFace][rm][serif][times][default][encoding=ec] \definetypeface[MyFace][mm][math][modern][default][encoding=ec] \setupbodyfont[MyFace,12pt] There's some interesting stuff on the wiki: http://wiki.contextgarden.net/Psnfss HTH Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] some basic TABLE questions
Hi Willi, sorry for the late reply, was a bit ill Willi Egger wrote: > \setupbackgrounds[text][state=repeat,background=screen,backgroundscreen=.8] I'll try that, but the frame coloring is just for debugging. My intention was to control the exact aligning of the table on the page. > bTABLE breaks over pages if you use [split=repeat] together with a\ > bTABLEhead...\eTABLEhead. > Using the \rotate command prevents breaking, Possibly you better use > \setuppapersize[a4,landscape][a4,landscape], which of course rotates > the whole layout including headers and footers. I didn't think of that, I'll try it out. > I am afraid, that once you include the table into a \placefigure > environment, breaking is prevented. Is there a way to add a caption without \placetable then? > I was able to break a long table with a merged cell as you have it in > the first column. However there is possibly a bug, because this column > has no "bottomframe". > In order to place the "LOW TECH" text correctly you might use a \framed > command within the table > \bTD[nr=7,align=lohi] \rotate[rotation=90]{\framed[frame=off, > offset=.5em,align=center,width=3cm]{Low Tech}}\eTD I'll try that too. Thanks alot, Karsten -- | ~ Karsten Heymann ~ | Christian-Albrecht-Universität zu Kiel | | Fon: +49 431 880-1186 |Netzwerkteam des Ökologiezentrum| | Fax: +49 431 880-4083 | http://www.ecology.uni-kiel.de | | - Selbständiger EDV-Dienstleister im Auftrag des ÖZK - | signature.asc Description: OpenPGP digital signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Mixing fonts ?
I am trying to learn more about font switching (read the font manuals but to no avail). The thing I am trying to do is : * For normal text I want to use the Times-Roman font * For math's I want to use a different font, i.e. Computer Modern I think I have to work with typescripts and use combinations of \setupbodyfont but I cannot work out the proper combination. Thanks for any help Regards Wim ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context