[texhax] \parshape and rightmargin

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Aug 28 18:12:32 CEST 2011


On 28/08/2011 15:12, Vafa Khalighi wrote:
> Can you with \parshape, instead of left margin, choose the values for right
> margin?
> 
> Thanks

Yes: we are doing this for the galley in LaTeX3. You just set the line
length to be shorter than the surroundings. Using e-TeX, a simple
example is something like:

  \parshape 1 0 pt \dimexpr\linewidth - <right margin>\relax\relax

Depending on your exact requirements, you might want to do some
calculation with \hsize and \@totalleftmargin (assuming LaTeX2e). (My
example is rather simplistic.)
-- 
Joseph Wright


More information about the texhax mailing list