[NTG-context] latest beta
Hi Hans, the latest beta has a problem with font handling: in my Greek output, the letters "sigma" and "sigmaalt" don't work anymore; they're replaced either by some "undefined" character (box with letter "X" in it) or by empty spaces. I tried to find out where something has changed, but haven't found anything so far. If you don't have an immediate idea what's wrong, I'll try to investigate further. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] XML
Hello, The family is gone for the week, so I have time to play ... What I'm doing is the following(using the attached files): context --ctx=t-openoffice BoldOnlyContent.xml Which works nicely. I'd like to make this work like so: context --ctx=t-openoffice VersuchBoldOnly.odt but whether I change the respective line in t-openoffice.tex to \xmlprocess{main}{zip://*/content.xml}{} or \xmlprocess{main}{*/content.xml}{} - no luck ... how to do this? Hans let me know how to parse xml styles on the fly, but I fail to generalize this further. When uncommenting the line \xmlval{fo:font-style}{\xmlatt{#1}{font-style}}{} in t-openoffice.tex this doesn't work as expected: context --ctx=t-openoffice BoldAndItalicContent.xml Any hints on how to fix this? I have asked related questions in the past, but have now a bit of time to investigate further ... Thanks, Joh \startenvironment t-openoffice.tex \startxmlsetups office \xmlsetsetup{main}{text:p|text:span}{*} \stopxmlsetups \xmlregistersetup{office} \startxmlsetups text:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups text:span \bgroup \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties/command(do:style:text-properties)} \xmlflush{#1} \egroup \stopxmlsetups \startxmlsetups do:style:text-properties \xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo: namespaces in attributes %\xmlval{fo:font-style}{\xmlatt{#1}{font-style}}{} \stopxmlsetups \xmlmapvalue {fo:font-weight} {bold} {\bf} \xmlmapvalue {fo:font-style} {italic} {\it} \starttext %\xmlprocess{main}{zip://*/content.xml}{} \xmlprocess{main}{content.xml}{} \stoptext \stopenvironment http://www.w3.org/1999/xlink"; xmlns:dc="http://purl.org/dc/elements/1.1/"; xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML"; xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office"; xmlns:ooow="http://openoffice.org/2004/writer"; xmlns:oooc="http://openoffice.org/2004/calc"; xmlns:dom="http://www.w3.org/2001/xml-events"; xmlns:xforms="http://www.w3.org/2002/xforms"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:field="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:field:1.0" office:version="1.1">Versuch Bold Versuch open office processing purge texengine=luatex interface=en t-openoffice.tex VersuchBoldOnly.odt Description: application/vnd.oasis.opendocument.text http://www.w3.org/1999/xlink"; xmlns:dc="http://purl.org/dc/elements/1.1/"; xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML"; xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office"; xmlns:ooow="http://openoffice.org/2004/writer"; xmlns:oooc="http://openoffice.org/2004/calc"; xmlns:dom="http://www.w3.org/2001/xml-events"; xmlns:xforms="http://www.w3.org/2002/xforms"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:field="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:field:1.0" office:version="1.1">Versuch Bold Versuch Italic Versuch signature.asc Description: This is a digitally signed message part. ___ 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] misbehaving \column
On Sat, Oct 4, 2008 at 10:24 AM, luigi scarso wrote: >> >> Every columnset starts a new page. Maybe I need to try simplecolumns >> now :) Or well ... \bTABLE ... \eTABLE. > > Aren't columnset powerful enought ? > From the manual Probably they are, I just need to swap contents between more columns (content in first column, image in the second one, content in second column, image in the first one...), but I can treat text as figure and place it on the right. "normal" columns permit stopping and starting "new columns" in the middle of the page, while columnsets apparently don't. It's just a bit confusing when "bugs"->"strategy change" start making the work more fun when you think that you are almost done :) :) :) ["normal" columns work in 95% of the document, so I'm not going to replace that part now just to hit another bug :) But I'll know for the next time.] 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] Some Metapost Problems
On Tue, Oct 7, 2008 at 9:54 PM, Wolfgang Werners-Lucchini wrote: > Hallo Mojca, > >> > 1. The labels of the first graphic are xscaled (randomly) >> >> They are not scaled randomly :P >> They inherit the sizes from the second graphic. >> >> See >> >> http://archive.contextgarden.net/message/20061204.102337.280a6589.en >> .html > > strange > >> You need >> \runMPgraphicstrue > > Yes, this helps! > > But what are the sideeffects? When is the opposite needed? I don't know. Ask Hans or Taco. It might have to do with write18 (perhaps when it's desabled, one of them doesn't work, but I don't really know). >> These settings are used exclusevely for btex ... etex and textext. >> \sometxt uses the surounding font. >> >> There could be some settings for fonts in metapost graphics, but >> I'm not aware of any. >> However, it's rather easy to either: >> >> a) write your own metapost macro for placing labels that scales >> down >> everything by 20% >> label.top(myscaled(\sometxt{Samstag}), z0) ; >> where >> vardef myscaled(expr t) = (t scaled 0.8) enddef; > > This works. > >> b) write your own handle >> \definetextext[scaled]{\switchtobodyfont[8pt]\strut} >> and then >> label.top(\sometxt[scaled]{Samstag}, z0) ; > > This works, too. Where is this documented? The \sometxt myway (http://wiki.contextgarden.net/My_Way). >> c) write your own macro or put some font size switch in front of >> the graphic (I did not try it out) >> \long\def\startuseMPgraphicwithscaledtext#1\stopuseMPgraphicwithscal >> edtext >> {\bgroup\switchtobodyfont[8pt]\startuseMPgraphic#1\stopuseMPgraphic\ >> egroup} > > This is not working. > Even an explizit > > {\switchtobodyfont[8pt] > \startuseMPgraphic > > > > \stopuseMPgraphic > } > > didn't work. Try: \switchtobodyfont[50pt] \startMPcode draw \sometxt{abc}; \stopMPcode Maybe the labels are typeset when you \useMPgraphic, not when you define it (but better have the sizes kept in sync). 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] t-vim problem
I am sorry for a hurry reply. The module requires vim but I only install vi on my laptop. Sorry for my carelessness and Thank you for your attention. 2008/10/7 Zhaopeng Xing <[EMAIL PROTECTED]> > The attachment is my test file and logs. Thanks. > > 2008/10/7 Zhaopeng Xing <[EMAIL PROTECTED]> > > 2008/10/7 Aditya Mahajan <[EMAIL PROTECTED]> >> >>> On Tue, 7 Oct 2008, Zhaopeng Xing wrote: >>> >>> > Hi Aditya, >>> > >>> > I am using t-vim 2008.09.15, but the following sample runs problem with >>> the >>> > hightlighting file name. >>> > >>> > \usemodule[vim] >>> > >>> > \starttext >>> > >>> > \definevimtyping [RUBY] [syntax=ruby] >>> > >>> > \startRUBY >>> > >>> > #! /usr/bin/ruby >>> > >>> > # This is my first ruby program >>> > >>> > puts "Hello World" >>> > >>> > \stopRUBY >>> > >>> > \stoptext >>> > >>> > >>> > The message is saying: >>> > >>> > >>> > ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'. >>> > >>> > >>> > >>> > \relax >>> > >>> > \dodotypevimfile ...\input #2-vimsyntax.tmp\relax >>> > >>> > \egroup \@@vsafter >>> > >>> > l.8 \stopRUBY >>> > >>> > Please type another input file name: >>> >>> I thought that I had corrected this. Are you using a recent mtxrun? Type >>> in mtxrun --help. Does the third line say >>> >>> MtxRun | --execute run a script or program (--noquotes) >>> >> >> Yes, it is. I am using the latest minimal and t-vim is installed in >> texmf-local. >> >> >>> >>> > I checked the directory. The file should be named to >>> > untitled-1-vimsyntax.tmp instead of >>> untitled-1-vimsyntax.tmp-vimsyntax.tmp. >>> >>> The filenaming is correct. t-vim writes a file called >>> \jobname-\number-vimsyntax.tmp and then 2context.vim writes a file with >>> -vimsyntax.tmp, so in effect t-vim is looking for a file called >>> >>> \jobname-\number-vimsyntax.tmp-vimsyntax.tmp. >>> >>> This slightly confusing naming scheme is so that --purge does remove all >>> the temporary files. >>> >> I do not know exactly the inside mechanism. When the message asked me >> about the file name, I input \jobname-\number-vimsyntax.tmp and it works. So >> I think that the file name should be \jobname-\number-vimsyntax.tmp. >> >>> >>> > Can you show me how to figure out such a problem? Thanks. >>> >>> Which OS are you using? >>> >> I am using Archlinux on a Thinkpad T43. The vi program works fine. >> >> >>> 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 : https://foundry.supelec.fr/projects/contextrev/ >>> wiki : http://contextgarden.net >>> >>> ___ >>> >> >> >> >> -- >> Zhaopeng XING >> >> Tinbergen Institute >> > > > > -- > Zhaopeng XING > > Tinbergen Institute > -- Zhaopeng XING Tinbergen Institute ___ 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] Some Metapost Problems
Hallo Mojca, > > 1. The labels of the first graphic are xscaled (randomly) > > They are not scaled randomly :P > They inherit the sizes from the second graphic. > > See > > http://archive.contextgarden.net/message/20061204.102337.280a6589.en > .html strange > You need > \runMPgraphicstrue Yes, this helps! But what are the sideeffects? When is the opposite needed? > These settings are used exclusevely for btex ... etex and textext. > \sometxt uses the surounding font. > > There could be some settings for fonts in metapost graphics, but > I'm not aware of any. > However, it's rather easy to either: > > a) write your own metapost macro for placing labels that scales > down > everything by 20% > label.top(myscaled(\sometxt{Samstag}), z0) ; > where > vardef myscaled(expr t) = (t scaled 0.8) enddef; This works. > b) write your own handle > \definetextext[scaled]{\switchtobodyfont[8pt]\strut} > and then > label.top(\sometxt[scaled]{Samstag}, z0) ; This works, too. Where is this documented? > c) write your own macro or put some font size switch in front of > the graphic (I did not try it out) > \long\def\startuseMPgraphicwithscaledtext#1\stopuseMPgraphicwithscal > edtext > {\bgroup\switchtobodyfont[8pt]\startuseMPgraphic#1\stopuseMPgraphic\ > egroup} This is not working. Even an explizit {\switchtobodyfont[8pt] \startuseMPgraphic \stopuseMPgraphic } didn't work. I will use one of the other solutions. Thank you very much! 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] t-vim problem
On Tue, 7 Oct 2008, Zhaopeng Xing wrote: > I am sorry for a hurry reply. The module requires vim but I only install vi > on my laptop. Sorry for my carelessness and Thank you for your attention. Ah, that was easy :-) You will also need to add \setupcolors[state=start] somewhere in your environment to get colored output. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to get the ligatures back in mkiv?
Mojca Miklavec wrote: > On Tue, Oct 7, 2008 at 8:37 PM, Hans Hagen wrote: >> Mojca Miklavec wrote: >>> \definefontfeature >>> [default] >>> [script=latn,liga=yes,kern=yes,tlig=yes,trep=yes] >>> \definefontsynonym [Garamond-Roman] [AGaramondPro-Regular] >>> [features=default] >>> >>> I have switched to XeTeX for now (\font\a='Adobe Garamond Pro' at >>> 15pt\a works OK), but that's not the solution. >> hm, this should work (at least it works here in the beta and luatex) >> >> \starttext >> final >> \stoptext > > Black magick ... Ligatures work again without changing the source code > after updating to the tiny bit newer beta (I had an impression that I > did that before, but apparently I didn't). I do not understand the > reason, but ... let them live happily. well .. the font mechanism is being stepwise reconstructed ... so just blame me 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] metapost and luatex (or xetex)
2008/10/6 Mojca Miklavec <[EMAIL PROTECTED]>: > On Sat, Oct 4, 2008 at 2:14 PM, Diego Depaoli wrote: >> 2008/10/3 Hans Hagen: >>> is ok, use btex color[white]{COPYRIGHT} etex instead >> >> Please see attached output... >> I missed such command? > > \color[gray] of course \color[redembarrass]{Me Stupid} works too -- Diego Depaoli ___ 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] t-vim problem
2008/10/7 Aditya Mahajan <[EMAIL PROTECTED]> > On Tue, 7 Oct 2008, Zhaopeng Xing wrote: > > > Hi Aditya, > > > > I am using t-vim 2008.09.15, but the following sample runs problem with > the > > hightlighting file name. > > > > \usemodule[vim] > > > > \starttext > > > > \definevimtyping [RUBY] [syntax=ruby] > > > > \startRUBY > > > > #! /usr/bin/ruby > > > > # This is my first ruby program > > > > puts "Hello World" > > > > \stopRUBY > > > > \stoptext > > > > > > The message is saying: > > > > > > ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'. > > > > > > > > \relax > > > > \dodotypevimfile ...\input #2-vimsyntax.tmp\relax > > > > \egroup \@@vsafter > > > > l.8 \stopRUBY > > > > Please type another input file name: > > I thought that I had corrected this. Are you using a recent mtxrun? Type > in mtxrun --help. Does the third line say > > MtxRun | --execute run a script or program (--noquotes) > Yes, it is. I am using the latest minimal and t-vim is installed in texmf-local. > > > I checked the directory. The file should be named to > > untitled-1-vimsyntax.tmp instead of > untitled-1-vimsyntax.tmp-vimsyntax.tmp. > > The filenaming is correct. t-vim writes a file called > \jobname-\number-vimsyntax.tmp and then 2context.vim writes a file with > -vimsyntax.tmp, so in effect t-vim is looking for a file called > > \jobname-\number-vimsyntax.tmp-vimsyntax.tmp. > > This slightly confusing naming scheme is so that --purge does remove all > the temporary files. > I do not know exactly the inside mechanism. When the message asked me about the file name, I input \jobname-\number-vimsyntax.tmp and it works. So I think that the file name should be \jobname-\number-vimsyntax.tmp. > > > Can you show me how to figure out such a problem? Thanks. > > Which OS are you using? > I am using Archlinux on a Thinkpad T43. The vi program works fine. > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > -- Zhaopeng XING Tinbergen Institute ___ 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] How to get the ligatures back in mkiv?
On Tue, Oct 7, 2008 at 8:37 PM, Hans Hagen wrote: > Mojca Miklavec wrote: >> >> \definefontfeature >> [default] >> [script=latn,liga=yes,kern=yes,tlig=yes,trep=yes] >> \definefontsynonym [Garamond-Roman] [AGaramondPro-Regular] [features=default] >> >> I have switched to XeTeX for now (\font\a='Adobe Garamond Pro' at >> 15pt\a works OK), but that's not the solution. > > hm, this should work (at least it works here in the beta and luatex) > > \starttext > final > \stoptext Black magick ... Ligatures work again without changing the source code after updating to the tiny bit newer beta (I had an impression that I did that before, but apparently I didn't). I do not understand the reason, but ... let them live happily. 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] How to get the ligatures back in mkiv?
Mojca Miklavec wrote: > Hello, > > A while back, script=latn has been removed from features=default. It > was an extremely sad story, but at that time it was possible to don't start weeping > redefine it at least. Now I cannot make it work any more, or at least > I'm doing something fundamentally wrong, but I don't get the fi > ligature with the following code: > > \definefontfeature > [default] > [script=latn,liga=yes,kern=yes,tlig=yes,trep=yes] > \definefontsynonym [Garamond-Roman] [AGaramondPro-Regular] [features=default] > > I have switched to XeTeX for now (\font\a='Adobe Garamond Pro' at > 15pt\a works OK), but that's not the solution. hm, this should work (at least it works here in the beta and luatex) \starttext final \stoptext - 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] How to get the ligatures back in mkiv?
Hello, A while back, script=latn has been removed from features=default. It was an extremely sad story, but at that time it was possible to redefine it at least. Now I cannot make it work any more, or at least I'm doing something fundamentally wrong, but I don't get the fi ligature with the following code: \definefontfeature [default] [script=latn,liga=yes,kern=yes,tlig=yes,trep=yes] \definefontsynonym [Garamond-Roman] [AGaramondPro-Regular] [features=default] I have switched to XeTeX for now (\font\a='Adobe Garamond Pro' at 15pt\a works OK), but that's not the solution. MtxRun | current version: 2008.10.03 23:45 Help anyone? Thanks a lot, 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] substitutions
Mojca Miklavec wrote: > On Mon, Oct 6, 2008 at 1:57 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: >> Dear gang, >> >> Sometimes I use the following for simple substitutions: >> >> \defineactivecharacter ' {\otfchar{quoteright}} >> >> But is there a more general mechanism to do things >> >> \definesubstitution{}{} >> >> eg >> >> \definesubstitution{--}{–} >> >> Of course ConTeXt already provides this particular substitution > > In mkii it doesn't. Fonts do that substitution. In mkiv a hack is > applied to fonts (not to TeX macros), so that this particular > substitution works. > >> but I'm >> interested in such a mechanism for more general purposes. > > In mkii this is not possible, except with some ugly hacks. You can > easily substitute a single character by making it active. To > substitute whole words, you either need to modify fonts, or write some > dirty macros. > > In mkiv you can either apply some "patches" to fonts (search for tlig > in ConTeXt source, for example font-otf.lua, also, there are some fea > files in fonts/fea/context capable of doing that), or change input > text while reading/digesting some TeX file. > > Hans and Taco can probably tell you more. it all depends on what we want to achieve ... - we can have font fixers (dynamically extend fonts with features, but this demands knowledge of the font) - we can have replacements in the node list (attribute driven, relatively easy to implement) so before i start looking into this, we need to investigate what is needed (and what for) (only mkiv) 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] relative file locations when compiling from different folders (in projects)
Henning Hraban Ramm wrote: > Am 2008-10-03 um 20:15 schrieb Hans Hagen: > > 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. \usepath[..] \usesubpath[...] (on top of paths) \setupexternalfigures[directory={.}] >>> I knew that there must be some secret to do it in some more elegant >>> way than I was trying to cook up. >> you don't want to know how old these features are > > > 2 hours? 2 days? or 10 years? > > Never saw \use(sub)path before... > Would have solved some of my own problems. definitely many years - 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] t-vim problem
On Tue, 7 Oct 2008, Zhaopeng Xing wrote: > Hi Aditya, > > I am using t-vim 2008.09.15, but the following sample runs problem with the > hightlighting file name. > > \usemodule[vim] > > \starttext > > \definevimtyping [RUBY] [syntax=ruby] > > \startRUBY > > #! /usr/bin/ruby > > # This is my first ruby program > > puts "Hello World" > > \stopRUBY > > \stoptext > > > The message is saying: > > > ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'. > > > > \relax > > \dodotypevimfile ...\input #2-vimsyntax.tmp\relax > > \egroup \@@vsafter > > l.8 \stopRUBY > > Please type another input file name: I thought that I had corrected this. Are you using a recent mtxrun? Type in mtxrun --help. Does the third line say MtxRun | --execute run a script or program (--noquotes) > I checked the directory. The file should be named to > untitled-1-vimsyntax.tmp instead of untitled-1-vimsyntax.tmp-vimsyntax.tmp. The filenaming is correct. t-vim writes a file called \jobname-\number-vimsyntax.tmp and then 2context.vim writes a file with -vimsyntax.tmp, so in effect t-vim is looking for a file called \jobname-\number-vimsyntax.tmp-vimsyntax.tmp. This slightly confusing naming scheme is so that --purge does remove all the temporary files. > Can you show me how to figure out such a problem? Thanks. Which OS are you using? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] showcase on mac?
On my Mac I use the PDF Browser Plugin by Manfred Schubert www.schubert-it.com That makes everything work right on the web for Mac. And the browser has personal as well as commercial licenses. On Ubuntu Linux things work fine on the web. I still run (and shall continue to run) Windows 98 for me and Windows XP for the "family" computer. Thus, I don't do much TeXing on Windows. OTOH, the Debian-ish nature of Ubuntu allows one to DL the contect-nonfree pkg, but everything is gzipped. So either use evince or gunzip everything. Evince doesn't allow links at all, giving an "unknown mime type." If you gunzip and use Adobe Reader, some links create "file not found" errors but there is slightly more functionality. I always thought it was a file hierarchy thing. BTW, Free/PC-BSD is an environment where you can easily patch ports to let you install kile and the like without depending directly on a packaged TeX distro, allowing easy use of the tl-installer and the minimals as well. If KDE 4 is more stable in the next release cycle or if I remain a glutton for Gnome punishment, I may go that direction again, lack of Flash (except under Wine) or not. Charles On Tue, 2008-10-07 at 09:32 +0200, Taco Hoekwater wrote: > > John Culleton wrote: > > On Sunday 28 September 2008 08:13:15 am Hans Hagen wrote: > >> Frans Goddijn wrote: > >>> Willi Egger helped me get a minimal install working on my mac and > >>> I'm working on a collection of columns illustrated with pictures. > >>> It's been a while since I used Context so I want to download some > >>> basic manuals to refresh my memory and learn new things. > >>> > >>> On my Windows machine I can view/navigate and download manuals > >>> from the http://www.pragma-ade.nl/showcase.pdf > >>> page, but on my mac this doesn't work. In the Safari browser, > >>> nothing happens if I click on the "manuals" link. In Firefox, the > >>> showcase PDF is downloaded and I can open it. After allowing the > >>> file to go full screen, I get error messages for the links "there > >>> was an error opening this document/ the file cannot be found', > >>> execpt on the "quit" link ;-) > >>> > >>> Is there a simple thing I should change to make it work on the > >>> mac as well? > >> doesn't acrobat work? (the mac pdf browser is somewhat limited); > >> best use acrobat reader as plugin > > On my linux with AR8.1 as plugin to firefox using showcase.pdf works > fine, but only via the browser window, and I installed the AR rpm > from Adobe directly because the one in my distro (Mandriva 2008.1) > was missing key plugins, "weblink" in particular. > > 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 ___
Re: [NTG-context] Downloading problem
On Tue, Oct 7, 2008 at 12:57 PM, Mehdi Omidali wrote: > Hi, > The broken link is > http://www.pragma-ade.nl/context/install/linuxtex.zip It downloads fine here. I'm not sure if that's the same file (if it has the same content), but as a backup you also have one here: http://minimals.contextgarden.net/pragma/ or you can follow the instructions from http://minimals.contextgarden.net/setup/ The latter one offers you easy updates. Mojca > On 10/7/08, Mojca Miklavec <[EMAIL PROTECTED]> wrote: >> On Sat, Oct 4, 2008 at 4:01 PM, Mehdi Omidali wrote: >>> Hi everyone, >>> I tried to download the linux minimal several times but I couldn't and >>> the download progress stoped after 26%. Is the link correct? >> >> Hello Mehdi, >> >> That's hard to tell unless you tell us which link you are referring to. >> >> 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] Downloading problem
Hi, The broken link is http://www.pragma-ade.nl/context/install/linuxtex.zip On 10/7/08, Mojca Miklavec <[EMAIL PROTECTED]> wrote: > On Sat, Oct 4, 2008 at 4:01 PM, Mehdi Omidali wrote: >> Hi everyone, >> I tried to download the linux minimal several times but I couldn't and >> the download progress stoped after 26%. Is the link correct? > > Hello Mehdi, > > That's hard to tell unless you tell us which link you are referring to. > > 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 ___
Re: [NTG-context] substitutions
On Mon, Oct 6, 2008 at 1:57 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: > Dear gang, > > Sometimes I use the following for simple substitutions: > > \defineactivecharacter ' {\otfchar{quoteright}} > > But is there a more general mechanism to do things > > \definesubstitution{}{} > > eg > > \definesubstitution{--}{–} > > Of course ConTeXt already provides this particular substitution In mkii it doesn't. Fonts do that substitution. In mkiv a hack is applied to fonts (not to TeX macros), so that this particular substitution works. > but I'm > interested in such a mechanism for more general purposes. In mkii this is not possible, except with some ugly hacks. You can easily substitute a single character by making it active. To substitute whole words, you either need to modify fonts, or write some dirty macros. In mkiv you can either apply some "patches" to fonts (search for tlig in ConTeXt source, for example font-otf.lua, also, there are some fea files in fonts/fea/context capable of doing that), or change input text while reading/digesting some TeX file. Hans and Taco can probably tell you more. 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] Downloading problem
On Sat, Oct 4, 2008 at 4:01 PM, Mehdi Omidali wrote: > Hi everyone, > I tried to download the linux minimal several times but I couldn't and > the download progress stoped after 26%. Is the link correct? Hello Mehdi, That's hard to tell unless you tell us which link you are referring to. 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] off-topic : about smultron
Dear Dalyoung, Sorry,I don't know. The only thing I've noticed is that Smultron refreshes its result window after compilation is completed and not while compiling, I guess it's a matter of piping. So, sometimes there a relevant lag and I have to wait a bit in order to look at what has happened. Best -a- On 6 Oct 2008, at 09:04, Dalyoung Jeong wrote: Dear all, I hope that you understand a little bit off topic question. Recently, I installed smultron and set it up to use ConTeXt Minimals following the instruction in ConTeXt wiki. Basically it worked. But the command result window didn't properly show what is going on during the compilation. But it appeared some time but it didn't some other time. I couldn't figure out when it did and when it didn't. Even in the case that it showed the result, it didn't refresh after I compiled the same file again. Does some one help me to fix it? Thank you. Best regards, Dalyoung __ _ 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 __ _ -- Andrea Valle -- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> [EMAIL PROTECTED] -- " Think of it as seasoning . noise [salt] is boring . F(blah) [food without salt] can be boring . F(noise, blah) can be really tasty " (Ken Perlin on noise) ___ 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] strange problem with mkiv (windows)
Taco Hoekwater schrieb: > Hi Peter, > > Peter Rolf wrote: >> Hi, >> >> the following code breaks compilation here (XP SP3). > > What versions of luatex and mkiv? Runs fine here with > the context 2008.10.03 and luatex #1452 (svn head) > Are you running it under Windows XP? I have tried several ConTeXt betas (currently 2008.10.03) and luatex versions (currently svn #1537). Even using the unmodified minimals result in this error here. > 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] t-vim problem
Hi Aditya, I am using t-vim 2008.09.15, but the following sample runs problem with the hightlighting file name. \usemodule[vim] \starttext \definevimtyping [RUBY] [syntax=ruby] \startRUBY #! /usr/bin/ruby # This is my first ruby program puts "Hello World" \stopRUBY \stoptext The message is saying: ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'. \relax \dodotypevimfile ...\input #2-vimsyntax.tmp\relax \egroup \@@vsafter l.8 \stopRUBY Please type another input file name: I checked the directory. The file should be named to untitled-1-vimsyntax.tmp instead of untitled-1-vimsyntax.tmp-vimsyntax.tmp. Can you show me how to figure out such a problem? Thanks. -- Zhaopeng XING Tinbergen Institute ___ 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] a bug of math subscript
OK. Thank you for your hint. ${\cal F}_t$ is what I need. 2008/10/7 Aditya Mahajan <[EMAIL PROTECTED]> > On Sun, 5 Oct 2008, Zhaopeng Xing wrote: > > > Hi, > > > > I found a strange problem with the latest beta on my linux box. > $\cal{F}_t$ > > produces no subscript as in the attachment. > > There are no lowercase caligraphic letters. Did you mean ${\cal F}_t$ or > $\cal F_T$? > > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > -- Zhaopeng XING Tinbergen Institute ___ 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] Fails to load certain Chinese fonts
Yanrui Li wrote: > Hi, > > In MkIV of last beta version (2008.10.03 23:45), when I was loading > certain Chinese fonts such as AdobeSongStd-Light or SimSun, LuaTeX > happened to be interrupted. This is my (luatex's) fault, fixed in #1543. 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] Fails to load certain Chinese fonts (Yanrui Li)
Yanrui Li wrote: > These problems which include lousy code of certain Chinese fonts in > pdf that is generated by MkIV, seem to connect with LuaTeX. > >>From revision 1525 to 1535, LuaTeX can always work very well except > text of using SimSun font is lousy code in pdf. > > After cleaning $TEXMFCACHE, I compiled revision 1540 of LuaTeX and > used it, and then I encountered fails to load almost Chinese fonts. > However, if I don't clean $TEXMFCACHE generated by revision 1535 of > LuaTeX and use revision 1541, there is no any problem. Your example.tex (using SimSum) runs fine here. Assuming revision 1542 with 2008.10.03 is still wrong for you, can you please send me the generated simsun-simsun.tma file from the luatex-cache? 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] strange problem with mkiv (windows)
Hi Peter, Peter Rolf wrote: > Hi, > > the following code breaks compilation here (XP SP3). What versions of luatex and mkiv? Runs fine here with the context 2008.10.03 and luatex #1452 (svn head) 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] showcase on mac?
John Culleton wrote: > On Sunday 28 September 2008 08:13:15 am Hans Hagen wrote: >> Frans Goddijn wrote: >>> Willi Egger helped me get a minimal install working on my mac and >>> I'm working on a collection of columns illustrated with pictures. >>> It's been a while since I used Context so I want to download some >>> basic manuals to refresh my memory and learn new things. >>> >>> On my Windows machine I can view/navigate and download manuals >>> from the http://www.pragma-ade.nl/showcase.pdf >>> page, but on my mac this doesn't work. In the Safari browser, >>> nothing happens if I click on the "manuals" link. In Firefox, the >>> showcase PDF is downloaded and I can open it. After allowing the >>> file to go full screen, I get error messages for the links "there >>> was an error opening this document/ the file cannot be found', >>> execpt on the "quit" link ;-) >>> >>> Is there a simple thing I should change to make it work on the >>> mac as well? >> doesn't acrobat work? (the mac pdf browser is somewhat limited); >> best use acrobat reader as plugin On my linux with AR8.1 as plugin to firefox using showcase.pdf works fine, but only via the browser window, and I installed the AR rpm from Adobe directly because the one in my distro (Mandriva 2008.1) was missing key plugins, "weblink" in particular. 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] strange problem with mkiv (windows)
And runs fine on linux here. So, seems to be windows specific. Are the windows binaries in the minimals up to date? Aditya On Tue, 7 Oct 2008, . wrote: > Same over here Peter with XP SP3. > > > On Mon, Oct 6, 2008 at 3:08 PM, Peter Rolf <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> the following code breaks compilation here (XP SP3). >> >> \starttext >> \limitatefirstline{\underbar{WqTextdummy}}{8ex}{...} >> \stoptext >> >> >> [..] >> systems: begin file crop2 at line 2 >> ! Emergency stop. >> \processisolatedwords ...latedlastskip \lastskip } >> \setbox 2\normalvbox >> {\lef... >> \redounderbar ...sisolatedwords {#2}\dodounderbar >> \egroup >> \limitatefirstline ...ratchbox \hbox {\begstrut #1 >> \endstrut }\ifdim \wd >> \scr... >> l.4 ...firstline{\underbar{WqTextdummy}}{8ex}{...} >> >> ! ==> Fatal error occurred, no output PDF file produced! >> MtxRun | loading configuration for r:/tex/texmf/web2c from >> >> r:/tex/texmf-cache/luatex-cache/context/d0b787cd25b9175dc4eaa276af366360/trees/b69cd8db662fdc8e4c09165909c3f8af >> MtxRun | run 1: luatex >> >> --fmt="r:/tex/texmf-cache/luatex-cache/context/d0b787cd25b9175dc4eaa276af366360/formats/cont-en" >> >> --lua="r:/tex/texmf-cache/luatex-cache/context/d0b787cd25b9175dc4eaa276af366360/formats/cont-en.lua" >> "./crop2" >> MtxRun | fatal error, code: 1 >> >> >> I also tried with latest untouched minimals, but same result. If I >> remove the \underbar macro, things work ok. >> >> My first thought was, that this is related to attributes. *Strangely the >> example has no problems on contextgarden.* Can anyone with Windos OS >> test, if this is a general (windows) problem? Thanks. >> >> >> Best wishes, 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 >> >> ___ >> >> > ___ 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 ___