Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [pdf]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
119 views

Using org-ref to download pdfs or djvu using sci-hub and libgen as fallbacks

As a continuation of my previous post, I've developed a solution that allows to download pdfs or djvu files from sci-hub or libgen as fallback options to the functions provided by org-ref. I am a ...
1 vote
1 answer
30 views

How can I return/print all of my code's results with the code in Org-Mode?

Suppose that I type the following code in to a REPL. (+ 1 2) (+ 1 3) At the end, my REPL looks like * (+ 1 2) 3 * (+ 1 3) 4 I want the same when exporting org-mode to PDF, but I don't get it. This ...
0 votes
0 answers
29 views

Can identical example and source blocks be made to look different in a PDF export?

I use both #+begin_src and #+begin_example blocks in my org-mode markup that gets exported to PDF. If I put identical text in to these blocks, then they look identical in the PDF export. Is there any ...
0 votes
0 answers
51 views

Interacting with Okular (backward search)

I use Auctex to edit my LaTeX files. I've configured Auctex to use Okular as my PDF viewer, and I've configured Okular to use Emacs (emacsclient) as its editor. When I compile a source file with C-c C-...
2 votes
1 answer
134 views

Extract pdf information from papers into org

I like to use org to take notes on PDFs. I find Zotero a bit "scattered" and too linked to the papers themselves rather than just being notes. However, manually extracting information from ...
1 vote
2 answers
557 views

How to export a gantt chart in pdf or png format using taskjuggler and/or org-mode

I managed to get taskjuggler up and running along emacs/org-mode. After reading the manual entries here and here I can export my project into html but I cannot export the Gantt chart into pdf, as ...
1 vote
1 answer
121 views

mu4e how to convert msg to pdf?

