LyX ⇒ Unicode characters
Unicode characters
I've tried XeTeX but I prefer keep my font (Computer Modern I guess, the LyX predefined).
Is there a workaround to insert only an unicode character, and keep the rest of the text like it is?
Thanks
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
- Stefan Kottwitz
- Site Admin
- Posts: 10328
- Joined: Mon Mar 10, 2008 9:44 pm
Unicode characters
welcome to the board!
For inserting UTF-8 characters, you could use the inputenc package. Load it by inserting this line into your LyX document preamble:
Code: Select all
\usepackage[utf8]{inputenc}
Unicode characters
Hi Stefan!Stefan_K wrote:Hi Parad,
welcome to the board!
For inserting UTF-8 characters, you could use the inputenc package. Load it by inserting this line into your LyX document preamble:
StefanCode: Select all
\usepackage[utf8]{inputenc}
Thanks for your reply.
I've tried inputenc, but my problem is abouta LaTeX I guess, because I need in ERT somethig like:
Code: Select all
\textbf{\textcolor{bordo}{━━━}}
I hope someone could give me a tip

Unicode characters
I tried utf8 inputenc on a MWE and the character 0x2501 gives me the next error:Stefan_K wrote:Hi Parad,
welcome to the board!
For inserting UTF-8 characters, you could use the inputenc package. Load it by inserting this line into your LyX document preamble:
StefanCode: Select all
\usepackage[utf8]{inputenc}
Code: Select all
Can not find a LaTeX command for character '━' (Code 0x2501)
Re: Unicode characters
I only want to insert some special characters in the middle of the text.
Re: Unicode characters
From what I can tell, it's just a straight line, though, right? Can't you approximate it with a \rule command, something like \rule[0.5ex]{1em}{2pt}?
Unicode characters
Wow, that's awesomefrabjous wrote:The Computer Modern fonts don't cover the complete Unicode range, and I don't think that glyph is covered at all by the inputenc package.
From what I can tell, it's just a straight line, though, right? Can't you approximate it with a \rule command, something like \rule[0.5ex]{1em}{2pt}?


It works great with textcolor command too.
