Hello ConTeXist. I would like get right URL, when I use \useURL command. Is there possibilities put any TeX macro to first and second parameter? It was clear to me why this is about, but I need it for one application (in the cycle I change URL addresses). Thanx Jaroslav Hajtmar Here is my minimal example: \setupinteraction[state=start] \def\myurl{http://mydomain.com/path/} \def\myfile{mypdffile.pdf} \def\urltext{This is link to my file} \useURL[okexample][http://mydomain.com/path][mypdffile.pdf][\urltext] \useURL[problemexample][\myurl][\myfile][\urltext] \starttext \from[okexample] -- OK \from[problemexample] -- link problem \stoptext
Am 15.05.2013 um 09:23 schrieb Jaroslav Hajtmar
Hello ConTeXist. I would like get right URL, when I use \useURL command. Is there possibilities put any TeX macro to first and second parameter? It was clear to me why this is about, but I need it for one application (in the cycle I change URL addresses).
Why can you change the \def lines but not the \useURL settings, both are set at the begin of the document?
Thanx Jaroslav Hajtmar
Here is my minimal example:
\setupinteraction[state=start]
\def\myurl{http://mydomain.com/path/} \def\myfile{mypdffile.pdf} \def\urltext{This is link to my file}
\useURL[okexample][http://mydomain.com/path][mypdffile.pdf][\urltext] \useURL[problemexample][\myurl][\myfile][\urltext]
\expanded{\useURL[…][…][…][…]} Wolfgang
Hello Wolfgang.
Thanks for the reply. Now it's even more complicated. I think I need a combination of expanded and unexpanded macros. Both of the following examples do not work quite right.
Thanx Jaroslav Hajtmar
Here is other example:
\setupinteraction[state=start]
\def\myurl{http://mydomain.com/path}
\def\myfile{mypdffile\recurselevel.pdf}
\def\urltext{This is link to my file \recurselevel}
\unexpanded\def\unexpurltext{This is other link to my file \recurselevel}
\expanded{\useURL[problemexample][\myurl][\myfile][\urltext]}
\useURL[otherproblemexample][\myurl][\myfile][\unexpurltext]
\starttext
\dorecurse{5}{
\from[problemexample] \par
}
\blank[big]
\dorecurse{5}{
\from[otherproblemexample] \par
}
\stoptext
Am 15.05.2013 um 09:23 schrieb Jaroslav Hajtmar
Hello ConTeXist. I would like get right URL, when I use \useURL command. Is there possibilities put any TeX macro to first and second parameter? It was clear to me why this is about, but I need it for one application (in the cycle I change URL addresses).
Why can you change the \def lines but not the \useURL settings, both are set at the begin of the document?
Thanx Jaroslav Hajtmar
Here is my minimal example:
\setupinteraction[state=start]
\def\myurl{http://mydomain.com/path/} \def\myfile{mypdffile.pdf} \def\urltext{This is link to my file}
\useURL[okexample][http://mydomain.com/path][mypdffile.pdf][\urltext] \useURL[problemexample][\myurl][\myfile][\urltext]
\expanded{\useURL[…][…][…][…]} Wolfgang
participants (2)
-
Jaroslav Hajtmar
-
Wolfgang Schuster