[NTG-context] publication list: bounding box problems

2013-01-24 Thread Andreas Mang
Hi there,

I am fine tuning my doc. I have problems with the publication list, as some of 
the publications extend to the margin of my document. I have not been able to 
find a solution. This is probably a very common issue. I assume some of you 
had/have the same problem. Is there a quick way to fix this? This is quite 
urgent (picture attached).

Cheers
Andreas

[cid:633B7855-1447-4534-9F43-580B58659B88@uzl-wlan.uni-luebeck.de]
inline: references.png___
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] publication list: bounding box problems

2013-01-24 Thread Marco Patzer
On 2013–01–24 Andreas Mang wrote:

 I am fine tuning my doc. I have problems with the publication
 list, as some of the publications extend to the margin of my
 document. I have not been able to find a solution. This is
 probably a very common issue. I assume some of you had/have the
 same problem. Is there a quick way to fix this?

You can increase the tolerance for the publication list:

  \setuptolerance [verytolerant]

Marco


signature.asc
Description: Digital 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] Big with \widehat and \widetilde

2013-01-24 Thread Hans Hagen

On 1/23/2013 8:31 PM, Otared Kavian wrote:

Hi Hans,

With the latest betas (version 2013.01.23 14:45 MKIV  fmt: 2013.1.23)
 \widehat and \widetilde
do not work anymore in mkiv (no matter the font): minimal example

 begin bug-tilde.tex
\starttext

${\widetilde V}$

${\tilde u}$

${\widehat \phi}$

${\hat \alpha}$

\stoptext
 end bug-tilde.tex
For your information, the same file works fine in mkii.


The implementation of math in mkiv is different from mkii so mkii macros 
probably won't work anyway.


I changes the definitions to suit the new lm/gyre otf fonts (and changed 
the virtual ones accordingly).


There might be a few more issues coming as we're in a sort of transition 
now (for instance all arrow code has been redone due to extensions in 
lm/gure).


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
___


[NTG-context] \thinrule in \margintext doesn't work

2013-01-24 Thread Devendra Ghate
If \thinrule is used in \margintext, context gives error. \hairline 
works fine.



*Details:* ConTeXt  ver: 2013.01.10 01:04 MKIV  fmt: 2013.1.13

*Error Message:*
! Undefined control sequence.

system   tex  error on line 2 in file a.tex: Undefined control 
sequence ...


1 \starttext
2   \margintext{\thinrule A margintext with thinrule.}
3 %\margintext{\hairline A margintext with hairline.}
4 \stoptext
5


\thinrule -\strut \bgroup \edef \p_height
{\directthinrulesparameter \c!hei...
argument \thinrule
 A margintext with thinrule.
\doifelsenothing #1-\edef \m_syst_string_one {#1
 }\ifx 
\m_syst_string_one \e...

\typo_margins_data_yes_indeed ...felsenothing {#3}
  \donefalse \donetrue 
\ifdo...

l.2 ...text{\thinrule A margintext with thinrule.}


**MWE**

\starttext
%\margintext{\thinrule A margintext with thinrule.}
\margintext{\hairline A margintext with hairline.}
\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
___

Re: [NTG-context] ToC - dots distance

2013-01-24 Thread Marco Patzer
On 2013–01–23 Wolfgang Schuster wrote:

  Out of curiosity: Is possible to set up the new filler mechanism in
  a way to yield alternating dots like in the TeXbook?
  
  default look:
  
  1. First chapter  ...   1
  2. Second chapter ...  10 
  
  requested look:
  
  1. First chapter  . . . . . . . . . .   1
  2. Second chapter . . . . . . . . . .  10
  
  alternating look (Knuths' TeXbook style)
  
  1. First chapter . . . . . . . . . . .  1
  2. Second chapter . . . . . . . . . .  10
 
 \definefiller[pavel-0][alterntive=symbol,method=global,width=1em,leftmargin=.5em,rightmargin=.5em,symbol=\clap{.}]
 \definefiller[pavel-1][pavel-0][align=left]
 \definefiller[pavel-2][pavel-0][align=middle]
 
 […]

Very nice. I wikified¹ that code in case someone needs it.

Marco


[1] http://wiki.contextgarden.net/Table_of_Contents#Alternating_filler_dots


signature.asc
Description: Digital 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] mathcommand / mfunction now italic

2013-01-24 Thread Andreas Mang
Hi,

did something change in consideration of mathcommand/mfunction? I get italic 
operators instead of the usual (I suppose) upright typesetting.

Thanks!

Cheers
Andreas

 minimal example 

\definemathcommand[diag][nolop]{\mfunction{diag}}

\starttext
$\diag(1,\ldots,1)$ % diag is italic, but should be upright
\stoptext

 minimal example 

ConTeXt  ver: 2013.01.24 10:07 MKIV  fmt: 2013.1.24
___
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] mathcommand / mfunction now italic

