Re: [NTG-context] Html to pdf using pragma script

2010-12-21 Thread Henning Hraban Ramm
Am 2010-12-21 um 03:12 schrieb Anand Raj: my need is to convert the html page to pdf and this html contains svg and mathml content. I have linux environment 1. What are things to be installed to fulfill my need 2. how to convert html -- xml -- pdf using context (may be the commands)

Re: [NTG-context] How to get numbered cases'ed equations ?

2010-12-21 Thread Cedric Mauclair
On Mon, Dec 20, 2010 at 16:45, Cedric Mauclair cedric.maucl...@gmail.com wrote: Hi list, How can I get a numbered equation when using cases in MkIV? The hack proposed by Aditya in [1] doesn't work as it uses macros that no longer exist (\makesesctionnumber and others). The reference doesn't

Re: [NTG-context] error with m-database example

2010-12-21 Thread Florian Wobbe
On Dec 20, 2010, at 22:32 , Hans Hagen wrote: On 20-12-2010 5:56, Mojca Miklavec wrote: On Sun, Dec 19, 2010 at 20:37, Florian Wobbe wrote: Hi, The example from http://wiki.contextgarden.net/m-database gives me an error. ! LuaTeX error

Re: [NTG-context] What's the proper way to typeset a slash in a text flow?

