Hello Jean,

Jean-Pierre Coulon wrote on Fri, 18 Jul 2014 21:17:55 +0200:
> I have made macros containing a spacing command and an accidental. I want 
> to make *two* versions of my score. One with both commands active, the 
> other with both inactive. Therefore I'va made macros with \ifx.
> 
> But why are the beam starts displaced with my definitions using \ifx? 
> Please try the simple and complicated definitions in the attached file.
> 
> Bye,
> 
> Jean-Pierre Coulon


try this:

% complicated defintions:
\def\mysk{\ifx\urtext\undefined\off{.8\elemskip}\fi}
\def\mysksh#1{\ifx\urtext\undefined\off{.8\elemskip}\sh{#1}\fi}
\def\myskna#1{\ifx\urtext\undefined\off{.8\elemskip}\na{#1}\fi}


I am not good at explaining the logic theory inside TeX engine. 
I would like to suggest you to read `TeX by Topic' written by 
Victor Eijkhout:
  10.4.2 The brace as a token.
  Chapter 11 Macro
  Chapter 13 Conditionals

Online version is available at CTAN.  


----
Hiroaki MORIMOTO <[email protected]>




-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music

Reply via email to