Hot answers tagged

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 ...
elethan's user avatar
  • 4,765
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 ...
Guilherme Salomé's user avatar
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.
Constantine's user avatar
  • 9,082
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 ...
EFLS's user avatar
  • 1,562
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)))
Andrzej Pronobis's user avatar
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 ...
EFLS's user avatar
  • 1,562
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} \...
Dox's user avatar
  • 965
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 ...
Paul Stanley's user avatar
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's user avatar
  • 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
John Kitchin's user avatar
  • 11.6k
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.
jdtonkin's user avatar
  • 605
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', ...
Tyler's user avatar
  • 21.9k
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
Sean Allred's user avatar
  • 6,871
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 ...
theldoria's user avatar
  • 1,835
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 ...
JeanPierre's user avatar
  • 7,363
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-...
John Kitchin's user avatar
  • 11.6k
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 ...
Tyler's user avatar
  • 21.9k
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]
rasmus's user avatar
  • 2,712
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 ...
erikstokes's user avatar
  • 12.8k
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}
Niclas Börlin's user avatar
12 votes

org-mode ignore heading when exporting to latex

Add this: #+EXCLUDE_TAGS: noexport Then add the tag you specify: * Fake heading :noexport:
jdtonkin's user avatar
  • 605
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 ...
Dieter.Wilhelm's user avatar
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 ...
VanLaser's user avatar
  • 576
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 \...
Dox's user avatar
  • 965
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)
Anntoin Wilkinson's user avatar
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 ...
Tobias's user avatar
  • 32.8k
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: \[ \...
mutbuerger's user avatar
  • 3,454
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: ...
Tobias's user avatar
  • 32.8k
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 ...
Philopolis's user avatar
  • 1,124
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-...
JeanPierre's user avatar
  • 7,363

Only top scored, non community-wiki answers of a minimum length are eligible