我如何告诉 hvfloat 中的双页从偶数页开始?

我如何告诉 hvfloat 中的双页从偶数页开始?

我使用 hvfloat 包,因为我想在相册中显示一些完整的跨页。找不到让跨页从偶数页开始的方法。但它们似乎是根据周围的文本量随机开始的。

谢谢你的帮助


\documentclass[twoside, 12pt]{book}
\usepackage{xcolor}
\usepackage[
paperwidth=116mm, paperheight=186mm,
layoutsize={110mm, 180mm},
textheight=420pt,
textwidth=219pt,
inner=54pt,
    ]
    {geometry}

\usepackage{graphicx}
\usepackage{hvfloat}
\usepackage{lipsum}
\usepackage{blindtext}
\begin{document}

\chapter{1}

\blindtext[2]

\hvFloat[doubleFULLPAGE,capPos=before]
{figure} {\includegraphics[height=\paperheight, width=2\paperwidth,keepaspectratio=false]{example-image-a}}
{AThis is my first image. There is no text before}
{fig:doubleFULLPAGE1}

\blindtext[2]

\chapter{2}


\documentclass[twoside, 12pt]{book}
\usepackage{xcolor}
\usepackage[
paperwidth=116mm, paperheight=186mm,
layoutsize={110mm, 180mm},
textheight=420pt,
textwidth=219pt,
inner=54pt,
    ]
    {geometry}

\usepackage{graphicx}
\usepackage{hvfloat}
\usepackage{lipsum}
\usepackage{blindtext}
\begin{document}

\chapter{1}



\hvFloat[doubleFULLPAGE,capPos=before]
{figure} {\includegraphics[height=\paperheight, width=2\paperwidth,keepaspectratio=false]{example-image-a}}
{AThis is my first image. There is no text before}
{fig:doubleFULLPAGE1}

\blindtext[2]

\chapter{2}

\blindtext[2]
   
\hvFloat[doubleFULLPAGE,capPos=before]
{figure} {\includegraphics[height=\paperheight, width=2\paperwidth,keepaspectratio=false]{example-image-b}}
{This is my second image, after some text and with some text after}
{fig:doubleFULLPAGE2}

\blindtext[2]


\end{document}
   
\hvFloat[doubleFULLPAGE,capPos=before]
{figure} {\includegraphics[height=\paperheight, width=2\paperwidth,keepaspectratio=false]{example-image-b}}
{This is my second image, after some text and with some text after}
{fig:doubleFULLPAGE2}

\blindtext[2]


\end{document}

答案1

正如我已经写过的:这行不通!漂浮的页面需要一些可以通过 TeX 移动的文本浮动对象,以便浮动本身可以从偶数页开始!您没有任何文本,原因是漂浮物体完全没有意义。使用简单的 \includegraphics[trim=...,clip]{...} 来表示图像的左侧和右侧部分:

\documentclass[twoside]{book}
\usepackage[showframe,a5paper]{geometry}
\usepackage{graphicx}
\newsavebox\IBox
\parindent=0pt
\begin{document}
    
\newgeometry{margin=10pt}
\null\newpage% start on even page
\sbox\IBox{\includegraphics{tiger}}%
\includegraphics[trim=0 0 \dimexpr\wd\IBox-\textwidth{} 0,clip]{tiger}
\newpage
\includegraphics[trim=\textwidth{} 0 0 0,clip]{tiger}
\newpage
\restoregeometry

\end{document}

在此处输入图片描述

答案2

它们是浮动对象,如果你使用双全页,则需要大量文本浮点数

\documentclass[twoside, 12pt]{book}
\usepackage{xcolor}
\usepackage[
paperwidth=116mm, paperheight=186mm,
layoutsize={110mm, 180mm},
textheight=420pt,
textwidth=219pt,
inner=54pt,
]
{geometry}

\usepackage{graphicx}
\usepackage{hvfloat}
\usepackage{blindtext}
\begin{document}
    
    \chapter{1}
    
    \Blindtext[4]
    
    \hvFloat[doubleFULLPAGE,capPos=before]
    {figure} {\includegraphics[height=\paperheight, width=2\paperwidth,keepaspectratio=false]{example-image-a}}
    {This is my first image. There is no text before}
    {fig:doubleFULLPAGE1}
    
    \Blindtext[4]
    
    \chapter{2}
    
    \hvFloat[doubleFULLPAGE,capPos=before]
    {figure} {\includegraphics[height=\paperheight, width=2\paperwidth,keepaspectratio=false]{example-image-b}}
    {This is my second image, after some text and with some text after}
    {fig:doubleFULLPAGE2}
    
    \blindtext[2]
    
\end{document}

在此处输入图片描述 在此处输入图片描述 在此处输入图片描述 在此处输入图片描述

相关内容