[NTG-context] spaces in file names

2010-01-13 Thread Hans van der Meer

I would like to include a file with spaces in its name.
Clearly it does not work using: \input /Users/me/dir with spaces/file
I can use something like:
  \def\DataDirectory#1{\def\DATADIRECTORY{#1/}} % in reality coping  
with empty #1

  \DataDirectory{/Users/me/dir with spaces}
  \def\Input#1{\input \DATADIRECTORY#1}
and then that file is read.
When however I want to set this directory with
  \setupexternalfigures[directory=\DATADIRECTORY]
it does not find the picture file there.

How can I accomplish the setup? Do I miss something? Using  
contextbeta, if that makes a difference.


Hans van der Meer




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

2010-01-13 Thread luigi scarso
On Wed, Jan 13, 2010 at 11:51 AM, Hans van der Meer h.vanderm...@uva.nl wrote:
 I would like to include a file with spaces in its name.
 Clearly it does not work using: \input /Users/me/dir with spaces/file
 I can use something like:
  \def\DataDirectory#1{\def\DATADIRECTORY{#1/}} % in reality coping with
 empty #1
  \DataDirectory{/Users/me/dir with spaces}
  \def\Input#1{\input \DATADIRECTORY#1}
 and then that file is read.
 When however I want to set this directory with
  \setupexternalfigures[directory=\DATADIRECTORY]
 it does not find the picture file there.

 How can I accomplish the setup? Do I miss something? Using contextbeta, if
 that makes a difference.

 Hans van der Meer


what about
\setupexternalfigures[directory={\DATADIRECTORY}]
?
-- 
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] spaces in file names

2010-01-13 Thread Hans van der Meer


On 13 jan 2010, at 11:55, luigi scarso wrote:

On Wed, Jan 13, 2010 at 11:51 AM, Hans van der Meer h.vanderm...@uva.nl 
 wrote:

I would like to include a file with spaces in its name.
Clearly it does not work using: \input /Users/me/dir with spaces/file
I can use something like:
 \def\DataDirectory#1{\def\DATADIRECTORY{#1/}} % in reality coping  
with

empty #1
 \DataDirectory{/Users/me/dir with spaces}
 \def\Input#1{\input \DATADIRECTORY#1}
and then that file is read.
When however I want to set this directory with
 \setupexternalfigures[directory=\DATADIRECTORY]
it does not find the picture file there.

How can I accomplish the setup? Do I miss something? Using  
contextbeta, if

that makes a difference.

Hans van der Meer



what about
\setupexternalfigures[directory={\DATADIRECTORY}]
?


Tried it but NO. That didn't work. Without a space in the directory  
name I can find the picture. But as soon as a space gets in the  
directory name then the picture file is not found.


Hans van der Meer.
___
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 file names

2010-01-13 Thread luigi scarso
On Wed, Jan 13, 2010 at 12:12 PM, Hans van der Meer h.vanderm...@uva.nl wrote:
 what about
 \setupexternalfigures[directory={\DATADIRECTORY}]
 ?

 Tried it but NO. That didn't work. Without a space in the directory name I
 can find the picture. But as soon as a space gets in the directory name then
 the picture file is not found.
:-(
the last one...
\setupexternalfigures[directory={\DATADIRECTORY}]



-- 
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] spaces in file names

2010-01-13 Thread Hans van der Meer


On 13 jan 2010, at 12:16, luigi scarso wrote:

On Wed, Jan 13, 2010 at 12:12 PM, Hans van der Meer h.vanderm...@uva.nl 
 wrote:

what about
\setupexternalfigures[directory={\DATADIRECTORY}]
?


Tried it but NO. That didn't work. Without a space in the directory  
name I
can find the picture. But as soon as a space gets in the directory  
name then

the picture file is not found.

:-(
the last one...
\setupexternalfigures[directory={\DATADIRECTORY}]



NO again. Doing:
\DataDirectory{/Users/hans/Movies/Inlays/Muziek/MadisonSquare Garden}  
% defs \DATADIRECTORY

\setupexternalfigures[directory={\DATADIRECTORY}]


gives an error:
! LuaTeX error main ctx instance:1: ')' expected near 'Garden'.
\setfigurepathlist ...cation ,\@@exdirectory )}

Putting the s around the name triggers the error.

