Re: [NTG-context] system fonts access under macosx (again)

2014-12-23 Thread Wolfgang Schuster

> Am 23.12.2014 um 23:32 schrieb j. van den hoff :
> 
> thanks to both of you. in fact, just doing `mtxrun —script font —reload 
> —force'
> restored sane behaviour (italics back again etc.).
> 
> so, I understand that _this_ actually rebuilds the font data base? what, 
> then, is just issuing `—reload’ good for?

When you make a new installation and context runs for the first time
it make a scan for all available fonts and store some information about
each font but this will take some time (although this is now faster than
it has been in the past).

To add a new font to this list you can use "mtxrun —script font —reload“
which adds only new fonts to the list which is faster than a complete
rebuild of the list which is done with the "force“ option.

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] running titles in the first chapter page

2014-12-23 Thread Wolfgang Schuster

> Am 23.12.2014 um 23:34 schrieb Andrea Valle :
> 
> Dear list,
> 
> I’ve written this, which looks pretty good (to me):
> 
> https://drive.google.com/file/d/0B-jBCRU8-kGjTk0xY0kwZEsyY3c/view?usp=sharing 
> 
> 
> One main thing left: how do I remove running titles from the first chapter 
> page?
> 
> I have this now:
> 
> \setupheadertexts
> [Introduzione a SuperCollider][]
> [][{\getmarking[chapter]}]
> 

\setuphead[chapter][header=empty]

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] system fonts access under macosx (again)

2014-12-23 Thread j. van den hoff

On Tue, 23 Dec 2014 19:14:26 +0100, Hans Hagen  wrote:


On 12/23/2014 5:42 PM, j. van den hoff wrote:


what am I doing wrong _this_ time?


hard to guess from a distance but whenever i want to use some font and  
want also to be sure that i use the same one each time (esp system  
fonts) i just copy them to someplace under texmf-fonts/fonts/data


understood.



after copying a font you need to run mtxrun --generate in order to  
update the file database (after that not found founds will trugger a  
remake of the font database)


could you please explain what the difference is between `mtxrun  
--generate' and `mtxrun fonts --rebuild {-force}'?


thx, joerg


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
___



--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] system fonts access under macosx (again)

2014-12-23 Thread j. van den hoff
On Tue, 23 Dec 2014 20:31:46 +0100, Wolfgang Schuster  
 wrote:


There is no need to remove the latex-cache folder because you can use  
the force
option (i.e. mtxrun —script font —reload —force) to rebuild the whole  
cache.

Wolfgang


FYI: `-force' seems not to be documented, at least I can't find it at  
`http://wiki.contextgarden.net/Mtxrun'.



--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] running titles in the first chapter page

2014-12-23 Thread Andrea Valle
Dear list,

I’ve written this, which looks pretty good (to me):

https://drive.google.com/file/d/0B-jBCRU8-kGjTk0xY0kwZEsyY3c/view?usp=sharing 


One main thing left: how do I remove running titles from the first chapter page?

I have this now:

\setupheadertexts
[Introduzione a SuperCollider][]
[][{\getmarking[chapter]}]

Thanks

Best
-a-


--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

___
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] system fonts access under macosx (again)

2014-12-23 Thread j. van den hoff
On Tue, 23 Dec 2014 20:31:46 +0100, Wolfgang Schuster  
 wrote:





Am 23.12.2014 um 19:44 schrieb Pablo Rodriguez :

On 12/23/2014 05:42 PM, j. van den hoff wrote:

