LyX ⇒ "toggle emphasis" or "emphasize" ?
"toggle emphasis" or "emphasize" ?
I seem to recall that pressing Ctrl+e in lyx toggles emphasis; what I mean is that the selected text is emphasized (i.e. printed in italic font), and that any text already emphasized within this text remains emphasized (i.e. stands out in the italic text by being just upright).
I stress that I'm not absolutely sure about remembering this correctly, but I appreciated this behaviour, and was surprised it disappeared. Now, selecting text and pressing Ctrl+e emphasizes the whole text, removing any differences between previously emphasized and non-emphasized text.
The shortcut for Ctrl+e is "font-emph" which is "Toggles the emphasis font style (selection-wise)" (in LyX version 2.1.1, the version I'm using).
An example, to be sure I'm clear (even if it's redundant):
Consider the latex code:
"this \emph{word} is emphasized"
If I now select this text to emphasize it, I would expect the result to be either:
"\emph{this \emph{word} is emphasized}"
or:
"\emph{this} word \emph{is emphasized}"
But instead, LyX produces:
"\emph{this word is emphasized}"
Would there be a way to get this right (to my taste) in LyX ?
Thanks,
Jos
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: "toggle emphasis" or "emphasize" ?
I posted my problem here few days ago, but still no answer (see BibTex topic).
So I thought I look on the unanswered posts. You are lucky that I once tried LYX (about 2 years ago, Version 2.0.2 from 25.11.2011) and just tested your problem.
I can verify that your memory is correct. In my version, the behaviour is like you like it:
"this \emph{word} is emphasized"
is changed to
"\emph{this }word\emph{ is emphasized}" and back again.
Greetings,
Betabob
Re: "toggle emphasis" or "emphasize" ?
I might try to have a look at LyX's old source code to find a hack...
(Sorry, no idea about your post. But for bibtex / biblatex related issues, I found the latex page on stackexchange quite reactive.)