I got a document containing multiple different exercises. Each exercise is placed in a minipage environment and included in the main document. For the first page, there is a big space between the section and the starting of the first minipage. In addition, the first minipage is indented to the left (yes I already tried to use noindent, but it doesn't make a difference). Each exercise is defined like this:
\begin{minipage}[t]{\textwidth}
exercise content here
\end{minipage}
\vspace{0.5cm} %to create some space between exercises
Then the main file looks like this:
\section{Name of the section}
\subimport{folder}{ex1}
\subimport{folder}{ex2}
...
So the 2 problems I'm dealing with are:
- The space between the section and the first minipage is really big without defining space (space at the bottom wouldn't matter, for the following pages it's all right).
- The first minipage is indented to the left. I already tried no indent and similar commands.
Thank you for your time and help
Edit since the spacing problem is already solved, here a MWE for the indent problem:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\begin{document}
\section{This is a section title}
\begin{minipage}{\textwidth}
\textbf{Exercise}\\
Some text
\end{minipage}
\vspace{0.5cm}
\begin{minipage}{\textwidth}
\textbf{Exercise}\\
Some text
\end{minipage}
\vspace{0.5cm}
\begin{minipage}{\textwidth}
\textbf{Exercise}\\
Some tex
\end{minipage}
\vspace{0.5cm}
\begin{minipage}{\textwidth}
\textbf{Exercise}\\
Some text
\end{minipage}
\vspace{0.5cm}
\end{document}
The goal is, that all minipages are aligned the same way.
\raggedbottom? – Donald Arseneau Jun 01 '20 at 00:26\raggedbottomsolved the space between the first minipage and the section. Now the only problem is, that the second minipage is indented. – CrownUpKid Jun 01 '20 at 00:37