LaTeX output does not update
Asked Answered
C

4

7

I have just begun using LaTeX. I am working in Windows and am using TeXnicCenter as my editor. When I build and output, having the following code:

\documentclass{article}

\begin{document}

This is a test document

\end{document}

I do get a document that has the words "This is a test document". If I change the sentence in the above code to "This is a test", and build and output - the change gets reflected.

However, say after doing the above, I change the code to this:

\documentclass{article}

\usepackage[table]{xcolor}

\begin{document}

Hello World!

\end{document}

Now if I build and output, I don't get "Hello World!" in the output, I get the last thing I had before making this change ("This is a test"). Is this a bug in TeXnicCenter or LaTeX or am I missing something here? Thanks for your answers.

Edit:

I also see this line in the new output log: '("C:...\size10.clo") latex.exe: GUI framework cannot be initialized' and in the end of the log LaTeX results says "0 Page(s)" (were generated I guess?)

Cockoftherock answered 13/11, 2009 at 14:43 Comment(5)
Can you look at the log? Are there any errors?Postliminy
I don't think, it is a latex bug. Probably it has to do with TeXnicCenter. Try removing usepackage, then try to build it.Intermission
@jleedev: I compared the log before and after the addition of the usepackage - this is what changes: in the LaTeX-Result line, "0 Page(s)" is shown instead of "1 Page(s)" and I see the line '("C:\...\size10.clo") latex.exe: GUI framework cannot be initialized - this seems to have passed before.Cockoftherock
@bhups: If I remove the usepackage it works, but my question is why does it not work when I have the usepackageCockoftherock
This error still mystifies me... I mean, it's not like there's a DISPLAY environment variable to unset or anything, so how does TeXnicCenter cause this error in the first place?Confraternity
F
5

Let me google that for you:

http://miktex.org/2.8/issues

First item.

Flatto answered 13/11, 2009 at 23:47 Comment(2)
Haha, yes, I found the solution after I posted my edit. That is what I found as well. :)Cockoftherock
Link is currently broken, could not find an alternative, I emailed the author but if someone can find a cached copy we might include it here.African
C
5

Changing the "Install missing packages on-the-fly" option to "Yes" doesn't always work. I was having this same problem (using Miktex 2.9 and Texniccenter RC 1.0), and that setting was set to "Yes." The problem started for me when I chose a specific package repository in the "Packages" tab of the Miktex Options window, rather than keeping the default of (I changed it because the repository that it always chooses is kinda slow). Unfortunately, I couldn't find any way to revert back to the random repository, so I reinstalled Miktex, and left the Package repository option on random.

Curse answered 5/4, 2011 at 19:39 Comment(0)
D
3

http://docs.miktex.org/2.8/relnotes/#id517080

Please go to miktex directory and try to find mo.exe (Miktex option). Remedy: start MiKTeX Options and choose either Yes or No (but not "Ask me first") for the option "Install missing packages on-the-fly".

Danelaw answered 12/2, 2010 at 3:49 Comment(0)
F
0

I'm not sure about xcolor but using some packages such as hyperef for instance means you now have to compile your latex two or three times before a change propagates to the final output.

Whenever I want to see the final output I compile atleast 3 times and only then look.

On every pass latex updates some intermediate file and then only after a few compiles your change ends up in the final output. This unfortunately is how LaTeX works.

You might get some indication about this from the warnings count. Usually after a change you'll get some warnings that will dwindle down after a few compiles. When the warnings cound stays the same it usually means you've hit the baseline where every intermediate output is updated with everything else.

Flatto answered 13/11, 2009 at 15:4 Comment(1)
I tried compiling it multiple times, the outputs did not change. There were no warnings in the log - I am just looking at the last line: o Error(s), 0 Warning(s), 0 Bad Box(es), 0 Page(s). But something is definitely wrong - since it says 0 Page(s) when I add the line with xcolor.Cockoftherock

© 2022 - 2024 — McMap. All rights reserved.