On 2017-04-11, Uwe Stöhr wrote:
> El 06.04.2017 a las 10:39, Jean-Marc Lasgouttes escribió:

...

>> The question is not whether the equation is indented, it is whether it 
>> is flushed left.
>> The paramter (and all it incarantion in the code) should be \fleqn or 
>> \flush_equation or \flush_math

> I took off the developers' hut as you would say. Imagine you go through 
> the streets asking people what "flush left" means (they might think of 
> the left toilet flush button ;-). I mean "flush" is nothing people 
> associate with text editing. We live in the world of MS Word if we like 
> it or not. There you can either left align text or indent it.

or center or right align or justify (see Edit>Paragraph Settings).


> The output of fleqn are formulas that are put to the left side,

"flushed left"

> but pushed by 30 pt to the right side. 

and indented (in most cases *not* by 30 pt, see my other post).

> So in effect it is an indentation for most average users.

The "fleqn" option determines whether equations are aligned or centered.
In both cases, the equations are indented: either with a fixed
indentation or (when centered) with a variable one.

-> Indentation is not the distinguishing feature, its aligned vs. centered.

>>       - \formula_indentation

>> - (minor) although the term formula is used in the file format, it is a 
>> remnant of old times (like Style/Layout) that we should not encourage. 
>> In this case \math_indent is a much better choice, especially since this 
>> is the LaTeX term.

> Well, this is a matter of taste. For me math is everything, inline and 
> formulas. Since the indentation is only something for formulas I chose 
> "formula". 

Most important is consistency: if the length is called "mathindent" in
LaTeX, it should be called mathindent in LyX, too (unless there is a
broad consensus that there is a better name).

> Personally, I find LyX's term "displayed equations" meaningless. What
> is "displayed", why "equation"? An equation can be inline too.

"displayed" is "abgesetzt". And yes, equations can be either inline or
displayed.

"equation" is the usual term to refer to a "display equation":


        \sin 2k\pi x = \sin x (2)
     
     As you can see in equation 2, the sine is a periodical function...

Therefore "equation" (abgesetzte Gleichung) is a good choice for
"displaymath". 

Formula has too many connotation in English. 
> Imagine you go through the streets asking people what 
"formula" means. They might think of "infant formula" (Babymilchpulver)
or the Formula 1 circus. 


> However, I think one could discuss about the terminology a lot but the 
> user doesn't care what tag we write to the LyX file. I think important 
> is that other developers can imagine what "formula_indentation" more or 
> less means.

Yes, the UI should be "user centric" and the internal name is for
co-developers. However, other developers asked you to use the term
"mathindent" because then they can imagine what this means.


>> - I am really not sure that we need to expose a way to change the value 
>> of the indentation: this is something that is decided by the class 
>> author, and it is trivial to change in preamble for people who know what 
>> they are doing. The idea is "if you do not know how to change it, you 
>> probably do not need to change it.

> I googled around and I could not find a document class where \mathindent 
> is changed. Nevertheless, the user is free to change it if he likes to.

Are there many documents where the user changes this value?
IMV, this is a very rarely used setting that does not need a GUI entry.

Also, with WYSIWYG we don't need to exactyl reproduce this value in the GUI,
it is OK if equations are aligned and indented by the default value.

Keep it simple, please.


Günter

Reply via email to