Re: [NTG-context] --silent switch seems not to work.
On Saturday 12 August 2006 13:52, Taco Hoekwater wrote: > > I am using texexec 5.4.3. I get warning messages telling me to > > use texmfstart instead but since that script is not functional on my > > What do you mean with 'not functional'? No ruby installed? > > Cheers, > Taco > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context It simply does nothing. If ruby were not installed I would get an error message of some sort. It just exits immediately In fact ruby --help gives me instructions for using ruby so it is installed. BTW The trick you gave me with cont-sys.tex eliminates the font messages after the first pass. Thanks! -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \mathematics
Hi.When writing math I like avoiding $ whenever possible by defining my math operators with \mathematics, e.g.\def\grp{\mathematics{G}}.So far I was using this like I use \EnsureMath in LaTeX, but now I'm running into problems in MPgraphics: Texexec compiles the following file fine until I add the paragraph called "Math in Math in MP". There it seems to somehowchoke on too many $ and \relax.Is there a better way to do such definitions? Thanks,Boris.PS: There's already a problem in the second to last paragraph where the G is not set in math mode any more.The example file:\def\grp{\mathematics{G}}\starttextTest. Running text:A group \grpMath:$\grp$$\grp_{\grp}$Text in MP:\startusableMPgraphic{groupone}label(textext("\grp"),origin) ;\stopusableMPgraphic \useMPgraphic{groupone}Math in MP:\startusableMPgraphic{grouptwo}label(textext("\mathematics{\grp}"),origin) ;\stopusableMPgraphic\useMPgraphic{grouptwo}Math in Math in MP: \startusableMPgraphic{groupthree}label(textext("\mathematics{\grp_{\grp}}"),origin) ;\stopusableMPgraphic\useMPgraphic{groupthree}\stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Snapping sectionhead
> Date: Sun, 13 Aug 2006 23:33:38 +0200 > From: Taco Hoekwater <[EMAIL PROTECTED]> > Subject: Re: [NTG-context] Snapping sectionhead > >>> While I was reading 'In the Details' to learn more about grid- > >>> typesetting, I could not comprehend the examples with > >>> grid={broad,...}. > >>> > >>> Then in section 1.8 I read that grid=line should be a shortcut > for > >>> grid={broad,high,depth}. > >> Section 1.8 deals \exclusively with \externalfigure. Apparently > >> the grid option for sectioning commands is handled differently. > > > > In my version of 'In the Details', dated 2002 chapter 1 deals with > > 'Snapping section heads' and section 1.8 is titled 'Snapping > around > > (broad,high,depth).' > > Is there a newer variant of that manual? > > Must be, I read mine online from > >http://www.pragma-ade.com/general/manuals/details.pdf > > while I was keying in this answer. > > Greetings, > Taco I checked this. But it is the same document! Section 1.8 deals there with 'Snapping section heads' too. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Snapping sectionhead
[EMAIL PROTECTED] wrote: >> Must be, I read mine online from >> >>http://www.pragma-ade.com/general/manuals/details.pdf >> >> while I was keying in this answer. >> >> Greetings, >> Taco > > I checked this. > > But it is the same document! > > Section 1.8 deals there with 'Snapping section heads' too. Oops excuse me. I was reading _chapter 8_ . I'll try to find the difference Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \mathematics
Boris Tschirschwitz wrote: > Hi. > > When writing math I like avoiding $ whenever possible by defining my > math operators with \mathematics, e.g. > \def\grp{\mathematics{G}}. > So far I was using this like I use \EnsureMath in LaTeX, but now I'm > running into problems in MPgraphics: > Texexec compiles the following file fine until I add the paragraph > called "Math in Math in MP". There it seems to somehow > choke on too many $ and \relax. > > Is there a better way to do such definitions? I've changed my local definition of \mathematics to: \unexpanded\long\def\mathematics#1% {\relax\ifmmode#1\else $#1$\fi} And that works nicely. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \mathematics
Cool, it works nicely here, too.Thanks,Boris.On 8/14/06, taco hoekwater <[EMAIL PROTECTED]> wrote: Boris Tschirschwitz wrote:> Hi.>> When writing math I like avoiding $ whenever possible by defining my > math operators with \mathematics, e.g.> \def\grp{\mathematics{G}}.> So far I was using this like I use \EnsureMath in LaTeX, but now I'm> running into problems in MPgraphics:> Texexec compiles the following file fine until I add the paragraph > called "Math in Math in MP". There it seems to somehow> choke on too many $ and \relax.>> Is there a better way to do such definitions?I've changed my local definition of \mathematics to: \unexpanded\long\def\mathematics#1% {\relax\ifmmode#1\else $#1$\fi}And that works nicely.Cheers, Taco___ntg-context mailing list ntg-context@ntg.nlhttp://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] Snapping sectionhead
taco hoekwater wrote: > [EMAIL PROTECTED] wrote: >>> Must be, I read mine online from >>> >>>http://www.pragma-ade.com/general/manuals/details.pdf >>> >>> while I was keying in this answer. >>> >>> Greetings, >>> Taco >> I checked this. >> >> But it is the same document! >> >> Section 1.8 deals there with 'Snapping section heads' too. > > Oops excuse me. I was reading _chapter 8_ . I'll try to > find the difference Ok: yes they are definately different, but at the moment I don't know why. I predict that it is the manual that needs fixing, though. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Floats Method
Taco Hoekwater wrote: > [EMAIL PROTECTED] wrote: > >> Hallo! >> >> In \setupfloats[] what exactly is the difference between textmethod >> and sidemethod? >> > > textmethod is used for floats inside the text flow, sidemethod for > sidefloats. > > >> Compared with the gridsize, why does a 1 point window (method=2) help >> when typesetting on grids? >> > > I assume it corrects for the \lineskip glue. > > >> Isn't 1% (method=1) much more in the most cases than 1 point? >> > > Yes it would be. Perhaps that one is because of \maxdepth, > but I am only guessing. The fact that there are two methods > could be simply a trial-and-error left over. > kind of; depending on the way a document is set up, rounding errors play a role, so the 1pt is taking care if that, while the .99 is th eold method; tricky stuff anyway 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] compiling project files
On Sat, 12 Aug 2006, Derek Schmidt wrote: > The .tuo file for the _product_ file shows the files being loaded. > Compiling the _project_ file yields no .tuo. My product file does > indeed look like what you wrote. Hello Derek, it's not intended to compile the project file. It should contain only common setups for all products. Only components and products should be compiled. Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] where is this wikified stuff?
On Sun, 13 Aug 2006, [EMAIL PROTECTED] wrote: >> Date: Tue, 1 Aug 2006 09:12:34 -0700 >> From: David Arnold <[EMAIL PROTECTED]> >> Subject: Re: [NTG-context] Figure number off one time > ... >>> it's david's turn to wikify this > > Hallo! > > I can not find the place where this and other solutions are saved. > I searched in contextgarden, but with no success. I added a summary of this thread at http://wiki.contextgarden.net/Floating_Objects Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] the closing bracket (structuring syntax)
> And what would be the opposite? > > For example \startquote ... \stopquote > to something like {\MyQuote ... } AFAIK, there is no easy way to do this. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] figure directory is sort of searched
I still can't figure this problem one out, from a few months ago, and it happens with a recent ConTeXt (2006.08.08 21:51). The figure searching code gets confused if a file of the same basename (but in a different directory) has already been loaded. Here is a minimal min.tex to show what I mean: \starttext \setupexternalfigures[directory={1}] \placefigure[here][ch1fig]{should be 1/fig-1.pdf}{\externalfigure[fig-1.pdf]} \setupexternalfigures[directory={2}] \placefigure[here][ch2fig1]{should be 2/fig-1.pdf}{\externalfigure[fig-1.pdf]} \placefigure[here][ch2fig2]{should be 2/fig-2.pdf}{\externalfigure[fig-2.pdf]} \stoptext Probably it's a silly idea to use \setupexternalfigures within the body, but the same problem happens when using components (where each component's preamble has a similar line), where it makes more sense. Here is the directory structure, and all the files are attached as a small (15KB) .tgz: min.tex 1/fig-1.pdf 2/fig-1.pdf 2/fig-2.pdf The final (third) figure is correctly found as 2/fig-2.pdf. But the second figure is reused from 1/fig-1.pdf because another fig-1.pdf has already been found: as 1/fig-1.pdf. Here is the relevant bit from the texexec output: <./1/fig-1.pdf> figures : dimensions of 1/fig-1.pdf loaded from figurefile itself (./min.tuo) (/home/sanjoy/texmf/tex/context/base/pdfr-ec.tex) floatblocks : 1 placed figures : figureobject fig-1.pdf is reused floatblocks : 2 placed <./2/fig-2.pdf> figures : dimensions of 2/fig-2.pdf loaded from figurefile itself floatblocks : 3 placed One part of ConTeXt does know the right figure path. A \getfiguredimensions[fig-1.pdf] after the second \placefigure will trigger a kpathsea search for 2/fig-1.pdf, which it finds. But it still loads 1/fig-1.pdf, which is why I've said 'sort of searched' in the subject line. It seems that the decision about whether a figure is already loaded is made in core-fig.tex, in \def\calculateexternalfigure[#1][#2][#3][#4][#5][#6]% ... \ifcase\figurestatus \let\@@efframe\v!on \let\@@efobject\v!no \showmessage\m!figures1\@@effilename \or \showmessage\m!figures2\@@effullname \or \showmessage\m!figures3{\@@effullname,\@@eflenttype}% \or \showmessage\m!figures4\@@effullname \or \showmessage\m!figures5{\@@effullname,\@@efloadname}% \or % no message \doifnot\@@efsymbol\v!yes{\showmessage\m!figures8\@@effullname}% \fi ... The "no message" comment suggests that when \figurestatus isn't set, the message shown is figures8, which is 8: figureobject -- is reused But I couldn't figure out who sets \figurestatus and where the judgement of 'already loaded' is made. The comment at the beginning of the above \def ("this whole mess needs a clean up anyway") scared me off :-) -Sanjoy `A society of sheep must in time beget a government of wolves.' - Bertrand de Jouvenal searching.tgz Description: example files ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] the closing bracket (structuring syntax)
Am 13.08.2006 um 15:29 schrieb Steffen Wolfrum: > And what would be the opposite? > > For example \startquote ... \stopquote > to something like {MyQuote ... } > > Steffen \def\MyQuote#1{\startquote#1\stopquote} \MyQuote{something to be quoted} ... should work OK, right? Steffen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Context 2006.08.08 odd behaviour
Hi, today i have try to run the *new* one, i get the following error, please can anybody help ;-) --- ruby /home/al/texmf/scripts/context/ruby/texmfstart.rb --verbose texexec layout.text texmfstart version 2.0.0 expanding 'texexec' to 'texexec.rb' locating 'texexec.rb' in current path '.' locating 'texexec.rb' in caller path '/home/al/texmf/scripts/context/ruby' registering 'texexec' as '/home/al/texmf/scripts/context/ruby/texexec.rb' 'texexec.rb' located in caller path registering 'THREAD' as '/home/al/texmf/scripts/context/ruby' starting texexec using 'system' call: ruby /home/al/texmf/scripts/context/ruby/texexec.rb layout.text TeXExec | processing document 'layout.text' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file layout.top TeXExec | using randomseed 853 TeXExec | tex engine: pdfetex TeXExec | tex format: cont-en TeXExec | progname: context This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (/home/al/texmf/web2c/natural.tcx) entering extended mode (./layout.text ConTeXt ver: 2005.01.31 fmt: 2006.8.3 int: english mes: english language: language en is active system : cont-new loaded (/home/al/texmf/tex/context/base/cont-new.tex ! Undefined control sequence. l.14 \newcontextversion {2006.08.08 21:51} ? --- Here the code: ---egrep -v % layout.text \setuppapersize [A4][A4] \setupcolors[state=start] \setuppagenumbering[location={footer,right}] \starttext test \stoptext --- ruby -v ruby 1.8.4 (2005-12-24) [i486-linux] uname -a --- Linux home1 2.6.17-1-686 #1 SMP Sat Jul 29 15:32:47 UTC 2006 i686 GNU/Linux --- It's a debian unstable. Thanks for help && regards Alex ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context