Re: [NTG-context] adapt fontsize to given width

2015-01-14 Thread Wolfgang Schuster
Am 14.01.2015 um 18:58 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com: Am 14.01.2015 um 17:50 schrieb Pablo Rodriguez oi...@gmx.es: Dear list, I have the following sample: \showframe \starttext {\setupbodyfont[120pt]My Title} \stoptext Is there a way to make

Re: [NTG-context] Center two frames

2015-01-14 Thread Pablo Rodriguez
On 01/14/2015 06:50 PM, Fabrice wrote: Dear Pablo, Following a post to which you had already answered, I have been able to do using a XTABLE. But I wanted to know if it was possible to do otherwise. But apparently not, so I'll hold your solution. Hi Fabrice, I guess that placing an

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

2015-01-14 Thread Marcin Borkowski
On 2015-01-14, at 18:55, Alan BRASLAU alan.bras...@cea.fr wrote: On Tue, 13 Jan 2015 22:34:21 +0100 Marcin Borkowski mb...@wmi.amu.edu.pl 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

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

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

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 oi...@gmx.es 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

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 Idris Samawi Hamid ادريس سماوي حامد
Hi Marcin, On Tue, 13 Jan 2015 14:34:21 -0700, Marcin Borkowski mb...@wmi.amu.edu.pl wrote: On 2015-01-13, at 20:59, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: Dear gang, I'm currently writing a paper with very basic typographical needs: blockquotes, emphasis,

Re: [NTG-context] adapt fontsize to given width

2015-01-14 Thread Pablo Rodriguez
On 01/14/2015 07:59 PM, Wolfgang Schuster wrote: [...] Another solution is to use the \scale command: \starttext \scale[width=\textwidth]{My Title} \stoptext Many thanks for the new rely, Wolfgang. I think this is easier to remember. And replying to my previous question \dontleavehmode

Re: [NTG-context] adapt fontsize to given width

2015-01-14 Thread Pablo Rodriguez
On 01/14/2015 07:05 PM, Alan BRASLAU wrote: [...] There is a MP solution: \starttext \startMPcode draw textext(My Title) xsized TextWidth ; \stopMPcode \stoptext Many thanks for your reply, Alan. It’s good to know that MP fits perfectly here. Many thanks for your help, Pablo --

Re: [NTG-context] Catalan especial character (l·l) in ConTeXt

2015-01-14 Thread Wolfgang Schuster
Am 14.01.2015 um 19:28 schrieb 19cat d...@nou.cat: Hello, again. I have another issue. When I put \definefontfeature command into environment file, doesn't work. I must put in product file, before \startproduct command. You know why? Load the environment before \startproduct or

Re: [NTG-context] adapt fontsize to given width

