GeneralCompilation Error

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
lnsam22
Posts: 28
Joined: Thu Jan 13, 2011 6:47 pm

Compilation Error

Post by lnsam22 »

Hi all,

I'm trying to build my project file. However it does not notice the changes I make to the individual input files I have included in the project file. I have gone so far as to comment out the \begin{document} line in the project file itself just to see if it's reading the file at all. And it isn't! No errors. And then it gives me the same DVI file it showed me before the build.

I've checked to make sure it's building the correct file, and it is. I don't know what the problem could be. Any ideas?


thanks,
lnsam22

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: Compilation Error

Post by cgnieder »

How are you compiling your document? Have you tried compiling it from the command line?

Regards
site moderator & package author
lnsam22
Posts: 28
Joined: Thu Jan 13, 2011 6:47 pm

Re: Compilation Error

Post by lnsam22 »

Nope. Thus far I've simply been either hitting the "F7" button or clicking on Build->Build file.
I'm using windows 7 and not accustomed to using shells here. Unless you're talking about something else. :?
I don't understand why that would change anything though....

lnsam22
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Compilation Error

Post by cgnieder »

Also in windows you can open the command line, go to the directory the document (let's call it file.tex) is in and call

Code: Select all

pdflatex file.tex
This way you make sure the file is used. Then you will get an error if \begin{document} is missing.

I can only imagine that you're using an editor (you haven't told which one and there are quite a few) that's supposed to call LaTeX when you click on a button and that this somehow fails.

Regards
site moderator & package author
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Compilation Error

Post by sommerfee »

lnsam22 wrote:No errors. And then it gives me the same DVI file it showed me before the build.
This sounds to me like the known TeXnicCenter/MikTeX "GUI framework cannot be initialized" issue.

Workaround: Either change the package installation method of MikTeX from "Ask me first" to "Yes" or use a different (La)TeX editor than TeXnicCenter.
lnsam22
Posts: 28
Joined: Thu Jan 13, 2011 6:47 pm

Re: Compilation Error

Post by lnsam22 »

Hi guys,

First, sorry for not saying which editor I was using. Sommerfee, you're right: it's TexnicCenter.
So I was unsure where to find the "ask me first" without completely re-installing MikteX so I uninstalled, and reinstalled both. I changed the define profiles setting to ensure that there was no MakeIndex or BibteX (I saw that I should do this on an installation guide online somewhere). So now it's working for the .dvi file. It's reading my changes, blahblah. But the same cannot be said for the .pdf file. I tried changing the output profiles the same as for the .dvi, but there is no .pdf output file being produced.

Any ideas? I hope I'm clear enough.

..and yes, I changed from "ask me first" to "yes".

thanks for the help! :)
lnsam22
Posts: 28
Joined: Thu Jan 13, 2011 6:47 pm

Re: Compilation Error

Post by lnsam22 »

Ok,

here's where I've gotten. I used cgnieder's suggestion and ran the program from the command line. So now it works. I can build and view output in pdf from the command line.....but not from the gui interface. :? A window shows up that says:

[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
Cannot execute the command

..my file is not named bm.pdf. As a matter of fact I've been using one of the default projects to test on.
So, why? I mean, i guess in a sense my problem is solved. But it's a bit inconvenient.

Oh, and thanks for the help. :) It was appreciated.

lnsam22
Post Reply