I have a lot of tables and figures to include in my thesis. I am using sidewaysfigure to include them in a full-page landscape view. I need to put 90 degrees-oriented figures if the page is on the left side (even page number) and -90 degrees-oriented figures if the page is on the right side (odd page number). With the code below I obtain random orientation with no respect to the page number. In the code below you'll find 3 important examples for my theis corresponding to 1 figure and 2 tables all of them put in sidewaysfigure environment. Is there any solution obtain what I want ? Note that I haven't know how to separate the LaTex code with the text in this forum.
\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}