Questions tagged [pdf]

is for PDF format. Emacs supports creating and viewing PDF files.

Filter by
Sorted by
Tagged with
3
votes
1answer
1k views

doc view PNG support

I'm running a fresh install of Arch Linux and if I try to view a pdf file in doc-view or pdf-view, I get the following error message: No PNG support is available, or some conversion utility for pdf ...
1
vote
0answers
38 views

How to use Emacs Application Framework as Default PDF viewer?

I recently discovered the Emacs Application Framework, which works quite nice for me. The only thing that's bothering me is, that I need to explicitly call eaf-open on a file, to open it with the ...
16
votes
4answers
3k views

How to change style of hyperlinks within PDF published from org-mode document?

I'm exporting (publishing) an org-mode document to PDF, and the results look great except for the hyperlinks. They look terrible. Hyperlinks to the Web look the same, only with a pale blue outline. ...
0
votes
1answer
205 views

Using org-ref to download pdfs using sci-hub as a fallback

I've developed a solution that allows to download pdfs from sci-hub as a fallback option to the functions provided by org-ref. I am a newbie to elisp, so please feel free to update this answer as ...
0
votes
1answer
333 views

error while loading shared libraries: libpoppler.so.101: cannot open shared object file: No such file or directory

Running Doom Emacs 2.0.9 on Emacs 27.1 on Manjaro KDE. When I compile a latex documents, it produces a PDF file and opens an emacs window to display it. But what is displayed is some text and not the ...
1
vote
1answer
186 views

Using org-beamer: display image on every page except the title page

Using org-beamer-export-to-pdf with the following document, I am able to display an image on every slide #+LATEX_HEADER:\usepackage{eso-pic}% http://ctan.org/pkg/eso-pic #+BEAMER_HEADER:\newcommand\...
16
votes
3answers
10k views

Hide \author, \date, and \title when exporting to pdf with org-latex-export-to-pdf

I am very new to LaTeX and exporting org-mode files to pdf. When I run the command org-latex-export-to-pdf it adds a title, author name, and date to the top of the exported pdf. Looking at the ...
0
votes
0answers
38 views

Fit window to pdf upon loading

Question: I'm running auctex and pdf-tools to view pdf's within emacs. My problem is that I'd like to scale the pdf window horizontally after running C-c C-c. So far, I've created a hook to execute ...
8
votes
8answers
8k views

Install Pdf-Tools on Emacs MacOSX

Aim I would like to get PDF Tools installed on my GUI Emacs on MacOSX (version 25.0.50 installed via Homebrew on MacOSX 10.10.2) because the README says it's possible. Setup I installed poppler and ...
0
votes
0answers
47 views

LaTeX pstricks pdf compilation without any specific configuration

