[NTG-context] Re: documentation: parameters of \setuplist

2024-04-22 Thread Duncan Hothersall
Hi Hraban, I can help with one - aligntitle means an unnumbered section will align in the table of contents under the number rather than the title. So for example if you have a TOC combining \section and \subject entries, they would look like this: 1 ... A section A subject rather than 1 ... A

[NTG-context] Re: enhancing MetaPost presentation progress graphics

2023-07-19 Thread Duncan Hothersall
I am in awe at this. Thanks for sharing. On Wed, 19 Jul 2023 at 18:11, Henning Hraban Ramm wrote: > Am 19.07.23 um 14:07 schrieb Taco Hoekwater: > > First, find the actual point along the curve of the wave you want, then > you can ask for the direction of the wave at that time, and its point: >

Re: [NTG-context] numbering questions

2022-12-31 Thread Duncan Hothersall via ntg-context
I can't test right now but would something like \setuphead[Day][sectionsegments=Day:Month:Year] help? Duncan On Sat, 31 Dec 2022 at 17:24, Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote: > A happy new year to everyone! > > I’m playing with some examples of section numbering.

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread Duncan Hothersall via ntg-context
Hi Thomas. I'm not sure about the code, sorry, but I do know that an XML document can't have two IDs of the same value. Typically you would use a linkend attribute on the element which is referencing an id (in this case the topics, I think). Probably doesn't help with your problem, but it's

Re: [NTG-context] overprinting black

2022-11-09 Thread Duncan Hothersall via ntg-context
Have you tried overprint=yes? I have that in old files which used to work under mkii. I must admit I haven't had the need to use overprinting since then, but I do recall that come colour handling wasn't ported across to mkiv or later. Duncan On Wed, 9 Nov 2022 at 16:12, Henning Hraban Ramm via

Re: [NTG-context] MathML when processing XML

2022-05-30 Thread Duncan Hothersall via ntg-context
resulted in glorious formulas coming out. Duncan On Sun, 29 May 2022 at 22:23, Duncan Hothersall wrote: > This feels like a really stupid question but I can't find an answer to it > anywhere. > > When processing an XML file directly with ConTeXt, i.e. > using \startxmlsetups rules,

[NTG-context] MathML when processing XML

2022-05-29 Thread Duncan Hothersall via ntg-context
This feels like a really stupid question but I can't find an answer to it anywhere. When processing an XML file directly with ConTeXt, i.e. using \startxmlsetups rules, how can I make use of the MathML module for the MathML content in my XML source? Should I include a specific piece of code with

Re: [NTG-context] XML Namespaces and XML Setups

2022-05-24 Thread Duncan Hothersall via ntg-context
st] > >xmlns:o="NameSpaceO"> > text text > > \stopbuffer > \xmlprocessbuffer{demo}{test}{} > \stoptext > > > On 23 May 2022, at 09:07, Duncan Hothersall via ntg-context < > ntg-context@ntg.nl> wrote: > > > > I found this un

Re: [NTG-context] XML Namespaces and XML Setups

2022-05-23 Thread Duncan Hothersall via ntg-context
I found this unanswered question on the list from November 2020 and find today that I have the same question. How can one handle elements with the same name but in different namespaces? How should the different \startxmlsetups commands be written? Thanks. Duncan On Mon, 16 Nov 2020 at 13:37,

Re: [NTG-context] XML: calculations on attribute values before output

2022-05-05 Thread Duncan Hothersall via ntg-context
. Thanks again. Duncan On Thu, 5 May 2022 at 08:21, Taco Hoekwater wrote: > > > > On 4 May 2022, at 22:10, Duncan Hothersall via ntg-context < > ntg-context@ntg.nl> wrote: > > > > Hi. > > > > I'm processing an XML table and need to set a row span. Becau

[NTG-context] XML: calculations on attribute values before output

2022-05-04 Thread Duncan Hothersall via ntg-context
Hi. I'm processing an XML table and need to set a row span. Because we use a variant of the CALS table model, spans are defined by an attribute saying how many *additional* rows should be spanned, as opposed to how many *in total*. So to translate this into TABLE \bTD[nr=X] syntax I need to add

Re: [NTG-context] XML processing instructions

2022-05-03 Thread Duncan Hothersall via ntg-context
= string.gsub(data, '<%?capdm %*force_line_stop%?>', '') return data end \stopluacode \startsetups xml:directive:injector:newline \crlf \stopsetups Duncan On Mon, 2 May 2022 at 09:24, Duncan Hothersall wrote: > Many thanks Denis. Very useful tip on the injectors and generalised > c

