Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pdf]

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

0
votes
1answer
30 views

Org-mode export to PDF not highlighting code blocks

I am trying to use org-mode export through LaTex to get a nice PDF of my documents, but I can't get it to show highlighted code blocks through Pygments. The following is a snapshot of my configuration....
0
votes
0answers
19 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 ...
1
vote
0answers
46 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 ...
0
votes
0answers
20 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 ...
2
votes
1answer
61 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 ...
1
vote
1answer
38 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 ...
2
votes
1answer
38 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
37 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} ...
1
vote
1answer
87 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 ...
0
votes
1answer
54 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
119 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 ...
0
votes
1answer
99 views

Software to fill in a PDF document

As part of my work, I have to fill in a particular form that is provided to me. That form comes in either PDF or Word (.doc) sources. In the end, a PDF document needs to be generated. The PDF form ...
0
votes
0answers
125 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 ...
4
votes
2answers
204 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 ...
1
vote
0answers
35 views

Don't focus on evince, when compiling pdf from org-mode

I'm using Evince as my Pdf-Viewer (In a split-screen-setup) whenever i write something in org-mode and compile it as a pdf. To achieve this, i've added (add-to-list 'org-file-apps '("pdf" . "evince %...
4
votes
1answer
1k 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
2
votes
1answer
61 views

Custom ID is rendered in LaTex with org mode

I'm a noob in Emacs org mode. I convert a note of my friend's from .lyx to .tex with lyx then I use pandoc to convert it into .org. As default under heading I find: :PROPERTIES: :CUSTOM_ID: title-of-...
0
votes
1answer
88 views

Undefined control sequence \uline in exporting org-mode with underline markup to PDF using xelatex

For the following sample, #+LATEX_CMD: xelatex #+LATEX_HEADER: \usepackage{xltxtra} #+OPTIONS: ^:nil This is a _test_ The export to PDF uses xelatex would produce the following error: ! Undefined ...
3
votes
1answer
392 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 ...
1
vote
0answers
69 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)) ...
1
vote
1answer
240 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
0answers
84 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
82 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
249 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/...
2
votes
1answer
101 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
259 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
199 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
181 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
393 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
0answers
416 views

Exporting Org in Landsacpe

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
485 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
1k 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 ...
2
votes
0answers
167 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
247 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
271 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
192 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 ...
1
vote
1answer
98 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....
7
votes
1answer
1k 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
575 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
741 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| |...
3
votes
0answers
67 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: ...
6
votes
1answer
243 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 ...
10
votes
1answer
1k 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.
3
votes
1answer
412 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 ...
4
votes
2answers
515 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:...
9
votes
1answer
2k 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
432 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
119 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
100 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) ...
4
votes
1answer
688 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-...