Re: [NTG-context] bug in \setuparranging

2011-10-02 Thread Wolfgang Schuster

Am 02.10.2011 um 04:10 schrieb Yue Wang:

 Hi, Hans:
 
 this bug is still not solved.

It’s a feature to prevent impossible settings.

%\setuppapersize[A5][A4]
\setuppapersize[A4][A5]
\starttext \showframe
A5 or A4?
\stoptext

When you try to use a page (e.g. A4) which is larger then the paper (e.g. A5) 
context use the larger value for the papersize.

Maybe it makes sense to disable this mechanism when one arranges the pages but 
then \setuppapersize has to bet set after \setuparranging.

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] Float placement problem

2011-10-02 Thread Pontus Lurcock
On Sat 01 Oct 2011, Wolfgang Schuster wrote:

  I've recently updated my standalone (32-bit Linux) ConTeXT from
  2011.02.25 to 2011.09.20, and I'm now having some trouble with
  float placement. I'm using MkIV. I'm trying to have figures
  protruding into the outer margins with a double-sided layout, as
  described here:
  ...
  
  Does anyone have any ideas or insights?
 
 Should be fixed in the next beta.

Many thanks! I confirm that my original example works as expected with
ConTeXt 2011.10.01. However, for certain files (including my
dissertation) ConTeXt stops with the error ‘Argument of
\rootfloatparameter has an extra }’. Here's a minimal example which
causes the problem:

\starttext
\dorecurse{3}{
\placefigure[]{}{\externalfigure[cow.pdf]}
\input knuth
\placefigure[]{}{\externalfigure[cow.pdf]}
}
\stoptext

The example works if I comment out any of the three lines in the
\dorecurse, or if I change \dorecurse{3} to \dorecurse{2}. The example
also fails with 2011.09.20, but works with 2011.02.25.

Pont
___
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] location of mtx-scripts

2011-10-02 Thread Philipp Gesang
On 2011-10-02 00:19, Karl Berry wrote:
 Id like to ask if there is any update on this:
 
 The same issue has now arisen with context-simpleslides (hi Aditya and
 Thomas), which now has:
 scripts/context/lua/third/simpleslides/mtx-simpleslides.lua
 
 The t- prefix doesn't make a difference to TL, so I went ahead and added
 scripts/context/lua/third/PKGNAME to our patterns and updated
 simpleslides.
 
 Philipp, if you move mtx-rst.lua to scripts/context/lua/third/rst,
 (instead of directly under lua/), I'll update rst too.

OK, done. The repo on the garden should be updated by now.

Philipp


 
 Thanks,
 Karl

 ___
 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


pgpblM7SVjMP0.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] Float placement problem

2011-10-02 Thread Wolfgang Schuster

Am 02.10.2011 um 10:39 schrieb Pontus Lurcock:

 On Sat 01 Oct 2011, Wolfgang Schuster wrote:
 
 I've recently updated my standalone (32-bit Linux) ConTeXT from
 2011.02.25 to 2011.09.20, and I'm now having some trouble with
 float placement. I'm using MkIV. I'm trying to have figures
 protruding into the outer margins with a double-sided layout, as
 described here:
 ...
 
 Does anyone have any ideas or insights?
 
 Should be fixed in the next beta.
 
 Many thanks! I confirm that my original example works as expected with
 ConTeXt 2011.10.01. However, for certain files (including my
 dissertation) ConTeXt stops with the error ‘Argument of
 \rootfloatparameter has an extra }’. Here's a minimal example which
 causes the problem:
 
 \starttext
 \dorecurse{3}{
 \placefigure[]{}{\externalfigure[cow.pdf]}
 \input knuth
 \placefigure[]{}{\externalfigure[cow.pdf]}
 }
 \stoptext
 
 The example works if I comment out any of the three lines in the
 \dorecurse, or if I change \dorecurse{3} to \dorecurse{2}. The example
 also fails with 2011.09.20, but works with 2011.02.25.

page-one.mkiv:

