LaTeX 输出不更新

发布于 2024-08-10 22:34:14 字数 670 浏览 10 评论 0原文

我刚刚开始使用 LaTeX。我在 Windows 中工作并使用 TeXnicCenter 作为我的编辑器。当我构建和输出时,具有以下代码:

\documentclass{article}

\begin{document}

This is a test document

\end{document}

我确实得到了一个包含“这是测试文档”字样的文档。如果我将上面代码中的句子更改为“这是一个测试”,然后构建并输出 - 更改就会得到反映。

但是,在完成上述操作后,我将代码更改为:

\documentclass{article}

\usepackage[table]{xcolor}

\begin{document}

Hello World!

\end{document}

现在,如果我构建并输出,我不会得到“Hello World!”在输出中,我得到了进行此更改之前的最后一件事(“这是一个测试”)。这是 TeXnicCenter 或 LaTeX 中的错误还是我在这里遗漏了一些东西?感谢您的回答。

编辑:

我还在新的输出日志中看到这一行:'("C:...\size10.clo") Latex.exe: GUI 框架无法初始化' 并在末尾日志 LaTeX 结果显示“0 页”(我猜是生成的?)

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

海之角 2024-08-17 22:34:15

我不确定 xcolor 但使用一些包(例如 hyperef)意味着您现在必须编译乳胶两到三次才能将更改传播到最终输出。

每当我想查看最终输出时,我都会编译至少 3 次,然后才查看。

每次传递乳胶都会更新一些中间文件,然后只有在几次编译之后,您的更改才会出现在最终输出中。不幸的是,这就是 LaTeX 的工作原理。

您可能会从警告计数中得到一些关于此的指示。通常,在进行更改后,您会收到一些警告,这些警告会在几次编译后逐渐减少。当警告声音保持不变时,通常意味着您已经达到了基线,其中每个中间输出都与其他所有内容一起更新。

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.

乱了心跳 2024-08-17 22:34:14

将“即时安装缺失的软件包”选项更改为“是”并不总是有效。我遇到了同样的问题(使用 Miktex 2.9 和 Texniccenter RC 1.0),并且该设置被设置为“是”。当我在 Miktex 选项窗口的“包”选项卡中选择特定的包存储库,而不是保留默认值时,问题就开始了(我更改了它,因为它总是选择的存储库有点慢)。不幸的是,我找不到任何方法来恢复到随机存储库,因此我重新安装了 Miktex,并将“软件包存储库”选项保留为随机。

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.

如何视而不见 2024-08-17 22:34:14

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

请进入 miktex 目录并尝试找到 mo.exe (Miktex 选项)。
补救措施:启动 MiKTeX Options 并为“即时安装缺失的软件包”选项选择“是”或“否”(但不是“先询问我”)。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文