General[dvilatex] finished with exit code 1

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
gedankenpause
Posts: 4
Joined: Sat Jul 18, 2009 8:34 pm

[dvilatex] finished with exit code 1

Post by gedankenpause »

Hello everybody,

I am having a problem that bothers me now for six days. I did not find a solution anywhere and have absolutely no idea what is going on with my work.

I am working with Kile and have a project with several chapters. If I insert an additional line in a certain chapter the txt-file cannot be compiled and I get error messages about missing or bad math delimiters. When I use % in front of that line and insert another line the same error messages appear. This happens with every additional line I insert. No matter if it contains only text or equations in \( \) or \[ \] or align environment.

Since the error messages are always referring to the chapter I did put everything together into one file. I cannot find any missing delimiters and however the error messages do not appear, when I process the subdocument only.

I would be really thankful to anybody who has an idea about what it could be that I did wrong... It is not about fonts. I replaced all ä with ae and all ß with \ss. I am using the package amsmath and therefore the use of \( and \[ instead of $ or $$ is valid, also the use of align instead of eqnarray.

Thanks for every advice :)

I would post an example but I don't have any idea what I could post here except the output or the error messages and I don't know if this is of any help.

Gedankenpause

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

[dvilatex] finished with exit code 1

Post by localghost »

gedankenpause wrote:[…] I would post an example but I don't have any idea what I could post here except the output or the error messages and I don't know if this is of any help. […]
Start with providing the log file by attaching it to your next post. It surely contains information about the message of Kile. By building a minimal working example (MWE) you might be able to detect the error on your own.


Best regards and welcome to the board
Thorsten
gedankenpause
Posts: 4
Joined: Sat Jul 18, 2009 8:34 pm

Re: [dvilatex] finished with exit code 1

Post by gedankenpause »

Thomas,

Thank you :) I am really getting desperate... I don't know what a MWE in my case would be... So I give one working example with an line made invisible by % then everybody might try playing around with %-ing different lines and see that it is independent from the content of the line... Here comes my MWE but the file is big and I feel sorry for letting anybody read/check that much. It is working the way it is right now. Making any other line visible by removing % will make it not work anymore. No matter which line it is... Thanks for helping.


edit: Since it is part of my work which I for several reasons - mostly because it is just brainstorming and nothing anyone should read :) - I deleted the tex file and the log file also since it would refer to something that doesn't exist anymore :)
Hope that was ok...
Last edited by gedankenpause on Sat Jul 18, 2009 11:04 pm, edited 2 times in total.
gedankenpause
Posts: 4
Joined: Sat Jul 18, 2009 8:34 pm

Re: [dvilatex] finished with exit code 1

Post by gedankenpause »

Ok, I guess I finally after reading Fehlersuche.aux I found that the problem seems to be using \( \) in Chapter{...} environment. If I replace \( with $ it works.
Still strange, since I use the amsmath-package but it works now.

So there is no need in doing it all by yourself. But I still would be interested in why \( does not work in \chapter{...} or \section{...}. So if anyone knows :) please tell me :)

Gedankenpause
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

[dvilatex] finished with exit code 1

Post by localghost »

gedankenpause wrote:Thomas, […]
I can't see anybody with this name here. I wonder that you managed to attach the log file but not the source file.
gedankenpause wrote:[…] But I still would be interested in why \( does not work in \chapter{...} or \section{...}. So if anyone knows, please tell me […]
The result of my investigation is the same as yours. The reason for this behaviour is that \(\) is fragile and $$ is robust. Since the argument of the \chapter command is a moving one (it moves into the ToC and the header, respectively), fragile commands have to be introduced by \protect when used at such a place [1]. That's what it's all about.

[1] Help On LaTeX fragile commands
gedankenpause
Posts: 4
Joined: Sat Jul 18, 2009 8:34 pm

[dvilatex] finished with exit code 1

Post by gedankenpause »

localghost wrote:I can't see anybody with this name here. I wonder that you managed to attach the log file but not the source file.
Thorsten, I am sorry. I was really confused, looking for the error for now 6 days and I didn't do anything else in the mean time. I even thought the reason was that I did use VNC to log into my system...

I will read about fragile environments (?) and what moving command means. I lost some time, but now I at least know what went wrong... Thank you! :)

Anja
Post Reply