Re: [NTG-context] semi-smart quotes in verbatim text?

2007-07-18 Thread cormullion
On 2007-01-04, at 07:53, Hans Hagen wrote: So perhaps I should rephrase my question: how can I keep the vertical ' that I type into typing sections without it getting converted to a curvy quote ’...? non-trivial (we must make the ' always active then) ; in luatex we can preprocess

Re: [NTG-context] page numbering in words?

2007-03-28 Thread cormullion
On 2007-03-26, at 17:39.0, [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? I can't see how to do this in ConText. I can see that the first task - converting an integer to a

Re: [NTG-context] page numbering in words?

2007-03-28 Thread cormullion
Thanks, Wolfgang and Zhichu. I've managed to get it working. The only problem now is to work out how to modify the original macros. Numbering is OK up to 20. Then we get onetwenty, twotwenty, threetwenty (I did find out how to remove the 'und'). So that's another project! thanks again

Re: [NTG-context] page numbering in words?

2007-03-28 Thread cormullion
On 2007-03-28, at 16:49.0, Zhichu Chen wrote: I modified Wolfgang's macro as the attached file. But I'm really not a native American, so there must be some special rules that I've ignored. Wish you good luck. Yes - this works great now. Thank you for sorting out the TeX code, which is

[NTG-context] page numbering in words?

2007-03-26 Thread cormullion
is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? Or does this require some more work/code? ___ ntg-context mailing list ntg-context@ntg.nl

Re: [NTG-context] page numbering in words?

2007-03-26 Thread cormullion
On 2007-03-26, at 19:16.0, Wolfgang Schuster wrote: On Mon, 26 Mar 2007 17:39:38 +0100 [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? I don't think there is something like this in ConTeXt. You can try to make somthing by yourself and

Re: [NTG-context] page numbering in words?

2007-03-26 Thread cormullion
On 2007-03-26, at 19:40.0, Wolfgang Schuster wrote: On Mon, 26 Mar 2007 17:39:38 +0100 [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? Or does this require some more

Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document; changing line spacing for typed text only

2007-02-17 Thread cormullion
On 2007-02-15, at 18:16.0, Vyatcheslav Yatskovsky wrote: 1) How can I integrate ruby/perl scripts into a .tex document? (I want to create a CD cataloguing tool and gonna use script for reading CD file list). By coincidence I've just written something about this too. Not for ruby/perl,

Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document; changing line spacing for typed text only

2007-02-17 Thread cormullion
On 2007-02-17, at 18:45.0, Aditya Mahajan wrote: Interesting. Just a couple of points. Do not use the prefix m- for your modules. m- is reserved for modules in the core distribution. You can use t- (third party) if you want to distribute your module, or p- (personal) if you do not want to

Re: [NTG-context] Index formatting: column leaks over page margin

2007-01-23 Thread cormullion
On 2007-01-22, at 21:56.0, luigi scarso wrote: On 1/15/07, luigi scarso [EMAIL PROTECTED] wrote: hmm line map 17, 33, 52, 69, 70, 70, 70, 71, 71, is too much right? I've played with index settings some time ago: I will refresh my memories. luigi Ok, I hope these can help you. Wow -

Re: [NTG-context] Keeping section heading with following text?

2007-01-18 Thread cormullion
On 2007-01-17, at 16:34.0, Willi Egger wrote: The bigpreference will not insert a pagebreak unless the added penalty makes tex to insert a pagebreak! You're right - I've been misreading the manual: when possible, force page break I read that as being force a page break if you can - which

Re: [NTG-context] Keeping section heading with following text?

2007-01-16 Thread cormullion
On 2007-01-16, at 18:56.0, Henning Hraban Ramm wrote: Am 2007-01-14 um 15:00 schrieb [EMAIL PROTECTED]: Insert a \page[bigpreference] before the mentioned subsection command thanks Willi, that's useful to know. It would fix a single occurrence, but wouldn't be applicable to all section

Re: [NTG-context] Index formatting: column leaks over page margin

2007-01-14 Thread cormullion
On 2007-01-13, at 17:59.0, luigi scarso wrote: On 1/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a tiny problem Can you post an example ? Hi luigi - there's a draft at http://newlisp.org/downloads/ development/introduction-to-newlisp-9.1.pdf and there's an example of the

Re: [NTG-context] Yet another math symbol

2007-01-14 Thread cormullion
On 2007-01-14, at 11:46.0, Oliver Buerschaper wrote: I'm struggling to typeset the math symbol identity ... it looks like a 1 but with double vertical lines. Hints very welcome ;-) What if we put together an extensive table of all math symbols available in ConTeXt at some point? no answers,

Re: [NTG-context] Keeping section heading with following text?

2007-01-14 Thread cormullion
On 2007-01-13, at 16:29.0, Willi Egger wrote: Insert a \page[bigpreference] before the mentioned subsection command thanks Willi, that's useful to know. It would fix a single occurrence, but wouldn't be applicable to all section and subsection headings... Still, it's useful to have a

[NTG-context] Index formatting: column leaks over page margin

2007-01-12 Thread cormullion
I have a tiny problem with the formatting of an index placed with \completeindex. When there are more than 14 or so page numbers for an entry and the entry is in the right hand column, the numbers leak over the page boundary. I haven't done any special formatting for these index pages - is

[NTG-context] Keeping section heading with following text?

2007-01-12 Thread cormullion
The other minor problem I had is that in one place i got a subsection heading at the bottom of one page and the text that follows it on the top of the next page. Is there some setting I can make which stops this happening? ___ ntg-context mailing

Re: [NTG-context] \externalcommand?

2007-01-05 Thread cormullion
On 2007-01-04, at 23:10.0, Aditya Mahajan wrote: Perhaps the R module is easiest to understand. That method will work for most cases where you simply want to capture part of tex source and write it verbatim to a file, and then read the output back into tex. I'm really grateful for your

Re: [NTG-context] Easy insertion of Unicode symbols?

2007-01-04 Thread cormullion
Thanks - with all your help I can now do this. For the record: \starttext To insert the symbol for the planet Jupiter. using Martin Vogels Symbole font: \usesymbols[mvs] \setupsymbolset[astronomic] \symbol[Jupiter] using Roland Waldi Symbole font: \usesymbols[was] \setupsymbolset [wasy

Re: [NTG-context] semi-smart quotes in verbatim text?

2007-01-04 Thread cormullion
On 2007-01-03, at 22:08.0, Hans Hagen wrote: [EMAIL PROTECTED] wrote: This is puzzling me. If i type this in a text editor: \starttext These are 'quotes'. \starttyping let a = 'quoted string' \stoptyping \stoptext I'm using dumb quotes (hex 27). ConText renders this as this: These are

Re: [NTG-context] semi-smart quotes in verbatim text?

2007-01-04 Thread cormullion
On 2007-01-04, at 15:53.0, Hans Hagen wrote: non-trivial (we must make the ' always active then) ; in luatex we can preprocess verbatim lines, and/or remap characters so remind me in half a year Thanks Hans - I'm happy for it to be considered a problem - that's the first step towards

Re: [NTG-context] Easy insertion of Unicode symbols?

2007-01-04 Thread cormullion
On 2007-01-04, at 19:42.0, Mojca Miklavec wrote: On 1/4/07, [EMAIL PROTECTED] wrote: The following example is not very ConTeXt-ish, but it should work (if you got the unicode glyph right): \font\astro='name of your font with astro symbols or unicode font' \def\neptune{{\astro ♆}}

[NTG-context] \externalcommand?

2007-01-04 Thread cormullion
I think there's something in ConTeXt called \externalcommand. Can this be used to hand over a section of source text for processing by an external program during the ConTeXt-ing of a document? How does it work, exactly? thanks again for help...

Re: [NTG-context] Easy insertion of Unicode symbols?

2007-01-03 Thread cormullion
On 2007-01-02, at 22:00.0, Henning Hraban Ramm wrote: Am 2006-12-31 um 15:59 schrieb [EMAIL PROTECTED]: I need to insert a few Unicode symbols...(Just the symbols for the solar system planets)... Is this going to be easy - doable inside ConTeXt with a few preparatory mystic runes, or will it

[NTG-context] semi-smart quotes in verbatim text?

2007-01-03 Thread cormullion
This is puzzling me. If i type this in a text editor: \starttext These are 'quotes'. \starttyping let a = 'quoted string' \stoptyping \stoptext I'm using dumb quotes (hex 27). ConText renders this as this: These are ’quotes’. let a = ’quoted string’ ie the quotes have been educated - although

Re: [NTG-context] Easy insertion of Unicode symbols?

2007-01-03 Thread cormullion
On 2007-01-03, at 20:01.0, Henning Hraban Ramm wrote: The symbol set reference was great - the planet symbols are accessible in: \usesymbols[mvs] \showsymbolset[astronomic] so I may not have to go to a unicode-font at all. The symbol set was (Roland Waldi's symbols AKA wasysym) contains

Re: [NTG-context] Making a verbatim file for another language

2006-12-31 Thread cormullion
On 2006-12-30, at 21:24.0, Jarimatti Valkonen wrote: /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb Unfortunately, I don't have a scripts directory here... Obviously my system is not correctly installed. What is the recommended way to install the latest Context version

[NTG-context] Easy insertion of Unicode symbols?

2006-12-31 Thread cormullion
I need to insert a few Unicode symbols...(Just the symbols for the solar system planets)... Is this going to be easy - doable inside ConTeXt with a few preparatory mystic runes, or will it require running scripts, moving files around, etc...? The wiki suggests: Use \enableregime[utf] in

Re: [NTG-context] Making a verbatim file for another language

2006-12-31 Thread cormullion
On 2006-12-31, at 13:40.0, Mojca Miklavec wrote: On 12/31/06, [EMAIL PROTECTED] wrote: What is the recommended way to install the latest Context version (MacOS X)? You have to install at least the following two packages: - gwTeX based on TeX Live (texlive.ii2) - gwTeX Support: ConTeXt

Re: [NTG-context] Making a verbatim file for another language

2006-12-30 Thread cormullion
On 2006-12-30, at 09:22.0, Jarimatti Valkonen wrote: Aditya Mahajan kirjoitti 28.12.2006 kello 19.09: [About ConTeXt and Vim module for syntax highlighting.] Let us know if you come across any problems. Works fine here. System: Mac OS 10.4.8, using default Vim (6.2: yikes, thats old!).

Re: [NTG-context] Making a verbatim file for another language

2006-12-29 Thread cormullion
OK, I think vim works OK here, so this is what I tried: ... \setupcolors[state=start] \usemodule[vimsyntax] \definetypeVIMfile [typeRUBY] [syntax=ruby] \typeRUBY[typeRUBY]{fibo.rb} \defineVIMtyping[RUBY][syntax=ruby] \startRUBY # This is a ruby program puts Hello World \stopRUBY ... Error

Re: [NTG-context] Making a verbatim file for another language

2006-12-29 Thread cormullion
On 2006-12-29, at 15:59.0, Aditya Mahajan wrote: This is the perl version of texexec I do everything from TeXShop (http://www.uoregon.edu/~koch/texshop) and BBEdit so I have no idea where anything TeX-y is... I spent half an hour finding out how to 'enable write 18'... ;-) Poking around

Re: [NTG-context] Making a verbatim file for another language

2006-12-29 Thread cormullion
On 2006-12-29, at 13:09.0, Mojca Miklavec wrote: Which version of TeX/ConTeXt are you using? (Perhaps Hans has changed something in the meantime, to make that work again.) Are you using Gerben's i-Installer? In that case and if you have a chance, can you please test the new TeXLive-based

Re: [NTG-context] List of special characters?

2006-12-28 Thread cormullion
I'm really struggling to get this working... I've got some keywords which i want to mark in the text with a special style: -- \starttext \usetypescript[adobekb][\defaultencoding] \setupbodyfont[pos,9pt] \setupcolors[state=start] \define[1]\Keyword{%

Re: [NTG-context] List of special characters?

2006-12-28 Thread cormullion
On 2006-12-28, at 13:15.0, Mojca Miklavec wrote: On 12/28/06, [EMAIL PROTECTED] wrote: This works great. But then I've got the following keywords: # ! | \ @ ^ + - * / % Just copied from Aditya's code :) \letterhash, \# \letterexclamationmark \letterbar \letterbackslash \letterat

Re: [NTG-context] Making a verbatim file for another language

2006-12-28 Thread cormullion
How does it find the .vim language syntax file for - say - Ruby? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] List of special characters?

2006-12-28 Thread cormullion
I've just discovered the command \showcharacters. It's not in the manuals, but useful for showing some of the characters available. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Making a verbatim file for another language

2006-12-26 Thread cormullion
After looking at these files a bit more closely, I decided I didn't have a week to spare. Too much to learn and too few instructions. For now I'm sticking with plain old black verbatim code listings. Sometimes one has to set one's sights a little lower...! :-) But thanks again.

[NTG-context] List of special characters?

2006-12-25 Thread cormullion
Is there a list of special characters anywhere (eg \percent, \upperleftsingle6quote, etc) ? I'm trying to insert a |, at the moment, but I can't find a list... ___ ntg-context mailing list ntg-context@ntg.nl

[NTG-context] Making a verbatim file for another language

2006-12-25 Thread cormullion
I'm going to try to make a 'verbatim- module' (don't know what the right word is) for another language. I've found: /usr/local/teTeX/share/texmf.tetex/tex/context/base/verb-pl.tex and can probably have a go at making a version of this. Some questions occur: 1: where should i put my file? 2:

Re: [NTG-context] Making a verbatim file for another language

2006-12-25 Thread cormullion
On 2006-12-25, at 10:38.0, Taco Hoekwater wrote: [EMAIL PROTECTED] wrote: I'm going to try to make a 'verbatim- module' (don't know what the right word is) for another language. I've found: Good luck, Taco Thanks - I'll need it, I think. ;-) Your very helpful reply is most appreciated.

[NTG-context] Spacing after defined word: beginner's question

2006-12-25 Thread cormullion
This must be a beginner's question, but I can't find the answer to it in the manuals... Take this ConTeXt source: -- \def\Acme{% {\ss\sc ACME}} Welcome from \Acme. \Acme make fine products. -- When this is made into a PDF, it looks like this: -- Welcome from ACME. ACMEmake fine

Re: [NTG-context] Simple itemize format that eludes me

2005-02-19 Thread cormullion
Willi Egger [EMAIL PROTECTED] said on 2005-02-16, 20:14 (+0100 GMT): may be not a very nice solution but ... \startitemize[none,packed] \item LONG-UGLY-STRING-LIKE-THIS \startnarrower[left] A few sentences, indented somewhat from the left margin, that relate to the long

[NTG-context] Simple itemize format that eludes me

2005-02-16 Thread cormullion
This should be simple, but my brain is currently clogged from reading too many ConTeXt manuals, so please help! Im trying to make a simple format that Ive used elsewhere. The first part of each item (a kind of \head) is not indented, but the remaining paragraph(s) of that item are. For

Re: [NTG-context] Thumb indexes

2005-02-15 Thread cormullion
h h extern [EMAIL PROTECTED] said on 2005-02-13, 15:18 (+0100 GMT): \unprotected \def\rawsectionnumber#1{\countervalue{\??se#1}} % will be in kernel [...] Awesome (and scary) stuff. Works great, too. you may only read this answer if you also put it in the wiki OK, Ill have a go. Thanks

Re: [NTG-context] Thumb indexes

2005-02-13 Thread cormullion
Henning Hraban Ramm [EMAIL PROTECTED] said on 2005-02-13, 11:12 (+0100 GMT): I guess you should define a part-based logo with an absolute, calculated position via the layers mechanism. - part: even if you don't use the part hierarchy for other use, it would fit to chapter ranges. simply set

Re: [NTG-context] title, subject table of contents

2005-02-13 Thread cormullion
VnPenguin [EMAIL PROTECTED] said on 2005-02-13, 1:02 (+0100 GMT): \setuphead [chapter] [number=no] and use \chapter instead of \title. So I can obtain the TOC. But I dont why there is no clickable link in the TOC at

[NTG-context] Thumb indexes

2005-02-11 Thread cormullion
My last question! :-) I would like to have the various parts of a book marked with black rectangles at the right side of each page, visible when the reader flips through the pages. I googled successfully to find fancyhdr, but thats a LaTeX package, so I dont think it will work in ConTeXt. If

Re: [NTG-context] Thumb indexes

2005-02-11 Thread cormullion
Henning Hraban Ramm [EMAIL PROTECTED] said on 2005-02-11, 23:43 (+0100 GMT): Am 11.02.2005 um 23:19 schrieb cormullion: My last question! :-) I would like to have the various parts of a book marked with black rectangles at the right side of each page, visible when the reader flips