2010-12-21 Thread Marco Pessotto
Hans Hagen pra...@wxs.nl writes: On 21-12-2010 12:34, Marco Pessotto wrote: See the following minimal example (I'm not trying to typeset urls or filesystem paths in this way, just regular text): \def\myslash{/\penalty-5000} \starttext \type{/} {\bfd

Re: [NTG-context] Html to pdf using pragma script

2010-12-21 Thread Thomas Schmitz
On Tue, 21 Dec 2010 09:13:00 +0100 Henning Hraban Ramm hra...@fiee.net wrote: Am 2010-12-21 um 03:12 schrieb Anand Raj: my need is to convert the html page to pdf and this html contains svg and mathml content. I have linux environment 1. What are things to be installed to fulfill my need

[NTG-context] Problem with encoding

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, this example stopped working. I don't know exactly when, maybe with the newest Ctx beta. Let's have two sources: --- t.mkiv \mainlanguage[cz] \enableregime[cp1250] \starttext \input t2.mkiv AáSš \stoptext --- And: --- t2.mkiv AáSš --- The t2.mkiv is included by the main file

[NTG-context] Figure shifted down

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to place an \externalfigure deeper to some distance, shifted down, bellow the line or bellow the default position? To get: +--+ Aaa | A figure | bbb +--+ instead of: +--+ | A figure | Aaa +--+ bbb Thank you in advance.

Re: [NTG-context] Html to pdf using pragma script

2010-12-21 Thread Hans Hagen
On 21-12-2010 8:04, Anand Raj wrote: Hi, how to map svg tags from xml and tex file.? Dump the svg blob in a file (say image-1.svg) and then use \extenalfigure[image-1.svg] to place it. Conversion to pdf will happen automatically then. Hans

Re: [NTG-context] Html to pdf using pragma script

2010-12-21 Thread luigi scarso
On Tue, Dec 21, 2010 at 10:01 AM, Hans Hagen pra...@wxs.nl wrote: On 21-12-2010 8:04, Anand Raj wrote: Hi, how to map svg tags from xml and tex file.? Dump the svg blob in a file (say image-1.svg) and then use \extenalfigure[image-1.svg] to place it. Conversion to pdf will happen

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Mojca Miklavec
2010/12/21 Procházka Lukáš Ing. - Pontex s. r. o. wrote: \mainlanguage[cz] (unrelated to your question, but ...) It should probably be cs, not cz. Isn't cz country code and cs language code? The cz is left for backward compatibility reasons. Mojca

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Tue, 21 Dec 2010 10:29:13 +0100, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: 2010/12/21 Procházka Lukáš Ing. - Pontex s. r. o. wrote: \mainlanguage[cz] It should probably be cs, not cz. I'm getting the same error message even with cs. Isn't cz country code and cs

Re: [NTG-context] Html to pdf using pragma script

2010-12-21 Thread Anand Raj
Hi, I have input xml file say *input.xml* ?xml version=1.0 encoding=UTF-8? document div class='question' div Solve by factoring: br/br/ *am math title=3/12mstyle displaystyle=true fontfamily=serifmfracmn 3/mnmn12/mn/mfrac/mstyle/math

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Arthur Reutenauer
Isn't cz country code and cs language code? Indeed -- although it doesn't make much sense that cs be the language code for a language name spelt Czech in English and česky in Czech (I suspect it's related to the fact that cs was also the country code for Czechoslovakia in its time, so that the

[NTG-context] Centering graphics inside a table cell

2010-12-21 Thread Daniel Grycman
Hi list, is it possible to center a graphic inside a table cell? I tried every align-method I know (setupTABLE and startalignment)? Regards, Daniel ___ If your question is of interest to others as well, please add

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Hans Hagen
On 21-12-2010 10:37, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, On Tue, 21 Dec 2010 10:29:13 +0100, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: 2010/12/21 Procházka Lukáš Ing. - Pontex s. r. o. wrote: \mainlanguage[cz] It should probably be cs, not cz. one can always

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Arthur Reutenauer
BTW: What is the difference what the COUNTRY code and the LANGUAGE code affects? In your case, you should use a language code since you want to set a language. ConTeXt has used different sets of codes in the past, but we now try to follow IETF recommendation Tag for Identifying Languages

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Mojca Miklavec
2010/12/21 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: It should probably be cs, not cz. I'm getting the same error message even with cs. As I said: my comment was unrelated to your problem. Isn't cz country code and cs language code? BTW: What is the difference what the

Re: [NTG-context] Centering graphics inside a table cell

2010-12-21 Thread Daniel Grycman
Problem solved. Using ConTeXt can be very easy sometimes :-). I forgot \dontleavehmode. Daniel Am 21.12.2010 um 10:48 schrieb Daniel Grycman: Hi list, is it possible to center a graphic inside a table cell? I tried every align-method I know (setupTABLE and startalignment)? Regards,

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, thanks all for the answers and fixes. Lukas On Tue, 21 Dec 2010 11:11:33 +0100, Arthur Reutenauer arthur.reutena...@normalesup.org wrote: BTW: What is the difference what the COUNTRY code and the LANGUAGE code affects? In your case, you should use a language code since you want

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Arthur Reutenauer
If you were a citizen of Austria or Switzerlad, you would not be able to use \mainlanguage[at] or \mainlanguage[ch] As it happens, at is not the ISO 639 code of any language (and it's doubtful it will be in the near future), but ch is the code for Chamorro

Re: [NTG-context] mkii bug in lucida, again.

2010-12-21 Thread Mojca Miklavec
On Sun, Dec 19, 2010 at 18:34, Yue Wang wrote: BTW, there is also something strange with lucida support in context recently. if I use \usetypescriptfile[type-buy] \usetypescript[lucida][texnansi] \setupbodyfont[lucida,14pt] What does recently mean? (It has changed in early 2010.) I'm using

Re: [NTG-context] mkii bug in lucida, again.

2010-12-21 Thread Mojca Miklavec
On Tue, Dec 21, 2010 at 11:46, Mojca Miklavec wrote: You don't need to use type-buy. The typescripts are in the core now. I asked Hans to change the typescripts, since one had to create own tfm files otherwise. Not it is possible to use the ones provided by TUG. * Not = now

Re: [NTG-context] What's the proper way to typeset a slash in a text flow?

2010-12-21 Thread Wolfgang Schuster
Am 21.12.2010 um 00:34 schrieb Marco Pessotto: See the following minimal example (I'm not trying to typeset urls or filesystem paths in this way, just regular text): \def\myslash{/\penalty-5000} \starttext \type{/} {\bfd

Re: [NTG-context] Compatibility problem Ctx TeXlive2010 x ctx minimals or error in code??

2010-12-21 Thread Wolfgang Schuster
Am 20.12.2010 um 21:39 schrieb Jaroslav Hajtmar: I do not know whether it is compatibility problem or I have a bug somewhere in source code of my module ... Has anyone any ideas? I do not know where to begin the search mistake ... You use with \definenamespace a command which was introduced

[NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Philipp A.
so i want to use ' and -- in my code, which is embedded via \starttyping \stoptyping, but that’s impossible. context replaces -- with – and ' with ’. that’s wrong. i need to be able to tell context it shouldn’t do any “smart” stuff, since i’m smart enough to press the ’-key if i want the character

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Philipp Gesang
On 2010-12-21 11:11:33, Arthur Reutenauer wrote: BTW: What is the difference what the COUNTRY code and the LANGUAGE code affects? In your case, you should use a language code since you want to set a language. ConTeXt has used different sets of codes in the past, but we now try to

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Philipp Gesang
On 2010-12-21 12:19:15, Philipp Gesang wrote: Attic instead of “grc” or “el-polyton”. (Testfile appended.) Sorry for the mess, test file *now* appended … -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments %

Re: [NTG-context] Help to SPLIT TABLE caption numbering CORRECTLY

2010-12-21 Thread Wolfgang Schuster
Am 17.12.2010 um 11:17 schrieb barndog1...@gmail.com: Hans, PLEASE take a look at \placetable and fix numbering so that when a long table is split the numbering is: 1 1 (continued) 1(continued) With the new beta you can add \defineconversion[continued][{},{ (continued)},{

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Thomas Schmitz
On Tue, 21 Dec 2010 12:19:15 +0100 Philipp Gesang pges...@ix.urz.uni-heidelberg.de wrote: But context uses some non-standard codes also: “deo” instead of “de-1901” for sane German orthography, and “agr” for ancient Attic instead of “grc” or “el-polyton”. (Testfile appended.) Yes, we should

Re: [NTG-context] Figure shifted down

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Perfect, thank you! Lukas On Tue, 21 Dec 2010 12:11:44 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \defineframed[figureframe][frame=off,offset=overlay,location=low] \useexternalfigure[cow][cow][height=2ex] \starttext text \externalfigure[cow]\ text

Re: [NTG-context] What's the proper way to typeset a slash in a text flow?

2010-12-21 Thread Marco Pessotto
Wolfgang Schuster schuster.wolfg...@googlemail.com writes: Am 21.12.2010 um 00:34 schrieb Marco Pessotto: See the following minimal example (I'm not trying to typeset urls or filesystem paths in this way, just regular text): \def\myslash{/\penalty-5000}

Re: [NTG-context] Help to SPLIT TABLE caption numbering CORRECTLY

2010-12-21 Thread Wolfgang Schuster
Am 21.12.2010 um 12:55 schrieb barndog1...@gmail.com: Wolfgang, Thanks! Where and HOW do I get the new beta so I can put it in my MikTeX install??? Ask in the MiKTeX list how to update context, i use for myself the context minimals. Wolfgang

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Arthur Reutenauer
But context uses some non-standard codes also: “deo” instead of “de-1901” for sane German orthography, and “agr” for ancient Attic instead of “grc” or “el-polyton”. (Testfile appended.) Yes, that's what I said: ConTeXt has used non-standard codes in the past, now we try to follow BCP 47,

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Arthur Reutenauer
Yes, we should make grc a synonym of agr. el-polyton is, AFAIK, modern polytonic Greek, which is not the same. Obviously so. Amusingly, ISO states that el is meant for the Greek language after the Fall of Constantinople(*), which assigns a rather long period to Ancient Greek. Note that

Re: [NTG-context] Help to SPLIT TABLE caption numbering CORRECTLY

2010-12-21 Thread Hans Hagen
On 21-12-2010 12:31, Wolfgang Schuster wrote: With the new beta you can add \defineconversion[continued][{},{ (continued)},{ (continued)},{ (continued)},{ (continued)},{ (continued)}] \setupfloatsplitting[conversion=continued] to your document, this will give the desired result for

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Hans Hagen
On 21-12-2010 1:23, Arthur Reutenauer wrote: (*) Of course it doesn't say after the Fall of Constanople that way, it says from 1453 onwards (http://www.sil.org/iso639-3/documentation.asp?id=ell) but that's clearly what is meant. given some historic disputes on tex mailing list we should be

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Hans Hagen
On 21-12-2010 12:19, Philipp Gesang wrote: But context uses some non-standard codes also: “deo” instead of deo = de old (and no one objected at that point) when context was dutch only we used 'du' as that's the abbreviation used in schools Hans

Re: [NTG-context] Figure shifted down

2010-12-21 Thread Peter Münster
On Tue, Dec 21 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: is it possible to place an \externalfigure deeper to some distance, shifted down, bellow the line or bellow the default position? To get: +--+ Aaa | A figure | bbb +--+ This looks to me, like a

[NTG-context] Where do I find the latest beta and

2010-12-21 Thread barney schwartz
Ideas on how I would enable it to be used inside miktex would be very very helpful. I need to use this clever trick by Hans: With the new beta you can add \defineconversion[continued][{},{ (continued)},{ (continued)},{ (continued)},{ (continued)},{ (continued)}]

Re: [NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Philipp A.
2010/12/21 Wolfgang Schuster schuster.wolfg...@googlemail.com Make a example where this occurs, in the following example all dashes are correct in the typing environment with mkii and mkiv. \starttext \startlines - -- --- \stoplines \starttyping - -- --- \stoptyping \stoptext

[NTG-context] Non-linebreaking \setup[head|paragraph]

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd like to \define or \setuphead or \setupparagraph (or \setupwhat?) a command which would produce the similar thing as the native LaTeX \paragraph{name} does. This command should sublevel the \subsubsection (so it would generate numbers when being used), it would have an extra space

Re: [NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Wolfgang Schuster
Am 21.12.2010 um 15:19 schrieb Philipp A.: ok, sorry, \type{--} doesn’t work. (i thought i used the environment, but i only used the macro) it should work in \type, too, though. For mkii you need the texnansi encoding for the fonts, mkiv has no problems with \type but haven’t told which

Re: [NTG-context] Figure shifted down

2010-12-21 Thread Wolfgang Schuster
Am 21.12.2010 um 14:29 schrieb Peter Münster: On Tue, Dec 21 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: is it possible to place an \externalfigure deeper to some distance, shifted down, bellow the line or bellow the default position? To get: +--+ Aaa | A figure | bbb

Re: [NTG-context] Non-linebreaking \setup[head|paragraph]

2010-12-21 Thread Wolfgang Schuster
Am 21.12.2010 um 16:39 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I'd like to \define or \setuphead or \setupparagraph (or \setupwhat?) a command which would produce the similar thing as the native LaTeX \paragraph{name} does. This command should sublevel the

Re: [NTG-context] Non-linebreaking \setup[head|paragraph]

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks, Wolfgang, it works fine. BTW: Is there a place ([source] file) where to find the default 'after' and 'before' commands for \part, \chapter, \section etc.? And also the default Ctx spacing before/after these heads? Lukas On Tue, 21 Dec 2010 17:36:18 +0100, Wolfgang Schuster

[NTG-context] Interesting package for XeTeX

2010-12-21 Thread Thomas Schmitz
Hi all, on ctt, I just saw an annoucement for a xe(la)tex package which I found quite interesting. Here's the description: Location on CTAN: /macros/xetex/latex/ucharclasses This package addresses one of the few features where TeX still has to play catch-up to word processing programs:

Re: [NTG-context] Interesting package for XeTeX

2010-12-21 Thread Hans Hagen
On 21-12-2010 6:37, Thomas Schmitz wrote: I was wondering: is something similar possible in mkiv yet? I know that with the font fallback mechanism, it's trivial to change fonts for unicode ranges, but is it possible to change hyphenation patterns (or even insert arbitrary code) according to

Re: [NTG-context] Non-linebreaking \setup[head|paragraph]

2010-12-21 Thread Hans Hagen
On 21-12-2010 4:39, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I'd like to \define or \setuphead or \setupparagraph (or \setupwhat?) a command which would produce the similar thing as the native LaTeX \paragraph{name} does. This command should sublevel the \subsubsection (so it would

[NTG-context] problem with \vcenter and \showboxes

2010-12-21 Thread Peter Münster
Hello, The placement of the second \hbox{} is wrong: \starttext X\vcenter{\hbox{X}}{X} \showboxes X\vcenter{\hbox{X}}{X} \stoptext Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is

Re: [NTG-context] problem with \vcenter and \showboxes

2010-12-21 Thread Bill O'Connor
Peter Münster pmli...@free.fr writes: Hello, The placement of the second \hbox{} is wrong: \starttext X\vcenter{\hbox{X}}{X} \showboxes X\vcenter{\hbox{X}}{X} \stoptext Shouldn't that be: \starttext X\vcenter{\hbox{X}}{X} X\vcenter{\hbox{X}}{X} \showboxes \stoptext

Re: [NTG-context] Non-linebreaking \setup[head|paragraph]

2010-12-21 Thread Wolfgang Schuster
Am 21.12.2010 um 18:21 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Thanks, Wolfgang, it works fine. BTW: Is there a place ([source] file) where to find the default 'after' and 'before' commands for \part, \chapter, \section etc.? For MkIV you can find the defaults in strc-def.mkiv.

Re: [NTG-context] Where do I find the latest beta and

2010-12-21 Thread Mojca Miklavec
On Tue, Dec 21, 2010 at 14:48, barney schwartz wrote: I use MikTeX and could muddle my way through updating it if someone could suggest where to get the latest beta of COnTeXt and the mentioned example from the testbed. ConTeXt can be fetched from http://www.pragma-ade.com/download-2.htm, but