[...]
so I seem back to square one in this respect :-(.
I can only assume that this has been caused by the `--reload' run (see
item 1. above: intitially `optima' italics worked) and/or maybe still
fragile support of these `ttc' (true type collection) files? just a  
guess.


what am I doing wrong _this_ time?


Hi Jörg,

I cannot tell, but maybe there is something that might work.

From your ConTeXt Suite directory, remove tex/texmf-cache/luatex-cache/.

And then compile the documents with Optima and EB Garamond. (ConTeXt
will perform the required tasks before.)

--reload didn’t work for me and this method worked. I remove
tex/texmf-cache/luatex-cache/ everytime I install a new font.


There is no need to remove the latex-cache folder because you can use  
the force
option (i.e. mtxrun —script font —reload —force) to rebuild the whole  
cache.


thanks to both of you. in fact, just doing `mtxrun —script font —reload  
—force'

restored sane behaviour (italics back again etc.).

so, I understand that _this_ actually rebuilds the font data base? what,  
then, is just issuing `--reload'
good for? I also don't understand, why `context' got apparently confused  
(i.e. stopped recognizing `optima italics')
by issuing just `mtxrun —script font —reload' (which I did -- successfully  
-- to make `context' recognize the newly

installed EB Garamond font).

joerg



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
___



--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] text height

2014-12-23 Thread Andrea Valle
Ah! That’s obvious, I was looking at the ref man and got a bit stuck.
But indeed here it’s clear

http://wiki.contextgarden.net/Layout 


Thanks Wolfgang!

-a-


--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

> On 23 Dec 2014, at 14:41, Wolfgang Schuster  
> wrote:
> 
> 
>> Am 22.12.2014 um 23:00 schrieb Andrea Valle > >:
>> 
>> Dear, 
>> 
>> sorry for the dumb question.
>> 
>> how do I increase text height by reducing the space under footer without 
>> changing the other ones?
>> I’m a bit confused by the discussion on setuplayout
> 
> You have to change only the value of the height key.
> 
>  begin example
> \showframe
> 
> \starttext
> 
> \input knuth
> 
> \page
> 
> \setuplayout[height=10cm]
> 
> \input knuth
> 
> \page
> 
> \setuplayout[height=22cm]
> 
> \input knuth
> 
> \stoptext
>  end example
> 
> 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] system fonts access under macosx (again)

2014-12-23 Thread Wolfgang Schuster

> Am 23.12.2014 um 19:44 schrieb Pablo Rodriguez :
> 
> On 12/23/2014 05:42 PM, j. van den hoff wrote:
>> [...]
>> so I seem back to square one in this respect :-(.
>> I can only assume that this has been caused by the `--reload' run (see  
>> item 1. above: intitially `optima' italics worked) and/or maybe still
>> fragile support of these `ttc' (true type collection) files? just a guess.
>> 
>> what am I doing wrong _this_ time?
> 
> Hi Jörg,
> 
> I cannot tell, but maybe there is something that might work.
> 
> From your ConTeXt Suite directory, remove tex/texmf-cache/luatex-cache/.
> 
> And then compile the documents with Optima and EB Garamond. (ConTeXt
> will perform the required tasks before.)
> 
> --reload didn’t work for me and this method worked. I remove
> tex/texmf-cache/luatex-cache/ everytime I install a new font.

There is no need to remove the latex-cache folder because you can use the force
option (i.e. mtxrun —script font —reload —force) to rebuild the whole cache.

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] system fonts access under macosx (again)

2014-12-23 Thread Pablo Rodriguez
On 12/23/2014 05:42 PM, j. van den hoff wrote:
> [...]
> so I seem back to square one in this respect :-(.
> I can only assume that this has been caused by the `--reload' run (see  
> item 1. above: intitially `optima' italics worked) and/or maybe still
> fragile support of these `ttc' (true type collection) files? just a guess.
> 
> what am I doing wrong _this_ time?

Hi Jörg,

I cannot tell, but maybe there is something that might work.

From your ConTeXt Suite directory, remove tex/texmf-cache/luatex-cache/.

And then compile the documents with Optima and EB Garamond. (ConTeXt
will perform the required tasks before.)

--reload didn’t work for me and this method worked. I remove
tex/texmf-cache/luatex-cache/ everytime I install a new font.

Just in case it helps,


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] system fonts access under macosx (again)

2014-12-23 Thread Hans Hagen

On 12/23/2014 5:42 PM, j. van den hoff wrote:


what am I doing wrong _this_ time?


hard to guess from a distance but whenever i want to use some font and 
want also to be sure that i use the same one each time (esp system 
fonts) i just copy them to someplace under texmf-fonts/fonts/data


after copying a font you need to run mtxrun --generate in order to 
update the file database (after that not found founds will trugger a 
remake of the font database)


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] system fonts access under macosx (again)

2014-12-23 Thread j. van den hoff
as advised I have installed standalone context in order to get better  
support of system fonts under macosx.

I now have had the following happen to me:

1.
after installation of `standalone' and straightening out unrelated  
problems with `\usemodule' usage I managed to get proper
support of -- that's the specific font I wanted to use -- the `Optima'  
font family. Notably I got italics

where I wanted them. so far so good.

2.
then I discovered that standalone context does not include the very nice  
`EB Garamond' font (although
there are some files in the context tree apparently related to tweaking  
some things related to this font) -- contrary to

texlive where `context` finds this font just fine.

3.
instead of putting this font into the standalone `context' tree (which I  
tried initially without luck -- on second thought
I probably would have needed to do a `mtxrun --script fonts --reload' ...)  
I installed these (otf) fonts systemwide.


(as an aside: is there a way of notifying standalone context of the  
location of the `texlive' font directories?)


4.
contrary to what I seem to have read in the documentation somewhere (??)  
the fonts were than _not_ looked up "on demand" (i.e.
where not found automatically when compiling the document wanting to use  
this font) but only found after I did a manual `mtxrun --script fonts  
--reload'


5.
now `ebgaramond' works fine _but_ out of the `Optima' fonts now only the  
regular font is found and reported by `mtxrun ... fonts`

if I interpret this output correctly:

optima  optimaregular   /System/Library/Fonts/Optima.ttc   index:   
4
optimanormaloptimaregular   /System/Library/Fonts/Optima.ttc   index:   
4
optimaregular   optimaregular   /System/Library/Fonts/Optima.ttc   index:   
4


so I seem back to square one in this respect :-(.
I can only assume that this has been caused by the `--reload' run (see  
item 1. above: intitially `optima' italics worked) and/or maybe still

fragile support of these `ttc' (true type collection) files? just a guess.

what am I doing wrong _this_ time?

thx,

joerg

--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] text height

2014-12-23 Thread Wolfgang Schuster

> Am 22.12.2014 um 23:00 schrieb Andrea Valle :
> 
> Dear, 
> 
> sorry for the dumb question.
> 
> how do I increase text height by reducing the space under footer without 
> changing the other ones?
> I’m a bit confused by the discussion on setuplayout

You have to change only the value of the height key.

 begin example
\showframe

\starttext

\input knuth

\page

\setuplayout[height=10cm]

\input knuth

\page

\setuplayout[height=22cm]

\input knuth

\stoptext
 end example

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] useattachment

2014-12-23 Thread Andrea Valle
Replying to myself the problem seems related to the use of the ex label.

this works

\define[1]\Ex{\externalfigure[code/#1]
\useattachment[#1][code/#1.scd]
\attachment[#1]
} 


(so this does not work anymore

http://wiki.contextgarden.net/Verbatim_text#Embedding_the_source_code 


)

--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

> On 02 Dec 2014, at 11:06, Andrea Valle  wrote:
> 
> (Sorry if have already posted this, can’t find it in the archives, so maybe 
> it didn’t go thru)
> 
> 
> 
> On 01 Dec 2014, at 21:49, Andrea Valle  > wrote:
> 
> Dear list,
> 
> In the previous version of a programming manual I wrote I used this 
> definition:
> 
> 
> \define[1]\Ex{\externalfigure[code/#1]
> \useattachment[ex][code/#1.scd]
> \attachment[ex]
> } 
> 
> 
> In this way I could have 
> 
> \Ex{sintesi/sineArray}
> 
> where sintesi/sineArray.scd is the path of code example
> and sintesi/sineArray.pdf is the path of a pdf figure with coloured syntax .
> 
> I’m revising the manual and using mk IV.
> Now, concerning the attachment, in mk IV the marker on the generated pdf 
> always points to the same .scd file.
> But while reading the pdf in Acrobat Reader if I’m passing the mouse over the 
> marker the displayed path seems to be the correct one.
> 
> Am I doing anything wrong here?
> 
> Thanks a lot
> 
> Best
> 
> -a-
> 
> 
> 
> 
> --
> Andrea Valle
> --
> CIRMA - StudiUm
> Università degli Studi di Torino
> --> http://www.cirma.unito.it/andrea/ 
> --> http://www.fonurgia.unito.it/andrea/ 
> 
> --> http://www.flickr.com/photos/vanderaalle/sets/ 
> 
> --> http://vimeo.com/vanderaalle 
> --> andrea.va...@unito.it 
> --
> 
> "This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, 
> a lotta what-have-yous." 
> (Jeffrey 'The Dude' Lebowski)
> 
> 
> ___
> 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] Loading modules

2014-12-23 Thread Wolfgang Schuster

> Am 23.12.2014 um 14:29 schrieb j. van den hoff :
> 
> uups. I was to quick with my answer: in the meantime I did reset my $PATH 
> variable in order to use
> the texlive-context version again. so adding the  
> \enabledirectives[modules.permitunprefixed] and recompiling
> the document did not proof anything (stupid error...). so I have now retried 
> with the current standalone
> `context' and -- alas! -- the `undefined control sequence' error does not go 
> away. do be specifc:
> 
> -- document and module reside in the same directory
> 
> -- the module is residing in file `t-title.tex' and defines (upon others) 
> `\doctitle'
> 
> -- the document loads the module with `\usemodule[title]' (which is now 
> preceded by `\enabledirectives[modules.permitunprefixed]')
>   and then uses `\doctitle' which triggers the error.
> 
> -- right now, the standalone `context' binary is at the very top of $PATH.
> 
> any ideas?

The ConTeXt suite includes a title module (when you install the  third party 
modules)
which is loaded instead of your own title module. The following example shows 
how
you can use the module in your document.


\usemodule[title]

\starttext

\placetitle
  [author=Ben Lee User,
title=How to write a \tex{placetitle} command,
 date=\currentdate\space\currenttime]

\dorecurse{6}
  {\startparagraph
   \input tufte\par
   \stopparagraph}

\stoptext


When you want to use your module instead of the third party module rename
it from t-title.tex to p-title.tex.

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] typesetting math—two queries

2014-12-23 Thread Alan Bowen
1. Is there a generally preferred math font to use with Antykwa
Poltawskiego?

2. What are the best practices for setting inline math that causes
variation in the interline spacing? E.g., in a paragraph such as:

\starttext

Mauris placerat eleifend leo. Mauris placerat eleifend leo. Mauris placerat
eleifend leo. \quote{$y=\sqrt{6}+\sqrt{26}$}. The \quote{$\sqrt{2x}$}
Mauris placerat eleifend leo.  \quote{$\sqrt{2}x$}. Mauris placerat
eleifend leo.\quote{$\sqrt{12}$}Mauris placerat eleifend leo.
\quote{$\sqrt{1/2}$}. Mauris placerat eleifend leo.
\quote{$x=-{1/2}-\sqrt{1/ 8}+\sqrt{{3/8}+\sqrt{20}}$}.
\quote{$-\sqrt{6}$} Mauris placerat eleifend leo.
\quote{${a/x}+{a/y}+2=b+2$}.

\stoptext

Alan
___
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] Loading modules (was: access to system fonts under MacOSX)

2014-12-23 Thread j. van den hoff
uups. I was to quick with my answer: in the meantime I did reset my $PATH  
variable in order to use
the texlive-context version again. so adding the   
\enabledirectives[modules.permitunprefixed] and recompiling
the document did not proof anything (stupid error...). so I have now  
retried with the current standalone
`context' and -- alas! -- the `undefined control sequence' error does not  
go away. do be specifc:


-- document and module reside in the same directory

-- the module is residing in file `t-title.tex' and defines (upon others)  
`\doctitle'


-- the document loads the module with `\usemodule[title]' (which is now  
preceded by `\enabledirectives[modules.permitunprefixed]')

   and then uses `\doctitle' which triggers the error.

-- right now, the standalone `context' binary is at the very top of $PATH.

any ideas?

thx,joerg



On Tue, 23 Dec 2014 14:15:42 +0100, j. van den hoff  
 wrote:


On Mon, 22 Dec 2014 22:35:43 +0100, Wolfgang Schuster  
 wrote:




Am 22.12.2014 um 00:12 schrieb j. van den hoff  
:


OK, I've just installed the standalone version and adjusted my search  
path. now the very same document does no longer compile. I get the  
error:


8<---
! Undefined control sequence

 \doctitle

l.106\doctitle
8<---
where `doctitle' is defined in a small bare bones module (co-existing  
in the same dir as the doc) for setting up a title page. I guess I'm  
hitting some (context-) searchpath issue here that already is taken  
care of in the texlive distro? any help'd be appreciated.


I guess you load the file with your definitions with the \usemodule  
command.


correct.



There has been a change a while ago and context expects now a prefix
when you load a module (e.g. p-.tex) and when you add now the
prefix to your file context will be able to load it. Another solution  
is to add


\enabledirectives[modules.permitunprefixed]

before the \usemodule command in your document, the command
above tells context to also look for modules without a prefix as last  
resort.


yes, this one did the trick. thanks a lot. regarding the prefix  
handling/recognition, I don't
quite get it (_what_ is considered a prefix, e.g. is there a canonical  
prefix separator etc. or where do I define
the prefix?). I'll try to hunt for it on contextgarden. if you do have a  
pointer, though,

that'd be nice.

in any casse, many thanks for sorting this one out.


Wolfgang






--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] Loading modules

2014-12-23 Thread Wolfgang Schuster

> Am 23.12.2014 um 14:15 schrieb j. van den hoff :
> 
> On Mon, 22 Dec 2014 22:35:43 +0100, Wolfgang Schuster 
> mailto:schuster.wolfg...@gmail.com>> wrote:
> 
>> 
>>> Am 22.12.2014 um 00:12 schrieb j. van den hoff :
>>> 
>>> OK, I've just installed the standalone version and adjusted my search path. 
>>> now the very same document does no longer compile. I get the error:
>>> 
>>> 8<---
>>> ! Undefined control sequence
>>> 
>>>  \doctitle
>>> 
>>> l.106\doctitle
>>> 8<---
>>> where `doctitle' is defined in a small bare bones module (co-existing in 
>>> the same dir as the doc) for setting up a title page. I guess I'm hitting 
>>> some (context-) searchpath issue here that already is taken care of in the 
>>> texlive distro? any help'd be appreciated.
>> 
>> I guess you load the file with your definitions with the \usemodule command.
> 
> correct.
> 
>> 
>> There has been a change a while ago and context expects now a prefix
>> when you load a module (e.g. p-.tex) and when you add now the
>> prefix to your file context will be able to load it. Another solution is to 
>> add
>> 
>>\enabledirectives[modules.permitunprefixed]
>> 
>> before the \usemodule command in your document, the command
>> above tells context to also look for modules without a prefix as last resort.
> 
> yes, this one did the trick. thanks a lot. regarding the prefix 
> handling/recognition, I don't
> quite get it (_what_ is considered a prefix, e.g. is there a canonical prefix 
> separator etc. or where do I define
> the prefix?). I'll try to hunt for it on contextgarden. if you do have a 
> pointer, though,
> that'd be nice.

