# Tag Info

4

The main point here is that the input file is not LaTeX but a mixture of LaTeX and plain TeX or rather TeX primitives that are not supported in LaTeX files (ok they appear inside packages and inside the kernel, but using them means one has to understand the (sometimes not properly documented limitations and the conventions to get around them). So TeX is ...

22

How does LaTeX implement UTF-8? The Unicode character é is encoded as two byte in UTF-8, precisely <C3><A9> (I'll use throughout this to denote bytes, also when they are character tokens for TeX). When \usepackage[utf8]{inputenc} is loaded, the byte <C3> is made active and defined to look for the following byte, because <C3> in UTF-8 ...

5

In chapter one, you have inserted some strange characters. Don't know, where you got them from. They look like an other font in my TeXnicCenter. Just delete it (like the ù in più in my MWE) and type it again. Maybe some copy/paste issue. %!TEX encoding = UTF-8 Unicode % [12pt] è la dimensione del testo \documentclass{report} \usepackage[T1]{fontenc} ...

6

rather than worry about utf-8 it's probably best to let inputenc worry about that and expand all characters to LICR (latex internal form) then you would also be able to support [latin1] or anything else. I also changed \if it \ifx as \if looked wrong (although I don't really know what the code is doing:-) \documentclass{article} ...

3

If you can not save the files in UTF8 just tell LaTeX what encoding they are in, most likely latin1 (ISO-8859-1) so: {\inputencoding{latin1}\input{file.tex}}

5

You have to teach LaTeX how to switch to Greek and also to IPA. Moreover, the translation of Unicode to IPA is not complete and, in particular ɾ (U+027E LATIN SMALL LETTER R WITH FISHHOOK) is not available by default. Using Greek is solved by loading the greek module for babel; support for IPA with the tipa package; the missing translation can be added with ...

4

File > Save As... > Choose your encoding: The file encoding will be displayed in the bottom status bar.

12


8

With \usepackage[utf8]{inputenc} characters with the high bit set are made active and verbatim environments don't change this. You can do it yourself: I called this file hernan.tex, so the output file will be hernan.out: \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage{fancyvrb} ...

0

I've managed to achieve greek hand-written fonts in the title. Unfortunately I cannot avoid XeLaTeX, so I am just changing locally the font style, in the RecipeName entry while having set a main font for the entire document(kerkis, that is). The code is \documentclass{article} \usepackage{fontspec} \setmainfont{Kerkis} \newfontfamily\kiki{Aka-AcidGR-Kiki} ...

1

The answer (I found) is pretty simple. knitr/R will pass to TeX special characters if correctly escaped (backslashed). It is also probably necessary to use double-quotes " " instead of single quotes ' ' \documentclass{article} \usepackage{subfig} \begin{document} <<fig-sub, fig.cap="Three \\textit{plots}", fig.subcap=c("Erd\\H{o}s-R\\'enyi", ...

Top 50 recent answers are included