[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
\concat markup command
From: |
Werner LEMBERG |
Subject: |
\concat markup command |
Date: |
Sat, 11 Nov 2006 18:13:53 +0100 (CET) |
All markup commands which accept more than a single markup put spaces
inbetween. However, sometimes this is not useful (for example, just
look at the bad appearance of the E=mc² -- there is an incorrect space
before the superscript 2.
I thus suggest a command \concat which does the same as \line but
without inserting whitespace:
#(define-markup-command (concat layout props args) (markup-list?)
"Concatenate @var{args} in a horizontal line, without spaces inbetween."
(let*
((stencils (map (lambda (m) (interpret-markup layout props m)) args))
(text-dir (chain-assoc-get 'text-direction props RIGHT))
)
(if (= text-dir LEFT)
(set! stencils (reverse stencils)))
(stack-stencil-line
0
(remove ly:stencil-empty? stencils))))
I can add this if you want me to do so.
Werner
- \concat markup command,
Werner LEMBERG <=
- Re: \concat markup command, Han-Wen Nienhuys, 2006/11/11
- Re: \concat markup command, Werner LEMBERG, 2006/11/12
- Re: \concat markup command, Han-Wen Nienhuys, 2006/11/12
- Re: \concat markup command, Werner LEMBERG, 2006/11/12
- Re: \concat markup command, Han-Wen Nienhuys, 2006/11/12
- Re: \concat markup command, Werner LEMBERG, 2006/11/18
- Re: \concat markup command, Werner LEMBERG, 2006/11/19
Re: \concat markup command, Erik Sandberg, 2006/11/12