scribble-enhanced/collects/scriblib/figure.tex
Matthew Flatt fc731bd1d7 scriblib/figure: add `#:continue?' option
original commit: a5f8584bab556be365233adb73fd9b8d42130bef
2013-03-29 07:23:49 -06:00

39 lines
1.2 KiB
TeX

\usepackage{ccaption}
% \legend relies on \belowcaptionskip, which is not defined
% by the JFP class file:
\makeatletter
\@ifundefined{belowcaptionskip}{\newlength{\belowcaptionskip}}{}
\makeatother
\newcommand{\Legend}[1]{~
\hrule width \hsize height .33pt
\vspace{4pt}
\legend{#1}}
\newcommand{\LegendContinued}[1]{\Legend{#1}}
\newcommand{\FigureTarget}[2]{#1}
\newcommand{\FigureRef}[2]{#1}
\newlength{\FigOrigskip}
\FigOrigskip=\parskip
\newenvironment{Figure}{\begin{figure}}{\end{figure}}
\newenvironment{FigureMulti}{\begin{figure*}[t!p]}{\end{figure*}}
\newenvironment{FigureMultiWide}{\begin{FigureMulti}}{\end{FigureMulti}}
\newenvironment{Herefigure}{\begin{figure}[ht!]\centering}{\end{figure}}
\newenvironment{Centerfigure}{\begin{Xfigure}\centering\item}{\end{Xfigure}}
\newenvironment{Leftfigure}{\begin{Xfigure}\item}{\end{Xfigure}}
\newenvironment{Rightfigure}{\begin{Xfigure}\item}{\end{Xfigure}}
\newenvironment{Xfigure}{\begin{list}{}{\leftmargin=0pt\topsep=0pt\parsep=\FigOrigskip\partopsep=0pt}}{\end{list}}
\newenvironment{FigureInside}{}{}
\newcommand{\Centertext}[1]{\begin{center}#1\end{center}}