
Clean up the use of styles for alignment and the generated instances of style names. In the process, remove some padding for HTML output, and make the rendering more configurable (especially for Latex, based on suggestions by Keven Tew). The way that nested flows are generated can be different than before, so these changes risk breaking some existing uses of `scriblib/figure'. The changes especially likely break uses of `scriblib/figure' with output configured through overiding .css/.tex definitions. But the old pile of styles/macros was inconsistent and broken in various ways, so hopefully the changes are an improvement overall. original commit: 8862a44f149e9a8fb975f63147730cb19a4a7931
37 lines
1.1 KiB
TeX
37 lines
1.1 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{\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}}
|
|
|
|
|