I have a simple titlepage, which I want to make available for ConTeXt- as well as LaTeX users. Each should just type \usemodule[myTitlepage], or \usepackage{myTitlepage}, respectively.
I want to do this by determining if LaTeX is used, and if so, define all used ConTeXt-macros to their LaTeX equivalents, so that the titlepage can be written in ConTeXt, similar to this:
\ifLaTeX
\newcommand{\starttikzpicture}[1]{\begin{tikzpicture}[#1]}
\newcommand{\stopttikzpicture} {\end {tikzpicture} }
\newcommand{\crlf}{\\}
...
\else
\doConTeXtRelatedStuff
\fi
\starttikzpicture[scale=3]
\node [text centered] {it works! \crlf or does it?};
\stoptikzpicture
What do I use instead of the pseudocode \ifLaTeX and will the whole idea likely work?