bash Texmaker 未更新 PDF 查看器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30166066/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 12:58:38  来源:igfitidea点击:

Texmaker not updating the PDF viewer

macosbashpdfpdfviewertexmaker

提问by

I created bash file which constantly compiles the my latex file, the problem is though that the PDFviewer in texmaker doesn't update, eventhoug the raw PDF file is updated. How come is does the PDFviewer keep showing the old PDF until i use Texmaker to compile the texmaker?... I want the embedded PDFviewer in texmaker to update, the PDF it shows even though i don't use texmaker to compile the .tex file.

我创建了 bash 文件,它不断编译我的乳胶文件,问题是虽然 texmaker 中的 PDFviewer 没有更新,但即使原始 PDF 文件已更新。为什么 PDFviewer 一直显示旧的 PDF,直到我使用 Texmaker 编译 texmaker?...我希望 texmaker 中的嵌入式 PDFviewer 更新,即使我不使用 texmaker 编译 .tex,它也会显示 PDF文件。

The bash file.

bash 文件。

#!/bin/bash
while true
do
    pdflatex -synctex=1 -interaction=nonstopmode /Users/Johnathan/Documents/Bachelor/Rp/bachelor.tex
    sleep 4
done

回答by Fani.G

I know this question is old, but I just had the same problem and found a solution for some Mac Users at least:

我知道这个问题很老,但我遇到了同样的问题,至少为一些 Mac 用户找到了解决方案:

The short explanation: since El Capitan, there is no /usr/ directory anymore, but this is where Texmaker looks for latex. In Texmaker -> Preferences -> Commands, substitute every /usr/ expression with /Library/TeX/, which is where Latex is installed.

简短的解释:自从 El Capitan 之后,就没有 /usr/ 目录了,但这是 Texmaker 寻找乳胶的地方。在 Texmaker -> Preferences -> Commands 中,用 /Library/TeX/ 替换每个 /usr/ 表达式,这是 Latex 的安装位置。

This document holds all the details. https://tug.org/mactex/UpdatingForElCapitan.pdf

该文件包含所有详细信息。 https://tug.org/mactex/UpdatingForElCapitan.pdf

Cheers

干杯

回答by marioloko

I think that the problem is not about your script(It works for me), I think is about your PDF viewer.

我认为问题不在于你的脚本(它对我有用),我认为是关于你的 PDF 查看器。

1)Try using Evince as a PDF reader, it will update your pdf automatically. It has versions for Windows and Linux, and it is free.

1) 尝试使用 Evince 作为 PDF 阅读器,它会自动更新您的 pdf。它有适用于 Windows 和 Linux 的版本,而且是免费的。

https://wiki.gnome.org/Apps/Evince/Downloads

https://wiki.gnome.org/Apps/Evince/Downloads

2)Another way is using your web browser (I have used Mozilla) as a PDF reader, writing in the URL bar:

2)另一种方法是使用您的网络浏览器(我使用过 Mozilla)作为 PDF 阅读器,在 URL 栏中写入:

file:///Users/Johnathan/Documents/Bachelor/Rp/bachelor.pdf

file:///Users/Johnathan/Documents/Bachelor/Rp/bachelor.pdf

but this second way has the problem that you must refresh your web browser by yourself.

但是第二种方式有一个问题,你必须自己刷新你的网络浏览器。

I hope that helps you!

我希望对你有帮助!

回答by Melanie Ann Tarr

I had the same problem of the PDF viewer not updating. The fix was:

我遇到了 PDF 查看器未更新的相同问题。修复是:

Select: texmaker, preferences, commands, PDF viewer Select: external viewer

选择:texmaker、首选项、命令、PDF 查看器选择:外部查看器

Then pick adobe reader or whatever app you use to view pdf files with.

然后选择 adobe reader 或您用来查看 pdf 文件的任何应用程序。

Then you bypass the pdf viewer in textmaker altogether.

然后你完全绕过 textmaker 中的 pdf 查看器。

Maks

马克