[NTG-context] XML expression to read HTML classes

2015-08-25 Thread massifr
Hello list, I'm working on HTML typesetting with ConTeXt. I wrote a custom expression to test whether an element has a class: function xml.functions.classes(classAttr) local classes = {} if classAttr then for c in string.gmatch(classAttr, %S+) do if (string.len(c) 0) then

[NTG-context] Error when using the lettrine-module in the newest beta

2015-08-25 Thread Alias 1
Hello, I want to report a bug or error when using the lettrine-module in combination with the newest beta. Here is a minimal example, which shows the error: \usemodule[lettrine] \starttext \lettrine{F}{oo} \input tufte \stoptext Best regards

Re: [NTG-context] Bug: Paragraph formatting on new page after placefigure

2015-08-25 Thread Rik Kabel
On 2015-08-25 03:41, Andreas Becker wrote: ConTeXt version: 2015.08.21 19:57 In the PDF output of the following code, the first text line on the second page only spans half the textwidth. However, below the figure, the text should span the whole width. \starttext

Re: [NTG-context] superscripts th nd rd st on dates etc..

2015-08-25 Thread Otared Kavian
\high{th} \high{nd} \high{st} On 24 Aug 2015, at 23:19, John Culleton j...@wexfordpress.com wrote: Forgot how to do these. -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html

[NTG-context] Bug: Paragraph formatting on new page after placefigure

2015-08-25 Thread Andreas Becker
ConTeXt version: 2015.08.21 19:57 In the PDF output of the following code, the first text line on the second page only spans half the textwidth. However, below the figure, the text should span the whole width. \starttext \placefigure[right][]{caption} {

[NTG-context] Bug: Figure numbers do not correspond to their order

2015-08-25 Thread Andreas Becker
ConTeXt version: 2015.08.21 19:57 When the «page» position key is used, the figure numbers do not match their order in the document. In the following example, Figure 2 precedes Figure 1. \starttext \placefigure[page][]{} { \externalfigure[nop][width=0.5\textwidth] } \placefigure[][]{} {

[NTG-context] How to prevent sentence-case arttitle in the bibliography?

2015-08-25 Thread Andreas Becker
I seek to prevent any modification of the capitalization of article titles in the bibliography. What do I need to change in the ConTeXt code to achieve this? The other citation styles I tried besides APA also feature lowercasing. I am aware of a workaround: Enclosing the capital letters in the

[NTG-context] Refering to parent in XML

2015-08-25 Thread Xan
Hi, I have this environment: \startenvironment processadorxml % Activitat: defineix \Activitat{activitat-id} \def\Activitat#1% {\xmlfilter{rebost} {/activitats/activitat[@id=='#1']/command(xml:list)} } % Simplement llistam totes les presentacions. \startxmlsetups xml:list