Text FormattingSpecial character »ø«

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
helllo
Posts: 44
Joined: Sat Jun 05, 2010 5:20 pm

Special character »ø«

Post by helllo »

Hi everyone :)
I hope I'm posting this in the right place on the forum (sorry admin if I'm not).
So quick question :
I'm trying to type this "special" o : ø in latex, but it doesn't work. When I pdflatex it, nothing appears. Any idea to how to fix this :geek: ?

thanks !
Last edited by helllo on Mon Aug 09, 2010 5:58 pm, edited 1 time in total.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Special character »ø«

Post by localghost »

»Doesn't work« is quite on top of my list of most hated phrases. Explain in detail how you try to typeset it and what does not work. If you don't input it as »ø« directly, there is also the possibility to use a command.

Code: Select all

\o
The inputenc package should help for direct input.


Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Special character »ø«

Post by Stefan Kottwitz »

Hi,

I recommend to use fontenc with T1 encoding and inputenc. This works for me:

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
ø
\end{document}
On Windows you might have to replace utf8 by latin1, just try.

Stefan
LaTeX.org admin
helllo
Posts: 44
Joined: Sat Jun 05, 2010 5:20 pm

Special character »ø«

Post by helllo »

Hi guys,
thanks for the replies.
When I said "It doesn't work" I explained that nothing appeared. All I did was to type ø. (I didn't know that I needed something special, for it to work).
I tried \o and it worked! I'm putting it in a maths mode, I don't know if it's the way it's supposed to work, but for example if I want to write "wørk", I'll type w$\o$rk.

I also tried this :

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
ø
\end{document}
but it didn't work.

well, problem solved then.
Thanks again. :)
Last edited by helllo on Mon Aug 09, 2010 6:07 pm, edited 1 time in total.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Special character »ø«

Post by localghost »

Useful hints mostly can be found in the log file if »nothing appears«. So, you may attach the according log of Stefan's example to your next post. Or try the lmodern font package and see what happens.
Post Reply