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

Re: [NTG-context] Aleph queries

2006-06-23 Thread Duncan Hothersall
A trick (?) is to change the separator such that the number parsing in the otp see separate numbers as well: \setupcaptions[separator={{.}}] \setupheads [separator={{.}}] \setupcaptions[separator={{.}}] this still gives problems with refering to a graphic but for that we need more

Re: [NTG-context] Aleph queries

2006-06-23 Thread Duncan Hothersall
\setupheads [separator={{.}}] \setupcaptions[separator={{.}}] this still gives problems with refering to a graphic but for that we need more hackery Also, probably because it uses the same cross-referencing mechanism, this leaves the section numbers in tables of contents the other way

Re: [NTG-context] Aleph queries

2006-06-22 Thread Duncan Hothersall
Idris wrote: I doubt it, but something along these lines should do it: == % tex=aleph output=dvipdfmx \pagedir TRT \bodydir TRT \pardir TRT \textdir TRT \hoffset=0pt % bug \starttext \chapter{Cow} \section{Dutch Cow} \placefigure [middle] [fig:cow] {This is an

Re: [NTG-context] Aleph queries

2006-06-21 Thread Duncan Hothersall
Idris Samawi Hamid (15/06/2006 17:28) said: You could edit the cuni2oar otp (and recompile it) so that it ignores the ligatures you don't like, or you could put a kashidah between the two letters whose ligature you want to break. Better is to define an empty kashidah so that you can manually

Re: [NTG-context] Aleph queries

2006-06-21 Thread Duncan Hothersall
Am following this up via another route to try to better understand what to do, but if you really did want a reminder about this - here it is :-) Well, I don't know which ligatures the proofreader liked/did not like so... Sorry, I realise that was a bit stupid of me... Thanks for your

[NTG-context] Aleph queries

2006-06-15 Thread Duncan Hothersall
Hello all (especially Idris :-) ) Using the fantastic resources from Idris' messages on this list, and the Aleph page on the Wiki, I have managed to start producing Arabic PDF output directly from UTF-8 sources using Aleph and dvipdfmx. This is great, thanks so much. I have just one or two

Re: [NTG-context] register ranges

2006-02-23 Thread Duncan Hothersall
\startregister[index]{Menippean} \stopregister[index] and it works. However, when I try to replace [index] with my own key (because I have overlapping ranges) \startregister[satire]{Menippean} \stopregister[satire] I get errors: ... Hi Thomas. The first [...] in the \startregister

[NTG-context] Degrading TABLE column

2005-12-19 Thread Duncan Hothersall
I'm trying to solve a problem with a TABLE in a large-ish (600 page) book. The table occurs in an appendix, and the contents of one column are spilling out into the next column on the right. The weird thing is that when I process just that bit of the book, the effect is much smaller, and when I

Re: [NTG-context] Index entries messing up page breaks

