[NTG-context] Project structure: Do macros go into the environment?

2011-11-13 Thread Paul Menzel
Dear ConTeXt folks,


I am using the project layout [1] and have a file `env.tex` which gets
loaded.

\startenvironment env

\mainlanguage[de]

\setupinteraction
[title=Titel,
author=John Doe,
keyword={keyword}]

\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}
\def\ahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}}
\def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}}
\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}
\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}

[…]
\stopenvironment

My question is if all macro definitions (and setups like for
interaction) should go in there?


Thanks,

Paul


[1] http://wiki.contextgarden.net/Project_structure


signature.asc
Description: This is a digitally signed message part
___
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] Project structure: Do macros go into the environment?

2011-11-13 Thread Wolfgang Schuster

Am 13.11.2011 um 20:05 schrieb Paul Menzel:

 Dear ConTeXt folks,
 
 
 I am using the project layout [1] and have a file `env.tex` which gets
 loaded.
 
\startenvironment env
 
\mainlanguage[de]
 
\setupinteraction
   [title=Titel,
   author=John Doe,
   keyword={keyword}]
 
\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}
\def\ahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}}
\def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}}
\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}
\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}
 
[…]
\stopenvironment
 
 My question is if all macro definitions (and setups like for
 interaction) should go in there?

Yes.

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
___