Questions tagged [pdf]

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

Filter by
Sorted by
Tagged with
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 ...
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 ...
25
votes
2answers
9k 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?
21
votes
1answer
6k 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 ...
19
votes
2answers
24k 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.
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 ...
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. ...
15
votes
3answers
9k 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 ...
12
votes
2answers
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 ...
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 ...
12
votes
1answer
4k 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 ...
12
votes
1answer
1k 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 ...
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 ...
12
votes
1answer
3k 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 ...
11
votes
1answer
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.
10
votes
1answer
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? ...
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 ...
8
votes
1answer
596 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?
7
votes
1answer
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-...
7
votes
1answer
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'...
6
votes
2answers
899 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:...
6
votes
1answer
306 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 ...
6
votes
1answer
6k 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 ...
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-...
6
votes
1answer
755 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?
5
votes
1answer
3k 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
5
votes
1answer
1k 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| |...
5
votes
1answer
325 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 ...
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 ...
5
votes
0answers
153 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 ...
4
votes
4answers
574 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-...
4
votes
2answers
537 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 ...
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
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 | +---------+ #+...
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 ...
4
votes
1answer
947 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 ...
4
votes
0answers
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 ...
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 ...
3
votes
2answers
2k 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 ...
3
votes
2answers
852 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 #+...
3
votes
1answer
658 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 ...
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?
3
votes
1answer
921 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. ...
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-...
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 ...
3
votes
1answer
1k views

Copy and Paste From PDF to Emacs as Plain Text

Here is my problem: I often copy text from a PDF (let's say one that is nicely formatted or scanned cleanly) and like to post it in an active org-mode file I have for academic research. However, ...
3
votes
0answers
322 views

exporting .svg images to .pdf in org-mode

I have a set of .svg images that I need to export to pdf by using org-mode. Even though I can see the images inside emacs, I cannot export them to .pdf. On the other hand, if I export my .org file to ...
3
votes
0answers
305 views

How to set the colors for pdf-tools annotations individually?

I would like to be able to set the annotation colors to be different (e.g. strike-out "black" while keeping highlight "yellow"). I asked about this as an issue at the github page for pdftools and was ...
3
votes
0answers
335 views

Org-mode export open in Sumatra PDF?

I'm in Windows 7 (32 bit) and I'm using Emacs 24.4 where I have, among other things, Org 8.2. I'd like to open pdfs in Sumatra PDF after exporting *.org files to pdf via *.tex. So I read this other ...
3
votes
0answers
90 views

Highlighting the changed line in the source file in the resulting pdf using auctex and pdf-tools?

Is it possible to highlight the changed line in the resulting pdf using auctex and pdf-tools. I have this feature enabled in Skim with the following lines in my setup. (add-hook 'LaTeX-mode-hook (...