Re: [NTG-context] Grid typesetting: aligning section to top of textarea
Am 14.05.2013 um 02:51 schrieb Sietse Brouwer sbbrou...@gmail.com: Dear list, I am making a foray into grid typesetting, and would like to align the top of my (possibly multi-line) section titles with the top of the textarea. I thought I could do that with \setuphead[subject][grid={broad,high}], but this is not working. I have tried nearly every other combination of grid keywords, and then tried them again with the subject wrapped in a framed. 1. Use the command key to apply the frame to the heading and not textcommand. 2. Apply the style for the title with \setuphead. 3. The location key for \framed doesn’t accept lists (e.g. location={top,hanging}), only single arguments are possible. \define[2]\SubjectCommand {\startframed[align=flushleft,location=top]% #2 \stopframed} \setuphead[subject] [header=high, page=yes, style=AntykwaChapter, grid=low, alternative=command, command=\SubjectCommand] 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] footnote rollover message in PDFs (with interaction)
The PDFs that I produce are now being read on a number different platforms, some with very small screens. So, in the case of footnotes at least, I was wondering if there was a way to produce PDFs such that when the cursor passes over the footnote call, the popup message includes the entire footnote and not just “Go to page xx”. 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 ___
[NTG-context] MPLibrabray txt broken!?
Hi All, Hans, I want to use build_parshape and shapetext with the latest standalone ConTeXt ver: 2013.05.12 22:16 MKIV beta fmt: 2013.5.13 int: english/english with the Example below I get a small box with the top part of a T in it. Interresting enough the example works with the TexLive 2012 version! Running with latest standalone the following files are created: -rw-r--r-- 1 staff 14410 14 Mai 13:59 test2.log -rw-r--r-- 1 staff 5132 14 Mai 13:59 test2.pdf -rw-r--r-- 1 staff634 14 Mai 13:59 test2.synctex.gz -rw-r--r--@ 1 staff899 14 Mai 13:37 test2.tex -rw-r--r-- 1 staff 8413 14 Mai 13:59 test2.tuc Using MkIV from TeXLive 2012 the following files are created: -rw-r--r-- 1 staff561 14 Mai 14:09 test2-mpgraph.mpd -rw-r--r-- 1 staff 19404 14 Mai 14:09 test2.log -rw-r--r-- 1 staff 9638 14 Mai 14:09 test2.pdf -rw-r--r-- 1 staff 3237 14 Mai 14:09 test2.synctex.gz -rw-r--r--@ 1 staff899 14 Mai 13:37 test2.tex -rw-r--r-- 1 staff 6079 14 Mai 14:09 test2.tuc And all is well! Goofy as I am I tried the standalone again, this works only partially because the text is not aligned properly. How can it be the file test2-mograph.mpd was used from the TexLive 2012 version! So something is astray! I do know that we are using a newer Metapost, but I assume the problem is the library or how the temporary files are generated or used. Any help would be nice. regards Keith. \useMPlibrary[txt] \startuseMPgraphic{shape} % Shape of the paragraph path p ; p := ((0,1)..(-1,0)..(1,0)--cycle) scaled 5cm ; build_parshape ( p, % shape path .5*\baselinedistance, % offset .5*\baselinedistance, % x offset .5*\baselinedistance, % y offset \baselinedistance, % distance between lines \strutheight, % height of a line \strutdepth, % depth of a line \strutheight % height of the first line ) ; % For visualization purposes only draw p ; \stopuseMPgraphic % For visualization purposes only \defineoverlay[shape][\useMPgraphic{shape}] \setupshapetexts% [bodyfont=10pt] \starttext \startshapetext[shape] \input knuth \endgraf \stopshapetext % The \type{background} is set only to visualize the parshape \startTEXpage[background=shape,offset=2mm] {\getshapetext} \stopTEXpage \stoptext___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Support for Thai in ConTeXt
On Tue, May 14, 2013 at 5:59 PM, Theppitak Karoonboonyanan theppi...@gmail.com wrote: On Tue, May 14, 2013 at 9:58 PM, luigi scarso luigi.sca...@gmail.com wrote: On Tue, May 14, 2013 at 4:16 PM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: I could also ask differently: suppose that a motivated Thai programmer would be willing to work on solving the problem properly. What would be the suggested solution? You can post also in the context ml, maybe there is some Thai user there . I am a Thai developer who works on Thai word segmentation tools and thailatex package. So, you can suggest to me. (Please Cc: me, I'm not in the mailing list.) I'm totally new to LuaTeX and Lua programming language. But I can learn necessary stuffs to get it done. With a quick search, I saw linebreak_filter callback in LuaTeX reference. Is that relevant to the problem? Or using external filter is already acceptable? Regards, -- Theppitak Karoonboonyanan http://linux.thai.net/~thep/ I Hope that someone can help here -- 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] Support for Thai in ConTeXt
On 5/14/2013 6:07 PM, luigi scarso wrote: I Hope that someone can help here as Mojca mentioned thai at bachotex i'll add the patterns as a start given specs, examples and time, adding support for thai to context shouldn't be too hard (assuming that there are users) 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] MPLibrabray txt broken!?
On 5/14/2013 2:23 PM, Keith J. Schultz wrote: Hi All, Hans, I want to use build_parshape and shapetext with the latest standalone ConTeXt ver: 2013.05.12 22:16 MKIV beta fmt: 2013.5.13 int: english/english with the Example below I get a small box with the top part of a T in it. Interresting enough the example works with the TexLive 2012 version! Running with latest standalone the following files are created: -rw-r--r-- 1 staff 14410 14 Mai 13:59 test2.log -rw-r--r-- 1 staff 5132 14 Mai 13:59 test2.pdf -rw-r--r-- 1 staff634 14 Mai 13:59 test2.synctex.gz -rw-r--r--@ 1 staff899 14 Mai 13:37 test2.tex -rw-r--r-- 1 staff 8413 14 Mai 13:59 test2.tuc Using MkIV from TeXLive 2012 the following files are created: -rw-r--r-- 1 staff561 14 Mai 14:09 test2-mpgraph.mpd -rw-r--r-- 1 staff 19404 14 Mai 14:09 test2.log -rw-r--r-- 1 staff 9638 14 Mai 14:09 test2.pdf -rw-r--r-- 1 staff 3237 14 Mai 14:09 test2.synctex.gz -rw-r--r--@ 1 staff899 14 Mai 13:37 test2.tex -rw-r--r-- 1 staff 6079 14 Mai 14:09 test2.tuc And all is well! Goofy as I am I tried the standalone again, this works only partially because the text is not aligned properly. How can it be the file test2-mograph.mpd was used from the TexLive 2012 version! So something is astray! I do know that we are using a newer Metapost, but I assume the problem is the library or how the temporary files are generated or used. some kind of initialization issue .. i uploaded a fix (crossed fingers) 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] footnote rollover message in PDFs (with interaction)
On 5/14/2013 1:46 PM, Alan Bowen wrote: The PDFs that I produce are now being read on a number different platforms, some with very small screens. So, in the case of footnotes at least, I was wondering if there was a way to produce PDFs such that when the cursor passes over the footnote call, the popup message includes the entire footnote and not just “Go to page xx”. i'm thinking of cooking up some support like that for ebook like applications but i'll wait till i run into a proper device (also, it needs support from the viewer; there are several solutions possible) ... i did a lot of that stuff over a decade ago but there waas never much interest in it (from publishers) 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] font trickery
Hi, I'm on-and-off working on the more technical font manual and in the process also check some old code i've laying around (deciding on what to include and not). I'm also revising the tracer styles. Which makes me wonder: are there specific additional features that one would like to see in context (mkiv only of course) with respect to font support? 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] MkIV problem+fix with \framed[location=depth / height / hanging]
Hi Hans, I believe that in MkIV some \framed[location=...] keys are not working, namely `depth`, `height`, and `hanging`. In MkIV these all place the bottom of the frame flush with the baseline, like [location=]. In MkII they behave more sensibly, as follows: * depth: place bottom of frame flush with bottom of the line (i.e. \strutdepth below baseline) * height: place top of frame flush with top of line * hanging: place top of frame flush with baseline Test code below, mkii and mkiv output attached. I have produced a fix for the code in pack-rul.mkiv [1], placed at the very bottom of this e-mail. It works; but it is a pure-bred example of cargo cult programming, i.e. lots of 'making it look right' and very little understanding, so you will probably want to check it. [1] http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/pack-rul.mkiv All the best, Sietse \setupcolors[state=start] \setupblackrules[depth=\strutdepth,height=\strutheight,width=1mm,color=red] \starttext \ruledhbox {A \framed[width=2cm,align=middle,location=] {location\\equals\\(nothing)}% \blackrule \framed[width=2cm,align=middle,location=depth] {location\\equals\\depth}% \blackrule \framed[width=2cm,align=middle,location=height] {location\\equals\\height}% \blackrule \framed[width=2cm,align=middle,location=hanging]{location\\equals\\hanging} B} \vskip2cm \ruledhbox {A \framed[width=2cm,align=middle,location=low]{location\\equals\\low} \framed[width=2cm,align=middle,location=line] {location\\equals\\line} \framed[width=2cm,align=middle,location=high] {location\\equals\\high} B} \vskip2cm \ruledhbox {A \framed[width=2cm,align=middle,location=bottom] {location\\equals\\bottom} \framed[width=2cm,align=middle,location=lohi] {location\\equals\\lohi} \framed[width=2cm,align=middle,location=middle] {location\\equals\\middle} \framed[width=2cm,align=middle,location=top]{location\\equals\\top} B} \stoptext --- This is the fixed code \installframedlocator \v!hanging % best with strut=no {} - {\dp\b_framed_normal\scratchdimen + {\scratchdimen\ht\b_framed_normal + \setbox\b_framed_normal\hbox{\lower\scratchdimen\box\b_framed_normal}% + \dp\b_framed_normal\scratchdimen \ht\b_framed_normal\zeropoint \hbox{\box\b_framed_normal}} \installframedlocator \v!depth {} - \ht\b_framed_normal\dimexpr\ht\b_framed_normal-\strutdp\relax + {\setbox\b_framed_normal\hbox{\lower\strutdp\box\b_framed_normal}% + \ht\b_framed_normal\dimexpr\ht\b_framed_normal-\strutdp\relax \dp\b_framed_normal\strutdp \hbox{\box\b_framed_normal}} \installframedlocator \v!height {} - {\dp\b_framed_normal\dimexpr\ht\b_framed_normal-\strutht\relax + {\scratchdimen\dimexpr \ht\b_framed_normal - \strutht \relax + \setbox\b_framed_normal\hbox{\lower\scratchdimen\box\b_framed_normal}% + \dp\b_framed_normal\dimexpr\ht\b_framed_normal-\strutht\relax \ht\b_framed_normal\strutht \hbox{\box\b_framed_normal}} mwe-framed-mkii.pdf Description: Adobe PDF document mwe-framed-mkiv.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV problem+fix with \framed[location=depth / height / hanging]
Am 14.05.2013 um 23:00 schrieb Sietse Brouwer sbbrou...@gmail.com: Hi Hans, I believe that in MkIV some \framed[location=...] keys are not working, namely `depth`, `height`, and `hanging`. In MkIV these all place the bottom of the frame flush with the baseline, like [location=]. In MkII they behave more sensibly, as follows: * depth: place bottom of frame flush with bottom of the line (i.e. \strutdepth below baseline) * height: place top of frame flush with top of line * hanging: place top of frame flush with baseline The reason why all the location alternatives don’t work is because the original \vbox for the content is converted to a \hbox which ignores the changed values (even though the changed values for the height/depth are used as seen at the surrounding box). The process to create a \hbox happens when the background is applied with: \def\pack_framed_add_background {\setbox\b_framed_normal\hbox % was vbox ... \egroup}} 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] font trickery
Hi Hans, On Tue, 14 May 2013 12:01:36 -0600, Hans Hagen pra...@wxs.nl wrote: I'm on-and-off working on the more technical font manual and in the process also check some old code i've laying around (deciding on what to include and not). I'm also revising the tracer styles. Which makes me wonder: are there specific additional features that one would like to see in context (mkiv only of course) with respect to font support? This may be beyond the scope of your current plans, but worth considering: It would be nice to have a mechanism where we can override/add opentype gsub and gpos features. Early on in the history of luatex we once had a mechanism that did this using FontForge's version of Adobe Feature Files. From what I understand, the AFF syntax is finally mature and supports all lookup types: http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html Or maybe we have our own syntax in lua, goodies etc. Anyway, a way to control/override opentype gsub and gpos behavior would be interesting. Even if a total controller is too ambitious/unwieldy, just being able to do a few basic gsub/gpos tricks may be useful for, e.g., bugs in the font. Anyway, something to think about. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] Makeup layout
Greetings list, A newbie question: how does one adjust the vertical position of text in a makeup block for a title page? It seems to go on the centre no matter what. The voffset and hoffset parameters appear to have no effect. I have heard that layers can be used. But there is no section on layers in the current reference manual. Where does one find information on this aspect of ConTeXt? Andrew ___ 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 ___