Text FormattingKeep Lyx from rendering the word "LaTeX" as the LaTeX-logo

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
tobias
Posts: 1
Joined: Mon Jan 31, 2011 4:49 pm

Keep Lyx from rendering the word "LaTeX" as the LaTeX-logo

Post by tobias »

Hi,
I'm a Lyx user and I encountered a somewhat weird problem today ;).
Whenever I use the word "LaTeX" in a document, Lyx renders it in the pdf as the LaTeX Logo (as seen on the upper left corner on this page, with the A and the E a little higher/lower than the other characters). However, I just want "LaTeX" to be formatted the same way the rest of the document is. Anyone knows how I can make Lyx do that?

Thanks in advance for any answers, I hope I made somewhat clear what my problem is ;).

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Keep Lyx from rendering the word "LaTeX" as the LaTeX-logo

Post by meho_r »

Well, LyX by default uses custom commands which are in effect automatically when LyX, TeX, LaTeX etc. terms are used. If you take a look at the source (View > View source), you'll notice that LaTeX is automatically corrected to \LaTeX{}. So, one solution might be to simply redefine the \LaTeX command. In this case, just put into the preamble (Document > Settings > LaTeX Preamble) the following:

Code: Select all

\renewcommand{\LaTeX}{LaTeX}
Jorg
Posts: 1
Joined: Fri May 15, 2015 4:46 pm

Keep Lyx from rendering the word "LaTeX" as the LaTeX-logo

Post by Jorg »

Another, perhaps less intrusive, solution is to put LaTeX inside a TeX code field (Insert > TeX Code) whenever it should not be rendered as logo text. Any text placed in a TeX code field (aka ERT) escapes processing by LyX.
Although this has to be done manually, it can be an advantage when one wants to selectively replace only a few occurrences of the LaTeX logo by normal text.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Keep Lyx from rendering the word "LaTeX" as the LaTeX-lo

Post by Stefan Kottwitz »

Hi Jorg,

welcome to the forum!

Thank you for posting the alternative solution. Very good to know that way for escaping, so LyX would not touch such a piece of text.

Stefan
LaTeX.org admin
Post Reply