[NTG-context] spaces in xml index

2013-06-26 Thread Thomas A. Schmitz
Hi all, back with a question on index entries in xml. I have the problem that my processing command inserts empty spaces. \removeunwantedspaces does not remove the unwanted spaces; \ignorespaces removes even wanted spaces. Can anybody help? Thanks and all best Thomas \starttext

[NTG-context] context command behaviour

2013-06-26 Thread Meer, H. van der
The help (command context) tells me: mtx-context | --noconsoledisable logging to the console (logfile only) mtx-context | --batchmoderun without stopping and do not show messages on the console However, neither lives up to its promise. See the two sample runs

[NTG-context] \centerline vs. \midaligned vs. \startalignment[middle]

2013-06-26 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, there are several similar commands to produce text (or another object) to be centered on the line. What are differences (or intended usage) among \centerline, \midaligned, \startalignment[middle]? (NB: \centerline has no its-own page on wiki, but it is used at several places in wiki

Re: [NTG-context] \centerline vs. \midaligned vs. \startalignment[middle]

2013-06-26 Thread Wolfgang Schuster
Am 26.06.2013 um 14:07 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, there are several similar commands to produce text (or another object) to be centered on the line. What are differences (or intended usage) among \centerline, \midaligned,

Re: [NTG-context] spaces in xml index

2013-06-26 Thread Wolfgang Schuster
Am 26.06.2013 um 09:13 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de: Hi all, back with a question on index entries in xml. I have the problem that my processing command inserts empty spaces. \removeunwantedspaces does not remove the unwanted spaces; \ignorespaces removes even

Re: [NTG-context] \centerline vs. \midaligned vs. \startalignment[middle]

2013-06-26 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks for explanation. I also wrote a sample code which should typeset a midaligned table via Lua using tabulate. But I'm not able to achieve the goal - what am I doing wrong? \starttext T \startluacode local f = function() context.starttabulate{|rw(2cm)|rw(2cm)|}

Re: [NTG-context] \centerline vs. \midaligned vs. \startalignment[middle]

2013-06-26 Thread Wolfgang Schuster
Am 26.06.2013 um 15:00 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, thanks for explanation. I also wrote a sample code which should typeset a midaligned table via Lua using tabulate. But I'm not able to achieve the goal - what am I doing wrong? Use the

Re: [NTG-context] \centerline vs. \midaligned vs. \startalignment[middle]

2013-06-26 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Wed, 26 Jun 2013 15:10:43 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Use the solution in the following mail which deals with the same problem: http://www.ntg.nl/pipermail/ntg-context/2013/073795.html Wolfgang the following code seems to work: ...

Re: [NTG-context] \centerline vs. \midaligned vs. \startalignment[middle]

2013-06-26 Thread Wolfgang Schuster
Am 26.06.2013 um 15:30 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, On Wed, 26 Jun 2013 15:10:43 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Use the solution in the following mail which deals with the same problem:

Re: [NTG-context] spaces in xml index

2013-06-26 Thread Thomas A. Schmitz
On 06/26/2013 02:51 PM, Wolfgang Schuster wrote: There is a space at the end of this line, remove it and it will also disappear from the output. Boy, how embarrassing! Yes, it was a tab - no idea how it got there... Thanks a lot, Wolfgang! Thomas

[NTG-context] Overriding pdfview

2013-06-26 Thread Bill Meahan
How does one override the default pdf viewer for MKIV Standalone on Windows 7-64 so --autopdf starts Acrobat Reader instead of sumatrapdf.exe? I don't have sumatra and do not wish to install it just to satisfy this one application. WTH is it anyway? (I know what it is, it's a rhetorical

[NTG-context] Page break in ToC between parts?

2013-06-26 Thread Sander Maijers
Is there an nice way in MKIV to force a page break in the table of contents between items on the parts level (\part)? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] Page break in ToC between parts?

