Hi Maximilian,

Text line contains an invalid character.
M^^F
An1oz:8 #^^82^^Sr6'GE^^89N^^94A^^IK^^93}: 4*^^Ye:;[EMAIL PROTECTED]
A funny symbol that I can't read has just been input.
Continue, and I'll forget that it ever happened.



I assume that you have somehow auto-magically entered illegal, invisible characters in the LyX document. Since I switched to Mac this happens all the time to me (once or twice a day), in many cases funny "^^" characters are involved. I have been thinking about reporting this as a bug, but still have not figured out exactly how it happens. I have the impression it is somehow connected to pasting text from the clipboard, though.

In most cases the LaTeX compiler (pdflatex in my case) complains about an "illegal character encoding" problem, but still compiles the document.

I usually resolve the issue as follows:

(1) Export to LaTex; compile manually to get the error message and line; look them up the .tex document to figure out where exactly the problem is.

(2) Navigate in LyX to the figured location. Activate source view to see if the invalid characters appear there as well (usually they do, but not always).

(3) Delete and retype the words around the illegal characters.

Sometimes I also use a kind of "binary search" approach to figure the location by cutting larger parts of my text, recompile (to see if the error is still present), undo (to re-insert the cutted text), and continue the process with a smaller part.

Hope that helps. If it does, keep an eye on which steps lead to this kind of problems, so we can help to figure out the exact circumstances.

Daniel



On 29.02.2008, at 09:51, Maximilian Wollner wrote:

Dear LyX-Users,


I am working on my thesis with LyX 1.5.2 to LyX 1.5.4. It might seem a bit complicated but I use XeTeX (on OS X Tiger), the Memoir Document Class (for which I have also written some hints in the LyX wiki) and BibLaTeX, so that I have made a special version of the Memoir Class, everything according to hints on the list or in the wiki.

Until yesterday, everything worked really, really fine and I was about to write the most beautiful thesis my departement has ever seen -- coming from social sciences, Word seems to be a 99% must- have ;)

But all of a sudden, LyX won't compile my document anymore and instead gives me an error message like this:

›Eine leere Ausgabedatei wurde erzeugt.‹ (which means something like ›an empty output file was made...‹)


Unfortunately, the many error messages from the compiler are not readable at all, starting with eg.

LaTeX Error: Missing \begin{document}.

      ZGD0-z%^^8dyN^^8d^^89^^PcCF^^80^^80...


Text line contains an invalid character.
M^^F
An1oz:8 #^^82^^Sr6'GE^^89N^^94A^^IK^^93}: 4*^^Ye:;[EMAIL PROTECTED]
A funny symbol that I can't read has just been input.
Continue, and I'll forget that it ever happened.


You can't use `macro parameter character #' in horizontal mode.
M^^FAn1oz:8 #
^^82^^Sr6'GE^^89N^^94A^^IK^^93}: 4*^^Ye:;[EMAIL PROTECTED]
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.


Text line contains an invalid character.
M^^FAn1oz:8 #^^82^^S
r6'GE^^89N^^94A^^IK^^93}: 4*^^Ye:;[EMAIL PROTECTED]
A funny symbol that I can't read has just been input.
Continue, and I'll forget that it ever happened.


Too many }'s.
...n1oz:8 #^^82^^Sr6'GE^^89N^^94A^^IK^^93}
: 4*^^Ye:;[EMAIL PROTECTED]@...
You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.


Text line contains an invalid character.
... #^^82^^Sr6'GE^^89N^^94A^^IK^^93}:4*^^Y
e:;[EMAIL PROTECTED]@^^@ ...
A funny symbol that I can't read has just been input.
Continue, and I'll forget that it ever happened.


Text line contains an invalid character.
[EMAIL PROTECTED]'^^81L^^N
                     3^^E^^N^^N^^96^^V^^T^^\^^Iq4^^PQ^^84`^^98z^^...
A funny symbol that I can't read has just been input.
Continue, and I'll forget that it ever happened.


Misplaced alignment tab character &.
...^^9cn^^99^^92^^916]x^^8d^^Q&
                                                 ^^85^^QrZ^^98...
I can't figure out why you would want to use a tab mark
here. If you just want an ampersand, the remedy is
simple: Just type `I\&' now. But if some right brace
up above has ended a previous alignment prematurely,
you're probably due for more error messages, and you
might try typing `S' now just to see what is salvageable.


LaTeX Error: Missing \begin{document}.
[EMAIL PROTECTED]@^^A
                      [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]



And so on. The error messages are everytime the same ones. Now what happened? No changes have been made on my TeX-Setup since the last succesful run. Nothing on the file itself has been changed except that I once accidently clicked on Document -> compressed (komprimiert) when opening the document settings dialogue. To be sure that it had nothing to do with that, I started a new file and copied everything bit by bit but I still get the same error messages... also my preamble does not include anything too special:

[EMAIL PROTECTED]
\usepackage{fontspec}%
\setromanfont[Mapping=tex-text]{Hoefler Text} %
\setsansfont[Mapping=tex-text]{Gill Sans} %
\setmonofont[Mapping=tex-text]{Courier New} %
} %
\usepackage{xunicode}
\usepackage{xltxtra}

\widowpenalty=10000
\clubpenalty=10000

\usepackage[natbib=true,style=verbose-inote,indexing=cite]{biblatex}
\bibliography{/Users/Maksi/Studium/Politikwissenschaft/Diplomarbeit/ TeX/politischer_islam}


Also, the problem does not seem to be related to XeTeX as I get exactly the same error messages when trying to compile the usual way, using pdflatex or post-script. And then, strange enough, a backup of a about a week ago that I tried wouldn't compile either... and it definitely has so far... The error occured in LyX 1.5.3 the first time and also occurs in LyX 1.5.4 so it has nothing to do with the update. Trying to compile the document in TeXShop gives me the same errors, again in XeLaTeX as well as in LaTeX. Funny enough, LyX won't compile any test document any more, not even if I export it to LaTeX and run it through TeXShop like this:

%% LyX 1.5.4 created this file. For more info, see http://www.lyx.org/ .
%% Do not edit unless you really know what you are doing.
\documentclass[a4paper,twoside,naustrian]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{setspace}
\onehalfspacing

\makeatletter
\usepackage{babel}
\makeatother

\begin{document}
Test.
\end{document}



Any suggestions? Many thanks for your help!

Kind regards,


Max
________________________________________________________
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html for details.


Reply via email to