Re: [NTG-context] Float placement problem
Am 25.09.2011 um 11:03 schrieb Pontus Lurcock: Hello, I've recently updated my standalone (32-bit Linux) ConTeXT from 2011.02.25 to 2011.09.20, and I'm now having some trouble with float placement. I'm using MkIV. I'm trying to have figures protruding into the outer margins with a double-sided layout, as described here: http://wiki.contextgarden.net/Floating_Objects#Protruding_Floats_in_Double-Sided_Documents Here is my minimal example: \setuplayout[location=doublesided] \setuppagenumbering[alternative=doublesided,location={margin,header}] \setupfloat[figure][location=inner] \showframe \starttext % An extra page. \page[yes] \dorecurse{4}{ \placefigure[]{caption}{\externalfigure[cow.pdf][width=17cm]}} \stoptext With version 2011.02.25 this produces the desired result; with 2011.09.20, the first figure is placed correctly, and all subsequent figures protrude in the same direction, whether they're on an even or odd page. So in the given example they all protrude to the right. If an extra page is inserted at the start so that the first figure is on an even page, they all protrude to the left. Does anyone have any ideas or insights? Should be fixed in the next beta. 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] [OT] intelligent commas in math (in LaTeX)
On Sat, Oct 1, 2011 at 4:12 AM, Aditya Mahajan adit...@umich.edu wrote: In principle a cleaner implementation is possible in luatex (without using active characters), but I am not completely sure about this. It will be better to handle this as part of \mnum macro. Hm, can you explain this a bit ? Currently ConTeXt already checks if '.' is part of a complete number or not as part of the export macros. For example: \m{x + 1.25y = 3.5} exports as m:math display=inlinem:mrowm:mi푥/m:mim:mo+/m:mom:mn1.25/m:mnm:mi푦/m:mim:mo=/m:mom:mn3.5/m:mn/m:mrow/m:math Notice that 1.25 is part of a single m:mn tag. In contrast, if you use comma as a math delimiter, then the export function does not recognize the number correctly. \m{x + 1,25y = 3.5} exports as m:math display=inlinem:mrowm:mi푥/m:mim:mo+/m:mom:mn1/m:mnm:mo,/m:mom:mn25/m:mnm:mi푦/m:mim:mo=/m:mom:mn3/m:mnm:mo,/m:mom:mn5/m:mn/m:mrow/m:math However, we do have a \mn macro (math number) to tag numbers. So you can type \m{x + \mn{1,25}y = \mn{3,5}} which exports as m:math display=inlinem:mrowm:mi푥/m:mim:mo+/m:mom:mn1,25/m:mnm:mi푦/m:mim:mo=/m:mom:mn3,5/m:mn/m:mrow/m:math So, if we want to recognize ',' as a decimal separator, two solutions are possible in MkIV. The first is to build upon the existing export code that recognizes '.' as a decimal separator (to figure out the contents of the mn tag) to also recognize ',' as a decimal separator; The drawback of such an approach is that if you are in the habit of not adding a space after a comma, for example writing Let $\naturalnumbers$ denote the set $\{1,2,3,\dots\}$ of natural numbers... then you will get wrong output. So, an alternative option is to ask the user to tag all numbers with \mn. Then, the \mn{...} macro can redefine the comma so that the spaces around it match its use as a decimal separator. Aditya ok -- 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] handling fonts with missing math
On 30-9-2011 23:39, Mojca Miklavec wrote: On Tue, Sep 27, 2011 at 19:57, Hans Hagenpra...@wxs.nl wrote: On 27-9-2011 19:52, Mojca Miklavec wrote: On Tue, Sep 27, 2011 at 19:44, Hans Hagen wrote: there is some fall back mechanism that does that but as soon as one defined his/her own typescript that can interfere How should we define trypescripts to avoid interference then? A typeface definition normally has a matching monospace and math definition (so: ss + tt + mm or rm + tt + mm or in some cases rm + ss + tt + mm). Of course some relative scaling has to be considered then. Do you want to say that we need an explicit definition of LM Math? Just curious: how much information is missing/how much would would it be if we would want to create a virtual math font by combining LM + populating italic/bold/bold italic latin and greek math alphabets from text font? Would that look horrible because of lack of information about glyph metrics? that is relatively easy: just make a lfg file that contains the specification (and choose some math font that suits) my guess is that it will look bad in most cases we might consider making a sort of generic partial math font (maybe even needs to be designed) that sort of fills in the usual bits and pieces (root signs, arrows etc) in a way that matches an average font (we probably need a few weights then) of course that would only work for not too fancy math 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] new beta
Hi, I uploaded a new beta. Apart from some fixes the following has been added/changed. Some are side effects of discussions at the context meeting. - Default sorting now mixes upper and lowercase. - Some presentation styles had problems loading due to changes in the structure commands. - A few improvements to the (mixed) scite lexers / spell checkers (plus an experimental pdf lexer). - Export of some math scripts (ssty related) .. an other buglet mojca and I noticed has to wait for a luatex engine fix. - An extra alignment option 'last' to center the last line. - Missing references are now listed in the log file. - Segments can be specified as n:* (as n:100 looks somewhat weird). - Virtual math has been adapted to the latest insights in open type math. However, the biggest new thing is adapted cross document referencing. This was already possible but we could not yet load external references (as in mkii). See http://www.pragma-ade.com/general/magazines/mag-1103.pdf for how it works in mkiv. The test files cross-*.tex demonstrate a couple of things. If one uses the project structure, then one can process a component of a product and it will pick up references from the main product as well as (given normal circumstances) start at the right chapter number and page. Of course this is only a convenience option (for proofing) as there is a dependency on the state of the parent product. Given the fact that cross referencing data is spread over several data structures this was a somewhat complex exercise. As a side effect the tuc file now uses its own (temporary) namespace. Hopefully nothing breaks due to these changes. Hans ps. Wolfgang: strc-ref is now a mkvi file. - 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] writing date with ordinal numbers (\enordinaldaynumber) in mkiv
On 29-9-2011 13:49, Wolfgang Schuster wrote: local tag, plus = match(entry,^([^%+:]+)(.*)$) ^([^%+:]+)[%+:]*(.*)$ Even when you patch this you don’t get any output because context tries (in the example below) to use the label “August:mnem” but only the label “august:mnem” is defined. \starttext \date[d=1,m=8][day:ord,space,month,space,month:mnem] \starttabulate[|Tl|l|] \NC August \EQ \labeltext{August} \NC\NR \NC August:mnem \EQ \labeltext{August:mnem} \NC\NR \NC august:mnem \EQ \labeltext{august:mnem} \NC\NR \stoptabulate \stoptext which makes me wonder ... in the past these v! were used instead of labels but it might make more sense now to lowercase the v! okay? [august]={ [cs]=srpen, [de]=August, -- august [en]=August, -- august [fr]=août, [it]=agosto, [nl]=augustus, [pe]=آگوست, [ro]=august, }, of course the labeltexts stay the same - 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] writing date with ordinal numbers (\enordinaldaynumber) in mkiv
Am 01.10.2011 um 14:57 schrieb Hans Hagen: On 29-9-2011 13:49, Wolfgang Schuster wrote: Even when you patch this you don’t get any output because context tries (in the example below) to use the label “August:mnem” but only the label “august:mnem” is defined. \starttext \date[d=1,m=8][day:ord,space,month,space,month:mnem] \starttabulate[|Tl|l|] \NC August \EQ \labeltext{August} \NC\NR \NC August:mnem \EQ \labeltext{August:mnem} \NC\NR \NC august:mnem \EQ \labeltext{august:mnem} \NC\NR \stoptabulate \stoptext which makes me wonder ... in the past these v! were used instead of labels but it might make more sense now to lowercase the v! This explains why you use variables as keys in \setuplabeltext etc. okay? +1 of course the labeltexts stay the same There is also a bug for the labels in the form “month:mnem” in lang-lab.lua function languages.labels.define() local variables = interfaces.variables local data = languages.data.labels local function define(command,list,prefixed) if list then context.pushcatcodes(prtcatcodes) -- context.unprotect for tag, data in next, list do if data.hidden then -- skip else for language, text in next, data.labels do if text == then -- skip elseif prefixed and rawget(variables,tag) then ... “rawget” checks if a variable “month:mnem” is defined but since this isn’t the case the label is defined as “\setuplabeltext[lang][month:mnem=value]” and not as “\setuplabeltext[lang][\v!month:mnem=value]” with the month as variable. 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] Visual debugging
Hi, I'm in a need for more visual debugging aids. I tried the supp-vis module, but it did not give enough cues. I guess the ruledhbox is bound by ascender and descender height vertically, but I'd like to see also the cap height and x-height lines. Is it possible? Plus, is it possible to display the individual box around each letter similar to Knuth's TeXBook page 65? Best regards, Otso Helenius ___ 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] [Layout] Problem with ConTeXt mkII
Hello Luigi, your solution is better...but doesn't work completely : the first page is correct, the second is not, and after this one, the end of the document is correctly formatted... hum... Very strange and annoying... Pierre-François. -- Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 83, rue d'Isle | Mrs. Peel, we're needed... 87000 Limoges - FRANCE | The Avengers. smime.p7s Description: S/MIME cryptographic signature ___ 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] [Layout] Problem with ConTeXt mkII
On Sat, 1 Oct 2011, Pierre-François Bonnefoi wrote: Hello Luigi, your solution is better...but doesn't work completely : the first page is correct, the second is not, and after this one, the end of the document is correctly formatted... hum... Very strange and annoying... Which version of ConTeXt you are using (see the log file)? I am using ConTeXt ver: 2011.09.18 22:35 MKII fmt: 2011.9.18 int: english/english and the following test file \setuplayout[ backspace=3cm, topspace=1.5cm, rightmargin=0cm,leftmargin=1.3cm, width=15cm, leftmargindistance=0.2cm, height=fit, header=0cm, footer=1cm, ] \definelayout[1][topspace=5.2cm, height=fit] \definelayout[2][] \starttext \showframe \dorecurse{10} {\input knuth \input ward } \stoptext gives me the attached output. Aditya test.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] location of mtx-scripts
Iôòùd like to ask if there is any update on this: The same issue has now arisen with context-simpleslides (hi Aditya and Thomas), which now has: scripts/context/lua/third/simpleslides/mtx-simpleslides.lua The t- prefix doesn't make a difference to TL, so I went ahead and added scripts/context/lua/third/PKGNAME to our patterns and updated simpleslides. Philipp, if you move mtx-rst.lua to scripts/context/lua/third/rst, (instead of directly under lua/), I'll update rst too. Thanks, Karl ___ 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] bug in \setuparranging
Hi, Hans: this bug is still not solved. Yue Wang On Thu, Sep 22, 2011 at 5:04 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 22 Sep 2011, Yue Wang wrote: Hi, Aditya and Hans: On Thu, Sep 22, 2011 at 4:46 PM, Aditya Mahajan adit...@umich.edu wrote: I haven't investigated what is going wrong, but a quick fix is \setuppapersize[A4,landscape][A4,landscape] I don't understand the arranging code, but doesn't the following also do what you want (without the arranging) \setuppapersize[A4,landscape,rotated,270][A4] Yes, I know these tricks. A quick workaround to this problem is to use the \setuppapersize[A4,landscape][A4,landscape] and then add either %\pdfpagesattr{/Rotate 90} --pdftex, luatex %\special{pdf:put @pages /Rotate 90} --xetex, dvipdfmx or the more generic way: \doPDFpagesattribute{/Rotate 90} And that did fix my problem temporary. But things are not going as expected, and it's better to fix these bugs, isn't it? Sure. But I was also answering you second question about rotating a page without using arranging. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___