On 28 Mar 2003, Jean-Marc Lasgouttes wrote:

> >>>>> "Christian" == Christian Ridderström <[EMAIL PROTECTED]> writes:
> 
> Christian> I was trying to get 'LyX' output nicely (as \LaTeX) but it
> Christian> doesn't work for me in 1.3.1cvs. Has this been removed or
> Christian> something?
> 
> Just type "LyX", and \LyX will be (1) defined in preamble and (2) used
> in the latex output. The same holds for LaTeX=>\LaTeX and
> LaTeX2e=>\LaTeXe.

Is this documented? (if not, I can add it to my growing queue of things to 
bugzilla). 

For the documentation:
I played with it a bit, and to insert "LyX" as normal, {LyX} in ERT works. 
To force the definition of the \LyX{}-command, you can add the text LyX in 
a Comment environment.


I'm not sure what I think about this though from UI point of view. For
one, it's far from obvious that "LyX" will translate this way in the 
output... 
I can imagine scratching my head about this, wondering why it happens.

> There are plans (I mean just idle talks) in the future to remove
> support for this automatic transliteration and use a proper inset
> instead.

Hmm.. maybe it really should be solved in a more general 
context.. connected to text macros, character styles or something? 

The general case would need settings for defining the translation table. 
Actually... this is pretty close to a special kind of text macro, but I 
guess it needs a visual feedback indicating the words that will be 
translated upon output.

This could actually be great for getting a consistent style for certain 
words (or phrases if you allow hard spaces?). In my thesis, I've defined a 
\matlab{} command which translates into MATLAB with some formatting and I 
can see how the automatic translation would be useful here...
(MATLAB is a numerical software)

On the other hand... you loose control over what is happening (it's 
getting more Word:ish). Say for instance that you've already written your 
document with "matlab" in several places, and in some of the places you 
don't want the translation...

/Christian

-- 
Christian Ridderström, +46-8-790 91 37           http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Design        http://www.md.kth.se

Reply via email to