2013-01-24 Thread Hans Hagen

On 1/24/2013 2:33 PM, Andreas Mang wrote:

Hi,

did something change in consideration of mathcommand/mfunction? I get italic 
operators instead of the usual (I suppose) upright typesetting.


When working on a a chapter in an upcoming font manual I found out that 
\mr (regular) was not consistent with \mb so I changed that. As a 
consequence \en should use \mathupright instead of \mr to assure upright 
because it makes sense to let \mr and \mr reset the state to math italic 
symbols.


It's fixed in the next beta.

Btw, \mb has been around for a while but I made it a bit more robust. 
When no real [complete] bold font is present (and there are not many) a 
fallback mechanism kicked in but I found out that we also have 
incomplete bold fonts so I've an extra fallback mechanisms for that.


So, we have several axis: regular and bold as well as l2r and r2l as 
well as styles. Only XITS has a bit of all.


Hans

Ps. There are some more (new) things but that's for later.

-
  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] \thinrule in \margintext doesn't work

2013-01-24 Thread Hans Hagen

On 1/24/2013 10:26 AM, Devendra Ghate wrote:

If \thinrule is used in \margintext, context gives error. \hairline
works fine.


You can add an \unexpanded in pack-mrl.mkiv and remake the format:

\unexpanded\def\thinrule

-
  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] Layers, overlays

2013-01-24 Thread Sietse Brouwer
Hello Lukáš,

I don't understand layers and overlays. This is what I could learn
about \tightlayer from the source; I hope that reviving your question
will help somebody else actually answer it.

\tightlayer is defined in pack-lyr.mkiv.