http://wiki.contextgarden.net/Modules#Usage 


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] access to system fonts under MacOSX

2014-12-23 Thread j. van den hoff

On Mon, 22 Dec 2014 07:09:12 +0100, Pablo Rodriguez  wrote:


On 12/22/2014 12:12 AM, j. van den hoff wrote:

OK, I've just installed the standalone version and adjusted my search
path. now the very same document does no longer compile. I get the  
error:


8<---
  ! Undefined control sequence

 \doctitle

l.106\doctitle
8<---
where `doctitle' is defined in a small bare bones module (co-existing in
the same dir as the doc) for setting up a title page. I guess I'm  
hitting
some (context-) searchpath issue here that already is taken care of in  
the

texlive distro? any help'd be appreciated.


Hi Jörg,

providing a minimal sample that reproduces the error (at least, in your
computer) avoids the guesswork :-).

I think it is better that you start a new thread for this (new) issue.
It will help others to search when facing similar problems.


right both times (but wolfgang's response already sorted the present  
problem out).


From what I understand of your description, when the module is located
in the same directory as the source document you compile, ConTeXt
doesn’t need to search anything. But you need to compile it from that
directory.


I did that, but as wolfgang's mail explains, there now seems to be  
required a differnt

way of specifying the module file name.



BTW, is your module similar to the one suggested in
http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_reusable_solution?


_very_ similar since I did a copy+paste from there and adjusted it.
if there are better strategies for getting this kind of task (adjustable  
title pages) done,

I'd be glad to learn of them of course.

joerg




Pablo



--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] Loading modules (was: access to system fonts under MacOSX)

2014-12-23 Thread j. van den hoff
On Mon, 22 Dec 2014 22:35:43 +0100, Wolfgang Schuster  
 wrote:




Am 22.12.2014 um 00:12 schrieb j. van den hoff  
:


OK, I've just installed the standalone version and adjusted my search  
path. now the very same document does no longer compile. I get the  
error:


8<---
! Undefined control sequence

 \doctitle

l.106\doctitle
8<---
where `doctitle' is defined in a small bare bones module (co-existing  
in the same dir as the doc) for setting up a title page. I guess I'm  
hitting some (context-) searchpath issue here that already is taken  
care of in the texlive distro? any help'd be appreciated.


