Fonts & Character SetsLaTeX Error: Unicode character ́ (U+0301) not set up for use with LaTeX.

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
bgreen
Posts: 38
Joined: Wed Nov 22, 2023 11:02 am

LaTeX Error: Unicode character ́ (U+0301) not set up for use with LaTeX.

Post by bgreen »

When the file is saved, besides the pdf I can see an AUX, txt, OUT and a GZ file and a (la)TeX document file. A search of my harddrive didn't reveal any /.lof files associated with LaTex programs.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

bgreen
Posts: 38
Joined: Wed Nov 22, 2023 11:02 am

LaTeX Error: Unicode character ́ (U+0301) not set up for use with LaTeX.

Post by bgreen »

Hello Stefan,

Removing this code below and the file runs. I tried running the file without the photos and with just the text, and I still get the error, so it is not because I included this in the caption.

Thanks again.

Bob

Code: Select all

Code, edit and compile here:
\begin{figure}[htb]
\centering
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{LE_1.jpg}
\caption{}
\end{subfigure}
\hfill
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{LE_3.jpg}
\caption{ }
\end{subfigure}
\caption{ Photos from the workshop - txampero mold. Echegaray Eizaguirre, Lázaro, and Mikel Troitiño Berasategi. 2007.
What the waves brought in: a history of surfing in Zarautz. Zarautz:
Ayuntamiento de Zarautz, Departamento de Cultura.}
\end{figure}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Attachments
LE_3.JPG
LE_3.JPG (14.53 KiB) Viewed 29308 times
LE_1.jpg
LE_1.jpg (8.34 KiB) Viewed 29308 times
bgreen
Posts: 38
Joined: Wed Nov 22, 2023 11:02 am

LaTeX Error: Unicode character ́ (U+0301) not set up for use with LaTeX.

Post by bgreen »

Hopefully with photos, an executable example.

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage[a4paper, total={7in, 10in}]{geometry}
\usepackage{graphicx}
\usepackage[english] {babel}
\usepackage{blindtext}
\usepackage[section]{placeins}
\usepackage{subcaption}
\usepackage[colorlinks]{hyperref}
\pagestyle {empty}
\usepackage[labelformat=empty]{caption}
\usepackage {wrapfig}
\usepackage{microtype}
\usepackage{parskip}
\usepackage{geometry}
\titleformat*{\section}{\fontsize{12}{14}\selectfont}
\graphicspath{ {D:/a_surf/BB/Linazasoro} }
\usepackage{enotez}
\let\footnote=\endnote
\begin{document}
\hspace{\parindent}
\pagecolor{yellow!30}
\begin{figure}[htb]
\centering
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{LE_1.jpg}
\caption{}
\end{subfigure}
\hfill
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{LE_3.jpg}
\caption{ }
\end{subfigure}
\caption{ Photos from the workshop - txampero mold. Echegaray Eizaguirre, Lázaro, and Mikel Troitiño Berasategi. 2007.
What the waves brought in: a history of surfing in Zarautz. Zarautz:
Ayuntamiento de Zarautz, Departamento de Cultura.}
\end{figure}
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Attachments
LE_3.JPG
LE_3.JPG (14.53 KiB) Viewed 29307 times
LE_1.jpg
LE_1.jpg (8.34 KiB) Viewed 29307 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10326
Joined: Mon Mar 10, 2008 9:44 pm

LaTeX Error: Unicode character ́ (U+0301) not set up for use with LaTeX.

Post by Stefan Kottwitz »

The last example compiles here without a problem. Not sure what happens on your computer.

Possible options - Add utf8 input encoding even though it's supported in modern LaTeX by default:

Code: Select all

\usepackage[utf8]{inputenc}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Specify T1 font encoding to support accented characters in the output:

Code: Select all

