LyX ⇒ Unicode characters
Unicode characters
I want to insert some unicode characters like black square or ━ but after trying it for several hours i can't get anything more than errors.
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
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.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Unicode characters
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:
Stefan
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}
LaTeX.org admin
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
Anyone can help me?
I only want to insert some special characters in the middle of the text.
I only want to insert some special characters in the middle of the text.
Re: Unicode characters
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}?
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.