2013-06-26 Thread Wolfgang Schuster
Am 26.06.2013 um 16:01 schrieb Sander Maijers s.n.maij...@student.ru.nl: Is there an nice way in MKIV to force a page break in the table of contents between items on the parts level (\part)? It depends on the list alternative but you can try this: \setuplist[part][before=\page] Wolfgang

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread luigi scarso
On Wed, Jun 26, 2013 at 3:53 PM, Bill Meahan subscribed_li...@meahan.netwrote: How does one override the default pdf viewer for MKIV Standalone on Windows 7-64 so --autopdf starts Acrobat Reader instead of sumatrapdf.exe? I don't have sumatra and do not wish to install it just to satisfy

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread Bill Meahan
On 6/26/2013 10:20 AM, luigi scarso wrote: On Wed, Jun 26, 2013 at 3:53 PM, Bill Meahan subscribed_li...@meahan.net mailto:subscribed_li...@meahan.net wrote: How does one override the default pdf viewer for MKIV Standalone on Windows 7-64 so --autopdf starts Acrobat Reader instead

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread luigi scarso
On Wed, Jun 26, 2013 at 5:17 PM, Bill Meahan subscribed_li...@meahan.netwrote: On 6/26/2013 10:20 AM, luigi scarso wrote: On Wed, Jun 26, 2013 at 3:53 PM, Bill Meahan subscribed_li...@meahan.netwrote: How does one override the default pdf viewer for MKIV Standalone on Windows 7-64 so

Re: [NTG-context] Page break in ToC between parts?

2013-06-26 Thread Sander Maijers
On 26-06-13 16:07, Wolfgang Schuster wrote: Am 26.06.2013 um 16:01 schrieb Sander Maijers s.n.maij...@student.ru.nl: Is there an nice way in MKIV to force a page break in the table of contents between items on the parts level (\part)? It depends on the list alternative but you can try

Re: [NTG-context] documents inside documents

2013-06-26 Thread Pablo Rodríguez
On 26/06/13 04:47, Wolfgang Schuster wrote: Am 26.06.2013 um 00:07 schrieb Pablo Rodríguez oi...@web.de: One more question, the file belongs in the following code: \startstandardmakeup[align=middle] \typesetfile[sample-document.tex][width=10cm, frame=on] \stopstandardmakeup How can I get

Re: [NTG-context] documents inside documents

2013-06-26 Thread Wolfgang Schuster
Am 26.06.2013 um 19:16 schrieb Pablo Rodríguez oi...@web.de: On 26/06/13 04:47, Wolfgang Schuster wrote: Am 26.06.2013 um 00:07 schrieb Pablo Rodríguez oi...@web.de: One more question, the file belongs in the following code: \startstandardmakeup[align=middle]

Re: [NTG-context] documents inside documents

2013-06-26 Thread Pablo Rodríguez
On 26/06/13 19:56, Aditya Mahajan wrote: On Tue, 25 Jun 2013, Pablo Rodríguez wrote: Dear list, I know I can create another document and then insert the pages, but it would be much easier for me to be able to have the code inside the main the document. Is there a standard way to do it with

Re: [NTG-context] documents inside documents

2013-06-26 Thread Pablo Rodríguez
On 26/06/13 20:01, Wolfgang Schuster wrote: You need \dontleavehmode, i.e. \dontleavehmode\typesetfile[…]. Many thanks for your reply, Wolfgang. From what I understand, the command is basically telling ConTeXt: “don’t make a new paragraph break after the inserted float”, isn‘t it? No, the

[NTG-context] aligning texts and not lines

2013-06-26 Thread Pablo Rodríguez
Dear list, I have the two following samples: \startstandardmakeup[align=middle] \starttyping[option=TeX] \mainlanguage[es] \setuplanguage[es][patterns={es,agr}] \stoptyping \stopstandardmakeup \startstandardmakeup[align=middle] Would that in body and spirit Shakespeare came\\ Visible emperor of

Re: [NTG-context] aligning texts and not lines

2013-06-26 Thread Wolfgang Schuster
Am 26.06.2013 um 20:30 schrieb Pablo Rodríguez oi...@web.de: Dear list, I have the two following samples: \startstandardmakeup[align=middle] \starttyping[option=TeX] \mainlanguage[es] \setuplanguage[es][patterns={es,agr}] \stoptyping \stopstandardmakeup

Re: [NTG-context] Using \setupinterlinespace with \setuparranging[XY], and more

2013-06-26 Thread Pavneet Arora
Thanks for the explanation, Wolfgang. I am, however, getting some strange interline behaviour exhibited using the \par approach. In the MWE below the quoted text, which have both approaches (\par and explicit \setinterlinespace outside the \framed) listed, you will see with the \par approach

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread Hans Hagen
On 6/26/2013 6:11 PM, luigi scarso wrote: On Wed, Jun 26, 2013 at 5:17 PM, Bill Meahan I don't have sumatra and do not wish to install it just to satisfy this one application. WTH is it anyway? (I know what it is, it's a rhetorical question). Making some obscure pdf

Re: [NTG-context] Using \setupinterlinespace with \setuparranging[XY], and more

2013-06-26 Thread Wolfgang Schuster
Am 26.06.2013 um 21:25 schrieb Pavneet Arora pavneet_ar...@waroc.com: Thanks for the explanation, Wolfgang. I am, however, getting some strange interline behaviour exhibited using the \par approach. In the MWE below the quoted text, which have both approaches (\par and explicit

Re: [NTG-context] aligning texts and not lines

2013-06-26 Thread Pablo Rodríguez
On 26/06/13 20:35, Wolfgang Schuster wrote: Am 26.06.2013 um 20:30 schrieb Pablo Rodríguez oi...@web.de: Dear list, \startstandardmakeup[align=middle] Would that in body and spirit Shakespeare came\\ Teach us to write, and writing, to be men. \stopstandardmakeup I would like both texts to

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread luigi scarso
On Wed, Jun 26, 2013 at 9:29 PM, Hans Hagen pra...@wxs.nl wrote: while sumatrapdf - is pretty fast - has matured quite well - remembers the current page - renders quite ok - even supports some basic interactivity - (has an ugly yellow pop up windows but those can nowadays be recolored)

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread Siep Kroonenberg
On Wed, Jun 26, 2013 at 10:22:23PM +0200, luigi scarso wrote: On Wed, Jun 26, 2013 at 9:29 PM, Hans Hagen pra...@wxs.nl wrote: while sumatrapdf - is pretty fast - has matured quite well - remembers the current page - renders quite ok - even supports some basic interactivity -

[NTG-context] compressed linenotes break right line range numbering

2013-06-26 Thread Pablo Rodríguez
Dear Hans, I'm afraid that there is a bug in compressed linenotes that prevents to have the line ranges to be properly numbered. Here you have a sample: \setupnotation[linenote][compress=yes] \starttext \startlinenumbering \linenote{Without this note, line numbering from ranges is

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread Philipp Gesang
Hi Luigi! ···date: 2013-06-26, Wednesday···from: luigi scarso··· On Wed, Jun 26, 2013 at 9:29 PM, Hans Hagen pra...@wxs.nl wrote: while sumatrapdf - is pretty fast - has matured quite well - remembers the current page - renders quite ok - even supports some basic interactivity

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread Hans Hagen
On 6/26/2013 10:50 PM, Philipp Gesang wrote: Hi Luigi! ···date: 2013-06-26, Wednesday···from: luigi scarso··· On Wed, Jun 26, 2013 at 9:29 PM, Hans Hagen pra...@wxs.nl wrote: while sumatrapdf - is pretty fast - has matured quite well - remembers the current page - renders quite ok - even

Re: [NTG-context] compressed linenotes break right line range numbering

2013-06-26 Thread Hans Hagen
On 6/26/2013 10:46 PM, Pablo Rodríguez wrote: Dear Hans, I'm afraid that there is a bug in compressed linenotes that prevents to have the line ranges to be properly numbered. Here you have a sample: \setupnotation[linenote][compress=yes] \starttext \startlinenumbering \linenote{Without this

Re: [NTG-context] compressed linenotes break right line range numbering

2013-06-26 Thread Pablo Rodríguez
On 26/06/13 22:58, Hans Hagen wrote: On 6/26/2013 10:46 PM, Pablo Rodríguez wrote: [...] It happens when compressed linenotes are enabled and there is a linenote before the \startlinenote. In that case, only the first line is numbered, not the last. Could you fix that? not today (or this

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread luigi scarso
On Wed, Jun 26, 2013 at 10:36 PM, Siep Kroonenberg si...@cybercomm.nlwrote: On Wed, Jun 26, 2013 at 10:22:23PM +0200, luigi scarso wrote: On Wed, Jun 26, 2013 at 9:29 PM, Hans Hagen pra...@wxs.nl wrote: while sumatrapdf - is pretty fast - has matured quite well - remembers

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread luigi scarso
On Wed, Jun 26, 2013 at 10:58 PM, Hans Hagen pra...@wxs.nl wrote: On 6/26/2013 10:50 PM, Philipp Gesang wrote: Hi Luigi! ···date: 2013-06-26, Wednesday···from: luigi scarso··· On Wed, Jun 26, 2013 at 9:29 PM, Hans Hagen pra...@wxs.nl wrote: while sumatrapdf - is pretty fast - has

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread Bill Meahan
On 6/26/2013 3:29 PM, Hans Hagen wrote: [snip]... - on none of my window boxes acrobat was preinstalled - there is no robust way to start acrobat - pdfopen has to be adapted to major updates of acrobat - there is (at least on my machine) a potential clash between

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread Philipp Gesang
···date: 2013-06-26, Wednesday···from: Hans Hagen··· On 6/26/2013 10:50 PM, Philipp Gesang wrote: Hi Luigi! ···date: 2013-06-26, Wednesday···from: luigi scarso··· On Wed, Jun 26, 2013 at 9:29 PM, Hans Hagen pra...@wxs.nl wrote: while sumatrapdf - is pretty fast - has matured

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread Hans Hagen
On 6/26/2013 11:27 PM, Bill Meahan wrote: That was my original question: how do I change the default without hand-editing a file in the base distribution? That's not only bad practice, it's liable to get overwritten on the next update. as mentioned in an earlier mail ... you can set it in a

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread Bill Meahan
On 6/26/2013 6:24 PM, Hans Hagen wrote: [snip]. If there is one thing I have learned in developing software since 1965 (not a typo), it is to never depend on /any /third-party application being present. If it is not part of the base system

Re: [NTG-context] Overriding pdfview

2013-06-26 Thread hwitloc
I likewise find the Sumatr pdf viewer better. Besides the benefits already mentioned, it also has the proper quality of being non-intrusive. Adobe readers are quite happy to bloat your memory and take control or otherwise intrude on your system's normal operations. I don't use Adobe's

Re: [NTG-context] Cloze Text (text with gaps)

2013-06-26 Thread David Rogers
Christian Prim christian.p...@gmx.ch writes: I wonder if I can typeset a cloze text using context. The gaps (__) must have a given length (say in cm or the length of a given word, given sentence) and must break at the end of a line. \hl[4] is nice but won't do the trick since it

[NTG-context] wrong space when compressseparator is empty

2013-06-26 Thread Pablo Rodríguez
Dear Hans, I have the following sample: \showstruts \setupnote[linenote][paragraph=yes, inbetween=\hskip1.5em] \setupnotation[linenote][alternative=serried, compress=yes, compressseparator=, distance=1em] \starttext \startlinenumbering