On 2017-01-24, Richard Heck wrote:
> On 01/24/2017 05:50 PM, Enrico Forestieri wrote:
>> On Tue, Jan 24, 2017 at 11:31:11PM +0100, Jean-Marc Lasgouttes wrote:
>>> Le 24/01/2017 à 23:07, Enrico Forestieri a écrit :
>>>> The first two that come to mind are xypic and tikz. As regards xypic,
>>>> in lyx 2.1 you could write a code fragment, select it and then hit
>>>> Ctrl-M to have it nicely previewed. Now no more.
>>> You mean that hitting Ctrl-M before writing the code fragment does not work?
>> I mean that what was working now does not anymore.

Of course, changed behaviour can have side-effects or affect a workflow
relying on some now removed side-effect.

> I agree with Enrico that we should revert to the previous behavior.

However, the previous behavior was changed for a reason (inconsistency
between LyX GUI and generated output due to the TeX ligatures).
I don't want this back.

For "standard" LaTeX text, -- and --- are a special constructs just like
<<, >>, ``, '', \, $, ^, or _. All of them are "escaped" by LyX's LaTeX
output, so why not -- and ---?

For direct input of them into the source, we need wrapping (ERT, mathed,
LyX-Code, "font teletype", listings).


> What we could also do, though, is provide SOME easy way (a shortcut?)
> for people to insert \textemdash, if that is what they want to do.
> Alternatively (yes, I know it is a terrible idea), we could have a
> preference for this.

My preference would be an LFUN "auto-dash", that converts
 * a preceding - into an en-dash
 * a preceding en-dash into an em-dash 
if not inside LyX-code, ERT, mathed, listings, index, label, or "font
teletype". 

This should then be bound to "-" by default (similar to the "-key for
quote-insert).


In addition, we need fixes for "overcompensating": no need for -{}- in LyX
code and if the font family is teletype.

Günter

Reply via email to