[NTG-context] Problem with MkIV and TikZ picture remembering

2015-03-02 Thread Jörg Weger

In the minimal working example below inside of a text two words should
be printed inside of rounded TikZ rectangles and should be connected by
an TikZ arrow pointing from the first word to the other.

TikZ offers the remember picture/overlay option for that.

The MWE works in MkII (command “texexec”) which I am not using, but not
in the latest MkIV (command “context”).

The problem might be that according to the PGF/TikZ manual “You need to
use a driver that supports picture remembering and you need to run TEX
twice” (16.13.1 Referencing a Node in a Different Picture).

So my questions are:

1.) Does LuaTeX support TikZ picture remembering?

2.) If so, how can I get ConTeXt MkIV to “run TeX twice”?

3.) If all of the above worked, would that work also if the inline TikZ
pictures to be remembered are on another file referenced via \input?

I have seen a solution similar to what I want to achieve in the METAFUN
manual but I don’t have a clue how to get that METAPOST alternative working.


Greetings Jörg


 START MWE %

\usemodule[tikz]

\usetikzlibrary[shapes.misc,arrows]

\starttext

\tikz[baseline,remember picture] \node[rounded
rectangle,draw,anchor=text] (n1) {this};
belongs to
\tikz[baseline,remember picture] \node[rounded
rectangle,draw,anchor=text] (n2) {that};

\starttikzpicture
[remember picture,overlay]
\draw[-] (n1.north) to [bend left] (n2.north);
\stoptikzpicture

\stoptext

 STOP MWE %%


___
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] Problem with MkIV and TikZ picture remembering

2015-03-02 Thread Jörg Weger
In the minimal working example below inside of a text two words should 
be printed inside of rounded TikZ rectangles and should be connected by 
an TikZ arrow pointing from the first word to the other.


TikZ offers the remember picture/overlay option for that.

The MWE works in MkII (command “texexec”) which I am not using, but not 
in the latest MkIV (command “context”).


The problem might be that according to the PGF/TikZ manual “You need to 
use a driver that supports picture remembering and you need to run TEX 
twice” (16.13.1 Referencing a Node in a Different Picture).


So my questions are:

1.) Does LuaTeX support TikZ picture remembering?

2.) If so, how can I get ConTeXt MkIV to “run TeX twice”?

3.) If all of the above worked, would that work also if the inline TikZ 
pictures to be remembered are on another file referenced via \input?


I have seen a solution similar to what I want to achieve in the METAFUN 
manual but I don’t have a clue how to get that METAPOST alternative working.



Greetings Jörg


 START MWE %

\usemodule[tikz]

\usetikzlibrary[shapes.misc,arrows]

\starttext

\tikz[baseline,remember picture] \node[rounded 
rectangle,draw,anchor=text] (n1) {this};

belongs to
\tikz[baseline,remember picture] \node[rounded 
rectangle,draw,anchor=text] (n2) {that};


\starttikzpicture
[remember picture,overlay]
\draw[-] (n1.north) to [bend left] (n2.north);
\stoptikzpicture

\stoptext

 STOP MWE %%
___
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 the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-02 Thread Hans Hagen

On 3/2/2015 7:42 AM, Gerben Wierda wrote:

On 02 Mar 2015, at 00:15, Wolfgang Schuster schuster.wolfg...@gmail.com
mailto:schuster.wolfg...@gmail.com wrote:



Am 01.03.2015 um 23:16 schrieb Gerben Wierda gerben.wie...@rna.nl
mailto:gerben.wie...@rna.nl:

On 01 Mar 2015, at 23:04, Wolfgang Schuster
schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote:



Am 01.03.2015 um 22:56 schrieb Gerben Wierda gerben.wie...@rna.nl
mailto:gerben.wie...@rna.nl:

On 01 Mar 2015, at 11:59, Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl wrote:


On 3/1/2015 11:48 AM, Gerben Wierda wrote:

I’m trying to migrate to mkiv and I’m running into a host of
troubles.
Here is one:

publications wrote a new auxiliary file 'prd_book.aux'
This is BibTeX, Version 0.99d (TeX Live 2014)
The top-level auxiliary file: prd_book.aux
The style file: cont-no.bst
I couldn't open database file gwierda.bib
---line 3 of file prd_book.aux
 : \bibdata{gwierda
 : }


The reason is that by using this command

(. /usr/local/src/ConTeXt/tex/setuptex  context test.tex)

