The fullwidth package (current version 0.1) by Marco Daniel "provides the environment fullwidth
which allows to set the left and right margins in a very simple way" (manual, p. 1). According to the manual, the package is based on the algorithm of the mdframed package (current version 1.0) by the same author.
However, trying to change margins of individual paragraphs with fulllwidth
doesn't yield the desired results. Setting the leftmargin
option to a positive value will move the whole paragraph to the right (into the right page margin), and setting rightmargin
to a positive value doesn't have any effect at all. (The mdframed
package, on the other hand, changes the respective margins as expected [and adds a frame around the paragraph].) fullwidth
s behaviour can't be correct, can it?
\documentclass{article}
\usepackage[linewidth=1.2pt]{mdframed}
\usepackage{fullwidth}
\newcommand*{\sometext}{Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Ut purus elit, vestibulum ut, placerat ac,
adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu
libero, nonummy eget, consectetuer id, vulputate a, magna. Donec
vehicula augue eu neque.}
\begin{document}
\section{\texttt{mdframed} works as expected}
\sometext
\begin{mdframed}[leftmargin=3em]
\sometext
\end{mdframed}
\begin{mdframed}[rightmargin=3em]
\sometext
\end{mdframed}
\section{But \texttt{fullwidth} doesn't}
\sometext
\begin{fullwidth}[leftmargin=3em]
\sometext
\end{fullwidth}
\begin{fullwidth}[rightmargin=3em]
\sometext
\end{fullwidth}
\end{document}
fullwidth
is inside\leftmargin
insteadmdframed
uses a combination of\makebox
. I have no problem to discuss the behavior. At the moment you must set thewidth
(good or not?). Thatrightmargin
has no influence is really a bug.mdframed
s behaviour forleftmargin=3em
(adding a left margin of 3em and not changing the right margin) is more intuitive. It also corresponds to the working ofKOMA-Script
saddmargin
environment.addmargin
it is easier for the user. I will change that. Please note it is version 0.1 so I will change some settings ;-) github.com/marcodaniel/fullwidthmdframed
.