Re: [NTG-context] XML processing instructions

2022-05-02 Thread Duncan Hothersall via ntg-context
tive} > > > > > > > > > > > > Best, > > Denis > > > > *Von:* Maier, Denis Christian (UB) > *Gesendet:* Montag, 2. Mai 2022 09:45 > *An:* 'mailing list for ConTeXt users' > *Cc:* Duncan Hothersall > *

Re: [NTG-context] XML processing instructions

2022-05-02 Thread Duncan Hothersall via ntg-context
Apologies, there are two rogue * in the lxml.preprocessor code, but even when they are removed it doesn't work. On Mon, 2 May 2022 at 08:19, Duncan Hothersall wrote: > I have a big set of existing XML books (held in a derivative of DocBook) > which I'm looking to start processing di

[NTG-context] XML processing instructions

2022-05-02 Thread Duncan Hothersall via ntg-context
I have a big set of existing XML books (held in a derivative of DocBook) which I'm looking to start processing directly with ConTeXt. (Up to now I have a system which converts the XML into ConTeXt code which is then processed, but this is inefficient and lots of the code is now unsupported.) I've

Re: [NTG-context] Space around figure

2022-04-28 Thread Duncan Hothersall via ntg-context
You should be able to change the space above and below a float with the spacebefore and spaceafter keys to \setupfloat. I think the default value is big for each, but you can override that with null. Something like \setupfloat[figure][spacebefore=,spaceafter=] Hope that helps. Duncan On Thu,

Re: [NTG-context] How to group list of figures and list of tables by chapter?

