Document Classes! Text line contains an invalid character. l.1 ...

Information and discussion about specific document classes and how to create your own document classes.
prince8889
Posts: 19
Joined: Mon Feb 27, 2012 11:01 pm

! Text line contains an invalid character. l.1 ...

Post by prince8889 »

I donno wat happened but suddenly this is the error whick i have after opening my latex document today. I need to work on it to complete my thesis please help me
Thanks in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: ! Text line contains an invalid character. l.1 ...

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Which operating system do you use? Do you know the character encoding of the document file? Perhaps add a sample, maybe the beginning, as attachment to a post here.

Stefan
LaTeX.org admin
prince8889
Posts: 19
Joined: Mon Feb 27, 2012 11:01 pm

! Text line contains an invalid character. l.1 ...

Post by prince8889 »

I am very new to LATEX and i just copied a template from the internet and i was working on it. So far it was fine but suddenly this error popped up..

Code: Select all

Code, edit and compile here:
% ----------------------------------------------------------------------
% LATEX TEMPLATE FOR PhD THESIS
% ----------------------------------------------------------------------
% based on Harish Bhanderi's PhD/MPhil template, then Uni Cambridge
% http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
% corrected and extended in 2007 by Jakob Suckale, then MPI-CBG PhD programme
% and made available through OpenWetWare.org - the free biology wiki
%: Style file for Latex
% Most style definitions are in the external file PhDthesisPSnPDF.
% In this template package, it can be found in ./Latex/Classes/
\documentclass[twoside,11pt]{Latex/Classes/PhDthesisPSnPDF}
%: Macro file for Latex
% Macros help you summarise frequently repeated Latex commands.
% Here, they are placed in an external file /Latex/Macros/MacroFile1.tex
% An macro that you may use frequently is the figuremacro (see introduction.tex)
\include{Latex/Macros/MacroFile1}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Is this what you asked for ???
Last edited by cgnieder on Sat Sep 22, 2012 3:40 pm, edited 1 time in total.
prince8889
Posts: 19
Joined: Mon Feb 27, 2012 11:01 pm

! Text line contains an invalid character. l.1 ...

Post by prince8889 »

I am using a windows 7 operating system

Code: Select all

Code, edit and compile here:
% ----------------------------------------------------------------------
% LATEX TEMPLATE FOR PhD THESIS
% ----------------------------------------------------------------------
% based on Harish Bhanderi's PhD/MPhil template, then Uni Cambridge
% http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
% corrected and extended in 2007 by Jakob Suckale, then MPI-CBG PhD programme
% and made available through OpenWetWare.org - the free biology wiki
%: Style file for Latex
% Most style definitions are in the external file PhDthesisPSnPDF.
% In this template package, it can be found in ./Latex/Classes/
\documentclass[twoside,11pt]{Latex/Classes/PhDthesisPSnPDF}
%: Macro file for Latex
% Macros help you summarise frequently repeated Latex commands.
% Here, they are placed in an external file /Latex/Macros/MacroFile1.tex
% An macro that you may use frequently is the figuremacro (see introduction.tex)
\include{Latex/Macros/MacroFile1}
%: ----------------------------------------------------------------------
%: TITLE PAGE: name, degree,..
% ----------------------------------------------------------------------
% below is to generate the title page with crest and author name
%if output to PDF then put the following in PDF header
\ifpdf
\pdfinfo { /Title (PhD and MPhil Thesis Classes)
/Creator (TeX)
/Producer (pdfTeX)
/Author (YourName your@email.net)
/CreationDate (D:YYYYMMDDhhmmss) %format D:YYYYMMDDhhmmss
/ModDate (D:YYYYMMDDhhmm)
/Subject (xyz)
/Keywords (add, your, keywords, here) }
\pdfcatalog { /PageMode (/UseOutlines)
/OpenAction (fitbh) }
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Last edited by Stefan Kottwitz on Tue Feb 28, 2012 12:45 am, edited 1 time in total.
prince8889
Posts: 19
Joined: Mon Feb 27, 2012 11:01 pm

Re: ! Text line contains an invalid character. l.1 ...

Post by prince8889 »

Hii..

Is this what u meant by charcter encoding.. :?:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

! Text line contains an invalid character. l.1 ...

Post by Stefan Kottwitz »

This line can be a problem:

Code: Select all

\include{Latex/Macros/MacroFile1}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Change it to

Code: Select all

\input{Latex/Macros/MacroFile1}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
In a preamble, use \input, not \include. The latter is for the document body and ends the current page, which is meaningless in a preamble.

If there's still an error, post the error message, even better: upload the .log file as attachment to a post.

Stefan
LaTeX.org admin
prince8889
Posts: 19
Joined: Mon Feb 27, 2012 11:01 pm

Re: ! Text line contains an invalid character. l.1 ...

Post by prince8889 »

Hii,

I tried it but no success yet :( I have been working with the include statement but i havent faced any problem with it so far.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: ! Text line contains an invalid character. l.1 ...

Post by Stefan Kottwitz »

Ok, perhaps we can continue if you post the .log file as attachment or at least the current error messages, as recommended. Without any such information, or your code which produces an error, I think nobody could help you.

Stefan
LaTeX.org admin
prince8889
Posts: 19
Joined: Mon Feb 27, 2012 11:01 pm

! Text line contains an invalid character. l.1 ...

Post by prince8889 »

hello ,

this is my error message

! Text line contains an invalid character.
l.1
A funny symbol that I can't read has just been input.
Continue, and I'll forget that it ever happened.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: ! Text line contains an invalid character. l.1 ...

Post by Stefan Kottwitz »

Ok, the same as before. Perhaps, if it's not confidential, you could post the original file as attachment. We cannot see the invalid character until now. Probably there's one.
Also, as mentioned, the .log file as attachment would be good, to see how you compile.

Stefan
LaTeX.org admin
Post Reply