question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

foreign letters causing error during compilation

See original GitHub issue

Hi, While playing with manim I wanted to write text (in polish) and noticed that using letters “ą/ę” (right alt + a/e) causes error during compilation. Please check when using example_scenes/basic.py and if you change WriteStuff so that letter “ą” is in variable named example_text, compiling it throws an error Exception: LaTeX error converting to dvi. See log output above or the log file: media/Tex/7e3c37ceb1ce05b9.log. I have noticed that in the corresponding .tex file there is no \usepackage[T1]{fontenc}.

Same problem shows when trying to compile .tex with texmaker but after adding “\usepackage[T1]{fontenc}” to .tex file in texmaker it compiles succesfully. Can you tell manim to add “\usepackage[T1]{fontenc}” to every .tex file that it generates? I think it should solve the problem.

Additional problem is that letter “ł” and “Ł” are not animated properly but I think after solving problem above it may also be solved.

Thank you very much and regards

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
PhilippImhofcommented, Aug 6, 2020

Yes of course. I will do so as soon as I get back from my short trip.

2reactions
mz71commented, Aug 5, 2020

The way to work out this (at least for me) was to

  • include inputenc
  • include [polish]{babel}
  • for above to work, you need to delete \usepackage[english]{babel}. I’ve used
tpl = TexTemplate()
tpl.CONFIG["common_packages"].remove(["babel",["english"]])

in order to not change the default template. It can probably be done way easier - but still, “Zażółć gęślą jaźń” rendered just fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors using special characters in Access databases - Office
Lists the special characters to avoid using when you work with the database object names or the field names in all versions of...
Read more >
Understanding and fixing compiler and linker errors
Errors are conditions that prevent the compiler from completing the compilation of your files. Compiler errors are restricted to single source code files...
Read more >
c++ - What is an undefined reference/unresolved external ...
So, as a result - an "undefined reference/unresolved external symbol error" happens when the linker cannot find global symbols in the object files....
Read more >
The "Cannot find symbol" Compilation Error
Review what compilation errors are, and then specifically explain what the "cannot find symbol" error is and how it's caused.
Read more >
On Compiler Error Messages: What They Say and What ...
Programmers often encounter cryptic compiler error messages that are difficult to understand and thus difficult to resolve.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found