如何在 Emacs 中以文档视图模式向下滚动页面?

发布于 2024-09-06 09:29:16 字数 759 浏览 6 评论 0原文

我最近开始在 Emacs 中使用 doc-view,但我遇到了很多问题。主要的一个是我无法向下滚动页面。我可以使用“n”或“p”查看下一页或上一页,但是上下滚动页面的命令(据称是 SPACE 和 DEL)不起作用。好吧,公平地说,DEL 可以工作,但它会转到上一页,而不是向上滚动到上一页的底部。结果是我只能看到pdf页面的顶部,而看不到底部。

我尝试将视图更改为连续,但这也不起作用。这是我尝试更改的内容:

alt text

我确实检查了 doc-view 的自定义,但是变量(或选项,或无论它们被称为什么)在我看来并不能解决我的问题。

更多信息:我确实设法使 SPACE 和 DEL 在某个时候工作,但我不记得我做了什么,而且我无法让它再次工作。我正在使用 Aquamacs。

有什么想法吗?

顺便说一句,我遇到的另一个问题是 doc-view 导致 Aquamacs 崩溃,这意味着它冻结了所有内容,不断“思考”,我必须强制退出 Aquamacs 才能让它再次工作。虽然这不是我的主要问题,但如果有人能告诉我任何有关此问题的信息,我也将不胜感激。

谢谢!

编辑:我尝试了下面建议的答案,但没有成功,继续尝试其他事情/命令,然后 Cn 和 SPACE 开始工作!我退出 Aquamacs,再次启动它,打开一个 pdf 文档,它又回到了无法工作的状态。有人可以解释一下发生了什么吗?我怎样才能使这个可靠?

I have recently started using doc-view in Emacs, but I am having quite a few problems with it. The main one is that I can't scroll down on pages. I can see the next or previous page using "n" or "p", but the commands to scroll up and down a page, which are supposedly SPACE and DEL, do not work. Well, to be fair, DEL works, but it goes to the previous page rather than scroll up to the bottom of the previous page. The result is that I can only see the top of the pdf pages, but not the bottom parts.

I tried changing the view to continuous, but that doesn't work either. This is what I tried changing:

alt text

I did check the customisations for doc-view, but the variables (or options, or whatever they are called) did not appear to me to be the ones which would solve my problem.

More information: I did manage to make SPACE and DEL work at some point, but I don't remember what I did, and I can't get it to work again. I am using Aquamacs.

Any ideas?

By the way, another problem I have is that doc-view causes Aquamacs to sort of crash, meaning it freezes everything, keeps "thinking", and I have to force quit Aquamacs to get it to work again. While this is not my main question, if anyone can tell me anything about this I would also appreciate.

Thanks!

EDIT: I tried what the answer below suggested, it didn't work, kept trying other things/commands, and then C-n and SPACE started working! I quit Aquamacs, started it again, opened a pdf document, and it is back to not working. Can someone please explain what is happening? How can I make this reliable?

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

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

发布评论

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

评论(2

最笨的告白 2024-09-13 09:29:16
(setq doc-view-continuous t)

这使您可以使用鼠标滚轮滚动整个文档(而不仅仅是当前页面)。

(setq doc-view-continuous t)

This lets you scroll the whole document with mouse wheel(not just the current page).

左耳近心 2024-09-13 09:29:16

向下滚动的命令绑定到:

Cn,向下

而不是SPC

更新:

SPC在文档视图模式下反弹。无法使用 GNU Emacs/Linux 重现您的问题,您可以调用:

M-x doc-view-scroll-down-or-previous-page

To commands to scroll down are bind to:

C-n, down

not SPC

UPDATE:

SPC is rebound in docview mode. Can't reproduce you issue using GNU Emacs/Linux, can you invoke:

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