Re: [NTG-context] \completepublications in component creates wrong hyperlinks

2013-08-06 Thread Marco Patzer
On 2013–08–06 Hans Hagen wrote: > it's a bit more general ... i changed something in the beta and the > next seems to work now It's fixed, indeed. thanks Marco signature.asc Description: Digital signature ___ If yo

Re: [NTG-context] Persian digits in math formulas

2013-08-15 Thread Marco Patzer
On 2013–08–15 Mingranina Gingranina wrote: > By the way, I couldn't find "bidi-001.tex" on ConTeXt Site, would > you please let me know where can I get it? It's here: http://pragma-ade.com/context/latest/cont-tst.7z Marco _

Re: [NTG-context] [***SPAM***] trouble with kerncharacters

2013-08-16 Thread Marco Patzer
On 2013–08–17 Dmitriy Tokarev wrote: > I noticed that after the command \kerncharacters, I can not use > the normal sequence "---" for em-dash. Is there any work around of > this effect? This is expected, since \kerncharacters breaks ligatures and the --- → — transformation is implemented using t

Re: [NTG-context] Em dash using Hoefler

2013-08-20 Thread Marco Patzer
On 2013–08–19 Martin Moncrieffe wrote: > Hopefully, this is the correct list for this question. I'm trying > to typeset documents using the font Hoefler on MacOSX (10.8.4) > with ConTeXt 2013.05.28 from the TeXlive 2013 distribution. All > works, but unfortunately, em dashes are not typeset corr

Re: [NTG-context] Em dash using Hoefler

2013-08-20 Thread Marco Patzer
On 2013–08–20 Marco Patzer wrote: > On 2013–08–19 Martin Moncrieffe wrote: > > > Hopefully, this is the correct list for this question. I'm trying > > to typeset documents using the font Hoefler on MacOSX (10.8.4) > > with ConTeXt 2013.05.28 from the TeXlive 2013

Re: [NTG-context] Em dash using Hoefler

2013-08-20 Thread Marco Patzer
On 2013–08–20 Martin Moncrieffe wrote: > Finder reports that my version of Hoefler is 8.0d2e1. This means we already have three different Hoefler versions in this thread. > […] shows the the em dash is present in the font. When I use a version with em dash, your example works here. Someone usin

Re: [NTG-context] Feature Request: define colour in relation to existing colour

2013-08-21 Thread Marco Patzer
On 2013–08–21 Hans Hagen wrote: > On 8/21/2013 2:25 AM, Thangalin wrote: > >Hi, > > > >What would it take to extend \definecolor so that: > > > > \definecolor[ColourA][ColourB][t=0.5, a=1] > > > >defines a new colour (ColourB) based on an existing colour (ColourA)? > > > >I know that \definespot

Re: [NTG-context] Feature Request: showframe debugging

2013-08-21 Thread Marco Patzer
On 2013–08–20 Thangalin wrote: > \showframe > [ > labels=on, > measurements=on, > color=red, > ] > > Would produce an image similar to the attached, but with the black > lines drawn in the specified colour. > > Using labels=on would show the names of the items that can be changed > with \s

Re: [NTG-context] Systems of equations in ConTeXt?

