[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting a global default for the \paragraph macro (NR Section 7.4.4)
From: |
Reinhold Kainhofer |
Subject: |
Re: Setting a global default for the \paragraph macro (NR Section 7.4.4)? |
Date: |
Mon, 19 May 2008 17:37:28 +0200 |
User-agent: |
KMail/1.9.9 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Sonntag, 18. Mai 2008 schrieb Nicolas Sceaux:
> With the following definition of the \paragraph command, you can
> globally change the indentation by setting a paper variable at
> top-level:
>
> #(define-markup-list-command (paragraph layout props args) (markup-
> list?)
> (let ((indent (chain-assoc-get 'par-indent props
> (ly:output-def-lookup layout 'par-indent 2))))
> (interpret-markup-list layout props
> (make-justified-lines-markup-list (cons (make-hspace-markup
> indent)
> args)))))
>
> \paper { par-indent = #3 }
Nice, thanks a lot!
Cheers,
Reinhold
- --
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
* K Desktop Environment, http://www.kde.org, KOrganizer maintainer
* Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIMZ7BTqjEwhXvPN0RAsDQAJwL/0UJowtk4FRzHDSFCvRaTyFe9gCfS0Xv
lPhKj1AH4pgLx9CyUruTUCk=
=yQgA
-----END PGP SIGNATURE-----