\unexpanded\def\tightlayer[#1]%
  {\hbox
 {\def\currentlayer{#1}% todo: left/right
  \setbox\nextbox\emptybox   % hoogte/breedte are
\wd\nextbox/\ht\nextbox
  \hsize\layerparameter\c!width  % \overlaywidth   = \hsize
  \vsize\layerparameter\c!height % \overlaywheight = \vsize
  \composedlayer{#1}}}

The last command flushes the layer we are about to place:
\composedlayer{x} is syntactic sugar for \flushlayer[x]. (Braces vs.
brackets.)

So it seems that what \tightlayer does is create a layer object
exactly as large as its contents? What this is good for, and how it
relates to overlays, I do not know.

Good luck!

--Sietse
___
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] \thinrule in \margintext doesn't work

2013-01-24 Thread Hans Hagen

On 1/24/2013 10:26 AM, Devendra Ghate wrote:


**MWE**

\starttext
%\margintext{\thinrule A margintext with thinrule.}
\margintext{\hairline A margintext with hairline.}
\stoptext


btw, after fixing it this becomes a MNWE as a \margintext without 
anything following it will never show up.


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


[NTG-context] Can Tikz external library be used in Context?

2013-01-24 Thread Devendra Ghate

Hi,

Following MWE produces the error given below. I have been able to include
other tikz libraries (arrows, decorations) successfully.

*MWE*

\usemodule[tikz]
\usetikzlibrary{external}

\starttext
 A
\stoptext

*Error*
-
! Missing number, treated as zero.

system   tex  error on line 1290 in file 
/home/deven/context/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzexternalshared.code.tex: 
Missing number, treated as zero ...


1280 \gdef\tikzexternal@activate@normal@dq{\let=\tikzexternal@normal@dq}
1281 \gdef\tikzexternal@activate@normal@sq{\let'=\tikzexternal@normal@sq}
1282 
\gdef\tikzexternal@activate@normal@semic{\let;=\tikzexternal@normal@semic}

1283 \gdef\tikzexternal@activate@normal@and{\let=\tikzexternal@normal@and}
1284 
\gdef\tikzexternal@activate@normal@dash{\let-=\tikzexternal@normal@dash}

1285 \catcode`\|=0
1286 \catcode`\\=12
1287 |xdef|tikzexternal@normal@backslash{\}%
1288 }
1289 {
1290   \catcode`\^^I=12
1291 \catcode`\$=12
1292 \catcode`\%=12
1293 \catcode`\#=12
1294 \gdef\tikzexternal@HASHchar{#}
1295 
\gdef\tikzexternal@TABchar{^^I}\gdef\tikzexternal@PERCENTchar{%}\xdef\tikzexternal@DOLLARchar{$}}

1296
1297 % Creates the '/tikz/external/system call' command as string and
1298 % returns it into the (global!) macro #2.
1299 % #1: the image file name (as returned by
1300 % \tikzexternalgetnextfilename)

to be read again
   ^
l.1290 \catcode`\^^
   I=12

___
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] Can Tikz external library be used in Context?

2013-01-24 Thread Marco Patzer
On 2013–01–24 Devendra Ghate wrote:

 \usemodule[tikz]
 \usetikzlibrary{external}

Use brackets:

\usetikzlibrary [external]

 \starttext
  A
 \stoptext

This example works here with current version: 2013.01.24 16:47.

Marco


signature.asc
Description: Digital 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] Can Tikz external library be used in Context?

2013-01-24 Thread Mojca Miklavec
On Thu, Jan 24, 2013 at 5:44 PM, Devendra Ghate wrote:
 Hi,

 Following MWE produces the error given below. I have been able to include
 other tikz libraries (arrows, decorations) successfully.

 *MWE*

 \usemodule[tikz]
 \usetikzlibrary{external}

You need to use [brackets] instead of {braces}. See the manual, for
example section 3.2 (Setting up the environment).

\usemodule[tikz]
\usetikzlibrary[arrows]

\starttext
  \starttikzpicture
\draw[stealth-] (0,0) -- (1,1);
  \stoptikzpicture
\stoptext

Mojca
___
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] Can Tikz external library be used in Context?

2013-01-24 Thread Devendra Ghate


On 01/24/2013 11:23 PM, Marco Patzer wrote:

On 2013--01--24 Devendra Ghate wrote:


\usemodule[tikz]
\usetikzlibrary{external}

Use brackets:

\usetikzlibrary [external]


\starttext
  A
\stoptext

This example works here with current version: 2013.01.24 16:47.

Marco



Just upgraded context installation( to 2013.01.24 16:47),
corrected my MWE and I am still getting exactly the same error.

I followed the guidelines from the wiki for upgrading:

rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
./first-setup.sh --modules=all

Is there any way of checking if my installation is correct?

Regards,
Devendra

PS: Why didn't context throw an error when I made a mistake of
using braces instead of brackets? In fact, I generated a flow
 chart in tikz using the arrows library like that. Everything worked
fine.



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

Re: [NTG-context] Can Tikz external library be used in Context?

2013-01-24 Thread Marco Patzer
On 2013–01–25 Devendra Ghate wrote:

 Just upgraded context installation( to 2013.01.24 16:47),
 corrected my MWE and I am still getting exactly the same error.

You're right, it fails here, too. The message got lost in between
all the tikz log output. On my machine I get:

Package tikz: Error! I did not find the tikz library 'external'. I looked for 
files named tikzlibraryexternal.code.tex and pgflibraryexternal.code.tex, but 
neither could be found in the current texmf trees..

And tikz is right with that. There is no such file in the
distribution. Either the name of this module changed or the file is
missing in the distribution, I guess.

The pgfplots module ships with a file called

/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_tikzlibraryexternal.code.tex

this seems to be the file in question. However, the name
“oldpgfcompatib” insinuates that this module might be deprecated.
Maybe Mojca knows more details about this issue.

Marco


signature.asc
Description: Digital 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] Can Tikz external library be used in Context?

2013-01-24 Thread Aditya Mahajan

On Thu, 24 Jan 2013, Marco Patzer wrote:


On 2013–01–25 Devendra Ghate wrote:


Just upgraded context installation( to 2013.01.24 16:47),
corrected my MWE and I am still getting exactly the same error.


You're right, it fails here, too. The message got lost in between
all the tikz log output. On my machine I get:

Package tikz: Error! I did not find the tikz library 'external'. I looked for 
files named tikzlibraryexternal.code.tex and pgflibraryexternal.code.tex, but 
neither could be found in the current texmf trees..

And tikz is right with that. There is no such file in the
distribution. Either the name of this module changed or the file is
missing in the distribution, I guess.


From the pgf manaul:

32.3 A Word About ConTEXt And Plain TEX

Currently, the basic layer backend \beginpgfgraphicnamed ... 
\endpgfgraphicnamed relies on LATEX only, so externalization is only 
supported for LATEX yet.


Perhaps you can use the filter module for externalizing tikz figures.

Aditya___
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] \processcommalist with any separator

2013-01-24 Thread Jaroslav Hajtmar

Hello ConTeXist.

I use the \processcommalist command and at this point I would like to 
see if there is any possibility of using a similar command but with the 
custom separator. Not to me to use a comma as a separator, because I 
need to have a comma as a character in the processed item list.


Thanks Jaroslav Hajtmar


Here is my inspirative minimal example:

\def\setmyownparameter#1#2{%
\global\def\myparameter{#2}#1%
}%%

\def\processmylist[#1]#2%
  {\processcommalist[#1]{\setmyownparameter{#2}}}


\startbuffer[mybuffer]
Here I use my parameter \myparameter.\par
\stopbuffer


\starttext

\processmylist[firstparameter, secondparameter, thirdparameter]{
\getbuffer[mybuffer]
}


% I would like use for example * as list separator (best option to 
choose any character).


%\processmylist[Hello, He said.*Here is comma, used too.* And here is 
comma, too.]{

%\getbuffer[mybuffer]
%}


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


Re: [NTG-context] \processcommalist with any separator

2013-01-24 Thread Wolfgang Schuster

Am 24.01.2013 um 21:35 schrieb Jaroslav Hajtmar hajt...@gyza.cz:

 Hello ConTeXist.
 
 I use the \processcommalist command and at this point I would like to see if 
 there is any possibility of using a similar command but with the custom 
 separator. Not to me to use a comma as a separator, because I need to have a 
 comma as a character in the processed item list.

\starttext

\define[1]\ListEntry{#1\par}

\processcommalist[one,two,{three,four}]\ListEntry

\blank

\processseparatedlist[one;two;three,four][;]\ListEntry

\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] \processcommalist with any separator

2013-01-24 Thread Jaroslav Hajtmar

Thanx Wolfgang
Great - it works - that's what I needed ..

I apologize, but I have not found anywhere command \processseparatedlist ...
respectively. I did not know exactly what to look for.

Jaroslav Hajtmar


Dne 24.1.2013 21:49, Wolfgang Schuster napsal(a):

Am 24.01.2013 um 21:35 schrieb Jaroslav Hajtmar hajt...@gyza.cz:


Hello ConTeXist.

I use the \processcommalist command and at this point I would like to see if 
there is any possibility of using a similar command but with the custom 
separator. Not to me to use a comma as a separator, because I need to have a 
comma as a character in the processed item list.

\starttext

\define[1]\ListEntry{#1\par}

\processcommalist[one,two,{three,four}]\ListEntry

\blank

\processseparatedlist[one;two;three,four][;]\ListEntry

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