Re: [NTG-context] Zapf Dingbats font
On 3-6-2012 09:04, Alfredo Catalina wrote: Ok, thanks Luigi. This is how I sorted it out, hope it may help someone. It looks like I should write a typescript and a symbol definition file, but I new to this and don't know how to do it yet. This is a workaround for the meantime: - Download the free True Type font Zapf Dingbats BT from http://www.ufonts.com/fonts/zapf-dingbats-bt.html - You should have got the file ufonts.com_zapf-dingbats-bt-2.ttf or an EXE file -an installer- - In windows 7 it may be installed by clicking install -context menu, right mouse click- - Generate Context font database: mtxrun --script fonts --reload - Check it's been read: mtxrun --script fonts --list --all --pattern=zapf* - You should have several lines like zapfdingbatsbt zapfdingbatsitcbybtregular c:/windows/fonts/ufonts.com_zapf-dingbats-bt-2.ttf - Finally this is how I get the characters I need: \definefont[zapfdingbats][ufonts.com_zapf-dingbats-bt-2.ttf at 10pt] \starttext Testing: {\zapfdingbats \char109} %shadowed white circle \stoptext in the distrubution from the contextgarden \definefont[zapfdingbats][ZapfDingbats] should work as well Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] transluency/transparency
Hello, is it possible to somehow set transluency or transparency of several objects? The example should clarify, what I need: I have a template for company documents, which has some text, lines and graphics (external pdf or png) in its footer. Now I want to make the header be less visible than the rest of the page. Surely I can set a color of the text to gray and edit the image, but is there some other way? best regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] transluency/transparency
On Mon, 4 Jun 2012 10:33:14 +0200 Jan Pohanka xhpoha...@gmail.com wrote: Hello, is it possible to somehow set transluency or transparency of several objects? The example should clarify, what I need: I have a template for company documents, which has some text, lines and graphics (external pdf or png) in its footer. Now I want to make the header be less visible than the rest of the page. Surely I can set a color of the text to gray and edit the image, but is there some other way? best regards Jan See page 204, section 8.5 of the metafun book loadfigure gracht.mp number 1 scaled .5 ; addto currentpicture also (currentpicture softened .8) shifted (bbwidth(currentpicture)+.5cm,0) ; (this example draws the picture alongside its softened copy.) Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Zapf Dingbats font
On Mon, Jun 4, 2012 at 10:01 AM, Hans Hagen pra...@wxs.nl wrote: in the distrubution from the contextgarden \definefont[zapfdingbats][**ZapfDingbats] should work as well Hans mmm, does it mean that a ZapfDingbats.* font file is present in the distribution?? ___ 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] ebook from project: hyphenation lost
Ahoi, I never managed to get a proper eBook from a project, the content was mostly missing, a whole while even \setupbackend[export=yes] led to an error. At least that I don’t get an error any more, I’ll try to debug the missing content later. One bug I can nail down is: As soon as I add \setupbackend[export=yes] to my environment, all hyphens are lost! I.e. hyphenation takes place, but there’s no hyphen (an no space left for it). That doesn’t happen in a single document, so I can’t provide a minimal example. (Yesterday’s beta MkIV on OSX-Intel) Greetlings, Hraban ___ 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] ebook from project: hyphenation lost
Hello, I followed Marco's description on tex.sx with quite good results. http://tex.stackexchange.com/q/43052/8631 He explicitly states: Hyphenation is also present. ConTeXt inserts soft hyphen (0x00AD) characters where hyphenation is possible, which enables the browser to justify the paragraphs. Although a quick check of my xml file shows, that there is no hyphenation in Safari and there are no 0x00AD characters I can find with a Hex-Editor. Maybe you could try with different viewers/browsers, because if there is an 0x00AD in the source, doesn't the viewer have to take care of the actual hyphenation? Andy On 04.06.2012, at 10:55, Henning Hraban Ramm wrote: Ahoi, I never managed to get a proper eBook from a project, the content was mostly missing, a whole while even \setupbackend[export=yes] led to an error. At least that I don’t get an error any more, I’ll try to debug the missing content later. One bug I can nail down is: As soon as I add \setupbackend[export=yes] to my environment, all hyphens are lost! I.e. hyphenation takes place, but there’s no hyphen (an no space left for it). That doesn’t happen in a single document, so I can’t provide a minimal example. (Yesterday’s beta MkIV on OSX-Intel) Greetlings, Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Zapf Dingbats font
On 4-6-2012 10:52, Alfredo Catalina wrote: mmm, does it mean that a ZapfDingbats.* font file is present in the distribution?? yes, but under the name 'uzdr' Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Zapf Dingbats font
On Mon, Jun 4, 2012 at 11:27 AM, Hans Hagen pra...@wxs.nl wrote: On 4-6-2012 10:52, Alfredo Catalina wrote: mmm, does it mean that a ZapfDingbats.* font file is present in the distribution?? yes, but under the name 'uzdr' There is the typescript, but not the afm/pfb/pfm files; they are at the ctan ( see for example http://www.tex.ac.uk/ctan/fonts/urw/base35/ ) -- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ebook from project: hyphenation lost
Am 2012-06-04 um 11:14 schrieb Andy Thomas: Hello, I followed Marco's description on tex.sx with quite good results. http://tex.stackexchange.com/q/43052/8631 Thanks for the link! He explicitly states: Hyphenation is also present. ConTeXt inserts soft hyphen (0x00AD) characters where hyphenation is possible, which enables the browser to justify the paragraphs. Although a quick check of my xml file shows, that there is no hyphenation in Safari and there are no 0x00AD characters I can find with a Hex-Editor. Maybe you could try with different viewers/browsers, because if there is an 0x00AD in the source, doesn't the viewer have to take care of the actual hyphenation? I meant hyphenation in the PDF; I don’t yet care about the XML/XHTML, since it’s broken/incomplete anyway. (I need to get the PDF to the printer first, then care about the eBook, just ried to include the setup from start.) Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] transluency/transparency
See page 204, section 8.5 of the metafun book loadfigure gracht.mp number 1 scaled .5 ; addto currentpicture also (currentpicture softened .8) shifted (bbwidth(currentpicture)+.5cm,0) ; thank you for the hint, but it seems, that softened does not work for externalfigure \startMPcode draw externalfigure logo.pdf scaled 5cm softened 0.5; \stopMPcode inserted text ...lable:=true; ]===], false)} \meta_process_graphic ...!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \m... regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ 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] Zapf Dingbats font
On 4-6-2012 11:33, luigi scarso wrote: On Mon, Jun 4, 2012 at 11:27 AM, Hans Hagenpra...@wxs.nl wrote: On 4-6-2012 10:52, Alfredo Catalina wrote: mmm, does it mean that a ZapfDingbats.* font file is present in the distribution?? yes, but under the name 'uzdr' There is the typescript, but not the afm/pfb/pfm files; they are at the ctan ( see for example http://www.tex.ac.uk/ctan/fonts/urw/base35/ ) hm, they are supposed to be in the distribution Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Zapf Dingbats font
On Mon, Jun 4, 2012 at 11:50 AM, Hans Hagen pra...@wxs.nl wrote: On 4-6-2012 11:33, luigi scarso wrote: On Mon, Jun 4, 2012 at 11:27 AM, Hans Hagenpra...@wxs.nl wrote: On 4-6-2012 10:52, Alfredo Catalina wrote: mmm, does it mean that a ZapfDingbats.* font file is present in the distribution?? yes, but under the name 'uzdr' There is the typescript, but not the afm/pfb/pfm files; they are at the ctan ( see for example http://www.tex.ac.uk/ctan/fonts/urw/base35/ ) hm, they are supposed to be in the distribution I haven't them in my standalone, and I don't see them in http://dl.contextgarden.net/modules/ -- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ebook from project: observations/oddities
(Yesterday’s beta in suite=minimals, OSX-Intel) With \setupbackend[export=example.xml,xhtml=example.xhtml,css=example.css] in my project’s environment, I get both example.xml and example.xhtml (as well as example- images.css and example-style.css), starting with the same content (up to line 857 in my case), but the .xhtml stops after the first \stoppart, while the .xml contains all four parts. mtxrun --script epub --make example insists on copying a file named exactly example.xhtml to the ePub tree. Using \setupbackend[export=example.xhtml,xhtml=test.xhtml,css=example.css] both example.xhtml and test.xhtml are identical, complete *and* both copied to the epub tree (ToC refers to test.xhtml, the other is ignored). Since none of my browsers or epub readers likes this XML format, I guess I’ll need to apply a XSL transformation to create HTML. Ok... Looking at mtx-epub.lua I understand why none of my setups (i.e. author, title) has any effect on the output. Seems like we need to fix that manually - unzip the epub, fix it, re- pack... But create the ToC manually?? Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] ebook from project: observations/oddities
I might not be able to help you with an automated output using context, but I can recommend a very good book on e-book creation. Elizabeth Castro (ISBN 978-0321734686) discusses a sample e-book line by line of the source code, how to create it, validate it (http://code.google.com/p/epubcheck/) etc. You can find the sources of her sample e-book online at: http://www.elizabethcastro.com/epub/examples/ . There is some other useful stuff, too. I just started to implement some of the info I gathered in my context module for my book project, so I cannot give concrete advise,yet :( But I made the TOC etc. 'by hand' to to try if it would work with the validator, kindle, calibre and so on. Just the xhtml was automatically created (and tweaked a little). It does not take as much time as it seems, we were able to have a validated e-pub with a sample chapter in a day. Hope this help a little, Andy On 04.06.2012, at 12:24, Henning Hraban Ramm wrote: (Yesterday’s beta in suite=minimals, OSX-Intel) With \setupbackend[export=example.xml,xhtml=example.xhtml,css=example.css] in my project’s environment, I get both example.xml and example.xhtml (as well as example-images.css and example-style.css), starting with the same content (up to line 857 in my case), but the .xhtml stops after the first \stoppart, while the .xml contains all four parts. mtxrun --script epub --make example insists on copying a file named exactly example.xhtml to the ePub tree. Using \setupbackend[export=example.xhtml,xhtml=test.xhtml,css=example.css] both example.xhtml and test.xhtml are identical, complete *and* both copied to the epub tree (ToC refers to test.xhtml, the other is ignored). Since none of my browsers or epub readers likes this XML format, I guess I’ll need to apply a XSL transformation to create HTML. Ok... Looking at mtx-epub.lua I understand why none of my setups (i.e. author, title) has any effect on the output. Seems like we need to fix that manually - unzip the epub, fix it, re-pack... But create the ToC manually?? Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ebook from project: hyphenation lost
On 2012-06-04 Andy Thomas andytho...@web.de wrote: He explicitly states: Hyphenation is also present. ConTeXt inserts soft hyphen (0x00AD) characters where hyphenation is possible, which enables the browser to justify the paragraphs. Although a quick check of my xml file shows, that there is no hyphenation in Safari and there are no 0x00AD characters I can find with a Hex-Editor. Don't inspect the XML rendered by the browser. Open the XML file directly with an editor. I don't know if the soft hyphens survive being digested by my mail agent, but the source contains 0x00AD characters: The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. Maybe you could try with different viewers/browsers, because if there is an 0x00AD in the source, doesn't the viewer have to take care of the actual hyphenation? Exactly, and it works fine here, even with an ancient version of Firefox (4.0) Marco ___ 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] transluency/transparency
On Jun 4, 2012, at 5:45 AM, Jan Pohanka wrote: See page 204, section 8.5 of the metafun book loadfigure gracht.mp number 1 scaled .5 ; addto currentpicture also (currentpicture softened .8) shifted (bbwidth(currentpicture)+.5cm,0) ; thank you for the hint, but it seems, that softened does not work for externalfigure \startMPcode draw externalfigure logo.pdf scaled 5cm softened 0.5; \stopMPcode inserted text ...lable:=true; ]===], false)} \meta_process_graphic ...!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \m... regards Jan What about drawing a translucent white rectangle over the graphic? This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ 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] multi-page floats
Am 2012-05-31 um 23:48 schrieb Hans Hagen: On 31-5-2012 20:25, Henning Hraban Ramm wrote: Ok, some days later I'm still not where I'd like to be (and my deadline is overdue). Let’s resume: A running text is to be interrupted by spans of 3 pages. Postponing (\startpostponing) works well for that, but I need to switch off page numbering on two of that 3 pages - as far as I tried, \setuppagenumbering as well as \setuppagenumber doesn’t work within postponed sections. Further, these pages contain full-page pictures, i.e. I need them bleeding off the paper. Normally, \setlayer works well for that, but I couldn’t get layers working within postponed sections. Since I need these interruptions several times in a very similar way, I \def’ed that postponing stuff as a macro, but get errors that point to expanding problems (I never get those). I’d appreciate some pointers in which direction I should think/investigate further. E.g. - are there alternatives to postponing? perhaps multi-page floats (but at defined pages)? - is there a possibility for bleeding full-page pictures without layers? - can it work at all to change page numbering within a postponed page span? maybe \startmakeup[page] page a \stopmakeup Good hint. I setup: \definemakeup[rightpage][page=right] \definemakeup[leftpage][page=left] and get empty right/left pages from within my macro. Can I control if the content after a markup starts on a right or left page? Further, if I try to use postponing in a macro, I get errors: --- *** --- Runaway argument? \dorecur\section{K\ETC. \stoppostponing ! File ended while scanning use of \buff_gobble. system tex error on line 0 in file : File ended while scanning use of \buff_gobble ... empty file inserted text \par * ./postpone \stoptext --- *** --- I guess I need to unexpand something? My example: --- *** --- \def\TestPostpone#1{ \startpostponing[#1] \strut \page \stoppostponing } \starttext \TestPostpone{3} \dorecurse{30}{ \section{Knuth \recurselevel} \input knuth } \stoptext --- *** --- Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Multiple layers question
Hi, I'd like to put a few things, placed absolutely on the page. I thought that layers are a good tool, but I can't make them do what I want. Assume that I want to have Some text near the top of the page and a huge X centered. I did this: \setuppagenumbering[state=stop] \setupbackgrounds[page][background=bkg] \definelayer[bkg][x=0mm,y=0mm,width=\paperwidth,height=\paperheight] \setlayer[bkg] {\framed[frame=off,width=\paperwidth,height=50mm] {\switchtobodyfont[10mm]\tt Some text}} \setlayer[bkg] {\framed[frame=off,width=\paperwidth,height=\paperheight] {\switchtobodyfont[240mm]\tt X}} \starttext \null \stoptext but only one layer appears (the Some text one). What am I doing wrong? Is there a better way to do it? TIA -- Marcin Borkowski http://mbork.pl ___ 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] Multiple layers question
Am 04.06.2012 um 14:06 schrieb Marcin Borkowski: Hi, I'd like to put a few things, placed absolutely on the page. I thought that layers are a good tool, but I can't make them do what I want. Assume that I want to have Some text near the top of the page and a huge X centered. I did this: \setuppagenumbering[state=stop] \setupbackgrounds[page][background=bkg] \definelayer[bkg][x=0mm,y=0mm,width=\paperwidth,height=\paperheight] \setlayer[bkg] {\framed[frame=off,width=\paperwidth,height=50mm] {\switchtobodyfont[10mm]\tt Some text}} \setlayer[bkg] {\framed[frame=off,width=\paperwidth,height=\paperheight] {\switchtobodyfont[240mm]\tt X}} \starttext \null \stoptext but only one layer appears (the Some text one). What am I doing wrong? Is there a better way to do it? Load a font or move the \setlayer commands after \starttext. \setupbackgrounds[page][background=bkg] \definelayer[bkg][x=0mm,y=0mm,width=\paperwidth,height=\paperheight] \setupbodyfont[modern] \setlayerframed[bkg][frame=off,width=\paperwidth,height=50mm]{\definedfont[Mono at 10mm]Some text} \setlayerframed[bkg][frame=off,width=\paperwidth,height=\paperheight]{\definedfont[Mono at 240mm]X} \starttext \page[empty] \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Multiple layers question
On 2012-06-04 Marcin Borkowski mb...@wmi.amu.edu.pl wrote: I'd like to put a few things, placed absolutely on the page. I thought that layers are a good tool, They are :) Assume that I want to have Some text near the top of the page and a huge X centered. \setupbodyfont [lmodern] \setuppagenumbering [state=stop] \definefont [bkgfont] [Mono at 240mm] \setupbackgrounds [page] [background=bkg] \definelayer [bkg] \setlayerframed [bkg] [frame=off, height=50mm, width=\paperwidth, foregroundstyle=\ttx] {Some text} \setlayerframed [bkg] [frame=off, width=\paperwidth, foregroundstyle=\bkgfont] {X} \starttext\null \stoptext Since font loading is delayed until \starttext, you need to load a font when you set up your layers. Marco ___ 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] Multiple layers question
Dnia 2012-06-04, pon o godzinie 14:33 +0200, Wolfgang Schuster pisze: Load a font or move the \setlayer commands after \starttext. Thanks a lot! But why is that so? Wolfgang -- Marcin Borkowski http://mbork.pl ___ 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] Multiple layers question
On 2012-06-04 Marcin Borkowski mb...@wmi.amu.edu.pl wrote: Cześć Marcin, Dnia 2012-06-04, pon o godzinie 14:33 +0200, Wolfgang Schuster pisze: Load a font or move the \setlayer commands after \starttext. Thanks a lot! But why is that so? Until some years ago the latin modern font was always automatically loaded, regardless of the users choice of font. Font loading takes a considerable amount of time (check the stats at the end of a context run). This led to the question: “Why start loading a big, complex font like latin modern before we know which font the user actually wants to use and waste several seconds on it, just to start loading the users choice afterwards?” The answer was: ”We delay loading the font until we know which font the user wants to use. If the user doesn't tell us, then we fall back to latin modern.” The body font is set up in the setup area (the part above \starttext). That, in turn, means that when having reached \starttext, the users choice of font is known and can be loaded. It is more efficient if a font other then latin modern is used. One drawback is that typeset text in the setup area has no font setup and will fall back to latin modern mono. Usually you don't typeset text in the setup area. However, layers are an exception and you need to set up the body font beforehand. Marco ___ 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] transluency/transparency
On Mon, Jun 4, 2012 at 2:02 PM, Rogers, Michael K wrote: On Jun 4, 2012, at 5:45 AM, Jan Pohanka wrote: See page 204, section 8.5 of the metafun book loadfigure gracht.mp number 1 scaled .5 ; addto currentpicture also (currentpicture softened .8) shifted (bbwidth(currentpicture)+.5cm,0) ; thank you for the hint, but it seems, that softened does not work for externalfigure \startMPcode draw externalfigure logo.pdf scaled 5cm softened 0.5; \stopMPcode inserted text ...lable:=true; ]===], false)} \meta_process_graphic ...!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \m... regards Jan What about drawing a translucent white rectangle over the graphic? I wanted to say that Hans already implemented some code to add transparency (or even transparent masks) to bitmap images, but I'm still not sure how to use that code. However, drawing a transparent white rectangle over the bitmap graphic would definitely be the easiest approach if you don't need to see though the image. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Multiple layers question
On 4-6-2012 15:41, Marco wrote: On 2012-06-04 Marcin Borkowskimb...@wmi.amu.edu.pl wrote: Cześć Marcin, Dnia 2012-06-04, pon o godzinie 14:33 +0200, Wolfgang Schuster pisze: Load a font or move the \setlayer commands after \starttext. Thanks a lot! But why is that so? Until some years ago the latin modern font was always automatically loaded, regardless of the users choice of font. Font loading takes a considerable amount of time (check the stats at the end of a context run). This led to the question: “Why start loading a big, complex font like latin modern before we know which font the user actually wants to use and waste several seconds on it, just to start loading the users choice afterwards?” The answer was: ”We delay loading the font until we know which font the user wants to use. If the user doesn't tell us, then we fall back to latin modern.” The body font is set up in the setup area (the part above \starttext). That, in turn, means that when having reached \starttext, the users choice of font is known and can be loaded. It is more efficient if a font other then latin modern is used. One drawback is that typeset text in the setup area has no font setup and will fall back to latin modern mono. Usually you don't typeset text in the setup area. However, layers are an exception and you need to set up the body font beforehand. a good text for the wiki (and also for the font manual) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] System font searching suddenly stopped
On 4-6-2012 18:53, Marco Pallante wrote: Hans, sorry if I bother, but I still can't load the font. I'm using TL12 pretest, installed with the ConTeXt scheme and nothing else. Going further, I checked other system fonts and I found that ConTeXt doesn't load any of them. No Delicious/Cantarel/DejaVu and so on (I'm on Debian). mtxrun --script font --list --all only shows me those fonts inside the texmf tree. I followed exactly the instructions in http://wiki.contextgarden.net/Fonts_in_LuaTeX#Building_the_font_database but it doesn't work. Moreover, I tried to put one of these fonts inside the texmf tree (the delicious), both in /usr/local/texlive/texmf-local/fonts/opentype/public/exljbris and /usr/local/texlive/2012/texmf-dist/fonts/opentype/public/exljbris, I rebuild the ls-R with texhash, then the font list in ConTeXt with mtxrun --script font --reload, I also regenerated the ConTeXt data with context --generate, but the delicious font doesn't appear in the list. I really don't know what to do. Can you give me a little help? \starttypescript [serif] [delicious] [name] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:deliciousroman] [features=default] \definefontsynonym [SerifBold] [file:deliciousbold] [features=default] \definefontsynonym [SerifItalic] [file:deliciousitalic] [features=default] \definefontsynonym [SerifBoldItalic] [file:deliciousbolditalic] [features=default] \stoptypescript \starttypescript [delicious] \definetypeface [delicious] [rm] [serif] [delicious] [default] \definetypeface [delicious] [tt] [mono] [dejavu][default] \definetypeface [delicious] [mm] [math] [xits] [default] \stoptypescript \setupbodyfont[delicious] \starttext \input ward \stoptext the regular font is delicious-roman which might confuse your setup Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] System font searching suddenly stopped
Am 04.06.2012 um 19:55 schrieb Hans Hagen: On 4-6-2012 18:53, Marco Pallante wrote: Hans, sorry if I bother, but I still can't load the font. I'm using TL12 pretest, installed with the ConTeXt scheme and nothing else. Going further, I checked other system fonts and I found that ConTeXt doesn't load any of them. No Delicious/Cantarel/DejaVu and so on (I'm on Debian). mtxrun --script font --list --all only shows me those fonts inside the texmf tree. I followed exactly the instructions in http://wiki.contextgarden.net/Fonts_in_LuaTeX#Building_the_font_database but it doesn't work. Moreover, I tried to put one of these fonts inside the texmf tree (the delicious), both in /usr/local/texlive/texmf-local/fonts/opentype/public/exljbris and /usr/local/texlive/2012/texmf-dist/fonts/opentype/public/exljbris, I rebuild the ls-R with texhash, then the font list in ConTeXt with mtxrun --script font --reload, I also regenerated the ConTeXt data with context --generate, but the delicious font doesn't appear in the list. I really don't know what to do. Can you give me a little help? \starttypescript [serif] [delicious] [name] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:deliciousroman] [features=default] \definefontsynonym [SerifBold] [file:deliciousbold] [features=default] \definefontsynonym [SerifItalic] [file:deliciousitalic] [features=default] \definefontsynonym [SerifBoldItalic] [file:deliciousbolditalic] [features=default] \stoptypescript My typescripts package in the minimals have support for the delicious font but I defined it as sans. 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 ___
Re: [NTG-context] Math other issues for TL 2012
On Fri, Jun 01, 2012 at 12:54:11PM +0200, Mojca Miklavec wrote: Hello, With TL freeze that is probably going to happen tomorrow (plus a few days of grace period): what is the current state of problems with math fonts, and possibly any other issues (apart from the known crash on mipsel armel)? Is there anything else that doesn't work in minimals, but should be high on priority list to fix? There is the issue with XITS italic correction: http://www.ntg.nl/pipermail/ntg-context/2012/067237.html but no answer from Hans yet. Regards, Khaled ___ 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] setupcaptions stopper and separator
Hi all, while trying to figure out all the functions that setupcaptions has, I stumbled trying to make stopper and separator work. MnWE: \useMPlibrary[dum] \starttext \section{One} \setupcaptions [figure] [way=bysection,prefixsegments=section,separator={A},stopper={B},suffix={C}] \startplacefigure[title={A rectangle with a caption. Not very interesting.},reference=fig1] \externalfigure[dummy][width=0.5\textwidth] \stopplacefigure \in{Figure}[fig1] \stoptext As far as I understand it, the separator changes the dot between the section and the figure number and the stopper is placed right after the figure number and used in references as well (which is different from suffix). Is that correct? Andy ___ 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] System font searching suddenly stopped
On 4-6-2012 20:01, Wolfgang Schuster wrote: \definefontsynonym [Serif] [file:deliciousroman] [features=default] My typescripts package in the minimals have support for the delicious font but I defined it as sans. So, what is it .. a sans roman ? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Alignment in \framed
Hi, I'd like to have a big \framed with a small text, positioned at the bottom left corner. I tried something like this: \starttext \framed[width=100mm,height=100mm,align={bottom,left}]{text} \stoptext but text appears in the exact opposite corner. What am I doing wrong? TIA -- Marcin Borkowski http://mbork.pl ___ 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] Alignment in \framed
On 4-6-2012 23:15, Marcin Borkowski wrote: Hi, I'd like to have a big \framed with a small text, positioned at the bottom left corner. I tried something like this: \starttext \framed[width=100mm,height=100mm,align={bottom,left}]{text} \stoptext but text appears in the exact opposite corner. What am I doing wrong? left == raggedleft you can use flushright - 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 ___
Re: [NTG-context] Alignment in \framed
Dnia 2012-06-04, pon o godzinie 23:26 +0200, Hans Hagen pisze: On 4-6-2012 23:15, Marcin Borkowski wrote: Hi, I'd like to have a big \framed with a small text, positioned at the bottom left corner. I tried something like this: \starttext \framed[width=100mm,height=100mm,align={bottom,left}]{text} \stoptext but text appears in the exact opposite corner. What am I doing wrong? left == raggedleft you can use flushright Thanks a lot! But what about vertical alignment? -- Marcin Borkowski http://mbork.pl ___ 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] mtx-epub.lua
Hello all, while working on my ebook, I found the following issues in mtx-epub.lua. Once a successful run is done, there is no need to try the other zippers. It also gives error messages, although everything is already done. Fix is attached. Then, I got confused about the error messages appearing 3 times and found an issue in texlua of TL2011 (beta-0.70.1-2011062107) as well as the newest standalone (beta-0.70.2-2012052309). Consider the following example: print(os.execute(abcxyz)) This gives in Lua 5.2: sh: abcxyz: command not found nil exit127 But in texlua it does: sh: abcxyz: command not found 32512 This breaks the if conditional which becomes true, although there is no abcxyz command. If there are if statements such as this one in other places, they would not work as intended either. Andy 274,279c274,281 if os.execute(format(zipper.uncompressed,epubfile,mimetype)) then os.execute(format(zipper.compressed,epubfile,META-INF)) os.execute(format(zipper.compressed,epubfile,OPS)) done = zipper.name else list[#list+1] = zipper.name --- if not done then if os.execute(format(zipper.uncompressed,epubfile,mimetype)) then os.execute(format(zipper.compressed,epubfile,META-INF)) os.execute(format(zipper.compressed,epubfile,OPS)) done = zipper.name else list[#list+1] = zipper.name end ___ 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] mtx-epub.lua
On 4-6-2012 23:58, Andy Thomas wrote: 274,279c274,281 if os.execute(format(zipper.uncompressed,epubfile,mimetype)) then os.execute(format(zipper.compressed,epubfile,META-INF)) os.execute(format(zipper.compressed,epubfile,OPS)) done = zipper.name else list[#list+1] = zipper.name --- if not done then if os.execute(format(zipper.uncompressed,epubfile,mimetype)) then os.execute(format(zipper.compressed,epubfile,META-INF)) os.execute(format(zipper.compressed,epubfile,OPS)) done = zipper.name else list[#list+1] = zipper.name end As we give a list of zippers on failure, the following might be better: local done = false for i=1,#zippers do local zipper = zippers[i] if os.execute(format(zipper.uncompressed,epubfile,mimetype)) then os.execute(format(zipper.compressed,epubfile,META-INF)) os.execute(format(zipper.compressed,epubfile,OPS)) done = zipper.name break end end lfs.chdir(..) if done then application.report(epub archive made using %s: %s,done,file.join(epubpath,epubfile)) else local list = { } for i=1,#zippers do list[#list+1] = zipper.name end application.report(no epub archive made, install one of: %s,concat(list, )) end (I will look into the os.execute later .. remind me if needed.) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Alignment in \framed
Dnia 2012-06-04, pon o godzinie 23:31 +0200, Marcin Borkowski pisze: Dnia 2012-06-04, pon o godzinie 23:26 +0200, Hans Hagen pisze: On 4-6-2012 23:15, Marcin Borkowski wrote: Hi, I'd like to have a big \framed with a small text, positioned at the bottom left corner. I tried something like this: \starttext \framed[width=100mm,height=100mm,align={bottom,left}]{text} \stoptext but text appears in the exact opposite corner. What am I doing wrong? left == raggedleft you can use flushright Thanks a lot! But what about vertical alignment? OK, I've got it! [top=\vss,bottom=] -- Marcin Borkowski http://mbork.pl ___ 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] Alignment in \framed
On 2012-06-04 Marcin Borkowski mb...@wmi.amu.edu.pl wrote: What am I doing wrong? left == raggedleft you can use flushright Thanks a lot! But what about vertical alignment? \framed[width=100mm,height=100mm,align={low,flushleft}]{text} I don't know if the alignment key “bottom” is even supported. At least it doesn't seem to be documented anywhere. Marco ___ 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 ___