[texhax] lists in minipage
Ulrike Fischer
news3 at nililand.de
Mon Apr 12 18:27:34 CEST 2010
Am Tue, 13 Apr 2010 01:53:10 +1000 schrieb Vafa Khalighi:
> Could you please look at the attached and tell me why I do not get the
> expected output in minipage with "b" as the position of the minipage? and
> preferably a solution to this?
What is your expected output? Looks quite normal and expected to me.
The baseline of the minipage is at the last line as you can see if
you add an x outside the minipage:
\documentclass{article}
\makeatletter
\TeXXeTstate=1
\newif\if at rl
\def\rl at everypar{\if at rl{\setbox\z@\lastbox\beginR\usebox\z@}\fi}
\let\o at everypar=\everypar
\newtoks\n at everypar
\n at everypar\expandafter{\the\o at everypar}
\o at everypar{\rl at everypar\the\n at everypar}
\let\everypar=\n at everypar
\def\setrl{\@rltrue}
\def\setlr{\@rlfalse}
\makeatother
\begin{document}
\setrl
\fbox{x\begin{minipage}[s]{0.7\textwidth}\setlr
\begin{itemize}
\item This is a test
\item This is a test
\end{itemize}
\end{minipage}}
\bigskip
\fbox{x\begin{minipage}{0.7\textwidth}\setlr
\begin{itemize}
\item This is a test
\item This is a test
\end{itemize}
\end{minipage}}
\bigskip
\fbox{x\begin{minipage}[b]{0.7\textwidth}\setlr
\begin{itemize}
\item This is a test
\item This is a test
\end{itemize}
\end{minipage}}
\end{document}
--
Ulrike Fischer
More information about the texhax
mailing list