\def\OTRONEdosettopinserts
  {\bgroup
   \ifsomefloatwaiting
 \noffloatinserts\zerocount
 \let\totaltopinserted\!!zeropoint
 \OTRONEdodosettopinserts
 \ifnum\rootfloatparameter\c!nbottom=\zerocount
   \ifnum\rootfloatparameter\c!nlines\zerocount
 \ifdim\totaltopinserted\zeropoint\relax
   
\ifdim\dimexpr\rootfloatparameter\c!nlines\lineheight+\totaltopinserted\relax\textheight
-\showmessage\m!floatblocks8\rootfloatparameter\c!nlines
+\showmessage\m!floatblocks8{\rootfloatparameter\c!nlines}%
 \vfilll\eject
   \fi
 \fi
   \fi
 \fi
   \fi
   \egroup}

\def\OTRONEdosetbothinserts
  {\global\topinserted\zeropoint
   \global\botinserted\zeropoint
   \ifflushingfloats \else
 \OTRONEdosettopinserts
 \OTRONEdosetbotinserts
 \ifsomefloatwaiting
-   \doif\rootfloatparameter\c!cache\v!no\doflushfloats
+   \doif{\rootfloatparameter\c!cache}\v!no\doflushfloats
 \fi
   \fi}

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] double line spacing in list (table of contents, publication list)

2011-10-02 Thread Wolfgang Schuster

Am 27.09.2011 um 15:09 schrieb Stefan Müller:

 Hi list,
 
 how can I get double line spacing in the table of contents and in the 
 publication list?  I tried \setupcombinedlist[content][after=\blank] but 
 this produces to much vertical spacing.

You can get a smaller space with “after=\blank[small]” or 
“after=\blank[halfline]”.

 \setupinterlinespace[big] doesn't influence those lists.

You can

\starttext

\start \setupinterlinespace[line=18pt]
\placecontent
\stop

...

\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
___


[NTG-context] disabling onum in url

2011-10-02 Thread Pablo Rodríguez
Hi there,

I'm a ConTeXt newbie that I have the following options and a command for
URLs in the document preamble (what comes before \starttext [I don't
know if it is named so in ConTeXt]):

\definefontfeature[default][default][onum=yes]
\setupbodyfontenvironment[default][em=italic]
\setupinteraction[state=start,color=,style=
em,contrastcolor=,focus=standard]

\def\href#1{\goto{\hyphenatedurl{#1}}[url(#1)]}

My question is: how can I disable old style numbers for the \href command?

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] writing date with ordinal numbers (\enordinaldaynumber) in mkiv

2011-10-02 Thread Hans Hagen

On 1-10-2011 15:14, Wolfgang Schuster wrote:


There is also a bug for the labels in the form “month:mnem” in lang-lab.lua

function languages.labels.define()
 local variables = interfaces.variables
 local data = languages.data.labels
 local function define(command,list,prefixed)
 if list then
 context.pushcatcodes(prtcatcodes) -- context.unprotect
 for tag, data in next, list do
 if data.hidden then
 -- skip
 else
 for language, text in next, data.labels do
 if text ==  then
 -- skip
 elseif prefixed and rawget(variables,tag) then


Ok, I now check both parts so best check the upcomming beta for it.

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] [Layout] Problem with ConTeXt mkII

2011-10-02 Thread Hans Hagen

On 1-10-2011 18:59, Pierre-François Bonnefoi wrote:

Hello Luigi,

your solution is better...but doesn't work completely : the first page is 
correct, the second is not, and after this one, the end of the document is 
correctly formatted...

hum...
Very strange and annoying...


I haven't followed this thread but when switching layouts, make sure to 
finish the current page (\page)


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] disabling onum in url

2011-10-02 Thread Philipp Gesang
Hi Pablo,

On 2011-10-02 12:58, Pablo Rodríguez wrote:
 Hi there,
 
 I'm a ConTeXt newbie that I have the following options and a command for
 URLs in the document preamble (what comes before \starttext [I don't
 know if it is named so in ConTeXt]):
 
   \definefontfeature[default][default][onum=yes]
   \setupbodyfontenvironment[default][em=italic]
   \setupinteraction[state=start,color=,style=
   em,contrastcolor=,focus=standard]
 
   \def\href#1{\goto{\hyphenatedurl{#1}}[url(#1)]}

