Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Working with LaTeX documents, LaTeX coding, and LaTeX source blocks in other documents.

0
votes
0answers
11 views

org export filter

I am writing an org-export-filter to be able to use the \legend command from ccaption package in a line starting with #+caption. This way, the following code: #+attr_latex: :options angle=45 #+...
2
votes
1answer
26 views

Is there a way to export latex template to scimax template?

Scimax has already some templates for various journals. However, is there a way to convert latex templates of some specific journals (like nuclear physics A, European physical journal etc.) to org-...
0
votes
1answer
14 views

Creating table of content with the package titletoc in Org Mode for LaTex export produces strange lines of text

I use the LaTeX package titletoc to produce table of contents in some chapters or sections for Org-Mode LaTeX / PDF export with #+TOC: headlines 1 local But in the PDF file there is for example the ...
0
votes
0answers
17 views

Enabling asy-mode coloring inside a latex block

I have started using Asymptote for making diagrams in \LaTeX. Asymptote comes with its own Emacs mode for editing .asy files in which we typically write Asymptote code. However, I often write a lot ...
-1
votes
0answers
23 views

Making Org mode use a custom latex preamble

When using Latex export on a Org file (say containing only the line Blah blah), a default preamble is often inserted in the resulting .tex file which looks like this. % Created 2018-11-06 Tue 14:05 ...
1
vote
1answer
30 views

How to export LaTeX from org-mode to HTML using dvipng instead of mathjax GLOBALLY?

The doc string for org-export-with-latex describes how to select mathjax, verbatim output, or not to export LaTeX at all, although it goes further to say: If you prefer, you can also request that ...
0
votes
0answers
24 views

Limitations of latex mode inline math syntax highlighting

