Re: Custom clef horizontal adjustment.

2018-07-02 Thread David Kastrup
dfro writes: > In the code snippet below, the custom glyph sometimes collides with > the notes before it, and sometimes does not. Also, I cannot control > the distance from notes immediately after the custom glyph, as I can > with the standard "alto" glyph. > > I have tried to experiment and to

Custom clef horizontal adjustment.

2018-07-02 Thread dfro
Hello, I am interested in using custom clef symbols. I am practicing with a snippet from the library that replaces the internal "alto" clef glyph with a user defined postscript glyph. However, the behavior of the new glyph is not the same as the standard "alto" glyph. In the code snippet

Re: Toc with counter

2018-07-02 Thread Pierre Perol-Schneider
How about : \version "2.19.82" #(set-default-paper-size "a6") #(define counter-alist '()) #(define-markup-command (counter layout props name) (string?) "Increases and prints out the value of the given counter named @var{name}. If the counter does not yet exist, it is initialized with 1."

Re: \unset with modified default properties

2018-07-02 Thread Saul Tobin
Sure, define-music-function works fine. That part I just copied from the earlier snippet. That's a side issue, though. On Mon, Jul 2, 2018 at 2:36 PM David Kastrup wrote: > Saul Tobin writes: > > > Indeed, or StaffGroup level if I'm following correctly. > > And there is a StaffGroup. > > > My

Re: Toc with counter

2018-07-02 Thread David Kastrup
Pierre Perol-Schneider writes: >> ... counter shows only pairs. > " counter shows only even numbers"... sorry. > Pierre This is an abomination. Tracker issue: 5365 (https://sourceforge.net/p/testlilyissues/issues/5365/) Rietveld issue: 357740043 (https://codereview.appspot.com/357740043) Issue

Re: \unset with modified default properties

2018-07-02 Thread David Kastrup
Saul Tobin writes: > Indeed, or StaffGroup level if I'm following correctly. And there is a StaffGroup. > My issue is that I want to change the default keepAliveInterfaces for > one staff within a StaffGroup. (Probably should have just posted this > as my initial example, I suppose.) > >

Re: \unset with modified default properties

2018-07-02 Thread Saul Tobin
Indeed, or StaffGroup level if I'm following correctly. My issue is that I want to change the default keepAliveInterfaces for one staff within a StaffGroup. (Probably should have just posted this as my initial example, I suppose.) \version "2.19.82" targetstaff = #(define-scheme-function (ctx)

Re: Toc with counter

2018-07-02 Thread Pierre Perol-Schneider
So here's my workaround (simply dividing de counter by 2) : \version "2.19.82" %% or 2.18 %%% Counter defs % => http://lsr.di.unimi.it/LSR/Item?id=543 #(define counter-alist '()) #(define-markup-command (counter layout props name) (string?) "Increases and prints out the value of the

Re: Toc with counter

2018-07-02 Thread Pierre Perol-Schneider
Pretty smart Saul. However, dots are crossing the text so the output looks strange. Cheers, Pierre 2018-07-02 22:27 GMT+02:00 Saul Tobin : > Try this: > > tocItemWithDotsMarkupFixed = \markup { > \fill-line { > \fromproperty #'toc:text > \fill-with-pattern #1 #RIGHT . "" \fromproperty

Re: Toc with counter

2018-07-02 Thread Saul Tobin
Try this: tocItemWithDotsMarkupFixed = \markup { \fill-line { \fromproperty #'toc:text \fill-with-pattern #1 #RIGHT . "" \fromproperty #'toc:page } } \paper { tocItemMarkup = \tocItemWithDotsMarkupFixed } On Mon, Jul 2, 2018 at 12:57 PM Pierre Perol-Schneider <

Re: Toc with counter

2018-07-02 Thread Pierre Perol-Schneider
Thank you Saul. I understood that fill-with-pattern initiated the problem but could not see why. So thank you for your detailed explanation. Now, if someone has a workaround... Cheers, Pierre 2018-07-02 21:12 GMT+02:00 Saul Tobin : > If I understand correctly, counter gets incremented whenever

Re: Toc with counter

2018-07-02 Thread Saul Tobin
If I understand correctly, counter gets incremented whenever interpret-markup is called on a markup containing the counter. If you look in define-markup-commands.scm, \fill-line calls interpret-markup only once, but \fill-with-pattern calls interpret-markup twice, first to find out the width of

Re: Toc with counter

2018-07-02 Thread Pierre Perol-Schneider
> ... counter shows only pairs. " counter shows only even numbers"... sorry. Pierre 2018-07-02 17:23 GMT+02:00 Pierre Perol-Schneider < pierre.schneider.pa...@gmail.com>: > Hi All, > > I'd like to add a counter (LSR 543) in a table of content. > However, when 'tocItemWithDotsMarkup is set,

Toc with counter

2018-07-02 Thread Pierre Perol-Schneider
Hi All, I'd like to add a counter (LSR 543) in a table of content. However, when 'tocItemWithDotsMarkup is set, counter shows only pairs. Any idea how to solve this ? Snippet : \version "2.19.82" %% or 2.18 %%% Counter defs % => http://lsr.di.unimi.it/LSR/Item?id=543 #(define

Re: Opinions requested on deprecating "annotation" commands

2018-07-02 Thread Urs Liska
Am 01.07.2018 um 20:27 schrieb N. Andrew Walsh: Hi Urs, List On Sun, 1 Jul 2018, 00:08 Urs Liska > wrote: Hi Simon and Craig, I think it's a good point. And since maybe I'll have to suffer more than anyone else ;-) I shouldn't wring my hands too

Re: \unset with modified default properties

2018-07-02 Thread David Kastrup
Saul Tobin writes: > Interesting. So if the default property is set at the Staff level, for > instance, then changed and \unset at the Voice level, it goes back to the > default for the higher-level context. But if in the example \new Staff > \with... is changed to \new Voice \with... the