Bonjour,
J'utilise pdflatex
pour générer des PDF, mais j'obtiens un résuktat très étrange quand j'inclus des figures dans des sous-sections. J'ai le .tex
suivant :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[left=1cm,right=1cm,top=1cm,bottom=1cm]{geometry} \usepackage{graphicx} \title{Cow 8941} \author{} \date{} \begin{document} \maketitle \pagenumbering{gobble} \section{Crude data}\subsection{Lactations} \begin{figure}[htbp] \centering \includegraphics[width=1\textwidth]{/home/vincent/.local/share/virtualenvs/mpf/lib/python3.4/site-packages/tmp/plot.pdf} \end{figure} \subsection{Lactation 1} \begin{figure}[htbp] \centering \includegraphics[width=1\textwidth]{/home/vincent/.local/share/virtualenvs/mpf/lib/python3.4/site-packages/tmp/plott.pdf} \end{figure} \subsection{Lactation 2} \begin{figure}[htbp] \centering \includegraphics[width=1\textwidth]{/home/vincent/.local/share/virtualenvs/mpf/lib/python3.4/site-packages/tmp/plottt.pdf} \end{figure} \subsection{Lactation 3} \begin{figure}[htbp] \centering \includegraphics[width=1\textwidth]{/home/vincent/.local/share/virtualenvs/mpf/lib/python3.4/site-packages/tmp/plotttt.pdf} \end{figure} \section{Smoothed data}\subsection{Lactations} \begin{figure}[htbp] \centering \includegraphics[width=1\textwidth]{/home/vincent/.local/share/virtualenvs/mpf/lib/python3.4/site-packages/tmp/plottttt.pdf} \end{figure} \subsection{Lactation 1} \begin{figure}[htbp] \centering \includegraphics[width=1\textwidth]{/home/vincent/.local/share/virtualenvs/mpf/lib/python3.4/site-packages/tmp/plotttttt.pdf} \end{figure} \subsection{Lactation 2} \begin{figure}[htbp] \centering \includegraphics[width=1\textwidth]{/home/vincent/.local/share/virtualenvs/mpf/lib/python3.4/site-packages/tmp/plottttttt.pdf} \end{figure} \subsection{Lactation 3} \begin{figure}[htbp] \centering \includegraphics[width=1\textwidth]{/home/vincent/.local/share/virtualenvs/mpf/lib/python3.4/site-packages/tmp/plotttttttt.pdf} \end{figure} \end{document} |
et j'obtiens un PDF de la forme :
Crude data
Lactations
FIGURE
FIGURE
FIGURE
FIGURE
FIGURE
FIGURE
Lactation 1
Lactation 2
Lactation 3
Smoothed data
Lactations
Lactation 1
Lactation 2
FIGURE
Lactation 3
FIGURE
alors que je souhaiterais avoir :
Crude data
Lactations
FIGURE
Lactation 1
FIGURE
Lactation 2
FIGURE
Lactation 3
FIGURE
Smoothed data
Lactations
FIGURE
Lactation 1
FIGURE
Lactation 2
FIGURE
Lactation 3
FIGURE
Avec, si possible, le titre et le graphe associé sur la même page.
Tout est ici. Pour information, je passe par PyLaTeX. Le PDF est générer via pdflatex --output-directory="path/to/dir" "tex_file.tex"
.
Merci !
+0
-0