Text FormattingUmlauts and accents with LaTeX, such as Gömböc

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
asingh88
Posts: 1
Joined: Sat Jan 23, 2010 6:31 pm

Umlauts and accents with LaTeX, such as Gömböc

Post by asingh88 »

Ive got an essay to do on Gömböc but i cant seem to get the word Gömböc to appear in this way on Latex,ive tried copying and pasting this word into Latex but all that seems to happen is that it appears like Gomboc without the accents,do i need to install any packages to get these symbols to be inserted

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Umlauts and accents with LaTeX, such as Gömböc

Post by gmedina »

Of course, use the right input encoding (see the inputenc package) to be able to directly input umlauts. Another option:

Code: Select all

\documentclass{article}

\begin{document}

G\"omb\"oc

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Umlauts and accents with LaTeX, such as Gömböc

Post by localghost »

I think in this case you first should clarify in which language you are writing. I as a German can of course very simple produce such umlauts like »ö«. But obviously you are also able to type them as your post shows. According to the Wikipedia article you are allowed to simplify that term to »Gomboc« [1]. If you don't want to do that, you can use the usual commands to produce accents. In case of upcoming problems, feel free to ask.

[1] Gömböc - Wikipedia, the free encyclopedia


Best regards and welcome to the board
Thorsten
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Umlauts and accents with LaTeX, such as Gömböc

Post by phi »

You must declare the encoding used by your file if you want to use non-ASCII characters. Furthermore you should use a T1-encoded font to allow hyphenation inside of words with non-ASCII characters. Here is an example that uses the UTF8 encoding (other encodings like Latin-1 are also possible):

Code: Select all

\documentclass{minimal}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}

Gömböc

\end{document}
Post Reply