Skip to content

Commit

Permalink
Introducing short caption and sidecaptionfigure
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Apr 29, 2020
1 parent 57db971 commit fa3528e
Showing 1 changed file with 39 additions and 4 deletions.
43 changes: 39 additions & 4 deletions examples/124_eoatex/preambel/pre_xml.tex
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,51 @@

\newcommand{\EOAnewtheorem}[2]{\newtheorem{#1}{#2}}
\newenvironment{EOAdescription}{\begin{description}}{\end{description}}
\newcommand*{\EOAfigure}[5]{\begin{xmlelement*}{EOAfigure}%
\anchor\label{#3}%

\newcommand*{\EOAfigure}[6][1]{\begin{xmlelement*}{EOAfigure}%
\anchor\label{#4}%
\begin{xmlelement}{caption}%
#2%
#3%
\end{xmlelement}%
\begin{xmlelement}{shortcaption}%
#1%
\end{xmlelement}%
\begin{xmlelement}{file}%
#2%
\end{xmlelement}%
\begin{xmlelement}{width}%
#5%
\end{xmlelement}%
\end{xmlelement*}%
}

% \newcommand*{\EOAfigure}[5]{\begin{xmlelement*}{EOAfigure}%
% \anchor\label{#3}%
% \begin{xmlelement}{caption}%
% #2%
% \end{xmlelement}%
% \begin{xmlelement}{file}%
% #1%
% \end{xmlelement}%
% \begin{xmlelement}{width}%
% #4%
% \end{xmlelement}%
% \end{xmlelement*}%
% }

\newcommand*{\EOAsidecaptionfigure}[6][1]{\begin{xmlelement*}{EOAfigure}%
\anchor\label{#4}%
\begin{xmlelement}{caption}%
#3%
\end{xmlelement}%
\begin{xmlelement}{shortcaption}%
#1%
\end{xmlelement}%
\begin{xmlelement}{file}%
#2%
\end{xmlelement}%
\begin{xmlelement}{width}%
#4%
#5%
\end{xmlelement}%
\end{xmlelement*}%
}
Expand Down

0 comments on commit fa3528e

Please sign in to comment.