我需要为我的双面图像添加标题。我决定利用页脚中的可用空间。我正在使用 dpfloat、xargs 和 fancyhdr 包:
\newcommandx{\twosidepic}[2][2]{
\thispagestyle{alim}
\begingroup
\sbox0{\includegraphics{#1}}
\tmp{#2}\thispagestyle{capt}
\begin{figure}[p]% will be the left-side figure
\begin{leftfullpage}
\noindent\makebox[\textwidth]{\includegraphics[trim=0 0 {.5\wd0} 0,width=\dimexpr\paperwidth-0.75in\relax,clip]{#1}}
\end{leftfullpage}
\end{figure}
\begin{figure}[p]
\begin{fullpage}
\noindent\makebox[\textwidth]{\includegraphics[trim={.5\wd0} 0 0 0,width=\dimexpr\paperwidth-0.75in\relax,clip]{#1}}
\end{fullpage}
\end{figure}
\endgroup
}
\fancypagestyle{alim}{\fancyhf{}\renewcommand{\headrulewidth}{0pt}\fancyfoot[C]{eeeeee}}
问题是这个页面样式应用于其他页面,而不是我需要的页面。如何添加标题?
答案1
解决了!
我没有在页脚页上添加标题,而是像普通标题一样添加。如果有人知道如何调整页脚页,请随时分享 :)
\newcommandx{\twosidepic}[2][2]{
\begingroup
\sbox0{\includegraphics{#1}}
%\tmp{#2}\thispagestyle{capt}
\begin{figure}[p]% will be the left-side figure
\begin{leftfullpage}
\noindent\begin{minipage}[t][\textheight][c]{\textwidth}
\hspace*{-\leftmargin}
\includegraphics[trim=0 0 {.5\wd0} 0,width=\dimexpr\paperwidth-0.75in\relax,clip]{#1}
\captionsetup{font = Large, labelfont=Large, singlelinecheck = false, format= hang, justification=raggedleft, labelsep=space}
\caption*{}
\end{minipage}
\end{leftfullpage}
\end{figure}
\begin{figure}[p]
\begin{fullpage}
\noindent\begin{minipage}[t][\textheight][c]{\textwidth}
\hspace*{-\leftmargin}
\includegraphics[trim={.5\wd0} 0 0 0,width=\dimexpr\paperwidth-0.75in\relax,clip]{#1}
\captionsetup{font = Large, labelfont=Large, singlelinecheck = false, format= hang, justification=raggedleft, labelsep=space}
\caption*{#2}
\end{minipage}
\end{fullpage}
\end{figure}
\endgroup
}