我花了一些時間查看類似的翻書主題,但仍然無法產生預期的產出。我正在查看動畫書手冊,但我還不明白如何實現的命令是:
\fbImageB{./Images/Anims/an3/im}{png}{scale=0.25}
和
\fbImage*{./DIR/PREFIX}{png}{scale=0.2}
理想情況下,有 52 張不同的 jpg 圖片可供翻閱,放置在奇數頁上。到目前為止,我已經按照預期在奇數頁上顯示了一張圖像(稱為 pp1.jpg),但如何調用其餘圖像?我正在使用 Writelatex(這會是一個問題嗎?)。我在下面的 MWE 中包含了兩首與我自己不同的範例詩 - 謝謝社區!任何反饋都將受到高度讚賞。
\documentclass[twoside]{article}
\usepackage{fancyhdr}
\usepackage[paperwidth=5.9in, paperheight=8.0in]{geometry}
\usepackage{calc}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{etoolbox}
\usepackage[letterspace=10]{microtype}
\usepackage{pifont}
\usepackage{background}
\usepackage{verbatim}
\usepackage{scalefnt}
\usepackage{everypage}
\usepackage{ifthen}
\usepackage{flipbook}
\pagestyle{fancy}
\pagenumbering{Roman}
\lhead{Author}
\rhead{\thepage}
\chead{}
\lfoot{\bf TITLE}
\rfoot{}
\cfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrule}{\vbox to 0pt{\hbox
to\headwidth{\dotfill}\vss}}
\lsstyle
\begin{document}
Frontcover, Preface, pages
\newpage
Contents page
\newpage
% The first flip book image
\fancyfoot[RO]{\begin{picture}(35,10)
\put(0,-68){\includegraphics{pp1.jpg}}
\end{picture}}
\begin{center}
\section*{A Dream Deferred}
What happens to a dream deferred?\\
Does it dry up\\
like a raisin in the sun?\\
Or fester like a sore—\\
And then run?\\
Does it stink like rotten meat?\\
Or crust and sugar over—\\
like a syrupy sweet?
Maybe it just sags\\
like a heavy load.
Or does it explode?
\end{center}
Langston Hughes
\newpage
\begin{center}
\section*{Circus Animal}
Another day\\
Inside this cage
My life broken\\
Into so many pieces
I keep cutting myself\\
Against the bars
\end{center}
E. Ethelbert Miller
\newpage
another poem
\newpage
another poem because we love poetry = )
\newpage
\end{document}
答案1
使用 fancyhdr 軟體包,您可以指定賠率頁中右腳的圖片。
Flipbook 套件將產生一個 Flipbook(在其中插入圖像)
\fancyfoot[RO]{ % Flipbook at right foot in odd pages
\setlength\unitlength{1cm} % Specify the units
\begin{picture}(0,0) % New picture
\put(-0.2,-2){ % Position of the picture
\fbImageF{./Fig/Flipbook/image_}{png}{width=2cm} % Insert numbered picture in increasing order. Directory: ./Fig/Flipbook. Prefix of all pictures: image_ (in fact image_1, image_2, ...). Extension of the pictures: png.
}
\end{picture}
}
命令是:
\fbImageF{./DIR/PREFIX}{EXT}{width=WIDTH}
和:
- \fbImageF:編號圖片的遞增順序,
- \fbImageB:編號圖片的降序,
- DIR:圖片的路徑,
- PREFIX:所有圖片的前綴(例如:image_1.png,image_2.png,...),
- EXT:圖片的副檔名(例如:jpg、png、...),
- WIDTH:圖片的寬度,有單位(例如:1cm)。