Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add \usepackage[utf8]{inputenc} to template? #24

Open
bernhard-thiele opened this issue Apr 16, 2021 · 4 comments
Open

Add \usepackage[utf8]{inputenc} to template? #24

bernhard-thiele opened this issue Apr 16, 2021 · 4 comments

Comments

@bernhard-thiele
Copy link
Contributor

For building the example-paper on Ubuntu 18.04.5 LTS I need to add the line \usepackage[utf8]{inputenc}.
Not sure if this is due to possible "outdated" packages, but I need to do something like

\documentclass{modelica}
\usepackage[utf8]{inputenc}
\addbibresource{example-paper.bib}

Should we change the template?

@sjoelund
Copy link
Member

Which unicode character did you have problem with? Greek and most western languages work by default as UTF-8 for me. Only Chinese text is a problem (but utf8 inputenc does not resolve that issue).
I am on texlive from Ubuntu 20.04.

@bernhard-thiele
Copy link
Contributor Author

The error seems to be due to biber. If I build the example latex file I get the following error:

------------
Run number 1 of rule 'biber example-paper'
------------
------------
Running 'biber  "example-paper"'
------------
INFO - This is Biber 2.9
INFO - Logfile is 'example-paper.blg'
INFO - Reading 'example-paper.bcf'
INFO - Found 14 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'example-paper.bib' for section 0
ERROR - Data file 'example-paper.bib' cannot be read in encoding 'ascii': ascii "\xC3" does not map to Unicode at /usr/share/perl5/File/Slurper.pm line 59.

INFO - ERRORS: 1
Biber error: [78] Utils.pm:185> ERROR - Data file 'example-paper.bib' cannot be read in encoding 'ascii': ascii "\xC3" does not map to Unicode at /usr/share/perl5/File/Slurper.pm line 59.
Latexmk: Found biber source file(s) [example-paper.bcf]
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  biber example-paper: Biber errors: See file 'example-paper.blg'
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs of latex/pdflatex.
Makefile:8: recipe for target 'example-paper.pdf' failed
make: *** [example-paper.pdf] Error 12

If I use \usepackage[utf8]{inputenc} or \usepackage[utf8]{luainputenc} the problem is gone.

@sjoelund
Copy link
Member

That's odd. I was pretty sure that I checked different older texlive versions in docker. I guess it should be added to the example-paper.tex and not the modelica.cls though (since inputenc stuff are things you often have to deal with as the user). Or do you think it belongs in the class?

@bernhard-thiele
Copy link
Contributor Author

I also think it should be in the example-paper.tex rather than in the class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants