Re: [NTG-context] Textext Question
Le 27 mai à 00:06:16 Otared Kavian [EMAIL PROTECTED] écrit notamment: On 26 mai 2006, at 22:24, Jean Magnan de Bornier wrote: Le 26 mai à 18:10:43 Willi Egger [EMAIL PROTECTED] écrit notamment: Hi Jean Magnan, You should add \useMPlibrary[txt] in order to get textext working. Further define AX as a path only. In the dummy-graphic say drawdblarrow AX.withcolor blue; After these changes I got the label as well as the double arrow. Hi, thanks to you and Renaud; I changed my file to this: [] Hi, Actually I tried your file and got the same Undefined message in place of the graphics. However the following works for me (latest ConTeXt installed with i- Installer on Mac OS X 10.4.6): \setuppapersize[S6][S6] \setupcolors[state=start] \starttext \startbuffer[essai] numeric u; u = .4cm; path p; p = (10u,0)--(0,0)--(0,10u); pickup pencircle scaled .8mm; drawdblarrow p withcolor red; label.rt(textext($3x^2+\pi$), (5u,6u)); \stopbuffer \placefigure[left]{bla.bla}{\processMPbuffer[essai]} \input dawkins \stoptext If I add \useMPlibrary[txt] at the beginning everything works fine as well. But if I add \runMPgraphicstrue then I get the Undefined message in the PDF. So it seems that the problem comes from this latter command. Hi all, I tried various ways as suggested on my file with the setups \useMPlibrary[txt] and \runMPgraphicstrue. The only combination that's working is to have \useMPlibrary[txt] and not the other. Is it proper to my installation, as others seem to have other requirements? As for texmfstart texexec it is unknown on my machine, I don't have ruby installed anyway (is it necessary?). Thanks to all! -- jean ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] A question for you
Am 2006-05-27 um 04:01 schrieb Idris Samawi Hamid: Which typesetting tasks do you NOT do in ConTeXt, and what do you prefer to use for those tasks? I use InDesign CS(2) for most of my print work, because... - I do design for a living, and my colleagues and sometimes customers must be able to work with my data - I mostly have irregular layouts that maybe possible, but very non- intuitive and uncomfortable in a command based way - I seldom could use TeX's strong points (like toc, index, references, numbering etc.) - most of my work is easier to do if I can see what I do (if not what I get) - I still can't handle formula based graphics (MetaPost, PSTricks et al.) - it handles image downsampling etc. for me (I often need different resolutions of the same layout) - I hate QuarkXPress, PageMaker, CorelDraw et al. ;-) I use ConTeXt if the task is suitable for automation (e.g. my address book and planner calendar) or for text-centered books and I try to if I need the same content in different formats (e.g. presentation/ handout; songbook in A4 and planner format). I normally never use word processors other than for text exchange - I write letters and invoices in InDesign, even if I try to switch to ConTeXt for that. One of my last projects (a book on steam engineering) contained a lot of formulae; I would have done it with ConTeXt, but the customer wanted to get editable WYSIWYG data, so I used ID again. On the one hand it was tedious (math accents are difficult with such a program), on the other hand I finally could try ID's book features that worked rather well for me. A corallary question: What typesetting tasks do you find difficult-to-onerous in ConTeXt (even in nothing else is available)? - It's hard to understand how the layout parameters influence each other - There are often situations in which I can't understand why something doesn't work (e.g. named buffers in layers, where nameless buffers work) - It's hard to understand or track down, if/why some fonts aren't found - some documentation is hard to find (if present at all); esp. if plain TeX commands are involved - I never understand, when (de)activation of elements (logos, layers...) works or why not Everything is hard if you're not used to it... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Textext Question
Aditya Mahajan wrote: On Fri, 26 May 2006, Jean Magnan de Bornier wrote: Le 26 mai � 18:10:43 Willi Egger [EMAIL PROTECTED] �crit notamment: Hi Jean Magnan, You should add \useMPlibrary[txt] in order to get textext working. Further define AX as a path only. In the dummy-graphic say drawdblarrow AX.withcolor blue; After these changes I got the label as well as the double arrow. Hi, thanks to you and Renaud; I changed my file to this: ... \setupoutput[pdftex] \runMPgraphicstrue \useMPlibrary[txt] \setuppapersize[S6][S6] \setupcolors[state=start] \startMPinclusions numeric u; u=.8cm; path AX; AX=(10u,0)--(0,0)--(0,10u); \stopMPinclusions \starttext \startuseMPgraphic{dummy} pickup pencircle scaled .8mm; drawdblarrow AX withcolor green; label.rt(textext($3x^2+\pi$), (5u,6u)); \stopuseMPgraphic \placefigure[left]{bla.bla}{\useMPgraphic{dummy}} \input dawkins \stoptext ... I get the same unknown in place of the label. On computer one (my everyday machine) context is provided by TeX-Live, and I made the same experiment with my computer two where context is installed via TeTeX. Same result on both! This file compiles fine here (Windows XP + ConTeXt ver: 2006.05.17 10:08). I get proper text in the right location. I Think I have followed normal installation procedures (enabling write18 etc.) So I'm confused Thanks for any more help! Your first message said that you were running texexec.pl. Try switching to texexec.rb, i.e., invoke context with texmfstart texexec filename the file compiles ok here textext is scanned for (but you can force it with \forceMPTEXgraphictrue) This is what supp-mps defined: \forceMPTEXcheck{etex} \forceMPTEXcheck{textext} \forceMPTEXcheck{graphictext} Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] t-greek module and Latin Modern
Alan Bowen wrote: *B.* If I *do* reinstall the Latin Modern, I get �Arithmetic overflow errors� when there is Greek in the footnotes. My code for this is: hwo does the error message look? (the metrics of cm and lm are the same but there may be additional glyohs) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX hangs
Otared Kavian wrote: As told above, ConTeXt is called from within TeXShop, but doing texexec eth-hans-2.tex --pdf in a Terminal window gives the same result (I apologize for not being still up dto date with texmfstart... :-) ) I wanted to let you know that I am gathering a number of issues or ConTeXt things which do not work properly when ConTeXt is used together with XeTeX. Should I send them directly to you and Taco or post each problem separately on the list? ok, what you see happen in 'non xetex context' is ok, \catcode`ð=\active \defð{^^F0} will fail because pdftex is *not* utf and only sees 8 bit characters, so you can only set the catcodes 0-255 \catcode `number=number and in your case `à will become a number ° but ° not \bgroup \let\unicodechar\unicodenumber \catcodeð=\active \defð{^^F0} \egroup could work (watch out: no `) but again, \catcode16 bit number is not accepted by regular 8 bit tex so, a the moment, what you observe is ok; at the end of this year, in a 32 bit pdftex, things may work different Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] making multiple choice questions exams
Hi, I need to make several versions of a multiple choice questions exam. In each exam the questions have to appear in a different order. Did you know a easy way to do that? Thanks Jorge ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Space between footnote number and text
Does anyone know of a way to get rid of the space between a footnote number and the footnote text? I am formatting my footnotes in paragraph form (n=0) and sometimes the footnote numbers actually appear at the end of a line with the textwrapped around tothe beginning of the next line (which doesn't look very attractive). I would prefer there to be no space at all between the footnote number and the text, but if there has to be one, it seems like it should be a non-breaking space. Is there a way to "fix" this? Jeff Dodson _ Call Anyone, Anytime, Anywhere in the World - FREE! Free Internet calling from NetZero Voice Visit http://www.netzerovoice.com today! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] A question for you
On 5/26/06, Idris Samawi Hamid [EMAIL PROTECTED] wrote: Which typesetting tasks do you NOT do in ConTeXt, and what do you prefer to use for those tasks? I'm involved with a report series for a small scientific organization. Years ago the organization hired a designer who knew PageMaker. A couple reports were done in PM, but the next one had losts of math and a plain TeX version of the MS. We used ConTeXt to duplicate his design, with better results than you can get from PM. Meanwhile, other authors want to use LaTeX, the designer moved on, and the organization couldn't find a contractor willing to learn ConTeXt, so I ended up creating a LaTeX style. My feeling is that ConTeXt is good for creating one-off designs, but for scientific work LaTeX is unavoidable. Few people are willing to invest time in ConTeXt when they are already familiar with LaTeX and use it routinely for journal articles, proceedings, etc. In particular, it is easy to cut and paste equations between reports and articles. -- George N. White III [EMAIL PROTECTED] Head of St. Margarets Bay, Nova Scotia ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new release
Hans Hagen wrote: texmfstart --verbose --unix --stubpath=yourbinpath --make all That is a cool feature. But it does not set executable bits on the stubs yet, could you fix that? Regards, Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new release
Christopher Creutzig wrote: Hans Hagen wrote: texmfstart --verbose --unix --stubpath=yourbinpath --make all That is a cool feature. But it does not set executable bits on the stubs yet, could you fix that? if you tell me what magic code is needed ... Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Stuck in texmfstart
Neal Lester wrote: At 10:38 AM 5/26/2006, you wrote: On 5/26/06, Neal Lester [EMAIL PROTECTED] wrote: At 09:17 AM 5/26/2006, you wrote: This morning, when I try to run texexec, texmfstart gets stuck in the loop at line 262. Placing puts f below line 266 ( f.gsub(...) do prints: $TEXROOT/texmf/{-local,}/web2c/texmf.cnf (over and over again) Mine doesn't seem to enter this loop -- nothing is printed. The above line looks like the entry from texsetup with an extra /: set TEXMFCNF=%TEXPATH%texmf{-local,}/web2c What I did is copy setuptex to /etc/profile.d/setuptex.sh and then hard coded the value of TEXROOT in setuptex.sh instead of having the script set it from the command line argument. echo $TEXMFCNF prints $TEXROOT/texmf{-local,}/web2c i'm puzzled because the loop you mentioned is not supposed to be entered unless you run texmfstart as a kpseserver do you use the latest versions of texmfstart etc? Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] notes on columnset typesetting (not only about)
Hans Hagen wrote: Vit Zyka wrote: Firstly, let us show some examples: - transparency frames ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-body1.pdf - two columnsets + marginals + figures + balancing ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-body2.pdf - two columnsets + page float ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-body3.pdf - three columnsets + floats ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-encyk.pdf - content ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-content.pdf - index ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-index.pdf nice; how about an article on such a project for the maps/tugboat hmmm, I will think about it. But in the summer time I want to spent my spare time by beginners manual translation... Comments: grid ? if we want to do avoiding orphans and widows automatically, we would probably need the glue with DISCRETE STEP of stretch/shrink. Then we can say e.g. \let\bl=\baselineskip \setuphead [section] [before=\vskip1\bl plus1\bl withstep1\bl] to get vertical space before section head exactly 1 OR 2 \baselineskip height. Another solution with stepwise box: \vbox to2\bl plus2\bl withstep1\bl{\vfil heading \vfil} hm, worth investigating but maybe wait for what pdftex will bring some day soon you mean things about lua? ! the only problem was in the table of contents + columns; from the first line there was a small shift between columns; perhaps \splittopskip? but setting it to large enough value does not solve it. could be; actually i wish i'd set topskip to strutheight by default which would make life way easier perhaps; but imagine different strutheight in different columns (each column top line contains different font size - in the content it can be very frequent if each head level is typeset with diferent size); what about \setupcolumns[topskip=dimen|font] if font is given, dimen is calc after Hans improvement seems that some floats soes not dissappered now, but need to be carefull i think that indeed some floats get lost bugs were solved but it's always a bit tricky with left-overs + floats insertion with specifying place ? for top float: automatically setting \placeongrid[{broad,high}] for bottom float \placeongrid[{broad,low}] to be vertically align with text on the rest of column(s) there is some control possible, so remind me when you need it again (\OTRSETprepareforcolumnslot permits log/middle/high handling but it's not keyword driven (yet) OK. * balancing: only manually by setting: \setupcolumnsetlines[columnset_id][columnset_page][column][line] ! Not so painful if it not occures next: If there are many floats near balancing place they sometimes disappear or cause ignoring balancing - even if they can fit on the place. ? understand that automatical balancing with floats is extremly difficult indeed * page floats: big improvements during the work. ! running marginal text continue through the page with only float = so you have to manually insert blank vertical margin on such place * header footers: Hans did a new column marking: \getmarking[marking_id][column][last/first]. ! There are some problems [perhaps with expansion (different counter number and text)] if marking goes between two columnsets (framed chapters cross two cols in examples). hm, some day ... = found acceptable hack but need more ivestigation on small examples for cleaning. ok metapost inclusion + the most powerful, smooth and stable part of ConTeXt in my opinion (see random frames, circles with transparent graphics, lines with color shading) = if you have many (over 1024!) shadings (- MP specials) do \settrue \manyMPspecials this is the default now (today i played with persistent mp runs and that will speed up runtime processing enourmously) what is persistent mp run? It means mp that has not changed since previous run? It would be great. (btw compilation the whole book takes about 20 min on 3.2 Ghz AMD.) Vit index (register) + nice possibility to differentiate several groups (here 8 from which 4 have different visual marking of page number, see index example) - sorting: until this spring there was no satisfied backround for Czech sorting in newtexutil.rb till this spring. = I did dirty reimplementation of old texutil.pl for doing so * I have to have a look for new sorting now. - coupling: page numbers with group preserving (see example) = also in texutil.pl reimplementation regime * my great discovery was that the regime IS \enableregime{latin2} % correct and NOT \enableregime{il2} % incorrect! well, il2 is actually a kind of hack:
Re: [NTG-context] Stuck in texmfstart
At 07:06 AM 5/27/2006, you wrote: What I did is copy setuptex to /etc/profile.d/setuptex.sh and then hard coded the value of TEXROOT in setuptex.sh instead of having the script set it from the command line argument. echo $TEXMFCNF prints $TEXROOT/texmf{-local,}/web2c i'm puzzled because the loop you mentioned is not supposed to be entered unless you run texmfstart as a kpseserver do you use the latest versions of texmfstart etc? I downloaded everything from pragma-ade.nl on last Thursday May 27th. The installation procedure I used is described in: http://www.ntg.nl/pipermail/ntg-context/2006/018759.html Neal ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] notes on columnset typesetting (not only about)
Vit Zyka wrote: hm, worth investigating but maybe wait for what pdftex will bring some day soon you mean things about lua? no, more things like 32 bit, unicode, opentype and such (the impact of lua will most noticably in interfacing areas) perhaps; but imagine different strutheight in different columns (each column top line contains different font size - in the content it can be very frequent if each head level is typeset with diferent size); what about \setupcolumns[topskip=dimen|font] if font is given, dimen is calc hm, probably doable but tricky (never say never) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] making multiple choice questions exams
batela wrote: Hi, I need to make several versions of a multiple choice questions exam. In each exam the questions have to appear in a different order. Did you know a easy way to do that? i did post some example code, didn't i? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] A question for you
Idris Samawi Hamid wrote: Which typesetting tasks do you NOT do in ConTeXt, and what do you prefer to use for those tasks? I do not use ConTeXt for letters and invoices. I guess I could, but I see little point, since I do not really care about how they look as long as can get my point (or required payment ;-)) across to the reader. And writing letters is simply easier in a word processor. And for web programming I use plain pdfTeX to create auto-generated PDF because it is both faster in processing and easier to trim down the distribution. A corallary question: What typesetting tasks do you find difficult-to-onerous in ConTeXt (even in nothing else is available)? I dearly miss page templates a la framemaker. I am not sure if ID can do that (we have CS2, but I never can find the time to give it a thorough testing). Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Textext Question
Humble I got this one wrong! Willi Aditya Mahajan wrote: On Fri, 26 May 2006, Willi Egger wrote: Hi Jean Magnan, You should add \useMPlibrary[txt] in order to get textext working. Why is this so? I could not find anything in meta-txt.tex to suggest that it is needed for textext. The example works even without \useMPlibrary[txt]. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] making multiple choice questions exams
Thanks for the reply. Currently I make my examinations with MUCH+LaTeX, but I am exploring ConTeXT and would like to know all its potentialities before dedicating it more intensive atttention. However, as a teacher I recognize the importance of good examples in the pedagogical actions. Thanks a lot. Jorge Em 27/05/2006, às 5:22, Hans Hagen escreveu: batela wrote: Hi, I need to make several versions of a multiple choice questions exam. In each exam the questions have to appear in a different order. Did you know a easy way to do that? i did post some example code, didn't i? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Abraços, Jorge Manuel de Almeida Magalhães ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] making multiple choice questions exams
batela wrote: Thanks for the reply. Currently I make my examinations with MUCH+LaTeX, but I am exploring ConTeXT and would like to know all its potentialities before dedicating it more intensive atttention. However, as a teacher I recognize the importance of good examples in the pedagogical actions. i'll make you a \startitemize[a,packed,random] \startitem ... \stopitem \startitem ... \stopitem \startitem ... \stopitem \stopitemize i.e. a random option, since it's only a few lines of code Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] /author parameters in Bib module
Hi all. I´m a relative newbie in ConTEXt but have used LaTEX for a couple of years. I recently decided to write me master's thesis in ConTEXt and so far it has been sweet... I was looking into the Bib module and there is only one thing that I can't find in the documentation. What are parameters in the \author field? This is what I found in the documentation: \author[#1]{#2}[#3]{#4}{#5} AUTHOR The author of a standalone publication, like a monograph. What do #1, #2, #3, #4 and #5 stand for? If we look at the doc we get: \author[]{Taco}[T.]{}{Hoekwater} So we get: #2 = First name. #3 = Initial of first name? Middle name? #5 = Last name I have no idea what to do with #1 and #4. Thanks in advance... Best regards/Kær kveðja, Guðmundur J. Kristjánsson [EMAIL PROTECTED] | [EMAIL PROTECTED] | Tel. +354-893-. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] A question for you
On Fri, 26 May 2006 20:01:57 -0600, Idris Samawi Hamid [EMAIL PROTECTED] wrote: Which typesetting tasks do you NOT do in ConTeXt, and what do you prefer to use for those tasks? I don't use context for any technical documentation that requires several output formats (HTML, PDF, troff for manpages), and i use DocBook instead, well suited for a wide range of transformation. This said, I now uses context as backend typesetting engine to convert the DocBook documents into PDF. I can then control the (high quality) output rendering, what I cannot do with XSL FO based transformation, and I don't need java neither (required to process FO, unless you use foxet, maybe). What typesetting tasks do you find difficult-to-onerous in ConTeXt (even in nothing else is available)? Common documents exchanged with colleagues (who have falled into the dark side of MS wor(l)d). BTW, I think that the biggest limitation to have context more used is the installation difficulties: too many dependencies to update by hand (tetex, LM fonts, launching scripts, config files), no standard installation (what about having one day something like a configure; make install), no packaging à la RPM, apt-get, or portinstall. Of course, once done, upgrading the context release is not a big deal, but the first step is not obvious. It's the only explanation I've found why latex is so popular; knowing a bit more the context interface and features I now look latex as a stone age tex macro package. Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context