[NTG-context] Question related to the placement of figures

2013-10-08 Thread Flavien Lambert
Dear all, I would like to wrap text around two figures. I tried to use both placefigure and starthangaround without achieving what I wanted. So I moved towards you to get some explanations on the behavior of the commands. I have two figures and one paragraph. If possible, I would like to place

[NTG-context] Hooking stoptext

2013-10-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to hook commands.stoptext()... Here's a minimal example: why only the first image appears? \startluacode local cmd_p local tab = {} f = function(a) if not cmd_p then cmd_p = commands.stoptext commands.stoptext = function(...) context(Hook)

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Aditya Mahajan
On 2013-10-08, at 7:22 AM, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: Hello, I'm trying to hook commands.stoptext()... Here's a minimal example: why only the first image appears? \startluacode local cmd_p local tab = {} f = function(a) if not cmd_p

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Marco Patzer
On 2013–10–08 Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'm trying to hook commands.stoptext()... There is already a hook for that. No need to tinker with Lua. \setupexternalfigures [location=default] \setupdocument [after=\setups{document:after}] \startsetups [document:after]

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Marco Patzer
On 2013–10–08 Marco Patzer wrote: On 2013–10–08 Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'm trying to hook commands.stoptext()... There is already a hook for that. No need to tinker with Lua. \setupexternalfigures [location=default] \setupdocument

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 08 Oct 2013 13:40:26 +0200, Marco Patzer li...@homerow.info wrote: On 2013–10–08 Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'm trying to hook commands.stoptext()... There is already a hook for that. No need to tinker with Lua. \setupexternalfigures [location=default]

Re: [NTG-context] Question related to the placement of figures

2013-10-08 Thread Hans Hagen
On 10/8/2013 11:45 AM, Flavien Lambert wrote: Dear all, I would like to wrap text around two figures. I tried to use both placefigure and starthangaround without achieving what I wanted. So I moved towards you to get some explanations on the behavior of the commands. I have two figures and one

[NTG-context] Mathematics (\lim, \int, ...)

2013-10-08 Thread Alan BRASLAU
Is something gone funny with mathematics? \starttext $\lim_1^2$ $\int_1^2$ \stoptext Undefined control sequence ... 1 \starttext 2 $\lim_1^2$ 3 4 $\int_1^2$ 5 \stoptext 6 recently read \lim_ l.2 $\lim_ 1^2$ ? ! Undefined control sequence. 1

Re: [NTG-context] Mathematics (\lim, \int, ...)

2013-10-08 Thread Marco Patzer
On 2013–10–08 Alan BRASLAU wrote: Is something gone funny with mathematics? http://thread.gmane.org/gmane.comp.tex.context/84607/focus=84616 It was a bug which has been fixed in the current beta. Marco signature.asc Description: Digital signature

[NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Stéphanie Vilayphiou
Hello, I'm making a flushleft document with no hyphenation. However, URLs are then not hyphenated either and end up in the margin. \hyphenateurl{} works only when setupalign[] is set to hyphenated. Is there a way to hyphenate only URLs? Thanks, Stéphanie -- Stéphanie Vilayphiou stdin

Re: [NTG-context] wrong positioning of MP graphic in layer

2013-10-08 Thread Pablo Rodríguez
On 10/07/2013 10:48 PM, Hans Hagen wrote: On 10/7/2013 10:04 PM, Pablo Rodríguez wrote: [...] I need to insist on this sample, because the layer doesn’t behave as such: \definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start] \setuplayer[wrongpositioned]{\startMPcode draw

Re: [NTG-context] wrong positioning of MP graphic in layer

2013-10-08 Thread Pablo Rodríguez
On 10/07/2013 11:01 PM, luigi scarso wrote: On Mon, Oct 7, 2013 at 10:04 PM, Pablo Rodríguez wrote: I need to insist on this sample, because the layer doesn’t behave as such: \definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]

Re: [NTG-context] Mathdesign GD with simplefonts

