Re: Formatting part of a header property

2018-12-17 Thread David Kastrup
Thomas Morley writes: > Am Mo., 17. Dez. 2018 um 21:36 Uhr schrieb David Kastrup : >> >> Thomas Morley writes: >> >> > Though, every string is a simple markup, yes, thus it's checked first. >> > Why do you think it's icky? >> >> Because a string is formatted/treated _differently_ from a markup.

Re: Formatting part of a header property

2018-12-17 Thread Thomas Morley
Am Mo., 17. Dez. 2018 um 21:36 Uhr schrieb David Kastrup : > > Thomas Morley writes: > > > Am Mo., 17. Dez. 2018 um 21:20 Uhr schrieb David Kastrup : > >> > >> Thomas Morley writes: > > > >> > The idea: > >> > > >> > #(define-markup-command (wordwrap-field layout props symbol) > >> > (symbol?)

Re: Formatting part of a header property

2018-12-17 Thread Br. Samuel Springuel
Thanks Harm. The code may not be fully tested, but it does seem to do the job for me. There was one issue I ran into. I have a `\wordwrapright-field` and `\wordwrapcenter-field` which I make use of in this project and I had to load your code before I defined those commands (if done in revers

Re: Formatting part of a header property

2018-12-17 Thread Thomas Morley
Am Mo., 17. Dez. 2018 um 21:20 Uhr schrieb David Kastrup : > > Thomas Morley writes: > > The idea: > > > > #(define-markup-command (wordwrap-field layout props symbol) > > (symbol?) [doc-string dropped] > > (let* ((m (chain-assoc-get symbol props))) > > (cond ((string? m) > >(

Re: Formatting part of a header property

2018-12-17 Thread David Kastrup
Thomas Morley writes: > Am Mo., 17. Dez. 2018 um 21:20 Uhr schrieb David Kastrup : >> >> Thomas Morley writes: > >> > The idea: >> > >> > #(define-markup-command (wordwrap-field layout props symbol) >> > (symbol?) > [doc-string dropped] >> > (let* ((m (chain-assoc-get symbol props))) >> >

Re: Formatting part of a header property

2018-12-17 Thread David Kastrup
Thomas Morley writes: > Am Mo., 17. Dez. 2018 um 19:21 Uhr schrieb Br. Samuel Springuel > : >> >> On 2018-12-17 12:08 PM, David Kastrup wrote: >> > Uh, anything wrong with the obvious >> > >> >custom = \markup { PRAELUDIUM I \italic { italicized text } >> > Back to normal } >> > >> > ? >>

Re: Formatting part of a header property

2018-12-17 Thread Thomas Morley
Am Mo., 17. Dez. 2018 um 19:21 Uhr schrieb Br. Samuel Springuel : > > On 2018-12-17 12:08 PM, David Kastrup wrote: > > Uh, anything wrong with the obvious > > > >custom = \markup { PRAELUDIUM I \italic { italicized text } Back to > > normal } > > > > ? > It works in the MWE I posted, but n

Re: Formatting part of a header property

2018-12-17 Thread Br. Samuel Springuel
On 2018-12-17 12:08 PM, David Kastrup wrote: Uh, anything wrong with the obvious custom = \markup { PRAELUDIUM I \italic { italicized text } Back to normal } ? It works in the MWE I posted, but not in my original use case (the contents of the field disappear entirely. After some furth

Re: Formatting part of a header property

2018-12-17 Thread David Kastrup
"Br. Samuel Springuel" writes: > I'm making use of a custom header (with custom fields) and have come > across a situation in which I need to apply custom formatting > (italics) to a piece of the field (just a handful of words in the > middle). Given that the header fields are normally simple st

Formatting part of a header property

2018-12-17 Thread Br. Samuel Springuel
I'm making use of a custom header (with custom fields) and have come across a situation in which I need to apply custom formatting (italics) to a piece of the field (just a handful of words in the middle). Given that the header fields are normally simple strings, is there a way to format part