# Tag Info

4

If I compile the following example with LuaLaTeX from TeX Live 2015 \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize} \item \'Angel \item Ángel \item Pedro Rodr\'{\i}guez \item Pedro Rodríguez \end{itemize} \end{frame} \end{document} I get which is expected. If I add also \usepackage[T1]{fontenc}, the output is but it is ...

2

I am using the following python script. The result required some small tweaking. #!/usr/bin/env python3 import sys import fileinput import unicode_tex excluded_chars = ['\\', '&', '$', '{', '}', '%', ' ', '_', '~', '\'', '`', '^', '*', '#'] tex_replacements = unicode_tex.unicode_to_tex_map.copy() for char in excluded_chars: tex_replacements.pop(... 2 The problem is similar to the one in Is it possible to get the package listofsymbols to recognize the \cdots command?. The figcaps package uses \immediate\write and multibyte UTF-8 characters don't survive it. Also the solution is similar \documentclass[11pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \... 0 Here is what I've finally done, based on @David 's suggestion (thanks to him), and some modifications : \newcommand{\kbarre}{K\lower.85em\llap{{\LARGE \'{}}\kern-.1em}} The result is not perfect, but sufficient for my use. A few observations : I didn't need to have it recognised as a Unicode character, and \DeclareUnicodeCharacter was making some error ... 2 If you had the current version of latex (or the one before) then it would work by default, but for older releases you can just define the needed character \DeclareUnicodeCharacter{2010}{-} 3 Ideally the default values of Unicode characters math classification woudl be specified by Unicode, just as the default classification as letter or non-letter and case changing properties are specified. Unicode has a technical report http://www.unicode.org/Public/math/revision-14/MathClassEx-14.html Which lists these it is not currently formally part of ... 0 That depends on the compiler you use (and your operating system). In XeLaTeX, for example, you can directly enter the Unicode character (or copy it from a chart) using your OS's means (e.g. combining keys under a Linux running KDE; <Alt>+<+>+[Hex-Code] in Windows if enabled). Other compilers ('standard' LaTeX) may not natively support Unicode ... 3 It should work using \r or just using m̊ \documentclass{article} \usepackage{fontspec} \setmainfont{Charis SIL} \begin{document} \r{m}abcdefgh m̊abcdefgh \end{document} (Using luatex from texlive 2016) 2 I don't have the images to test so I made a 1F466.png and 1F4661F3FF.png (your character was U+1F3FF, handling U+1F3FE would be similar) here I define the macro attached to the base character to look ahead, if it sees the first byte of a 4 byte UTF8 sequence for the range of these modifiers (which is F0) then it grabs all four bytes and then either uses ... 8 Free Serif has your desired glyph. \documentclass{article} \usepackage{fontspec} \newfontface\DejaVuSans{DejaVu Sans} \newfontface\FreeSerif{Free Serif} \def\Fhook{\mbox{\DejaVuSans\char"0191}} \def\digamma{\mbox{\DejaVuSans\char"03DD}} \def\mbfdigamma{\mbox{\FreeSerif\char"1D7CB}} \begin{document} \Fhook \digamma \mbfdigamma$\Fhook \digamma \mbfdigamma$\... 3 A bit of technique first. LyX is based on Qt, and Qt delegates the input of Unicode character to input to a component called the Input Method. This includes typing the code point directly, as stated here: https://bugreports.qt.io/browse/QTBUG-8. Thus LyX receives the Unicode character directly in interpreted form from the Input Method. In particular what ... 2 For the record: in Linux, with Lyx (or without Lyx): Alt Gr + D = ð Alt Gr + F = đ To use the unicode character in math mode you can use \text{đ} or \text{\textit{đ}} of amsmath package: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \[f(x) \mathop{\!}dx+g(y)\mathop{}\text{\textit{đ}} ... 3 Go to View > Toolbars > Command Buffer or do Alt + x (may depend on your OS, this works on Ubuntu). Go down to the bottom where a text box appeared and enter unicode-insert 0111 and then press return. LyX will take care of the rest. If you do this in plain text, LyX inserts \dj{} for you. If you do this in math, LyX inserts$\mkern3mu\mathchar'26\mkern-12mu ...

4


7

You could do this from the menus with LyX. Use: Insert > Special Characters > Symbols,... And get this pop-up window: And input your symbol that way (like Word's ALT-I, if memory serves). You then can copy/paste if you want to keep using that symbol. You can also use the "Evil Red Text" technique as noted by @AFeldman. If you use that approach, ...

0

To enter a character in LyX you can use the "Evil Red Text" (Ctrl-T)to enter a \char and the ascii number. For instance \char126 usually produces a tilde "~". You have to know what your character map produces.

7

\documentclass[a4paper]{scrbook} \usepackage{fancyvrb} \usepackage[utf8]{inputenc} \usepackage{pmboxdraw} \pmboxdrawsetup{ Block/box={\texttt{0}}, } \begin{document} \begin{verbatim} NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 32G 0 disk ├─sda1 8:1 0 99M 0 part /boot └─sda2 8:2 0 31,9G 0 part / sr0 11:0 1 55,5M 0 ...

0

Inserting % !TEX encoding = UTF-8 Unicode at the beginning of the file solved this issue for me.

Top 50 recent answers are included