\usepackage[T1]{fontenc}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
In case the font looks bad (the default font doesn't support T1 encoding) then load the Latin Modern font:

Code: Select all

\usepackage{lmodern}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
If that doesn't help, try to compile with LuaLaTeX instead (and/or XeLaTeX).

Stefan
LaTeX.org admin
bgreen
Posts: 38
Joined: Wed Nov 22, 2023 11:02 am

LaTeX Error: Unicode character ́ (U+0301) not set up for use with LaTeX.

Post by bgreen »

Thanks Stefan.

I added in the packages, 1 by 1

Code: Select all

Code, edit and compile here:
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
the error remained, in both Texmaker and Texlive.

I then tried compiling with LuaLaTeX and XeLaTeX. The file compiled without error but the characters don't appear in the captions (e.g. Troitiño ) or Notes section, but curiously the ñ character appears in the title as it should (e.g. Egaña).
Similarly, á ( e.g Lázaro) appears correctly in the introduction but not in a caption or notes.


When the file compiled for you, can you check if the characters appear in the last two figures and notes section?

You should see them correctly in the first six lines.

Thanks again

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage[a4paper, total={7in, 10in}]{geometry}
\usepackage{graphicx}
\usepackage[english] {babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{blindtext}
\usepackage[section]{placeins}
\usepackage{subcaption}
\usepackage[colorlinks]{hyperref}
\pagestyle {empty}
\usepackage[labelformat=empty]{caption}
\usepackage {wrapfig}
\usepackage{microtype}
\usepackage{parskip}
\usepackage{geometry}
\titleformat*{\section}{\fontsize{12}{14}\selectfont}
\graphicspath{ {D:/a_surf/BB/Linazasoro} }
\usepackage{enotez}
\let\footnote=\endnote
\begin{document}
\hspace{\parindent}
\pagecolor{yellow!30}
{\centering
A Paipo Interview in Two Languages - Marcelo Linazasoro Egaña
\hrulefill
The story of Marcelo Linazasoro Egaña and the txampero
\hrulefill
A Paipo Interview with Aitor Linaszoro about Marcelo Linazasoro Egaña
January 26, 2012 and March 27, 2013. Zarautz, Spain
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Attachments
LE_3.JPG
LE_3.JPG (14.53 KiB) Viewed 29210 times
LE_1.jpg
LE_1.jpg (8.34 KiB) Viewed 29210 times
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

LaTeX Error: Unicode character ́ (U+0301) not set up for use with LaTeX.

Post by rais »

Hi Bob,

sounds to me like your editor puts U+0061 and U+0301 (`a', followed by the `combining acute accent') into the .tex file, but when copying it here, the sequence gets translated into U+00E1 (á).
You could (dis)prove this theory of mine by typing (not copying!)

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage[english]{babel}
\begin{document}
Lázaro
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Assuming the same issue (U+0301 not set up...), zip the .tex file you created, then attach said zip here.
(`zip' is short for `archive it some way' in this case, but please let us know which way you used)

KR
Rainer
bgreen
Posts: 38
Joined: Wed Nov 22, 2023 11:02 am

LaTeX Error: Unicode character ́ (U+0301) not set up for use with LaTeX.

Post by bgreen »

Hello Rainer,

Thanks for your reply.

I'm not sure I completely understood your test. I typed your text, but had to copy from MS WORD the á because I didn't know how to directly type this into Texmaker. If this is ok, Lázaro displays correctly.

I have attached a zio file that contains the tex file + 4 images that are called from the text file.


Bob
Attachments
Linazasoro.zip
(38.9 KiB) Downloaded 889 times
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

LaTeX Error: Unicode character ́ (U+0301) not set up for use with LaTeX.

Post by rais »

Hi Bob,
sorry, I meant `input the same way as you did before that led to the error', but your zip helped already (if a bit long):
The working instances of á are coded as c3 a1 (single á glyph), the non-working ones as 61 cc 81 (a followed by U+0301), so you've got two different kinds of encoding (I guess the working ones are from you copying back the code posted earlier).
Though you could make U+0301 known to LaTeX, even make it active to put an acute accent on some character, I wouldn't go that road here: LaTeX expects an accent to precede the character it's supposed to be put on, but U+0301 comes after it.

You could try to search for á (copy it from a non-working string) and replace all instances of it with a working á---or ask Stefan, how the input stream gets converted when posted here :)

With ñ you've got a similar problem: the non-working instances are coded as 6e cc 83 (n followed by U+0303, combing tilde accent).

KR
Rainer
User avatar
Stefan Kottwitz
Site Admin
Posts: 10326
Joined: Mon Mar 10, 2008 9:44 pm

LaTeX Error: Unicode character ́ (U+0301) not set up for use with LaTeX.

Post by Stefan Kottwitz »

Hi Bob,

I think the only good way is to identify and to replace the bad characters by correctly typing or using a virtual keyboard or stuff like googling it and copy&paste the found Unicode character to your document. It's probably just a few characters, but repeated.

Here's how you can identify them. Add such lines to your preamble, use any dummy text that you can easy see:

Code: Select all

\DeclareUnicodeCharacter{0301}{******1******}
\DeclareUnicodeCharacter{0303}{******2******}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Then compile, in the PDF you will find those places:
characters.png
characters.png (110.56 KiB) Viewed 29141 times
Stefan
LaTeX.org admin
bgreen
Posts: 38
Joined: Wed Nov 22, 2023 11:02 am

LaTeX Error: Unicode character ́ (U+0301) not set up for use with LaTeX.

Post by bgreen »

Many thanks Rainer and Stefan,

This has identified the problem and also provided a fix, for this problem and likely others I'll come across.

Bob
Post Reply