From: Graham Percival Date: Mon, 14 Apr 2008 20:54:51 +0000 (-0700) Subject: Update from Valentin. X-Git-Tag: release/2.11.45-1~76 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e60fefba087f3216ff185d151d0fe5b552c15239;p=lilypond.git Update from Valentin. --- diff --git a/Documentation/user/text.itely b/Documentation/user/text.itely index a88f8f35c1..29646c3a58 100644 --- a/Documentation/user/text.itely +++ b/Documentation/user/text.itely @@ -351,8 +351,6 @@ c1_\markup { "\special {weird} #characters" } An exhaustive list of @code{\markup}-specific commands can be found in @ref{Text markup commands}. -@code{\markup} blocks can be used anywhere text is called, -and not only for @internalsref{TextScript}s objects. @lilypond[quote,verbatim] \header{ title = \markup{ \bold { foo \italic { bar! } } } } @@ -374,14 +372,7 @@ and not only for @internalsref{TextScript}s objects. } @end lilypond -A @code{\markup} block can also be printed on its own at the top-level -of the input file, away from -any @code{\score} block. This syntax is described in -@ref{Multiple scores in a book}. -@lilypond[quote,ragged-right,verbatim] -\markup{ Here is some text. } -@end lilypond @cindex font switching @@ -469,6 +460,41 @@ properties. If you are creating text in such situations, it is advisable to cancel those properties with @code{normal-text}. See @ref{Text markup commands}, for more details. +@ignore +TODO: here are some commands that could be described here. +I'm putting them in bulk, prior to working on this section. -vv + +\simple + +\char +\fraction + +\combine +\concat +\put-adjacent + + +\page-ref (see also "Table of contents") +\fromproperty +\verbatim-file +\with-url + +\on-the-fly +\override + + +\null +\hspace + +\lower +\raise +\translate +\translate-scaled +\rotate +\transparent +\whiteout + +@end ignore @seealso @@ -492,24 +518,183 @@ Syntax errors for markup mode are confusing. @node Common markup commands @subsubsection Common markup commands -TODO: everything +Some basic formatting can be used blah blah + +\italic +\upright +\bold +\medium +\underline + + +@c TODO: what's the difference between the following commands? -vv +\smallCaps +\caps +\fontCaps + + +Some alternate font families can easily be selected: + +\sans +\typewriter +\roman +\number (only for numbers, such as fingerings and time signatures) +@c TODO: add \slashed-digit here? -vv + +The size can be blah blah blah + +\fontsize + +Some predefined font sizes can be used blah blah + +\teeny +\tiny +\small +\normalsize +\large +\huge + +Some shorcuts allow to change the font size relatively to its previous value + +\smaller +\bigger +\larger + +\magnify + +Text may be printed as subscript or superscript: + +\sub +\super + +To obtain subscripts or superscripts in a normal text size, use +\normal-size-sub +\normal-size-super + +All these settings (except the size) can be reverted to the default font: + +\normal-text + @node Text alignment @subsubsection Text alignment -TODO: everything +Alignment basics: +\left-align +\center-align +\right-align + +Horizontal alignment: +\hcenter +\general-align +\halign + + +Vertical alignment: +\vcenter +\column +\dir-column + +Building a "large" markup: + +\line + +\fill-line + +\hcenter-in + +\pad-around +\pad-markup +\pad-to-box +\pad-x + +Alignment inside a "large" markup: + +\justify-field +\justify +\justify-string + +\wordwrap-field +\wordwrap +\wordwrap-string @node Graphic notation inside markup @subsubsection Graphic notation inside markup +Graphics around text: +\box +\circle + +\bracket +\hbracket + +"Standalone" graphics: + +\arrow-head +\draw-line +\draw-circle +\filled-box +\triangle +\strut + +\with-color + + +Advanced graphics: +\stencil -TODO: everything +\postscript +\epsfile + +\with-dimensions @node Music notation inside markup @subsubsection Music notation inside markup -It is possible to nest music inside markups, by adding a -@code{\score} block to a markup expression. Such a score must -contain a @code{\layout} block. +Notes can be printed in markup mode blah blah: + +\note +\note-by-number + +Accidental symbols can be obtained easily: + +\doubleflat +\sesquiflat +\flat +\semiflat +\natural +\semisharp +\sharp +\sesquisharp +\doublesharp + +Some other notation objects blah blah + +\beam +\finger +\dynamic +\tied-lyric +\markalphabet +\markletter +@TODO: add \text here? -vv + +Any musical symbol can be printed + +\musicglyph +@c TODO: add \lookup here? -vv + + +The markup mode has support for fret diagrams: + +\fret-diagram +\fret-diagram-terse +\fret-diagram-verbose + +An entire @code{\score} block can even be nested in a @code{\markup} +block. In such a case, the @code{\score} must contain a @code{\layout} block. + + +\score + @lilypond[quote,verbatim,ragged-right] \relative {