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

Incorrect LaTeX output when using utf-8 encoding #10

GoogleCodeExporter opened this Issue Apr 18, 2015 · 1 comment


None yet
1 participant
Copy link

GoogleCodeExporter commented Apr 18, 2015

What steps will reproduce the problem?

1. Create an arbitrary (valid) txt2tags file, say test.t2t.

2. Generate tex source from this file, using the encoding 'utf-8':

> txt2tags --encoding utf-8 -ttex test.t2t

3. Compile the generated tex file using latex or pdflatex:

> pdflatex test.tex

What is the expected output? What do you see instead?

I would have expected to the file to compile without problems.
Instead, the following error is generated:

! LaTeX Error: File `utf-8.def' not found.

What version of the product are you using? On what operating system?

I have encountered this issue with the current stable version and an older
- txt2tags 2.5 on openSUSE 11.1
- txt2tags 2.3 on XUbuntu 8.10

Please provide any additional information below.

The issue can also be triggered by using the %!encoding directive instead
of the command-line option --encoding.

The cause of this issue seems to be that the 'utf-8' encoding is not
translated to its LaTeX equivalent 'utf8', which is supplied as an option
to the 'inputenc' package. So in the case of 'utf-8', txt2tags generates


while it should generate


Original issue reported on by on 20 Mar 2009 at 2:19


This comment has been minimized.

Copy link

GoogleCodeExporter commented Apr 18, 2015

Thanks for the detailed report Aad Mathijssen!

Fixed in r82.

Original comment by on 7 Apr 2009 at 9:07

  • Changed state: Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment