Re: [NTG-context] Question on typesetting paragraphs with non rectangle shape
Page 441 of http://www.pragma-ade.com/general/manuals/metafun-s.pdf Cheers Le 20 oct. 2015 10:32 PM, Joseph Canedoa écrit : > > Hello all, > > I am quite new to ConTeXt and I wished to know if it was possible to easily > typeset paragraphs with non rectangle shape. More specifically I’d like to > make a paragraph which ends with a tailpiece, ie finishes like a triangle > (the text width decreases until reaching very narrow width at last line). > > Many thanks > > Best regards > > Joseph Canedo > > > ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \installprettytype problem
Replace + V(ltgtstring) by -- + V(ltgtstring) at L175 of t-pretty-c.lua as a temporary workaround… Le 2015-08-21 11:54, Matthieu Leroy a écrit : Bonjour Renaud, Thank you ! It works but there is some problem with the = or operator. Please see the attached files. Regards, Matthieu Le 21/08/15 00:21, Renaud AUBIN a écrit : Bonsoir Matthieu, Give a try to https://github.com/nibua-r/pretty-c and tell me if anything goes wrong… It's basically a rewrite of Peter's module adapted to mkiv + new verbatim (new at the time of writing) I'll test it tomorrow… Anyway, you're welcome to contribute and/or submit issues. Best regards, Renaud Le 20 août 2015 10:43 PM, Matthieu Leroy matt57.le...@orange.fr a écrit : Hello, I want to use the C-Pretty-Printing module. According to the Verbatim page of the Context garden, I have to use the \installprettytype command, but this one doesn't work (error : undefined control sequence). I'm using the 2015.08.13 19:33 Context version. Example : \installprettytype[C][C] \definetyping[C][option=C] \startC int func(int a){ if(a 4) return 0; // comment else/* comment */ return 10; } \stopC Thank you. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \installprettytype problem
Bonsoir Matthieu, Give a try to https://github.com/nibua-r/pretty-c and tell me if anything goes wrong… It's basically a rewrite of Peter's module adapted to mkiv + new verbatim (new at the time of writing) I'll test it tomorrow… Anyway, you're welcome to contribute and/or submit issues. Best regards, Renaud Le 20 août 2015 10:43 PM, Matthieu Leroy matt57.le...@orange.fr a écrit : Hello, I want to use the C-Pretty-Printing module. According to the Verbatim page of the Context garden, I have to use the \installprettytype command, but this one doesn't work (error : undefined control sequence). I'm using the 2015.08.13 19:33 Context version. Example : \installprettytype[C][C] \definetyping[C][option=C] \startC int func(int a){ if(a 4) return 0; // comment else /* comment */ return 10; } \stopC Thank you. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] − RobotoSlab Italics… or not
Hi Hans, Thank you for the review and your suggestions! Le 24/11/2013 12:53, Hans Hagen a écrit : normally typescripts like that end up in tex/context/third (maybe at some point we can collect extra typescripts in one package) https://github.com/nibua-r/roboto-context/issues/1 Extra typescripts collection is a good idea. I have at least some typescripts here for Minion, Meta, frutiger, … Any other contributed typescripts are welcome! a few suggestions: \definefontfeature[slanted][default][mode=base,slant=.25] best define roboto-slanted as you don't want to overload other definitions of slanted and this is rather font specific .. and are you sure you want base mode here? https://github.com/nibua-r/roboto-context/issues/2 \definefontfeature[roboto-slanted][slant=.25] \definefontsynonym [\s!SerifItalic] [\s!Serif] [\s!features={default,roboto-slanted}] should also work and delays default RobotoSlab doesn't get slanted without mode=base and/or features={default,roboto-slanted}. I can't explain why but maybe Wolfgang could explain since he is the one who provided the solution in the first place. https://github.com/nibua-r/roboto-context/issues/3 https://github.com/nibua-r/roboto-context/issues/4 also, name type typescript type-imp-roboto.tex (or .mkiv) https://github.com/nibua-r/roboto-context/issues/1 Hans Best Regards, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] − RobotoSlab Italics… or not
Le 23/11/2013 19:08, Wolfgang Schuster a écrit : Am 23.11.2013 um 18:51 schrieb Renaud Aubin r...@renaud.io: Hi folks, I'm working on a Roboto typescript and starting from the work done by Zen Lima back in last July, I would like to push things further. Since I work on some Android projects and use Google Keep mostly on a daily basis, I was surprised to not find italics for the RobotoSlab (either on the web or by extracting the assets of the Keep package). Why am I surprised: Keep do have serif title placeholders for the new note EditText and I see it everyday! $ mtxrun --script font --list --all --pattern=robotoslab robotoslab robotoslabbold RobotoSlab-Bold.ttf robotoslabbold robotoslabbold RobotoSlab-Bold.ttf robotoslablight robotoslablight RobotoSlab-Light.ttf robotoslabregular robotoslabregular RobotoSlab-Regular.ttf robotoslabthin robotoslabthin RobotoSlab-Thin.ttf OK, RobotoSlab fonts are accessible and I have a working typescript to use RobotoSlab with ConTeXt MkIV (I'll made the git repo public soon). At first, my thoughts are: nevermind the Slab italics but now, I'm curious since Inkscape, LibreOffice, … propose the italic and bolditalic features of the RobotoSlab (check out the attached font-manager screenshot). I've worked with different kind of fonts'family (more or less complete) and used and modified many typescripts in my ConTeXter's life but there I should be missing something obvious. Where are the RobotoSlab Italics??? My experience is that italic and bolditalic should correspond to files… First guess: no files so the RobotoSlab Italic and BoldItalic features are just faked ones composed by my GNU/Linux Debian system. No, I must be wrong here too… Any thoughts on The Quest of the Hidden Italics of the RobotoSlab fonts!“? The font has no italic but inkscape slants the regular and bold styles to get them, you can do the same in context with the slant key from \definefontfeature. \definefontfeature[slanted][default][mode=base,slant=.25] \definefontfamily[roboto][rm][Roboto Slab][it=features:slanted,bi=features:slanted] \setupbodyfont[roboto] \starttext Regular {\it Italic} {\bf Bold} {\bi BoldItalic} \stoptext Wolfgang ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Thank you Wolfgang, I've made a repo: https://github.com/nibua-r/roboto-context Reviews are always welcome! Any chance that this typescript could find a way to the main ConTeXt distro? Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] pretty-java: a MkIV java syntax highlighting third party module
Hello, I'm working on a LPeg-based Java syntax highlighting module → see https://github.com/nibua-r/pretty-java for testing and feedbacks. Cheers, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can C-Pretty-Printing module for MKIV be installed through first-setup
Le 11/06/2012 13:48, Peter Münster a écrit : On Mon, Jun 11 2012, Jan Pohanka wrote: I'd like to use C-Pretty-Printing module. As it is listed on http://modules.contextgarden.net I thought it should be installed by first-setup.sh --modules=all. No, it shouldn't, because it doesn't work with latest ConTeXt versions. You could also try http://tlcontrib.metatex.org/cgi-bin/package.cgi/action=view/id=367 but I don't know, if it works with latest ConTeXt. Fortunately my c-pretty-printer package does work with a recent (i.e. 2012) context… Jan, let me know if you use it, if you need help on installation process, or if you would like to see some specific improvments. Cheers, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new lucida font
Le 19/03/2012 11:36, Wolfgang Schuster a écrit : Can you try to attached typescript file, I replaced the files for italic and bolditalic fonts for the sans style with the names from the latex example document. The slanted and boldslanted alternatives for the sans style are also fixed. Wolfgang +Small Caps support: 38,42d37 \starttypescript [\s!serif] [lucidanova,lucidaot,otlucida] \definefontsynonym [\s!SerifCaps][\s!Serif] [\s!features=smallcaps] %definefontsynonym [\s!SerifBoldCaps][\s!SerifBold] [\s!features=smallcaps] \stoptypescript The SerifBoldCaps line is commented out since I get an error at processing… and can't figure why… Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [OT] − TEX line breaking algorithm in JavaScript
http://www.bramstein.com/projects/typeset/ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
Hi Hans, On Linux with debian minimals: l.42 \loadmarkfile{catc-ini} Please type another input file name: ! Emergency stop. to be read again \relax l.42 \loadmarkfile{catc-ini} Cheers, Renaud Le 18/01/2011 19:55, Hans Hagen a écrit : Hi, I uploaded a new beta. The most important changes are: - Environments and modules are no longer loaded under protection so this has to be done explicitly in the files themselves. So far we haven't encountered problems with that change. - Some more cont-*.tex files have been split in mkii and mkiv versions. In mkii a tex file is loaded when no mkii file is found, but in mkiv only files with suffix mkiv are loaded. That way we stay compatible. This also means that cont-sys.tex is no longer loaded in mkiv which is okay as normally nothing in there concerns mkiv. If you use that file for setting up for instance another default paperformat, you'd better create a cont-sys.mkiv file. (Maybe that file should go and we should use the configuration file instead.) - The multilingual interface and messages are now loaded at the \LUA\ end. If you observe problems, please let me know. - If you are adventurous you can add the following to cont-new.mkiv \enablemode[*nofonts] This will postpone font loading and will be default soon. This saves runtime when you use another font than latin modern. When no font is loaded before the first \starttext, modern will kick in. A side effect is that any text typeset before \starttext will not show up in the output. If you observe that, you need to setup a bodyfont explicitly beforehand. In practice there should be no problems. The delayed loading is somewhat tricky but has been tested for a while. - There have been some fixes to linebreaks in verbatim. Hopefully I didn't mess things up too much. - An upcoming version will also have \nonknuthmode as default. You can test this by putting this macro in cont-new.mkiv. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
Ok, using /usr/local/ConTeXt_version_2010.11.26 will not please the resolver or something else because of the dot… mv do the job It would be nice to think of those like me who use dot into their naming scheme… ;) Renaud Le 18/01/2011 20:13, Renaud AUBIN a écrit : Hi Hans, On Linux with debian minimals: l.42 \loadmarkfile{catc-ini} Please type another input file name: ! Emergency stop. to be read again \relax l.42 \loadmarkfile{catc-ini} Cheers, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Custom XML Pretty Printer
Hi Aditya, I'm working on that… When do you need it? Cheers, Renaud Le 16/01/2011 23:06, Aditya Mahajan a écrit : On Sun, 16 Jan 2011, Renaud AUBIN wrote: Now available on tlcontrib: http://tlcontrib.metatex.org/cgi-bin/package.cgi/ruid=4591828845/action=view/id=388 Any particular reasons why the spaces are not part of the syntax highlighting group? For example just add \def\RaXmlSnippetComment#1{«#1»} and observe the output: «!--» «T»«h»«a»«t» «i»«s» «a» «t»«e»«s»«t» «--» I want to use a different syntax highlighting scheme that provides background colors and such. For that, it will be much nicer if the output were «!-- That is a test --» Is that possible? Aditya ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
Except that I used . And not * Hans Hagen pra...@wxs.nl a écrit : On 18-1-2011 10:04, Peter Münster wrote: Renaud AUBINau...@nibua-r.org writes: It would be nice to think of those like me who use dot into their naming scheme… ;) See also http://www.ntg.nl/pipermail/ntg-context/2010/052339.html ;) well, having a * in a filename is a bad idea anyway Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la bièveté. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Custom XML Pretty Printer
Hi Aditya and happy ConTeXters, I've worked at the beginning to include those spaces in the different syntax highlighting groups but failed. Considering the definition of Comment in the grammar provided by t-pretty-ra-xml.lua: −−− we have the following lua code: Comment = makepattern(handler,comment, Comment_open) * ( V(line) + V(whitespace) + makepattern(handler, comment, Comment_content) )^0 * makepattern(handler,comment, Comment_close), Here I use the fallback mechanism to the default grammar, defined in v-default.lua, with V(line) and V(whitespace). −−− To circumvent the problem described by Aditya, I assumed that I could do (since I cannot remember my first experiments, ante git versioning): local line = patterns.newline * (patterns.emptyline)^0 * patterns.beginline local whitespace = (patterns.space + line)^1 […] Comment = makepattern(handler,comment, Comment_open) * ( makepattern(handler, comment, line + whitespace + Comment_content) )^0 * makepattern(handler,comment, Comment_close), The newlines are no more detected… I've tried some other code but everything failed… I don't know if this is related but, as you have probably noticed, I don't manage multiple empty lines too. I'm out of ideas, good as bad… Hans, or another Guru, to the rescue? More than a solution for Aditya, it would be nice to give me some line/space stuffs' tricks since the resulting code could be cleaner and leaner too… Cheers, Renaud Le 16/01/2011 23:06, Aditya Mahajan a écrit : On Sun, 16 Jan 2011, Renaud AUBIN wrote: Now available on tlcontrib: http://tlcontrib.metatex.org/cgi-bin/package.cgi/ruid=4591828845/action=view/id=388 Any particular reasons why the spaces are not part of the syntax highlighting group? For example just add \def\RaXmlSnippetComment#1{«#1»} and observe the output: «!--» «T»«h»«a»«t» «i»«s» «a» «t»«e»«s»«t» «--» I want to use a different syntax highlighting scheme that provides background colors and such. For that, it will be much nicer if the output were «!-- That is a test --» Is that possible? Aditya ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Custom XML Pretty Printer
Now available on tlcontrib: http://tlcontrib.metatex.org/cgi-bin/package.cgi/ruid=4591828845/action=view/id=388 Cheers, Renaud Le 18/12/2010 23:39, Renaud AUBIN a écrit : Hi there, See http://gitorious.org/xml-pretty-printer-module-for-context for testing. As soon as I have made more testing and some improvements (inc. cleaning up), I'll submit to tlcontrib. Cheers, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)
Hi, \starttext % \systemcommandmode % (doesn't work here, i.e. strange ^ char with texexec and not defined by mkiv) \startMPcode draw fullcircle scaled 3cm; \stopMPcode \stoptext % (missing in your code snippet) Tested on the following ConTeXt minimals version on an up-to-date debian (amd64 unstable/experimental hybrid). MTXrun | main context file: /usr/local/ConTeXt_version_2010.11.26/tex/texmf-context/tex/context/base/context.tex MTXrun | current version: 2010.11.26 22:49 Simplest test: − Reported OK with context test − Reported OK with texexec test My experience is that it is best to use minimals, so maybe it can help if you give it a try… That's trivial with ./first-setup.sh (I usually suffix the dir name and use a plain ConTeXt symbolic link… just in case to recover a previous version if the new one… um… doesn't work). Best regards, Renaud Le 10/01/2011 17:18, Taco Hoekwater a écrit : Hi, My linux is not Debian-based so I cannot help much further (but I have changed the title of this reply in the hope that more debian people will read it) Best wishes, Taco On 01/10/2011 04:42 PM, Jonas Stein wrote: On 2011-01-10, Taco Hoekwatert...@elvenkind.com wrote: On 01/10/2011 03:50 PM, Jonas Stein wrote: $ context test.tex MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found Something is wrong with your installation. Mkiv should have found a texmfcnf.lua at this spot. What distribution are you running? the system is debian testing. i have the distribution packages installed for texlive and so on. I got context from here: http://packages.debian.org/experimental/all/context/download kind regards, ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)
Hi Aditya, Hum… OK, my english is not so good but Tested on the following **ConTeXt minimals** version on an up-to-date debian seems clear to me. And, you are right: /usr/local is one of the place to install stuff **not** installed by the debian package manager. ;) Now, I have installed the pointed package for testing and I confirm the result: MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-context.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Still investigating… Renaud Le 10/01/2011 19:14, Aditya Mahajan a écrit : On Mon, 10 Jan 2011, Renaud AUBIN wrote: \stoptext % (missing in your code snippet) Tested on the following ConTeXt minimals version on an up-to-date debian (amd64 unstable/experimental hybrid). MTXrun | main context file: /usr/local/ConTeXt_version_2010.11.26/tex/texmf-context/tex/context/base/context.tex Are you using the debian package that Jonas linked to? /usr/local/ConTeXt_version_2010.11.26 seems to be a strange place for a package manager to install stuff. Aditya ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)
I assume from minimals install script that you need to generate the format with mtxrun --generate --tree=xxx --some --options but failed at this point… Maybe Mojca or Arthur (as authors of bin/mtx-update.lua) could complete? Anyway, the post-install script packaged with that .deb doesn't seem to do the job for you… Renaud Le 10/01/2011 19:36, Renaud AUBIN a écrit : Hi Aditya, Hum… OK, my english is not so good but Tested on the following **ConTeXt minimals** version on an up-to-date debian seems clear to me. And, you are right: /usr/local is one of the place to install stuff **not** installed by the debian package manager. ;) Now, I have installed the pointed package for testing and I confirm the result: MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-context.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Still investigating… Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Custom XML Pretty Printer
Hi there, See http://gitorious.org/xml-pretty-printer-module-for-context for testing. As soon as I have made more testing and some improvements (inc. cleaning up), I'll submit to tlcontrib. Cheers, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] colors for pretty-printing
I need to not redefine. Quoting Hans: maybe you should protect the color names as for instance redefining darkred might not be the intention In fact, I just need to find unique names for my colors to not overload the existing ones… Renaud I still don't understand. Where do you need to redefine darkred? Cheers, Peter ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] colors for pretty-printing
Ok but then why did you define a specific color palet? local function color_init() color = 0 local def_colors = -- \setupcolor[ema] introduces new line... \\definecolor [darkred] [r=.545098] .. \\definecolor [orchid][r=.854902,g=.439216,b=.839216] .. \\definecolor [rosybrown] [r=.737255,g=.560784,b=.560784] .. \\definecolor [forestgreen] [r=.13,g=.545098,b=.13] .. … Renaud With \setupcolor[ema] or \setupcolor[ema, x11, xwi] there are already a lot of predefined colors, so I don't think that you need new color definitions in the module ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] colors for pretty-printing
Done and committed on http://gitorious.org/c-pretty-printer-module-for-context-mark-iv In your t-pretty-c.mkiv you can use \setupcolor[ema] without problems. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] colors for pretty-printing
You don't need that. There is already a standard interface for color and style configuration. Example: \setupstartstop[CSnippetComment][color=blue] So you can simplify t-pretty-c.mkiv: \unprotect \setupcolor[ema] \definestartstop [CSnippetName] [\c!color=darkgoldenrod, \c!style=] and so on... OK, but anyway, I have to protect the color names (to prevent darkred redefinition for example ;) )… So, I have made the choice to use Csomething and it is not annoying as soon as the source color names are kept… Cheers Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
20:40 nibua-r committed 9c5877c Color abstraction. 20:33 nibua-r committed 2a2a9e1 The test file now use t-pretty-c instead of u-pretty-c. 20:31 nibua-r committed 921eca5 u-pretty-c renamed to t-pretty-c as suggested by Hans. Colors are now protected using the C prefix. Concerning the color abstraction patch, one needs just to overload Ccomment, Cpreproc, Cstring, Ctype, Ckeyword, Cname and Cfuncnbound to use custom color scheme. Cheers, Renaud Le 06/12/2010 15:04, Peter Münster a écrit : On Mon, Dec 06 2010, Hans Hagen wrote: maybe better the name t-pretty-c is better, of if you follow some strategy t-pretty-emacs-c or so (if there are many variants possible) The only thing in common with emacs, is the default color-scheme. You can get any variant just by changing the color setup. Peter ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
Hi Peter, Yes, I've tested with my standard test.tex and it's really good, even more coloring than my pret-c.lua ! I have added variable name coloring as in GNU/Emacs + { } block delimiters coloring (that's straightforward when starting from Hans's v-lua.lua). I let you add your copy(left) stuff Why me? That code is not directly from your pret-c but You could be credited since your work is my entry point… and I will make a public git repo on gitorious if you agree. Good idea (how could I disagree???). Ok, then it will be done later this evening. Many thanks for your efforts! Your welcome, that's only a small contribution considering all the questions I have posted to that list until now. Cheers, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] C Pretty Printer module for ConTeXt Mark IV (from 2010.11.26 22:49 version)
Hi folks, A new c pretty printer is available on gitorious http://gitorious.org/c-pretty-printer-module-for-context-mark-iv. It is a LPeg rewritting of the previous pret-c.lua from Peter Münster. Feedbacks and reviews are welcome. Cheers, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
Ok, I have made a first version available as a Dropbox ressource: http://dl.dropbox.com/u/5289718/u-pretty-c.7z It certainly needs some improvements (I have some in mind since I have tested it on time.h ⇒ ouch). Feedbacks are welcome since I'll not use it intensively in a near future. Peter: could you test it? I let you add your copy(left) stuff and I will make a public git repo on gitorious if you agree. Hans: do you agree with the naming scheme and the copyright stuff before I put it on gitorious? Cheers, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pret-c.lua - v-c.lua
Hi Peters, I can either help or port if needed… Cheers, Renaud Peter Münster pmli...@free.fr a écrit : Hello, Do I have to learn lpeg now, in order to port pret-c.lua to v-c.lua, or is there a simpler way? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la bièveté. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange behavior (vertical space added!!!) with accentuated letters
Thanks to Wolgang and Otared, My initial problem has disappeared using the latest beta 2010.11.26 22:49. I don't really know why but it works ;) By the way, in the mean time, I've fixed that using the default grid policy (i.e. removing grid=yes in setuplayout). Cheers, Renaud Le 27/11/2010 09:57, Wolfgang Schuster a écrit : He can also try if a different grid option give the correct output without changing the interlinespace. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to flip even pages upside down??
Hi Leo, Uh? Use the right printer driver and set the automatic duplex mode to short edge/side? Do you have any good reason to do that directly with your pdf instead of using the printer configuration? If yes, then http://wiki.contextgarden.net/Reference/en/setuparranging and http://wiki.contextgarden.net/Imposition Cheers, Renaud Le 27/11/2010 23:56, Leo Razoumov a écrit : Hi List, I am a new ConTeXt user coming from LaTeX background. To print duplex on my printer I need to flip even pages upside down. I looked into section 3.7 Arranging Pages of the latest ConTeXt manual (2010-10-26). It shows how to setup very elaborate page compositions but somehow I failed to find a solution for my little problem. Any help/advice is greatly appreciated. --Leo-- _ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] BUG? Strange behavior (vertical space added!!!) with accentuated letters (was \inmargin / full textwidth line interaction)
Hi Wolfgang, First, thank you! Now, if I use some accentuated letters in title (the É just after the second subsection and before \input zapf), there is an unwanted vertical space… Bug, feature or misuse??? Could you confirm the bug? (the resulting pdf: http://dl.dropbox.com/u/5289718/testWolfgang.pdf) I use the latest minimals on debian 64. Test −− \setupbodyfont[10pt] \setuplayout [leftedge=0mm, leftmargin=45mm, rightedge=0mm, rightmargin=0mm, backspace=60mm, topspace=10mm, bottomspace=10mm, header=0mm, headerdistance=0mm, footer=0mm, footerdistance=0mm, margindistance=0mm, height=middle, width=middle, grid=yes] \setuppagenumbering[state=stop] \setuphead[section] [style=,command=\SectionCommand] \setuphead[subsection][style=,command=\SubsectionCommand] \define[2]\SectionCommand {\inleftmargin{\leftaligned{\structuretitle}}% \blackrule [ width=\textwidth, height=+.3\lineheight, depth=-.2\lineheight]} \define[2]\SubsectionCommand {\vbox\bgroup \inleftmargin{\leftaligned{\em\structureuservariable{date}}}% {\bfa\structuretitle}\wordright{\tfx\structureuservariable{topic}} % \blank {\em\structureuservariable{info}}% \egroup} \starttext \startsection[title={A Section}] \startsubsection [title={The detailled topic (which takes more than one line)}] [date={The date},topic={Knuth’s topic},info={some text}] \input knuth \stopsubsection \startsubsection [title={Éhe detailled topic (which takes more than one line)}] [date={Another date},topic={Zapf},info={some text}] É \input zapf \stopsubsection \startsubsection [title={The detailled topic (which takes more than one line)}] [date={Another date},topic={Zapf},info={some text}] \input zapf \stopsubsection \stopsection \startsection[title={Section}] \startsubsection [title={Some details}] [date={A date},topic={Tufte}] \input tufte \stopsubsection \stopsection \stoptext − ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] BUG? Strange behavior (vertical space added!!!) with accentuated letters (was \inmargin / full textwidth line interaction)
Ok, that seems to be due to grid=yes… Le 26/11/2010 20:25, Renaud AUBIN a écrit : \setupbodyfont[10pt] \setuplayout [leftedge=0mm, leftmargin=45mm, rightedge=0mm, rightmargin=0mm, backspace=60mm, topspace=10mm, bottomspace=10mm, header=0mm, headerdistance=0mm, footer=0mm, footerdistance=0mm, margindistance=0mm, height=middle, width=middle, grid=yes] \setuppagenumbering[state=stop] \setuphead[section] [style=,command=\SectionCommand] \setuphead[subsection][style=,command=\SubsectionCommand] \define[2]\SectionCommand {\inleftmargin{\leftaligned{\structuretitle}}% \blackrule [ width=\textwidth, height=+.3\lineheight, depth=-.2\lineheight]} \define[2]\SubsectionCommand {\vbox\bgroup \inleftmargin{\leftaligned{\em\structureuservariable{date}}}% {\bfa\structuretitle}\wordright{\tfx\structureuservariable{topic}} % \blank {\em\structureuservariable{info}}% \egroup} \starttext \startsection[title={A Section}] \startsubsection [title={The detailled topic (which takes more than one line)}] [date={The date},topic={Knuth’s topic},info={some text}] \input knuth \stopsubsection \startsubsection [title={Éhe detailled topic (which takes more than one line)}] [date={Another date},topic={Zapf},info={some text}] É \input zapf \stopsubsection \startsubsection [title={The detailled topic (which takes more than one line)}] [date={Another date},topic={Zapf},info={some text}] \input zapf \stopsubsection \stopsection \startsection[title={Section}] \startsubsection [title={Some details}] [date={A date},topic={Tufte}] \input tufte \stopsubsection \stopsection \stoptext ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta
The one I'm missing here is ! I can't find file `v-parsed-xml.mkiv'. to be read again \relax Confirmed here ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \todo
[OT / Emacs-related] It would be nice to have a ConTeXt export for org-mode! Is there any org-mode users? Le 23/11/2010 20:46, Procházka Lukáš a écrit : ... OK, thanks both for the inspiration. Lukas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \todo
Hi Jörg, It would be nice to have a native ConTeXt support… Ok ⇒ on my someday.org ;) I'm interested by your (even-still-very-primitive) ruby script… Renaud, implementing GTD with org-mode for 3 months Yes. I have been using org-mode for about 2 years, and I'm now doing everything except e-mail there. I have files like lectures.org that would contain everything pertaining to lectures: Dates and TODOs that I can export to the agenda, links to papers, tables with data, code blocks acting on those data (babel), and lecture notes and handouts that I export to pdf. The way I'm doing that is: export to a (latex) .tex file (provided by org-mode) and then converting to a ConTEXt .tex file with a (still very primitive) ruby script I wrote for the purpose. One of the advantages is that, in order to communicate with my colleagues, I can export to html and then (as long as the document is not too complicated) import it in OpenOffice. Cheers, Jörg ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \inmargin / full textwidth line interac tion (was Toward the use of inleft…)
Since my previous post doesn't seem inspiring at all (sniff), here is a simplified and more precise description of what need to be done: 1 − I need a full textwidth black line as separator with a short title centered vertically at left 2 − This separator must be followed by text, and the inbetween vertical space must be configurable (i.e. .5lineheight or a full lineheight doesn't satisfy me) My first idea has been to combine a vertically centered line with inleft or inmargin but that introduces an annoying afterspace… Another idea could be to combine some \hairlines or full textwidth fillinline but then don't know how to vertically align my inmargin text… −−− TEST \setuplayout[reset] \setuplayout[ location=singlesided, leftedge=0mm, leftmargin=25mm, rightedge=0mm, rightmargin=0mm, backspace=40mm, topspace=10mm, bottomspace=10mm, header=0mm, headerdistance=0mm, footer=0mm, footerdistance=0mm, margindistance=0mm, height=fit, width=fit, grid=yes] \setuppagenumbering[state=stop] \setupinmargin[style=normal,align=outer] \starttext \inmargin{blurp}{\line{\leaders\hbox{\vrule width 1pt height .5\strutht depth -\dimexpr.5\strutht-\linewidth\relax} \hfil}} This is not a test \stoptext −−− ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Toward the use of inleft for custom secti on's command… or not…
Hello there, Thanks to a hdd crash, I need to rewrite an old document of mine from scratch (after setting up a software RAID on my machine). Unfortunately, I let my ConTeXt faculties to rust… I must deal with several problems (but I will apply the good old divide and conquer rule). So, here is a collection of unforgivable workarounds to produce what I want to: − \enableregime[utf8] \setuppapersize[A4][A4] \setupbodyfont[10pt] \setuplayout[reset] \setuplayout[ location=singlesided, leftedge=0mm, leftmargin=45mm, rightedge=0mm, rightmargin=0mm, backspace=60mm, topspace=10mm, bottomspace=10mm, header=0mm, headerdistance=0mm, footer=0mm, footerdistance=0mm, margindistance=0mm, height=fit, width=fit, grid=yes] \setuppagenumbering[state=stop] \setupinmargin[style=normal,align=outer] \define[1]\SectionCommand { \blank % just because I always need some vertical space just before my Section \inleft{\bfa #1} {\line{\leaders\hbox{\vrule width 1pt height .5\strutht depth -\dimexpr.5\strutht-\linewidth\relax} \hfil}} \blank[-1*big] % Are you kidding me with that negative blank??? } \define[4]\TopicCommand { \inleft{{\em #1}}{\bfa #2 \hfill \tfx #3} % \crlf % OK, give me a newline! But, the problem is that there is a big % % after space from inleft! \blank[-1*big] % REALLY DUMMY WORKAROUND!!! {\em #4} } \starttext \SectionCommand{A Section} \TopicCommand{The date}{Knuth's topic}{some text}{The detailled topic (more than one line)} \input knuth \blank % Are you kidding me??? \TopicCommand{Another date}{Zapf}{some text}{The detailled topic (more than one line)} \input zapf \SectionCommand{Section} \TopicCommand{A date}{Tufte}{}{Some details} \input tufte \stoptext − OK, I need that… but a clean version… Best Regards, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML pretty printer?
Hi ConTeXters, I have a first operational version of my lpeg-based xml pretty printer: http://www.nibua-r.org/gitsnap/pret-xml/ operational means: 1 − That pretty printer will type only partially valid xml file test/other will be considered valid test att=testsome invalid text / is not considered valid … 2 − A real namespace management is missing, thus foons declarations will be prettyfied as standard attribute and foo: will be processed just as plain tag name. 3 − Endlines within CharData are not yet supported. As I'm a lua and lpeg beginner, the code provided is not subtle nor optimized… That pretty printer is slightly different of standard pretty printer since a lpeg grammar is applied on a full buffer, i.e. not on a line-pre-line based approach. The main drawback, not verified, is that if you have a huge xml file to process, it will just explode the stack… An analogy: in memory tree xml vs. parser… It's far from perfect but you are welcome to use, review and give feedbacks… (… and OK, it's not packaged as a third party module yet…) Renaud Le 14/11/2010 23:54, Renaud AUBIN a écrit : Hi folks, For imormation, I'm curently rewritting the pret-xml.lua file pointed on that list previously… So don't miss too much time to review! I'm using LPEG now and I hope to submit something operational last week for those interested… The result will be far better than the previous version… Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML pretty printer?
Ooops, it's not a detail but I need to precise that if the xml input is not valid (from my custom pret-xml pov), nothing will be processed! Renaud Le 20/11/2010 20:40, Renaud AUBIN a écrit : Hi ConTeXters, I have a first operational version of my lpeg-based xml pretty printer: http://www.nibua-r.org/gitsnap/pret-xml/ operational means: 1 − That pretty printer will type only partially valid xml file test/other will be considered valid test att=testsome invalid text / is not considered valid … 2 − A real namespace management is missing, thus foons declarations will be prettyfied as standard attribute and foo: will be processed just as plain tag name. 3 − Endlines within CharData are not yet supported. As I'm a lua and lpeg beginner, the code provided is not subtle nor optimized… That pretty printer is slightly different of standard pretty printer since a lpeg grammar is applied on a full buffer, i.e. not on a line-pre-line based approach. The main drawback, not verified, is that if you have a huge xml file to process, it will just explode the stack… An analogy: in memory tree xml vs. parser… It's far from perfect but you are welcome to use, review and give feedbacks… (… and OK, it's not packaged as a third party module yet…) Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML pretty printer?
+ zip and tar.gz available http://www.nibua-r.org/gitsnap/ I have a first operational version of my lpeg-based xml pretty printer: http://www.nibua-r.org/gitsnap/pret-xml/ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XSL-FO to PDF?
XSLT is fully adapted to XML/XML(fo or other target schema) since it was the design basis… My experience is: − good xslt is (relatively) easy to design as soon as you master the underlying data model − xsltproc is REALLY REALLY fast for xslt 1 processing − if you want something smarter, go for java with saxon/xerces, which is performant too… I'm the devil's advocate but what's your need to use ConTeXt. I have not read all your threads but if you just need: − to produce pdfs from xml data − without advanced typesettings you could use xslt to produce DocBook 5 xml file, include them using xi:include href=./data/stuff.xml/, configure your layout with an intermediate xslt + Fo xml config… Once more, it depends on your original ecosystem and constraints… If you provide a use case, I should provide a sample if you don't need it within a couple of hours (but a couple of days)… Best regards, Renaud Le 14/11/2010 22:36, Peter Davis a écrit : On Sun, Nov 14, 2010 at 4:31 PM, Hans Hagen pra...@wxs.nl wrote: On 13-11-2010 4:14, Peter Davis wrote: On 11/13/10 6:03 AM, Renaud AUBIN wrote: Uh ? Give FOP a try… http://xmlgraphics.apache.org/fop/1.0/index.html Could you describe your target chain ? XML → FO → PDF ? Actually, I could write some XSLT to convert the XSL-FO into TeX or ConTeXt. But I was thinking it might be beneficial to use ConTeXt to process the XML (XSL-FO) directly ... get it all under one roof, so to speak. faster too Interesting point. I initially assumed it would be faster to do all my XML processing in ConTeXt, but it occurred to me that perhaps using XSLT to or even home-grown XML processing, I could generate a stream of TeX that could be processed while I'm still producing it. So one process might be looking at successive data records and generating TeX for the various pages, and another process could be simultaneously running TeX to typeset those pages. Plausible? Thank you. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML pretty printer?
Hi folks, For imormation, I'm curently rewritting the pret-xml.lua file pointed on that list previously… So don't miss too much time to review! I'm using LPEG now and I hope to submit something operational last week for those interested… The result will be far better than the previous version… Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XSL-FO to PDF?
Uh ? Give FOP a try… http://xmlgraphics.apache.org/fop/1.0/index.html Could you describe your target chain ? XML → FO → PDF ? Renaud Le 10/11/2010 00:22, Peter Davis a écrit : Is there some recent information on using XML, and specifically XSL-FO, with ConTeXt? The pages on the contextgarden wiki appear to be 5 years old or more, and even the archive of this list seem pretty sparse on recent information. I'm trying to find the most direct route from XSL-FO to PS or PDF. I'll be generating hundreds or thousands of XSL-FO documents, and would like to process them. Thank you. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML pretty printer?
I'm currently working on a pret-xml.lua if you are interested… I have started it last year, forgot it, then began to rewrite it from scratch last week… I would like to obtain a rendering similar to oXygen xml. That is a work in progress, but you can check it out: http://www.nibua-r.org/gitsnap/pret-xml/ Le 12/11/2010 21:22, Peter Davis a écrit : Anybody have an XML pretty printer ConTeXt document? That would make a great example of generic XML processing. Thanks, -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML pretty printer?
Some precision. I don't think you could consider any pret-xml.lua as an example of XML processing. What processing would you apply to your XML file? Are considering to use directly lua to process your XML inputs? Sorry, but that's not clear to me… You are certainly aware of the fact that there is a plenty of SAX / XmlPulParser / CodeSynthesis Tree or parser samples around on the www. Renaud Le 12/11/2010 21:22, Peter Davis a écrit : Anybody have an XML pretty printer ConTeXt document? That would make a great example of generic XML processing. Thanks, -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML pretty printer?
I'm currently working on my pret-xml… just implementing attributes parsing… I will upload that asap (even if my lua is… really bad ;) ) My two cents: depending of the complexity of the underlying data model tranported by your xml medium, you should consider another tool (xsltproc, saxon, xsdcxx, …) and integrate it in your production chain. Could you describe in detail what your need is (in or off-list)? Renaud Le 13/11/2010 13:52, Peter Davis a écrit : I was thinking of doing all the XML parsing in TeX/ConTeXt, so I was looking for examples of that. I'm still trying to learn my way around ConTeXt, and XML handling in particular, so I thought a pretty printer would be a good example. Thank you! -pd On Sat, Nov 13, 2010 at 6:23 AM, Renaud AUBIN au...@nibua-r.org wrote: Some precision. I don't think you could consider any pret-xml.lua as an example of XML processing. What processing would you apply to your XML file? Are considering to use directly lua to process your XML inputs? Sorry, but that's not clear to me… You are certainly aware of the fact that there is a plenty of SAX / XmlPulParser / CodeSynthesis Tree or parser samples around on the www. Renaud Le 12/11/2010 21:22, Peter Davis a écrit : Anybody have an XML pretty printer ConTeXt document? That would make a great example of generic XML processing. Thanks, -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML pretty printer?
Hi folks, My custom XML pretty printer: http://www.nibua-r.org/gitsnap/pret-xml/ A direct link to the sample: http://www.nibua-r.org/gitsnap/pret-xml/pret-xml_test.pdf I'm sorry, the lua code is quite bad but I will improve it as soon as I will figure out how to implement functors… Feel free to improve… Renaud Le 13/11/2010 14:29, Renaud AUBIN a écrit : I'm currently working on my pret-xml… just implementing attributes parsing… I will upload that asap (even if my lua is… really bad ;) ) My two cents: depending of the complexity of the underlying data model tranported by your xml medium, you should consider another tool (xsltproc, saxon, xsdcxx, …) and integrate it in your production chain. Could you describe in detail what your need is (in or off-list)? Renaud Le 13/11/2010 13:52, Peter Davis a écrit : I was thinking of doing all the XML parsing in TeX/ConTeXt, so I was looking for examples of that. I'm still trying to learn my way around ConTeXt, and XML handling in particular, so I thought a pretty printer would be a good example. Thank you! -pd On Sat, Nov 13, 2010 at 6:23 AM, Renaud AUBIN au...@nibua-r.org wrote: Some precision. I don't think you could consider any pret-xml.lua as an example of XML processing. What processing would you apply to your XML file? Are considering to use directly lua to process your XML inputs? Sorry, but that's not clear to me… You are certainly aware of the fact that there is a plenty of SAX / XmlPulParser / CodeSynthesis Tree or parser samples around on the www. Renaud Le 12/11/2010 21:22, Peter Davis a écrit : Anybody have an XML pretty printer ConTeXt document? That would make a great example of generic XML processing. Thanks, -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Dummy buff-ver.mkiv question
Hi folks, From http://wiki.contextgarden.net/Verbatim_text#Defining_your_own_set_of_colors and considering the following code snippet from buff-ver.mkiv \definepalet [colorpretty] [ prettyone=colorprettyone, prettytwo=colorprettytwo, prettythree=colorprettythree, prettyfour=colorprettyfour] I conclude that we are limited to a four colors palet for our custom pretty printer… Right or wrong? Ok, from that basis, one solution could be to directly define custom colors within pret-xxx.lua… but how? Any ideas? Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML pretty printer?
The local pret-xml.lua is used when running context on pret-xml_test from the basedir. To get the original pret-xml.lua and check the differences, just rename pret-xml.lua to pret-xml.new and re-run context… You should see some differences between the good ol'pret-xml and the draft of mine… I don't remember if that's due to my configuration or if that's the default behavior… The color used is indeed the default one… See my last post [NTG-context] Dummy buff-ver.mkiv question. Renaud Le 13/11/2010 21:18, Thomas Schmitz a écrit : On Sat, 13 Nov 2010 19:39:31 +0100 Renaud AUBIN au...@nibua-r.org wrote: Hi folks, My custom XML pretty printer: http://www.nibua-r.org/gitsnap/pret-xml/ A direct link to the sample: http://www.nibua-r.org/gitsnap/pret-xml/pret-xml_test.pdf I'm sorry, the lua code is quite bad but I will improve it as soon as I will figure out how to implement functors… Feel free to improve… Renaud Pardon my ignorance, but where in your test file is your pretty printer invoked? Aren't the colors you get the default ConTeXt colors? Thomas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML pretty printer?
This is a draft for review, not yet even the beginning of a real third party module… As soon as I will integrate the reviews from interested people, I will properly set the third module stuff… Thank you for your advice. Renaud Le 13/11/2010 21:40, Thomas Schmitz a écrit : On Sat, 13 Nov 2010 21:32:09 +0100 Renaud AUBIN au...@nibua-r.org wrote: The local pret-xml.lua is used when running context on pret-xml_test from the basedir. To get the original pret-xml.lua and check the differences, just rename pret-xml.lua to pret-xml.new and re-run context… You should see some differences between the good ol'pret-xml and the draft of mine… I don't remember if that's due to my configuration or if that's the default behavior… The color used is indeed the default one… See my last post [NTG-context] Dummy buff-ver.mkiv question. Renaud Ah OK, now I see. But I don't think this is a good idea - creating your own file with the same name as files in the core. You should at least add a t- to the name so people see it's a third party addition. Thomas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dummy buff-ver.mkiv question
Thanks Peter, I should have found that myself, no comment ;) … Renaud Le 13/11/2010 23:04, Peter Münster a écrit : On Sat, Nov 13 2010, Peter Münster wrote: On Sat, Nov 13 2010, Renaud AUBIN wrote: I conclude that we are limited to a four colors palet for our custom pretty printer… Right or wrong? No. Better: wrong. Cheers, Peter ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] POV-Ray
Hi, I indeed agree with Taco… but it depends on your input format, your purpose, etc. For me, the issue can't be resumed to a power comparison between povray and metapost because these tools serve differents purposes! If you want to obtain 3D realistic rendering (with raytracing), you definitely have to use povray, YafaRay and co. and embed the resulting image(s), or movies as usual (I myself never try to embed movies and consequently can't state if that's possible). Else, if you already have an existing 3D model (using 3ds, blend, lwo, … format), wanted to *embed* (not just as an image) it within your final document/pdf with *potential interactivity* and if realistic rendering is not your point you should consider using u3d or prc format and read and try to use it. Search the ML for further details. The main point here is the 3D model conversion to u3d or prc… If you start from scratch and really want to *embed* your 3D model, consider using asymptote to produce a prc file and proceed as in the previous point (see the ML for details). I have never done that. The real issue is: what's your need ? For example, on the one hand I have used u3d embedding for my PhD slides because I wanted to be able to show some details of my 3D model but doesn't want to open a heavy CAD application… On the other hand, I have used povray renderings on the very same 3D model in my PhD thesis. I have used metapost a lot for the same document, but only for 2D diagrams… Best regards, Renaud Shiv Shankar Dayal wrote: Hi, I have needs of graphics which is very heavy and I am using metapost, metaobj and metauml. However, as you may know the problems which I have reported I think that it would be better if I use POV-Ray for images. Sure the file size is going to be blown up by a margin but I think metapost can not beat POV-Ray in terms of power. Nor in terms of total processing time. ;) Please advice. It totally depends on the type of images you need. Best wishes, Taco ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] POV-Ray
Hi, I indeed agree with Taco… but it depends on your input format, your purpose, etc. For me, the issue can't be resumed to a power comparison between povray and metapost because these tools serve differents purposes! If you want to obtain 3D realistic rendering (with raytracing), you definitely have to use povray, YafaRay and co. and embed the resulting image(s), or movies as usual (I myself never try to embed movies and consequently can't state if that's possible). Else, if you already have an existing 3D model (using 3ds, blend, lwo, … format), wanted to *embed* (not just as an image) it within your final document/pdf with *potential interactivity* and if realistic rendering is not your point you should consider using u3d or prc format and read and try to use it. Search the ML for further details. The main point here is the 3D model conversion to u3d or prc… If you start from scratch and really want to *embed* your 3D model, consider using asymptote to produce a prc file and proceed as in the previous point (see the ML for details). I have never done that. The real issue is: what's your need ? For example, on the one hand I have used u3d embedding for my PhD slides because I wanted to be able to show some details of my 3D model but doesn't want to open a heavy CAD application… On the other hand, I have used povray renderings on the very same 3D model in my PhD thesis. I have used metapost a lot for the same document, but only for 2D diagrams… Best regards, Renaud Taco == Taco Hoekwater t...@elvenkind.com writes: Taco Shiv Shankar Dayal wrote: Hi, I have needs of graphics which is very heavy and I am using metapost, metaobj and metauml. However, as you may know the problems which I have reported I think that it would be better if I use POV-Ray for images. Sure the file size is going to be blown up by a margin but I think metapost can not beat POV-Ray in terms of power. Taco Nor in terms of total processing time. ;) Please advice. Taco It totally depends on the type of images you need. Taco Best wishes, Taco Taco ___ Taco If your question is of interest to others as well, please add an Taco entry to the Wiki! Taco maillist : ntg-context@ntg.nl / Taco http://www.ntg.nl/mailman/listinfo/ntg-context webpage : Taco http://www.pragma-ade.nl / http://tex.aanhet.net archive : Taco http://foundry.supelec.fr/projects/contextrev/ wiki : Taco http://contextgarden.net Taco ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to use metauml in ConTeXt
Joshua == Joshua Lee muz...@gmail.com writes: Joshua Hi All, Is there any way to use metauml from ConTeXt? Joshua http://thor.info.uaic.ro/~ogh/lop/ Joshua BTW, is there any ConTeXt modules to write uml sequence diagram Joshua similar to http://code.google.com/p/pgf-umlsd ? Joshua Thanks in advance. Joshua Best regards, Joshua Hi Joshua, There we use the following chain: - Edit UML diagrams with bouml (a really really great tool to design and for reverse engineering… ) - Export to SVG (take care of the font with qt-config if you want some consistency within your final pdf) - SVG to PDF conversion with inkscape (command line + fonts embedding option if needed) - just use the PDF as another external figure… I'll check tomorrow if I have succeeded to optimize the fonts embedding (this point has annoyed me a lot)… From my POV, MetaUML is not adapted to a real production environment (except at pure design stage)… Worth give à try to bouml - pdf Your UML diagrams should look great with a few bouml/fonts/qt-config configuration. Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Frutiger Typescript
Hello, I know almost nothing of typescript but it seems to me that, for Frutiger, type-buy.tex should contains: % frutiger \starttypescript [sans] [frutiger] [name] \definefontsynonym [Sans][Frutiger-Roman] \definefontsynonym [SansCaps][Frutiger-Roman] \definefontsynonym [SansItalic] [Frutiger-Italic] \definefontsynonym [SansSlanted] [Frutiger-Italic] \definefontsynonym [SansBold][Frutiger-Bold] \definefontsynonym [SansBoldItalic] [Frutiger-BoldItalic] \definefontsynonym [SansBoldSlanted] [Frutiger-BoldItalic] \stoptypescript \starttypescript [sans] [frutiger] [ec,8r,texnansi] \definefontsynonym[Frutiger-Bold] [\typescriptthree-ftb] [encoding=\typescriptthree] \definefontsynonym[Frutiger-BoldItalic] [\typescriptthree-ftbi] [encoding=\typescriptthree] \definefontsynonym[Frutiger-Black] [\typescriptthree-ftbl] [encoding=\typescriptthree] \definefontsynonym[Frutiger-BlackItalic][\typescriptthree-ftbli][encoding=\typescriptthree] \definefontsynonym[Frutiger-Italic] [\typescriptthree-fti] [encoding=\typescriptthree] \definefontsynonym[Frutiger-Light] [\typescriptthree-ftl] [encoding=\typescriptthree] \definefontsynonym[Frutiger-LightItalic][\typescriptthree-ftli] [encoding=\typescriptthree] \definefontsynonym[Frutiger-Roman] [\typescriptthree-ftr] [encoding=\typescriptthree] \definefontsynonym[Frutiger-UltraBlack] [\typescriptthree-ftubl][encoding=\typescriptthree] %\loadmapfile[\typescriptthree-adobe-frutiger.map] % COMMENT THIS ONE \stoptypescript % ADD THESE \starttypescript [frutiger] [texnansi,ec,8r,uc] \definetypeface [frutiger] [ss] [sans][frutiger] [default] [encoding=\typescripttwo] \loadmapfile [\typescripttwo-adobe-frutiger.map] \stoptypescript Best regards, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] t-vim / minimals
Hi, I have just reinstalled ConTeXt after an HD crash with ./first_setup --extras=all and t-vim seems to contain an error since I obtain (with MKII): VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul 30 2009 16:02:52) arguments en trop apr?s l'option: -u NONE -e -C -n -c set tabstop=8 -c syntax on -c set syntax=rnc -c let contextstartline=1 -c let contextstopline=0 -c source /usr/local/ConTeXt/tex/texmf-context/tex/context/third/vim/2context.vim -c wqa prd_note_rex_ngc-vimsyntax.tmp Plus d'info avec: vim -h ! I can't find file `prd_note_rex_ngc-vimsyntax.tmp-vimsyntax.tmp'. to be read again \relax \dodotypevimfile ...\input #2-vimsyntax.tmp\relax \egroup \@@vsafter l.142 \stopRNC (Press Enter to retry, or Control-D to exit) Please type another input file name: ! I can't find file `prd_note_rex_ngc-vimsyntax.tmp-vimsyntax.tmp'. to be read again \relax \dodotypevimfile ...\input #2-vimsyntax.tmp\relax \egroup \@@vsafter l.142 \stopRNC (Press Enter to retry, or Control-D to exit) Please type another input file name: It seems to be known since I have already found some topics on this issue. Using --noquotes for the mtxrun call used within the \runvimsyntax definition fixes the matter here. Does anybody could reupload for minimals? Best regards, Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] texutil --purgeallfiles
Hi, Trying to use the good old days texutil --purgeallfiles, I obtain: ren...@daneel:~/ConTeXt/notes/src$ texutil --purgeallfiles /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1:in `require': no such file to load -- base/file (LoadError) from /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1 My ruby dist seems to work well in a nominal context. Is texutil fully functional for other debian 64 / minimals users? Renaud ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] texutil --purgeallfiles
ctxtools --purgeall doesn't exist but ctxtools --purgefiles works well. Besides, context --purge(all) works but from your question I realize that context --purge certainly wraps a ctxtools' call. Aditya == Aditya Mahajan adit...@umich.edu writes: Aditya On Thu, 19 Nov 2009, Renaud AUBIN wrote: Hi, Trying to use the good old days texutil --purgeallfiles, I obtain: ren...@daneel:~/ConTeXt/notes/src$ texutil --purgeallfiles /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1:in `require': no such file to load -- base/file (LoadError) from /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1 My ruby dist seems to work well in a nominal context. Is texutil fully functional for other debian 64 / minimals users? Aditya Does ctxtools --purgeall work? Aditya Aditya ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] texutil --purgeallfiles
Ouch, bad news for me, perhaps my ruby is buggy: ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux] Alan == Alan BRASLAU alan.bras...@cea.fr writes: Alan On Thursday 19 November 2009 20:46:40 Renaud AUBIN wrote: Hi, Trying to use the good old days texutil --purgeallfiles, I obtain: ren...@daneel:~/ConTeXt/notes/src$ texutil --purgeallfiles /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1 :in `require': no such file to load -- base/file (LoadError) from /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb: 1 My ruby dist seems to work well in a nominal context. Is texutil fully functional for other debian 64 / minimals users? Alan texutil --purgeallfiles works fine here: debian sid amd64 under Alan latest context minimals Alan Alan Alan ___ Alan If your question is of interest to others as well, please add an Alan entry to the Wiki! Alan maillist : ntg-context@ntg.nl / Alan http://www.ntg.nl/mailman/listinfo/ntg-context webpage : Alan http://www.pragma-ade.nl / http://tex.aanhet.net archive : Alan http://foundry.supelec.fr/projects/contextrev/ wiki : Alan http://contextgarden.net Alan ___ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
R. Bastian a écrit : 2. is there a way to translate Latex - Context ? PS: i dont like metapost Salut, From my humble experience, I have faced the very same dilemna (back in 2003) and... I have switched to metapost... Did you try to use metapost + metaobj ? See sections 10.3 and 7.7 of http://tex.loria.fr/prod-graph/momanual.pdf. What's the complexity of your graphics? Did you use special pst-circ stuffs or others? If you choose to get stuck with pstricks because you don't like metapost, you should use \externalfigure. Renaud ___ 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] pretty C with MKIV
Hello Peter, Does the following work for you ? \definevimtyping[XML][syntax=xml] \definetypevimfile[typeXML][syntax=xml] [...] \typeXML{./xml_samples/sample.xml} Renaud Peter Münster a écrit : On Tue, 7 Jul 2009, Peter Münster wrote: (I've tried t-vim.tex, but it seems to be broken: ERROR: I can't find file `test-vimsyntax.tmp-vimsyntax.tmp'.) Ok, t-vim.tex works now. The mtxrun part was the problem. Here my new version of the \runvimsyntax macro (perhaps no more MS-Windows compatibility): \def\runvimsyntax#1 {\executesystemcommand {vim -u NONE % No need to read unnessary configurations -e % run in ex mode -C % Set compatibile -n % No swap % -V10log % For debugging only, will go away later. -c set tabstop=\@@vstab -c syntax on -c set syntax=\@@vssyntax -c let contextstartline=\@@vsstart -c let contextstopline=\@@vsstop -c source `kpsewhich 2context.vim` -c wqa #1}} Cheers, Peter ___ 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] pdf with password/security
You can also use podofoencrypt (http://podofo.sourceforge.net/) Renaud Hans Hagen a écrit : Ciro Soto wrote: Hi all, I am planning to offer a poetry book in electronic format as well as paper format. How would I produce the pdf file with security/password using context? it's something one does afterwards ghostscript can do encryption or just use acrobat professional for it 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 - ___ 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 ___ ___ 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] Mark IV Syntax highlighting support
Hi folks ! I have just finished a first draft of pret-xml.lua: - I need to improve its coverage (html); - DTD declaration is not yet managed; - I do nothing about re-indentation since I prefer to format my xml sample by myself (by hand or using xmllint); - That's my first try to lua/luatex (after several months of Java...) so my definitions (esp. for functions) is not clean at all (you have been warned); I have done it the trial/error way without much design reflexion just for fun (I'm on vacation)... I'm not sure it will be reusable... Take all your test files and please report issues (or give me advices)! ;) Thank you Matthijs! Regards, Renaud Matthijs Kooijman a écrit : Hey all, ./tex/texmf-context/tex/context/base/verb-.*\.lua ! Actually, in newer versions (since a month or so), that's pret-*.lua. Where to start with this topic (current state in Mark IV, roadmap, ...) ? I've been struggling with this a bit as well lately and found there was next to no documentation. I've managed to create my own pretty printer, and tried to update the docs a bit. See [1] and [2] on the wiki for more info. There are still some details I don't get (why is there a line() hook, what is all this nesting stuff, etc.), so feel free to find out more and improve these pages! Gr. Matthijs [1]: http://wiki.contextgarden.net/Verbatim_text#Your_own_formatter [2]: http://wiki.contextgarden.net/Custom_pretty_printer ___ 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 ___ if not modules then modules = { } end modules ['pret-xml'] = { version = 1.001, comment = from pret-.*\.lua, http://wiki.contextgarden.net/Verbatim_text#Your_own_formatter and http://wiki.contextgarden.net/Custom_pretty_printer;, author= Renaud AUBIN, copyright = to be defined, license = to be defined } local utf = unicode.utf8 local utfcharacters, utfvalues = string.utfcharacters, string.utfvalues local utfbyte, utffind = utf.byte, utf.find local byte, sub, find, gfind, match = string.byte, string.sub, string.find, string.gfind, string.match local texsprint, texwrite = tex.sprint, tex.write local ctxcatcodes = tex.ctxcatcodes local change_state, finish_state = buffers.change_state, buffers.finish_state buffers.visualizers.xml = buffers.visualizers.xml or { } buffers.visualizers.xml.identifiers = buffers.visualizers.xml.identifiers or { } incomment = false local colors = { prettyone, prettytwo, prettythree, prettyfour, prettyfive, prettysix, prettyseven } local states = { ['namespace']= 1, ['element'] = 2, ['attrname'] = 3, ['attrvalue']= 4, ['prolog'] = 5, ['comment'] = 6, ['pi'] = 7 } local function flush_text(str) for c in utfcharacters(str) do if c == then texsprint(ctxcatcodes,\\obs) else texwrite(c) end end end local function process_attribute(str) local name, value, state = , , 0 buffers.currentcolors = colors local name,value = match(str,^(.-)=(\.-\)$) state = change_state(states['attrname'], state) flush_text(name) state = finish_state(state) texwrite(=) state = change_state(states['attrvalue'], state) flush_text(value) state = finish_state(state) end local function process_namespace(str) local state = 0 buffers.currentcolors = colors state = change_state(states['namespace'], state) flush_text(str) state = finish_state(state) texwrite(:) end local function process_element(str) local state = 0 buffers.currentcolors = colors state = change_state(states['element'], state) flush_text(str) state = finish_state(state) end local function process_comment(str) local state = 0 buffers.currentcolors = colors state = change_state(states['comment'], state) flush_text(str) state = finish_state(state) end function process_tag(str) local name, value, state = , , 0 buffers.currentcolors = colors if match(str,^%?xml.-%?$) then local prolog = match(str,^%?xml(.-)%?$) state = change_state(states['pi'], state) texwrite(?) state = finish_state(state) state = change_state(states['prolog'], state) texwrite(xml) state = finish_state(state) repeat prolog=recursive_processing(prolog) until prolog==nil state = change_state(states['pi'], state) texwrite(?) state = finish_state(state) elseif match
[NTG-context] Mark IV Syntax highlighting support
Hi folks, Where to start with this topic (current state in Mark IV, roadmap, ...) ? Renaud ___ 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] Mark IV Syntax highlighting support
./tex/texmf-context/tex/context/base/verb-.*\.lua ! Renaud Aubin a écrit : Hi folks, Where to start with this topic (current state in Mark IV, roadmap, ...) ? Renaud ___ 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 ___ ___ 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] 3D PDF support (AKA asymptote support)
Michail Vidiassov a écrit : While MeshLab may be of great use if you have to convert old data or process output from some existing tool, in cases when you make your model from scratch by hand or create 3D model file in your own program Asymptote may be a better choice since it supports newer PRC 3D format, that is much richer in features and has better prospects when it comes to support and development by Adobe. On the minus side Asymptote is under active development and some of its advantages are not there yet - but so is ConTeXt. Ouch, another new 3D format! This will never end. I bet no valuable Open Source modeler (i.e. blender) support this one. The fact that asy supports PRC is good but I have no illusion about the conclusion of the 3d formats' war (just an endless pain for developpers)... Renaud ___ 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] TikZ, MKIV and font switching
Mojca Miklavec a écrit : I don't know about helvetica since it's broken at the moment, but with \usetypescript[palatino] \setupbodyfont[palatino,12pt] the labels inside the mindmap are already typeset in gyre palatino here. What version of ConTeXt/LuaTeX/TikZ do you use? In MKII the colors are broken though. Hans? Has anything changed in color handling mechanism recently? I don't know whether I need to bribe you or Till Tantau to fix the issue. (But I need to admit that I didn't update ConTeXt in the last few days.) With MKIV (ConTeXt ver: 2009.04.06 21:42 MKIV fmt: 2009.4.8 int: english/english) and latest t-tikz the result is good with palatino. I have processed the test file with \startMPenvironment[global] \usetypescript[postscript] \setupbodyfont[postscript,ss,12pt] \stopMPenvironment and the mindmap labels are in Termes... Any idea about a workaround to obtain my labels in Heros ? Renaud ___ 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 ___
[NTG-context] TikZ, MKIV and font switching
Hi folks, I would use TikZ/mindmap to make some figures for a paper. Since I have to install TikZ, I have updated my minimals yesterday and began to really use MKIV. My problem is that when I process \enableregime[utf8] \useencoding[ffr] \mainlanguage[fr] \usetypescript[helvetica][texnansi] \setupbodyfont[helvetica,12pt] \setupcolors[state=start] \usemodule[tikz] \usetikzlibrary[mindmap] \starttext \input knuth \starttikzpicture[font=\nofont,mindmap,text=white, root concept/.style={concept color=blue}, level 1 concept/.append style= {every child/.style={concept color=blue!50}}] \node [concept] {Root Concept} child[grow=30] {node[concept] {child}} child[grow=0 ] {node[concept] {child}}; \stoptikzpicture \input tufte \stoptext the font switching is OK for the \input *** things but not for the embedded text. That's probably due to my lack of knowledge of TikZ but I have just found nothing usefull (nothing evident even in the pgf manual) about font switching within TikZ pictures with ConTeXt... (This is LuaTeX, Version snapshot-0.37.0-2009040617 (Web2C 7.5.7)) Best regards, Renaud ___ 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] embedding 3d pdf
See http://www.nibua-r.org/ConTeXt/PhD/aubin-slides.pdf as a use case (pages 17 and 25). Let me know if you want the full source code... Renaud Renaud Aubin a écrit : Hi Michail, See http://www.nibua-r.org/ConTeXt/devel/ Regards, Renaud ___ 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] embedding 3d pdf
Blender (+type1 font) then Right Hemisphere for the conversion... luigi scarso a écrit : On Sat, Nov 22, 2008 at 6:23 PM, Renaud Aubin [EMAIL PROTECTED] wrote: Hi Michail, See http://www.nibua-r.org/ConTeXt/devel/ Regards, Renaud How do you make this http://www.nibua-r.org/ConTeXt/devel/new3dartwork/models/context.u3d ___ 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] embedding 3d pdf
Oups... too fast : + using .3ds as an intermediate format : blend -- 3ds -- u3d Renaud Aubin a écrit : Blender (+type1 font) then Right Hemisphere for the conversion... ___ 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] embedding 3d pdf
Blender is... but u3d export is not possible with open source tools in 2006/ early 2007 luigi scarso a écrit : On Sat, Nov 22, 2008 at 6:53 PM, Renaud Aubin [EMAIL PROTECTED] wrote: Blender (+type1 font) then Right Hemisphere for the conversion... Nothing open source ? ___ 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] embedding 3d pdf
See http://www.blender.org/ and http://www.righthemisphere.com/products/dexp/de_std.html (I've used an old windows version of Deep Exploration) Idris Samawi Hamid ادريس سماوي حامد a écrit : On Sat, 22 Nov 2008 10:53:33 -0700, Renaud Aubin [EMAIL PROTECTED] wrote: Blender (+type1 font) then Right Hemisphere for the conversion... What is Blender -- the name is too generic for google... Idris ___ 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] embedding 3d pdf
Great, i've googlized and found http://artandlogic.blogspot.com/2008/08/blender-to-acrobat-3d.html then http://meshlab.sourceforge.net/ It's worth to give a try to this CAD chain! Renaud Aubin a écrit : Blender is... but u3d export is not possible with open source tools in 2006/ early 2007 luigi scarso a écrit : On Sat, Nov 22, 2008 at 6:53 PM, Renaud Aubin [EMAIL PROTECTED] wrote: Blender (+type1 font) then Right Hemisphere for the conversion... Nothing open source ? ___ 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 ___ ___ 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] embedding 3d pdf
See http://www.blender.org/ and http://www.righthemisphere.com/products/dexp/de_std.html (I've used an old windows version of Deep Exploration) Idris Samawi Hamid ادريس سماوي حامد a écrit : On Sat, 22 Nov 2008 10:53:33 -0700, Renaud Aubin [EMAIL PROTECTED] wrote: Blender (+type1 font) then Right Hemisphere for the conversion... What is Blender -- the name is too generic for google... Idris ___ 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 ___
[NTG-context] Color rendering transparency with metapost
Hi, I have some trouble using a gradient background (solid) with a transparent element : \startMPinclusions def test_shade (expr a, b) = pickup pencircle scaled 1mm ; color ca ; ca := \MPcolor{a} ; color cb ; cb := \MPcolor{b} ; color cc ; cc := \MPcolor{c} ; sh := define_linear_shade(origin shifted(0cm,.5*\overlayheight),origin,ca,cb) ; fill fullsquare xscaled \overlaywidth yscaled \overlayheight withshade sh; draw origin withcolor cc; draw origin shifted(0cm,-.25*\overlayheight) withcolor cc; enddef ; \stopMPinclusions \setupcolors[state=start] \definecolor[a][r=.57254902,g=.784313725,b=.917647059] \definecolor[b][white] \definecolor[c][darkred] \starttext \defineoverlay[bgoverlay][\uniqueMPgraphic{bg_top_shade}] \setupbackgrounds[page][background=bgoverlay] \startuniqueMPgraphic{bg_top_shade} test_shade(origin, origin shifted(0cm,1cm)); draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor transparent(1,0.5,white) withpen pencircle scaled 2cm; If you comment out the previous line the color rendering is definitelly different... \stopuniqueMPgraphic \input knuth \stoptext I have searched the ML without success, any idea ? Regards, Renaud ___ 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] Color rendering transparency with metapost
Thank Luigi for your response, the problem is that the background color rendering isn't the same if you comment out or not the following line : draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor transparent(1,0.5,white) withpen pencircle scaled 2cm; After some experiments, the problem is solved ( hence not understood ???) using rgb=no in setupcolors... It's maybe a viewer-centric problem : I use acroread 8.1.2 under linux. Renaud luigi scarso a écrit : This is my test. Where is the problem ? minimals-beta Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.10.31 13:58 -- luigi ___ 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 ___ ___ 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] Color rendering transparency with metapost
I must add that I have defined the a color with cmyk. Renaud Aubin a écrit : Thank Luigi for your response, the problem is that the background color rendering isn't the same if you comment out or not the following line : draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor transparent(1,0.5,white) withpen pencircle scaled 2cm; After some experiments, the problem is solved ( hence not understood ???) using rgb=no in setupcolors... It's maybe a viewer-centric problem : I use acroread 8.1.2 under linux. Renaud luigi scarso a écrit : This is my test. Where is the problem ? minimals-beta Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.10.31 13:58 -- luigi ___ 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 ___ ___ 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 ___ ___ 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] Verbatim Text (esp. XML/XSL + opportunity of a brand new support for the RelaxNG Compact syntax)
Taco, Aditya, Thanks, t-vim will do the job for the end of october... Even if I will surely give a try to MarkIV on this particular point. Regards, Renaud Taco Hoekwater a écrit : Hi Renaud, Renaud Aubin wrote: Hi Folks ! I'm currently writting a technical report in which I need to type some XML an non-XML text. Sample file (xml_test.tex): I have some custom XML text (trivial) + a not-so-complicated xsl transformation (a part is included within the test file). I know there is verb-xml but... I need to improve it to support xpath expr. More over, I want to preserve the initial indentation. The point is now, how to improve verb-xml to support xpath expressions ? I'm working with Mark II... Should I switch to Mark IV if I want to write a new XML verbatim support (with lua)? + the bonus question: I want to add some support for the RelaxNG Compact syntax, should I follow the procedure described on the wiki or switch to Mark IV ? The deadline for this technical report: end of october... Mark IV's framework for syntax highlighting is definately easier to use if you are somewhat familiar with 'normal' scripting languages (as opposed to TeX). But 'end of october' is pretty close, so I would suggest using t-vim, maybe with some postprocessing. http://modules.contextgarden.net/vim Best wishes, Taco ___ 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 ___ ___ 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 ___
[NTG-context] Verbatim Text (esp. XML/XSL + opportunity of a brand new support for the RelaxNG Compact syntax)
Hi Folks ! I'm currently writting a technical report in which I need to type some XML an non-XML text. Sample file (xml_test.tex): I have some custom XML text (trivial) + a not-so-complicated xsl transformation (a part is included within the test file). I know there is verb-xml but... I need to improve it to support xpath expr. More over, I want to preserve the initial indentation. The point is now, how to improve verb-xml to support xpath expressions ? I'm working with Mark II... Should I switch to Mark IV if I want to write a new XML verbatim support (with lua)? + the bonus question: I want to add some support for the RelaxNG Compact syntax, should I follow the procedure described on the wiki or switch to Mark IV ? The deadline for this technical report: end of october... Regards, Renaud ___ 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] Lucida (from a newbie) question
Compilation says ! I can't find file `texnansi-raw-lbf' It's better than before : it didn't do anything :-) Hi Eric, It may help us if you give us more details: - the texfont command used, - did your pfb files are in a single directory or not ? ... - ... A good test is: \startMPenvironment[global] % use lucida for metapost too \usetypescript[lucida][texnansi] \usetypescript[lucidabfm][texnansi] % for bold math \usetypescript[lucidaboldmath][texnansi] % for bold math \setupbodyfont[lucida,10pt] \definebodyfont[17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt][rm][bc=SerifBoldCaps sa 1, bca=SerifBoldCaps sa a, bcb=SerifBoldCaps sa b, bcc=SerifBoldCaps sa c, bcd=SerifBoldCaps sa d, bcx=SerifBoldCaps sa x, bcxx=SerifBoldCaps sa xx] % dunno if required from now \stopMPenvironment \starttext \input knuth \setupbodyfont[lucida,10pt,cg] \input knuth \setupbodyfont[lucida,10pt,hw] \input knuth \setupbodyfont[lucida,10pt,sans] \input knuth \setupbodyfont[lucida,10pt,mono] \input knuth \stoptext as provided by http://wiki.contextgarden.net/Lucida Best regards, Renaud ___ 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] Lucida (from a newbie) question
Eric DÉTREZ a écrit : I don't use texfont I compile files from texshop Ok, I have no knowledge at all regarding texshop, sorry... - did your pfb files are in a single directory or not ? ... yes they are with names lbc.pfb and so on This one was only relevant using texfont... I had to had the line \usetypescriptfile[type-buy] to the test Ok (as you may already know), you can modify (your TeX root)/tex/texmf-context/tex/context/user/cont-sys.tex to add \usetypescriptfile[type-buy] permanently A good test is: \startMPenvironment[global] % use lucida for metapost too [couic] \setupbodyfont[lucida,10pt,mono] \input knuth \stoptext and it gives the same error I can't find file `texnansi-raw-lbr How did you install ConTeXt? Is it included in texshop? Could you try with texfont? Renaud ___ 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 ___
[NTG-context] typo or bug report in type-buy.tex
Hi folks, From line 199 to 206 : \starttypescript [lucida,lucidabfm] [texnansi,ec,8r,uc] \definetypeface [lucida] [rm] [serif] [lucida] [default] [encoding=\typescripttwo] \definetypeface [lucida] [ss] [sans][lucida] [default] [encoding=\typescripttwo] \definetypeface [lucida] [tt] [mono][lucida] [default] [encoding=\typescripttwo] \definetypeface [lucida] [hw] [handwriting] [lucida] [default] [encoding=\typescripttwo] \definetypeface [lucida] [cg] [calligraphy] [lucida] [default] [encoding=\typescripttwo] \loadmapfile [\typescriptthree-bh-lucida.map] \stoptypescript I assume it should be : \starttypescript [lucida,lucidabfm] [texnansi,ec,8r,uc] \definetypeface [lucida] [rm] [serif] [lucida] [default] [encoding=\typescripttwo] \definetypeface [lucida] [ss] [sans][lucida] [default] [encoding=\typescripttwo] \definetypeface [lucida] [tt] [mono][lucida] [default] [encoding=\typescripttwo] \definetypeface [lucida] [hw] [handwriting] [lucida] [default] [encoding=\typescripttwo] \definetypeface [lucida] [cg] [calligraphy] [lucida] [default] [encoding=\typescripttwo] \loadmapfile [\typescripttwo-bh-lucida.map] \stoptypescript Cheers, Renaud ___ 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] luatex
Hi, For my particular case: 1. embed u3d models within a pdf without piping to an external script to compute the view (see http://www.nibua-r.org/ConTeXt/devel/new3dartwork/), 2. the ability to use lua script leads to potential interaction with MySQL (it could be great for me but I need to verify it's possible). ... Cheers John Culleton a écrit : What will a luatex based Context do for us that the current stable Context doesn't? begin:vcard fn:Renaud AUBIN n:AUBIN;Renaud email;internet:[EMAIL PROTECTED] url:http://www.nibua-r.org version:2.1 end:vcard ___ 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 ___
[NTG-context] Multiline footer
Hi folks, I need to define a multiline footer for a document of mine. I have searched the garden without results. Considering \input knuth as a disclaimer, here is a non working sample to improve: \setupfootertexts[] \setupfootertexts[\setups{text a}] \startsetups[text a] \input knuth \stopsetups TIA Renaud begin:vcard fn:Renaud AUBIN n:AUBIN;Renaud email;internet:[EMAIL PROTECTED] url:http://www.nibua-r.org version:2.1 end:vcard ___ 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] Multiline footer
Thanks Aditya, I have just obtained something with framedtext but missed location=low ;) Aditya Mahajan a écrit : What I usually do is surround the disclaimer in a vbox or a \framed. For example (in s-ptj-01) \startlocalsetups [titlefooter] \framed[frame=off,width=\textwidth,align=flushright,location=low] {\small\setupinterlinespace \getvariable{pracjourn}{copyright}\endgraf} \stoplocalsetups Aditya begin:vcard fn:Renaud AUBIN n:AUBIN;Renaud email;internet:[EMAIL PROTECTED] url:http://www.nibua-r.org version:2.1 end:vcard ___ 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] ConTeXt on Excursion: translations in the Garden
Wolfgang Schuster a écrit : Hi Arthur, I wasn't able to test my answer because I use myself a different file structure for the beginners manual and never encountered this problem. The better solution rather than making a TEXINPUTS entry is to put the setup module in the third party directory in your local TeX tree. It works at least on my debian box with tetex... Renaud begin:vcard fn:Renaud AUBIN n:AUBIN;Renaud email;internet:[EMAIL PROTECTED] url:http://www.nibua-r.org version:2.1 end:vcard ___ 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] new context release.
Hans Hagen a écrit : i've forgotten what it was; i did fix the mp related semi colon stuff didn't I? Hi Hans, You've add \appendtoks \disablediscretionaries \disablecompoundcharacters \to\everyMPgraphic to meta-ini.tex but the problem is persistent. Moreover, The following example raises another class of problem induced by the use of the semicolon with \in: \useencoding[ffr] \mainlanguage[fr] \starttext text:\blank text;\blank text?\blank text!\blank A sample table is given: \in{tableau}[tab:mytab]. \placetable[here][tab:mytab]{Test}{ \bTABLE \bTR \bTD test \eTD \bTD test \eTD \eTR \eTABLE } \startuseMPgraphic{test} numeric u; u:=1cm; draw origin--(10u,10u); \stopuseMPgraphic \useMPgraphic{test} \stoptext Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new context release.
I forgot to precise that I use (if it can help): This is pdfTeX, Version 3.141592-1.40.0-beta-20061017 (Web2C 7.5.5) ConTeXt ver: 2006.12.07 18:22 MK II fmt: 2006.12.7 int: english/english MetaPost 0.99 (Web2C 7.5.5) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new context release.
Hi all, I've always the same old problem described in Re: [NTG-context] enco-ffr ? (03.12.2006 00:49), even with the latest ConTeXt... Is there a way to solve these problems (since it could be nice to me to be able to process my PhD dissertation, particularly to write about it...) TIA Renaud Taco Hoekwater a écrit : Yep, I'll be waiting for some black magic ;-) There is a new current context that Hans uploaded just moments ago, that should fix the line wrapping problem with \quotations. There is some other stuff as well of course: http://wiki.contextgarden.net/Context_2006.12.07 has all the details. Best, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] enco-ffr ?
Hi Hans, i'm no sure what you mean here Hans As a sample is better than words, the following code contains the problems induced by the use of \useencoding[ffr]. The first part is only here to ensure the correct horizontal spacing. The second part raises the problem related to the use of : within ref. The last part is dedicated to the well identified MP-related problem. \useencoding[ffr] \mainlanguage[fr] \starttext text:\blank text;\blank text?\blank text!\blank A sample table is given: \in{tableau}[tab:mytab]. \placetable[here][tab:mytab]{Test}{ \bTABLE \bTR \bTD test \eTD \bTD test \eTD \eTR \eTABLE } \stopmode \startuseMPgraphic{test} numeric u; u:=1cm; draw origin--(10u,10u); \stopuseMPgraphic \useMPgraphic{test} \stoptext Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \directdiscretionary \mainlanguage[fr]
Hi all, The following code : \placetable[here][tab:objXP]{Les principales objections à l'expérimentation directe}{ of http://renojrl.lrv.uvsq.fr/perso/projects/phd/src/chapters/c_environnement.tex (l. 47) induces the following error: ! Missing \endcsname inserted. to be read again \edef \directdiscretionary #1-\edef \discretionarytoken {\detokenize {#1}}\let \t... argument tab: objXP \mainreference ...csname \r!cross \fileprefix #1#2 \endcsname \ifcase 0#4\els... l.66 ...s objections à l'expérimentation directe}} apparently due to \directdiscretionary-related (with \mainlanguage[fr]) problems... Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] enco-ffr ?
Hi Hans, Hans Hagen a écrit : i'm no sure what you mean here I just mean that the problem was not correctly described in the [NTG-context] \directdiscretionary \mainlanguage[fr] post because I've not cleaned up with texutil --purgeallfiles before to process prd_phd with texexec. Could you describe how \installactivecharacter and discretionaries work ? (this way, next time I'll maybe be able to debug myself) Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] enco-ffr ?
Hans Hagen a écrit : so i'll wait for the test file before i look into it \useencoding[ffr] \mainlanguage[fr] \starttext \section{\type{enco-ffr.tex} related issue} \startuseMPgraphic{mymptest} numeric u; u:=1cm; draw origin--(10u,10u); \stopuseMPgraphic \placefigure[here]{none}{\useMPgraphic{mymptest}} test:\blank test;\blank test!\blank test?\blank \stoptext leads to ! Illegal suffix of declared variable will be flushed. to be read again { l.148 numeric u\directdiscretionary { ;} Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Custom itemization broken by the new release
Hi all, The following code % frenchitemize \setbox0=\hbox{--~} \def\indenteddash#1{\hskip\parindent--~} \definesymbol[indentdash][\indenteddash] \defineitemgroup[frenchitemize] \setupitemgroup[frenchitemize] [each] [indentdash,packed,joinedup]%,intext] % commenté le 2611 [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax] % testitemize \defineitemgroup[testitemize] \setupitemgroup[testitemize] [each] [indentdash,packed,joinedup,intext] % commenté le 2611 [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax] \starttext \input knuth \startfrenchitemize \item \input tufte \item \input tufte \stopfrenchitemize \input knuth \page \input knuth \starttestitemize \item \input tufte \item \input tufte \stoptestitemize \input knuth \stoptext demonstrates (?) the fact that [indentdash,packed,joinedup,intext] options don't lead to the expected result, i.e. the intext option break the packed one in the definition of testitemize. Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] enco-ffr ?
Hi all, I've installed the latest ConTeXt (+ pdfTeX 3.141592-1.40.0-beta-20061017-2.2 + MetaPost 0.99, the beta one) from scratch on a machine of mine... In order to test this brand new installation, I've processed my phd and experienced some problems: 1- the new enco-ffr contains \installactivecharacter : \installactivecharacter ; \installactivecharacter ? \installactivecharacter ! These \installactivecharacter yield to ! Extra tokens will be flushed. to be read again directdiscretionary l.54 } enddef \directdiscretionary {; Ok, the problem is solved if I comment out these lines and the horizontal spacing seems to be correct... 2- I have now the following error: ! Missing \endcsname inserted. to be read again \edef \directdiscretionary #1-\edef \discretionarytoken {\detokenize {#1}}\let \t... argument tab: objXP \mainreference ...csname \r!cross \fileprefix #1#2 \endcsname \ifcase 0#4\els... l.67 ...s objections à l'expérimentation directe}} due to \in{tableau}[tab:objXP] An idea... Renaud (too tired this night to investigate, but tomorrow is another day) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )
Hi Mojca, Mojca Miklavec a écrit : textext? Did it work? On my computer it hangs after approximately 13 plots. The suggested option is to use sometxt now. textext works for me, all my plots use this option. Even better (faster) if you have a compiled version of plots and only include PDF ;) Ok, but what about font embedding ? I precisely like to proceed the plot as mp code because of the embedding of fonts... I explain: when I began ConTeXt, I included plots as pdf from LaTeX+PStricks and I observed an annoying fact, i.e. the fonts are embedded twice ! For this reason, when I heard of a context (via mp) term, I tried it... with success... Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )
Mojca Miklavec a crit: Nice work! I can't read French, but the figures are very nice and content is probably interesting as well ;) Thanks! I didn't know that people were indeed using the module already (I started using it more regularly only recently). dunno (but hope so because of the result...) Now one question: how exactly did you create/include the plots? With "which version of the module"? I don't mind if some of my plots break if I slightly change the interface before officially releasing it, but I don't want other people to have problems with that. You're right. I've used the latest darcs' release (up to the "points added, some options, etc..." patch). For the inclusion, it's better to have an example in mind: file curves.gp set terminal context input textext linewidth .3 size 1.2 set output "curves.tex" set xlabel "$x$ (m)" set ylabel "$z$ (m)" set notitle plot sin(x) with lines lw 2 notitle set xlabel "$t$ (s)" set ylabel "a label" set notitle plot cos(x) file gpsample.tex: \usemodule[t-gnuplot] \setupcolors[state=start] \starttext \processGNUPLOTfile[mybeautifulcurves][curves] \placefigure[here]{none}{ \startcombination[1*2] {\useMPgraphic{gpg:mybeautifulcurves:1}}{$\sin$} {\useMPgraphic{gpg:mybeautifulcurves:2}}{$\cos$} \stopcombination } \stoptext The output is processed using: gnuplot curves.gp texexec gpsample With this method, the gnuplot call delivers a curves.tex file one could keep as long as the plot doesn't change... Can be usefull when you have a big document! ;) I'll write a paper entitled "How to get a PhD with... ConTeXt" asap (I have the summary and the ideas but time is missing these days, as always and, moreover because of my new job...). It'll mainly be a paper about integration (m-bib, gnuplot, mp, etc...) Best regards Renaud PS: what will you do to manage your gnuplot module for ConTeXt ? Include it into official gnuplot ? It's maybe the time to keep it "well managed", with supelec foundry for example... What your opinion ? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )
Hi M.J., M.J. Kallen a écrit : Maybe Renaud can tell us a little more about the details of the typesetting? What font did you use and what program did you use to make the plots (I particularly like the fact that the font in the plots is the same as in the text!), it reminds me a little of R plots, but I may be wrong... And the flowcharts are made with the chart module if I'm not mistaken? I use lucida fonts (http://www.tug.org/store/lucida/order.html). The plots are made with t-gnuplot (http://wiki.contextgarden.net/Gnuplot) thanks to Mojca's work. flowcharts are made with the chart module, you're right. Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )
Hi Luigi, luigi scarso a crit: Well, I like it. Is there any examples on wiki of these things (maybe I have lost some discussions about it)? Not yet from me on the wiki... In fact, I have began ConTeXt last year specially to compose my dissertation. As a consequence, if you googleize "NTG ConTeXt Renaud Aubin", you'll have an idea of my step by step approach to PhD writting with ConTeXt... ;) I'll clean up, comment the source and put it online asap. You can find the source here (for the moment): http://renojrl.lrv.uvsq.fr/perso/projects/phd/ Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context