スウェーデン語の文字 å、ä、ö を表示する

スウェーデン語の文字 å、ä、ö を表示する

次のプリアンブルを使用する必要がありますが、スウェーデン語の文字 å、ä、ö を表示できません。スウェーデン語の部分は、intro_summary.tex という別のファイルにあります。私は、エディターとして TeXShop を使用しています。これは、"\usepackage[latin1]{inputenc}" 行と関係があると思います。この行がないと、ドキュメントをコンパイルできますが、シンボルが正しく表示されないからです。

以前スウェーデン語で書いたときは、動作させるために「\usepackage[applemac]{inputenc}」を含める必要がありましたが、今回はこの特定のテンプレートを使用する必要があるため、役に立ちません。

何か案は?

\documentclass{UUThesisTemplate}

% Package to determine wether XeTeX is used
\usepackage{ifxetex}

\ifxetex
% XeTeX specific packages and settings
% Language, diacritics and hyphenation
\usepackage[babelshorthands]{polyglossia}
\setmainlanguage{english}
\setotherlanguages{swedish}
%\usepackage[applemac]{inputenc} %additional

% Font settings
\setmainfont{Times New Roman}
\setromanfont{Times New Roman}
\setsansfont{Arial}
\setmonofont{Courier New}
\else
% Plain LaTeX specific packages and settings
% Language, diacritics and hyphenation
    % Use English and Swedish languages. 

\usepackage[swedish,english]{babel} 

\usepackage{graphicx}
% Font settings
\usepackage{type1cm}


\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{mathptmx}
\usepackage{amsmath,amssymb,amsthm,amscd,dsfont,psfrag,color}

% Enable scaling of images on import

\fi 
\begin{document}
\input{intro_summary.tex}
\end{document}

関連情報