2013-08-22 Thread Marco Patzer
On 2013–08–22 Xan wrote: > Simple question: what is the equivalent of: > > \begin{equation*} > \left\{ \begin{aligned} > 2x - 2y = 0\\ > 4x - 2y = 2 > \end{aligned} \right. > \end{equation*} > > in ConTeXt? \starttext \startformula \startcases \NC 2x - 2y = 0 \NR \NC 4x - 2y =

[NTG-context] MetaPost label direction prefix

2013-08-23 Thread Marco Patzer
Hi, what is the reason the label direction prefix variables (rt, bot, llft, etc.) are prefixed with mpfun_ in MkIV (mp-mlib.mpiv)? When new directional prefixes are being defined it fails when mplib is used unless the mpfun_ prefix is added. And likewise, code using the mpfun_ prefix fails on trad

Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-23 Thread Marco Patzer
On 2013–08–20 Henning Hraban Ramm wrote: > Seems like I didn’t need Russian lyrics since the removal of > Cyrillic glyphs from TeX Gyre. But now I do. What would you do? Is > there an illegal "complete" version around, Many commercial fonts cover the Cyrillic range. Pick whichever you like. > or

Re: [NTG-context] MetaPost label direction prefix

2013-08-23 Thread Marco Patzer
On 2013–08–23 Hans Hagen wrote: > >Is this prefix required? It breaks old code and required a branch in > >every new project. And I don't really see a reason for this > >incompatibility. Here is an example defining a new direction “foo”: > > The MpIV code has namespace protection. Why run traditi

Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-23 Thread Marco Patzer
On 2013–08–23 Henning Hraban Ramm wrote: > > This should get you started: > > > > \usemodule [simplefonts] > > \setmainfont [schola] > > \setmainfontfallback [dejavuserif] [range=cyrillic] > > > Thank you, that is what I was looking for. > How would I write the last line witho

Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-23 Thread Marco Patzer
On 2013–08–23 Marco Patzer wrote: > On 2013–08–23 Henning Hraban Ramm wrote: > > > > This should get you started: > > > > > > \usemodule [simplefonts] > > > \setmainfont [schola] > > > \setmainfontfallback [dejavuserif] [rang

[NTG-context] LuajitTeX fails to load font

2013-08-23 Thread Marco Patzer
Hi, the following example compiles fine with LuaTeX, but LuajitTeX fails to find the font. \setupalign[r2l] \definefont[Sheherazade][name:scheherazade*arabic at 18pt] \starttext \Sheherazade أهلا بالعالم! \stoptext fonts > defining > font with asked name 'scheherazade' is not found

Re: [NTG-context] beta

2013-08-23 Thread Marco Patzer
On 2013–08–24 Hans Hagen wrote: > On 8/23/2013 2:41 PM, Otared Kavian wrote: > >Hi Hans, > > > >This is a very nice feature indeed. > >Out of curiosity, I wondered whether it is possible to to have \placeinitial > >to work with \definefirstline, or a variant of it: that is not only have the > >f

Re: [NTG-context] LuajitTeX fails to load font

2013-08-23 Thread Marco Patzer
On 2013–08–24 Hans Hagen wrote: > Hard to say what is the issue but it is not a luajittex issue. We > don't do anything special, for instance jit is turned off because > there is no gain at all (actually with jit enabled, the run is > slower). I can confirm that. I did not find a real-world docum

Re: [NTG-context] beta

2013-08-24 Thread Marco Patzer
On 2013–08–24 Hans Hagen wrote: > On 8/24/2013 2:08 AM, Marco Patzer wrote: > >On 2013–08–24 Hans Hagen wrote: > > > >>On 8/23/2013 2:41 PM, Otared Kavian wrote: > >>>Hi Hans, > >>> > >>>This is a very nice feature indeed. > &g

Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-24 Thread Marco Patzer
On 2013–08–24 Wolfgang Schuster wrote: > You missed in the typescript the features setting for the main and also the > fallback font. I did, indeed. However, I'm unsure how to do it (I never needed to typeset Cyrillic and I can't even tell if it typesets correctly). The default features should b

Re: [NTG-context] MetaPost label direction prefix

2013-08-24 Thread Marco Patzer
On 2013–08–24 Hans Hagen wrote: > startplaincompatibity ; > > label("first", origin); > > pair laboff.foo ; laboff.foo := (.5,-1) ; > labxf.foo := labyf.foo := 1 ; > > label.foo("second", origin); > > stopplaincompatibity ; Brilliant! Thanks a lot. A fe

Re: [NTG-context] section headings on a grid: less space above?

2013-08-24 Thread Marco Patzer
On 2013–08–23 Lars Huttar wrote: > \setuphead[subsection][number=no,style=it,grid=top] Add before={\blank[line]} Marco signature.asc Description: Digital signature ___ If your question is of interest to others a

Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-24 Thread Marco Patzer
On 2013–08–24 Wolfgang Schuster wrote: > I can’t reproduce your problem with the features key. I was surprised that your example was running here, and I noticed that a space makes all the difference: %% fails \definefontsynonym [Serif] [file:texgyrescholaregular] [features=default, fallback

[NTG-context] Unexpanded texdefinition produces “Undefined control sequence”

2013-08-25 Thread Marco Patzer
Hi, the following example produces an “Undefined control sequence” error. If \def is used instead of \starttexdefinition then there is no error. Why? \starttexcode \installcommandhandler{foo}{foo}{foo} \appendtoks \setuevalue{start\currentfoo}{\foo@start[\currentfoo]}%% \setuevalue{stop\curr

Re: [NTG-context] Unexpanded texdefinition produces “Undefined control sequence”

2013-08-25 Thread Marco Patzer
On 2013–08–25 Wolfgang Schuster wrote: > The \starttexdefintion command looks for the “unexpanded” keyword > only when you apply also a argument but not when the arguments > are missing, i.e. Thanks for the explanation. Is that a bug or expected behaviour? I think it's odd that \unexpanded\def

Re: [NTG-context] Typesetting Classical Arabic Poetry

2013-08-26 Thread Marco Patzer
On 2013–08–26 J. R. Schmid wrote: > I've played around with your module and ran into some problems > which may have been due to my inexperiencedness with ConTeXt > (rupturing of ligatures, at least with Scheherazade and > inconsistent line height). Marco has been helping me though, and > it looks

Re: [NTG-context] Minimal word-distance?

2013-08-26 Thread Marco Patzer
On 2013–08–26 "H. Özoguz" wrote: > is it possible to declare explicit the minimal allowed > word-distance? \starttext \spaceskip=1ex plus 1ex minus .2ex \input knuth \stoptext Marco signature.asc Description: Digital signature ___

Re: [NTG-context] [***SPAM***] Re: Minimal word-distance?

2013-08-26 Thread Marco Patzer
On 2013–08–26 "H. Özoguz" wrote: > >\starttext > > \spaceskip=1ex plus 1ex minus .2ex > > \input knuth > >\stoptext > > > >Marco > > That simply overrides protrusion and justification, The following text has protrusion and is justified. \setuplayout [width=6cm] \definefontfeature [default]

Re: [NTG-context] Minimal word-distance?

2013-08-26 Thread Marco Patzer
On 2013–08–26 "H. Özoguz" wrote: > >The following text has protrusion and is justified. > > > >\setuplayout [width=6cm] > >\definefontfeature [default] [default] [protrusion=pure] > >\setupalign [hanging] > >\showframe > >\starttext > > \spaceskip=1ex plus 1ex minus .2ex > > \input knuth > >\s

Re: [NTG-context] Unexpanded texdefinition produces “Undefined control sequence”

2013-08-26 Thread Marco Patzer
On 2013–08–26 Hans Hagen wrote: > not a bug ... just not implemented (as it's pretty complex to do > that case efficiently at the tex end) > > anyhow, as it seems to be needed, i redid the code and now we have: > > […] > > so, three optional qualifiers (also in that order), so you'd better > wi

Re: [NTG-context] [***SPAM***] Continuous preview

2013-08-27 Thread Marco Patzer
On 2013–08–27 "H. Özoguz" wrote: > For LaTex there exists a tool, named "latexmk", which allows a > "preview continuous mode", that is to update the compiled pdf > automatically. It is really very helpful! I don't know latexmk, but updating the pdf is a feature of the pdf reader, not of context.

Re: [NTG-context] [***SPAM***] Continuous preview

2013-08-27 Thread Marco Patzer
On 2013–08–27 Marco Patzer wrote: > while true do > inotifywait --event modify somefile.tex; context --batchmode somefile.tex > done Better: file='somefile.tex' while inotifywait --event modify "$file"; do context --batchmode "$

Re: [NTG-context] Beamer block - like frame definition?

2013-08-28 Thread Marco Patzer
On 2013–08–28 seasoul wrote: > How to define a customized frame with the title (of the frame) and the > contents separated. > > My intention is to use some function like the block environment in beamer. Some time ago I wrote custom presentation module¹ which implemented those kind of blocks. I i

Re: [NTG-context] Footnotes italic or normal? And BEFORE for footnotes

2013-09-06 Thread Marco Patzer
On 2013–09–06 "H. Özoguz" wrote: > \starttext > {\it This was\footnote{And actually is.} my way of typesetting.} > Is\footnote{Another fn.} this not beautiful? > \stoptext > > You see, the first number is italic, the second normal. How can I > force ALL fn-numbers to appear in normal style, indep

Re: [NTG-context] Automatic space before question mark

2013-09-06 Thread Marco Patzer
On 2013–09–06 "H. Özoguz" wrote: > I want to set before all question marks of a large document one > "\narrownobreakspace". Set up the character spacing for the question mark. No changes to the markup required. \definecharacterspacing [MySpacing] \setupcharacterspacing [MySpacing] [\numbe

Re: [NTG-context] Automatic space before question mark

2013-09-06 Thread Marco Patzer
On 2013–09–06 "H. Özoguz" wrote: > Thanks Marco and Wolfgang! You should thank Hans for implementing all these features. > How to define before ? and ! a 0.1 leftspace, but before the > combination ?! only ONE 0.1 leftdistance - and not such a distance > before the ! for this case? The simplest

Re: [NTG-context] captions in float combinations

2013-09-08 Thread Marco Patzer
On 2013–09–08 Robert Blackstone wrote: > In my project I have all figure captions located above the figure. > How can I move also these subcaptions to the top, to a position > just below the main caption? As far as I can see, this is not supported by the combination mechanism because the captions

Re: [NTG-context] printed ConTeXt manuals

2013-09-08 Thread Marco Patzer
On 2013–09–08 Henning Hraban Ramm wrote: > I just wanted to prove that there *are* printed ConTeXt manuals, but had a > hard time finding http://www.h2o-boeken.nl/catalog/5 > Apparently it’s nowhere linked (Wiki, Pragma, Elvenkind), It's linked from the main wiki page, search for “Physical books

Re: [NTG-context] captions in float combinations

2013-09-08 Thread Marco Patzer
On 2013–09–08 Robert Blackstone wrote: > The paired figures in my particular project are often of different > size, in particular of different height, (but small enough to be > placed side by side). The author wants not only the figure > captions at the top, but also the figures themselves. You c

Re: [NTG-context] outer floats on doublesided pages

2013-09-10 Thread Marco Patzer
On 2013–09–10 R. Ermers wrote: > I have problems with the placement of floats. I need them to be > placed in the outer edge of the text, but Context puts them in the > middle of the page. The outer, inner, outeredge, inneredge, > commands do not work. Right and left do work. You probably confused

Re: [NTG-context] outer floats on doublesided pages

2013-09-10 Thread Marco Patzer
On 2013–09–10 R. Ermers wrote: > I want them positioned close to the place in the text which should > flow around them. I have seen examples of this made by Context. > This can be obtained by specifying default=left, or default=right, > only I need the figures to protrude into the (outer) margin.

Re: [NTG-context] section numbers in margin eventually get placed too far left

2013-09-17 Thread Marco Patzer
On 2013–09–17 Sanjoy Mahajan wrote: > Is this a bug, or just a change in setuphead that I didn't take > account of? It is a bug. ConTeXt sometimes uses the rightmargindistance for the left margin, which would be correct for a double sided layout, but is definitely wrong for a single sided documen

Re: [NTG-context] section numbers in margin eventually get placed too far left

2013-09-18 Thread Marco Patzer
On 2013–09–18 Sanjoy Mahajan wrote: > Thanks, that fixes my and Marco's test cases. Should I wikify, or will > your fix be part of an uncoming beta? No need to wikify. It was a bug which has already been fixed in the latest beta. Marco signature.asc Description: Digital signature

Re: [NTG-context] section numbers in margin eventually get placed too far left

2013-09-18 Thread Marco Patzer
On 2013–09–18 Sanjoy Mahajan wrote: > Marco Patzer writes: > > > No need to wikify. It was a bug which has already been fixed in the > > latest beta. > > Hans is too fast! > > Note to self: Test every bug candidate also against the latest beta. I meant that

[NTG-context] Inline math in table in combination fails

2013-09-18 Thread Marco Patzer
Hi, The following example results in the error “You can't assign a glue_spec node to a prev field” \starttext \startcombination [2*1] {\starttable [|c|] \NC \math{1} \VL\NR\HL \stoptable}{} {\starttable [|c|] \NC \math{2} \VL\NR \stoptable}{} \stopcombination \stop

[NTG-context] Overwriting buffer causes LuaTeX error

2013-09-19 Thread Marco Patzer
Hi, the following example causes 1) strange message: “invalid \starttext ... \stoptext structure” and 2) !LuaTeX error: PDF inclusion: file has changed 'Hga-typeset-buffer-001.pdf' ==> Fatal error occurred, no output PDF file produced! \starttext \startbuffer [foo] foo \stopbuffer

[NTG-context] Defining multiple enumerations fails

2013-09-19 Thread Marco Patzer
Hi, defining multiple enumerations at the same time used to work. Is this syntax not supported any longer or is it a bug? \defineenumeration [foo, bar] \starttext \foo foo\par \bar bar\par \stoptext Marco signature.asc Description: Digital signature

Re: [NTG-context] Defining multiple enumerations fails

2013-09-20 Thread Marco Patzer
On 2013–09–20 Hans Hagen wrote: > On 9/20/2013 12:33 AM, Marco Patzer wrote: > >Hi, > > > >defining multiple enumerations at the same time used to work. Is > >this syntax not supported any longer or is it a bug? > > > >\defineenumeration [foo, bar] > >

[NTG-context] Firstline mechanism broken

2013-09-21 Thread Marco Patzer
Hi, the firstline mechanism seems to be broken. \definefirstline [foo] [alternative=line, color=lightgray] \starttext \setfirstline [foo] \input knuth \par \stoptext Marco signature.asc Description: Digital signature ___

[NTG-context] Missing { inserted using placefigure and postponing

2013-09-21 Thread Marco Patzer
Hi, I get a “Missing { inserted.” error under certain circumstances. Here is an example: \starttext \blackrule [height=8cm] \startpostponing \placefigure [] {foo}{bar} \stoppostponing \blackrule [height=15cm] \startlines a b \stoplines \stoptext I used black rules to

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Marco Patzer
On 2013–09–21 Xan wrote: > \diameter produces a diameter symbol. What is the equivalent in ConTeXt? ⌀ or \varnothing Have a look at char-def.lua for a list of context names for various glyphs. It might make sense to enable the fonts.missing tracker. Then ConTeXt warns you that a particular gly

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Marco Patzer
On 2013–09–21 Xan wrote: > > On 2013–09–21 Xan wrote: > > > > > \diameter produces a diameter symbol. What is the equivalent in ConTeXt? > > > > ⌀ or \varnothing > > > Really varnothing is not the same as diameter (see the reference of LaTeX I > posted before) \def\diameter{\char"2300}

Re: [NTG-context] ConTeXt Manual Errata

2013-09-21 Thread Marco Patzer
On 2013–09–18 Thangalin wrote: Hi Dave, > During a recent plane ride, I started to read the ConTeXt manual > to get a better understanding: > http://www.ctex.org/documents/context/cont-enp.pdf A more recent manual can be found at http://pmrb.free.fr/contextref.pdf > If anyone has plans to re

[NTG-context] Conditional float references

2013-09-22 Thread Marco Patzer
Hi, a couple of times the question came up¹²³ how to create more intelligent referencing. There are already mechanisms in the core, namely \somewhere and \atpage but they both have drawbacks. \somewhere happily prints its text if the figure is placed on the same double page. In fact, no text at al

Re: [NTG-context] Conditional float references

2013-09-23 Thread Marco Patzer
On 2013–09–23 Hans Hagen wrote: > >a couple of times the question came up¹²³ how to create more > >intelligent referencing. There are already mechanisms in the core, > >namely \somewhere and \atpage but they both have drawbacks. > >\somewhere happily prints its text if the figure is placed on the

Re: [NTG-context] Conditional float references

2013-09-24 Thread Marco Patzer
On 2013–09–24 Robert Blackstone wrote: > I reproduce the error message here, hoping that you, or somebody > elsm, can see what I did wrong. I used mkvi style macros. Either place the following into the first line %% macros=mkvi or change the file extension to mkvi. Marco signature.asc Des

Re: [NTG-context] Conditional float references

2013-09-25 Thread Marco Patzer
On 2013–09–25 Otared Kavian wrote: > I have not yet tried it with references to maths formulas, > theorems, lemmas and such, Me neither. \ifsinglesided \strc_references_do_relative_else\plusone {\def\strc_references_smart_string{\labeltext\v!nextpage}} {\strc_references_do_rela

[NTG-context] Wrong spacing using stretch effect

2013-09-25 Thread Marco Patzer
Hi, the stretch effect does not take the final width of the string into account. Is this a bug or a limitation? Example: \starttext (\effect[stretch]{fftabc})\par %% “c” collides with “)” (\kerncharacters[.05]fftabc)%% no collision \stoptext Marco signature.asc Description: Digital si

Re: [NTG-context] Conditional float references

2013-09-25 Thread Marco Patzer
On 2013–09–25 Otared Kavian wrote: > Also after applying your patch everything works as expected. I > tested your file with some maths formulas and changed even the > language to French with: > > \unprotect > \setuplabeltext > [\s!fr] > [\v!atpage=page\nobreakspace, %% “at page” sounds weird

Re: [NTG-context] Questions about "natural tables"

2013-09-26 Thread Marco Patzer
On 2013–09–26 MANUEL GONZALEZ SUAREZ wrote: > My questions are: how do the tables are centered on the page? Horizontal centring is automatically applied when you make it float. > Can you change the size of the tables? The width keyword sets the width of the cells. There's also option=stretch. I

Re: [NTG-context] ConTeXt Manual Errata

2013-09-26 Thread Marco Patzer
On 2013–09–21 Marco Patzer wrote: > > I did not have the ConTeXt manual source code on hand, so I could > > not directly modify it. > > http://wiki.contextgarden.net/Improving_the_manuals > > Do not count on someone else to fix it. Create an account and fix > what

Re: [NTG-context] ConTeXt Manual Errata

2013-09-26 Thread Marco Patzer
On 2013–09–26 Thangalin wrote: > I registered an account, but have not seen any confirmation. Supelec has problems with the mail system at the moment. So Taco doesn't get a notification if someone requests commit access. I cc'd him, so he should get notified that way. In case you still don't get

Re: [NTG-context] ConTeXt Manual Errata

2013-09-26 Thread Marco Patzer
On 2013–09–26 Aditya Mahajan wrote: > Wouldn't it be better to move the manuals to github rather than > keeping them on an svn server? +1 Marco signature.asc Description: Digital signature ___ If your question is o

Re: [NTG-context] ConTeXt Manual Errata

2013-09-27 Thread Marco Patzer
On 2013–09–26 Peter Münster wrote: > On Thu, Sep 26 2013, Aditya Mahajan wrote: > > > Wouldn't it be better to move the manuals to github rather than keeping them > > on an svn server? > > Why? In my opinion, for the “3 commits per year” it doesn't really matter which version control system is

[NTG-context] Module documentation broken

2013-09-27 Thread Marco Patzer
Hi, the module documentation is broken when it contains certain macros, e.g. \METAPOST. mtxrun --script modules --process auto:meta-pag.mkiv yields pages > flushing realpage 1, userpage 1 pages > flushing realpage 2, userpage 1 error: .../context/tex/texmf-context/tex/cont

Re: [NTG-context] Feedback wanted on a ConTeXt tutorial

2013-09-29 Thread Marco Patzer
On 2013–09–29 Mari Voipio wrote: > Inspired by some informal discussions at the recent ConTeXt meeting I > started to write a *really* basic ConTeXt tutorial. I'm happy to see someone willing to invest time and effort to improve the documentation! I did neither attend the meeting, nor take part i

Re: [NTG-context] Wrong spacing using stretch effect

2013-10-01 Thread Marco Patzer
On 2013–09–30 Hans Hagen wrote: > these are unrelated mechanisms where the first one just does some > pdf magic ... no feedback to tex about widths (ok, i could write > something better but never had and still don't have a reason for > that kind of low level pdf based approach to be really deeply

Re: [NTG-context] Wrong spacing using stretch effect

2013-10-01 Thread Marco Patzer
On 2013–10–01 Philipp Gesang wrote: > When using the characterkerning method you can exempt ligatures > and character pairs from being letterspaced by defining the > functions typesetters.kerns.keepligature () and > typesetters.kerns.keeptogether (, ), > respectively. If the function returns a tru

[NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Marco Patzer
Hi, I wonder if it's necessary to manually load the MetaPost variables using LoadPageState. Some of them are static and do not require an update on each page, e.g. NOfPages, but many of them might change on each page, e.g. OnOddPage, PageNumber, TextWidth. Forgetting to use LoadPageState easily re

Re: [NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Marco Patzer
On 2013–10–01 Marco Patzer wrote: > Hi, > > I wonder if it's necessary to manually load the MetaPost variables > using LoadPageState. Some of them are static and do not require an > update on each page, e.g. NOfPages, but many of them might change on > each page, e.g

Re: [NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Marco Patzer
On 2013–10–01 Hans Hagen wrote: > in mkiv the overhead is less than in mpii as we don't parse the blob > in the same way and the mpiv code is also more optimized so we can > consider dropping the SetPageState macro. I see you decided to drop LoadPageState. It's about 20ms overhead per 1000 graphi

[NTG-context] TEXpage produces wrong bounding box with rotated images

2013-10-06 Thread Marco Patzer
Hi, when rotation is used, the TEXpage bounding box is incorrect. Angles multiples of 90° are correct, however. It looks like a bug. Example: \setupexternalfigures [location=default] \starttext \startTEXpage \externalfigure [hacker] [orientation=44] \stopTEXpage \startTEXpage \exter

Re: [NTG-context] TEXpage produces wrong bounding box with rotated images

2013-10-07 Thread Marco Patzer
On 2013–10–07 Hans Hagen wrote: > On 10/6/2013 9:15 PM, Marco Patzer wrote: > >Hi, > > > >when rotation is used, the TEXpage bounding box is incorrect. Angles > >multiples of 90° are correct, however. It looks like a bug. Example: > > > >\setupexternalf

[NTG-context] Integral subscript leads to “Undefined control sequence”

2013-10-07 Thread Marco Patzer
Hi, the current beta doesn't like integral subscripts any more: \starttext \math{\int_a} \stoptext Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please

Re: [NTG-context] Integral subscript leads to “Undefined control sequence”

2013-10-07 Thread Marco Patzer
On 2013–10–07 luigi scarso wrote: > I think a space is needed as in > $\int _a^b f(x) dx$ Well, that might be a workaround. But it's still a bug. %% works \math{\int^b_a} whereas %% fails \math{\int_a^b} Furthermore, it used to work for ages using \int_x or \int_{xyz}. Marco signat

Re: [NTG-context] Breaks in TOC

2013-10-07 Thread Marco Patzer
On 2013–10–07 "H. Özoguz" wrote: > How to get only a normal break \crlf Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Marco Patzer
On 2013–10–08 Procházka Lukáš Ing. - Pontex s. r. o. wrote: > I'm trying to hook commands.stoptext()... There is already a hook for that. No need to tinker with Lua. \setupexternalfigures [location=default] \setupdocument [after=\setups{document:after}] \startsetups [document:after] \sta

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Marco Patzer
On 2013–10–08 Marco Patzer wrote: > On 2013–10–08 Procházka Lukáš Ing. - Pontex s. r. o. wrote: > > > I'm trying to hook commands.stoptext()... > > There is already a hook for that. No need to tinker with Lua. > > \setupexternalfigures > [location=default

Re: [NTG-context] Mathematics (\lim, \int, ...)

2013-10-08 Thread Marco Patzer
On 2013–10–08 Alan BRASLAU wrote: > Is something gone funny with mathematics? http://thread.gmane.org/gmane.comp.tex.context/84607/focus=84616 It was a bug which has been fixed in the current beta. Marco signature.asc Description: Digital signature

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–08 Hans Hagen wrote: > >\hyphenateurl{} works only when setupalign[] is set to hyphenated. > > > >Is there a way to hyphenate only URLs? > > You need to provide a few more options to \setupalign: Why? > \appendtoks\tttf\to\everyhyphenatedurl % maybe we need a proper setup Isn't that

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–08 Hans Hagen wrote: > On 10/8/2013 7:35 PM, Marco Patzer wrote: > >On 2013–10–08 Hans Hagen wrote: > > > >>>\hyphenateurl{} works only when setupalign[] is set to hyphenated. > >>> > >>>Is there a way to hyphenate only URLs?

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–08 Stéphanie Vilayphiou wrote: > I'd like to try a minimal example of your second email, Hans, but I > can't figure out how to use those functions? > Can you make another minimal example so that I can understand better > how this works? It's sufficient to copy-paste the code into your

Re: [NTG-context] Conditional float references

2013-10-08 Thread Marco Patzer
On 2013–09–22 Marco Patzer wrote: > a couple of times the question came up¹²³ how to create more > intelligent referencing. There are already mechanisms in the core, > namely \somewhere and \atpage but they both have drawbacks. > \somewhere happily prints its text if the figure is p

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–09 Stéphanie Vilayphiou wrote: > Ah ok, I tried it in Context live first and it didn't output a PDF, ConTeXt live runs 2012.05.30 11:26. However, the hyphenation macros were redone in beta 2013.03.04 18:28 and macros such as \sethyphenationvariables were replaced by \lang_basics

Re: [NTG-context] startitemize [intext]

2013-10-09 Thread Marco Patzer
On 2013–10–09 Alan BRASLAU wrote: > I would expect the following minimal example to produce > a. first b. second c. third > > \starttext > \startitemize [a,intext] \startitemize [a,text] Marco signature.asc Description: Digital signature __

Re: [NTG-context] [***SPAM***] Page layout mechanics

2013-10-09 Thread Marco Patzer
On 2013–10–09 hwit...@gmail.com wrote: > I want a 3 mm border/edge and the rest of the space available for text space. \definepapersize [business-card] [width=91mm, height=55mm] \setuppapersize [business-card] \setuplayout [backspace=3mm, topspace=3mm, margin=0mm, header=0mm

Re: [NTG-context] Spelling out chapter numbers for novels.

2013-10-09 Thread Marco Patzer
On 2013–10–09 john Culleton wrote: > It is now fashionable in the U.S. (and maybe elsewhere) to use a > spelled-out chapter number in novels. > > […] > > I wonder if there is a function in Context or elsewhere that does this > for me? \setuplabeltext [chapter=Chapter\nobreakspace] \setuphead

Re: [NTG-context] Spelling out chapter numbers for novels.

2013-10-09 Thread Marco Patzer
On 2013–10–09 john Culleton wrote: > Very interesting. I have one further problem. The accepted style is to > use an initial cap as in > Twenty-three > and not > twenty-three > > Is there a cure for that also? Words Marco signature.asc Description: Digital signature

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote: > with this code: > > > % Paràbola amb Focus = (0,0.25) i Directriu (x,-0.25) > \placefigure[here] > [taula:construcció-paràbola-1] > {Paràbola amb directriu $r$ i focus $F$} > {\framed[frame=off]{ > \starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={ > marki

[NTG-context] Setting colour in \processisolatedwords sometimes fails

2013-10-10 Thread Marco Patzer
Hi, setting the colour in \processisolatedwords doesn't always work. \defineframed [myframe] [foregroundstyle=italic, foregroundcolor=blue] \def\mycmd{\blue} \starttext %% frame works \myframe{foo bar} %% colour works \processisolatedwords{foo bar}\mycmd %% style is applied,

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote: > Minimal example: > > % Regime > \enableregime[utf] Not required if you use MkIV > does not work. It works here with 2013.10.09 10:36 using MkIV and MkII. At least I don't get an error and a PDF with a few green blots is created. What's the error message you get for t

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote: > ! Undefined control sequence. > > system > tex > error on line 28 in file > /home/xan/fems/proves-context/prova.tex: Undefined control sequence ... > > 18 \starttikzpicture > 19 [decoration={ > 20markings, > 21mark= > 22

Re: [NTG-context] graphictext bug?

2013-10-11 Thread Marco Patzer
On 2013–10–10 Thangalin wrote: > Hi, > > From the October 8, 2010 context mkiv MetaFun manual (section 8.6), > the following example does not produce any output beyond the caption: http://wiki.contextgarden.net/ConTeXt_Standalone#Dependencies Do you have pstoedit installed? Marco signature.a

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Marco Patzer
On 2013–10–10 Thangalin wrote: > I noticed something unexpected with the following code: > > \enabletrackers[metapost.showlog] > > \startuseMPgraphic{heading:ThemeTitleStyle} > show "HEADING:THEMETITLESTYLE"; > show \MPstring{heading:title}; > > draw textext( \MPstring{heading:title} ) ro

Re: [NTG-context] graphictext bug?

2013-10-12 Thread Marco Patzer
On 2013–10–12 Thangalin wrote: > The log does not contain any error messages. See attached. I didn't test it, but I vaguely have in mind that pstoedit errors do not end up in the log file, only on the console. Marco signature.asc Description: Digital signature _

[NTG-context] XML export and font switches

2013-10-12 Thread Marco Patzer
Hi, certain font switches fail when XML export is used. Example: \setupbackend [export=foo.xml] \definehighlight [emph] [style=\ita] %% \bfa works \starttext \ita Foobar%% works Foo \emph{Bar} %% fails \stoptext LuaTeX error [string "\directlua "]:1: invalid escape sequence near '"

Re: [NTG-context] bug or needs warning documentation

2013-10-12 Thread Marco Patzer
On 2013–10–12 d.henman wrote: > I found what I consider a bug in startcombination processing. > > […] > > The below fails > \starttext > \placefigure > [here,none] > [fig: reference tag] > {citation text} > { \startcombination[1*2] >{\externalfigure[test-im

Re: [NTG-context] bug or needs warning documentation

2013-10-13 Thread Marco Patzer
On 2013–10–13 Hans Hagen wrote: > On 10/13/2013 2:48 AM, Marco Patzer wrote: > > >\unprotect > > > >\def\pack_combinations_pickup > > {\dostarttagged\t!combinationpair\empty > >\dostarttagged\t!combinationcontent\empty > >\dogotopar\pack_comb

Re: [NTG-context] Calling \followtokens from with in metapost

2013-10-13 Thread Marco Patzer
On 2013–10–13 Hans Hagen wrote: > >inbetween the arcs, that should alsó be drawn). The text should not be > >stretched but center on the top, flowing evenly distributed on each > >side. This link will give you an idea: > > > >http://www.heilsuefling.is/heilsuefling/upload/images/whp_in_general/det

Re: [NTG-context] XML export and font switches

2013-10-13 Thread Marco Patzer
On 2013–10–13 Hans Hagen wrote: > On 10/13/2013 12:42 AM, Marco Patzer wrote: > >Hi, > > > >certain font switches fail when XML export is used. Example: > > > >\setupbackend [export=foo.xml] > > > >\definehighlight > > [emph] > > [styl

Re: [NTG-context] Broken nightly (2013.10.04)

2013-10-13 Thread Marco Patzer
On 2013–10–13 Kip Warner wrote: > I've noticed a problem typesetting my book using ConTeXt nightly version > 2013.10.04. The following code... > > \placeformula[formula:Limit of Verhulst equation] > \startformula > \lim_{t\to\infty} P(t) = K. > \stopformula > > .

<    1   2   3   4   5   6   7   8   >