I guess you load the file with your definitions with the \usemodule  
command.


correct.



There has been a change a while ago and context expects now a prefix
when you load a module (e.g. p-.tex) and when you add now the
prefix to your file context will be able to load it. Another solution is  
to add


\enabledirectives[modules.permitunprefixed]

before the \usemodule command in your document, the command
above tells context to also look for modules without a prefix as last  
resort.


yes, this one did the trick. thanks a lot. regarding the prefix  
handling/recognition, I don't
quite get it (_what_ is considered a prefix, e.g. is there a canonical  
prefix separator etc. or where do I define
the prefix?). I'll try to hunt for it on contextgarden. if you do have a  
pointer, though,

that'd be nice.

in any casse, many thanks for sorting this one out.


Wolfgang



--
Using Opera's revolutionary email client: http://www.opera.com/mail/

--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] Strange bug with overviewpage module.

2014-12-23 Thread Otared Kavian
Hi Aditya,

Thanks for sharing your nice module.
I think it would be nice and useful for many people to have this module 
accessible when updating or installing a stand alone ConTeXt.

Best regards: OK

> On 21 Dec 2014, at 19:50, Aditya Mahajan  wrote:
> 
> On Sun, 21 Dec 2014, Otared Kavian wrote:
> 
>> Hi Aditya,
>> 
>> Now that you realize that your module works so well, I have two questions :—)
>> How can one tweak your module so that in a presentation:
>>  1) each overviewpage is included at the end;
>>  2) each oveviewpage is clickabel and linked to the corresponding page 
>> of the presentation.
>> 
>> If this is already implemented and if you have an example presentation, 
>> could you please share it?
> 
> That was the original idea of the module. See: 
> http://randomdeterminism.wordpress.com/2014/01/01/announcing-the-overview-module/
> 
> I am thinking of adding the abilityto manually create overview pages as well.
> 
> 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
> ___

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