3
votes
Accepted
How do I force SVG figures to appear inline on a white background?
Add this to your .emacs, followed by
(setq org-inline-image-background "white")
Credit for this answer: NickD
3
votes
Accepted
How can I make Org-mode's code-block output into another code-block in a different language?
You can use the :wrap header to do that:
#+BEGIN_SRC python :var table=tmp_table :hlines no :results output :wrap SRC elisp :results_switches ":tangle /tmp/tmp.el :noweb yes"
...
3
votes
orgmode image export side by side to both latex and html
EDIT
As mentioned in the comments, the 'original' solution does not exclude the 'HTML/LaTeX' headlines from the HTML TOC.
This can be fixed by filtering the arguments passed to the org-html--toc-text ...
2
votes
Accepted
exporting org-mode tags in latex in separated boxes
The default function uses mapconcat which applies a function to each element of a list and then concatenates the results into a single string with an optional separator:
...
(and tags
(...
2
votes
Accepted
Different spacing in table of contents in Org-Mode Beamer export
Following @samcarter_is_at_topanswers.xyz suggestion, let's add a plain option to the main outline frame. You can do that by customizing the variable org-beamer-outline-frame-options or by adding a ...
2
votes
Accepted
Adding some padding for LaTeX fragments in Org mode
I came up with the following solution, which may not be ideal, but does exactly what I want:
(defun org-latex-clear-newlines-around-equations (backend)
(when (org-export-derived-backend-p backend '...
2
votes
Accepted
Pointing Emacs to LaTeX under zsh (for org-latex-export-to-pdf)
Try this:
(setenv "PATH"
(concat
"/Library/TeX/texbin/latexmk/" path-separator
(getenv "PATH")))
Perhaps PATH can be inherited from Emacs when ...
2
votes
orgmode image export side by side to both latex and html
A slightly more manual process, but one that does not require any additional mechanism is to use tags and the variable org-export-exclude-tags whose default value is the list ("noexport"). ...
2
votes
AUCTeX: Some general macros/command missing from auto-completion/macro insertion
As already explained by @gusbrs it was a typically beginners mistake. I was sure that every LaTeX macro could be invoked with C-c, RET (and am still convinced that this would be less confusing).
Now I ...
2
votes
How to get the starred version of a latex section on org-mode?
I found it: I need to add the unnumbered property to the headline
* Section with number
Text of numbered section
* Section without number
:properties:
:unnumbered: t
:end:
Text of unnumbered section
1
vote
How to tangle code blocks from an org file, compile the output, and open the result, with a single command?
Thank you @NickD, I managed to build a function from the full-path (cdr (assq :tangle (caddr (org-babel-get-src-block-info)))) command that you provided here.
Here it is:
(defun mda/tangle-tex-...
1
vote
Why are LaTeX previews oversized when using Imagemagick but not when using Dvipng?
Hi!
I had the exact same problem yesterday and I think I've found a (somewhat hacky) solution today.
Explanation
The command that gets executed depending on what you set for org-preview-latex-default-...
1
vote
Suppress empty lines around `align` in latex export from `org-mode`
I've asked a similar question here and answered myself there, but I feel like that solution is less ideal than what I had hoped, and instead wrote something better. Below is a function that should be ...
1
vote
Accepted
Always replace " with \enquote{ or }
AUCTeX provides an interface for this: Write your own AUCTeX style file which corresponds to your own custom LaTeX class file. Suppose the name of your custom class is classname.cls. A simple ...
1
vote
Accepted
org-babel latex picture resolution very low
Try the following:
#+HEADER: :fit yes :imagemagick yes :imoutoptions -geometry 800 :iminoptions -density 300 -background white -alpha remove
If you have multiple :iminoptions, the last one wins and ...
1
vote
Accepted
How to make monospace | (vertical bar) character in Orgmode table?
Instead of using \vert, as the Org mode manual recommends, in order to put a vertical bar inside a table so that it won't get confused with a table column delimiter, you might try \textbar: it's for ...
1
vote
How can I make Org-mode's code-block output into another code-block in a different language?
Although this is not an answer to the exact question, why not use elisp directly?
#+NAME: tmp_table
| key | trans | description |
|-----+----------+-----------------------|
| a. | \alpha ...
1
vote
Accepted
How to implement a function in `quail-define-rules` (for `set-input-method`)?
As @phils pointed out the list of files/function that used this functionality.
From them I used quail-japanese-switch-package in quail/japanese as my reference. And following function work somehow (...
1
vote
How to implement a function in `quail-define-rules` (for `set-input-method`)?
If you keep reading...
If TRANSLATION is a Quail map or a function symbol which returns a Quail map, it is used to handle KEY.
You were passing a lambda form instead of a symbol. You need to define ...
1
vote
Accepted
Remove default org-mode LaTeX preamble when rendering
The problem is that you specify \documentclass as a #+LATEX_HEADER in your setup file. Instead, you should specify it in two pieces, using #+LATEX_CLASS and #+LATEX_CLASS_OPTIONS[1]:
#+OPTIONS: toc:...
1
vote
Accepted
How to "Org LaTeX Exporting (to PDF)" only current subheading from elisp function?
Oops sorry, it was too trivial:
(org-latex-export-to-pdf nil t)
When the 2-nd argument is non-nil as like above, it exports only subtree.
/However, not sure why it fails to produce PDF (at least in ...
1
vote
Accepted
GNU-Calc: How to change default multiplication symbol (\times) with (\cdot) in LaTeX language display mode
I realized fixing this from the latex side (changing symbol behind \times) is far more easier than customizing it from calc's LaTeX display mode.
So I asked it from TeX stack exchange about how to ...
1
vote
Accepted
Why is the ToC missing in org-mode LaTeX output?
Run Twice
One solution is to configure org-latex-pdf-process to run LaTeX twice.
(setq org-latex-pdf-process
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
...
1
vote
Accepted
Why does this yas-snippet (with yas-selected-text) not moving the cursor as intended?
Try this:
# -*- mode: snippet -*-
# name: parenthesis_region_()
# binding: M-r ( )
# --
\left(
`yas-selected-text`
\right)
`(deactivate-mark)`$0
UPDATE:
I've noticed that V inserts a new line in ...
1
vote
Accepted
How to export a table with dash-lines
Here's a modified filter, based on the one in the doc:
(defun my-latex-filter-table-row (text backend info)
"Modify the row as specified. Skip the modification on the header (matched with ...
1
vote
change environment in evil-tex
From the documentation, the environment keymap for multiline* is M.
So for example from inside your equation environment in evil-normal-state, you can change the equation environment to multiline* ...
1
vote
Accepted
Ebib: note field
I'm not sure where exactly you run into problems. As you mention, in Ebib you can press "N" to create a note for a bib entry and this note is stored in a separate file. Moreover, a bib entry ...
1
vote
orgmode image export side by side to both latex and html
Just adding my own 'solution' here as well in case it helps anyone.
Instead of trying to show/hide tags or strip out specific headlines, we do the following before parsing or processing the file:
...
1
vote
Yasnippets: loading two major modes (`org-mode` and `LaTeX`)
You can see what the yasnippet repo has to say about this.
Basically, if you put a .yas-parents file (yes, a hidden file) inside your snippets/org-mode/ directory and as the content of said file you ...
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