problems with Icelandic letters

32 views
Skip to first unread message

Galdratommi

unread,
Oct 28, 2013, 11:01:15 AM10/28/13
to latexus...@googlegroups.com
Hi

I was just creating a new work and I used an old premable and copied the sty files and such as well but I get the icelandic letters scrambled as can been seen in the pdf!

What am I doing wrong?

\documentclass[12pt,a4paper]{book}
\usepackage[fit]{truncate}
\usepackage{color,wrapfig,boxedminipage,caption,graphicx,tipa,mathpazo,fancyhdr,marvosym,stmaryrd,float}
\usepackage{amssymb,achicago,textcomp,pxfonts,setspace,units,array}
\usepackage[T1]{fontenc}
\usepackage[english,icelandic]{babel}
\usepackage{color}
\usepackage[colorlinks=true, linkcolor=black, citecolor=black, urlcolor=blue, plainpages=false,]{hyperref}
\DeclareCaptionType{vers}
\usepackage{makeidx}
\makeindex
%var upphaflega \setlength{\headheight}{15pt}, ég setti það í 16.
\setlength{\headheight}{16pt}
\begin{document}

\selectlanguage{icelandic}

\author {Jón Torfason}
    \title {Saga skákiðkunnar á Íslandi}

\renewcommand{\thepage}{\roman{page}}
\maketitle
\renewcommand{\thepage}{\arabic{page}}

\pagestyle{empty}

%\newpage
%\mbox{}
%\newpage
%\include{Formali}
\newpage
\tableofcontents
\newpage
\listoffigures
\pagestyle{fancy}
\fancyhf{} % --- clear all fields, sjá bls 233 - var LO
\fancyhead[R]{\truncate {.95\headwidth}{\leftmark}}
\fancyfoot[C]{\thepage}
%Document and page organisation

\newpage
\include{Skakin-JTMBL}

\newpage
\bibliographystyle{achicago}
\bibliography{C:/MinarSkjalaskrar/LatecVerk/MA-TVA}
\end{document}

best wishes
Tómas
Skakin-JT001.pdf

Peter Flynn

unread,
Oct 28, 2013, 11:29:17 AM10/28/13
to latexusersgroup
On Mon, Oct 28, 2013 at 3:01 PM, Galdratommi <galdr...@googlemail.com> wrote:
Hi

I was just creating a new work and I used an old premable and copied the sty files and such as well but I get the icelandic letters scrambled as can been seen in the pdf!

What am I doing wrong?

Can you post a MINIMAL example that shows the problem (without all the extra packages and settings)? For example, I notice that you are using the T1 fontenc but not the utf8x inputenc.

The following seems to work:

\documentclass[12pt,a4paper]{book} 
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,icelandic]{babel}
\begin{document} 
\selectlanguage{icelandic}
\author {Jón Torfason}
\title {Saga skákiðkunnar á Íslandi}
\maketitle
\end{document}

Check that your editor is correctly set to save the files in UTF-8 encoding.

///Peter
Reply all
Reply to author
Forward
0 new messages