[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

\startbuffer[demo]
document
   pGustave indexterm keyword=Flaubert, 
GustaveFlaubert/indexterm originated from 
indextermRouen/indexterm./p

/document
\stopbuffer

\startxmlsetups xml:test
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{document|p|indexterm}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:document
 \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:p
 \xmlflush{#1}
 \par
\stopxmlsetups

\startxmlsetups xml:indexterm
\doifelse{\xmlattdef{#1}{keyword}{@@@}}{@@@}
 {\expanded{\index{\xmlflush{#1}}}\xmlflush{#1}\removeunwantedspaces}
 	 
{\expanded{\index{\xmlatt{#1}{keyword}}}\xmlflush{#1}\removeunwantedspaces}	

\stopxmlsetups

\xmlprocessbuffer{whatever}{demo}{}

\page

\placeregister[index]

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[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 below.
Because I would like to run context silently from within a Lua program, I would 
appreciate if this can be repaired.

Hans van der Meer

105 videots: context --noconsole --once eng-dvb.tex

mtx-context | run 1: luatex 
--fmt=/Users/hansm/TeX/context-10/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
 --jobname=eng-dvb 
--lua=/Users/hansm/TeX/context-10/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
 --no-parse-first-line --c:currentrun=1 --c:directives=logs.target=file 
--c:fulljobname=./eng-dvb.tex --c:input=./eng-dvb.tex --c:kindofrun=3 
--c:maxnofruns=1 --c:noconsole --c:once cont-yes.mkiv
This is LuaTeX, Version beta-0.76.0-2013040508 (rev 4627)
 \write18 enabled.
(/Users/hansm/TeX/context-10/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.05.10 15:05 MKIV beta  fmt: 2013.5.10  int: english/english

(/Users/hansm/TeX/context-10/tex/texmf-context/tex/context/base/cont-new.mkiv) 
(/Users/hansm/Projects/Lua/programs/videots/eng-dvb.tex{/Users/hansm/TeX/context-10/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/hansm/TeX/context-10/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/Users/hansm/TeX/context-10/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
 ) 
)/Users/hansm/TeX/context-10/tex/texmf/fonts/opentype/public/lm/lmroman6-regular.otf/Users/hansm/TeX/context-10/tex/texmf/fonts/opentype/public/lm/lmroman6-bold.otf
system  | total runtime: 6.930
106 videots:

106 videots: context --batchmode --once eng-dvb.tex

mtx-context | run 1: luatex 
--fmt=/Users/hansm/TeX/context-10/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
 --interaction=batchmode --jobname=eng-dvb 
--lua=/Users/hansm/TeX/context-10/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
 --no-parse-first-line --c:batchmode --c:currentrun=1 
--c:fulljobname=./eng-dvb.tex --c:input=./eng-dvb.tex --c:kindofrun=3 
--c:maxnofruns=1 --c:once cont-yes.mkiv
This is LuaTeX, Version beta-0.76.0-2013040508 (rev 4627)
 \write18 enabled.
system   'cont-new.mkiv' loaded
system   files  jobname 'eng-dvb', input './eng-dvb', result 'eng-dvb'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active

LINES DELETED

mkiv lua stats   luatex banner: this is luatex, version beta-0.76.0-2013040508 
 (tex live 2013/dev)(rev 4627)
mkiv lua stats   control sequences: 37310 of 65536 + 10
mkiv lua stats   current memory usage: 77 MB (ctx: 67 MB)
mkiv lua stats   runtime: 6.755 seconds, 11 processed pages, 11 shipped pages, 
1.628 pages/second

system  | total runtime: 6.934




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[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 samples.

\centerline was also mentioned here in the mailing list, when I was trying to center 
tabulate - and neither \midaligned nor \startalignment[middle] combined with 
\dontleavehmode worked.)

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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, 
 \startalignment[middle]?
 
 (NB: \centerline has no its-own page on wiki, but it is used at several 
 places in wiki samples.
 
 \centerline was also mentioned here in the mailing list, when I was trying to 
 center tabulate - and neither \midaligned nor \startalignment[middle] 
 combined with \dontleavehmode worked.)

The three commands

  - \leftline,
  - \rightline and
  - \centerline

are copied from plain TeX and allow you to center short text which fits on a 
single line but it isn’t recommended to use them because ConTeXt has it’s own 
alternative for them. The replacement commands are

  - \leftaligned,
  - \rightaligned and
  - \midaligned.

Even though each command is only meant for short text you use the \\ command to 
put text into several lines, e.g.

  \starttext
  \midaligned{One\\Two\\Three}
  \stoptext

creates three lines for the input. In recent installations you can write

  \startlinealignment[left|middle|right]
  …
  \stopalignment

as a alternative to \leftaligned etc.

With the alignment environment you can change the alignment of the text for a 
certain region. Unlike the line alignment environment you can use text which 
covers more than a single line.

  \starttext
  \input knuth\par
  \startalignment[middle]
  \input knuth\par
  \stopalignment
  \stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 wanted spaces. Can 
 anybody help?
 
 Thanks and all best
 
 Thomas
 
 \starttext
 
 \startbuffer[demo]
 document
   pGustave indexterm keyword=Flaubert, GustaveFlaubert/indexterm 
 originated from indextermRouen/indexterm./p
 /document
 \stopbuffer
 
 \startxmlsetups xml:test
 \xmlsetsetup{#1}{*}{-}
 \xmlsetsetup{#1}{document|p|indexterm}{xml:*}
 \stopxmlsetups
 
 \xmlregistersetup{xml:test}
 
 \startxmlsetups xml:document
 \xmlflush{#1}
 \stopxmlsetups
 
 \startxmlsetups xml:p
 \xmlflush{#1}
 \par
 \stopxmlsetups
 
 \startxmlsetups xml:indexterm
   \doifelse{\xmlattdef{#1}{keyword}{@@@}}{@@@}
{\expanded{\index{\xmlflush{#1}}}\xmlflush{#1}\removeunwantedspaces}

 {\expanded{\index{\xmlatt{#1}{keyword}}}\xmlflush{#1}\removeunwantedspaces}   
  

There is a space at the end of this line, remove it and it will also disappear 
from the output.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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)|}
context.NC()
context(A)
context.NC()
context(B)
context.NC()
context.NR()
  context.stoptabulate()
end

f()

context(U\\par)

context.startalignment{middle}
  context(V) -- OK, V is successfully midaligned
context.stopalignment()

context.startalignment{middle}
  f() -- Wrong, table is not midaligned
context.stopalignment()

context.startalignment{middle}
  context.dontleavehmode()
  f() -- Wrong, too, table is still not midaligned (?!)
context.stopalignment()

-- context.midaligned(f) -- This breaks Ctx!
  \stopluacode
\stoptext


Best regards,

Lukas


On Wed, 26 Jun 2013 14:46:32 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:



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, 
\startalignment[middle]?

(NB: \centerline has no its-own page on wiki, but it is used at several places 
in wiki samples.

\centerline was also mentioned here in the mailing list, when I was trying to center 
tabulate - and neither \midaligned nor \startalignment[middle] combined with 
\dontleavehmode worked.)


The three commands

  - \leftline,
  - \rightline and
  - \centerline

are copied from plain TeX and allow you to center short text which fits on a 
single line but it isn’t recommended to use them because ConTeXt has it’s own 
alternative for them. The replacement commands are

  - \leftaligned,
  - \rightaligned and
  - \midaligned.

Even though each command is only meant for short text you use the \\ command to 
put text into several lines, e.g.

  \starttext
  \midaligned{One\\Two\\Three}
  \stoptext

creates three lines for the input. In recent installations you can write

  \startlinealignment[left|middle|right]
  …
  \stopalignment

as a alternative to \leftaligned etc.

With the alignment environment you can change the alignment of the text for a 
certain region. Unlike the line alignment environment you can use text which 
covers more than a single line.

  \starttext
  \input knuth\par
  \startalignment[middle]
  \input knuth\par
  \stopalignment
  \stoptext

Wolfgang



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t.mkiv
Description: Binary data


t.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 solution in the following mail which deals with the same problem: 
http://www.ntg.nl/pipermail/ntg-context/2013/073795.html

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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:


...
context.startplacetable({location = here,force,none})
  f()
context.stopplacetable()
...


I guess:

- here and force to make the content inside start/stop-placetable 
non-floating,
- none to disable caption.

Thanks again.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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: 
 http://www.ntg.nl/pipermail/ntg-context/2013/073795.html
 
 Wolfgang
 
 the following code seems to work:
 
 
 ...
context.startplacetable({location = here,force,none})
  f()
context.stopplacetable()
 ...
 
 
 I guess:
 
 - here and force to make the content inside start/stop-placetable 
 non-floating,

You need only “force”. The here keyword places the float only when there is 
enough space, otherwise
it moves it to another location but force keeps it at the position.

 - none to disable caption.

Yes.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[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 question). Making some obscure pdf viewer the default with no 
clear way to change it is not a good idea. For Windows, the vast 
majority of people have Acrobat Reader which is very often preinstalled. 
For Linux, it's less clear what the default should be but {xpdf 
|evince|acroread} are quite common. Can't speak to OSX as I've never 
used it but I'd bet a coffee Acrobat Reader is (or can be) there, too.


I have searched through the source and tried editing l-pdf.lua but that 
doesn't seem to fix the problem. I shouldn't have to edit system source 
in any event.


Mark me frustrated.

--
Bill Meahan
Westland, Michigan

The nice thing about standards is there are so many of them.  -- Henry 
Spencer










___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[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 : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 this
 one application. WTH is it anyway? (I know what it is, it's a rhetorical
 question). Making some obscure pdf viewer the default with no clear way to
 change it is not a good idea. For Windows, the vast majority of people have
 Acrobat Reader which is very often preinstalled. For Linux, it's less clear
 what the default should be but {xpdf |evince|acroread} are quite common.
 Can't speak to OSX as I've never used it but I'd bet a coffee Acrobat
 Reader is (or can be) there, too.

 I have searched through the source and tried editing l-pdf.lua but that
 doesn't seem to fix the problem. I shouldn't have to edit system source in
 any event.

 Mark me frustrated.

 I don't see l-pdf.lua in my standalone .

I don't use sumatra under linux but I see this
tex/texmf-context/tex/context/base/l-pdfview.lua:['sumatra'] =
'start test c:/data/system/sumatrapdf/sumatrapdf.exe -reuse-instance',
tex/texmf-context/tex/context/base/l-pdfview.lua:['sumatra'] =
'start test sumatrapdf.exe -reuse-instance -bg-color 0xCC',
tex/texmf-context/tex/context/base/l-pdfview.lua:['sumatra'] =
false,
tex/texmf-context/tex/context/base/l-pdfview.lua:['sumatra'] =
false,
tex/texmf-context/tex/context/base/l-pdfview.lua:pdfview.method =
sumatra
tex/texmf-context/tex/context/base/l-pdfview.lua:['sumatra'] =
'wine sumatrapdf.exe -reuse-instance -bg-color 0xCC',
tex/texmf-context/tex/context/base/l-pdfview.lua:['sumatra'] =
false,
tex/texmf-context/tex/context/base/l-pdfview.lua:['sumatra'] =
false,
tex/texmf-context/tex/context/base/l-pdfview.lua:pdfview.method =
sumatra
tex/texmf-context/context/data/scite/scite-context.properties:
name.flag.pdfopen=--autopdf=sumatra

In l-pdfview.lua I argue that
pdfview.method = acrobat
can help .
If you are using scite, then  the file is probably
tex/texmf-context/context/data/scite/scite-context.properties

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 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 question). Making some obscure pdf viewer
the default with no clear way to change it is not a good idea. For
Windows, the vast majority of people have Acrobat Reader which is
very often preinstalled. For Linux, it's less clear what the
default should be but {xpdf |evince|acroread} are quite common.
Can't speak to OSX as I've never used it but I'd bet a coffee
Acrobat Reader is (or can be) there, too.

I have searched through the source and tried editing l-pdf.lua but
that doesn't seem to fix the problem. I shouldn't have to edit
system source in any event.

Mark me frustrated.

I don't see l-pdf.lua in my standalone .


TYPO: It's l-pdfview.lua sometimes my memory

From my standalone (updated yesterday)

..[snip]..
if os.type == windows then

opencalls = {
['default'] = pdfopen --rxi --file,
['acrobat'] = pdfopen --rxi --file,
['fullacrobat'] = pdfopen --axi --file,
['okular']  = 'start test 
c:/data/system/kde/bin/okular.exe --unique', -- todo!
['sumatra'] = 'start test 
c:/data/system/sumatrapdf/sumatrapdf.exe -reuse-instance',

['okular']  = 'start test okular.exe --unique',
['sumatra'] = 'start test sumatrapdf.exe 
-reuse-instance -bg-color 0xCC',

}
closecalls= {
['default'] = pdfclose --file,
['acrobat'] = pdfclose --file,
['okular']  = false,
['sumatra'] = false,
}
allcalls = {
['default'] = pdfclose --all,
['acrobat'] = pdfclose --all,
['okular']  = false,
['sumatra'] = false,
}

pdfview.method = acrobat -- no longer useful due to green pop up 
line and clasing reader/full

pdfview.method = sumatra   ===

runner = function(cmd)
os.execute(cmd) -- ..   /null
end

else
 ..[snip]..

Although I first discovered this when trying to use SciTE, it does the 
same thing if invoked from the command line. The pdf viewer does not 
appear in any of the SciTE *.properties files.


--
Bill Meahan
Westland, Michigan

The nice thing about standards is there are so many of them. --Henry 
Spencer


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 --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
 question). Making some obscure pdf viewer the default with no clear way to
 change it is not a good idea. For Windows, the vast majority of people have
 Acrobat Reader which is very often preinstalled. For Linux, it's less clear
 what the default should be but {xpdf |evince|acroread} are quite common.
 Can't speak to OSX as I've never used it but I'd bet a coffee Acrobat
 Reader is (or can be) there, too.

 I have searched through the source and tried editing l-pdf.lua but that
 doesn't seem to fix the problem. I shouldn't have to edit system source in
 any event.

 Mark me frustrated.

  I don't see l-pdf.lua in my standalone .

  TYPO: It's l-pdfview.lua sometimes my memory

 From my standalone (updated yesterday)

 ..[snip]..
 if os.type == windows then

 opencalls = {
 ['default'] = pdfopen --rxi --file,
 ['acrobat'] = pdfopen --rxi --file,
 ['fullacrobat'] = pdfopen --axi --file,
 ['okular']  = 'start test
 c:/data/system/kde/bin/okular.exe --unique', -- todo!

 ['sumatra'] = 'start test
 c:/data/system/sumatrapdf/sumatrapdf.exe -reuse-instance',
 ['okular']  = 'start test okular.exe --unique',

 ['sumatra'] = 'start test sumatrapdf.exe -reuse-instance
 -bg-color 0xCC',
 }
 closecalls= {
 ['default'] = pdfclose --file,
 ['acrobat'] = pdfclose --file,
 ['okular']  = false,
 ['sumatra'] = false,
 }
 allcalls = {
 ['default'] = pdfclose --all,
 ['acrobat'] = pdfclose --all,
 ['okular']  = false,
 ['sumatra'] = false,
 }

 pdfview.method = acrobat -- no longer useful due to green pop up
 line and clasing reader/full
 pdfview.method = sumatra   ===

 runner = function(cmd)
 os.execute(cmd) -- ..   /null
 end

 else
  ..[snip]..

 Although I first discovered this when trying to use SciTE, it does the
 same thing if invoked from the command line. The pdf viewer does not appear
 in any of the SciTE *.properties files.


maybe
context --autopdf=acrobat yourfile.tex
context --autopdf=fullacrobat yourfile.tex


-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 this: 
\setuplist[part][before=\page]

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



This works for me, thanks. I need to rethink it because I prefer to have 
page break between parts (I have two) and not before every part (because 
then I also have one between a few initial titles and the first part). 
I'll try a horizontal rule then, for the same separation effect but more 
unobtrusive.

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 this horizontally centered It is vertically centered, and
 it should be also horizontally aligned, but I don't know why doesn't it
 work.
 
 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?


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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]
 \typesetfile[sample-document.tex][width=10cm, frame=on]
 \stopstandardmakeup
 
 How can I get this horizontally centered It is vertically centered, and
 it should be also horizontally aligned, but I don't know why doesn't it
 work.
 
 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 command tells TeX to go into horizontal mode.

\starttext

\ruledvbox
  {\ruledhbox{One}
   \ruledhbox{Two}}

\ruledvbox
  {\dontleavehmode
   \ruledhbox{One}
   \ruledhbox{Two}}

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 ConTeXt?
 
 Another option is to use the filter module (it takes care of caching and 
 naming of temporary files, and you can specify an output directory for 
 all auxillary files)
 
 https://github.com/adityam/filter

Many thanks, Aditya, for your reply.


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 command tells TeX to go into horizontal mode.

Many thanks for your reply, Wolfgang.

I understand now what horizontal mode is.


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[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 the deeds of Time,\\
With Justice still the genius of his rhyme,\\
Giving each man his due, each passion grace,\\
Impartial as the rain from Heaven's face\\
Or sunshine from the heaven-enthroned sun.\\
Sweet Swan of Avon, come to us again.\\
Teach us to write, and writing, to be men.
\stopstandardmakeup

I would like both texts to be centered, but I don’t want the lines to be
centered too.

How could I get this?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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
 
 \startstandardmakeup[align=middle]
 Would that in body and spirit Shakespeare came\\
 Visible emperor of the deeds of Time,\\
 With Justice still the genius of his rhyme,\\
 Giving each man his due, each passion grace,\\
 Impartial as the rain from Heaven's face\\
 Or sunshine from the heaven-enthroned sun.\\
 Sweet Swan of Avon, come to us again.\\
 Teach us to write, and writing, to be men.
 \stopstandardmakeup
 
 I would like both texts to be centered, but I don’t want the lines to be
 centered too.
 
 How could I get this?

\startframedtext[middle][frame=off]
…
\stopframedtext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 that the text is aligned
slightly lower than middle (so not properly vertically centred), and the
spacing below the first line is larger than the subsequent lines.

Regards.

On 25Jun13, Wolfgang Schuster wrote:
 
 Am 21.06.2013 um 22:27 schrieb Pavneet Arora pavneet_ar...@waroc.com:
 
  3.  I cannot get interlinespacing to affect the line spacing even though
  the baselineskip variable is changed as shown in the MWE.
 
 You have to add \par at the end of each paragraph, e.g. 
 \framed{\definedfont[…]\setupinterlinespace …\par}
 
 Wolfgang

MWE:

\definepapersize
[Label]
[width=4in,height=3.33in]

\setuppapersize[Label][letter,portrait]

\setuppaper
[topspace=0.4688in,
backspace=0.1875in,
dx=0.1875in,
dy=0in,
nx=2,
ny=3]

\setuplayout
[topspace=0in,
backspace=0in,
margin=0in,
width=4in,
height=3.33in,
header=0in,
footer=0in]

\setuparranging[XY]

\setupframedtexts
[width=\textwidth,
height=\textheight,
frame=off,
location=lohi,
offset=0pt]

\setupframed
[frame=off,
width=\textwidth,
height=\textheight,
alignment=center]

\setuplayout[location=middle]

\definelayer
[Label]
[width=\paperwidth,
height=\paperheight]

\usemodule[simplefonts]
\setmainfont[schola]
\setupbodyfont[rm,48pt]
\setupinterlinespace[line=2.8ex]

\showframe

\starttext
\framed{Label 1}\page
\framed{\definedfont[Serif at 18pt]\setupinterlinespace A long description 
label that needs to be have its interline spacing adjusted.\par}\page
\setupbodyfont[rm,18pt]
\setupinterlinespace
\framed{Another long description label that seems to have proper interline 
spacing.}\page
\framed{Yet another long description label that seems to have proper interline 
spacing.}\page
Label 2\page
Label 3\page
Label 4\page
Label 5\page
Label 6\page
Label 7\page
Label 8\page
\stoptext

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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
viewer the default with no clear way to change it is not a
good idea. For Windows, the vast majority of people have
Acrobat Reader which is very often preinstalled. For Linux,
it's less clear what the default should be but {xpdf
|evince|acroread} are quite common. Can't speak to OSX as I've
never used it but I'd bet a coffee Acrobat Reader is (or can
be) there, too.


- 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 reader and 
professional

- acrobat occasionally tends to block
- the latest version of acrobat has funny popups when opening docs

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)
- can be installed as portable application
- works ok wine/linux (in fact has my preference now when on linux)

so, enough reasons for me to have changed the defaults (esp because one 
can always set different defaults)



Although I first discovered this when trying to use SciTE, it does
the same thing if invoked from the command line. The pdf viewer does
not appear in any of the SciTE *.properties files.


maybe
context --autopdf=acrobat yourfile.tex
context --autopdf=fullacrobat yourfile.tex


or in a scite user properties file:

if PLAT_WIN
name.flag.pdfopen=--autopdf=acrobat





-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 \setinterlinespace outside the \framed)
 listed, you will see with the \par approach that the text is aligned
 slightly lower than middle (so not properly vertically centred), and the
 spacing below the first line is larger than the subsequent lines.


Use the foregroundstyle key to change the font size:

  \framed[foregroundstyle={\definedfont[Serif at 18pt]}]{A long description 
label that needs to be have its interline spacing adjusted.}\page

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 be centered, but I don’t want the lines to be
 centered too.

 How could I get this?
 
 \startframedtext[middle][frame=off]
 …
 \stopframedtext

Many thanks for your help, Wolfgang.


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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)
 - can be installed as portable application
 - works ok wine/linux (in fact has my preference now when on linux)

 I have to admit that I often think to a context pdf viewer, and mupdf
seems the right candidate.
Under ubuntu 64bit 12.04 xpdf doesn't work, acroreader is still 9 32 bit
(so I use wine acroreader 11)
evince is ok, probably also okular.
A context pdf viewer should be like sumatrapdf at least ---  so  in the end
I also installed sumatrapdf.exe under linux .

Now that I have done a luatex binding for mupdf,
if we have a minimal GUI toolkit cross platform (but really minimal)
it's possible to build a pdfviewer in luatex
(ok  I think that it's quite slow).

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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
  - (has an ugly yellow pop up windows but those can nowadays be recolored)
  - can be installed as portable application
  - works ok wine/linux (in fact has my preference now when on linux)
 
  I have to admit that I often think to a context pdf viewer, and mupdf
 seems the right candidate.
 Under ubuntu 64bit 12.04 xpdf doesn't work, acroreader is still 9 32 bit
 (so I use wine acroreader 11)
 evince is ok, probably also okular.
 A context pdf viewer should be like sumatrapdf at least ---  so  in the end
 I also installed sumatrapdf.exe under linux .

For Linux, have a look at qpdfview.


-- 
Siep Kroonenberg
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[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
right}\startlinenote[one]{This should have lines 1 to 3.}line one\\
line two\\
line three\stoplinenote[one]
\stoplinenumbering

\stoptext

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?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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
  - (has an ugly yellow pop up windows but those can nowadays be recolored)
  - can be installed as portable application
  - works ok wine/linux (in fact has my preference now when on linux)
 
  I have to admit that I often think to a context pdf viewer, and mupdf
 seems the right candidate.
 Under ubuntu 64bit 12.04 xpdf doesn't work, acroreader is still 9 32 bit
 (so I use wine acroreader 11)
 evince is ok, probably also okular.
 A context pdf viewer should be like sumatrapdf at least ---  so  in the end
 I also installed sumatrapdf.exe under linux .
 
 Now that I have done a luatex binding for mupdf,
 if we have a minimal GUI toolkit cross platform (but really minimal)
 it's possible to build a pdfviewer in luatex

If you’re serious about this, the Zathura guys have a separate
interface library based on GTK [1]. Having some (any) Lua
capability inside a pdf viewer would indeed be nice.

Best,
Philipp

[1] http://pwmt.org/projects/girara/.



pgpzg_3QxgFmX.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 supports some basic interactivity
- (has an ugly yellow pop up windows but those can nowadays be recolored)
- can be installed as portable application
- works ok wine/linux (in fact has my preference now when on linux)

I have to admit that I often think to a context pdf viewer, and mupdf

seems the right candidate.
Under ubuntu 64bit 12.04 xpdf doesn't work, acroreader is still 9 32 bit
(so I use wine acroreader 11)
evince is ok, probably also okular.
A context pdf viewer should be like sumatrapdf at least ---  so  in the end
I also installed sumatrapdf.exe under linux .

Now that I have done a luatex binding for mupdf,
if we have a minimal GUI toolkit cross platform (but really minimal)
it's possible to build a pdfviewer in luatex


If you’re serious about this, the Zathura guys have a separate
interface library based on GTK [1]. Having some (any) Lua
capability inside a pdf viewer would indeed be nice.


FYI: After Luigi and I have wrapped up the projects swiglib 
(libraries) and speed-up-luatex projects we will start our 
lua-in-pdf-viewer exploration (after all pdf permits additional 
annotations) ... and we need challenges.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 note, line numbering from ranges is
right}\startlinenote[one]{This should have lines 1 to 3.}line one\\
line two\\
line three\stoplinenote[one]
\stoplinenumbering

\stoptext

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 week) but i'll look into it


Many thanks for your help,


Pablo




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 week) but i'll look into it

Many thanks, Hans,

I have found another issue with compressed linenotes that I will report
tomorrow, so that you can check also that when you have time.

Thanks again,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 the current page
   - renders quite ok
   - even supports some basic interactivity
   - (has an ugly yellow pop up windows but those can nowadays be
 recolored)
   - can be installed as portable application
   - works ok wine/linux (in fact has my preference now when on linux)
  
   I have to admit that I often think to a context pdf viewer, and mupdf
  seems the right candidate.
  Under ubuntu 64bit 12.04 xpdf doesn't work, acroreader is still 9 32 bit
  (so I use wine acroreader 11)
  evince is ok, probably also okular.
  A context pdf viewer should be like sumatrapdf at least ---  so  in the
 end
  I also installed sumatrapdf.exe under linux .

 For Linux, have a look at qpdfview.

 ok I in stalled, I will play with it a bit.
 --
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 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)
 - can be installed as portable application
 - works ok wine/linux (in fact has my preference now when on linux)

 I have to admit that I often think to a context pdf viewer, and mupdf

 seems the right candidate.
 Under ubuntu 64bit 12.04 xpdf doesn't work, acroreader is still 9 32 bit
 (so I use wine acroreader 11)
 evince is ok, probably also okular.
 A context pdf viewer should be like sumatrapdf at least ---  so  in the
 end
 I also installed sumatrapdf.exe under linux .

 Now that I have done a luatex binding for mupdf,
 if we have a minimal GUI toolkit cross platform (but really minimal)
 it's possible to build a pdfviewer in luatex


 If you’re serious about this, the Zathura guys have a separate
 interface library based on GTK [1]. Having some (any) Lua
 capability inside a pdf viewer would indeed be nice.


 FYI: After Luigi and I have wrapped up the projects swiglib (libraries)
 and speed-up-luatex projects we will start our lua-in-pdf-viewer
 exploration (after all pdf permits additional annotations) ... and we need
 challenges.

 Hans


yes, approximately/hopefully end of next year, and suggestions are all
welcome, of course --- and the meeting is a nice place to discuss these
kind of things.
Of course  a good solution has small size, it is fast and works in the same
way at least under Windows/Linux/Mac.


-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 reader 
and professional

- acrobat occasionally tends to block
- the latest version of acrobat has funny popups when opening docs

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)
- can be installed as portable application
- works ok wine/linux (in fact has my preference now when on linux)



sumatrapdf may be the best PDF viewer ever invented. As a lawyer might 
say, I'll stipulate that. If someone who wants to use ConTeXt has 
never heard of it and has to use a search engine to even know what it 
is, however, it's not a great default to have on a *public* distribution.


Similar arguments could be made for Calibre (which I use).

so, enough reasons for me to have changed the defaults (esp because 
one can always set different defaults)




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.


Does one use texmf.cnf or something else with a very recent MKIV?


Although I first discovered this when trying to use SciTE, it does
the same thing if invoked from the command line. The pdf viewer does
not appear in any of the SciTE *.properties files.


I haven't settled on SciTE as the editor I want to use but a SciTE-only 
workaround misses the point.





maybe
context --autopdf=acrobat yourfile.tex
context --autopdf=fullacrobat yourfile.tex




When run from the cmd.exe command line, acrobat _does_ get launched 
_but_ it gets launched before ConTeXt has created the pdf file then 
hangs so the only way to exit is a Ctrl-C in the cmd.exe window. Simply 
closing acrobat simply causes acrobat to launch again.


A better solution would be to assume the person installing ConTeXt does 
not have a PDF reader *at all* and include some minimal self-contained 
reader (no dll's needed) in the distribution itself, the way rsync is 
included. I really don't care which one, as long as there is *something* 
present. MuPDF might be a good choice but I'm quite sure everyone on the 
list has a favorite they would like to see as the included viewer for 
one reason or another. As long as ConTeXt is guaranteed to find it, it 
is a good default.



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 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)
 - can be installed as portable application
 - works ok wine/linux (in fact has my preference now when on linux)
 
 I have to admit that I often think to a context pdf viewer, and mupdf
 seems the right candidate.
 Under ubuntu 64bit 12.04 xpdf doesn't work, acroreader is still 9 32 bit
 (so I use wine acroreader 11)
 evince is ok, probably also okular.
 A context pdf viewer should be like sumatrapdf at least ---  so  in the end
 I also installed sumatrapdf.exe under linux .
 
 Now that I have done a luatex binding for mupdf,
 if we have a minimal GUI toolkit cross platform (but really minimal)
 it's possible to build a pdfviewer in luatex
 
 If you’re serious about this, the Zathura guys have a separate
 interface library based on GTK [1]. Having some (any) Lua
 capability inside a pdf viewer would indeed be nice.
 
 FYI: After Luigi and I have wrapped up the projects swiglib
 (libraries) and speed-up-luatex projects we will start our
 lua-in-pdf-viewer exploration (after all pdf permits additional
 annotations) ... and we need challenges.

Do you plan on making the PDF internals as transparent and easy
to manipulate as Luatex does with TeX?

Looking forward to it!

Best,
Philipp

 
 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpA2pz0S7X1B.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 user properties 
file and the last settings loaded are taken (which happen to be user 
properties)



Does one use texmf.cnf or something else with a very recent MKIV?


Although I first discovered this when trying to use SciTE, it does
the same thing if invoked from the command line. The pdf viewer does
not appear in any of the SciTE *.properties files.


I haven't settled on SciTE as the editor I want to use but a SciTE-only
workaround misses the point.


in any editor, when one wants to run context, mtxrun --script context 
has to be configured and adding --autopdf=acrobat is then no big deal



maybe
context --autopdf=acrobat yourfile.tex
context --autopdf=fullacrobat yourfile.tex




When run from the cmd.exe command line, acrobat _does_ get launched
_but_ it gets launched before ConTeXt has created the pdf file then
hangs so the only way to exit is a Ctrl-C in the cmd.exe window. Simply
closing acrobat simply causes acrobat to launch again.


it has to do with the fact that only files opened with pdfopen.exe can 
be closed with pdfclose.exe .. both programs already have to jump 
through loops to get that done



A better solution would be to assume the person installing ConTeXt does
not have a PDF reader *at all* and include some minimal self-contained
reader (no dll's needed) in the distribution itself, the way rsync is
included. I really don't care which one, as long as there is *something*
present. MuPDF might be a good choice but I'm quite sure everyone on the
list has a favorite they would like to see as the included viewer for
one reason or another. As long as ConTeXt is guaranteed to find it, it
is a good default.


i suppose that summatrapdf can be put in the texmf-mswin/bin path .. 
after all. the portable version is not depending on other components


btw, is nothing is present, context will still run ok with --autopdf ... 
okay one will need a printer then


as said: acrobat just became too inconvenient for me to use in a fast 
edit/view cycle (pop ups, dialogs, conflicts between professional and 
reader, etc. makes me wonder where it's heading); i still use 
professional for proofing, inspection and presentations (when some 
javascript related features and/or layers and/or structure is needed).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 install, it probably 
won't be there. I've even met Unix systems without /make/. Requiring the 
user to use some flag or other seldom flies and results in many 
nastygrams and late-night phone calls. If you need it, include it.


I pass on this group of scars on my butt for what it's worth and declare 
the topic closed.


--
Bill Meahan
Westland, Michigan

The nice thing about standards is there are so many of them.  -- Henry 
Spencer





___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 reader at all. 


Cheers


Hans Hagen pra...@wxs.nl wrote:
 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
  viewer the default with no clear way to change it is not a
  good idea. For Windows, the vast majority of people have
  Acrobat Reader which is very often preinstalled. For Linux,
  it's less clear what the default should be but {xpdf
  |evince|acroread} are quite common. Can't speak to OSX as I've
  never used it but I'd bet a coffee Acrobat Reader is (or can
  be) there, too.
 
 - 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 reader
 and professional
 - acrobat occasionally tends to block
 - the latest version of acrobat has funny popups when opening docs
 
 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)
 - can be installed as portable application
 - works ok wine/linux (in fact has my preference now when on linux)
 
 so, enough reasons for me to have changed the defaults (esp because
 one can always set different defaults)
 
  Although I first discovered this when trying to use SciTE, it does
  the same thing if invoked from the command line. The pdf viewer does
  not appear in any of the SciTE *.properties files.
 
 
  maybe
  context --autopdf=acrobat yourfile.tex
  context --autopdf=fullacrobat yourfile.tex
 
 or in a scite user properties file:
 
 if PLAT_WIN
 name.flag.pdfopen=--autopdf=acrobat
 
 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 won't break. \fillinline and
 others fill the hole line, but I only want to fill a given size.

 Are there some ideas how to deal with it?

 Example:

 The name of the _ is _
 . And now it's time to go to bed.
 Some more text.


I haven't tested these ideas...

One possibility: type the answer in white, but give it a coloured
\underbar. (You might need to type longer answers, or in a larger font
size, to leave enough room for hand writing.)

Another: use a \fillinline - you can define the length.

-- 
David
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[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
\dorecurse{500}{text\linenote{variant} }
\stoplinenumbering
\stoptext

that shows the following issue: when compressseparator is set to none,
ConTeXt doesn’t suppress the distance that comes after the separator at
the beginning of the line.

As a general rule, I think it would make sense to always suppress
distance after separator when the separator isn’t set (not only at the
beginning of the line). This wouldn’t only fix the issue described
above, but it would avoid that compressed linenotes have more separation
space than uncompressed ones.

Could you fix this?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___