Re: [NTG-context] proportional oldstyle figure not working in MKIV
On 1-1-2011 7:11, Yue Wang wrote: Hi, Hans: I think there are problems with the current MKIV font loading code. sample code: \definefontfeature[minion][language=dflt, script=latn, onum=yes, kern=yes, pnum=yes] \definefontsynonym[Minion][MinionPro-Regular][features=minion] \definefont[Minion][Minion at 34pt] \starttext \Minion 1234567890 \stoptext This works in MKII (XeTeX). Please fix that. Thanks add mode=node - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] framed float with offset
Is there a way to have figures placed on a slightly larger colored background and then have paragraph text flow around the enlarged area? I tried the following (using ver 2009.11.26 16:28 MKII): \setupcolors[state=start] \starttext \placefigure[right,none]{}% {\externalfigure[sample/cow.pdf]% [scale=500, frame=on, frameoffset=20pt, framecolor=black, background=color, backgroundcolor=lightgray, backgroundoffset=20pt]} \input knuth \stoptext But the frame and background bleed into the text. I tried wrapping the externalfigure in a \framed, and also wrapping that in an \vbox or an \hbox (desperate measures, I admit). But somehow the \placefigure always knew exactly the size of the cow itself and used only that information, rather than the size of the enlarged background. Any suggestions appreciated. (I'd wikify in the framed section.) -Sanjoy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] framed float with offset
Sanjoy Mahajan san...@olin.edu writes: \starttext \placefigure[right,none]{}% {\externalfigure[sample/cow.pdf]% [scale=500, frame=on, frameoffset=20pt, framecolor=black, background=color, backgroundcolor=lightgray, backgroundoffset=20pt]} \input knuth \stoptext But the frame and background bleed into the text. Hello Sanjoy, \starttext \placefigure[right]{Problem: offset=20pt ignored here!} {\externalfigure[sample/cow.pdf] [scale=500, frame=on, offset=20pt, background=color, backgroundcolor=lightgray]} \input knuth \placefigure[right]{This is ok!}{\framed[offset=20pt, background=color, backgroundcolor=lightgray]{\externalfigure[sample/cow.pdf][scale=500]}} \input knuth \stoptext Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to get graph module (metapost) to work with ConTeXt minimals?
Am 31.12.2010 um 10:36 schrieb Verhaag, G.C.H.M.: So I understand that both statements: \loadmarkfile{m-graph} \usemodule[graph] are actually the same thing! Both work but they are not the same thing. \loadmarkfile loads only the given file with the extension “mkii” MkII and “mkiv” for MkIV and only used in modules. \usemodule does a lot more than this, the first is that it checks for the given module with different prefixes (the graph module has a “m-” prefix which means it’s a core module) and it also looks for file with different extension, this means it doesn’t matter if the module is called m-graph.tex, m-graph.mkiv or even t-graph.mkiv, \usemodule will always load the module while \loadmarkfile will only load m-graph.mkiv When you load a file with \loadmarkfile and the file is not present you will get a message on the terminal to give a different file name which aborts the tex run while \usemodule will only give a message on the terminal but the processing isn’t stopped, as a last thing \usemodule loads a module only once while \loadmarkfile will always read the file. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] line numbers - method=page
Dear all, on trying to reproduce the TEI to ConTeXt example on http://wiki.contextgarden.net/TEI_xml I haven't been able to get the line numbering per page working right. I directly copy-pasted the relevant part of the seventh listing which goes like this: \setuplinenumbering[location=inner, step=5, method=page, style=\tfxx, align=left, distance=0.3em, width=0.3cm] - unfortunately to no avail. method=page isn't mentioned neither in the context manual nor in the wiki so I fear I'll have to find some workaround? Being a absolute newbie to ConTeXt I actually tried some primitive fiddling with variations of \setupheadertexts[\setcounter{linenumber}{0}] I'm using ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.12.31 which should be the newest version available on http://tlcontrib.metatex.org/2010. Any kind of help is highly appreciated! Please forgive me if there has been already mentioned a solution on this list which I missed… Thanks in advance! Daniel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] proportional oldstyle figure not working in MKIV
Thanks. got it. BTW, what are the conditions that mode != node are used? On Sat, Jan 1, 2011 at 7:01 AM, Hans Hagen pra...@wxs.nl wrote: On 1-1-2011 7:11, Yue Wang wrote: Hi, Hans: I think there are problems with the current MKIV font loading code. sample code: \definefontfeature[minion][language=dflt, script=latn, onum=yes, kern=yes, pnum=yes] \definefontsynonym[Minion][MinionPro-Regular][features=minion] \definefont[Minion][Minion at 34pt] \starttext \Minion 1234567890 \stoptext This works in MKII (XeTeX). Please fix that. Thanks add mode=node - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Escaping in LuaTeX
I have a problem with Lua and the # operator. If I execute the following code I receive an error. \def\luacode% {\startluacode local t = {1, 2, 3} tex.print(#t) \stopluacode} \starttext \luacode \stoptext ConTeXt give me the message: ! Illegal parameter number in definition of \luacode. to be read again t l.4 tex.print(#t ) And if I execute the H command I get: You meant to type ## instead of #, right? Or maybe a } was forgotten somewhere earlier, and things are all screwed up? I''m going to assume that you meant ##. I've tryed with ##t, whit \#t, with \string#t, with \ctxlua instread of \startluacode and \stopluacode, and I've obtained some other errors, but ConTeXt always give me an error. Maybe should I escape in another manner the # operator? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] framed float with offset
Peter, \placefigure[right]{This is ok!}{\framed[offset=20pt, background=color, backgroundcolor=lightgray]{\externalfigure[sample/cow.pdf][scale=500]}} \input knuth Ah, I had tried almost that recipe (of wrapping the \externalfigure in a \framed) but had used backgroundoffset and frameoffset. Yours works perfectly. I wikified the recipe at http://wiki.contextgarden.net/Using_Graphics -Sanjoy `Until lions have their historians, tales of the hunt shall always glorify the hunters.' --African Proverb ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___