Skip to content

Commit

Permalink
feat(iwork): add \image
Browse files Browse the repository at this point in the history
  • Loading branch information
liblaf committed Oct 5, 2022
1 parent 292a182 commit 13f5a80
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions iwork.cls
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
\RequirePackage{subcaption}
\RequirePackage{tcolorbox}
\RequirePackage{xcolor}
\RequirePackage{xparse}

\RequirePackage{cleveref}

Expand Down Expand Up @@ -125,3 +126,12 @@
}
\item
}

\newcommand{\image}[2][]{
\begin{figure}[H]
\centering
\includegraphics[height=0.3\linewidth]{assets/#2}
\caption{#1}
\label{fig:#2}
\end{figure}
}

0 comments on commit 13f5a80

Please sign in to comment.