30
votes
Hide \author, \date, and \title when exporting to pdf with org-latex-export-to-pdf
OK, thanks to @wvxvw putting me on the right track I figured it out.
You can get rid of the author and date with:
#+OPTIONS: author:nil date:nil
The Org Manual says that you can also toggle title ...
28
votes
Font size control of LateX previews in Org files
Expanding Constantine's answer.
You can use C-h v org-format-latex-options RET to understand what can be changed in this variable. One of the options is the scale. In the help page in Emacs you can ...
20
votes
Accepted
Font size control of LateX previews in Org files
You can customize the variable org-format-latex-options to increase :scale.
See the Org Manual, 11.7.4 Previewing LaTeX fragments.
20
votes
org-mode ignore heading when exporting to latex
For others who stumble upon this question, the following is available. As hinted to by yantar92, this is included in ox-extra which is included in the org-plus-contrib elpa package.
Headers can take ...
17
votes
Is there a way to resize margins when exporting PDF in org-mode?
Another way to achieve the same effect more permanently is to modify org-latex-packages-alist to add the geometry package, as follows:
(setq org-latex-packages-alist '(("margin=2cm" "geometry" nil)))
17
votes
Accepted
Reducing LATEX_HEADER clutter at the top of my org files
You can make use of a #+SETUPFILE:
Put all of these settings in a file, for example ./setup/setupfile.org, and then include them into your document with
#+SETUPFILE: ./setup/setupfile.org
In this ...
16
votes
Accepted
Long org-export latex header
A possible solution is to write a file with the LaTeX preamble, like
%% This is the file MyTeXHeader.tex
\usepackage[main=british,polutonikogreek]{babel}
\usepackage{fontspec}
\usepackage{hanging}
\...
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
How to make emacs align and indent a bibtex entry?
When the cursor is somewhere in the entry, run the command bibtex-fill-entry (bound to C-c C-q), which will
align the fields. You may also want to set variable bibtex-align-at-equal-sign to a non nil ...

Dan♦
- 32.7k
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
16
votes
Accepted
org-mode / export to PDF: How to disable numbering for pages?
Add #+LATEX_HEADER: \usepackage{nopageno} to the top of the document.
15
votes
Accepted
how to setup Knitr workflow in Emacs?
UPDATE
As of ESS 19.04, the ess-noweb and ess-swv libraries are obsolete:
Libraries for literate data analysis are obsolete and not loaded by
default. This includes 'ess-noweb', 'ess-swv', ...
14
votes
Hide \author, \date, and \title when exporting to pdf with org-latex-export-to-pdf
You can also redefine LaTeX's \maketitle to do nothing:
#+Title: Test title
#+Author: Test Author
#+Date: [2016-03-28 Mon]
#+LATEX_HEADER: \renewcommand\maketitle{}
* hello
test text
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 ...
13
votes
Accepted
Exporting unicode characters to pdf using latex from org mode
You need the latex file to use \usepackage[utf8x]{inputenc} rather than the default \usepackage[utf8]{inputenc}. This works with standard (pdf)latex.
For org export to generate this you have to set ...
13
votes
Accepted
How to reference source blocks in org text
If you use org-ref (https://github.com/jkitchin/org-ref), you can do this:
#+caption: test label:some-source-code
#+BEGIN_SRC python
for i in 1:10:
print i
#+END_SRC
See Listing ref:some-...
13
votes
Accepted
Unnumbered section among numbered ones in Org-mode
You can turn off numbering for a section by adding the property :UNNUMBERED:. i.e.:
* Heading 1
* Heading 2, unnumbered
:PROPERTIES:
:UNNUMBERED: t
:END:
* Heading 3
[This is a dupe ...
12
votes
Accepted
Change figure environment options
Modify org-latex-default-figure-position to change the default, or use the following on the specific elements,
#+attr_latex: :placement [!tbh]
12
votes
Accepted
org-mode different latex document class
By default org-mode only knows about the article, report and book classes. To teach it a new one you have to add an entry to it to org-latex-classes. I'm not familiar with tufte-book but most of the ...
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}
12
votes
org-mode ignore heading when exporting to latex
Add this:
#+EXCLUDE_TAGS: noexport
Then add the tag you specify:
* Fake heading :noexport:
11
votes
Accepted
Change org-mode table style just for LaTeX export
I'm doing mainly tables with the latex packages #+LaTeX_HEADER: \usepackage{booktabs}, \usepackage{xcolor}, \usepackage{colortbl} and \usepackage{siunitx}. Together with export attributes. For ...
11
votes
Accepted
How to add annotation in PDF src block like in this screenshot?
This answer is focused on what I'm interested in, therefore it uses minted for source code listings with Org, and tikzmark as the package that can "mark" a place in your listing so that you can later ...
11
votes
How to include "titlepage" before the Latex Org Mode document?
Use the shortcut <lTAB to get the LaTeX export
#+BEGIN_EXPORT latex
#+END_EXPORT
Then introduce the code there
#+BEGIN_EXPORT latex
\begin{titlepage}
\begin{center}
{\Large Companies Act 2012 \...
11
votes
How to replace matching parentheses?
For those using evil you can use evil-surround which gives you the c s motion (change, surround).
For your example then just do c s ( [ (motion, from type of paren, to type of paren)
11
votes
Accepted
Efficient workflow to write a book in Org-mode
I think you are actually looking for publishing of projects.
This does not only work for HTML but also for LaTeX.
Projects are managed in org-publish-project-alist. Each entry of that list is one ...
10
votes
Accepted
Export org-mode tables to LaTeX mathematics matrices?
Take a look at (info "(org) LaTeX specific attributes"). The following table attributes
#+attr_latex: :mode math :environment matrix
| a | b |
| c | d |
will export a LaTeX matrix in math mode:
\[
\...
10
votes
Accepted
Yasnippets: loading two major modes (`org-mode` and `LaTeX`)
You can load an additional modes via yas-activate-extra-mode in the hook of the major mode (it also works with yas-global-mode turned on).
Just copy-paste following elisp snippet into your init file:
...
10
votes
Accepted
Emacs Org-mode + Letter class = Unknown latex class 'letter'
Although the answer by @Robert is perfectly correct, just a more detailed answer: Org is only "aware" of (i.e., can only handle/export) the LaTeX classes defined in the variable org-latex-classes. If ...
9
votes
Accepted
How can I customize the LaTeX export of org babel #+RESULTS?
There may be a "smarter" way but if you don't use EXAMPLE blocks for other purpose you could instruct the latex exporter to export them as lstlisting environment, using export filters.
(defun my-...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
latex × 847org-mode × 389
org-export × 247
auctex × 218
pdf × 48
preview-latex × 44
org-babel × 32
html × 25
beamer × 25
tex × 23
font-lock × 19
indentation × 18
org-table × 18
reftex-mode × 16
spacemacs × 15
bibtex × 15
images × 14
key-bindings × 13
init-file × 13
syntax-highlighting × 13
replace × 11
math × 11
latex-header × 10
org-ref × 9
debugging × 8