[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] Understanding shrink-inline
From: |
skhilji |
Subject: |
[Texmacs-dev] Understanding shrink-inline |
Date: |
Wed, 05 May 2004 15:09:07 -0400 |
>From std-math.ts, here is the shrink-inline macro:
<assign|shrink-inline|<macro|x|<style-with|src-compact|none|<if|<equal|<value|math-display>|false>|<with|math-level|<plus|<value|math-level>|1>|<arg|x>>|<with|math-display|false|<arg|x>>>>>>
Question: The "ELSE" part of this macro is executed only if math-display is
false. Why do we then setup "math-display" to false again in the else section?
Its kind of like doing:
if ( c == 0 ) {
do_something;
}
else {
c = 0;
do_something_else;
}
Can we change it to:
<assign|shrink-inline|<macro|x|<style-with|src-compact|none|<if|<equal|<value|math-display>|false>|<with|math-level|<plus|<value|math-level>|1>|<arg|x>>|<arg|x>>>>>
Salman
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Texmacs-dev] Understanding shrink-inline,
skhilji <=