Re: [NTG-context] Positioning an arrow between two values (Metapost)

2015-01-20 Thread Troy Henderson
> > \starttext > \startMPcode > u:=1cm ; > path p, q ; > p=fullsquare scaled u ; > q=fullsquare scaled u shifted (4u,-2u) ; > draw p ; > draw q ; > drawarrow center p--center q ; > label(btex $5$ etex,center p) ; > label(btex $-2 $ etex,center q) ; > \stopMPcode > \stoptext > How about something l

Re: [NTG-context] Page Breaks after Headings

2015-01-20 Thread Hans Hagen
On 1/20/2015 11:41 PM, Malte Stien wrote: Hi all, Is there a way I can avoid page breaks after “headings”, i.e. \section, \subsection, \subject, \subsubject, etc? example needed ... normally page breaks are avoided -

Re: [NTG-context] counting characters when dealing with XML

2015-01-20 Thread Hans Hagen
On 1/20/2015 8:50 PM, Pablo Rodriguez wrote: Dear list, I have a question when dealing with XML. Is there any way to write a conditional based on the number of characters in a given field? I mean, the following field: \xmltext{#1}{h1[@class='subtitle']} If subtitle > 60 chars, then font

[NTG-context] Can I use mkii and mkiv side by side?

2015-01-20 Thread Gerben Wierda
I have a finished mkii project and I’d like to be able to export it to a format that can be a start for other distributions (such as epub or the like). For this, I get the impression I need mkiv. Now, before I go on trying to move my project to mkiv I have a question. Can I run mkii and mkiv si

[NTG-context] Page Breaks after Headings

2015-01-20 Thread Malte Stien
Hi all, Is there a way I can avoid page breaks after “headings”, i.e. \section, \subsection, \subject, \subsubject, etc? Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was

Re: [NTG-context] layers for odd and even pages

2015-01-20 Thread Wolfgang Schuster
> Am 20.01.2015 um 20:14 schrieb Pablo Rodriguez : > > Dear list, > > I have the following sample: > > \setuppapersize[A5] > \setuppagenumbering[alternative=doublesided,location=] > \definelayer[testodd][state=start] > \setlayer[testodd]{Odd page} > \definelayer[testeven][state=continue] > \set

[NTG-context] counting characters when dealing with XML

2015-01-20 Thread Pablo Rodriguez
Dear list, I have a question when dealing with XML. Is there any way to write a conditional based on the number of characters in a given field? I mean, the following field: \xmltext{#1}{h1[@class='subtitle']} If subtitle > 60 chars, then fontsize = 10pt. If subtitle > 50 chars, then fontsi

[NTG-context] layers for odd and even pages

2015-01-20 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuppapersize[A5] \setuppagenumbering[alternative=doublesided,location=] \definelayer[testodd][state=start] \setlayer[testodd]{Odd page} \definelayer[testeven][state=continue] \setlayer[testeven]{Even page} \setupbackgrounds[page][background={testodd, tes

[NTG-context] Problem with luacode

2015-01-20 Thread Eric Gerard
Hello Hans, sorry for that, here is the code I used to check some LUACODE. \definepapersize[normal][width=14.85cm, height=21cm] \setupbodyfont[10pt] \enableregime[il1] \setupcolor[xwi] \setuplayout[backspace=16mm, leftmargin=15mm,leftmargindistance=1mm,topspace=10mm,header=0mm,footer=0mm,heigh

Re: [NTG-context] context -> docx ??

2015-01-20 Thread Pablo Rodriguez
On 01/17/2015 10:06 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: > On Sat, 17 Jan 2015 13:32:07 -0700, Pablo Rodriguez wrote: >> [...] >> Sorry, what was wrong in the conversion to ePub? > > Just getting a simple copyright page prior to the TOC page was a pain. I > ended up having to patch t

Re: [NTG-context] bib module - urgent!

2015-01-20 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Keith, On Tue, 20 Jan 2015 06:07:23 -0700, Keith Schultz wrote: setuppublications[alternative=apa] Thank you very much. The strange thing is that that exact line is in the previously attached bib-env.tex (forgot to put it in the minimal file I sent to the list) but I was still gett

Re: [NTG-context] bib module - urgent!

2015-01-20 Thread Keith Schultz
Hi Irdis, The answer to your question is quite simple, You are missing \setuppublications Here the MWE: setuppublications[alternative=apa] \starttext \startpublication[k=haq, t=book, a=Haq, y=1994, s=Haq94] \author[]{Syed Noman

Re: [NTG-context] bib module - urgent!

2015-01-20 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Robert, On Tue, 20 Jan 2015 03:20:10 -0700, Robert Blackstone wrote: On 20 Jan 2015, at 10:16 , Idris Samawi Hamid ادريس سماوي حامد wrote I also set up an extensive bib environment (attached) to take care of all sorts of things. If this is broken, can it be fixed asap? Please don'

Re: [NTG-context] Issues in export

2015-01-20 Thread Hans Hagen
On 1/20/2015 10:19 AM, Henning Hraban Ramm wrote: Am 2015-01-20 um 14:52 schrieb Henning Hraban Ramm : Ok, I’ll start a wishlist. See http://wiki.contextgarden.net/Export#Open_Issues Another issue: Quotations show up like “Prophet!” The tagging is fine, even if I don’t understand „-1“, but

Re: [NTG-context] What happened to the ePub script?

2015-01-20 Thread Hans Hagen
On 1/20/2015 10:16 AM, Henning Hraban Ramm wrote: Am 2015-01-19 um 15:48 schrieb Hans Hagen : On 1/17/2015 1:52 PM, Henning Hraban Ramm wrote: * How can I set the current \date in a metadata variable? (I know it’s also in the date tag of , but I know how to format \date …) This doesn’t work

Re: [NTG-context] Issues in export

2015-01-20 Thread Hans Hagen
On 1/20/2015 9:52 AM, Henning Hraban Ramm wrote: Am 2015-01-19 um 15:44 schrieb Hans Hagen : In raw.xml I’d prefer something like Quothby Edgar Allan Poe or Quoth ... 1 by Edgar Al­lan Poe and in div.xhtml something that works in HTML, like a title: Well, basically the

Re: [NTG-context] bib module - urgent!

2015-01-20 Thread Robert Blackstone
On 20 Jan 2015, at 10:16 , Idris Samawi Hamid ادريس سماوي حامد wrote > > I also set up an extensive bib environment (attached) to take care of all > sorts of things. > > If this is broken, can it be fixed asap? Please don't make me have to > convert bbl to bib; that will be beyond depressin

Re: [NTG-context] Issues in export

2015-01-20 Thread Henning Hraban Ramm
Am 2015-01-20 um 14:52 schrieb Henning Hraban Ramm : > Ok, I’ll start a wishlist. See http://wiki.contextgarden.net/Export#Open_Issues Another issue: Quotations show up like “Prophet!” The tagging is fine, even if I don’t understand „-1“, but the quotation marks are too much, at least in *-raw

Re: [NTG-context] What happened to the ePub script?

2015-01-20 Thread Henning Hraban Ramm
Am 2015-01-19 um 15:48 schrieb Hans Hagen : > On 1/17/2015 1:52 PM, Henning Hraban Ramm wrote: >> * How can I set the current \date in a metadata variable? >> (I know it’s also in the date tag of , but I know how to format >> \date …) >> >> This doesn’t work (i.e. I get „\date“ in XML/XHTML): >>

Re: [NTG-context] Issues in export

2015-01-20 Thread Henning Hraban Ramm
Am 2015-01-19 um 15:44 schrieb Hans Hagen : >> In raw.xml I’d prefer something like >> >> >> Quothby Edgar Allan Poe >> >> >> or >> >> >> Quoth >> ... >> >>1 >>by Edgar Al­lan Poe >> >> >> >> and in div.xhtml something that works in HTML, like a title: > > Well, basically th