Questions tagged [pdf]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
486 views

org-mode XeLaTeX export to pdf: define font color for different structure levels

I would like to set the colors for a pdf export of an org-mode file based on the structural elements. That is something like * This Headline Should Be Blue ** This subheadline should be green - ...
1
vote
1answer
210 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\...
1
vote
0answers
87 views

how to “slow” down the execution of code blocks

on OSX 10.13.4 with emacs 25.3 and org-mode 9.1.12. Python is 3.5.2 with matplotlib 2.2.2 I am trying to find a way to have org-mode babel for python to slow down in some of the points of my code ...
1
vote
0answers
409 views

Set up auctex with emacs to use latex(not pdflatex) but generate a pdf at the end

I asked the question on setting up auctex with emacs on tex list but I still could not find the end solution, unfortunately. Here is the link to my original question: https://tex.stackexchange.com/...
3
votes
1answer
791 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 ...
0
votes
1answer
627 views

Issue with org-mode export to pdf via LaTeX

Whenever I export my org-mode (version 8.2.10) file to pdf via LaTeX, it gives me: Page 1 with only content 2015/01/01Old fixltx2e package 0000/00/00Old fixltx2e package and the rest part is blank. ...
1
vote
1answer
445 views

How can I get a mailto link in an org-mode latex export to PDF for the #+email: keyword

When I'm specifying my mail address #+email: bla@comp.org I'm getting a text footnote bla@comp.org for an org latex export of a report. I'd like to have a complete mailto hyperlink though. I tried ...
0
votes
0answers
317 views

Auctex not displaying pdf correctly using pdftools

I am using pdftools with AUCTEX so that I can display output within emacs. I am using a windows system with emacs 25.3. However after compilation I get the following: %PDF-1.5 % 3 0 obj << /...
1
vote
1answer
1k 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, ...
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
1k views

Change style of Org-Mode export to pdf

I'm new to Org-Mode and Spacemacs and I'm trying to change the export style of org-mode. I want to take notes with it and have source code blocks. I'm having difficulty in changing the export ...
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
0answers
324 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 ...
5
votes
1answer
557 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 ...
1
vote
1answer
379 views

SumatraPDF.exe as default PDF viewer

I'm using emacs (GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17), and trying to define SumatraPDF as my default PDF-viewer for LaTeX. After some trials, nothing happens, and I have no idea why... ...
1
vote
0answers
309 views

org babel exports code blocks even if I tell it to export results instead

How can I make org-babel only export results, not code? The only way I've found to suppress code from appearing in the output is to comment out all the code blocks manually. I tried adding :exports ...
2
votes
1answer
131 views

pdf-tools indirect buffers

I am using an indirect buffer of a pdf from a pdf-tools PDFView buffer. This works except the indirect buffer is in DocView mode, and therefore I can't use any of the pdf-tools features in that buffer....
11
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? ...
3
votes
2answers
894 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 #+...
6
votes
1answer
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| |...
2
votes
0answers
74 views

doc-view failing for some PDFs, but ghostscript can view them?

When I use docview to view PDFs on my work computer (a redhat linux system) it always works, except in PDFs coming from Springer-Verlag articles and chapters. In that case it gives this error: ...
5
votes
1answer
332 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 ...
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.
2
votes
1answer
718 views

How to jump to a page in `DocView` mode when a pdf contains a roman numeral numbered introduction?

Lets say that I am viewing a pdf in emacs which contains a section numbered with roman numerals. How would I jump to page xxii in that section without doing mental math about what that page's number ...
7
votes
2answers
959 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:...
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 ...
8
votes
1answer
622 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?
1
vote
2answers
159 views

Image tooltips with pdf

I want the image tooltip code also make work for pdf format, thus I added the pdf keyword to the file extension list of the original code (http://kitchingroup.cheme.cmu.edu/blog/2016/03/21/Displaying-...
0
votes
1answer
140 views

Why does viewing PGP encrypted PDF fail?

When I try to open a PGP encrypted PDF file.pdf.gpg, then – after entering the PIN in my smartcard reader – a window pops up with an error message: Error: /syntaxerror in (binary token, type=150) ...
6
votes
1answer
882 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-...
4
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, ...
1
vote
2answers
629 views

How do I view an image in a new buffer in emacs?

I have the path to a pdf file or a png file (whichever is easiest to show, but bonus points for showing both). How do I show the image in a new buffer? (It makes no sense to show it inline since it ...
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 ...
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
0answers
346 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 ...
27
votes
1answer
25k 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 ...
1
vote
2answers
838 views

Opening an External PDF in the Terminal

This is migrated from the LaTeX stack exchange. I am using Emacs on the Mavericks OSX Terminal. I can open the TeX file fine, but I can compile a pdf via C-c C-c. Is there some way that I can open the ...
3
votes
1answer
967 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
0answers
93 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 (...
6
votes
1answer
323 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 ...
1
vote
0answers
31 views

Auctex+sumatraPDF on Windows inverse search. want to remove the CMD windows

I am using Auctex+SumatraPDF on Windows now. I have set them working well, except a small annoying thing. Every time I do the inverse search from SumatraPDF to Emacs, a Windows command window show up ...
2
votes
1answer
352 views

Org export to pdf inserts ^I for indentation in code

I have worked around the problem by customizing org-src-preserve-indentation to true, but by default when I export my code snippets to pdf, My code winds up looking like this: void foo() { ^I//bla ...
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
836 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?
2
votes
1answer
428 views

PDF doc view flickers continously

I just configured my emacs to display PDFs using doc view. But the problem is that the display flickers continuously. It seems that doc view is constantly refreshing the frame leading to an unpleasant ...
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-...
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 ...
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 ...
17
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. ...