Re: [NTG-context] semi-smart quotes in verbatim text?
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 verbatim lines, and/or remap characters so remind me in half a year (we can make a mkiv wish list) half a year later :-) No worries, at present. But I'd really like to solve this minor problem of incorrect quote-education at some stage in the future. I don't know how imminent the move to luatex is... cheers ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] page numbering in words?
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 string - could be done by a macro or external command, such as Wolfgang's zahl2string But how to do the second job - feed in a 'raw' pagenumber and output and print a converted one? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
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 like no other language I know ;-). I've changed only one spelling (fourty - forty) and the rest looks perfect. thanks again! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] page numbering in words?
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 http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
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 start with the zahl2string [1] package for LaTeX and adapt it to ConTeXt. This should be not such a big problem, you need only to replace the \newcommand defintions with \def and replace the german texts with english ones or whatever language you like. Thanks - it does look quite complicated! But this is a good start... ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
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 work/code? I converted the macro to the plain TeX format. The only thing you need to do now is to change the german text you own. thanks - looks like it's do-able, perhaps! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document; changing line spacing for typed text only
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, but there may be a few atoms of knowledge that add to your understanding: http://newlisper.blogspot.com/2007/02/newlisp-in-context.html (By the way - can I thank you personally, Hans, and the other helpful people on this list for your help - I completed my document and am pleased with the result...!) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document; changing line spacing for typed text only
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 distribute your module. Thanks - you can tell I took your advice to look at m-r.tex a bit too far! ;-) Looking at the code, I do not think that you need \def\NL{NL}. Also \NL is an internal command used in tables. Finally, in the definition of \stopNLE, you can replace \input \NLfile.out with \typefile{\NLfile.out} in which case you will not need to escape all the special characters. ConTeXt will do it for you. OK. In fact I originally had two commands - one for verbatim-text, the other for generating material to be included in 'ordinary paragraphs'. I originally had the code examples output using the vim-module. It worked great! But I just couldn't find a colour scheme that made the code more readable - most of the things I tried just made it look garish and less readable. Perhaps coloured syntax listings are too personal a thing... (And yes, it did slow down the process a tiny bit :-)) Your manual looks good, and easy to read. I think I will give newlisp a try to try to understand what is the whole fuss about lisp anyway :) Have fun! thanks again to you and everybody who helped... ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Index formatting: column leaks over page margin
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 - cool stuff! Thanks! Will study it today. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Keeping section heading with following text?
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 would be all the time, probably... But it doesn't mean that... :-) thanks again ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Keeping section heading with following text?
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 and subsection headings... try \setuphead[subsection][before={\page[bigpreference]}] Thanks! This is presumably going to put a page break before every subsection...? I don't really want to do that, of course - it would increase the page count significantly. I just want each heading to be kept with the first few lines of the following paragraph. I use a 'keep with next' setting in DTP and WP, but that doesn't seem to be a feature of ConTeXt. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Index formatting: column leaks over page margin
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 problem on page 140. The source reads \completeindex... ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Yet another math symbol
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, but can you see it with \showmathcharacters ? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Keeping section heading with following text?
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 'layout hammer' for fixing the odd glitch. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Index formatting: column leaks over page margin
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 there a command that says keep the columns for a \completeindex less than x cm wide or something? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Keeping section heading with following text?
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 list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \externalcommand?
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 continuing help. Thanks - and I've got this working fairly easily. I'm trying to work out what ConTeXt does when it reads in the text that the external program writes to the tmp.out file... It might be that I have to output some TeX commands to the tmp.out file rather than just plain text. That will require one of the other methods, i think. plenty to do this weekend! ;-) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Easy insertion of Unicode symbols?
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 astronomy] \symbol[jupiter] \stoptext so I can get this bit finished... 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 ♆}} \starttext \neptune \stoptext Thanks - these will need the font metrics file installed, though (I think). A project for the future... :-) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] semi-smart quotes in verbatim text?
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 �quotes�. let a = �quoted string� ie the quotes have been educated - although only half-educated, since the opening one should be an opening one, if you see what I mean. But I really don't want characters in the verbatim (typing) section to change...because when you copy them from the PDF into an editor, the code listings don't work! There must be some kind of switch somewhere that stops ConteXt changing them? context does nothing with the quotes, its the font Thanks, Hans. I'm a bit confused though: in the verbatim sections I want the vertical typewriter quote http://en.wikipedia.org/wiki/Apostrophe_% 28mark%29#Computers_and_Unicode rather than any '6' or '9' style quotation mark apostrophe. I can see the difference in most of the fonts I have here. In Courier, for example, the difference is about 25 degrees of slope, and the inclined quotation mark is lower down too. 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 ’...? many thanks for any help ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] semi-smart quotes in verbatim text?
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 getting a solution :-)... ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Easy insertion of Unicode symbols?
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 ♆}} \starttext \neptune \stoptext Thanks - these will need the font metrics file installed No, you don't need them. XeTeX can work with any OpenType font installed on your system. OK - I'll download XeTeX and give it a go. Thanks! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \externalcommand?
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... ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Easy insertion of Unicode symbols?
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 require running scripts, moving files around, etc...? The wiki suggests: Use \enableregime[utf] in order to be able to typeset in unicode under ConTeXt. But is it as simple as it looks? Have a deeper look at the wiki: http://wiki.contextgarden.net/Symbols http://homepage.mac.com/atl/tex/ http://source.contextgarden.net/symb-uni.tex Of course you need the fonts containing the symbols in place... Thanks! I'm looking for a level 1 solution (ie one that doesn't require me to go into the Terminal and start typing commands and moving files). Adam's document was interesting but looked a bit too daunting - a level 2 solution. Nothing wrong with that, just that I've got to find the time and skill to do it. 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. I just wish there was some way of accessing all the standard fonts and symbols that are already a few millimetres away on the hard disk... :-) thanks again! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] semi-smart quotes in verbatim text?
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 only half-educated, since the opening one should be an opening one, if you see what I mean. But I really don't want characters in the verbatim (typing) section to change...because when you copy them from the PDF into an editor, the code listings don't work! There must be some kind of switch somewhere that stops ConteXt changing them? thanks for any help ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Easy insertion of Unicode symbols?
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 even more astronomic symbols; check which fit your needs better. was wasn't mentioned on the symbols page until now, but comes with the distribution. Thanks. I'll try to get this working too! It will be something like this, i expect: \usesymbols[was] \showsymbolset[astronomy] only this doesn't work... :-) I really appreciate the help of you guys - steep learning curves etc . ! ___ 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
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 (MacOS X)? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Easy insertion of Unicode symbols?
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 order to be able to typeset in unicode under ConTeXt. But is it as simple as it looks? ___ 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
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 updater (context-update.ii2) Good news - I deleted everything from my system and re-installed from scratch. Now everything works better - and I've even got the vimsyntax coloring up my Lisp code! Cool. Thanks very much for your help... ___ 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
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!). ConTeXt ver: 2006.08.08 21:51 fmt: 2006.11.1 Thanks Jarimatti for sharing that. It suggests that my week-old installation isn't the most up to date one: ConTeXt ver: 2005.01.31 fmt: 2006.7.23 int: english mes: english I obviously chose a suboptimal option when I started i-Installer. (Not difficult, really - it felt like a first attempt to hot-wire a Boing 747... :-) I'm reluctant to re-install the whole thing, when ConTeXt is currently working so well. Perhaps next week. ___ 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
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 message was this: system : no macros found in module vimsyntax ! Undefined control sequence. l.15 \definetypeVIMfile [typeRUBY] [syntax=ruby] So it looks like it didn't really get started... The files t- vimsyntax.text and 2context.vim are rattling loose in the directory... ___ 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
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 inside this stuff is probably too much, too soon for me, since I'm a newcomer to the whole thing... In that sense I'm probably not the best tester for this stuff. :-) ___ 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
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 distribution? TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 executable : pdfetex format : cont-en inputfile : test2 output : pdftex interface : en current mode : none TeX run : 1 This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) \write18 enabled. (/usr/local/teTeX/share/texmf.tetex/web2c/natural.tcx) yes - and it's a default Gerben i-Installation, installed 1 week ago. I wouldn't really know how to do any other kind... ;-) I was hoping to use ConTeXt like I would use a luxury Mercedes car, to go places without having to open the engine door at all - but perhaps I will have to peer underneath the lid occasionally. :-) But - if it looks like I have to spend much time in the garage underneath the car, perhaps I will try to work out how you are calling external programs during the compilation of the document... I didn't know you could do that, and it might be a great avenue for exploration (once I have my overalls on)...! thanks! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] List of special characters?
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{% {\startcolor[darkgreen]\bf{#1}\stopcolor}} \chapter{Introduction} \Keyword{if} blah blah blah blah blah \Keyword{for} blah blah blah -- This works great. But then I've got the following keywords: # ! | \ @ ^ + - * / % Of these, i can get half of them to work: -- \Keyword{\#} \Keyword{\percent} \Keyword{\} \Keyword{\backslash} [EMAIL PROTECTED] \Keyword{/} -- but i can't get any of the the remaining ones ( ! | ^ + - * ) to. Any suggestions would be very welcome! I was then going to go on to add an indexing command: \define[1]\Keyword{% {\startcolor[darkgreen]\bf{#1}\stopcolor} \index{#1}} but this wasn't working either... Help! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] List of special characters?
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 \letterhat \letterslash \letterpercent, \% \letterless \lettermore \letterampersand, \ \letteropenbrace, \{ \letterclosebrace, \} Thanks - they all work great! A worthy addition to the manual...?! :-) ___ 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
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?
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
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 mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] List of special characters?
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 http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Making a verbatim file for another language
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: do I have to do anything else to get Context to recognise and use it? cheers ___ 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
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. cheers ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Spacing after defined word: beginner's question
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 products. -- - because I didn't have a space in the definition, I don't get a space in the second sentence, but the period didn't interfere with the execution of the first occurrence. But if I put a space in the definition after the 'E', I get this: -- Welcome from ACME . ACME make fine products. -- - and there's a space after the first 'E', which I don't want, even though there is now a space after the second... What am I doing wrong? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Simple itemize format that eludes me
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 ugly string above. The indentation allows the reader to scan the ugly strings (which might well be in alphabetical order. \stopnarrower \stopitemize Thanks - this works fine. (I think this might be the DD/DT construct in HTML that Im trying to reproduce...) :-) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Simple itemize format that eludes me
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 example: LONG_UGLY_STRING_LIKE_THIS A few sentences, indented somewhat from the left margin, that relate to the long ugly string above. The indentation allows the reader to scan the ugly strings (which might well be in alphabetical order. ANOTHER_LONG_UGLY_STRING_LIKE_THIS A few sentences, indented somewhat from the left margin, that relate to the long ugly string above. The indentation allows the reader to scan the ugly strings (which might well be in alphabetical order. I just cant persuade my understanding of ConTeXt facilities to do this for me... :-) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Thumb indexes
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 for your help again. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Thumb indexes
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 the \part output to do nothing - logo: some element that appears on every (or every right) page is called logo, see http://www.contextgarden.net/Logos Good thinking. Ill investigate. Thanks! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] title, subject table of contents
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 all :( \setuplist[chapter,section][interaction=all] ? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Thumb indexes
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 its not too difficult in ConTeXt, can anyone share the secret? thanks! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Thumb indexes
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 through the pages. Perhaps you find out looking at the code in http://contextgarden.net/ConTeXt_info_style (there are nav tabs at the bottom). Thanks - Im looking at it. It looks fairly advanced though :-) (Ive only been using ConTeXt for a few days...). How are you making a chapter (say) show a mark depending on its number? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Active page numbers in contents?
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 \setuplist[chapter,section][interaction=all] % or number or text or pagenumber Yes, looks like it defaults to sectionnumber. I wasnt using \setuplist. Thanks! And thanks for this amazing product, Hans (Im reading your documents as much as fast as I can...)! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] PDF bounding box problem?
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? \externalfigure[whatever.pdf][width=10cm,size=artbox] Great! I didnt spot the artbox option... thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Setting up layout - basic questions
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
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 ones - \%, \#, \, \$ - but wondering about some of the others (eg ! \ # $ % ' ( ) * + , - . / : ; = ? @ [ \ ] ^ _ ` { | } ~ ). thanks! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Installing Bitstream fonts
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@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Setting up layout - basic questions
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 to make headings in a sans serif font, such as Helvetica, and keep the body text in serif font (such as Times). (I use these font names loosely, I have no idea which fonts I can actually use, since I cant get XeTeX working yet.) I know that I should do something like this: \setuphead [chapter] [number=yes, style=\ss] \setuphead [section] [number=no, style=\ss] but the sizes of the different levels of heading are lost... So something like 16pt for chapter, 14pt for section, 12 point for subsection? Also, is it generally possible to make all the headings start at the left margin, with everything else (eg paragraphs, lists, etc) indented? Eg: Chapter X Paragraph Section X Paragraph Subsection y Paragraph Thanks for any pointers. Im more of a FrameMaker user up to now, so I may not yet be thinking the ConTeXt way. :-) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context