summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ximera/src/interactives/graph.dtx
blob: 154c2803afc28fa290f9f2c29ba717745a5a48fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
% \subsubsection{Graphs}
% \DescribeMacro{\graph}{An embedded graph (in math mode).}
%    \begin{macrocode}
%<*classXimera>
\newcommand{\graph}[2][]{\text{Graph of $#2$}}
%</classXimera>
%    \end{macrocode}

%    \begin{macrocode}
%<*htXimera>
\renewcommand{\graph}[2][]{\HCode{<div class="graph" data-options="#1">}#2\HCode{</div>}}
%</htXimera>
%    \end{macrocode}