I'm writting an article in Norwegian, and thereby I'm required to use \usepackage[utf8]{inputenc}.

This package allows my name to be spelled correctly (Øyvind). But some of my Ø's result in a math error. The result of some Ø's is here (omegas are replacements for Ø apparently)enter image description here

If I change the package to \usepackage[T1]{fontenc}, no error and no warnings are displayed (but also no scandinavian letters). However \usepackage[utf8]{inputenc} results in 10+ errors with only 20% of the letters displayed correctly.

My current test document consists of

hello Æ Ø Å\\
hello ÆØÅ

with the results: enter image description here( The two coloumns article style makes the newline appears like a hskip) The first two lines here are displaying the letters correctly, but the last is not..

Any idea why? and how to solve that?

Im using this template: PNAS Journal, article with two coloumns

tnx Ø

  • 7
    Please make your code snippet compilable! – Mensch Feb 5 '18 at 9:49
  • 1
    Please post a complete minimal example. I just tried your code snippet (where "article" is replaced by "document") and prefixed it with "\documentclass{article}" and "\usepackage[utf8]{inputenc}" and got no errors. So your problem must lie in the rest of the preamble and/or if you use pdflatex, lualatex, ... - Also, please post the actual error messages. – DCTLib Feb 5 '18 at 9:50
  • 4
    if the letters are working before you added [utf8] the file is not stored in UTF-8 (it is probably in latin-1 (iso-8859-1)) so use \usepackage[latin1]{inputenc} or save the file in UTF-8 using your editor. – David Carlisle Feb 5 '18 at 10:01
  • 1
    Please, make the minimal example complete with the preamble, from \documentclass to \end{document}. – egreg Feb 5 '18 at 11:57
  • 1
    If you're using pnastwo, you're basically doomed, because the class uses quite nonstandard methods for loading fonts. If you prefer to use blatantly wrong instead of quite nonstandard, you may be nearer to the truth. – egreg Feb 5 '18 at 16:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.