[NTG-context] Custom function

2011-06-04 Thread Stéphanie Vilayphiou
Hello, I'm rather new to ConTeXt and would like to simplify my document, in order to simplify processing of documents. I have this: \defineparagraphs[infos][n=1] \setupparagraphs[infos][1][ style={\switchtobodyfont[6pt]}, %command=, ] \starttext \startinfos

Re: [NTG-context] entity-relation diagram

2011-06-04 Thread Vedran Miletić
2011/6/4 Cecil Westerhof cldwester...@gmail.com: Is it possible to make an entity-relation diagram with ConTeXt, or can I better look for another tool? -- Cecil Westerhof MetaPost has expressg package (not sure if it works with ConTeXt), and there is also TikZ-based solution:

[NTG-context] testing TeX Live 2011

2011-06-04 Thread Mojca Miklavec
Hello, apart from a pending fix for TeX Live installer (shell script install-tl) which writes out a proper texmfcnf.lua based on what user enters as his/her preferences for locations of TEXMFHOME etc. (if you don't touch any settings, this is not too important and if you do, you can manually fix

Re: [NTG-context] Custom function

2011-06-04 Thread Wolfgang Schuster
Am 03.06.2011 um 16:50 schrieb Stéphanie Vilayphiou: Hello, I'm rather new to ConTeXt and would like to simplify my document, in order to simplify processing of documents. I have this: \defineparagraphs[infos][n=1] \setupparagraphs[infos][1][ style={\switchtobodyfont[6pt]},

Re: [NTG-context] testing TeX Live 2011

2011-06-04 Thread Taco Hoekwater
Hi, For those of you who are not 'in the loop', so to say: instructions for running the texlive 2011 pretest are here: http://tug.org/texlive/pretest.html Best wishes, Taco ___ If your question is of interest to

Re: [NTG-context] DocBook in ConTeXt - any new ideas?

2011-06-04 Thread R. Ermers
Op 3 jun 2011, om 18:28 heeft Hans Hagen het volgende geschreven: On 3-6-2011 5:43, R. Ermers wrote: I tried typesetting docbook with Context, it can be done, I but got stuck on the cals tables and some other things. Cals tables can be processed, albeit as separate documents only - not

Re: [NTG-context] undefined control sequence bug with German umlaut in bibliography

2011-06-04 Thread Julian Becker
Thank you everybody for your answers. Writing Tr{\a}ger as Thomas suggested works well, but unfortunately, I'm using Mendeley Desktop for the management of my bibtex file and I can't seem to be able to influence the way in which it encodes the special characters. @Mojca: Indeed, it also fails if

Re: [NTG-context] testing TeX Live 2011

2011-06-04 Thread Vedran Miletić
2011/6/4 Taco Hoekwater t...@elvenkind.com: Hi, For those of you who are not 'in the loop', so to say: instructions for running the texlive 2011 pretest are here:  http://tug.org/texlive/pretest.html Best wishes, Taco Awesome. Vedran

Re: [NTG-context] DocBook in ConTeXt - any new ideas?

2011-06-04 Thread Hans Hagen
On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never

Re: [NTG-context] undefined control sequence bug with German umlaut in bibliography

2011-06-04 Thread Julian Becker
I can also add that in the first case with the author name Träger, the generated bbl-file looks messed up and (Notepad++ doesn't recognize the encoding as UTF8. Changing the encoding to UTF8 manually shows the complete names Träger correctly, but the abbreviations (what should have been Trä06)

Re: [NTG-context] undefined control sequence bug with German umlaut in bibliography

2011-06-04 Thread Taco Hoekwater
On 06/04/2011 11:23 AM, Julian Becker wrote: Thank you everybody for your answers. Writing Tr{\a}ger as Thomas suggested works well, but unfortunately, I'm using Mendeley Desktop for the management of my bibtex file and I can't seem to be able to influence the way in which it

Re: [NTG-context] DocBook in ConTeXt - any new ideas?

2011-06-04 Thread R. Ermers
Op 4 jun 2011, om 11:06 heeft Hans Hagen het volgende geschreven: On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at

Re: [NTG-context] undefined control sequence bug with German umlaut in bibliography

2011-06-04 Thread Pontus Lurcock
On Sat 04 Jun 2011, Julian Becker wrote: I'm not familiar with the intricacies and details of UTF8 encoding, but is it possible that there is a byte missing from the ä which has been cut off during the abbreviation process? Well, there *is* more than one way to represent ä in UTF-8, but it's

Re: [NTG-context] marginal material in Arabic, tei/xml context mkiv

2011-06-04 Thread Hans Hagen
On 4-6-2011 1:41, Jon Crump wrote: \def\ArabicGlobalDir {\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT} \def\ArabicParDir{\textdir TRT\pardir TRT} \def\ArabicTextDir {\textdir TRT} \def\LatinParDir {\textdir TLT\pardir TLT} \def\LatinTextDir{\textdir TLT} \def\LatinGlobalDir

Re: [NTG-context] undefined control sequence bug with German umlaut in bibliography

2011-06-04 Thread Julian Becker
I think I'll go for the piping option then, which seems to be the easiest way out. Thanks for the insights, I didn't actually know much about the interplay of context and bibtex until this little problem occured to me... Julian 2011/6/4 Pontus Lurcock p...@talvi.net On Sat 04 Jun 2011,

Re: [NTG-context] DocBook in ConTeXt - any new ideas?

2011-06-04 Thread Aditya Mahajan
On Jun 4, 2011, at 5:06 AM, Hans Hagen pra...@wxs.nl wrote: On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the

Re: [NTG-context] No chapter prefixes in section numbers

2011-06-04 Thread Wolfgang Schuster
Am 03.06.2011 um 21:43 schrieb Mathieu DUPONT: Is there an exhaustive list of all the parameters the \setuphead function can take ? Neither the 2011 ConTeXt Commands Manual nor the Wiki Command Reference page mention this one (sectionsegments). Where can I find all the parameters

Re: [NTG-context] DocBook in ConTeXt - any new ideas?

2011-06-04 Thread R. Ermers
Op 4 jun 2011, om 14:24 heeft Aditya Mahajan het volgende geschreven: On Jun 4, 2011, at 5:06 AM, Hans Hagen pra...@wxs.nl wrote: On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy),

[NTG-context] Chapter name in new line

2011-06-04 Thread Marco
How can I get the chapter name in a new line, like: Chapter 1 Foo Bar The following yields to “Chapter1Foo Bar”. \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{#1\blank#2} \setuphead [chapter] [command=\MyChapter] \starttext \chapter{Foo Bar} \stoptext Marco

Re: [NTG-context] Chapter name in new line

2011-06-04 Thread Wolfgang Schuster
Am 04.06.2011 um 16:24 schrieb Marco: How can I get the chapter name in a new line, like: Chapter 1 Foo Bar The following yields to “Chapter1Foo Bar”. \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{#1\blank#2} \define[2]\MyChapter

Re: [NTG-context] Chapter name in new line

2011-06-04 Thread luigi scarso
On Sat, Jun 4, 2011 at 4:24 PM, Marco net...@lavabit.com wrote: How can I get the chapter name in a new line, like: Chapter 1 Foo Bar The following yields to “Chapter1Foo Bar”. \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{#1\blank#2} \setuphead [chapter]

Re: [NTG-context] Problem installing minimals on PowerMac G4

2011-06-04 Thread Robert Blackstone
On Fri, Jun 3, 2011 20:27:56 +0200 Mojca Miklavec wrote Please send a complete log. The saved Terminal output of an installation of the minimals which I tried this morning can be downloaded here:

Re: [NTG-context] Chapter name in new line

2011-06-04 Thread Marco
If you don't want to use framedtext (cfr wolfgang) \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{\vbox{#1\blank#2}} \setuphead [chapter] [command=\MyChapter] \starttext \chapter{Foo Bar} \stoptext Thanks to both of you. Added to the wiki. Marco

Re: [NTG-context] Custom function

2011-06-04 Thread Peter Münster
On Sat, Jun 04 2011, Wolfgang Schuster wrote: Edition de Trilogie de l'enfer en novembre 2011 chez Sens Tonka Should be: Édition (common error in French) -- Peter ___ If your question is of

Re: [NTG-context] xml syntax for \externalfigure

2011-06-04 Thread Thomas A. Schmitz
On Jun 4, 2011, at 12:14 AM, Peter Münster wrote: \startluacode function my_externalfigure(file, t) local args_present for k, v in pairs(t) do if v == then t[k] = nil else args_present = true end end

[NTG-context] math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.

2011-06-04 Thread Paul Menzel
Dear ConTeXt folks, I want to define `\abs` as the command for the absolute value. The following minimal example is also attached. \define\abs[1]{\lvert #1 \rvert} \starttext $\lvert 2 \rvert$ $\abs{2}$ \stoptext This does not work though.

Re: [NTG-context] math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.

2011-06-04 Thread Peter Münster
On Sat, Jun 04 2011, Paul Menzel wrote: I want to define `\abs` as the command for the absolute value. The following minimal example is also attached. \define\abs[1]{\lvert #1 \rvert} Don't ask me why \define doesn't work (certainly related to expansion), but \def does the job:

Re: [NTG-context] math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.

2011-06-04 Thread Otared Kavian
Hi I think the error comes from your way of using \define: you use \define\abs[1]{\lvert #1 \rvert} instead of \define[1]\abs{\lvert#1\rvert} the following works fine for me: \starttext %\define[1]\abs{|#1|} % this works \define[1]\abs{\lvert#1\rvert} % this works too

Re: [NTG-context] Problem installing minimals on PowerMac G4

2011-06-04 Thread Mojca Miklavec
On Sat, Jun 4, 2011 at 16:40, Robert Blackstone wrote: When I try to process a file with mkiv, the log says: The argument /Users/robertblackstone/Dropbox/C-tests/Titles-interline_spacing_of/Titles-interline_spacing_of-test1PM.tex is not a valid TEXROOT path. How exactly do you run MKIV?