Re: [NTG-context] Utopia and Fourier fonts
On Mon, Sep 29, 2008 at 10:22 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Am 29.09.2008 um 20:35 schrieb Mikael Persson: On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Am 29.09.2008 um 11:31 schrieb Mikael Persson: On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Am 28.09.2008 um 21:21 schrieb Aditya Mahajan: Some comments: * As a mathematician I was a bit tired of the computer modern fonts (I really like them, but I see them to often), so I decided to go with the utopia/fourier fonts. This forced me to work with mkii, since I did not get these fonts to work with mkiv (This is still a problem, I am not sure how to go on with it for future documents). looks quite nice, i also like the font size Thanks. What about getting these fonts to work in mkiv? Must there be some change in the fonts? Some files in ConTeXt? (they were perfectly working in older mkii) Fourier and Uptopia should work with mkiv. I will check why they are not working at present. Utopia use encoding-filename and MkIV needs the filename to load the fonts. Here is a complete typescript for utopia (without fake slanted and caps style). \starttypescript [serif] [utopia] \setups[font:fallback:serif] \definefontsynonym [Serif] [Utopia-Regular] \definefontsynonym [SerifItalic] [Utopia-Italic] \definefontsynonym [SerifBold] [Utopia-Bold] \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic] \stoptypescript \starttypescript [serif] [utopia] \definefontsynonym [Utopia-Regular][file:putr8a] [features=default] \definefontsynonym [Utopia-Italic] [file:putri8a] [features=default] \definefontsynonym [Utopia-Bold] [file:putb8a] [features=default] \definefontsynonym [Utopia-BoldItalic] [file:putbi8a] [features=default] \stoptypescript \starttypescript [utopia] \definetypeface [\typescriptone] [rm] [serif] [utopia] [default] \stoptypescript \endinput Wolfgang Thank you Wolfgang, but this does not work for me with latest minimals. (I have downloaded utopia(+fourier) and they show up in mkii.) I put your lines in a file and add \setupbodyfont[utopia][ec/8r/...] %tried several and also without this last [] \starttext test \stoptext LuaTeX just compiles and replaces these fonts by lm. luatools putr8a.pfb gives the resulting location of the pfb file so it actually finds the font. Do I misuse it? Try my test file (I saved the typescript above in type-utopia.tex). \usetypescriptfile[type-utopia] \usetypescript[utopia] \setupbodyfont[utopia] \starttext \tf ABC abc 123 \par \it ABC abc 123 \par \bf ABC abc 123 \par \bi ABC abc 123 \par \stoptext Wolfgang Mojca did send me a list with the necessary files for fourier+utopia. I put them in http://www.math.chalmers.se/~mickep/fourierandutopia.zip if someone wants to test. I also attach a small (I guess noncomplete) typescript file type-myfourier.tex (the myfourier not to clash with something previously defined) and a file ftest.tex which indeed gives the fourier fonts, but with the error as in http://www.math.chalmers.se/~mickep/ftest.pdf mentioned in a previous mail. I guess this is not the correct way to write typescripts for these fonts in mkiv, but I dont know how to :( Best regards, Mikael PS: Thank you Mojca for giving this list of files and also explain which of the otf/ttf/type1 files that needs typescripts. Math fonts are not available in 'ec' encoding, you have to use 'default' and why do you use the tfm files for Utopia, the afm files are enough. Here is my version: \starttypescript [serif] [utopia] \setups[font:fallback:serif] \definefontsynonym [Serif] [Utopia-Regular] \definefontsynonym [SerifItalic] [Utopia-Italic] \definefontsynonym [SerifBold] [Utopia-Bold] \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic] \stoptypescript \starttypescript [serif] [utopia] \definefontsynonym [Utopia-Regular][file:putr8a] [features=default] \definefontsynonym [Utopia-Italic] [file:putri8a] [features=default] \definefontsynonym [Utopia-Bold] [file:putb8a] [features=default] \definefontsynonym [Utopia-BoldItalic] [file:putbi8a] [features=default] \stoptypescript \starttypescript [math] [fourier] [name] \definefontsynonym [MathRoman] [Utopia-Regular] \definefontsynonym [MathItalic][futmii] \definefontsynonym [MathSymbol][futsy] \definefontsynonym [MathExtension] [fourier-mex] \loadmapfile[fourier.map] \stoptypescript \starttypescript [fourier,utopia] \definetypeface [\typescriptone] [rm] [serif] [utopia] [default] \definetypeface [\typescriptone] [ss] [sans] [modern] [default] [rscale=1.07] \definetypeface [\typescriptone] [tt] [mono] [modern] [default] [rscale=1.07] \definetypeface [\typescriptone] [mm] [math] [fourier]
Re: [NTG-context] modes questions
On Mon, Sep 29, 2008 at 10:37 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: On Thu, Sep 11, 2008 at 12:46 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: (2.2) How does ConTeXt handle a modefile ? Are the modes parsed into a modelist ( re: question 1.2 ) ? best use ctx files instead, like in == somefile.ctx === ?xml version='1.0' standalone='yes'? ctx:job ctx:preprocess/ ctx:flags ctx:flagtexengine=luatex/ctx:flag ctx:flaginterface=en/ctx:flag /ctx:flags ctx:process ctx:resources ctx:modeproofing/ctx:mode ctx:environmentsomestyle.tex/ctx:environment /ctx:resources /ctx:process ctx:postprocess/ /ctx:job texexec --ctx=somefile How about the other texexec options, i implement them stepwise, i leave out those no longer relevant and all --pdf* ones will be done with ctx files instead Are there currently other ones than those listed above which already have been implemented ? How can one follow along which additional ones are implemented with the update releases ? -- Best, Alan Ubuntu 8.04 Hardy Heron (Desktop) * ConTeXt ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20 int: english/english (ConTeXt minimals installation) * texexec --lua foo ___ 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] modes questions
Alan Stone wrote: Are there currently other ones than those listed above which already have been implemented ? How can one follow along which additional ones are implemented with the update releases ? --help or just looking at the code i have no time to write/update a manual now 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 ___
Re: [NTG-context] mplib errors
Hans van der Meer wrote: I think this proves the file in my case is indeed the 01-04-08 02:14 one. A shame, really. If the file was wrong, there was a chance to catch the bug. As it stands, I am still just as dumbfounded as I was before. 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 ___
Re: [NTG-context] mplib errors
Hi Luigi, I found really easy to install minimals under ubuntu (just download first-setup.sh), so I can have one sandbox of mkiv+luatex stable and one for beta . Why don't you give it a try ? (don't forget to update to latest luatex) I'm sure minimals are worth a try. But as I stated before, everything but the mplib is working fine + I like the packaging of Norbert Preining which is very well done and LuaTeX is getting updated very often + I packaged for Debian a lot of conTeXt style files and font setups for people in my group + using such official Debian packages gives them a chance to be improved and debugged which will benefit other people... Olivier ___ 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] mplib errors
On Tue, Sep 30, 2008 at 10:54 AM, Olivier [EMAIL PROTECTED] wrote: Hi Luigi, I found really easy to install minimals under ubuntu (just download first-setup.sh), so I can have one sandbox of mkiv+luatex stable and one for beta . Why don't you give it a try ? (don't forget to update to latest luatex) I'm sure minimals are worth a try. But as I stated before, everything but the mplib is working fine + I like the packaging of Norbert Preining which is very well done and LuaTeX is getting updated very often + I packaged for Debian a lot of conTeXt style files and font setups for people in my group + using such official Debian packages gives them a chance to be improved and debugged which will benefit other people... All ok, I didn't meant that you must switch to minimals . In Ubuntu I have put minimals under /opt/luatex/minimals (and minimals-beta in /opt/luatex/minimals-beta) . They are unrelated with package system, texlive2007, texlive2008 and so on ; also installing/updating minimals is easy (at least on ubuntu) apart luatex version (but it's not really a problem) . I run every tests under minimals and minimals-beta . If they work, I assume minimals / minimals-beta are OK . Your test works on my minimals, so (my) minimals are OK. So if you install minimals /minimals-beta you can even say what is wrong in your packaging (if something is wrong: maybe you have mixed files) . I feel good with ubuntu, but for TeX related stuff I prefear manual installation . I don't expect that anyone agree on this . -- 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 ___
Re: [NTG-context] mplib errors
Am Mon, 29 Sep 2008 17:55:15 +0200 schrieb Olivier: mplib : loading format: metafun.mp, name: /home/olivier/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en-metafun.mem mplib : version mismatch: mp_parent_version 2008.05.21 15:21 mplib : making format: metafun.mp, name: /home/olivier/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en-metafun.mem The format metafun.mp is not good at first, but seems to be regenerated dynamically with success ? Do you get still this regeneration message or has it disappeared? If not I would say the format generation was not successfull. -- Ulrike Fischer ___ 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] mplib errors
Hi Ulrike, Quoting Ulrike Fischer : -- was [EMAIL PROTECTED] on Sep 30, 2008 at 11:27:08 -- Am Mon, 29 Sep 2008 17:55:15 +0200 schrieb Olivier: mplib : loading format: metafun.mp, name: /home/olivier/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en-metafun.mem mplib : version mismatch: mp_parent_version 2008.05.21 15:21 mplib : making format: metafun.mp, name: /home/olivier/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en-metafun.mem The format metafun.mp is not good at first, but seems to be regenerated dynamically with success ? Do you get still this regeneration message or has it disappeared? If not I would say the format generation was not successfull. Indeed, this format gets regenerated every time. Is there a way to genereate it separatly? Olivier ___ 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] mplib errors
Hi Taco, Quoting Taco Hoekwater : -- was [EMAIL PROTECTED] on Sep 29, 2008 at 11:27:03 -- Olivier wrote: What is the executable that is triggered by a call to mplib? (I would like to check I have it installed, not only mpost.) There isn't one, it is all internal to luatex's executable. There are no external executables and no config files involved, So, I guess it would make sense to test the compiler directly: what is the most basic way to trigger mplib from a plain tex file directly run through LuaTeX (i.e. the equivalent of the startMPgraphic if any? (And this might provide some more information on what's going on.) Olivier ___ 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] French punctuation : tests
2008/9/29 Peter Münster [EMAIL PROTECTED] On Thu, Sep 25 2008, Olivier Guéry wrote: * There should't be space between two sign. Test 2 Hello Olivier, IMHO, frenchpunctuation should just care about the additional spaces before some punctuation signs, that are the French typographic mainstream. Neither more, nor less. Two or three signs like !!! are anyway rare exceptions and perhaps grammatically even not allowed. For such exceptions one can use for example \string!, if no space is wanted. They are not allowed for « strict » french. But if you type a conversation, you can have them. Think about the usage Celine made of the punctuation. So the rules is not : there's a space before « ! ». But there's a space befor « ! » if the signe before is not punctuation. But i understand your point of view. In fact such a rule is so unknow and rare that I thinked it's better to « hard-coded » it. I would like to see the rules as simple as this: - before :, ;, ?, ! and » add some tiny nobreakspace (for example half an inter-word space and stretchable) The rule is a bit more complicated for the « : ». My hope was the fact that if TeX is able to have strict rules, let use them ! - if the author has already added a space (or nbsp) character before such sign, gobble it and use the tiny nbsp - same thing after « Yes you're probably right. But it's hard to determine what is juste taste or what is rules. * The space before the footnote sign is too big (it's clearer with othe fonts). Test 4 For me, no special treatment should be triggered with frenchpunctuation or \language[fr]. Footnote signs are just a matter of taste and style. I don't know rules in other languages but in french the footnote sign is before ponctuation, so having big space before/after is not clean. If i find the setting for doing this, i'll use it :D. And probably other french people too. But a page on the wiki is maybe enough. \mainlanguage [fr] \language[fr] \setcharacterspacing [frenchpunctuation] Perhaps, it would make sense, to make one test file for \mainlanguage[fr] and another another one for \setcharacterspacing[frenchpunctuation] ? Ok, result is join. Not shure it's the good syntax (and test n°4 failed to compile, but it can be my instalation). 1 The « ; » signs shouldn't be at the beginning of a line, there must be space before all sign (look at the rules here : http://wiki.contextgarden.net/frenchpunctuation) :\crlf To test, that the space is not breakable, one can use: \start \hsize1pt bla: bla : bla : bla~: bla? bla ? bla ? bla~? bla! bla ! bla ! bla~! bla; bla ; bla ; bla~; «bla» « bla » « bla » «~bla~»\par \stop Thanks a lot. Cheers, Olivier. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.com test-french-punctuation.pdf Description: Adobe PDF document test-french-punctuation.tex Description: TeX document ___ 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] mplib errors
Olivier wrote: So, I guess it would make sense to test the compiler directly: what is the most basic way to trigger mplib from a plain tex file directly run through LuaTeX (i.e. the equivalent of the startMPgraphic if any? (And this might provide some more information on what's going on.) Just look at mlib-run.lua from the context distribution, it should be clear enough. 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 ___
Re: [NTG-context] mplib errors
Am Tue, 30 Sep 2008 11:37:13 +0200 schrieb Olivier: Do you get still this regeneration message or has it disappeared? If not I would say the format generation was not successfull. Indeed, this format gets regenerated every time. Is there a way to genereate it separatly? I don't know ;-(. I know up to nothing about context and metapost. But both you and Hans get this regeneration of the formats so I suspect it is the source of the problem. At least it is certainly not normal and one should always start with the first error. -- Ulrike Fischer ___ 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] ansi codes
How do you typeset font characters by their ansi code number, ex. Alt+33 (21h) ? -- Best, Alan Ubuntu 8.04 Hardy Heron (Desktop) * ConTeXt ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20 int: english/english (ConTeXt minimals installation) * texexec --lua foo ___ 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] mplib errors
Ulrike Fischer wrote: Am Tue, 30 Sep 2008 11:37:13 +0200 schrieb Olivier: Do you get still this regeneration message or has it disappeared? If not I would say the format generation was not successfull. Indeed, this format gets regenerated every time. Is there a way to genereate it separatly? I don't know ;-(. I know up to nothing about context and metapost. But both you and Hans get this regeneration of the formats so I suspect it is the source of the problem. At least it is certainly not normal and one should always start with the first error. a new cont-en-metafun.mem gets generated when (1) it's not there (2) the context version changed (3) the metafun version changed mkiv does not use the metafun.mem file 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 ___
Re: [NTG-context] ansi codes
On Tue, 30 Sep 2008 12:23:56 +0200 Alan Stone [EMAIL PROTECTED] wrote: How do you typeset font characters by their ansi code number, ex. Alt+33 (21h) ? \char 21 % hex \char 33 % decimal 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 ___
Re: [NTG-context] mplib errors
Ulrike Fischer wrote: Am Mon, 29 Sep 2008 17:55:15 +0200 schrieb Olivier: mplib : loading format: metafun.mp, name: /home/olivier/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en-metafun.mem mplib : version mismatch: mp_parent_version 2008.05.21 15:21 mplib : making format: metafun.mp, name: /home/olivier/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en-metafun.mem The format metafun.mp is not good at first, but seems to be regenerated dynamically with success ? Do you get still this regeneration message or has it disappeared? If not I would say the format generation was not successfull. maybe a mismatch between the binary and context (maybe the log file in the cache formats paths tells more) 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 ___
Re: [NTG-context] French punctuation : tests
On Tue, Sep 30 2008, Olivier Guéry wrote: Think about the usage Celine made of the punctuation. Hello Olivier, Who is Celine? So the rules is not : there's a space before « ! ». But there's a space befor « ! » if the signe before is not punctuation. But i understand your point of view. In fact such a rule is so unknow and rare that I thinked it's better to « hard-coded » it. If you begin to treat such exceptions, you'll never finish. Today you're thinking of !!!, tomorrow there will be 19:20 or Hi!jab. There are 2 main ideas: - Don't put too many exceptions into ConTeXt, especially if there is no hope to treat them all automatically. When a text needs special constructions, put them in a macro, for example \ThreeExclamationMarks. - For most rules, the opinions diverge. Some people want a bit more kerning here or there, other people want less. The rule is a bit more complicated for the « : ». My hope was the fact that if TeX is able to have strict rules, let use them ! Think of the French LaTeX community: some want an inter-word space before a punctuation sign, others want only a half space or even less. So don't be too strict! Yes you're probably right. But it's hard to determine what is juste taste or what is rules. Not so hard. Almost everybody will agree with this minimal rule for French punctuation: - there has to be some nobreakspace before the punctuation signs :?!; and » and after « - there is some default value for the amount of this space, that can be easily changed by user-setup Cheers, Peter -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ansi codes
On Tue, Sep 30, 2008 at 1:37 PM, Taco Hoekwater [EMAIL PROTECTED] wrote: On Tue, 30 Sep 2008 12:23:56 +0200 Alan Stone [EMAIL PROTECTED] wrote: How do you typeset font characters by their ansi code number, ex. Alt+33 (21h) ? \char 21 % hex \char 33 % decimal Thanks Taco. It didn't work as expected. It outputs exclamation points. - font: combinumerals ( http://www.fontsite.com/bonusfonts/cnfree_tt.zip ) - font encoding type: symbol - supported unicode ranges: general punctuation What's missing here ? \starttypescript [sans] [combinumerals] \definefontsynonym [CombinumeralsRegular][name:combinumerals] [features=default] \definefontsynonym [CombinumeralsBold] [name:combinumeralsbold][features=default] \stoptypescript \starttypescript [sans] [combinumerals] \setups [font:fallback:sans] \definefontsynonym [sans][CombinumeralsRegular] \definefontsynonym [sansBold][CombinumeralsBold] \stoptypescript \starttypescript [combinumerals] \definetypeface [combinumerals] [ss] [sans] [combinumerals] [default] \stoptypescript \usetypescript[combinumerals] \starttext %\showcharacters %\page \char 33 \blank \char 21 \stoptext -- Best, Alan Ubuntu 8.04 Hardy Heron (Desktop) * ConTeXt ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20 int: english/english (ConTeXt minimals installation) * texexec --lua foo ___ 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] ConTeXt to XML or HTML
Hello all, I have been looking for a way to convert from ConTeXt to HTML. I asked for God Google and also I have visited http://wiki.contextgarden.net, and read many times almost all articles. Maybe, I have not undestood the process very well. I could not figure out how to make such conversion yet. I saw many different forms of converting XML to ConTeXt, but I did not see nothing from typing in ConTeXt syntax and get a XML output file. The only program I have noticed that do that is tex4ht. This programs bases its conversion in both .tex and .dvi files. The result is not so exact as the desired. Is there another way to do that? Regards, Betoes ___ 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] ansi codes
Alan Stone wrote: On Tue, Sep 30, 2008 at 1:37 PM, Taco Hoekwater [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Tue, 30 Sep 2008 12:23:56 +0200 Alan Stone [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: How do you typeset font characters by their ansi code number, ex. Alt+33 (21h) ? \char 21 % hex \char 33 % decimal Thanks Taco. It didn't work as expected. It outputs exclamation points. OK, fetched the font. \starttypescript [sans] [combinumerals] \setups [font:fallback:sans] \definefontsynonym [sans][CombinumeralsRegular] \definefontsynonym [sansBold][CombinumeralsBold] \stoptypescript Two changes are needed here [Sans] instead of [sans] [SansBold] instead of [sansBold] \starttext %\showcharacters %\page Have to add a font switching command here: \switchtobodyfont[combinumerals,ss] 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 ___
Re: [NTG-context] mplib errors
Taco, So, I guess it would make sense to test the compiler directly: what is the most basic way to trigger mplib from a plain tex file directly run through LuaTeX (i.e. the equivalent of the startMPgraphic if any? (And this might provide some more information on what's going on.) Just look at mlib-run.lua from the context distribution, it should be clear enough. Thanks for the pointer. I played a bit with pdfluatex directly which seems to work. (I'm not to the point of producing figures, because I would have to rebuild all the functions that are located in mlib-run.lua and the luatexref-t.tex does not give straightforward example of how the mplib module should be used, it only describes the functions API. Btw: could you add in the doc a simple example of how to set up an mplib instance (loading the format file) and typesetting a minimal graphic, and then use it from within plain TeX for instance; this is transparent to conTeXt users since there are files like mlib-run.lua but not easy for plain TeX users :P And I'm not advocating the use of plain TeX, I'm a converted conTeXt user since 2003, but this will help user understand (a bit) how things work behind the scene.) Thanks for your (and all the posters') interest, Olivier ___ 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 to XML or HTML
On Tue, Sep 30, 2008 at 3:40 PM, betoes wrote: Hello all, I have been looking for a way to convert from ConTeXt to HTML. ... The only program I have noticed that do that is tex4ht. This programs bases its conversion in both .tex and .dvi files. The result is not so exact as the desired. Is there another way to do that? You may try sending feature requests to the author of tex4ht. It has some potential to work better than it currently does. But the general answer is: there's no satisfying solution for tex-html. The other way around is possible though. Mojca ___ 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] Listings (was: Experience on writing a thesis with MKIV)
Hi Wolfgang, I guess you are referring to mkii features. It seems that formatting in verbatim doesn't work in mkiv yet, or did I miss out something? None of the wiki verbatim examples worked for me. regards, shenchen On Mon, Sep 29, 2008 at 2:16 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: \setupcolors[state=start] \definetyping[JAVA][option=JV] \setuptyping [JAVA] [numbering=line] \starttext \startJAVA ... \stopJAVA \stoptext or same preamble as above plus \definefloat[listing][listings] \starttext \placelisting [split] [lst:freeformlogfile] {Log File} {\startJAVA ... \stopJAVA} \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Listings (was: Experience on writing a thesis with MKIV)
Am 30.09.2008 um 18:37 schrieb Chen Shen: Hi Wolfgang, I guess you are referring to mkii features. It seems that formatting in verbatim doesn't work in mkiv yet, or did I miss out something? None of the wiki verbatim examples worked for me. Syntax hyghlighting is implemented in different ways for MkII and MkIV, MkII use TeX code while MkIV use Lua code to show the keywords etc. Hans added only files for TeX, MetaPost and Lua in MkIV but you could write files for more languages, you find the rules in the verb-*.lua files. Regards, 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] French punctuation : tests
Hi, there is a new beta with a few important changes - partial rewrite of the tex-lua font definition interface (from now on font-ini is different for mkii and mkiv) - adapted spacing (for french), taking care of penalty/space situations and such for this beta you need the latest luatex as well because otherwise the font definition mechanism will not work (this means that the minimals also need to be updated) 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 ___
Re: [NTG-context] ConTeXt to XML or HTML
Mojca Miklavec wrote: On Tue, Sep 30, 2008 at 3:40 PM, betoes wrote: Hello all, I have been looking for a way to convert from ConTeXt to HTML. The only program I have noticed that do that is tex4ht. This programs bases its conversion in both .tex and .dvi files. The result is not so exact as the desired. Is there another way to do that? You may try sending feature requests to the author of tex4ht. It has some potential to work better than it currently does. But the general answer is: there's no satisfying solution for tex-html. The other way around is possible though. or just code your documents in xml and then use context to make pdf and xslt to make html - 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 ___
Re: [NTG-context] Listings
Chen Shen wrote: Hi Wolfgang, I guess you are referring to mkii features. It seems that formatting in verbatim doesn't work in mkiv yet, or did I miss out something? None of the wiki verbatim examples worked for me. it's on the todo ... only tex and mp should work - 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 ___
[NTG-context] Last beta and \definedfont
Hi all, can you test the following example with the last beta and luatex version. \starttext text {\definedfont[Serif sa 10]text} \stoptext This is LuaTeX, Version snapshot-0.30.0-2008093023, build MtxRun | current version: 2008.10.01 00:07 Mac OS 10.5.5 Regards, Wolfgang test.pdf Description: Adobe PDF document ___ 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] relative file locations when compiling from different folders (in projects)
Hello, I'm just wondering if there's some recipe about how to simplify the work when icluding other files and images in projects, when one is compiling from different folders. For example: articles/08/01/art-one.tex (product) articles/08/01/art-two.tex (product) articles/08/02/art-three.tex (product) articles/08/02/art-four.tex (product) articles/08/magazine_2008.tex (product) components/funny.tex (component) img/08/01/img-1.png img/08/01/img-2.png img/08/01/img-3.png img/08/02/img-2.png magazine_all.tex (project) layout.tex (environment) If I do cd articles/08/01 texexec art-one then images are expected to be set up as ../../../img/08/01 and if I need to \input somefile from the project (like funny.tex), even if that's a component, I need to provide some explicit location. But then I would want to compile cd articles/08 texexec magazine_2008 and then all relative paths break, even when specified in subfolders. Now I would need to set up ../../img/08/01 as image directory. Even though the article provides relative path, that path is now relative to the document I compile one folder lower in hierarchy, not to the document that defines the relative path (which is a bit weird, but I understad why it is so). Also ... is there some elegant way to include funny.tex from an article, so that it will work both in article and magazine? (I'm thinking about putting \def\projectroot{../../} at the top of files, but that's a bit ugly.) I can solve the problem in my own ways with some weird macros, like the ones that set image directory to directory={../../../img/08/01,../../img/08/01,img/08/01} at the top of every article file, but my solutions are all a bit ugly. (Another thing is that it needs to be flexible enough, so that I don't need to change every single article in case that I decide to move images or articles to another location in project.) If some elegance exists to solve that, I would welcome any hints or suggestions. But as I said: it's all solvable in one way or another, so this is just a low-priority request for sharing your ideas. I'm posting this because I would almost bet that there's some one-liner to solve it all :) :) :) Thanks, Mojca ___ 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] Last beta and \definedfont
On Wed, Oct 1, 2008 at 12:53 AM, Wolfgang Schuster wrote: Hi all, can you test the following example with the last beta and luatex version. \starttext text {\definedfont[Serif sa 10]text} \stoptext This is LuaTeX, Version snapshot-0.30.0-2008093023, build MtxRun | current version: 2008.10.01 00:07 Mac OS 10.5.5 This combination worked OK before I updated: This is LuaTeX, Version snapshot-0.30.0-2008093012, build unknown MtxRun | current version: 2008.09.24 18:41 (Mac OS X 10.4) The latest ConTeXt beta with the same LuaTeX gives the same result as you attached. Mojca ___ 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] Miktex
Mojca, I saw your note on blog.miktex.org: If you still want to run ConTeXt on MikTeX while it has been removed, you may create a file texmfstart.bat in C:\Program Files\MiKTeX 2.7 \miktex\bin with the content: @echo off ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb %* and extract www.pragma-ade.com/context/current/cont-tmf.zip into C: \Program Files\MiKTeX 2.7. Then, update filename database and generate formats, and everything should work again. Mojca I followed this advice, installed texmfstart.bat, unzipped cont- tmf.zip properly, updated the filename database, then got stuck. At the dos prompt: $ texmfstart --help Worked just fine. However, $ texmfstart texexec --help Did not work. What am I missing? If I recall I'll need to do: $ texmfstart texexec --make --all Or some such thing. David Arnold College of the Redwoods Mathematics Department Eureka, CA 95501 (707) 476-4222 http://online.redwoods.edu/instruct/darnold/ ___ 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] Miktex
On Wed, Oct 1, 2008 at 1:57 AM, David Arnold wrote: Mojca, I saw your note on blog.miktex.org: If you still want to run ConTeXt on MikTeX while it has been removed, you may create a file texmfstart.bat in C:\Program Files\MiKTeX 2.7\miktex\bin with the content: @echo off ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb %* and extract www.pragma-ade.com/context/current/cont-tmf.zip into C:\Program Files\MiKTeX 2.7. Then, update filename database and generate formats, and everything should work again. Mojca I followed this advice, installed texmfstart.bat, unzipped cont-tmf.zip properly, updated the filename database, then got stuck. At the dos prompt: $ texmfstart --help Worked just fine. However, $ texmfstart texexec --help Did not work. What am I missing? If I recall I'll need to do: $ texmfstart texexec --make --all Or some such thing. Can you please try what happens if you install MikTeX in some folder with no spaces in base path? Mojca ___ 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] Listings (was: Experience on writing a thesis with MKIV)
Hi, Thanks for the pointers. It seems that the syntax-highlighter only need supply function buffers.visualizers.mp.flush_line_(), which returns a buffer containing the typesetting commands. Will try playing with it. At the moment, I am looking for the feature with \setuptyping[option=commands]. I saw \mksetupcommandsintype defined, and buffers.visualizers.enableescape = true set in core-ver.mkiv, but it isn't handled in the default visualizer. --- \starttext \setuptyping[option=commands] \starttyping abc abc /sl abc /BTEX{\sl abc}/ETEX \stoptyping \stoptext --- regards, shenchen On Wed, Oct 1, 2008 at 1:15 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Am 30.09.2008 um 18:37 schrieb Chen Shen: Hi Wolfgang, I guess you are referring to mkii features. It seems that formatting in verbatim doesn't work in mkiv yet, or did I miss out something? None of the wiki verbatim examples worked for me. Syntax hyghlighting is implemented in different ways for MkII and MkIV, MkII use TeX code while MkIV use Lua code to show the keywords etc. Hans added only files for TeX, MetaPost and Lua in MkIV but you could write files for more languages, you find the rules in the verb-*.lua files. Regards, 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 : 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] Miktex
Mojca, I a hopeless mac user at home now. I used to be pretty good with miktex, even working with hans to test the settings that now exist in the texexec.rme file, back in the days when we made that an .ini file in Miktex. But no longer. It's our school machines I am trying to configure, PC's with Windows XP. I got to a point today where I selected the formats tab in the Miktex Settings gui, and tried to build cont-en there. It objected that it could not find cont-en.ini in tex/something or other so I tried moving cont-en.ini from the context distribution to tex/ something or other and updating the filename database to no avail. I'll give your idea of no spaces a try tomorrow. Meanwhile if you can think of anything less drastic, as I have to do this on 20 different machines, Thanks so much. David. On Sep 30, 2008, at 5:15 PM, Mojca Miklavec wrote: On Wed, Oct 1, 2008 at 1:57 AM, David Arnold wrote: Mojca, I saw your note on blog.miktex.org: If you still want to run ConTeXt on MikTeX while it has been removed, you may create a file texmfstart.bat in C:\Program Files\MiKTeX 2.7 \miktex\bin with the content: @echo off ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby \texmfstart.rb %* and extract www.pragma-ade.com/context/current/cont-tmf.zip into C: \Program Files\MiKTeX 2.7. Then, update filename database and generate formats, and everything should work again. Mojca I followed this advice, installed texmfstart.bat, unzipped cont- tmf.zip properly, updated the filename database, then got stuck. At the dos prompt: $ texmfstart --help Worked just fine. However, $ texmfstart texexec --help Did not work. What am I missing? If I recall I'll need to do: $ texmfstart texexec --make --all Or some such thing. Can you please try what happens if you install MikTeX in some folder with no spaces in base path? Mojca __ _ 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 ___