2022-03-30 Thread Duncan Hothersall via ntg-context
You could try using \writebetweenlist hooked into \setuphead[chapter]? Something like (untested): \setuphead[chapter][before={\writebetweenlist[figure][location=here]{\blank}}] (Sorry, can't currently test this.) Duncan On Thu, 31 Mar 2022 at 06:31, Werner Schmidt via ntg-context <

Re: [NTG-context] Bloody PDF boxes and cr*p marks!

2021-10-31 Thread Duncan Hothersall via ntg-context
Thank you for this, that's the first time this stuff has made any sense to me. On Sat, 30 Oct 2021 at 20:22, Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote: > I finally reworked the wiki page https://wiki.contextgarden.net/PDF_Boxes > and also extended

Re: [NTG-context] A book with sections

2021-10-24 Thread Duncan Hothersall via ntg-context
___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki

Re: [NTG-context] mathcolor attribute in MathML (mkiv)

2021-05-27 Thread Duncan Hothersall
and dodgy support especially in the browser world. Maths on the web is still a little bit wild west. Thanks again. Duncan On Thu, 27 May 2021 at 18:00, Hans Hagen wrote: > On 5/27/2021 6:30 PM, Duncan Hothersall wrote: > > Apologies Hans. > > > > MWE: > > > >

Re: [NTG-context] mathcolor attribute in MathML (mkiv)

2021-05-27 Thread Duncan Hothersall
Apologies Hans. MWE: \usemodule[newmml] \starttext \xmlprocessdata{}{ E π }{} \stoptext The π symbol does not show in red. Duncan On Thu, 27 May 2021 at 17:18, Hans Hagen wrote: > On 5/27/2021 5:47 PM, Duncan Hothersall wrote: > > Hello list. > > > &

[NTG-context] mathcolor attribute in MathML (mkiv)

2021-05-27 Thread Duncan Hothersall
Hello list. I'm trying to use colour in some MathML formulae using the mathcolor attribute. It seems to have no effect on the output. I can see \applymmlmathcolor in the x-mathml.mkiv source but I can't see how to make it work. Does anyone have any pointers? (Does lmtx support this?) Thanks.

Re: [NTG-context] arbitrary context commands in xml file

2021-03-08 Thread Duncan Hothersall
On Mon, 8 Mar 2021 at 12:46, Hans Hagen wrote: > > I'd like to second Denis' request for support for XML processing > > instructions to execute ConTeXt code, rather than elements which can > > cause big problems if one is working to a fixed schema. It would be a > > boon to be able to drop in

Re: [NTG-context] arbitrary context commands in xml file

2021-03-08 Thread Duncan Hothersall
On Mon, 8 Mar 2021 at 10:21, wrote: > > -Ursprüngliche Nachricht- > > Von: Hans Hagen > > Gesendet: Freitag, 5. März 2021 23:17 > > An: mailing list for ConTeXt users ; Maier, Denis > > Christian (UB) ; > > wolfgang.schuster.li...@gmail.com > > Betreff: Re: [NTG-context] arbitrary

Re: [NTG-context] index issues

2020-11-06 Thread Duncan Hothersall
On Fri, 6 Nov 2020 at 14:31, Henning Hraban Ramm wrote: > > > > Am 06.11.2020 um 12:54 schrieb Duncan Hothersall : > > > > Without MWE try \showinjector and \setinjector. > > > > I would add to that that when experimenting with \showinjector you need > to

Re: [NTG-context] index issues

2020-11-06 Thread Duncan Hothersall
On Fri, 6 Nov 2020 at 11:52, Jano Kula wrote: > > On Fri, 6 Nov 2020 at 12:24, Henning Hraban Ramm wrote: > >> Hello again, >> >> still struggling with indexes. >> >> I’ll prepare MWEs, but maybe you can answer some of these without? >> > > Hello Hraban! > > Without MWE try \showinjector >

Re: [NTG-context] How to really set the paper margin?

2020-11-04 Thread Duncan Hothersall
Hi Sylvain, This page may be useful: https://wiki.contextgarden.net/Layout Basically the core parameters are backspace and width, and topspace and height. Everything else hangs off them. Duncan On Wed, 4 Nov 2020 at 15:48, Sylvain Hubert wrote: > Dear List, > > The following example results

Re: [NTG-context] Fine tuning an index

2020-10-09 Thread Duncan Hothersall
worked around it by adding \setinjector[register][1][\relax] after \showinjector. On Fri, 9 Oct 2020 at 07:25, Duncan Hothersall wrote: > Brilliant, thanks, I didn't know about that one. Much appreciated. > > Duncan > > On Thu, 8 Oct 2020 at 21:36, jbf wrote: > >>

Re: [NTG-context] Fine tuning an index

2020-10-09 Thread Duncan Hothersall
so need \showinjector. But it should work for indexes > (register). > > Julian > On 9/10/20 2:58 am, Duncan Hothersall wrote: > > Fine tuning column and page breaking in an index. This is tricky, because > there are usually very few "good" places to break an index, and au

[NTG-context] Fine tuning an index

2020-10-08 Thread Duncan Hothersall
I'm doing my first mkiv index (it took me a long time to upgrade from mkii!) and I really like the processor feature to format elements differently. But there are a couple of things I would really like to achieve that I'm struggling with: 1. Elided numbers in an index range entry. For example

[NTG-context] Index range with page number suffix

2020-09-24 Thread Duncan Hothersall
(Using mkiv.) I have an index in which some entries need suffixes on the page numbers, for which I have used processors. For index ranges, I need the page number suffix only to appear on the end page number, not the start page number. The below MWE produces an index entry: sausage 1i-2i What

Re: [NTG-context] Overriding the number on a float

2020-08-25 Thread Duncan Hothersall
lman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > -- Duncan Hothersall

[NTG-context] Overriding the number on a float

2020-08-23 Thread Duncan Hothersall
I think there was a question on this very recently but I don;t think it got an answer and I can't find it to reply to, so apologies for the extra noise. I have a large text with floats numbered sequentially by chapter and then figure/table number, but at the last minute I've had a request for two

Re: [NTG-context] pdf tagging for accesbility

2020-07-12 Thread Duncan Hothersall
I have no answer I'm afraid, but I would like to register a similar interest in any potential answer to the question. Duncan On Sun, 12 Jul 2020, 14:20 David Eric Cox, wrote: > Hello. > > Is there any way to pdf-tag table headers to assist screen readers and the > like? I can get tagging in

Re: [NTG-context] chapter numbers

2020-06-08 Thread Duncan Hothersall
ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _______

[NTG-context] MathML (mkiv) accent shifted to the left

2020-03-09 Thread Duncan Hothersall
Hi all. I am reasonably sure that in mkii this overbar accent was placed correctly, but in mkiv it is shifted to the left. Any ideas on how to fix it? MWE: \usemodule[mathml] \starttext This \xmlprocessdata{}{p}{} isn't right. \stoptext Many thanks, Duncan

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-05 Thread Duncan Hothersall
> If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / htt

Re: [NTG-context] Override MathML formula label

2019-07-29 Thread Duncan Hothersall
Brilliant, thanks Hans. Looks like I need to start delving properly into the power of the XML setups. Duncan On Sun, 28 Jul 2019 at 21:04, Hans Hagen wrote: > > \usemodule[mathml] > > \startxmlsetups mml:formula > \edef\mmlformulalabel{\xmlatt{#1}{label}} >

[NTG-context] Override MathML formula label

2019-07-27 Thread Duncan Hothersall
Hi all. In processing MathML if I want a formula to be numbered I add a label="X" attribute to the tag as per: \usemodule[mathml] \starttext \xmlprocessdata{}{ p=c-t }{} \stoptext This will label the formula as (1). I know I can adjust how the automatic numbering is generated using

Re: [NTG-context] Unwanted white box above float

2019-07-22 Thread Duncan Hothersall
Brilliant! Thanks Taco. On Mon, 22 Jul 2019 at 16:32, Taco Hoekwater wrote: > Hi, > > \setupfloat[thematicimage] > [freeregion=no] > > But I do not know what that actually means. > I just noticed that it makes the white background box not be white any > more. > > Taco > >

[NTG-context] Unwanted white box above float

2019-07-22 Thread Duncan Hothersall
Hi all. Have been experimenting with the many and varied options for placefloat to try to resolve this problem with no success. As per minimal example below I have nearly what I'm after - an image which floats to the right of a background box with a 1em offset - but I can't get rid of the white

Re: [NTG-context] Side figure bug in mkiv?

2019-07-18 Thread Duncan Hothersall
On Thu, 18 Jul 2019 at 22:30, Henri Menke wrote: > > Your formatting obscures the problem because compiling this example > works fine. I think you are starting a new paragraph before {\bf ...}. > That is a well-known problem and there are posts about it on the mailing > list every once in a

[NTG-context] Side figure bug in mkiv?

2019-07-18 Thread Duncan Hothersall
I think I have identified a bug in the side figure mechanism which is demonstrated by the minimal example below. The {\bf …} construct causes the para in which it appears to stop behaving properly with the side figure, and the text overflows. The preceding and following paras which don't have {\bf

[NTG-context] Column spacing in MathML in mkiv

2019-07-18 Thread Duncan Hothersall
Hi all. If I want to set the space between columns in a MathML , how do I do it? Minimal non-working example below (set the attribute columnspacing to anything you like and it seems to be ignored). Is this a bug or is there a feature I've missed? \usemodule[mathml] \starttext \xmlprocessdata{}{

Re: [NTG-context] From mkii to mkiv: MathML mtable alignment

2019-07-08 Thread Duncan Hothersall
On Mon, 8 Jul 2019 at 16:22, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Duncan Hothersall schrieb am 08.07.2019 um 16:45: > > The command \setupMMLappearance[mtable][alternative=b] used to give > > me, in mkii, MathML layouts in which the first c

[NTG-context] From mkii to mkiv: MathML mtable alignment

2019-07-08 Thread Duncan Hothersall
The command \setupMMLappearance[mtable][alternative=b] used to give me, in mkii, MathML layouts in which the first column was ragged left, the second column centred, and the third column ragged right. It now seems to be ignored, and the output has all three columns centred. Minimal working

Re: [NTG-context] mkiv MathML bug?

2019-06-27 Thread Duncan Hothersall
On Thu, 27 Jun 2019, 20:46 Hans Hagen, wrote: > On 6/27/2019 6:35 PM, Duncan Hothersall wrote: > > I'm not sure this is something more general in the MathML module or if > > it's specific to the vertical bar in this particular context, but here > > is a minimal example

[NTG-context] mkiv MathML bug?

2019-06-27 Thread Duncan Hothersall
I'm not sure this is something more general in the MathML module or if it's specific to the vertical bar in this particular context, but here is a minimal example showing that the "=0" at the end of the equation is disappearing: \usemodule[mathml] \starttext \xmlprocessdata{}{

Re: [NTG-context] mkii to mkiv - section numbering with minimal example

2019-06-23 Thread Duncan Hothersall
On Sun, 23 Jun 2019 at 19:08, wrote: > > Hi Duncan, > > I guess this may be what you want to do: > > \setuphead[part][placehead=yes] > \setuphead[section][sectionsegments=section] > \setuphead[subsection][sectionsegments=section:subsection] > \starttext > \part{Part} >

Re: [NTG-context] mkii to mkiv - section numbering with minimal example

2019-06-23 Thread Duncan Hothersall
On Sun, 23 Jun 2019 at 11:00, Hans Hagen wrote: > > in the test suite there are all kind of examples (zip can be downloaded > from the website) > > Thanks Hans. After some searching in the test suite I found the answer, which I'll put here in case someone else is searching for it, which is:

[NTG-context] mkii to mkiv - section numbering with minimal example

2019-06-23 Thread Duncan Hothersall
Further to my previous query about updating from mkii to mkiv, I have solved some of the issues by trial and error but am beginning to identify the ones I can't resolve. My first minimal example is below. I want the sections and subsections not to prefix the part and chapter numbering, giving me

Re: [NTG-context] mkii to mkiv - what an ancient user needs to know

2019-06-12 Thread Duncan Hothersall
on a minimal example over the next few days and - if I don't solve it myself in the process - I'll post it. Thanks again, Duncan On Wed, 12 Jun 2019 at 08:07, Hans Hagen wrote: > On 6/12/2019 5:22 AM, Duncan Hothersall wrote: > > Hi all. > > > > Long-time user but hav

[NTG-context] mkii to mkiv - what an ancient user needs to know

2019-06-11 Thread Duncan Hothersall
Hi all. Long-time user but haven't posted in a long while... After many happy years of running a mkii set up I am finally facing the fact that time has moved on and upgrading to mkiv. I understand the biggest change needed to my sources is in the fonts handling, but I am getting a few other

[NTG-context] MP spot color in gradient - help!

2011-05-17 Thread Duncan Hothersall
Struggling against a deadline here so apologies for no full sample. I have a gradient fill defined using \startuseMPgraphic{mpos:par:mylearnobj} path p; for i = 1 upto nofmultipars : p := multipars[1] topenlarged 8pt bottomenlarged 8pt leftenlarged 3cm ; color ca ; ca := \MPcolor{greenthirty}

Re: [NTG-context] MP spot color in gradient - help!

2011-05-17 Thread Duncan Hothersall
Hagen wrote: On 17-5-2011 12:24, Duncan Hothersall wrote: Could someone possibly let me know if it is even possible to define a gradient using a spot colour, or if I should instead revert to some alternative solution. I don't think so. Normally, if you use a specific color (recognizable

Re: [NTG-context] Creating a PDF named destination

2011-04-26 Thread Duncan Hothersall
Thanks Hans but this doesn't work for me - when I open in Acrobat Pro no named destinations appear. Duncan On 26/04/2011 09:40, Hans Hagen wrote: On 25-4-2011 5:31, Duncan Hothersall wrote: \starttext \chapter[myid]{My chapter} Blah blah. \section[myotherid]{My section} Blah blah. \stoptext

Re: [NTG-context] Creating a PDF named destination

2011-04-26 Thread Duncan Hothersall
On 26/04/2011 10:27, Hans Hagen wrote: On 26-4-2011 11:00, Duncan Hothersall wrote: Thanks Hans but this doesn't work for me - when I open in Acrobat Pro no named destinations appear. not sure what you expect ... you have no hyperlinks (annotations) .. where do you expect to see

[NTG-context] Creating a PDF named destination

2011-04-25 Thread Duncan Hothersall
Hello all, This seems to be a very obvious FAQ but I can't find an answer anywhere. How can one create a named destination in an output PDF file such that an HTML link to filename.pdf#nameddest=name will work? I'm using Mk II in case that is relevant. I kinda assumed that a section title

[NTG-context] Dotted leader in index entries

2010-11-11 Thread Duncan Hothersall
[Now with a proper example!] Hello all. I'm using Mk II. I need to set up dotted leaders between an index entry and its page number as show in this runnable sample: \def\Icmd#1{#1\dotfill} \setupregister[index][n=2,textcommand=\Icmd,distance=1em,alternative=A] \starttext \index{Example+This

[NTG-context] Dotted leader in index entries

2010-11-06 Thread Duncan Hothersall
[Reposting because I think my last message got mangled.] Hello all. I'm using Mk II. When I use the following setup to get dotted leaders between an index entry and its page number: \def\MyIndexTextCmd#1{#1\dotfill}

[NTG-context] Dotted leader in index entries

2010-11-04 Thread Duncan Hothersall
Hello all. [Using Mk II.] I need to produce an index which looks like this: Mainentry Subentry.3 Slightly longer subentry..5 See also X I have the following setup:

Re: [NTG-context] Forcing \about to give the full title

2010-09-16 Thread Duncan Hothersall
\setupreferencing[width=] Thanks Wolfgang, much appreciated, did the trick. Duncan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Forcing \about to give the full title

2010-09-15 Thread Duncan Hothersall
Hi folks. Just hit a strange feature using \about to give me the title of a referenced section. When the title is long, there seems to be an automatic cut-off, as if some form of \nomarking had been used on the last words of the title. So with a section somewhere in the text like

Re: [NTG-context] MPgraphic with rounded corners

2009-01-16 Thread Duncan Hothersall
Thank you to both Aditya and Wolfgang; I think I need to get a better grounding in the basic principles of MetaFun before trying to dabble again... Duncan ___ If your question is of interest to others as well,

[NTG-context] MPgraphic with rounded corners

2009-01-15 Thread Duncan Hothersall
Hello all. I have adapted a bit of MP code from Aditya from a mailing list message dated 2006-05-19 (http://archive.contextgarden.net/message/20060519.214124.9174ac0e.en.html) to ensure that when a page break occurs in a textbackground there is a forced vertical space inside the box at the

Re: [NTG-context] 'See also' entries in register

2008-08-27 Thread Duncan Hothersall
No response to this - can I ask, is this a case of a bug in a mkII feature that is replaced in mkIV so isn't worth fixing? Understandable if so, just wanted to check... Duncan I wrote: \starttext I wish I was going to the ConTeXt\index{ConTeXt} meeting this year to enjoy all the

[NTG-context] 'See also' entries in register

2008-08-18 Thread Duncan Hothersall
I know everyone is preparing for fun in Bohinj (and I am gutted that I am missing it this year) but it would be really great if someone had the chance to work out how to fix this problem: \starttext I wish I was going to the ConTeXt\index{ConTeXt} meeting this year to enjoy all the

[NTG-context] setupMMLappearance

2008-07-19 Thread Duncan Hothersall
Hello. I am used to using \setupMMLappearance[mtable][alternative=a|b|c] to change the way the mathml module treats mtable alignments. I've just discovered it no longer seems to have any effect. What I need to set up is an alignment where the first column of an mtable is right-aligned (ragged

Re: [NTG-context] Sections, cross-references and separators

2008-04-01 Thread Duncan Hothersall
Taco wrote: In this case it is easier to make the actual chapter number include the 'A'. That way, you won't have to worry about separator at all (which is good, because its use is confusing). Try this: @@ -1,4 +1,4 @@ -\setupheads[separator=] %-- this can't be right

[NTG-context] Sections, cross-references and separators

2008-03-31 Thread Duncan Hothersall
Dear all, I am confused. Here is a minimal version of my problem: --- \setupheads[separator=] %-- this can't be right \setupreferencing[state=start,chapternumber=yes,global=yes] \setupsection[section-1][conversion=Characters] \setupsection[section-2][previousnumber=yes]

[NTG-context] Font sizes using Chinese module

2007-11-07 Thread Duncan Hothersall
Hello all. I hope this is quite a simple question. I'm using the Chinese module, with the font definitions in font-chi.tex, to typeset UTF-8 content. I can happily use the default sizes a, b, c, d and x, xx, xxx - so \bfd produces large bold, and \tfx produces small normal weight text. But I

Re: [NTG-context] Font sizes using Chinese module

2007-11-07 Thread Duncan Hothersall
Hans said: \definefontsize[e] \setupfontenvironment [default] [e=4] Ah, thanks. Using \setupbodyfontenvironment as the second command did the trick. I guess there is no easy way of directly calling a specific font at a specific size? No worry, this sort of solution will allow me

Re: [NTG-context] Font sizes using Chinese module

2007-11-07 Thread Duncan Hothersall
Hans (07/11/2007 16:09) said: Btw: Is there any reason for not using XeTeX (or LuaTeX in the future) for Chinese? (To be honest: I have absolutely no idea whether it works and how good it works if at all, but I would expect less problems there.) i bet that duncan uses it in some

Re: [NTG-context] Recommendations for Speed?

2007-09-17 Thread Duncan Hothersall
Taco said: Duane Johnson wrote: 1. Is there a way to keep TeX in-memory (i.e. as a server or daemon process) so that it doesn't have to load and reload fonts and the environment? Our system makes repeated requests for typeset documents and we are wondering if there's a way to

Re: [NTG-context] currentheadnumber / doif.. problem

2007-09-12 Thread Duncan Hothersall
Hi Peter Date: Mon, 10 Sep 2007 01:21:26 +0200 From: Peter Schorsch [EMAIL PROTECTED] Subject: [NTG-context] currentheadnumber / doif.. problem To: ntg-context@ntg.nl Hi, I tried to get the full present heading-number. If I am using currentnumber I am getting back only the last part of

[NTG-context] Different parameters for a continuing itemization

2007-07-17 Thread Duncan Hothersall
I use \startitemize[continue] quite a lot to create itemised lists which continue on from the last number of the previous list. I've only just noticed that the 'continue' keyword seems to mean that parameters in the second [...=...] list of a \startitemize are ignored. Example (tested on live

[NTG-context] How to make a figure not appear in the list of figures?

2007-07-10 Thread Duncan Hothersall
Hi folks, This is probably a simple problem but I can't find an answer. I have a book with a list of figures and have been asked not to include in the list a figure which does not have a caption, even though it has a number. So the numbering needs to be sequential, but one of the figures

Re: [NTG-context] How to make a figure not appear in the list of figures?

2007-07-10 Thread Duncan Hothersall
Hi Duncan, place the figure with the normal \placefigure command, process to whole document, delete the unwanted figurelist entry in the tuo-file and process the document another time, you can add the --once option in the last run. Wolfgang Aah, nice workaround, thanks. That has got me

Re: [NTG-context] Term C++ in index

2007-07-05 Thread Duncan Hothersall
A long long time ago, Hans said: At 01:55 PM 10/31/2002 +0100, Matthias Heidbrink wrote:/ Hi, possibly a trivial question, but can't find it anywhere: How do I get the term C++ into an index? Unfortunately ConTeXT interprets the + as a separator for indexed terms and I did not find a way

Re: [NTG-context] Write once layout everwhere (?)

2007-06-11 Thread Duncan Hothersall
Hi Pepe, If you want your content to remain maintainable and manageable for a long period (e.g. decades), if you can afford it, and if you have a sufficiently large amount of content, then I strongly recommend investing the time and effort in an XML-based solution. My experience is in large

[NTG-context] Colour (color) in mathml

2007-01-31 Thread Duncan Hothersall
Hello. I'm trying to implement part of a change-tracking system using colour to highlight changed areas in a document. I use MathML for maths, and I need to be able to apply colour to individual elements in an equation. I thought I could do just simply mi color=greenx/mi but evidently not. It

[NTG-context] Full-time ConTeXt job offer

2007-01-26 Thread Duncan Hothersall
Apologies to those for whom this message is geographically irrelevant: My company is looking to employ someone with ConTeXt experience, and preferably a good understanding of XML. The position is based in Edinburgh, Scotland, UK and is permanent full-time. If anyone is interested, or knows anyone

[NTG-context] Splitting a float that isn't a table

2006-11-03 Thread Duncan Hothersall
I define a floating block called Exhibit \definefloat[Exhibit][table] which just contains paragraphs of text. I'd like to be able to split it using the \splitfloat mechanism but that only seems to work if the content of the float is a table, not paragraphs. \definefloat[Exhibit][table]

Re: [NTG-context] TABLE in item

2006-10-29 Thread Duncan Hothersall
\let\beforeTABLEsplitbox\relax \let\afterTABLEsplitbox \relax \let\beforeTABLEbox \relax \let\afterTABLEbox \relax you can play with these macros since they are the formal hooks Hans, I played with \let\beforeTABLEsplitbox\dontleavehmode

[NTG-context] TABLE in item

2006-10-27 Thread Duncan Hothersall
Very simple question which has suddenly stumped me: \starttext \startitemize[n,broad] \item Hello world! \bTABLE\bTR\bTD Little\eTD \bTD table\eTD\eTR\eTABLE First item continues. \item Second item. \stopitemize \stoptext How to get the TABLE inside the first item to align with the item content,

Re: [NTG-context] TABLE in item

2006-10-27 Thread Duncan Hothersall
I said: \starttext \startitemize[n,broad] \item Hello world! \bTABLE\bTR\bTD Little\eTD \bTD table\eTD\eTR\eTABLE First item continues. \item Second item. \stopitemize \stoptext What I *meant* (sorry!) was \starttext \startitemize[n,broad] \item Hello world! \bTABLE[split=yes]\bTR\bTD

[NTG-context] Giving a float its own number

2006-10-19 Thread Duncan Hothersall
I have a book with parts and chapters; figures in the chapters are numbered 1.1, 2.1 etc. but sometimes a part has a figure in it as well, before the chapters start. The desired numbering for such figures is to follow the Part numbers, and be in capitalised roman numerals (in other words, Figure

Re: [NTG-context] Giving a float its own number

2006-10-19 Thread Duncan Hothersall
I said: Where did I go wrong? I'm sure there is an easy way to do this. And yes there is! The easy way is to use the new beta, which works. Sorry for the noise. Duncan ___ ntg-context mailing list ntg-context@ntg.nl

[NTG-context] Float references in a register

2006-10-11 Thread Duncan Hothersall
Is it possible to have float references (i.e. Table 1.1) alongside page numbers in a register? I've never come across it before, but I've just been asked to produce an index which has entries like: coverage measurement tools 176-177, Table 6.5 I have looked through core-reg without much

Re: [NTG-context] inhibition of new page after a header

2006-10-06 Thread Duncan Hothersall
How can it be that context sets a new page immediately after a (subsubsection-)header? Is it necessary to inhibit it after every header explicitely? Default settings of headers inhibit a break immediately afterwards but it is very easy to stop this working by either changing the set-up of

[NTG-context] Register layout

2006-10-03 Thread Duncan Hothersall
Quick question - how do I alter the width of the hanging indent of a register entry which is too long to fit on one line? I want to differentiate sub-entries, which each have an indent of 1em more than the previous level, from the indentation of longer entries, which by default is also set to

Re: [NTG-context] Very strange bug related to textbackground

2006-09-26 Thread Duncan Hothersall
Duncan Hothersall wrote: I have been fighting with this one for ages, and have now narrowed down the culprit, but I do not understand why it happens. Latest (non-beta) ConTeXt, also tested in the live garden (same result): and the beta? Just downloaded and tried beta 'ver 2006.09.25 23

Re: [NTG-context] Very strange bug related to textbackground

2006-09-26 Thread Duncan Hothersall
Just downloaded and tried beta 'ver 2006.09.25 23:38 MK II' - same result I'm afraid. then i need a better test file + explanation (or maybe i have some local patch) Hans You are not seeing the effect? I have put some files up on the web, generated with the latest beta. The (bad)

[NTG-context] Very strange bug related to textbackground

2006-09-25 Thread Duncan Hothersall
I have been fighting with this one for ages, and have now narrowed down the culprit, but I do not understand why it happens. Latest (non-beta) ConTeXt, also tested in the live garden (same result): \setupcaption[figure][align=right,location=bottom]

Re: [NTG-context] index page range bug

2006-09-07 Thread Duncan Hothersall
Jason wrote: When using startregister/stopregister commands, if the range is only one one page, then while both a [f] and a [t] are written to the tui file, only one \registerfrom command is put in the tuo file. If there is only one range, it seems like the software deals with it nicely.

[NTG-context] Rule under length of last line

2006-07-31 Thread Duncan Hothersall
I've had a last-minute impossible request for a typesetting style, and having already told the person it can't be done in the time available, wondered whether it can actually be done at all. The request is for a subsection heading to have a continuous horizontal rule under both its number and

Re: [NTG-context] Rule under length of last line

2006-07-31 Thread Duncan Hothersall
Wow, very cool. Will adapt and wikify. Thanks - it's even better to say no and then do it anyway. :) Thanks again. Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] arab (omega)

2006-06-26 Thread Duncan Hothersall
Idris wrote: Dear gang, I have redone this. Now there are two filter sequences, one for main text and one for using the arabic-font digits in math mode. http://wiki.contextgarden.net/Aleph_Guide#Installing has been updated, get the new uni2cuni.zip. I'll update m-gamma soon so this

Re: [NTG-context] arab (omega)

2006-06-26 Thread Duncan Hothersall
Hans, in Friday's beta, core-sec.tex line 767 has \edef\levelstring{=\flistsectionseparator\@@filternumberpart[#1]\sectionseparator}% which fails not knowing what \flistsectionseparator is. Reverting to \edef\levelstring{=\sectionseparator\@@filternumberpart[#1]\sectionseparator}% works but

Re: [NTG-context] Question about Captions

2006-06-24 Thread Duncan Hothersall
I'd like to know whether it is possible to control the captions of tables and figures separately. What I wanna do is to place the caption above the table but below the figure. \setupcaption[figure][location=bottom] \setupcaption[table][location=top] Duncan

  1   2   >