summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ximera/src/only.dtx
blob: cdb676c90efce58e64006488b6c3c566f5ac08f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% \subsubsection{Only}

% \DescribeEnv{prompt}{The prompt part for mathmode}
%    \begin{macrocode}
%<*classXimera>
\ifxake
        \newenvironment{prompt}{}{}
\else
\ifhandout
	\NewEnviron{prompt}{}
% Currently breaks when put in mathmode!
%	\newenvironment{prompt}{\suppress}{\endsuppress} 
\else
	\newenvironment{prompt}
    	{\bgroup\color{gray!50!black}}
        {\egroup}
\fi
\fi
%    \end{macrocode}

% \DescribeEnv{onlineOnly}{Only display it online}
%    \begin{macrocode}
\ifhandout
	\NewEnviron{onlineOnly}{
	\iftikzexport
		\BODY
	\else
	\fi
	}
\else
	\newenvironment{onlineOnly}
    	{\bgroup\color{red!50!black}}
		{\egroup}
\fi
               
\newcommand{\pdfOnly}[1]{\iftikzexport\else #1\fi}
%</classXimera>
%    \end{macrocode}