Questions tagged [pdf]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
24 views

How do I Include plain text file org-mode as is for LaTeX export?

I'm using #+INCLUDE: "./file.txt" to organize documents but including files this way is messing with linefeeds on org-mode export to LaTeX/Pdf. Is there a property or attribute that could ...
0
votes
1answer
85 views

Emacs Org mode export to PDF headines become bold

Good day! New emacs user here. I am writing a contract in org mode and exporting it to PDF (assume that currently no latex plugins or settings are applied(in my org file heading) to the document as ...
0
votes
0answers
55 views

How to correctly export to pdf org-roam files

I have three files A, B and C. A is a table of contents with links to B and C that have various information, the problem is I want to export a pdf with the content of A, B and C together but org-latex-...
1
vote
1answer
125 views

org-link to the exact page-position in a pdf file

Newest EDIT I think my question wasn't very clear, so I'm trying to put some details. With pdf-tools opening pdf files withing Emacs (PDFview buffers) works great. What I like is to get an org-link ...
0
votes
2answers
82 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
1answer
30 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 ...
0
votes
0answers
28 views

Export Org-Mode tree just as is to PDF/HTML

Say if I have a org-mode document with org-indent-mode enabled. The document will look like the following in the Emacs buffer. Is it possible to export this to a PDF or HTML that looks exactly the ...
0
votes
0answers
17 views

How to export tables in a xltabular environment to TEX/PDF without xltabular being nested in a "table" environment?

My goal is to have a table, which can be customized with tabularX (width == textwidth), can break over multiple pages and is able to have zebra stripes (xcolor). I tried many packages, even the (...
0
votes
0answers
52 views

Unable to install pdf-tools on spacemacs

Running Spacemacs 0.300 on Emacs 27.2. When I try installing pdf-tools by adding pdf-tools to dotspacemacs-configuration-layers, it produces an error: * Testing settings in dotspacemacs/layers [[file:/...
0
votes
0answers
45 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
1answer
271 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 ...
1
vote
1answer
48 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 ...
0
votes
0answers
39 views

pandoc-mode ignores the pdf-engine option

I'm using the pandoc-mode package for easy conversion between multiple formats. I set the pdf-engine option in pandoc-mode to xelatex, but when I am trying to convert a markdown file to a PDF, pandoc-...
1
vote
0answers
50 views

How to edit a documents outline in pdf-tools?

By pressing o you can open the outline for the pdf document. Is there any way you can also add new sections with the corresponding pages to this outline?
0
votes
0answers
60 views

Org-mode convert web link to PDF

I am trying to write two functions to do these: Function 1: When the point is on a link (in an Org file), generate a PDF from that link (I am thinkng of using wkhtmltopdf. Side question: does ...
3
votes
1answer
167 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 ...
0
votes
0answers
29 views

Epa-sign-file --clearsign option

I would like to sign a pdf file using epa from within emacs using the --clearsign option from gpg. Is this possible? epa-sign-file creates an armor file, so I assume that it needs to be tweaked ...
3
votes
0answers
123 views

The export of external links in org files to pdf and html files

I have a problem with the export of external links in org files to pdf and html files. Let's say I have the two org files in the same directory: file1.org = here is the label of file1: <<label&...
2
votes
0answers
308 views

Open PDF files with pdf-tools does not work

I want to use pdf-tools to read my pdf with emacs. I am on Emacs 27.1 with spacemacs 0.300.x. I have pdf-tools as a package in my .spacemac file and also require '(TeX-view-program-selection '((...
0
votes
0answers
35 views

pdf-view-midnight-minor-mode does not change background color

The pdf (black text on white background) I'm currently reading in PDFView with pdf-view-midnight-minor-mode enabled only changes the color of the text from black to gray but the background remains the ...
1
vote
1answer
200 views

How to use Emacs Application Framework as Default PDF viewer?

I recently discovered the Emacs Application Framework, which works quite nice for me. The only thing that's bothering me is, that I need to explicitly call eaf-open on a file, to open it with the ...
0
votes
0answers
107 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 window horizontally after running C-c C-c. So far, I've created a hook to execute ...
3
votes
1answer
2k 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 ...
2
votes
0answers
95 views

Directly transfer underlined phrases from pdf to org-mode?

I'm learning emacs (on spacemacs) and focusing on orgmode. Is there a way to transfer what you underline in a pdf (like in skim) directly as text in orgmode. In other words, when you underline a ...
0
votes
0answers
53 views

LaTeX pstricks pdf compilation without any specific configuration

I changed the auctex style file pstricks.el (from lines 779-784) (TeX-add-style-hook "pstricks" (lambda () (unless (or (member "pst-pdf" TeX-active-styles) (eq TeX-engine ...
1
vote
1answer
31 views

difference between properties and tags in the upper right corner

I dont get the difference between the actual property, enabling the respective funtionality and the tag on the right upper side? *** Number 5 :B_example: :...
0
votes
1answer
165 views

Export resume.org to both pdf and html

I've been maintaining my resume in orgmode for some time now, with export to pdf. I just decided it would be nice to also export to html which has uncovered a problem. I'm using headings to list my ...
0
votes
1answer
626 views

Using org-ref to download pdfs using sci-hub as a fallback

I've developed a solution that allows to download pdfs from sci-hub as a fallback option to the functions provided by org-ref. I am a newbie to elisp, so please feel free to update this answer as ...
1
vote
1answer
682 views

Display latex output natively in emacs in a vertically split window

Running Doom Emacs 2.0.9 on Emacs 26.3. Currenly, when I do TeX-command-run-all on a tex file, it opens the output in okular pdf viewer in a separate KDE window. I was wondering if it is possible to ...
2
votes
1answer
196 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 ...
1
vote
0answers
50 views

Get position in a pdf-page by clicking for annoting a pdf with latex

In https://tex.stackexchange.com/a/85676/4011, it is illustrated of how to annotated a pdf by using the latex package pdfpages, loading the pdf as a background layer and then use tikz nodes to make ...
1
vote
0answers
44 views

If text is copied from pdf on yank run unfill-paragraph

It's similar problem Copy and Paste From PDF to Emacs as Plain Text When I copy text from pdf and yank to org mode I have to run manually unfill-paragraph function to remove unnecessary newlines & ...
1
vote
1answer
81 views

How to include headers when exporting a message as PDF?

As a follow-up to this question about exporting as PDF, I want to export a message as a PDF. One answer in that thread views the message in a browser window and I can then save as a PDF from the ...
2
votes
1answer
241 views

How to avoid export org-mode header title

I am translating a quite flat document (only has a title as a level 1 heading). I am using org-mode and I am creating a level 2 heading for each page to easily find the content when I am reviewing the ...
0
votes
0answers
850 views

export org to pdf not working: PDF was not produced

installed emacs and Latex ()texlive and texlive-latex-extra) on ubuntu. Exported an Org file to PDF with no success. Exporting via org-export-dispatch and selected [l] export to latex and [O] as PDF ...
1
vote
0answers
127 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 ...
1
vote
1answer
20 views

Exporting Org to PDF while displaying Regex literal strings

I've been searching for the past couple of days to a solution to an issue I'm having. Hoping somebody who is more apt with emacs/exporting could provide some insight. Upon exporting an .org file (C-...
4
votes
1answer
191 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 ...
6
votes
1answer
2k 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 ...
3
votes
1answer
384 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-...
0
votes
0answers
97 views

org-mode: Remove loading message when exporting HTML and then converting to PDF

My goal is to export an HTML document and convert it to a PDF so I can have some of the advanced syntax highlighting and source code background coloring options in a PDF file. It seems to be working ...
1
vote
0answers
103 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
0answers
37 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
159 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
139 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
596 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
81 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 ...
4
votes
1answer
897 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
384 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} ...
2
votes
1answer
415 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 ...