Questions tagged [pdf]

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

Filter by
Sorted by
Tagged with
51 votes
7 answers
15k 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 ...
user avatar
  • 2,480
31 votes
2 answers
12k views

Is there a way to resize margins when exporting PDF in org-mode?

I want to export my org document as a PDF, but its margins are way too big. I would like to re-size them as I wish. I am using #+LaTeX_CLASS: report I do not know if there is a way. Any help?
user avatar
30 votes
1 answer
32k 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 ...
user avatar
27 votes
2 answers
8k views

Display PDF images in org-mode

Note: This question was asked here before, with no success. Org-mode’s ability to display inline images is fantastic for writing my weekly scientific reports. I can include graphs, link them with ...
user avatar
  • 22.4k
21 votes
2 answers
32k views

How to view and edit pdf files in emacs?

I heard that we can view pdf files in emacs. Is it done by converting pdf files to plain texts first? Can we view pdf files at its fullness in emacs? can we edit pdf files in emacs? Thanks.
user avatar
  • 4,737
20 votes
4 answers
5k 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. ...
user avatar
  • 1,316
20 votes
3 answers
11k views

convert a text buffer to a pdf file?

How can we convert the current text buffer to a pdf file, preferably turning those headings started with * into bookmarks of the pdf file. For example, turning the Emacs integrated tutorial (shown by ...
user avatar
  • 4,737
19 votes
3 answers
13k 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 ...
user avatar
  • 4,575
14 votes
4 answers
7k 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 ...
user avatar
13 votes
1 answer
2k views

How do I get rid of the red boxes around the links in the TOC? [duplicate]

I wanted to get rid if the red boxes in TOC that we obtain when exporting org to pdf. The red boxes looks absolutely ugly and spoil the appearance of the entire document.
user avatar
  • 635
13 votes
1 answer
4k views

improve doc-view display quality

The fonts in my pdf's as displayed in doc-view aren't particularly readable. Is there a setting I can change to improve the image quality? I tried changing doc-view-resolution from 100 to 300, but ...
user avatar
  • 3,475
12 votes
2 answers
3k views

Emacs got frozen when open pdf file

When I open pdf with emacs, it got frozen. And I installed pdf-tools, open pdf, it got frozen again. What's the underlining process when emacs open a pdf? Is there a lot of converting work? What ...
user avatar
  • 4,253
12 votes
1 answer
5k views

How do I limit the width of a table or columns in org-mode PDF export?

I'd like to format a table with a wide column nicely in PDF export from org-mode. Ideally it would be with a wrap on that column, but I can deal with a manual character or fraction of \textwidth for ...
user avatar
12 votes
3 answers
2k 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 ...
user avatar
  • 4,612
12 votes
1 answer
2k views

mark text with keyboard in PDFView (pdf-tools) mode

I've replaced doc-view mode with pdf-tools. While it's easy to set a mark on a page with the mouse, how do you do it with the keyboard? The readme mentions the feature. "* Mark a region and kill the ...
user avatar
11 votes
1 answer
2k views

How to have wrapped text when exporting from org to Latex?

I have an org file which I export to LaTeX and then to a PDF document. The problem is I have some long text that exceeds the length of the page. How to wrap it so that it falls into the next line? ...
user avatar
  • 185
8 votes
9 answers
10k 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 ...
user avatar
  • 883
8 votes
1 answer
5k views

Changing default font size in Org LaTeX export

Org exports LaTeX with default font size of 11 pts. Is it possible to make this font size to 10 pts and also reduce spacing to one and half space ? Regards
user avatar
  • 523
8 votes
1 answer
697 views

How to add annotation in PDF src block like in this screenshot?

How to write Org-mode, (maybe need use LaTeX) to archive this effect?
user avatar
  • 1,778
8 votes
2 answers
1k views

Org-mode file hyperlinks always use doc-view, can't force it to use external pdf viewer

I am using Emacs 25.1 run with emacs -Q and Org mode version 8.2.10. This problem persists in my customized Emacs with Org mode version 8.3.6. I am attempting to open hyperlinks of the form [[file:...
user avatar
  • 193
8 votes
1 answer
429 views

Thumbnail previews of PDF files

If I select image files in a Dired buffer and do C-t C-t, a nice little thumbnail appears. But if I try this with PDF files, nothing happens. I would expect to see a thumbnail of the first page of the ...
user avatar
  • 2,753
7 votes
1 answer
3k views

Make doc-view use mupdf for pdf files

Of course I already know about https://github.com/politza/pdf-tools. I am on Emacs 24.5.1. I am not convinced that doc-view is using mudraw/mupdf for pdf files. (require 'doc-view) (print doc-view-...
user avatar
  • 233
7 votes
1 answer
1k views

Multiplatform solution to view pdf files in Emacs

I'm searching for solution for viewing .pdf files in Emacs on both Linux and Windows platform. Here is list of my requirements: Outline (view, use to navigate) Follow links Search text Basically I'...
user avatar
  • 1,321
6 votes
1 answer
2k views

Add cell background colors to org-mode table in pdf export

I'd like to be able to select a specific cell in an org-mode table and add a background color to that cell for a pdf export. Such that | This Cell is formatted normally | This cell is greyed a bit| |...
user avatar
6 votes
1 answer
3k 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 ...
user avatar
6 votes
2 answers
794 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 ...
user avatar
  • 185
6 votes
1 answer
8k views

Exporting org to pdf: LaTeXerror [closed]

When I try to export a .org or .tex file to pdf with the command org-latex-export-to-pdf, I get the following error in *Messages* buffer: Processing LaTeX file ./test.tex... org-latex-compile: PDF ...
user avatar
  • 1,914
6 votes
1 answer
1k 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-...
user avatar
  • 1,622
6 votes
1 answer
1k views

Changing resolution in pdf-tools PDFView

See this solution for changing the resolution in DocView. I don't see anything like this for pdf-tools. How can I increase the resolution like doc-view-resolution variable would?
user avatar
  • 1,290
5 votes
1 answer
2k 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 ...
user avatar
  • 483
5 votes
1 answer
241 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 ...
user avatar
  • 469
5 votes
1 answer
1k 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 ...
user avatar
5 votes
1 answer
2k views

Printing/exporting to PDF from text-mode

I have been googling and searching for the answer to this question for a while but cannot find a definitive solution. In fact I am more confused than ever. I have no doubt that I am not the first ...
user avatar
  • 51
5 votes
1 answer
402 views

Emacs pdf-tools writing function

Recently I am indulging in Emacs. I tried to use it as my LaTeX tool, so I installed pdf-tools. If I add (pdf-tools-install) in my init file, it will take about 2 seconds to start Emacs. So I want ...
user avatar
5 votes
0 answers
160 views

Stopping pdf-tools from resetting to the beginning of an open PDF when I eval-buffer my config file

I'm using pdf-tools to read PDFs in Emacs, and am pretty happy so far. However, I've found when I modify, and then eval-buffer my configuration file, the PDFs I opened earlier with pdf-tools get put ...
user avatar
  • 425
4 votes
4 answers
728 views

Where is `helm-pdfgrep`?

I have recently installed helm but haven't gotten very far with using it so far. I noticed that I can run the command helm-pdfgrep-help and it shows me a list of keybindings. But I don't have a helm-...
user avatar
  • 2,753
4 votes
2 answers
762 views

Export to PDF with index bookmarks and unnumbered sections

I want to export my .org file to pdf, with a table of contents. But I don't want the table of contents to be printed in the first page of the document. Rather I want the table of contents to be ...
user avatar
  • 181
4 votes
1 answer
1k 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?
user avatar
  • 43
4 votes
1 answer
3k views

How do I create a floating tikz figure when exporting to PDF in org-mode?

With org-mode 8.2.10 on Emacs 24.5.1, the following will produce a ditaa figure in the exported PDF (LaTeX): #+BEGIN_SRC ditaa :file foo.png :cmdline -E -s 4 -S +---------+ | testing | +---------+ #+...
user avatar
4 votes
1 answer
3k 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 ...
user avatar
  • 1,678
4 votes
0 answers
2k views

Doc-view not working despite gs being in my path

I have trouble getting the doc-view-mode displaying pdfs. Here's the error message generated : No PNG support is available, or some conversion utility for pdf files is missing. From what I've ...
user avatar
  • 655
3 votes
2 answers
3k views

Working with LaTeX in Spacemacs: can PDFs be seen in a buffer, rather than via external PDF reader?

I have been using the latest version of Spacemacs, with AUCTeX. However, when I compile the .tex file into a .pdf file, it opens in my default external PDF viewer software. Is there a way to make ...
user avatar
  • 253
3 votes
2 answers
1k views

org-mode Beamer export: can't change format of title page and TOC

I have an org file that I use to create a pdf with org-beamer-export-to-pdf. The file has things like this at the top: #+TITLE: Training #+OPTIONS: H:2 toc:1 num:t #+LATEX_CLASS: beamer #+...
user avatar
3 votes
1 answer
1k views

Recolouring PDFs

Is it possible, with DocView or pdf-tools or something else, to recolour pdfs (e.g. by inverting or choosing a particular colour for background and foreground)? It's a bit annoying when using a dark ...
user avatar
  • 2,964
3 votes
1 answer
1k views

Opening .djvu files from emacs links

I use an org file called books.org to store all the information about my books, including the location of the files (.pdf or .djvu). Usually I open these files directly from Emacs by pressing C-c o. ...
user avatar
  • 413
3 votes
1 answer
354 views

Is there some way to view the HTML part of an email in an external browser or as a PDF in notmuch?

I have just started using notmuch for email. I was wondering if there is some way I can view the HTML part of an email in an external browser or rendered to a pdf and viewed inside Emacs (like you can ...
user avatar
3 votes
1 answer
324 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 ...
user avatar
  • 31.1k
3 votes
1 answer
469 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-...
user avatar
  • 366
3 votes
1 answer
759 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 ...
user avatar
  • 67
3 votes
1 answer
2k 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 ...
user avatar