I may have the latest ConTeXt compiling test.tex (it just adds
that to
te front of PATH), but I’ve lost access to additions I keep in
/usr/local/texlive/texmf-local and ~/Library/texmf)

How do I make sure the standalone ConTeXt gets access to these?


you can try \usemodule[oldbibtex]


Doesn’t change the problem. It won’t find files outside the
standalone ConTeXt tree.

I couldn't open database file gwierda.bib
---line 3 of file prd_book.aux
 : \bibdata{gwierda
 : }


Where do you have your bib file?


~/Library/texmf


The minimals use ~/texmf for the local tex folder.


Can I adapt that in some way, so I can add a few texmfs to the search
path? I have no problem with adapting a file or setting an environment
variable.


texmfcnf.lua (can be in your texmf-local tree) or the TEXMF env var; not 
so different from regular texlive, only in a different configuration file




--

-
  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] automatic generation of em dash at the beginning of a line

2015-03-02 Thread Alan BRASLAU
How about

Most newspapers ||and all that follow AP style|| insert a space
before and after the em dash.

Might I suggest that this could/should be set|-|up in Polish to repeat
the (second) emdash if it is followed by a line break?

Alan



On Mon, 2 Mar 2015 10:02:53 +0100
Hans Hagen pra...@wxs.nl wrote:

 On 3/1/2015 8:34 PM, Piotr Kopszak wrote:
  Many Thanks Hans!
 
  But that's not exactly what I need, sorry for being imprecise, I do
  not need to repeat hyphens, but only  em dashes (or en dashes, which
  ever are used in the document) in situations like this.
 
  Most newspapers — and all that follow AP style — insert a space
  before and after the em dash.
 
  It should look like this:
 
  Most newspapers — and all that follow  AP style —
  — insert a space before and  after the em dash.  
 
 \starttext
 
 \def\LEFT {\space\emdash\nbsp}
 \def\RIGHT{\nbsp\discretionary{\emdash}{\emdash}{\emdash}\nbsp}
 
 \setuplayout[width=21mm]
 \setuplayout[width=24mm]
 
 \setuptolerance[verytolerant]
 
 \showframe
 
 test test \LEFT a test and some more test\RIGHT\ test test
 
 \stoptext
 
 
  All Best
 
  Piotr
 
  2015-03-01 17:58 GMT+01:00 Hans Hagen pra...@wxs.nl:  
  On 3/1/2015 5:41 PM, Piotr Kopszak wrote:  
 
  Hello list,
 
  This is probably a Polish idiosyncrasy, but we have to live with
  it. According to punctuation rules when an em dash is at the end
  of a line, it should be repeated at the beginning of the next one
  (true, it is often disregarded due to lack of support for it in
  typesetting programs). Is there any way to deal with it in
  ConTeX?  
 
 
  \starttext
 
   \setuplanguage[pl][lefthyphenchar=45,righthyphenchar=45]
 
   \pl \input tufte
 
  \stoptext


-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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] automatic generation of em dash at the beginning of a line

2015-03-02 Thread Hans Hagen

On 3/1/2015 8:34 PM, Piotr Kopszak wrote:

Many Thanks Hans!

But that's not exactly what I need, sorry for being imprecise, I do
not need to repeat hyphens, but only  em dashes (or en dashes, which
ever are used in the document) in situations like this.

Most newspapers — and all that follow AP style — insert a space before
and after the em dash.

It should look like this:

Most newspapers — and all that follow  AP style —
— insert a space before and  after the em dash.


\starttext

\def\LEFT {\space\emdash\nbsp}
\def\RIGHT{\nbsp\discretionary{\emdash}{\emdash}{\emdash}\nbsp}

\setuplayout[width=21mm]
\setuplayout[width=24mm]

\setuptolerance[verytolerant]

\showframe

test test \LEFT a test and some more test\RIGHT\ test test

\stoptext



All Best

Piotr

2015-03-01 17:58 GMT+01:00 Hans Hagen pra...@wxs.nl:

On 3/1/2015 5:41 PM, Piotr Kopszak wrote:


Hello list,

This is probably a Polish idiosyncrasy, but we have to live with it.
According to punctuation rules when an em dash is at the end of a
line, it should be repeated at the beginning of the next one (true, it
is often disregarded due to lack of support for it in typesetting
programs). Is there any way to deal with it in ConTeX?



\starttext

 \setuplanguage[pl][lefthyphenchar=45,righthyphenchar=45]

 \pl \input tufte

\stoptext


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







--

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