Am Donnerstag, 7. Dezember 2023, 06:47:56 CET schrieb Werner LEMBERG: > >> Maybe a bit less esoteric: > > Or even less esoteric: > Thanks! However, Jean's statement > > > markups don't store location info, unfortunately. > > is still true, which means that you can't access the current input > location within `define-markup-command`. > > > Werner
Yes, sure, but you could inject this during parsing. If you need this within a markup command there would not really be a reason why you shouldn’t be able to do so: loc = #(define-scheme-function (mup) (markup?) (markup #:override (cons 'location input-file-name) mup)) #(define-markup-command (test layout props) () #:properties ((location "na")) (display location) (interpret-markup layout props location)) \loc\markup\test The parser could very well (whenever creating a markup) set a location property. Cheers, Valentin
signature.asc
Description: This is a digitally signed message part.