20
votes
How to change style of hyperlinks within PDF published from org-mode document?
While the previous answers are helpful, I'll add a bit more of an explicit recipe for Org mode.
By default, Org mode adds a rather unhelpful hypersetup section. You can prevent this addition by ...
20
votes
Accepted
How do I get rid of the red boxes around the links in the TOC?
Following the links given here, you can get rid of the ugly red boxes by adding the following line in the beginning of your org file:
#+latex_header: \hypersetup{colorlinks=true}
If red isn't your ...
16
votes
Accepted
How to have wrapped text when exporting from org to Latex?
From a LaTeX point of view, these are different cases.
In the first case, LaTeX isn't going to wrap -- and it shouldn't! A "verbatim" environment, which is what source-code is set in, respects lines ...
16
votes
Accepted
Changing default font size in Org LaTeX export
I think you can do this with:
#+latex_class_options: [10pt]
and
#+latex_header: \usepackage{setspace}
#+latex_header: \onehalfspacing
14
votes
Accepted
How do I limit the width of a table or columns in org-mode PDF export?
You may try something like this:
#+ATTR_LATEX: :environment longtable :align |l|p{10cm}|l|
| | <30> | |
| Column | Wide ...
12
votes
Accepted
Exporting Org in Landscape
What about putting the following in the export options:
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [landscape]
#+LATEX_HEADER: \usepackage[a4paper]{anysize}
10
votes
read e-books in Emacs
Try nov (installable via melpa). It is a reasonable start for reading ePUBs in Emacs.
9
votes
Accepted
Add cell background colors to org-mode table in pdf export
Getting inspiration from this answer, the following works. You must install the xcolor package as instructed there.
#+LATEX_HEADER: \usepackage[table]{xcolor}
* table test
| hi | there ...
8
votes
Accepted
Recolouring PDFs
Yes, there's a dark ("midnight") theme with pdf-tools.
Right-click somewhere within the displayed pdf, go to "Render Options" in the menu (about half-way down) and select "Midnight mode".
...
7
votes
Accepted
org-mode Beamer export: can't change format of title page and TOC
Instead of #+LaTeX: you should try #+BEAMER_HEADER: for all beamer specific configuration lines.
For example: #+BEAMER_HEADER: \setbeamertemplate{navigation symbols}{} removes navigation symbols in ...
7
votes
Accepted
Org-mode file hyperlinks always use doc-view, can't force it to use external pdf viewer
I fixed the problem by using M-x customize-variable org-file-apps and adding a cons-cell with Extension: \.pdf\' and Command: evince %s at the top.
Oddly enough, links starting with file+sys: still ...
6
votes
convert a text buffer to a pdf file?
You can do C-u M-x ps-print-buffer to print current buffer to a PS file and then pipe it through ps2pdf.
6
votes
convert a text buffer to a pdf file?
This does not address the specific issue of bookmarks in the PDF, but does address the general problem of converting buffers to PDF.
If you want to get a PDF "screenshot" of the buffer as you ...
6
votes
Printing/exporting to PDF from text-mode
Printing
I'm not sure what you've tried, but the best start would probably be ps-print-buffer-with-faces. This answer provides a convenient wrapper for generating a pdf file (copied below):
You ...
6
votes
Accepted
Org Mode. Set separation length between elements of a list
PDF export is done by exporting the org mode document to LaTeX and then processing the LaTeX document to PDF. There is nothing on the org mode side to control that spacing but org mode does provide ...
6
votes
Accepted
How can I reliably create latex classes in org mode?
Your init file defines a notes class that can be used by org when exporting to LaTeX:
#+LATEX_CLASS: notes
It works fine, in the sense that it produces a latex output that starts out like this:
\...
5
votes
Org-mode file hyperlinks always use doc-view, can't force it to use external pdf viewer
I added
(add-to-list 'org-file-apps '("pdf" . "evince %s"))
to my init-file. Now C-c C-o opens any PDF in evince and C-u C-u C-c C-o opens them in doc-view.
5
votes
Accepted
How to jump to a page in `DocView` mode when a pdf contains a roman numeral numbered introduction?
In pdf-tools you can type M-g l (pdf-view-goto-label), which asks for a page-label, which is usually equal to the displayed page-number.
5
votes
Accepted
how to enable pdflatex --shell-escape switch in org-export dispatcher interface
Something like this in your init file should do the trick.
(setq org-latex-pdf-process
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"bibtex %b"
"pdflatex -...
5
votes
Accepted
Select a word in a PDF by double-clicking on it (with pdf-tools)
At first, note that pdf-sync binds mouse-double-1 in the minor mode pdf-sync-minor-mode to pdf-sync-backward-search-mouse. So one should probably only bind it in a minor mode that can be deactivated ...
4
votes
How to change style of hyperlinks within PDF published from org-mode document?
I know this is old and the existing answers are already great. But in case anyone is searching for this and needed a bit more control, here's how to change the hyperref template.
(customize-set-value '...
4
votes
Working with LaTeX in Spacemacs: can PDFs be seen in a buffer, rather than via external PDF reader?
It's been ages since I set this up for myself, but here's the code I use. Essentially, it's just registering Emacs itself (or, rather, emacsclient) as an external viewer.
(add-to-list 'TeX-view-...
4
votes
Working with LaTeX in Spacemacs: can PDFs be seen in a buffer, rather than via external PDF reader?
Here is how I ended up solving the problem:
(setq TeX-view-program-selection '((output-pdf "PDF Tools"))
TeX-view-program-list '(("PDF Tools" TeX-pdf-tools-sync-view))
TeX-source-correlate-start-...
4
votes
Export to PDF with index bookmarks and unnumbered sections
Here is how I got it working. This produces the PDF index, no table of contents in the document, and no section numbering.
#+OPTIONS: toc:nil
#+LATEX: \setcounter{secnumdepth}{0}
Note that I am ...
4
votes
Accepted
How to change formatting TODO in Org-mode's Latex PDF output
A similar question was answered here, but I will write a slightly improved version here, namely one that uses the 'todo-type' argument (as was suggested in the comments of the linked answer). The ...
3
votes
pdf-tools indirect buffers
Indirect buffer need special support, since their buffer-file-name is
nil. But this is currently not implemented in pdf-tools. So it seems
that the answer is no.
3
votes
Accepted
Make pdf-tools remember the page I was on
The pdf-view-restore works for me and is available on MELPA. But the pdf-view-restore github page seems to provide more useful configuration instructions.
3
votes
Accepted
PDF doc view flickers continously
I had a similar problem with PDFView and it turned out that the flickering was caused by Blink-Cursor mode. Try to disable this minor mode in the buffer.
3
votes
Install Pdf-Tools on Emacs MacOSX
I have poppler and automake installed using homebrew, however pdf-tools-install failed with: no such program autoreconf. I retried pdf-tools-install from tty/terminal Emacs and everything built ...
3
votes
Display PDF images in org-mode
There is now a package on melpa just for this purpose: org-inline-pdf.
It is developed at github, where you also find usage information.
https://github.com/shg/org-inline-pdf.el
Note that this package ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pdf × 164org-mode × 69
org-export × 50
latex × 47
pdf-tools × 26
docview × 16
auctex × 14
org-babel × 7
html × 6
images × 6
spacemacs × 4
init-file × 4
osx × 4
beamer × 4
org-table × 3
mu4e × 3
hyperlinks × 3
org-ref × 3
odt × 3
python × 2
debugging × 2
microsoft-windows × 2
terminal-emacs × 2
email × 2
gnus × 2