Project structure: Do macros go into the environment?
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
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
Am Sonntag, den 13.11.2011, 20:09 +0100 schrieb Wolfgang Schuster:
Am 13.11.2011 um 20:05 schrieb Paul Menzel:
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.
As always, thank you for the fast response! Thanks, Paul
participants (2)
-
Paul Menzel
-
Wolfgang Schuster