2015-01-14 Thread Pablo Rodriguez
On 01/14/2015 06:58 PM, Wolfgang Schuster wrote: [...] Is there a way to make ConTeXt automatically calculate the size of the \setupbodyfont, so that the passage fits exactly to text width? \starttext \WidthSpanningText{My Title}{\textwidth}{Serif} \WidthSpanningText{My

Re: [NTG-context] adapt fontsize to given width

2015-01-14 Thread Wolfgang Schuster
Am 14.01.2015 um 20:36 schrieb Pablo Rodriguez oi...@gmx.es: On 01/14/2015 06:58 PM, Wolfgang Schuster wrote: [...] Is there a way to make ConTeXt automatically calculate the size of the \setupbodyfont, so that the passage fits exactly to text width? \starttext \WidthSpanningText{My

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

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

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 alan.bras...@cea.fr wrote: \enablemode[export] \startmode[export] \setupbackend [export=yes, xhtml=yes, css=export-example.css] \setupexport [hyphen=yes, width=60em] \stopmode \starttext

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

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 14 Jan 2015 12:58:35 -0700, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu 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

Re: [NTG-context] adapt fontsize to given width

2015-01-14 Thread Hans Hagen
On 1/14/2015 7:05 PM, Alan BRASLAU wrote: On Wed, 14 Jan 2015 17:50:12 +0100 Pablo Rodriguez oi...@gmx.es wrote: Dear list, I have the following sample: \showframe \starttext {\setupbodyfont[120pt]My Title} \stoptext Is there a way to make ConTeXt automatically calculate

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 Idris Samawi Hamid ادريس سماوي حامد
On Wed, 14 Jan 2015 14:59:01 -0700, Pablo Rodriguez oi...@gmx.es 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

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 one of

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 adit...@umich.edu 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

Re: [NTG-context] Center two frames

2015-01-14 Thread Wolfgang Schuster
Am 14.01.2015 um 13:14 schrieb Pablo Rodriguez oi...@gmx.es: \defineframed [Myframed] [width=0.6\textwidth, foregroundstyle={\switchtobodyfont[10pt]}, align={high,flushleft}, frame=off, framecolor=0.625white, background=borderline, ] You can replace the framed

Re: [NTG-context] Catalan especial character (l·l) in ConTeXt

2015-01-14 Thread 19cat
Thanks to All, But your solutions do not like me. And I keep trying the option of Fontfeaturefile page in wiki and Adobe feature topic. - http://wiki.contextgarden.net/fontfeaturefiles - http://wiki.contextgarden.net/TrueType_fonts_in_luaTeX -

Re: [NTG-context] Center two frames

2015-01-14 Thread Fabrice
Dear Pablo, Following a post to which you had already answered, I have been able to do using a XTABLE. But I wanted to know if it was possible to do otherwise. But apparently not, so I'll hold your solution. Dear Wolfgang, Why is it better to use a framed text environment?

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

2015-01-14 Thread Alan BRASLAU
On Tue, 13 Jan 2015 22:34:21 +0100 Marcin Borkowski mb...@wmi.amu.edu.pl wrote: On 2015-01-13, at 20:59, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: Dear gang, I'm currently writing a paper with very basic typographical needs: blockquotes, emphasis,

Re: [NTG-context] adapt fontsize to given width

2015-01-14 Thread Wolfgang Schuster
Am 14.01.2015 um 17:50 schrieb Pablo Rodriguez oi...@gmx.es: Dear list, I have the following sample: \showframe \starttext {\setupbodyfont[120pt]My Title} \stoptext Is there a way to make ConTeXt automatically calculate the size of the \setupbodyfont, so that the

[NTG-context] adapt fontsize to given width

2015-01-14 Thread Pablo Rodriguez
Dear list, I have the following sample: \showframe \starttext {\setupbodyfont[120pt]My Title} \stoptext Is there a way to make ConTeXt automatically calculate the size of the \setupbodyfont, so that the passage fits exactly to text width? Many thanks for your help, Pablo --

Re: [NTG-context] Center two frames

2015-01-14 Thread Wolfgang Schuster
Am 14.01.2015 um 18:50 schrieb Fabrice couvreur.fabr...@wanadoo.fr: Dear Pablo, Following a post to which you had already answered, I have been able to do using a XTABLE. But I wanted to know if it was possible to do otherwise. But apparently not, so I'll hold your solution. Dear

Re: [NTG-context] adapt fontsize to given width

2015-01-14 Thread Alan BRASLAU
On Wed, 14 Jan 2015 17:50:12 +0100 Pablo Rodriguez oi...@gmx.es wrote: Dear list, I have the following sample: \showframe \starttext {\setupbodyfont[120pt]My Title} \stoptext Is there a way to make ConTeXt automatically calculate the size of the \setupbodyfont, so

Re: [NTG-context] Catalan especial character (l·l) in ConTeXt

2015-01-14 Thread 19cat
Hello, again. I have another issue. When I put \definefontfeature command into environment file, doesn't work. I must put in product file, before \startproduct command. You know why? This is my tree structure: prd_productname env_productname c_title c_chapter1

Re: [NTG-context] Center two frames

2015-01-14 Thread Pablo Rodriguez
On 01/13/2015 10:43 PM, Fabrice Couvreur wrote: Hi, I wish the second frameis centered with the first frame. I guess this is the figure that prevents this. However, even by reducing the value of u, it does not work. Best regards, Fabrice Hi Fabrice, I think that the figure gives a