scriblib/figure: fix figures as ref targets
Merge to v6.0 original commit: a794ef862ec462bcc43d30d9f1b4829cbf53f1ba
This commit is contained in:
parent
d6292ee9ff
commit
e4d4904298
|
@ -20,10 +20,14 @@
|
||||||
\newlength{\FigOrigskip}
|
\newlength{\FigOrigskip}
|
||||||
\FigOrigskip=\parskip
|
\FigOrigskip=\parskip
|
||||||
|
|
||||||
\newenvironment{Figure}{\begin{figure}}{\end{figure}}
|
% Put this before the figure content, so that a hyperref goes to
|
||||||
\newenvironment{FigureMulti}{\begin{figure*}[t!p]}{\end{figure*}}
|
% the start of the content:
|
||||||
\newenvironment{FigureMultiWide}{\begin{FigureMulti}}{\end{FigureMulti}}
|
\newcommand{\FigureSetRef}{\refstepcounter{figure}}
|
||||||
\newenvironment{Herefigure}{\begin{figure}[ht!]\centering}{\end{figure}}
|
|
||||||
|
\newenvironment{Figure}{\begin{figure}\FigureSetRef}{\end{figure}}
|
||||||
|
\newenvironment{FigureMulti}{\begin{figure*}[t!p]\FigureSetRef}{\end{figure*}}
|
||||||
|
\newenvironment{FigureMultiWide}{\begin{FigureMulti}\FigureSetRef}{\end{FigureMulti}}
|
||||||
|
\newenvironment{Herefigure}{\begin{figure}[ht!]\FigureSetRef\centering}{\end{figure}}
|
||||||
|
|
||||||
\newenvironment{Centerfigure}{\begin{Xfigure}\centering\item}{\end{Xfigure}}
|
\newenvironment{Centerfigure}{\begin{Xfigure}\centering\item}{\end{Xfigure}}
|
||||||
\newenvironment{Leftfigure}{\begin{Xfigure}\item}{\end{Xfigure}}
|
\newenvironment{Leftfigure}{\begin{Xfigure}\item}{\end{Xfigure}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user