Tag Info

Hot answers tagged unicode

8

You have to use a font that has the glyph, for instance STIX. For just a few characters, the simplest way is to use newunicodechar: \documentclass{scrartcl} \usepackage{fontspec,newunicodechar} \setmainfont{Times New Roman} \newfontfamily\stix[Ligatures=TeX]{STIX} \newunicodechar{𝕸}{{\stix𝕸}} \begin{document} 𝕸 which is U+1D578 MATHEMATICAL BOLD ...

6

As JosephWright explained, you can perfectly well use both inputenc and fontenc: \documentclass[11pt]{article} \usepackage[T1]{fontenc}% generally best to load this before loading the font \usepackage{tgpagella}% alternative to MinionPro \usepackage[utf8]{inputenc} \begin{document} The pound sign one way : \pounds, or another \textsterling \end{document} ...

5

The code in my answer to TeX accents do not seem to work with fontspec and xe/lua/latex gives the idea, but for the dot above some additional code is needed. \documentclass[a4paper,12pt]{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \setmainfont{Minion Pro} % a font without Latin Ext. Additional \usepackage{newunicodechar} ...

4

If you compile this with XeLaTeX or LuaLaTeX, provided the TeX distribution is sufficiently up-to-date: \documentclass{article} \usepackage[georgian]{babel} \usepackage{fontspec} \setmainfont[ Extension=.ttf, UprightFont={*}, BoldFont={*-Bold}, ItalicFont={*-Italic}, BoldItalicFont={*-BoldItalic}, ]{DejaVuSerif} \title{Poem} \author{Somebody} ...

4

Not a lot goes wrong if you use text fonts for alphabetic symbols. This is just using the default latin modern setup which only seems to have theta (U+0398) not the theta symbol (U+03F4) in sans, other font sets may have both) \documentclass{article} \usepackage{fontspec} \usepackage{mathtools} \usepackage{unicode-math} \begin{document} aaa [Θ] [ϴ] ...

4

Don't ignore latex warnings:-) \documentclass[11pt]{article} \usepackage[OT1]{fontenc}% generally best to load this before loading the font \usepackage{tgpagella}% alternative to MinionPro \usepackage[utf8]{inputenc} \begin{document} The pound sign one way : \pounds, or another \textsterling \end{document} Produces LaTeX Font Warning: Font shape ...

3

\usepackage[utf8]{inputenc} or \usepackage[utf8x]{inputenc} are needed for TeX engines that do not support UTF-8. Then TeX sees the two bytes C2 and AD and utf8.def or utf8x.def make C2 active to catch AD to print the symbol or execute \- or whatever. In XeTeX, the bytes C2 AD become the "big" character AD. "Big" character means that character with ...

3

I wouldn't recommend using utf8x; with the package option utf8x to either inputenc or inputenx, but it works also with XeLaTeX and LuaLaTeX, you can use newunicodechar: \documentclass{article} %%% Optional part if you want to use multiple engines \usepackage{ifxetex,ifluatex} \newif\ifxetexorluatex \ifx\ifxetex\ifluatex % see ...

1

Sometimes you might want to use an actual no-break space. So turning them into normal spaces altogether might not be the best idea. In that case Adityas solution is a good start. But I don’t like my indentation displayed as ^I. The following colours the no-break spaces in gvim: hi NoBreakSpace guibg=LightGoldenrod1 guifg=black syn match NoBreakSpace / / ...

1

You can also do the following: Go into Command mode in vim by hitting ESC, so what you enter appears in a special command-line at the bottom of the screen. Search: Enter / directly followed by what you want to search for and hit enter to search in forward direction. To search in backwards direction, use ? instead of /. To repeat the search in forward ...

1

If you wish to have a character added to character code standards, contact the Unicode Consortium. Adding MATHEMATICAL SANS-SERIF CAPITAL THETA might be realistic, especially if you cite ISO 80000-1, but it would take time and effort. And it’s not really needed in order to get the symbol in your documents, in TeX or otherwise. You can simply use the normal ...

Only top voted, non community-wiki answers of a minimum length are eligible