Re: [NTG-context] Active page numbers in contents?

2005-02-09 Thread cormullion
Hans Hagen [EMAIL PROTECTED] said on 2005-02-09, 18:03 (+0100 GMT): In the index I create, the page numbers are active (marked green as defined in \setupinteraction). In contents entries, only the chapter numbers are active. Can I make the page numbers active in contents? how about

Re: [NTG-context] PDF bounding box problem?

2005-02-09 Thread cormullion
Hans Hagen [EMAIL PROTECTED] said on 2005-02-09, 18:20 (+0100 GMT): To my untutored eye it looks like the MediaBox is being used - at least, the graphic takes up an area about Letter size. Is there some setting Ive missed that lets me get the bounds of the graphics rather than the file?

Re: [NTG-context] Setting up layout - basic questions

2005-02-08 Thread cormullion
Vit Zyka [EMAIL PROTECTED] said on 2005-02-08, 9:31 (+0100 GMT): \setuphead [chapter] [alternative=inmargin] Excellent - simple, really! :-) Thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

[NTG-context] List of special characters

2005-02-08 Thread cormullion
I cant find a definitive list of the special characters that I need to escape when used in a ConTeXt document. Im writing a short script that converts documents, and I need to catch some characters. Some of the TeX ones I tried didnt work. Couldnt see it in the manuals. Ive done the obvious

[NTG-context] Installing Bitstream fonts

2005-02-08 Thread cormullion
I found a font package called bitstream-vera4context on a website and downloaded it. Unfortunately I cant work out how to install them on my MacOS X system. Anyone care to give me the necessary mystic incantation? thanks ___ ntg-context mailing list

[NTG-context] Setting up layout - basic questions

2005-02-07 Thread cormullion
Hi there. Im a newcomer to ConTeXt, and Im so far really impressed with the power and flexibility I now have access to. Id be grateful for a few tips - Ive been reading the documentation over the last few days, and my heads getting full. Please excuse me if these questions are obvious. I want