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] context -> docx ??

2015-01-17 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 17 Jan 2015 13:32:07 -0700, Pablo Rodriguez wrote: On 01/17/2015 03:45 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Similar experience here; see below. But even the conversion to epub had issues, especially in getting the front matter to come out right. Sorry, what was wrong in t

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

2015-01-17 Thread Pablo Rodriguez
On 01/17/2015 03:45 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: > Hi Pablo, > > Thanks for your detailed reply: Somehow I missed it till just now. > Comments: Hi Idris, > On Wed, 14 Jan 2015 12:58:11 -0700, Pablo Rodriguez wrote: >> [...] >> I have written a small book from a markdown sourc

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

2015-01-17 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Pablo, Thanks for your detailed reply: Somehow I missed it till just now. Comments: On Wed, 14 Jan 2015 12:58:11 -0700, Pablo Rodriguez wrote: On 01/13/2015 08:59 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, I'm currently writing a paper with very basic typographical need

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

2015-01-15 Thread Wolfgang Schuster
> Am 15.01.2015 um 15:43 schrieb Idris Samawi Hamid ادريس سماوي حامد > : > > On Thu, 15 Jan 2015 01:01:37 -0700, Alan BRASLAU wrote: > >> The suggestion of using \definehighlight, etc. is good practice, too. > > But to be consistent we would have to do this: > > \definehighlight[important][s

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

2015-01-15 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 15 Jan 2015 01:01:37 -0700, Alan BRASLAU wrote: The suggestion of using \definehighlight, etc. is good practice, too. But to be consistent we would have to do this: \definehighlight[important][style=bold] \starttext \startimportant This is important \stopimportant \stoptext For m

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

2015-01-15 Thread Alan BRASLAU
On Wed, 14 Jan 2015 15:22:39 -0700 Idris Samawi Hamid ادريس سماوي حامد wrote: > > BTW, the quotation environment is not translated as blockquote and > > paragraphs lack their tags. > > Hmm, perhaps a showstopper. Hans has often promoted the use of \startparagraph \stopparagraph for the parti

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

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 14 Jan 2015 14:59:01 -0700, Pablo Rodriguez wrote: Context produces three relevant files: darwin-xml-div.xhtml darwin-xml-tag.xhtml darwin-xml-raw.xml 1. Which one of these three files is the one we want to convert to docx? Only *-div.xhtml are (X)HTML files. That was my guess, th

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

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Aditya, On Wed, 14 Jan 2015 14:38:25 -0700, Aditya Mahajan wrote: Structural elements are exported; raw typographical commands are not. So, you would need: \definehighlight[important][style=bold] \starttext \important{This is important} \stoptext Ok, thanks for this info! Best wishe

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

2015-01-14 Thread Pablo Rodriguez
On 01/14/2015 09:29 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: > [...] > I was just about to ask about how pandoc handles xhtml. Some questions for > you: Hi Idris, > Context produces three relevant files: > > darwin-xml-div.xhtml > darwin-xml-tag.xhtml > darwin-xml-raw.xml > > 1. Which o

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

2015-01-14 Thread Aditya Mahajan
On Wed, 14 Jan 2015, Idris Samawi Hamid ادريس سماوي حامد wrote: \starttext \startquotation \input darwin \bf \input darwin \stopquotation \stoptext darwin-xml-div.xhtml and darwin-xml-tag.xhtml show up in the browser, but the bold does not. What is needed to get the typography

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

2015-01-14 Thread Peter Münster
On Wed, Jan 14 2015, Idris Samawi Hamid ادريس سماوي حامد wrote: > 3. My assumption is this: If I can get the xml/xhtml file looking right in the > browser, I should be able to build a working docx file via pandoc. Can't Office-Word load html and save it as docx? -- Peter

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

2015-01-14 Thread Marcin Borkowski
On 2015-01-14, at 18:55, Alan BRASLAU wrote: > On Tue, 13 Jan 2015 22:34:21 +0100 > Marcin Borkowski wrote: > >> While I /do/ understand you (it's the same with me, only that I'm more >> comfortable with LaTeX), have you considered Org-mode? It's >> similar to markdown (though better IMHO), bu

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

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Pablo, On Wed, 14 Jan 2015 13:15:38 -0700, Pablo Rodriguez wrote: There must be some way to get this into Word... pandoc may be the way. I say “may be” instead of “is” because pandoc ignores some attributes when converting from XHTML (http://pandoc.org/try/?text=%3Cp%3EThis+is+samp

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

2015-01-14 Thread Pablo Rodriguez
On 01/14/2015 06:55 PM, Alan BRASLAU wrote: > Using ConTeXt (not emacs, markdown, or other such things...) you can > indeed export to xml, xhtml, and create epub files. > [...] > The xhtml file can be read in a browser. > (some tools seem to have problem with the hyphen=yes option) I don’t know wh

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

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 14 Jan 2015 12:58:35 -0700, Idris Samawi Hamid ادريس سماوي حامد wrote: It's one of those weird things: Alan sent me the same file as a text attachment and it ran just fine. But the text I copied from his first email did not. Doing a quick compare of the two files in Notepad++ ind

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

2015-01-14 Thread Pablo Rodriguez
On 01/13/2015 08:59 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: > Dear gang, > > I'm currently writing a paper with very basic typographical needs: > blockquotes, emphasis, bibliography, perhaps a graphic or two. The > publisher wants the thing in Word, naturally. The last time I did > so

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

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 14 Jan 2015 11:58:15 -0700, Idris Samawi Hamid ادريس سماوي حامد wrote: Your example doesn't work here. After 800 lines of overfull hboxes I get tex error > error on line 19 in file darwin.tex: ! TeX capacity exceeded, sorry [text input levels=127] l.19 \input darwin

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

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Alan, On Wed, 14 Jan 2015 10:55:50 -0700, Alan BRASLAU wrote: \enablemode[export] \startmode[export] \setupbackend [export=yes, xhtml=yes, css=export-example.css] \setupexport [hyphen=yes, width=60em] \stopmode \starttext \startquotation \input

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

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Marcin, On Tue, 13 Jan 2015 14:34:21 -0700, Marcin Borkowski wrote: On 2015-01-13, at 20:59, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, I'm currently writing a paper with very basic typographical needs: blockquotes, emphasis, bibliography, perhaps a graphic or two. The

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

2015-01-14 Thread Alan BRASLAU
On Tue, 13 Jan 2015 22:34:21 +0100 Marcin Borkowski wrote: > > On 2015-01-13, at 20:59, Idris Samawi Hamid ادريس سماوي حامد > wrote: > > > Dear gang, > > > > I'm currently writing a paper with very basic typographical needs: > > blockquotes, emphasis, bibliography, perhaps a graphic or two.

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

2015-01-13 Thread Marcin Borkowski
On 2015-01-13, at 20:59, Idris Samawi Hamid ادريس سماوي حامد wrote: > Dear gang, > > I'm currently writing a paper with very basic typographical needs: > blockquotes, emphasis, bibliography, perhaps a graphic or two. The > publisher wants the thing in Word, naturally. The last time I did

[NTG-context] context -> docx ??

2015-01-13 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, I'm currently writing a paper with very basic typographical needs: blockquotes, emphasis, bibliography, perhaps a graphic or two. The publisher wants the thing in Word, naturally. The last time I did something like this I set up a markdown document and just exported it to both