·

\definefontfeature[default][default][onum=yes]
\setupbodyfontenvironment[default][em=italic]
\setupinteraction[state=start,color=,style=em,contrastcolor=,focus=standard]

%%% First, define the switch for text figures:
\definefontfeature[url][default][onum=no]

%%% Best use context’s default url commands:
\useURL[aurl][http://www.pragma-ade.com/download-1.htm]

%%% It comes with a proper setup for everything.
\setupurl[style={\tf\addff{url}}]

%%% If you must use the “href” macro, disable the font feature locally.
\define[1]\href{%
  \begingroup
\addff{url}%
\goto{\hyphenatedurl{#1}}[url(#1)]%
  \endgroup%
}

\starttext

42
%%% With the internal command:
\from[aurl]
42
%%% Your way:
\href{0123456789abcdef}
42

\stoptext

·

HTH, Philipp


 
 My question is: how can I disable old style numbers for the \href command?
 
 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
 ___

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


pgpCYM2U1Y0jr.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] [Layout] Problem with ConTeXt mkII

2011-10-02 Thread Pierre-François Bonnefoi
Hello Aditya,

You're the witness !

I obtain the same document that you've obtained : look at the third page : the 
size of the document is smaller, the text doesn't flow correctly on this page.
I've tried it on my document : no success.

For Hans, the \page make me jump ton a new page but doesn't correct the problem.

Thank you for your help,
Pierre-François.

-- 
Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr
Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
83, rue d'Isle  |  Mrs. Peel, we're needed...
87000 Limoges - FRANCE  | The Avengers.



smime.p7s
Description: S/MIME cryptographic 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
___

[NTG-context] start/stopitem and \sym

2011-10-02 Thread Steffen Wolfrum
Hans,

when we should use
   \startitem ... \stopitem
now, shouldn't there be a
   \startsym ... \stopsym
too?

Steffen, who just had a mixed case: sym and item in one itemize ;o(
___
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] disabling onum in url

2011-10-02 Thread Pablo Rodríguez
Hi  Philipp,

thanks for your reply.

I'm afraid it doesn't work. No matter which method I use. (Of course, I
copied and pasted your sample code, which doesn't work for me.)

On 10/02/2011 01:34 PM, Philipp Gesang wrote:
 \definefontfeature[default][default][onum=yes]
 \setupbodyfontenvironment[default][em=italic]
 \setupinteraction[state=start,color=,style=em,contrastcolor=,focus=standard]
 
 %%% First, define the switch for text figures:
 \definefontfeature[url][default][onum=no]

Here is the issue, if I rewrite:

\definefontfeature[url][default][onum=no,smcp=yes]

small caps will work, but they won't if I rewrite both:

\definefontfeature[default][default][onum=yes,smcp=yes]
\definefontfeature[url][default][onum=no,smcp=no]

 %%% Best use context’s default url commands:
 \useURL[aurl][http://www.pragma-ade.com/download-1.htm]

After having to write the second url, I began to think it was
unnecessarily complex.

Have I hit a bug or does it work for you?

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] new beta

2011-10-02 Thread Thomas A. Schmitz

On 10/01/2011 11:16 AM, Hans Hagen wrote:

Hi,

I uploaded a new beta. Apart from some fixes the following has been
added/changed. Some are side effects of discussions at the context meeting.

However, the biggest new thing is adapted cross document referencing.
This was already possible but we could not yet load external references
(as in mkii). See

http://www.pragma-ade.com/general/magazines/mag-1103.pdf

for how it works in mkiv. The test files cross-*.tex demonstrate a
couple of things. If one uses the project structure, then one can
process a component of a product and it will pick up references from the
main product as well as (given normal circumstances) start at the right
chapter number and page. Of course this is only a convenience option
(for proofing) as there is a dependency on the state of the parent
product. Given the fact that cross referencing data is spread over
several data structures this was a somewhat complex exercise. As a side
effect the tuc file now uses its own (temporary) namespace.

Hopefully nothing breaks due to these changes.


Hi Hans,

the cross-referencing is excellent new, I will have to play with it very 
soon! In the meantime, here's something which broke with the October 
beta (worked a week ago):


\definelinenote [critical]

\setupnote [critical] 
[rule=off,paragraph=yes,numbercommand=,inbetween=\hskip.5em\vl\hskip0.2em\vl\hskip.5em]

\setupdescriptions[critical] [display=no,location=serried,distance=.5em]

\setuplinenumbering[location=inner,step=5,method=page,style=\tfxx,align=left,distance=0.4em,width=0.4cm]

\starttext

ut \critical{labore et dolore magna aliquyam erat}, sed diam voluptua. At
clita kasd gubergren

\stoptext

linenotes produce this error:

! Undefined control sequence.

system   tex  error on line 10 in file test.tex: Undefined 
control sequence ...


 1 \definelinenote [critical]
 2
 3 \setupnote [critical] 
[rule=off,paragraph=yes,numbercommand=,inbetween=\hskip.5em\vl\hskip0.2em\vl\hskip.5em]
 4 \setupdescriptions[critical] 
[display=no,location=serried,distance=.5em]

 5
 6 
\setuplinenumbering[location=inner,step=5,method=page,style=\tfxx,align=left,distance=0.4em,width=0.4cm]

 7
 8 \starttext
 9
10   ut \critical{labore et dolore magna aliquyam erat}, sed diam 
voluptua. At

11 clita kasd gubergren
12
13 \stoptext
14


\@@expanded -\dodosetreference
{line}{lr:b:1}{conversion=numbers}{1}
\mksomelinereference ... }{\the \linerefcounter }}
  \endgroup
\mkstartlinereference ...wstartlinereference {#1}}
  \ignorespaces
\someline [#1]-\mkstartlinereference {#1}
  \mkstoplinereference {#1}
l.10 ...ical{labore et dolore magna aliquyam erat}
  , sed diam voluptua. At

which may have something to do with the new reference management, I guess?

All best

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
___


Re: [NTG-context] disabling onum in url

2011-10-02 Thread Philipp Gesang
On 2011-10-02 17:40, Pablo Rodríguez wrote:
 Hi  Philipp,
 
 thanks for your reply.
 
 I'm afraid it doesn't work. No matter which method I use. (Of course, I
 copied and pasted your sample code, which doesn't work for me.)
 
 On 10/02/2011 01:34 PM, Philipp Gesang wrote:
  \definefontfeature[default][default][onum=yes]
  \setupbodyfontenvironment[default][em=italic]
  \setupinteraction[state=start,color=,style=em,contrastcolor=,focus=standard]
  
  %%% First, define the switch for text figures:
  \definefontfeature[url][default][onum=no]
 
 Here is the issue, if I rewrite:
 
   \definefontfeature[url][default][onum=no,smcp=yes]
 
 small caps will work, but they won't if I rewrite both:
 
   \definefontfeature[default][default][onum=yes,smcp=yes]
   \definefontfeature[url][default][onum=no,smcp=no]

Well, in my previous example, rather use:

  \definefontfeature[url][onum=no,smcp=yes]

and come back with a complete example if it doesn’t help.

(Btw, looks like you consider setting the default font style to
small caps. Is this really what you intended?)

 After having to write the second url, I began to think it was
 unnecessarily complex.

Fwiw I think that \useURL fits the context style best as it
separates the declaration of an element from its use in the
document.

Best regards
Philipp



 
  %%% Best use context’s default url commands:
  \useURL[aurl][http://www.pragma-ade.com/download-1.htm]
 
 After having to write the second url, I began to think it was
 unnecessarily complex.
 
 Have I hit a bug or does it work for you?
 
 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
 ___

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


pgp7a6e1rlxXr.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] [Layout] Problem with ConTeXt mkII

2011-10-02 Thread Wolfgang Schuster

Am 02.10.2011 um 16:39 schrieb Pierre-François Bonnefoi:

 Hello Aditya,
 
 You're the witness !
 
 I obtain the same document that you've obtained : look at the third page : 
 the size of the document is smaller, the text doesn't flow correctly on this 
 page.
 I've tried it on my document : no success.


Set the global layout with “\definelayout[current][..,.=.,..]”, when this 
layout is defined context will use it after it has used a layout for a certain 
page (in your case for the first page).

% engine=pdftex

\setuppapersize[A4][A4]

\definelayout
  [current]
  [backspace=3cm,
   topspace=1.5cm,
   leftmargin=1.3cm,
   rightmargin=0cm,
   width=15cm,
   leftmargindistance=0.2cm,
   height=middle,
   header=0cm,
   footer=1cm]

\definelayout
  [1]
  [topspace=5.2cm,
   height=middle]

\showframe[text][text]

\setuptolerance[verytolerant,stretch]

\starttext
\dorecurse{100}{\input knuth\par}
\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] disabling onum in url

2011-10-02 Thread Pablo Rodríguez
On 10/02/2011 06:40 PM, Philipp Gesang wrote:
 Well, in my previous example, rather use:
 
   \definefontfeature[url][onum=no,smcp=yes]
 
 and come back with a complete example if it doesn’t help.

Philipp, I'm afraid it doesn't work. Sample file:

\definefontfeature[default][default][onum=yes]
\setupbodyfontenvironment[default][em=italic]
\setupinteraction[state=start,color=,style=em,contrastcolor=,focus=standard]

%%% First, define the switch for text figures:
\definefontfeature[url][onum=no,smcp=yes]

%%% Best use context’s default url commands:
\useURL[aurl][http://www.pragma-ade.com/download-1.htm]

%%% It comes with a proper setup for everything.
\setupurl[style={\tf\addff{url}}]

%%% If you must use the “href” macro, disable the font feature locally.
\define[1]\href{%
  \begingroup
\addff{url}%
\goto{\hyphenatedurl{#1}}[url(#1)]%
  \endgroup%
}

\starttext

42
%%% With the internal command:
\from[aurl]
42
%%% Your way:
\href{0123456789abcdef}
42

 (Btw, looks like you consider setting the default font style to
 small caps. Is this really what you intended?)

No, I was only checking the “feature”. It seems that if an OT feature is
enabled as default, you cannot disable it for urls (at least, this is
what I get).

 After having to write the second url, I began to think it was
 unnecessarily complex.
 
 Fwiw I think that \useURL fits the context style best as it
 separates the declaration of an element from its use in the
 document.

Sorry, but I'm afraid I don't see your point. Would you think the same
for titles or emphasized text?

Imagine a whole book in one document. If you have more than 100 urls, it
would be inconvenient to have to go to the document preamble and back to
the body text only to add an url.

But I guess it might be a question of habits.

Many thanks for your help 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] disabling onum in url

2011-10-02 Thread Wolfgang Schuster

Am 02.10.2011 um 19:53 schrieb Pablo Rodríguez:

 On 10/02/2011 06:40 PM, Philipp Gesang wrote:
 Well, in my previous example, rather use:
 
  \definefontfeature[url][onum=no,smcp=yes]
 
 and come back with a complete example if it doesn’t help.
 
 Philipp, I'm afraid it doesn't work. Sample file:
 
 […]

Use \addfs{url} to disable the onus feature.

 After having to write the second url, I began to think it was
 unnecessarily complex.
 
 Fwiw I think that \useURL fits the context style best as it
 separates the declaration of an element from its use in the
 document.
 
 Sorry, but I'm afraid I don't see your point. Would you think the same
 for titles or emphasized text?
 
 Imagine a whole book in one document. If you have more than 100 urls, it
 would be inconvenient to have to go to the document preamble and back to
 the body text only to add an url.
 
 But I guess it might be a question of habits.

Move the preamble in a external environment file, you can then switch
between both without scrolling up and down.

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] disabling onum in url

2011-10-02 Thread Philipp Gesang
On 2011-10-02 19:53, Pablo Rodríguez wrote:
 On 10/02/2011 06:40 PM, Philipp Gesang wrote:
  Well, in my previous example, rather use:
  
\definefontfeature[url][onum=no,smcp=yes]
  
  and come back with a complete example if it doesn’t help.
 
 Philipp, I'm afraid it doesn't work. Sample file:

As I thought: the problem is rather with latin modern not having
small caps as font feature, so „\definefontfeature” will have
zero effect on the example. Your options are afaics: either pick
a font that has the smcp feature (\setupbodyfont[antykwa-poltawskiego]
for example) or rely on the “style” key of the interaction
setups:

·

\setupbodyfontenvironment[default][em=italic]
\setupinteraction[state=start,color=,style=\em,contrastcolor=,focus=standard]

\useURL[aurl][http://www.pragma-ade.com/download-1.htm]

\setupurl[style={\tf\sc}]
%%% ^^^ for the traditional method

\define[1]\href{%
  \begingroup
\setupinteraction[style=\sc]% locally override the interaction style
\goto{\hyphenatedurl{#1}}[url(#1)]%
  \endgroup%
}

\starttext

42 abcd
%%% With the internal command:
\from[aurl]
42 abcd
%%% Your way:
\href{0123456789abcdef}
42 abcd

\stoptext

·

 Imagine a whole book in one document. If you have more than 100 urls, it
 would be inconvenient to have to go to the document preamble and back to
 the body text only to add an url.

In this case, wouldn’t you prefer a bibliography?

Philipp

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


pgpDazBje1xeD.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] disabling onum in url

2011-10-02 Thread Pablo Rodríguez
On 10/02/2011 08:20 PM, Philipp Gesang wrote:
 On 2011-10-02 19:53, Pablo Rodríguez wrote:

 Philipp, I'm afraid it doesn't work. Sample file:
 
 As I thought: the problem is rather with latin modern not having
 small caps as font feature, [...]

Sorry, my own example was misleading (or so it seems to have been).

Wolfgang has found the cause of the problem.

Disabling mall caps when having enabled them for the default didn't work
either with TeX Gyre Pagella, because of using \addff instead of \addfs.

 Imagine a whole book in one document. If you have more than 100 urls, it
 would be inconvenient to have to go to the document preamble and back to
 the body text only to add an url.
 
 In this case, wouldn’t you prefer a bibliography?

It depends on the kind of book you are working on. If the only items of
the bibliography would be urls (no printed stuff), I would avoid using a
bibliography.

One of the most annoying features I found in some academic books (I have
found some in humanities) is having to go back an forth because of the
endnotes using quotations with the author-year system, so you have to
stop reading, go to the endnote page and then to the bibliography page
referring to the cited work.

Because of that, I prefer to give all information on the same page.

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] disabling onum in url

2011-10-02 Thread Pablo Rodríguez
On 10/02/2011 08:00 PM, Wolfgang Schuster wrote:
 
 Use \addfs{url} to disable the onus feature.

Many thanks, Wolfgang.

This fixed the problem.

 After having to write the second url, I began to think it was
 unnecessarily complex.
 [...]
 But I guess it might be a question of habits.
 
 Move the preamble in a external environment file, you can then switch
 between both without scrolling up and down.

I think that it is a question of personal preference and practice.

But I find it distracting (when not disturbing) to be forced to move
when writing a text because of a website location.

I tend to consider it as any other element such as a title, an
emphasized text, a quote in German or a Latin or ancient Greek expression.

One of the main capabilities of TeX is separating text from presentation
and enabling the focus on one of the elements. Having to define
segregated URLs in the document preamble seems to as the opposite to
this approach.

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] new beta

2011-10-02 Thread Hans Hagen

On 2-10-2011 18:16, Thomas A. Schmitz wrote:


the cross-referencing is excellent new, I will have to play with it very
soon! In the meantime, here's something which broke with the October
beta (worked a week ago):


fixed (just a forgotten low level rename)

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] new beta

2011-10-02 Thread Thomas A. Schmitz

On 10/02/2011 10:59 PM, Hans Hagen wrote:

On 2-10-2011 18:16, Thomas A. Schmitz wrote:


the cross-referencing is excellent new, I will have to play with it very
soon! In the meantime, here's something which broke with the October
beta (worked a week ago):


fixed (just a forgotten low level rename)

Hans


Great, I just tried, and it works again! Thanks for the quick fix!

All best

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
___


Re: [NTG-context] Float placement problem

2011-10-02 Thread Pontus Lurcock
On Sun 02 Oct 2011, Wolfgang Schuster wrote:

  The example works if I comment out any of the three lines in the
  \dorecurse, or if I change \dorecurse{3} to \dorecurse{2}. The
  example also fails with 2011.09.20, but works with 2011.02.25.
 
 page-one.mkiv:
 ...

Thank you once more; this now works as expected for me, both on the
example and on my dissertation.

Pont
___
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] new beta

2011-10-02 Thread emmanuela . asante

Sent wirelessly from my BlackBerry device on the Bell network.
Envoyé sans fil par mon terminal mobile BlackBerry sur le réseau de Bell.

-Original Message-
From: Thomas A. Schmitz thomas.schm...@uni-bonn.de
Sender: ntg-context-boun...@ntg.nl
Date: Sun, 02 Oct 2011 18:16:17 
To: mailing list for ConTeXt usersntg-context@ntg.nl
Reply-To: mailing list for ConTeXt users ntg-context@ntg.nl
Subject: Re: [NTG-context] new beta

On 10/01/2011 11:16 AM, Hans Hagen wrote:
 Hi,

 I uploaded a new beta. Apart from some fixes the following has been
 added/changed. Some are side effects of discussions at the context meeting.

 However, the biggest new thing is adapted cross document referencing.
 This was already possible but we could not yet load external references
 (as in mkii). See

 http://www.pragma-ade.com/general/magazines/mag-1103.pdf

 for how it works in mkiv. The test files cross-*.tex demonstrate a
 couple of things. If one uses the project structure, then one can
 process a component of a product and it will pick up references from the
 main product as well as (given normal circumstances) start at the right
 chapter number and page. Of course this is only a convenience option
 (for proofing) as there is a dependency on the state of the parent
 product. Given the fact that cross referencing data is spread over
 several data structures this was a somewhat complex exercise. As a side
 effect the tuc file now uses its own (temporary) namespace.

 Hopefully nothing breaks due to these changes.

Hi Hans,

the cross-referencing is excellent new, I will have to play with it very 
soon! In the meantime, here's something which broke with the October 
beta (worked a week ago):

\definelinenote [critical]

\setupnote [critical] 
[rule=off,paragraph=yes,numbercommand=,inbetween=\hskip.5em\vl\hskip0.2em\vl\hskip.5em]
\setupdescriptions[critical] [display=no,location=serried,distance=.5em]

\setuplinenumbering[location=inner,step=5,method=page,style=\tfxx,align=left,distance=0.4em,width=0.4cm]

\starttext

ut \critical{labore et dolore magna aliquyam erat}, sed diam voluptua. At
clita kasd gubergren

\stoptext

linenotes produce this error:

! Undefined control sequence.

system   tex  error on line 10 in file test.tex: Undefined 
control sequence ...

  1 \definelinenote [critical]
  2
  3 \setupnote [critical] 
[rule=off,paragraph=yes,numbercommand=,inbetween=\hskip.5em\vl\hskip0.2em\vl\hskip.5em]
  4 \setupdescriptions[critical] 
[display=no,location=serried,distance=.5em]
  5
  6 
\setuplinenumbering[location=inner,step=5,method=page,style=\tfxx,align=left,distance=0.4em,width=0.4cm]
  7
  8 \starttext
  9
10   ut \critical{labore et dolore magna aliquyam erat}, sed diam 
voluptua. At
11 clita kasd gubergren
12
13 \stoptext
14


\@@expanded -\dodosetreference
 {line}{lr:b:1}{conversion=numbers}{1}
\mksomelinereference ... }{\the \linerefcounter }}
   \endgroup
\mkstartlinereference ...wstartlinereference {#1}}
   \ignorespaces
\someline [#1]-\mkstartlinereference {#1}
   \mkstoplinereference {#1}
l.10 ...ical{labore et dolore magna aliquyam erat}
   , sed diam voluptua. At

which may have something to do with the new reference management, I guess?

All best

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
___
___
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
___