[XeTeX] squeezing vertical space before/after verse environment

François Patte francois.patte at mi.parisdescartes.fr
Sun Aug 2 10:45:01 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 02/08/2009 08:35, Sreenivasa Guttal a écrit :
> Hello,
> 
> I frequently get feedback to reduce the vertical space automatically
> introduced by latex/xelatex in section headers etc. I have some solution
> for section headers now, but could not do the same for verse
> environment. If one looks @ the output, the space introduced by verse
> before and after looks significantly more. My work used indian languages
> like sanskrit.

Build your own environment, for instance:

\makeatletter
\newenvironment{sutra}{%
\refstepcounter{sutra}
                \let\\\@centercr
                \list{}{\itemsep      \z@
                        \itemindent   -1.5em%
                        \listparindent\itemindent
                        \advance\leftmargin 1em}%
                \item\relax}
               {\endlist}
\makeatother

Adjust the parameters until they fit what you wish.

If you want your new environment to be still named "verse", use
\renewenvironment (with the same syntax).


- --
François Patte
UFR de mathématiques et informatique
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 4286 2145
http://www.math-info.univ-paris5.fr/~patte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkp1Ug0ACgkQdE6C2dhV2JXymgCfUafwrRQTD3/1ZTb/97A/HRsa
ihkAoI2jJ6HrV4ycL5XSq5WlJZArKthH
=r8dl
-----END PGP SIGNATURE-----


More information about the XeTeX mailing list