2013-10-08 Thread Wolfgang Schuster
Am 07.10.2013 um 09:06 schrieb Magnus J mjo.li...@gmail.com: Hello list, Long term (silent) on-and-off user with two issues that require some support: 1. How can I use the Mathdesign GD math font in ConTeXt? I use simplefonts to load Adobe Garamond Pro, but mathdesigngd (name as

[NTG-context] layers in empty pages

2013-10-08 Thread Pablo Rodríguez
Dear list, I have the following sample: \setuppagenumbering[alternative=doublesided] \definelayer[MyLayer][state=continue] \setlayer[MyLayer]{This is my layer.} \setupbackgrounds[page][background={MyLayer}] \starttext \input knuth \stoptext I need the text to be

Re: [NTG-context] Mathdesign GD with simplefonts

2013-10-08 Thread Magnus J
I have the fonts and they are reported as mathdesigngd by the mtxrun fonts script -- sorry if this was unclear. How do I proceed from here? Regards, Magnus On Tue, Oct 8, 2013 at 5:30 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 07.10.2013 um 09:06 schrieb Magnus J

Re: [NTG-context] Mathdesign GD with simplefonts

2013-10-08 Thread Wolfgang Schuster
Am 08.10.2013 um 17:42 schrieb Magnus J mjo.li...@gmail.com: I have the fonts and they are reported as mathdesigngd by the mtxrun fonts script -- sorry if this was unclear. How do I proceed from here? This should work (can’t test it myself): \usetypescriptfile[mathdesign]

Re: [NTG-context] Mathdesign GD with simplefonts

2013-10-08 Thread Magnus J
With mathdesigngd (which is intended to complement Adobe Garamond Pro, and the one that I want), I get fontstypescripts unknown library 'mathdesigngd' in the output. With mathdesigngm, I get (cropped output) system tex error on line 8 in file /tmp/test.tex: LuaTeX error

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Hans Hagen
On 10/8/2013 4:34 PM, Stéphanie Vilayphiou wrote: Hello, I'm making a flushleft document with no hyphenation. However, URLs are then not hyphenated either and end up in the margin. \hyphenateurl{} works only when setupalign[] is set to hyphenated. Is there a way to hyphenate only URLs? You

Re: [NTG-context] Trouble with Cyrillic

2013-10-08 Thread Dmitry Tokarev
08.10.2013, 00:17, Hans Hagen pra...@wxs.nl:  On 10/7/2013 7:10 PM, Dmitry Tokarev wrote:   lozencondenced.lgf:   return {    name = lozencondenced,    version = 1.00,    comment = Goodies that complement dingbats (funny names).,    author = Hans Hagen,    copyright =

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–08 Hans Hagen wrote: \hyphenateurl{} works only when setupalign[] is set to hyphenated. Is there a way to hyphenate only URLs? You need to provide a few more options to \setupalign: Why? \appendtoks\tttf\to\everyhyphenatedurl % maybe we need a proper setup Isn't that what

Re: [NTG-context] Mathdesign GD with simplefonts

2013-10-08 Thread Wolfgang Schuster
Am 08.10.2013 um 18:26 schrieb Magnus J mjo.li...@gmail.com: With mathdesigngd (which is intended to complement Adobe Garamond Pro, and the one that I want), I get fontstypescripts unknown library 'mathdesigngd' in the output. With mathdesigngm, I get (cropped output) 1.

[NTG-context] stretch framed text to width

2013-10-08 Thread Pablo Rodriguez
Dear list, I have a very simple request, but I wasn’t able to find information on the wiki or the ConTeXt manual. Here is the sample: \starttext \framed[width=40mm]{word} \stoptext How can I get the word stretched to the frame width? Many thanks for your help, Pablo --

Re: [NTG-context] stretch framed text to width

2013-10-08 Thread Wolfgang Schuster
Am 08.10.2013 um 20:04 schrieb Pablo Rodriguez oi...@gmx.es: Dear list, I have a very simple request, but I wasn’t able to find information on the wiki or the ConTeXt manual. Here is the sample: \starttext \framed[width=40mm]{word} \stoptext How can I get the word stretched to

Re: [NTG-context] Trouble with Cyrillic

2013-10-08 Thread Hans Hagen
On 10/8/2013 7:23 PM, Dmitry Tokarev wrote: Thanks Hans, the fontforge was the easiest way. I did the following: 1. File-Open 2. Encoding-Force Encoding-ISO 10646-1 (Unicode, Full) 3. File-Generate Fonts... Now all the Cyrillic characters are present in generated pdf-file. ok, maybe make a

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Hans Hagen
On 10/8/2013 7:35 PM, Marco Patzer wrote: On 2013–10–08 Hans Hagen wrote: \hyphenateurl{} works only when setupalign[] is set to hyphenated. Is there a way to hyphenate only URLs? You need to provide a few more options to \setupalign: Why? \appendtoks\tttf\to\everyhyphenatedurl % maybe

Re: [NTG-context] Repeat second-level registers within index

2013-10-08 Thread mathew
OK, I've reduced my observed problems with index generation to a simple test case: \starttext \placeindex \page \index{one}whatever % Shows up [1] \index{one+sub}whatever % Shows up correctly as sub-entry \index{two}whatever % Shows up [2] \index{one}whatever % Skipped because duplicate of

Re: [NTG-context] Mathdesign GD with simplefonts

2013-10-08 Thread Magnus J
Wonderful, this is really appreciated. Regards, Magnus On Tue, Oct 8, 2013 at 7:38 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 08.10.2013 um 18:26 schrieb Magnus J mjo.li...@gmail.com: With mathdesigngd (which is intended to complement Adobe Garamond Pro, and the one

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–08 Hans Hagen wrote: On 10/8/2013 7:35 PM, Marco Patzer wrote: On 2013–10–08 Hans Hagen wrote: \hyphenateurl{} works only when setupalign[] is set to hyphenated. Is there a way to hyphenate only URLs? You need to provide a few more options to \setupalign: Why?

Re: [NTG-context] stretch framed text to width

2013-10-08 Thread Pablo Rodriguez
On 10/08/2013 08:15 PM, Wolfgang Schuster wrote: Am 08.10.2013 um 20:04 schrieb Pablo Rodriguez oi...@gmx.es: [...] How can I get the word stretched to the frame width? \starttext \framed[width=40mm]{word} \framed[width=40mm]{\stretched[features=none,width=\framedwidth]{word}} \stoptext

Re: [NTG-context] Repeat second-level registers within index

2013-10-08 Thread Hans Hagen
On 10/8/2013 8:39 PM, mathew wrote: OK, I've reduced my observed problems with index generation to a simple test case: \starttext \placeindex \page \index{one}whatever % Shows up [1] \index{one+sub}whatever % Shows up correctly as sub-entry \index{two}whatever % Shows up [2]

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Stéphanie Vilayphiou
Hello, thank you for your answers. As Marco stated, the first minimal example you gave didn't hyphenate URLs. I'd like to try a minimal example of your second email, Hans, but I can't figure out how to use those functions? Can you make another minimal example so that I can understand better how

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–08 Stéphanie Vilayphiou wrote: I'd like to try a minimal example of your second email, Hans, but I can't figure out how to use those functions? Can you make another minimal example so that I can understand better how this works? It's sufficient to copy-paste the code into your

[NTG-context] Math in current beta

2013-10-08 Thread Alan BRASLAU
Math seems terribly broken in current beta. Minimal example: anything... :) Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Math in current beta

2013-10-08 Thread Peter Münster
On Tue, Oct 08 2013, Alan BRASLAU wrote: Math seems terribly broken in current beta. Minimal example: anything... :) Works for me: \starttext $a = b$ \stoptext mtx-context | current version: 2013.10.08 21:49 -- Peter

Re: [NTG-context] Conditional float references

2013-10-08 Thread Marco Patzer
On 2013–09–22 Marco Patzer wrote: a couple of times the question came up¹²³ how to create more intelligent referencing. There are already mechanisms in the core, namely \somewhere and \atpage but they both have drawbacks. \somewhere happily prints its text if the figure is placed on the same

Re: [NTG-context] Math in current beta

2013-10-08 Thread Otared Kavian
Which version are you using? I didn't notice any difficulty in math typesetting with version: 2013.10.07 23:31. Best regards: OK On 8 oct. 2013, at 22:49, Alan BRASLAU alan.bras...@cea.fr wrote: Math seems terribly broken in current beta. Minimal example: anything... :) Alan

Re: [NTG-context] Math in current beta

2013-10-08 Thread Hans Hagen
On 10/8/2013 10:49 PM, Alan BRASLAU wrote: Math seems terribly broken in current beta. Minimal example: anything... :) nothing changed ... there was a missing \protect someplace in a newly added file that made _ behave unusual but that was fixed Hans

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Stéphanie Vilayphiou
Ah ok, I tried it in Context live first and it didn't output a PDF, but it works like a charm on my server. See an example here, page 24: http://esadgv.stdin.fr/media/pdf/esad-gv_catalogue_2012-2013.pdf Thanks a lot for your help! Stéphanie Le mar. 08 oct. 2013 22:37:27 CEST, Marco Patzer a

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–09 Stéphanie Vilayphiou wrote: Ah ok, I tried it in Context live first and it didn't output a PDF, ConTeXt live runs 2012.05.30 11:26. However, the hyphenation macros were redone in beta 2013.03.04 18:28 and macros such as \sethyphenationvariables were replaced by

Re: [NTG-context] Repeat second-level registers within index

2013-10-08 Thread mathew
On Tue, Oct 8, 2013 at 2:57 PM, Hans Hagen pra...@wxs.nl wrote: fixed in upload Thanks so much! mathew -- URL:http://www.pobox.com/~meta/ ___ If your question is of interest to others as well, please add an

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Aditya Mahajan
On Wed, 9 Oct 2013, Stéphanie Vilayphiou wrote: Ah ok, I tried it in Context live first and it didn't output a PDF, but it works like a charm on my server. See an example here, page 24: http://esadgv.stdin.fr/media/pdf/esad-gv_catalogue_2012-2013.pdf Why does context break urls **before**

[NTG-context] Anomaly in stretch framed text to width

2013-10-08 Thread hwitloc
Wolfgang Schuster wrote: snipped .. \starttext \framed[width=40mm]{word} \framed[width=40mm]{\stretched[features=none,width=\framedwidth]{word}} \stoptext I also appreciate the example provided by Wolfgang. I have found an anomaly which produces incorrect results on my system.