2005-12-14 Thread Duncan Hothersall
Hans wrote: can you try (test extensively): \def\dodoregister[#1]#2#3% {\dogotopar{\dontleavehmode\doprocesspageregister[#1]{#2}{#3}}} Well, it has some problems, introducing vertical space in certain circumstances. Will try to work up a minimal, but two observations: 1. The extra

[NTG-context] Re: Chinese

2005-12-13 Thread Duncan Hothersall
Hans wrote: chinese is not yet defined in utf so if you want that, we need to do it ... assuming this, how about making a set of tfm,enc,map files that match the unicode positions (volunteers ...) I'm very willing to help, especially if there is some drudge work involved in constructing the

[NTG-context] Index entries messing up page breaks

2005-12-13 Thread Duncan Hothersall
The manual suggests that you can put index calls between a \section heading and its first paragraph without worry, but for me it breaks the page-breaking mechanism, allowing the section title to end up at the bottom of a page like this: \starttext \section{Tufte} \dorecurse{4}{\input tufte \par}

Re: [NTG-context] Index entries messing up page breaks

2005-12-13 Thread Duncan Hothersall
I said: Is there any workaround/fix? I find that the addition of \dontleavehmode fixes it. Is this safe to use in general? \starttext \section{Tufte} \dorecurse{4}{\input tufte \par} \section{Knuth} \dontleavehmode\index{knuth} \input knuth \par \stoptext Thanks, Duncan

Re: [NTG-context] Chinese

2005-12-09 Thread Duncan Hothersall
Tobias Burnus asks: What would be needed to get UTF-8 input running with Chinese? If there is a recipe, I would like to help cook it. Getting UTF-8 input running with Chinese would be a godsend to me too. Duncan ___ ntg-context mailing list

Re: [NTG-context] Linux binaries

2005-11-28 Thread Duncan Hothersall
Hans wrote: yes, you can use the old binaries, no problem; hm, a copy of previous binaries ... i can make a zip of an old tree That would be great, thanks! Thanks Taco for the suggestions, I was exploring both of those in parallel to hoping that someone had kept a copy of the old ones..

Re: [NTG-context] Index

2005-11-14 Thread Duncan Hothersall
Hans, many thanks for the recent fixes on index sorting in the new ruby scripts. Can I offer another test file in which some errors still show up, in the hope that these too can be ironed out? The following shows two problems, culled from a much bigger project. It should be clear from the output

[NTG-context] Re: Mini-survey: What do you do with ConTeXt?

2005-11-04 Thread Duncan Hothersall
What do you do with ConTeXT? I have a repository of learning materials which are marked up in (DocBook-based) XML. They are in a few different languages (majority English, with Spanish, Dutch and recently Chinese) and belong to several different universities/training organisations on whose

Re: [NTG-context] Chinese in utf-8

2005-10-17 Thread Duncan Hothersall
Lutz Haseloff said: i prepared a small perl script to convert chinese utf-8 encoded tex-files to gbk coded tex-files. Thanks so much, I look forward to trying it out next week when I get back to work, and will let you know how I get on. Thanks for taking the time. Duncan

Re: [NTG-context] Chinese in utf-8

2005-10-14 Thread Duncan Hothersall
(beware, the font-chi modules talk about unicode while actually it's about dedicated mapings resembling a unicode approach; this \defineucharmapping stuff) Yes indeed, that had me going... :-) Oh well. Thanks for the insight, I'll feedback further. I have to say I'm unable to make any sense

[NTG-context] Re: MathML: Please ignore mo#x02061;/mo

2005-10-13 Thread Duncan Hothersall
Salvete, I just started to think about using ConTeXt on XML input files, so I've got a question which should be easy to answer: My MathML source generates presentation code which includes mo#x02061;/mo between a function symbol and its arguments. I get a black rectangle for that; I'd

Re: [NTG-context] Chinese in utf-8

2005-10-12 Thread Duncan Hothersall
Hans wrote: that's tricky. the utf handler assumes named glyphs and noone named the 5000 chinese ones so far ... some variant on: ... \startunicodevector chinese_unicode_page_number_1 getglyph\endcsname{ChineseFont1}{#1}\gobbleoneargument \stopunicodevector so, then you only need to

[NTG-context] Chinese in utf-8

2005-10-10 Thread Duncan Hothersall
Hi all. I have ConTeXt set up to output Chinese using usemodule[chinese], all fonts, encodings and maps are installed and the sample file works well. Now I have a whole load of Chinese text in utf-8 encoding. Can ConTeXt process this, or do I have to convert it to another encoding? I tried

[NTG-context] PDF v1.6 inclusion

2005-10-06 Thread Duncan Hothersall
Hi. I'm trying to include some PDF files generated by Acrobat 7, which means they are PDF v1.6. ConTeXt (recent distribution, on linux) complains that PDF version 1.6: Xpdf only supports 1.5. I thought that maybe I could switch to using Ghostscript instead of Xpdf-tools to process the files, in

Re: [NTG-context] Elided page numbers in registers

2005-10-06 Thread Duncan Hothersall
On 31 Aug I wrote: I have page ranges in my index, such as 1/1-1/3, or 2/24-2/26. I would like these ranges to be elided - in other words, the first one would read 1/1-3 (remove repeated chapter number), and the second would read 2/24-6 (remove repeated chapter number and also the repeated

Re: [NTG-context] PDF v1.6 inclusion

2005-10-06 Thread Duncan Hothersall
just ignore the message; a new version of pdftex will support the latest pdf, and in most cases new features are just more entri4e sin dictionaries; i can imagine that it affects pdftops but not pdf inclusion because that's mostly copying and object reference tracking. Do you get faulty files?

Re: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-28 Thread Duncan Hothersall
No need for rtf. That would loose lots of information anyway, wouldn't it? RTF can capture everything that .doc can (MS update it every time they rev the .doc format), and it has the advantage that it is defined in a spec with a grammar, which means that importing routines (like the one in

Re: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-27 Thread Duncan Hothersall
Slightly OT, sorry: OpenOffice.org does allow you to attach an XSLT stylesheet to an export process which therefore allows you to do a (limited) transformation from the visual markup which is its native format to a more structured one Why „limited“? Well, XSLT seems to have been designed,

Re: [NTG-context] ConTeXt to RTF Conversion

2005-09-22 Thread Duncan Hothersall
- xml in not an input format but (a well structured) interchange format. XML is a very good master format from which to derive all outputs. For example, I receive wordprocessor files from academics and convert them to XML by a combination of automated processes and hand-tagging. The XML is

  1   2   >