New answers tagged

0

This discussion thread is related to my question. A solution that seems to work for single line Latex commands is to use the in-buffer setting #+LATEX. In the example mentioned in the question, we would have: Which correctly exports to:


0

You can retain folding by avoiding using a section at all and instead use a drawer. The contents of the drawer will still be exported but the drawer name will not.


0

The answer to my problem was a comment from The_Blackbeard user at reddit. Have you taken into account that while emacs-lisp-mode derives from prog-mode, tex-mode derives from text-mode? Once I had that information the rest was easy to fix.


1

Org can be told to treat text as verbatim either by wrapping it in '=' markup (for words), or in a #+BEGIN_EXAMPLE/#+END_EXAMPLE block. See Emphasis-and-Monospace and Literal-Examples for details.


2

The line "The following pre" is the first line of its paragraph (it's the only line of its paragraph), and is thus indented. Try a longer paragraph before the source block to see that it does match the indentation of the subsequent lines of the paragraph, just not the first one. If you don't want the first line of the paragraph indented change it to: \...


1

Yasnippets can execute arbitrary lisp code writing it inside back quotes In your case you can write something like `(if (re-search-forward "regex" nil t) "some text" "another one")`


0

As an alternative, if you use lsp-mode (https://github.com/emacs-lsp/lsp-mode), there is recent support for LaTeX via the Digestif LaTeX language server (https://github.com/astoff/digestif).


Top 50 recent answers are included