English 中文(简体)
LaTeX output does not update
原标题:

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}

egin{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}

egin{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?)

最佳回答
问题回答

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.

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".

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.





相关问题
Effective Version Control for Slides

I have to maintain a huge set of training material in forms of slides. At a first glance, I ve noticed there s no support for version control in OpenOffice OOImpress (but I might be wrong on this). ...

Maths in LaTex table of contents

I am trying to add a table of contents for my LaTex document. The issue I am having is that this line: subsubsection{The expectation of (X^2)} Causes an error in the file that contains the ...

Using vim s `gqap sometimes indents unusually

For the life of me, I cannot figure out the cause of this: when writing in LaTeX documents, I like to keep my line width to maximum of 80 characters. As such, I will execute the vim command gqap and ...

aligning math equations in Latex

I am trying to align the following equations around the equal sign. What can I do? Thanks! I am using the AMSMath package $$mddot{x}_{1}-K(x_{2}+x_{12})+C(dot{x}_{12}+dot{x}_{2})+2Cdot{x}_{1} ...

LaTeX output does not update

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} egin{document} This is a ...

How to put line break in a math

I d like to express the following sentence (source_location is also italic, it s not correctly rendered): Each entry has a list of tuple: < source_location, R/W, trip_counter, occurrence, killed ...

热门标签