Skip to main content
Share Your Experience: Take the 2024 Developer Survey
32 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,825
30 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
21 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,602
18 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,602
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
  • 985
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
  • 33.1k
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.9k
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
  • 635
14 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.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,941
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,845
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,475
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
  • 22.3k
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.9k
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
  • 635
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
  • 985
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
  • 33.2k
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,504
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
  • 33.2k
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,134
9 votes

Reducing LATEX_HEADER clutter at the top of my org files

Rather than use #+SETUPFILE: as per the accepted answer, if you're just interested in LaTeX output, then you could add the following instead: #+LATEX_HEADER: \input{header.tex} In header.tex (or ...
jdtonkin's user avatar
  • 635
8 votes
Accepted

How to control newline and indent when export to LaTeX from org-mode file?

There are two methods depending on whether you would like to have no indents in the file at all or only prevent specific lines from being indented. Both methods use the latex code insertion discussed ...
woolyak's user avatar
  • 96
8 votes
Accepted

Formatting of usepackage commands in LaTeX document

If you want a command to stay in a line on its own, add it to LaTeX-paragraph-commands: (setq LaTeX-paragraph-commands '("documentclass" "usepackage")) But, honestly, I didn't ever see anyone trying ...
giordano's user avatar
  • 3,255
8 votes
Accepted

org-mode special blocks latex attribute

The following example #+ATTR_LATEX: :options [Mean Value Theorem] #+begin_theorem This is a theorem #+end_theorem produces \begin{theorem}[Mean Value Theorem] This is a theorem \end{theorem} The :...
Juancho's user avatar
  • 5,465

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