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 »

Hallo ,
Here is the .tex file. This is the main page and many chapters are called by this main document.

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)
\input{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 3:15 pm, edited 1 time in total.

Recommended reading 2024:

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

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

flodo
Posts: 1
Joined: Sat Sep 22, 2012 3:25 pm

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

Post by flodo »

hey! i know this is an old one, but i had the same problem
just a few minutes before and solved it by deleting all the
automatic generated files like .aux .log ... in the directory ;)

(i found this threat via google, so i expect that others will follow :))
tinash
Posts: 1
Joined: Fri Jan 18, 2013 8:05 pm

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

Post by tinash »

Hello

I have the same error message this is my full latex file. I removed one chapter from it.
Attachments
latex.rar
(13.12 KiB) Downloaded 380 times
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

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

Post by sommerfee »

prince8889 wrote:! Text line contains an invalid character.
l.1
"l.1" means that the troublesome character is in line 1. This could be a character your editor is not showing, e.g. a BOM. If this may be the case try to find the setting in your editor which suppress writing a BOM at the beginning of the text file.
Post Reply