3

as the title suggest, I encountering some trouble with the association of the package rotating and the use of itemize :

I would like to have my text rotated right next to my list but this code :

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx,multicol}
\usepackage{lmodern,marvosym}
\usepackage{mathdesign}
\usepackage{rotating}



\begin{document}

\begin{center}
{\fontfamily{ptm} \Huge Les 5 commandements}
\end{center}

\noindent
\begin{multicols}{2}
\begin{minipage}[b]{0.001em}
    \begin{turn}{90}
Objectifs
    \end{turn}
\end{minipage}

\columnbreak
\noindent

\begin{minipage}{10em}
       \begin{itemize}
        \item Blabla
        \item Blabla
        \end{itemize}
\end{minipage}



\end{multicols}

\end{document}

produces that result (updated !) : enter image description here

Whereas I would like it to look as that one (the rotated one) :

enter image description here

How could I stick the list to the rotated text ? Thank you !

  • You can not keep an empty line between the minipages otherwise you will get a new paragraph. – Sigur Sep 27 '14 at 19:42
  • Try this: \noindent\begin{minipage}[b]{1em}\hfill \begin{turn}{90}Objectifs \end{turn} \end{minipage} \begin{minipage}[b]{0.925\textwidth} \noindent\begin{itemize} \item Blabla \item Blabla \end{itemize} \end{minipage} – Sigur Sep 27 '14 at 19:46
  • We are looking better but still not what I look for ! – Le Duc Banal Sep 27 '14 at 20:18
  • note that rotating package turn environment is just a thin wrapper around the standard \rotatebox command, for compatibility with documents written with the 1980's rotating package for latex2.09. It works Ok but there's not a lot of need to use it this century:-) – David Carlisle Sep 28 '14 at 9:19
3

The horizontal space is due to the itemize. If you use a normal paragraph you'll see that the space is smaller.

enter image description here

\noindent\rotatebox[origin=bl]{90}{Objectifs}
\begin{minipage}[b]{.7\linewidth}
\begin{itemize}
       \item \lipsum[1]
       \item Blabla
\end{itemize}
\end{minipage}

\bigskip

\noindent\rotatebox[origin=bl]{90}{Objectifs}
\begin{minipage}[b]{.7\linewidth}
\lipsum[1]
\end{minipage}

Changing the anchor for rotating and the base point for minipage produces a better view, with the rotated text aligned to the top.

\noindent\rotatebox[origin=tr]{90}{Objectifs}
\begin{minipage}[t]{.7\linewidth}
\lipsum[1]
\end{minipage}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.