Jean-Marc Lasgouttes wrote:

> Le 27/01/2011 02:25, Cyrille Artho a écrit :
>> Are there any languages where it is correct to typeset \emph{ word }
>> including white space around the word?
>>
>> If not, it may be better to trim the part inside \emph{...}.
>>
>> As an alternative, one could also either (a) trim any white-space-only
>> \emph argument when emphasis is toggled, or (b) remove such artifacts
>> when exporting code to LaTeX.
> 
> I thought we had some code doing that. Did this got removed after a
> cleanup?

Yes. The latest bits of that were done for file format 259, but IIRC it 
started earlier. The reason is very simple: The export logic was too 
complicated, and the feature also had bugs. Handling this properly in 
tex2lyx would have been a nightmare too.

Therefore, all magic that might be needed should be done at editing time, 
e.g. solution (a) mentioned above or something more clever. Once a 
particular piece of text is marked with a particular font property it gets 
exported to LaTeX as-is.


Georg

Reply via email to