General ⇒ strange error : invalid character
strange error : invalid character
i have a strange error when i compil my text:
"invalid character"
but i don't understand with because i just have simple characters....
ps: you can see this on my attached item
- Attachments
-
- errorLatex.png (26.89 KiB) Viewed 5075 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: strange error : invalid character
is the 24st line empty or perhaps filled with characters that are just not displayed? You might want to attach your tex file, or better a MWE so we could reproduce your problem.
Maybe adding the inputenc package solves this problem, but thats just a wild guess.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
strange error : invalid character
This is a case where you have to cut the problem down to a minimal example. Create a copy of your document and reduce the code as long as the problem persists. This will be the example you can post here. Note that this example has to be compilable for everybody else, thus mustn't read external files.
By the way, it is better to post the exact error message or attach the complete log file instead of attaching just a picture with only poor information.
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
strange error : invalid character
thanks for your help, but it still don't works
i have tested to erase the line but i don't change nothingmaxmax wrote: is the 24st line empty or perhaps filled with characters that are just not displayed?
i can't because the content is confidential...maxmax wrote:You might want to attach your tex file, or better a MWE so we could reproduce your problem.

can you explain me, what is this ? i don't understandmaxmax wrote:Maybe adding the inputenc package solves this problem, but thats just a wild guess.
==> it's strange because when i compil on linux i haven't problemslocalghost wrote:It is very likely that the notified error is an aftereffect. The \dominitoc command collects information from other places in the document. So the actual error might be located elsewhere. And this makes locating and fixing it much more difficult.
This is a case where you have to cut the problem down to a minimal example. Create a copy of your document and reduce the code as long as the problem persists. This will be the example you can post here. Note that this example has to be compilable for everybody else, thus mustn't read external files.

i have made this latex file on linux with texmaker, when i compil it's good but when i compil on windows (with texmaker too) it's don't works...
My log file is attached.localghost wrote:By the way, it is better to post the exact error message or attach the complete log file instead of attaching just a picture with only poor information.
- Attachments
-
- rapportAnnee1.log
- (35.17 KiB) Downloaded 325 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
strange error : invalid character
Then I wonder why the log file, which is obviously produced with TeX Live 2009 on Debian, shows exactly the described error messages.21did21 wrote:[…] it's strange because when i compil on linux i haven't problems :roll:
i have made this latex file on linux with texmaker, when i compil it's good but when i compil on windows (with texmaker too) it's don't works. […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: strange error : invalid character

(my english is bad )
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
strange error : invalid character
The errors appear on your Linux system as well.21did21 wrote:i don't understand sorry […]
Then you should improve it.21did21 wrote:[…](my english is bad )
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: strange error : invalid character
thanks for your help
see you