I changed the auctex style file pstricks.el (from lines 779-784) (TeX-add-style-hook "pstricks" (lambda () (unless (or (member "pst-pdf" TeX-active-styles) (eq TeX-engine ...
1
vote
0answers
41 views

Directly transfer underlined phrases from pdf to org-mode?

I'm learning emacs (on spacemacs) and focusing on orgmode. Is there a way to transfer what you underline in a pdf (like in skim) directly as text in orgmode. In other words, when you underline a ...
5
votes
1answer
521 views

Make pdf-tools remember the page I was on

How to make pdftools remember the page I was on when I close a PDF document, restart Emacs and reopen the PDF? Some PDF readers after opening a document go to the last page the user was on and don't ...
12
votes
4answers
4k views

read e-books in Emacs

I use eww to read online articles in Emacs instead of in a browser because it is less distracting and I can take notes in an org-mode quickly without switching applications. I wonder how feasible it ...
1
vote
1answer
28 views

difference between properties and tags in the upper right corner

I dont get the difference between the actual property, enabling the respective funtionality and the tag on the right upper side? *** Number 5 :B_example: :...
0
votes
1answer
70 views

Export resume.org to both pdf and html

I've been maintaining my resume in orgmode for some time now, with export to pdf. I just decided it would be nice to also export to html which has uncovered a problem. I'm using headings to list my ...
26
votes
1answer
23k views

How to use pdf-tools (pdf-view-mode) in emacs?

pdf-tools includes pdf-view-mode which offers several features not present in doc-view-mode (see end of question). Can pdf-view-mode be used as a replacement for doc-view-mode generally, or does it ...
0
votes
0answers
78 views

Display zoom percentage in pdfview

Running Doom Emacs 2.0.9 running on Emacs 26.3. I use pdf-tools. When I compile a Latex document, the resultant PDF file is displayed in an adjacent window. I can zoom in, out, etc. One thing I ...
1
vote
1answer
82 views

Display latex output natively in emacs in a vertically split window

Running Doom Emacs 2.0.9 on Emacs 26.3. Currenly, when I do TeX-command-run-all on a tex file, it opens the output in okular pdf viewer in a separate KDE window. I was wondering if it is possible to ...
0
votes
0answers
57 views

Edit PDF page labels in pdf-tools?

Q: how can I change PDF page labels with pdf-tools? pdf-tools has the capacity to annotate PDFs, which is great. Can it also change the page labels as well? That is, not the raw page number, but the ...
3
votes
1answer
1k views

Exporting Org in Landscape

I have an org document I'd like to export to PDF - with several wide tables columns in it - so much so that it makes sense to export the whole document in A4 landscape to keep the orientation ...
1
vote
0answers
26 views

Get position in a pdf-page by clicking for annoting a pdf with latex

In https://tex.stackexchange.com/a/85676/4011, it is illustrated of how to annotated a pdf by using the latex package pdfpages, loading the pdf as a background layer and then use tikz nodes to make ...
46
votes
6answers
12k views

How to use an external program as the default way to open PDFs from Emacs?

When I M-x find-file a PDF, it is opened in Emacs. While this is nice, Emacs' PDF viewer lacks many features that I need and I would prefer to open PDFs in an external program instead. How can I ...
1
vote
0answers
36 views

If text is copied from pdf on yank run unfill-paragraph

It's similar problem Copy and Paste From PDF to Emacs as Plain Text When I copy text from pdf and yank to org mode I have to run manually unfill-paragraph function to remove unnecessary newlines & ...
1
vote
1answer
61 views

How to include headers when exporting a message as PDF?

As a follow-up to this question about exporting as PDF, I want to export a message as a PDF. One answer in that thread views the message in a browser window and I can then save as a PDF from the ...
0
votes
0answers
57 views

How to export multiple org files to pdf using a shell script that calls an elisp snippet?

I am new to Emacs (I am using spacemacs). Please be patient. I am still learning but now that I realize the power of Emacs I want and hope to learn elisp also. I have a bunch of org files prefixed "...
0
votes
0answers
193 views

Horizontal Scrolling and pinch to zoom on PDF tools

I'm attempting to get horizontal scrolling and pinch-to-zoom working for Pdf-Tools. I'm a medical researcher who uses a lot of PDFs and have fallen in love with org-mode, now trying to move more ...
0
votes
0answers
21 views

AUCTeX: inconsistent behaviour when compling (probably becuase of what I'm doing)

I cannot get AUCTeX to preview updates to multifile documents. I have the following config: (use-package tex :ensure auctex :config (setq-default TeX-master nil) (setq TeX-source-...
2
votes
1answer
91 views

How to avoid export org-mode header title

I am translating a quite flat document (only has a title as a level 1 heading). I am using org-mode and I am creating a level 2 heading for each page to easily find the content when I am reviewing the ...
0
votes
0answers
277 views

export org to pdf not working: PDF was not produced

installed emacs and Latex ()texlive and texlive-latex-extra) on ubuntu. Exported an Org file to PDF with no success. Exporting via org-export-dispatch and selected [l] export to latex and [O] as PDF ...
1
vote
2answers
136 views

View command does not open pdf while in AUCTeX mode

Sometimes, after havin applied latex to my .tex file, instead of executing okular --unique my.pdf emacs tried to execute okular --unique my.pdf#src:332#("/folderToMyTex/my.tex" 0 61 (org-attr nil)) ...
12
votes
3answers
1k views

Can I configure eww to use pdf-view-mode (from pdf-tools) for PDFs instead of DocView?

I use pdf-tools to read PDFs inside of Emacs and greatly prefer it to DocView. I just noticed that when I try to open a URL thar points to a PDF in eww, it uses DocView instead of the pdf-view-mode ...
1
vote
0answers
68 views

Hide empty margins in pdf

My screen is a bit small and dividing it in two vertically to see a pdf while editing it leaves a lot to be desired. However, if pdf-tools or pdf-view mode had the option to hide a % of the empty ...
6
votes
1answer
871 views

How to set PDF export in polymode-mode to use xelatex engine?

Consider the below MWE of .Rmd file containing Arabic text which needs xelatex engine to be rendered by pandoc. As the documentation of the latter says putting this option would make it: --latex-...
1
vote
1answer
20 views

Exporting Org to PDF while displaying Regex literal strings

I've been searching for the past couple of days to a solution to an issue I'm having. Hoping somebody who is more apt with emacs/exporting could provide some insight. Upon exporting an .org file (C-...
4
votes
1answer
106 views

Select a word in a PDF by double-clicking on it (with pdf-tools)

I use pdf-tools in Emacs to view PDF documents. I would like to be able to select words (mark their region and then copy them to the kill-ring) in the PDF by double-clicking on them. Is there a ...
4
votes
1answer
1k views

How can I reliably create latex classes in org mode?

I'm trying to modify my .emacs to create my own classes, I tried this article and using org-latex rather than ox. I also tried this different approach. I tried enclosing the above classes with ...
3
votes
1answer
240 views

How can I capture selected text in a pdf-view buffer with org-capture?

I would like to capture the selected text (selected with the mouse) in a PDF document (opened in PDFView Mode) with an org capture template. When I evaluate the expression (car (pdf-view-active-...
0
votes
0answers
73 views

org-mode: Remove loading message when exporting HTML and then converting to PDF

My goal is to export an HTML document and convert it to a PDF so I can have some of the advanced syntax highlighting and source code background coloring options in a PDF file. It seems to be working ...
1
vote
0answers
87 views

Auto-reverting only renderable PDF buffers

I'm using pdf-view mode and the global auto-revert mode with LaTeX and latexmk. This works fine, except that, a couple of times during the compilation, the PDF is in a useless state and the PDF ...
1
vote
1answer
927 views

Org-mode export: Resize Plantuml diagram when exporting to PDF and image gets repeated

I have a simple PlantUML diagram in an org file and I want to export the entire document to pdf. The problem is that the diagram is embedded correctly, but the picture takes up an entire page. SECOND, ...
0
votes
0answers
31 views

How to prevent preview-latex to manipulate and delete the pdf created by latex

Running latex-preview manipulates and then deletes the pdf created by latex. If skim is open as pdf-viewer the pdf gets sliced into the images created by latex-preview. Running latex again doesn't ...
0
votes
0answers
101 views

TeX-evince-sync-view locking up with this file

This file when I compile it with AUCTeX, and then try to view it, using TeX-evince-sync-view, shows that one page has been compiled, but then shows a blank view. After I kill it, TeX-evince-sync-view ...
1
vote
0answers
129 views

How to (mostly) get rid of doc-view?

Since I moved to emacs 25 (25.3.2 at the moment) in every context (org-mode, gnus, latex, browsing url, direct access to file) I access pdf-files in emacs, they are displayed in doc-view. I basically ...
2
votes
1answer
399 views

mu4e: open PDFs with pdf-tools

I've just set up mu4e, and have noticed that when opening an attachment with the o key it will open with MuPDF. Pressing A w to open-with doesen't seem to help either, since it prompts for an external ...
2
votes
1answer
317 views

Emacs26 — (1) view PDF with Okular; (2) compile TEX file silently

I am running Emacs 26 built with GTK toolkit. AUCTeX has been successfully installed. 1) How to force Emacs to open an Okular session to view the PDF file, instead of opening another window within ...
1
vote
1answer
60 views

How can I change what happens when I click on a pdf-tools link?

I read pdfs with pdf-tools, but I think what I'm asking may apply to more than pdf-tools alone. In any case, as an example, some research paper pdfs have references with clickable links - say a link ...
3
votes
1answer
535 views

Org Mode. Set separation length between elements of a list

I have noticed there is a big gap between the elements of a list when exporting to PDF. Is there a way to modify it?
0
votes
1answer
249 views

How to export a pdf in landscape rotation

Following example.org is expected to be exported in landscape though the generated pdf remains in portrait. What should I change? ** A3 PDF Landscape #+LATEX_HEADER: \usepackage[a3paper]{geometry} ...
2
votes
1answer
637 views

how to enable pdflatex --shell-escape switch in org-export dispatcher interface

I would like to add a switch when invoking the org-export dispatcher interface for latex-pdf exports. I'm trying to render an SVG image but the *Org PDF LaTeX Output* buffer errors out because of a ...
0
votes
1answer
641 views

Windows: org not exporting pdf

I am trying to get emacs org-mode to export to pdf. To this end I've installed tex-live and added the path to the bin folder to my emacs path. I've added the tex-live folder to my OS $PATH. When I try ...