根据页码使用 sidewaysfigure 旋转图片

根据页码使用 sidewaysfigure 旋转图片

我的论文中有很多表格和图片要包含。我使用 sidewaysfigure 将它们包含在全页横向视图中。如果页面在左侧(偶数页码),我需要放置 90 度方向的图片,如果页面在右侧(奇数页码),则需要放置 -90 度方向的图片。使用下面的代码,我可以获得与页码无关的随机方向。在下面的代码中,您将找到 3 个对我的论文很重要的示例,它们对应于 1 个图片和 2 个表格,它们都放在 sidewaysfigure 环境中。有没有什么解决方案可以得到我想要的?请注意,我不知道如何将 LaTex 代码与本论坛中的文本分开。

\documentclass[12pt,a4paper,english,french]{book}
.....
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage{epstopdf}
.....
\begin{document}
.....
..... % Figure 1:
\begin{sidewaysfigure}[!htbp] 
\captionsetup{justification=centering,margin=2cm,font={small}}
\centering
\fbox{\includegraphics[scale=.7]{imagesP/test.eps}}
\caption{Localisation géographique}
\captionsetup{font={scriptsize}}
\label{Figure:Local}
\caption*{{Conception de l'auteur,  Données S.I.G: \ac{OTEDD} [2013]}}
\end{sidewaysfigure}
....
% Table 1 (Part 1/2 of the table divided into to pages)
\begin{sidewaystable}[!htbp] 
\footnotesize
\centering
\renewcommand{\arraystretch}{1.5}
\def\tabularxcolumn#1{m{#1}}
\begin{tabularx}{\textwidth}{c >{\centering\arraybackslash}m{1.8cm} >{\centering\arraybackslash}m{4.4cm} >{\centering\arraybackslash}m{3.5cm} X}
\hline
\textbf{Année} & {\textbf{Auteur}} & {\textbf{Article}} & {\textbf{Revue}} &  \centering{\textbf{Apport théorique / empirique}} \tabularnewline
\hline
Text & Text & Text & Text \\
\hline
Text & Text & Text & Text \\
\hline
\end{tabularx}
\captionsetup{justification=centering,margin=2cm,font={small}}
\caption{Chronologie des études (1/2)}
\captionsetup{font={scriptsize}}
\label{sec3:chrono}
\caption*{Source: Conception de l'auteur}
\end{sidewaystable}
% Table 2 (Part 2/2 of the table divided into to pages)
\begin{sidewaystable}[!htbp] 
\footnotesize
\centering
\renewcommand{\arraystretch}{1.5}
\def\tabularxcolumn#1{m{#1}}
\begin{tabularx}{\textwidth}{c >{\centering\arraybackslash}m{1.8cm} >{\centering\arraybackslash}m{4.4cm} >{\centering\arraybackslash}m{3.5cm} X}
\hline
\textbf{Année} & {\textbf{Auteur}} & {\textbf{Article}} & {\textbf{Revue}} &  \centering{\textbf{Apport théorique / empirique}} \tabularnewline
\hline
Text & Text & Text & Text \\
\hline
Text & Text & Text & Text \\
\hline
\end{tabularx}
\captionsetup{justification=centering,margin=2cm,font={small}}
\caption{Chronologie des études (2/2)}
\captionsetup{font={scriptsize}}
\label{sec3:chrono2}
\caption*{Source: Conception de l'auteur}
\end{sidewaystable}
....
\end{document}

相关内容