My Problems: In latex major mode (not Latex major mode), syntax highlighting works okay for line 1, but not for line 2. line 1 : my hypothesis is $a^2 + b^2 = c^2.$ line 2 : my hypothesis is \(a^2 ...
1
vote
1answer
17 views

How to do harvard style referencing using org-ref

I am writing a paper using spacemacs with it's org-mode to export to latex. I want to referencing using the (author, year) style for example if I had the following reference in my .bib file @article{...
-1
votes
0answers
12 views

how to transform one paragraph to a latex beamer frame?

in my buffer, i have framett something aa aa something something something other... and i hope just one touch to transform it to \begin{frame}{framett} \begin{itemize} \item{something} ...
0
votes
0answers
18 views

Latex export in orgmode export wrong latex keywords

Environment : Windows 10 emacs 25.3 orgmode 9.1.14 auctex from melpa installed yesterday Miktex portable 2.9.6753 When I export to latex, I get text which cannot be compiled to a proper pdf. Here ...
0
votes
0answers
27 views

AUCTeX annoying prime symbol

Im using AUCTeX 12.11.1 and emacs 26.1 compiled on Debian 4.9.110-3 running ok. When I introduce the ' symbol (\prime) in a math environment (this happens in LaTeX-mode only), the output is the ...
0
votes
1answer
16 views

Change location of latex options (\bibliography{}) in exported .tex file

I just spend hours trying to figure out why bibtex citations don't work. Turns out it's because \bibliography{testbib} needs to come after begin{document}. This is my test.org: #+LATEX_HEADER: \...
1
vote
0answers
17 views

adding options to org-export dispatcher

I'm trying to customize the workflow that goes from org-mode to latex export. When I launch the export dispatcher, I have four sub-options under [l]atex ... the standard ones. But I think it's ...
0
votes
1answer
53 views

Custom verbatim environments/macros in AucTeX

Here's my MWE: \documentclass{article} \newenvironment{tscode}{}{} \def\tscode|#1|{} \begin{document} \tsinline|efwe| \begin{tscode} efihw$feiw$ \end{tscode} \end{document} % Local Variables: % ...
1
vote
1answer
33 views

Displaying LaTeX equations with EWW

I've been using EWW and I noticed that it displays inline LaTeX expressions ($ ... $) but it fails to display those that have their own line ($$ ... $$). I'm attaching a print below. Have a look the ...
0
votes
1answer
28 views

Configuring faces in LaTeX mode

I use alot the M-o i shortcut (which, according to the key description, runs the command facemenu-set-italic) to emphasize parts of my text. Over the years I have changed several computers (hence OSes ...
1
vote
1answer
64 views

What is the difference or functionality between the available tex packages enumrated below

sorry to disturb you. I am trying to migrate all the workflow of writing tex files and managing citations into emacs but I'm completely lost by the overwhelmed plethora of packages and I'm not sure ...
0
votes
0answers
29 views

LaTeX code in org mode does not fontify correctly

AUCTeX has very nice font lock, I like font-latex-fontify-script most, which makes that scripts are raised or lowered. Here is an example. And I also enabled prettify-symbol-mode which make the ...
0
votes
0answers
30 views

Beamer Frame: Background image with no headers/theme specs

Document: #+OPTIONS: author:t broken-links:nil c:nil creator:nil #+OPTIONS: timestamp:t title:t toc:t H:2 #+TITLE: XYZ #+DATE: October 12, 2018 #+AUTHOR: XX, YY #+LANGUAGE: en #+SELECT_TAGS: export #+...
0
votes
0answers
38 views

org babel and listings

I am exporting my org document to Latex. When I have a src block I am using attr_latex :options to control lstset and get the proper output in my tex document. #+ATTR_LATEX: :options numbers=left, ...
0
votes
0answers
16 views

How do I add new commands for TeX entry mode?

Looking at this answer, I found out that if you use TeX entry mode, you can just type \lambda and have it convert to λ on the fly, which is super helpful. However, when I tried doing \coloneqq, I didn'...
4
votes
1answer
93 views

org-mode / export to PDF: How to disable numbering for pages?

When I export a simple text file to PDF with the command org-latex-export-to-pdf, by default, Org-mode adds the number of each page at the bottom of the PDF file. But I would like Emacs to print ...
0
votes
0answers
55 views

How to change the face of org latex fragments

I'm using org to take notes with mathematical expressions. I can not seem to change the foreground color of the rendered expressions when overlaying the latex fragments with images using org-toggle-...
1
vote
1answer
27 views

Yasnippet: Prompting the user for information to fill in a latex snippet

I write a snippet to insert a theorem environment into a latex document, based upon some snippets created by another project: https://github.com/madsdk/yasnippets-latex . In the snippet below, the ...
0
votes
0answers
11 views

latex-preview-pane with ESS Rnw mode

I would like to configure my init.el file to work with latex-preview-pane mode in ESS Rnw mode. For example, when I knitr/Sweave Rnw file and compile it to pdf the latex-preview-pane should open. I'm ...
0
votes
0answers
20 views

how to export minted src block with caption that is too long for one page

Writing a document in org-mode and I have several source code blocks each with a caption and an automatically numbered Listing Caption. However I have one SRC block that is 80 lines long and too long ...
0
votes
1answer
59 views

Error adding LaTeX class to org-latex-classes

I am trying to register the jfm LaTeX class (Journal of Fluid Mechanics) with the Org LaTeX export backend. After looking around, I have put the following elisp snippet into my .emacs (with-eval-...
1
vote
1answer
58 views

Autocompletion of relative, not absolute, file name

I am typing a Tex file with Emacs and I want to be able to include the relative path of an image file name from inside Emacs. For example, my Tex file that is being opened in Emacs is located at ~/...
0
votes
1answer
71 views

Change the template used by the function LaTeX-section (C-c C-s)

In a document using LaTeX-mode (i.e., AUCTeX), the command LaTeX-section (C-c C-s) inserts a small template corresponding to a LaTeX sectioning element. How can these inserted templates be modified? ...
2
votes
1answer
49 views

Is there a way to suggest label names in org-mode latex export?

In the org-mode example below, I would like to be able to specify the label name to be used by the latex export back-end. Is there such a way? I have two reasons: To be able to mix org-style ...
0
votes
0answers
12 views

Bilingual text in .org mode and xelatex

I would like to typeset bilingual (English, Hindi) in emacs .org mode using mangal font available on windows . It has to be exported using xelatex. Kindly explain step by step setup for the same . I ...
3
votes
1answer
18 views

LaTeX-environment inserts unwanted empty line

When I'm editing a LaTeX document and I'm using C-c C-e for LaTeX-environment, I often get a blank line after the newly-inserted environment. This is never what I want and sometimes even plainly ...
0
votes
1answer
51 views

Emacs Latex/Auctex: Error message about using `Tex-command-list` command to set `Make` as a compile option

I have a setting in my Spacemacs dotfile that adds Make as a compile option for a latex document. The actual command is below. (add-to-list 'TeX-command-list '("Make" "make" TeX-run-...
1
vote
0answers
39 views

smartparens with LaTeX to deal with \begin \end environment and markup commands

How can I configure smartparens to treat \begin ...\end environments, and commands, e.g., \textbf, delimiters so that I can navigate them, e.g., using sp-forward-sexp.
4
votes
0answers
65 views

new lines in org mode export to LaTeX

This is similar to (this question). I would like to export the following org-mode document to LaTeX: * Test text 1 text 2 text 3 - list 1 - list 2 - list 3 #+BEGIN_definition ...
0
votes
1answer
23 views

M-x org-beamer-export-to-pdf and C-c C-e l o give different results

The exported pdfs from M-x org-beamer-export-to-pdf and C-c C-e l o give different results. I have frames set to be created at level 1 headers (options: H1), but these headers only create frames when ...
0
votes
1answer
65 views

Export handout with notes using org-mode and beamer

I'm having a lot of trouble getting a nice solution to this problem. I want to export a handout for a beamer presentation using org-mode. I can write a note using \note{sample note}, which creates a ...
0
votes
0answers
55 views

org mode to tex/pdf async export not working (properly)

so i just found out about asynchronous export, but it's not working the way i want to. If I call it through the key combination C-c C-e C-a l p it works all fine, but when i execute it in a org-...
0
votes
0answers
25 views

Improper syntax highlighting of LaTeX expressions wrapped by $..$

I have set the following option: (setq org-highlight-latex-and-related '(latex script entities)) Yet: All of these expressions should be syntax highlighted, yet they are exhibiting weird coloring. ...
1
vote
1answer
68 views

$\mathscr{..}$ Expressions Fail to Render Properly in Org-Mode

Consider the expression \mathscr{APPLE}. This should render as follows: Yet in org-mode (using latex fragment previews), it renders as: Moreover, when exporting, matscr renders properly in ...
2
votes
0answers
31 views

AUCTeX View PDF Evince SyncTeX subdirectory

I use LatexMK to output resulting files (including the .pdf and .synctex.gz) in the subdiretory out. But I also want to view the pdf and use SyncTex via Emacs and Evince. One solution (see here) ...
3
votes
0answers
49 views

Org-Mode Latex Preview screen-dependent size

When using the inline latex preview in org-mode, I have discovered that it seems the size of the preview images is dependent on the display size. While at work, I have my laptop connected to a dock, ...
0
votes
2answers
34 views

Commands or shortcuts to put a selected region between parentheses or brackets in auctex

If some region is selected region, then applying a command (such as the commands which insert an environment) provided by auctex results in putting the region in the corresponding environment. Is ...
1
vote
1answer
17 views

TeX Mode : making backward-word behaviour take into account Backslashes (\)

In TeX Mode, backward-word (M-b) stops when it encounters a backslash character (\). For example, when the cursor point is after a \begin and I type M-b, the cursor point ends up between the \ (...
3
votes
1answer
59 views

Orgmode export for latex and beamer using the properties drawer

Question: When exporting a subtree to latex and beamer with C-c C-e C-s, is it possible to use the properties drawer of a subtree to define the same properties as one would with #+LATEX_CLASS, #+...
3
votes
1answer
47 views

How to display a marked-up string without the markup?

Q: how can I display a marked-up string without the markup? I have a string with LaTeX markup, such as the following name with an umlaut: Tezc\"ur I want to display the string in a buffer without ...
0
votes
1answer
25 views

Copy formatted citation from helm-bibtex menu

I'm hoping to add a function "Copy formatted citation" to the helm-bibtex menu. i.e. When I open helm-bibtex, press tab on an entry and have the option there to copy a full formatted reference. ...
1
vote
2answers
62 views

org-mode : add an attribute or a property to the result of a call

Let suppose our program output many formatted tables. For instance : #+Name: Scores #+BEGIN_SRC python :results output raw from random import randint li ='''Max Charlie Cooper Buddy Jack Rocky ...
0
votes
1answer
141 views

AUCTeX cannot find a working Tex distribution and don't know how to install exec-path-from-shell

When I was trying to export the pdf file. It notifies me this. And then I searched on Google. People suggest me check the method in the link below. https://github.com/purcell/exec-path-from-shell ...
0
votes
1answer
84 views

Setting up Emacs/AUCTeX viewer

I have installed AUCTeX, it compiled a test file OK, but I can't view the output. I get " Cannot get Evince viewer ...". Xviewer, should be the analogue in my distro, I think (I have not way to check ...