From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: use pdf-tools in Emacs. Date: Fri, 28 Apr 2023 21:37:42 +0800 Message-ID: References: <87r0s5efab.fsf@frege.mail-host-address-is-not-set> <87edo5bc61.fsf@gnu.org> <87edo52mtg.fsf@gnu.org> <87o7n8jwzw.fsf@gnu.org> <87jzxwjghd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37703"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefan-husmann@t-online.de, help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 28 15:38:30 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1psOIw-0009dD-MY for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Apr 2023 15:38:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psOIS-0008S4-Nh; Fri, 28 Apr 2023 09:38:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psOIQ-0008QW-4T for help-gnu-emacs@gnu.org; Fri, 28 Apr 2023 09:37:58 -0400 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psOIO-0004nb-FC; Fri, 28 Apr 2023 09:37:57 -0400 Original-Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-94ef0a8546fso1614869166b.1; Fri, 28 Apr 2023 06:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682689074; x=1685281074; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=z4MQ0+ABB+tw/rCsl3B3zVa1QY/+l1bZkCgEtTIMngo=; b=JKpGrxcNLuuKHplj5bx2hzNCA2C2b5Yh7iNbhyRfauxxaeGEZ3iXaS69ywzYvCXjpa Bt/lqfdG6JxeJLgXZ6Ecl0F2J0nCvClyHDwEzesLbmFRaXX6h5skbXLbe9Ej2aZR5Wr3 Q9sN36rToXt/W4x1omXmphE9ipzEywj2tLudFAQmXbPlTc3s7LS6Q6V/YG9iON9TVAGY lEqc5B3prues8OsUd/FbO+yShyw1VqYW45vP28wb+cWH+CM1MEuKe0CFyHqcoL1GxvhP xKrmuKlLnSDi+baMRdWOl3KfB3ACWdk3jk44FPxjA+wJ8nd/aR3Uqk71F9bopoZo9Dx+ krog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682689074; x=1685281074; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z4MQ0+ABB+tw/rCsl3B3zVa1QY/+l1bZkCgEtTIMngo=; b=ba1EEbOC9Oi74rCtXNlCPUEBoRvXB8s1vWYCrXG2JSAaELdOfeyYoX5ArMwT3mAvjy K9kLBwKiqgmZwIyWpm3mkKuxhzlAMyX1GFv1pxjILBjRpklMEuWdr4qxYyV1lU8ZPP/q byB+ahEtV0E5upTKxfMftEeTTQNLyqd5lqvO9Ow9Ss6ZpSB2tAUuNrgmZQIP2KBrKyiX M14rw4r0jPkgdLT5SJxgUi7IpobscRg0Fx51QxkwLeI+nMcxw++18hIr5nc9eWZDWZpl UPlpOGM6gVbPlrUKa3ijg3TzEaxF1D0CxxsCwxqEJjHOGxWiKiSOQ5P+L+o3TLKIIwEu BhVQ== X-Gm-Message-State: AC+VfDz0ROzj1DgFOqLBdWlEcox5xbWYUBqFARw9R1Tx1N8UhXTpEUJQ iJ4t64SfI4Pqyhf/uWZODonQtaN9c7IIWp2ZldHLSC8lESNoZZ1p X-Google-Smtp-Source: ACHHUZ6r/ZUPSvDkWO4FGx6Hea669AouxBj19Wjrhj114hpyw6ESsnNmCdnfqVsb10HPH7AzyHIMgD3aZXj5kSMxbLk= X-Received: by 2002:a17:907:6d25:b0:94e:aa8e:b56e with SMTP id sa37-20020a1709076d2500b0094eaa8eb56emr5645505ejc.33.1682689073793; Fri, 28 Apr 2023 06:37:53 -0700 (PDT) In-Reply-To: <87jzxwjghd.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143439 Archived-At: On Fri, Apr 28, 2023 at 9:15=E2=80=AFPM Tassilo Horn wrote: > > Hongyi Zhao writes: > > > But I wonder how to do the following things when using pdf-tools: > > > > 1. How to skip to a specific page by page number quickly? > > M-x apropos-command RET pdf page RET quickly revealed pdf-view-goto-page > which is bound do M-g g by default. Yes. This does the trick. But the corresponding menu item description is not so nice: "GoTo Line" is misleading in this case. > > 2. How to show PDF in a separate window? > > The pdf is shown in a buffer so the same commands apply as for any other > buffer. E.g., you can split the current window with C-x 2 or C-x 3. Or > if you mean you want to show the pdf in a separate frame, then C-x 5 2. > > If you always want to spawn a new frame when finding a PDF document, I > guess you have to add a rule to display-buffer-alist. I want to use a new frame to show the PDF document with the LaTeX code in another frame, and at the same time keeping the forward and reverse searching work by skipping between these two frames backward and forward accordingly. > Bye, > Tassilo Regards, Zhao