Hans van der Meer

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

2010-01-13 Thread luigi scarso
On Wed, Jan 13, 2010 at 12:26 PM, Hans van der Meer h.vanderm...@uva.nl wrote:
 NO again. Doing:
 \DataDirectory{/Users/hans/Movies/Inlays/Muziek/MadisonSquare Garden} %
 defs \DATADIRECTORY
 \setupexternalfigures[directory={\DATADIRECTORY}]

 gives an error:
 ! LuaTeX error main ctx instance:1: ')' expected near 'Garden'.
 \setfigurepathlist ...cation ,\@@exdirectory )}
 Putting the s around the name triggers the error.
 Hans van der Meer
:-(
:-(
:-(

That's why I don't use spaces..

-- 
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] spaces in file names

2010-01-13 Thread Wolfgang Schuster

Am 13.01.2010 um 12:26 schrieb Hans van der Meer:

 \DataDirectory{/Users/hans/Movies/Inlays/Muziek/MadisonSquare Garden} % defs 
 \DATADIRECTORY
 \setupexternalfigures[directory={\DATADIRECTORY}]

Why don't you save the pictures in a subdirectory of your document.

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 file names

2010-01-13 Thread Hans van der Meer


On 13 jan 2010, at 12:32, Wolfgang Schuster wrote:



Am 13.01.2010 um 12:26 schrieb Hans van der Meer:

\DataDirectory{/Users/hans/Movies/Inlays/Muziek/MadisonSquare  
Garden} % defs \DATADIRECTORY

\setupexternalfigures[directory={\DATADIRECTORY}]


Why don't you save the pictures in a subdirectory of your document.




Because I want to keep all files (aif, description, notes, cd-cover,  
pictures) pertaining to a certain piece together in one directory.


I did grep for the definition of \setupexternalfigures but could not  
find it in the sources. Where is it? Perhaps I can spot the difficulty  
there. Or, it might be in the use that /externalfigure makes of it.

Please point to the definitions of both, that I can have a look.

Hans van der Meer

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

2010-01-13 Thread Wolfgang Schuster

Am 13.01.2010 um 12:38 schrieb Hans van der Meer:

 I did grep for the definition of \setupexternalfigures but could not find it 
 in the sources. Where is it? Perhaps I can spot the difficulty there. Or, it 
 might be in the use that /externalfigure makes of it.
 Please point to the definitions of both, that I can have a look.

grph-fig.mkiv - \setupexternalfigures
grph-inc.mkiv - \setfigurepathlist
grph-inc.lua  - figures.setpaths

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 file names

2010-01-13 Thread Peter Rolf
Am 13.01.2010 12:32, schrieb Wolfgang Schuster:
 
 Am 13.01.2010 um 12:26 schrieb Hans van der Meer:
 
 \DataDirectory{/Users/hans/Movies/Inlays/Muziek/MadisonSquare Garden} % defs 
 \DATADIRECTORY
 \setupexternalfigures[directory={\DATADIRECTORY}]
 
 Why don't you save the pictures in a subdirectory of your document.
 
.. or try to use a link (without spaces) to the source directory.

e.g. a link named 'MadisonSquareGarden', which points to the original
directory. Untested...

Best wishes,  Peter

 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
 ___
 

___
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] [tex-live] difference texlive 2008, 2009

2010-01-13 Thread Lubos Kolouch
Aditya Mahajan, Sun, 10 Jan 2010 04:46:54 -0500:

 On Sun, 10 Jan 2010, Lubos Kolouch wrote:
 
 Thank you for the investigation, I will open a ticket with the buggy
 (Archlinux) texlive package.
 
 You can also my context-minimals-git package for Archlinux:
 
 http://www.ntg.nl/pipermail/ntg-context/2009/043743.html
 
 which installs the latest context-beta.
 
 Aditya

Thanks. However the installation seems to hang after
(1/1) aktualizace context-minimals-git  
[###] 
100%
mktexlsr: Updating /opt/context-minimals/texmf/ls-R... 
mktexlsr: Updating /opt/context-minimals/texmf-context/ls-R... 
mktexlsr: Updating /opt/context-minimals/texmf-fonts/ls-R... 
mktexlsr: Updating /opt/context-minimals/texmf-linux-64/ls-R... 
mktexlsr: Updating /opt/context-minimals/texmf-local/ls-R... 
mktexlsr: Done.

and secondly, when I run
/opt/context-minimals/texmf-linux-64/bin/texexec minimal.tex

the resulting minimal.pdf is WRONG! (ie. the bad formatting)

Lubos


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

2010-01-13 Thread Hans van der Meer

On 13 jan 2010, at 16:35, Otared Kavian wrote:


Hi Hans,

The following works for me both with mkii and mkiv (running Mac OS X  
10.6.2).


Yes, I knew that. Adding the full path inside the \externalfigure  
works. But I would like to access picture files by separately  
adressing directory and filename, not combining them explicitely.  
\setupexternalfigures[directory=..] was made for this. The annoying  
thing is that \setupexternalfigures and \externalfigure apparently do  
not work seamlessly together.




%
\starttext
\input exercise english.tex
\page
\externalfigure[pictures folder/old friend.jpg] 
[maxwidth=3cm,maxheight=4cm,frame=on]


\stoptext
%%

My images are in the « folder » or directory « pictures folder » and  
my file is called « old friend.jpg », so the command \externalfigure  
is clever enough (not surprising from an old ConTeXt command…) and  
doesn't need any double quotes.
However for an \input file I have to say « \input exercise  
english.tex ».


Actually in general I avoid to have spaces in my file names, but I  
just tried the above in order to understand your question.




On 13 janv. 2010, at 11:51, Hans van der Meer wrote:


I would like to include a file with spaces in its name.
Clearly it does not work using: \input /Users/me/dir with spaces/file
I can use something like:
 \def\DataDirectory#1{\def\DATADIRECTORY{#1/}} % in reality coping  
with empty #1

 \DataDirectory{/Users/me/dir with spaces}
 \def\Input#1{\input \DATADIRECTORY#1}
and then that file is read.
When however I want to set this directory with
 \setupexternalfigures[directory=\DATADIRECTORY]
it does not find the picture file there.

How can I accomplish the setup? Do I miss something? Using  
contextbeta, if that makes a difference.


Hans van der Meer

___


Hans van der Meer

___
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] [tex-live] difference texlive 2008, 2009

2010-01-13 Thread Vedran Miletić
On Wed, Jan 13, 2010 at 3:21 PM, Lubos Kolouch lubos.kolo...@gmail.com wrote:
 Aditya Mahajan, Sun, 10 Jan 2010 04:46:54 -0500:

 On Sun, 10 Jan 2010, Lubos Kolouch wrote:

 Thank you for the investigation, I will open a ticket with the buggy
 (Archlinux) texlive package.

 You can also my context-minimals-git package for Archlinux:

 http://www.ntg.nl/pipermail/ntg-context/2009/043743.html

 which installs the latest context-beta.

 Aditya

 Thanks. However the installation seems to hang after
 (1/1) aktualizace context-minimals-git
 [###]
 100%
 mktexlsr: Updating /opt/context-minimals/texmf/ls-R...
 mktexlsr: Updating /opt/context-minimals/texmf-context/ls-R...
 mktexlsr: Updating /opt/context-minimals/texmf-fonts/ls-R...
 mktexlsr: Updating /opt/context-minimals/texmf-linux-64/ls-R...
 mktexlsr: Updating /opt/context-minimals/texmf-local/ls-R...
 mktexlsr: Done.

 and secondly, when I run
 /opt/context-minimals/texmf-linux-64/bin/texexec minimal.tex

 the resulting minimal.pdf is WRONG! (ie. the bad formatting)

 Lubos


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


You need to press Enter twice to answer an invisible prompt (in case
you care, I found out about that accidentally).

Regards,

-- 
Vedran Miletić
___
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] [tex-live] difference texlive 2008, 2009

2010-01-13 Thread Lubos Kolouch
Vedran Miletić, Wed, 13 Jan 2010 18:02:02 +0100:

 On Wed, Jan 13, 2010 at 3:21 PM, Lubos Kolouch lubos.kolo...@gmail.com
 wrote:
 Aditya Mahajan, Sun, 10 Jan 2010 04:46:54 -0500:

 On Sun, 10 Jan 2010, Lubos Kolouch wrote:

 Thank you for the investigation, I will open a ticket with the buggy
 (Archlinux) texlive package.

 You can also my context-minimals-git package for Archlinux:

 http://www.ntg.nl/pipermail/ntg-context/2009/043743.html

 which installs the latest context-beta.

 Aditya

 Thanks. However the installation seems to hang after (1/1) aktualizace
 context-minimals-git
 
[###]
 100%
 mktexlsr: Updating /opt/context-minimals/texmf/ls-R... mktexlsr:
 Updating /opt/context-minimals/texmf-context/ls-R... mktexlsr: Updating
 /opt/context-minimals/texmf-fonts/ls-R... mktexlsr: Updating
 /opt/context-minimals/texmf-linux-64/ls-R... mktexlsr: Updating
 /opt/context-minimals/texmf-local/ls-R... mktexlsr: Done.

 and secondly, when I run
 /opt/context-minimals/texmf-linux-64/bin/texexec minimal.tex

 the resulting minimal.pdf is WRONG! (ie. the bad formatting)

 Lubos


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


 You need to press Enter twice to answer an invisible prompt (in case you
 care, I found out about that accidentally).
 
 Regards,

 Vedran Miletić

Thanks, after pressing Enter twice (in two cases) I could install the 
package, however the output is still wrong :(

Lubos


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

2010-01-13 Thread Hans Hagen

On 13-1-2010 17:30, Hans van der Meer wrote:

On 13 jan 2010, at 16:35, Otared Kavian wrote:


Hi Hans,

The following works for me both with mkii and mkiv (running Mac OS X
10.6.2).


Yes, I knew that. Adding the full path inside the \externalfigure works.
But I would like to access picture files by separately adressing
directory and filename, not combining them explicitely.
\setupexternalfigures[directory=..] was made for this. The annoying
thing is that \setupexternalfigures and \externalfigure apparently do
not work seamlessly together.


well, it's not deliberately .. just that i never use paths with spaces 
in tex workflows so it never got tested


in grph-inc.lua patch the gmatch pattern:

if h[iv[global]] then
for s in gmatch(pathlist,,* *([^,]+)) do
if not table.contains(t,s) then
t[#t+1] = s
end
end
end



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] [tex-live] difference texlive 2008, 2009

2010-01-13 Thread Vedran Miletić
On Wed, Jan 13, 2010 at 6:20 PM, Lubos Kolouch lubos.kolo...@gmail.com wrote:
 Thanks, after pressing Enter twice (in two cases) I could install the
 package, however the output is still wrong :(

That's a bug in ConTeXt then, likely.

Regards,

-- 
Vedran Miletić
___
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] [tex-live] difference texlive 2008, 2009

2010-01-13 Thread Aditya Mahajan

On Wed, 13 Jan 2010, Lubos Kolouch wrote:


Aditya Mahajan, Sun, 10 Jan 2010 04:46:54 -0500:


On Sun, 10 Jan 2010, Lubos Kolouch wrote:


Thank you for the investigation, I will open a ticket with the buggy
(Archlinux) texlive package.


You can also my context-minimals-git package for Archlinux:

http://www.ntg.nl/pipermail/ntg-context/2009/043743.html

which installs the latest context-beta.

Aditya


Thanks. However the installation seems to hang after
(1/1) aktualizace context-minimals-git
[###]
100%
mktexlsr: Updating /opt/context-minimals/texmf/ls-R...
mktexlsr: Updating /opt/context-minimals/texmf-context/ls-R...
mktexlsr: Updating /opt/context-minimals/texmf-fonts/ls-R...
mktexlsr: Updating /opt/context-minimals/texmf-linux-64/ls-R...
mktexlsr: Updating /opt/context-minimals/texmf-local/ls-R...
mktexlsr: Done.


Most likely that is because luatools is asking to generate luatex-cache 
directory. I thought that I had taken care of it, I will check again.



and secondly, when I run
/opt/context-minimals/texmf-linux-64/bin/texexec minimal.tex

the resulting minimal.pdf is WRONG! (ie. the bad formatting)


Did you run

source /opt/context-minimals/setuptex

before running texexec?

The post-install hook is supposed to display that message, but if the 
installation hung before that, you could not have seen that message.


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
___


Re: [NTG-context] [tex-live] difference texlive 2008, 2009

2010-01-13 Thread Lubos Kolouch
Aditya Mahajan, Wed, 13 Jan 2010 13:18:55 -0500:

 On Wed, 13 Jan 2010, Lubos Kolouch wrote:
 
 Aditya Mahajan, Sun, 10 Jan 2010 04:46:54 -0500:

 On Sun, 10 Jan 2010, Lubos Kolouch wrote:

 Thank you for the investigation, I will open a ticket with the buggy
 (Archlinux) texlive package.

 You can also my context-minimals-git package for Archlinux:

 http://www.ntg.nl/pipermail/ntg-context/2009/043743.html

 which installs the latest context-beta.

 Aditya

 Thanks. However the installation seems to hang after (1/1) aktualizace
 context-minimals-git
 
[###]
 100%
 mktexlsr: Updating /opt/context-minimals/texmf/ls-R... mktexlsr:
 Updating /opt/context-minimals/texmf-context/ls-R... mktexlsr: Updating
 /opt/context-minimals/texmf-fonts/ls-R... mktexlsr: Updating
 /opt/context-minimals/texmf-linux-64/ls-R... mktexlsr: Updating
 /opt/context-minimals/texmf-local/ls-R... mktexlsr: Done.
 
 Most likely that is because luatools is asking to generate luatex-cache
 directory. I thought that I had taken care of it, I will check again.
 
 and secondly, when I run
 /opt/context-minimals/texmf-linux-64/bin/texexec minimal.tex

 the resulting minimal.pdf is WRONG! (ie. the bad formatting)
 
 Did you run
 
 source /opt/context-minimals/setuptex
 
 before running texexec?
 
 The post-install hook is supposed to display that message, but if the
 installation hung before that, you could not have seen that message.
 
 Aditya
 
Hoorray! After the command the output looks nice!

Thank you again

Lubos

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

2010-01-13 Thread Hans van der Meer

Thanks Hans. That does the trick.

Odd by the way, that so many people apparently refrain from using  
spaces in directory and file names, because this did not surface  
earlier. It can make things a lot more readable. The habit of avoiding  
spaces is probably a holdover from old times where OS's were much more  
restrictive in filenaming. I reckon the next beta will contain this  
patch, so that I don't have to go through patching hassles when  
installing a new version.


Hans van der Meer




On 13 jan 2010, at 18:59, Hans Hagen wrote:


On 13-1-2010 17:30, Hans van der Meer wrote:

On 13 jan 2010, at 16:35, Otared Kavian wrote:


Hi Hans,

The following works for me both with mkii and mkiv (running Mac OS X
10.6.2).


Yes, I knew that. Adding the full path inside the \externalfigure  
works.

But I would like to access picture files by separately adressing
directory and filename, not combining them explicitely.
\setupexternalfigures[directory=..] was made for this. The annoying
thing is that \setupexternalfigures and \externalfigure apparently do
not work seamlessly together.


well, it's not deliberately .. just that i never use paths with  
spaces in tex workflows so it never got tested


in grph-inc.lua patch the gmatch pattern:

   if h[iv[global]] then
   for s in gmatch(pathlist,,* *([^,]+)) do
   if not table.contains(t,s) then
   t[#t+1] = s
   end
   end
   end



-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 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] spaces in file names

2010-01-13 Thread Hans Hagen

On 13-1-2010 20:59, Thomas A. Schmitz wrote:


On Jan 13, 2010, at 8:34 PM, Hans van der Meer wrote:


Odd by the way, that so many people apparently refrain from using spaces in 
directory and file names, because this did not surface earlier. It can make 
things a lot more readable. The habit of avoiding spaces is probably a holdover 
from old times where OS's were much more restrictive in filenaming.


I prefer to work with my computer, not against it. Whenever you want to script something or do something 
remotely, spaces in file names give you nothing but grief. And I don't think My Stuff is so much 
more readable than My-Stuff or My_Stuff or ... But to each their own, I guess, if you 
think that spaces in filenames are so 2010 and avoiding them old hat.


also, as nowadays guis can use proportional fonts, it's easy to oversee 
two spaces in a row which makes debugging a pain


esp when we get graphics from third parties we need to be pretty aware 
of inconsistency in


- upper/lowercase (and mixed)
- suffixes
- multiple spaces
- underscores vs hyphens

the problem being that in gui apps one just clicks on a (potentially 
messy) name but in automated flows one needs to be exact.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] spaces in file names

2010-01-13 Thread Hans Hagen

On 13-1-2010 20:46, Hans van der Meer wrote:

I just became aware of the fact that a comma in a directory name like
dir, so-and-so is failing too. No doubt there will be others that are
allowed in those names but resist \setupexternalfigures. I guess I will
have to live with that. Though Hans might feel tempted to sort it out
once and for all.


well,

  directory=a, b, c

should be

  directory={a, b, c}

or when b, c is a path

  directory={a, {b, c}}

you can try

if h[iv[global]] then
for _, s in ipairs(aux.settings_to_array(pathlist)) do
if not table.contains(t,s) then
t[#t+1] = s
end
end
end

(untested)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] problem with url in \setupexternalfigures

2010-01-13 Thread Hans Hagen

On 7-1-2010 10:14, Peter Münster wrote:

Hello,

This used to work:

\setupexternalfigures[directory={\currentvalue, http://pmrb.free.fr/tmp/}]
\starttext
\externalfigure[hacker-test]
\stoptext

But with the latest version, the figure is not found...


ok, i can fix that but there is a problem ...

if no suffix is given, the quality list is followed and the first 
request will be


http://pmrb.free.fr/tmp/hacker-test.pdf

which gives a home page which is no pdf of course and luatex does not 
like that


as i don't want to complicate the lookup mechanism even more, i will not 
catch this and users can best use a suffix when using an url


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] XML - creating a list by hand (mkiv)

2010-01-13 Thread Hans Hagen

On 12-1-2010 15:47, Peter Rolf wrote:

Hi,

after a (too short) vacation I'm again trying to make this run.
(btw: inserting in empty root still does not work here)

I have attached a more detailed example (ugly XMP), that shows my
current problems. The result of the operations is saved in xmp.xml.


when i have time i'll have a look at it

keep in mind that the manipulation of the tree (remove, replace etc) is 
somewhat experimental and might even be broken as i didn't check it when 
i rewrote the lpath code


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] problem with url in \setupexternalfigures

2010-01-13 Thread Aditya Mahajan

On Wed, 13 Jan 2010, Hans Hagen wrote:


On 7-1-2010 10:14, Peter Münster wrote:

Hello,

This used to work:

\setupexternalfigures[directory={\currentvalue, http://pmrb.free.fr/tmp/}]
\starttext
\externalfigure[hacker-test]
\stoptext

But with the latest version, the figure is not found...


ok, i can fix that but there is a problem ...

if no suffix is given, the quality list is followed and the first request 
will be


http://pmrb.free.fr/tmp/hacker-test.pdf

which gives a home page which is no pdf of course and luatex does not like 
that


as i don't want to complicate the lookup mechanism even more, i will not 
catch this and users can best use a suffix when using an url


Does it make sense to add the look-up to \usemodule?

For example, the following works:

\input 
http://github.com/adityam/cut-n-paste/raw/master/tex/context/third/cut-n-paste/t-cut-n-paste.tex


But it will be nice if I could also do

\usemodule[http://github.com/adityam/cut-n-paste/raw/master/tex/context/third/cut-n-paste/t-cut-n-paste.tex]

or

\usemodule[http:///t-cut-n-paste] % no .tex

or (not really serious here)

\usemodule[http:// ...][t-cut-n-paste] % like \usemodule[p][name] etc.

Of course, this will only work for moudles that provide only one file.

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
___


Re: [NTG-context] spaces in file names

2010-01-13 Thread Vladimir Lomov
On Wed, Jan 13, 2010 at 20:46:53 +0100, Hans van der Meer wrote:
 I just became aware of the fact that a comma in a directory name like  
 dir, so-and-so is failing too. No doubt there will be others that  
 are allowed in those names but resist \setupexternalfigures. I guess I  
 will have to live with that. Though Hans might feel tempted to sort it  
 out once and for all.

Just small note: in POSIX (e.g. Linux) you could use any char in file
or directory name expect '/' and '\0'. Windows is more restricted (why
nowadays?) on char in file and directory names (not ':' for example).

Now imagine what should developers do in order to maintain software for
these different (in sense of names) systems? (My guess: use only plain
names: only latin letters and underscope is sufficient).


-- 
Boys, you have ALL been selected to LEAVE th' PLANET in 15 minutes!!
___
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
___