I try to convert to pdf with this following code found on Emacs SE: (defun mu4e-action-save-to-pdf (msg) (let* ((date (mu4e-message-field msg :date)) (infile (mu4e~write-body-to-html msg))...
2 votes
1 answer
215 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 ...
0 votes
1 answer
57 views

How to use Sioyek as the default pdf viewer in spacemacs

I want to be able to link to pdf files in spacemacs and open them with Sioyek. This post: https://github.com/ahrm/sioyek/discussions/347 seems to almost solve my issue but I have no idea where to put ...
1 vote
2 answers
118 views

Create table with circles around words and hiding some of the grid lines in Emacs Org-mode

I am new to Emacs. Is there any way to create a table in Org mode like in the example table below. Particularly I'd need to be able to circle some of the words and hide some of the grid lines. The end ...
0 votes
1 answer
81 views

debugging helm-bibtex cannot open PDF with the default emacs viewer

I cannot get helm-bibtex open pdfs from the helm-bibtex buffer with all bibliography nicely listed in an organized view showing which reference has a pdf or not. I usually get this view by M-x helm-...
22 votes
3 answers
16k 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
1 answer
138 views

org-roam: export to pdf: inline node links

I am using orgroam, because it allows me to focus on smaller steps. But, sometimes I want to export a note to pdf but inline all links to other nodes. So lets say I have a node called main that ...
0 votes
1 answer
52 views

Why does adding a return value to my Python code stop it from printing?

Load up Emacs in the default modes, i.e. emacs -Q. After this, make a new .Org file with the following contents and run the Emacs Lisp code. (setq org-babel-python-command "python3") (setq ...
0 votes
1 answer
651 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's buffer window horizontally after running C-c C-c. So far, I've created a hook to ...
0 votes
0 answers
8 views

don't show images in html or local links in pdf-latex

I want to transfer folders with documents with Syncthing to the Android tablet, the documentation is made in orgmode and I export to PDF or HTML. But they don't resolve local addresses in the tablet; ...
0 votes
0 answers
43 views

Save LaTeX/AucTeX generated auxiliary files to a separate directory EXCEPT for the PDF file

I am using AucTex in Emacs to compile my LaTeX files. Is there a way to keep just the PDF file in the current directory and send all the other auxiliary files to a separate folder? I have set TeX-...
10 votes
9 answers
11k 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
1 answer
57 views

How to hide the "Contents" header in the pdf output

Every time I would export the org doc as a PDF I would get this random "Contents" tag before the table and I am not sure how to remove it. I attached below an image of what I mean There's ...
4 votes
1 answer
333 views

How to change formatting TODO in Org-mode's Latex PDF output

I want to change font of TODO/DONE in PDF output of my Org-mode. Is there any way to change font of TODO/DONE keywords (also perhaps also change colors)? UPDATE: Using dalanicolai answer below, I ...
1 vote
2 answers
244 views

Select coding system when opening PDF files

I am facing an issue when opening PDF files in Emacs. I always get prompted for "Selecting the encoding system (default raw-text)". The prompt comes up twice. The content of the *Warning* ...
0 votes
0 answers
45 views

pdf opening issue in emacs terminal

I am a new user of emacs. I have installed emacs 27.1 in my Ubuntu 22.04. I can successfully open my ms.tex file in emacs (terminal). After that, I press the C-c C-c command and then I type my file ...
1 vote
2 answers
64 views

Looking to name pdf files with a string different to bibkey

I recently started to incorporate Emacs as part of my workflow. Specifically, I am looking forward to a system that allows me to maintain and manage my bibliography. For this purpose I am now using ...
1 vote
2 answers
2k 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
0 answers
81 views

How to have transparency in frames, but disable transparency in PDF windows?

Basically what the title said. I like to have some transparency. (got it with following line) (add-to-list 'default-frame-alist '(alpha 95 95)) However, this makes PDF buffers also transparent, which ...
1 vote
0 answers
126 views

Problems enabling pdf-tools continuous-scroll with quelpa

My goal is to use org-pdftools as described in this blogpost. I started by trying to make pdf-tools work with continuous scrolling, but I'm running into various problems. It is getting way complicated ...
1 vote
1 answer
152 views

Associating an org-mode file link to two possible applications when opening it

I've already asked this question here but the context I proposed was maybe too restrictive. Here is what I'm looking for on a more behavioral level. I have configured org-mode to open links with the ...
0 votes
2 answers
54 views

In Orgmode, How to export (to pdf) box-drawing characters in src-block?

I just want to export my terminal TUI app's layout in src-block. Such as following: * Heading #+begin_src text ┌─────┐ │ │ └─────┘ ┌────────────┐┌────────────┐ ┌─────┐ │ ││ ...
6 votes
2 answers
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-...
2 votes
1 answer
475 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 ...
0 votes
0 answers
58 views

emacs unable to open PDF files in Preview: "permission denied"

This is not an emacs problem so far as I'm aware, and only occurred after I upgraded from macOS Catalina 10.15.? to 10.15.7. Any help resolving this issue is greatly appreciated. I'm using helm-bibtex ...
2 votes
1 answer
2k views

`doc-view-mode` for PDFs not working

For some reason I cannot view PDF files in doc-view-mode. Supposedly if I open a PDF file in Emacs, it should automatically open in the doc-view major mode. If it can't be opened in doc-view, then ...
0 votes
1 answer
41 views

How to prevent pdf-view from rounding highlight borders?

When I highlight text in a PDF file in Emacs¹ using PDFView² the borders of the highlighed text are rounded: Is it possible to get straight borders, like in masterpdfeditor³?: Notes GNU Emacs 28.2 (...
1 vote
1 answer
42 views

Would it be possible to use different note symbols with pdf-tools?

When annotating a pdf in pdfview with the pdf-tools capabilities, I noticed that the symbols I can use are the same symbols evince uses. Can I use different custom symbols on i.e. text notes and if so ...
52 votes
7 answers
19k 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 ...
0 votes
1 answer
93 views

Problem with compiling PDF with ox-groff

M-x org-groff-export-to-groff works fine (exports .groff file for the org-file) However, when I try to compile pdf from org-file with (M-x org-groff-export-to-pdf) following error show: Saving file /...
0 votes
1 answer
53 views

Error when including ox-groff to init file

I'm just trying to use ox-groff package as instructed in here in orgmode.org/worg. As written on the web page, I added (require 'ox-groff) to my init.el, and executed. Then following error comes up: ...
1 vote
2 answers
243 views

pdf-view-mode - pdfs documents are blinking/flickering on scroll

I have small problem with pdf-tools - documents in pdf-view-mode are flickering/blinking on scroll. I am not well oriented about rendering, refreshing and all this stuff with pdfs. This is not about ...
25 votes
2 answers
41k 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.
0 votes
0 answers
52 views

How can I change the org export title, for PDF?

When exporting org files to pdf, is it possible to make the title that shows up in the exported document different from what is in the #+title field in the org file? For example, I have an org file ...
0 votes
0 answers
203 views

doc-view rendering of pdf files

I have emacs 27.2 installed on my M1 Macbook pro. With a lot of pdfs when I first visit the file from dired, the font rendering is badly messed up -- a lot of the characters are replaced either by ...
1 vote
0 answers
54 views

org-pdftools-open doesn't work for opening pdf links in org mode

Motivated by the question Symbol’s function definition is void: org-pdfview-open, pdf-tools are not working I would like to be able to open pdf-links in org-mode, which worked fine until a while ago. ...
0 votes
1 answer
124 views

Symbol’s function definition is void: org-pdfview-open, pdf-tools are not working

since some time I have encountered a problem with opening pdf links with pdf-tools. I am using doom-emacs and have just the line (add-to-list 'org-file-apps '("\\.pdf\\'" . org-pdfview-open))...
1 vote
2 answers
224 views

Change font in table in PDF exported from Org

I'm trying to export an Org table that contains the Unicode characters for moon phases (U+1F311 etc). Export to HTML works fine, but I just see blank spaces in the exported PDF. I know next to nothing ...
1 vote
0 answers
72 views

Org-mode expands org-special-block-extras incorrectly

I've been using org-special-block-extras to insert special blocks in org-mode which I then export to PDF through LaTeX, things such as margin notes or colored blocks. It used to work until recently (...
0 votes
1 answer
191 views

How to export org to pdf with RTL text including hebrew

I have written a short document in org and I have tried to export it to a PDF document for printing and readable formatting. I am facing some issues however since the document should include both ...
0 votes
1 answer
91 views

org-mode inline latex call

I would like to add a statement only included in LaTeX export. I know I can use the #+LATEX: prefix, but what if the statement is inlined, like this? \hfill Systemübersicht \hfill This centers the ...
11 votes
1 answer
7k 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
0 answers
80 views

Emacs sometimes freezes from PDFs

I'm currently using Emacs 27.1 running on Ubuntu 21.10. The problem I have is Emacs stop responding from time to time, but this only occurs when I open a PDF file or while I'm reading PDF books (...
0 votes
0 answers
146 views

how can you open pdf in eww?

I have seen this post Can I configure eww to use pdf-view-mode (from pdf-tools) for PDFs instead of DocView? I just noticed that when I try to open a URL thar points to a PDF in eww, it uses DocView ...