Questions tagged [latex]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
141 views

Undefined control sequence \uline in exporting org-mode with underline markup to PDF using xelatex

For the following sample, #+LATEX_CMD: xelatex #+LATEX_HEADER: \usepackage{xltxtra} #+OPTIONS: ^:nil This is a _test_ The export to PDF uses xelatex would produce the following error: ! Undefined ...
1
vote
0answers
82 views

View command does not open pdf while in AUCTeX mode

Sometimes, after havin applied latex to my .tex file, instead of executing okular --unique my.pdf emacs tried to execute okular --unique my.pdf#src:332#("/folderToMyTex/my.tex" 0 61 (org-attr nil)) ...
1
vote
0answers
28 views

How do I leave out/surpress particular default \usepackage headers when exporting to LaTeX?

When exporting to LaTeX from org-mode, it seems that several \usepackage headers are added by default. However, what if I want to disable one of them (not all), because I will manually specify a ...
2
votes
1answer
44 views

Emphasize (make bold) texts within a subscript for LaTeX exports?

There are some mathematical equations in the form of: G_{u} which I enter in org-mode as $G_{*u*}$ or $G_{ *u* }$ It gets displayed correctly in org-mode, but when exported to LaTeX, the asterisks ...
0
votes
1answer
154 views

How to link to a LaTeX label within align* environment in Orgmode?

I am using org mode to write documents with math, and then exporting to latex. Consider an unnumbered align environment with two equations: \begin{align*} x = 1\\ y = 2 \end{align*} Now, number the ...
3
votes
1answer
196 views

Fixed width font in Latex

I can't figure out how to have every character have the same fixed width in Latex. In this example: I would like the characters {i \in \math to have the same width as the others.
12
votes
4answers
617 views

Reducing LATEX_HEADER clutter at the top of my org files

I often write notes in org mode and export them to latex. However, because some documents are complex I need to include many latex packages at the top like so: #+LATEX_HEADER: \usepackage[margin=1....
3
votes
2answers
275 views

Greek (Unicode) in Org mode export to PDF

I am working on a project that deals with polytonic Greek, and wish to write everything in Org mode, and export to a PDF with one of the compilers (like XeLaTeX). I have spent hours today reading ...
2
votes
1answer
383 views

DBus error when running TeX-evince-sync-view

I am trying to get my LaTeX View command to work properly in Emacs, but for some reason I just can make it happen. Whenever I hit C-CC-C and enter the View command, Emacs automatically suggests TeX-...
0
votes
2answers
234 views

How to overwrite C-c C-v hotkeys for LaTeX-mode-map?

Now i use this: (eval-after-load 'latex '(define-key LaTeX-mode-map (kbd "C-c C-v") nil)) (eval-after-load 'latex '(define-key LaTeX-mode-map (kbd "C-c C-v") 'my-open-file-LaTeX)) I DO NOT use ...
2
votes
1answer
323 views

org-mode XeLaTeX export to pdf: define font color for different structure levels

I would like to set the colors for a pdf export of an org-mode file based on the structural elements. That is something like * This Headline Should Be Blue ** This subheadline should be green - ...
1
vote
0answers
86 views

how to “slow” down the execution of code blocks

on OSX 10.13.4 with emacs 25.3 and org-mode 9.1.12. Python is 3.5.2 with matplotlib 2.2.2 I am trying to find a way to have org-mode babel for python to slow down in some of the points of my code ...
1
vote
0answers
396 views

Setting fonts in org-beamer with Metropolis theme

Environment: OSX 10.13.4, spacemacs 0.200.7 Here's a pared-down org-beamer file #+TITLE: A Presentation #+SUBTITLE: A really good one, in fact #+AUTHOR: WallyMetropolis #+DATE: 05-02-2018 #+OPTIONS: ...
0
votes
0answers
193 views

problem when setting org-confirm-babel-evaluate to nil

apple: 10.13.4 emacs: 25.3 (9) Org-mode version 8.2.10 python3.5 As I have a bunch of harmless python blocks in an org mode file for a report, and did not want to keep pressing "y" every time ...
3
votes
0answers
1k views

Org mode subtitle not being exported to pdf

#+TITLE: My title #+SUBTITLE: My subtitle * Blah blah blah My subtitle isn't being exported, anyone know why? LaTeX export: https://pastebin.com/Wg2gVS12
1
vote
0answers
38 views

Difference between =text= and ~text~ in org-mode [duplicate]

On org-mode's website, =text= is called "verbatim", whereas ~text~ is called "code". However, when exporting an org document to LaTeX, both are translated to \texttt{text}. When exporting to HTML, ...
1
vote
1answer
74 views

What is the significance of “(k=v)”?

When one uses C-c C-e to insert an environment such as enumerate in AUCTeX , one is presented with the prompt (Optional) Options (k=v): in the minibuffer. I know that this is asking for options for ...
1
vote
2answers
489 views

Embed external latex file in org mode

I have an R function which returns a latex fragment, which I'd like to insert into my org file. Here's what I tried, which just inserts the latex source: #+BEGIN_SRC R :exports none :results silent ...
3
votes
1answer
255 views

Add new header variable in org-mode document, and use it in (LaTeX) export

I'm using a memorandum specific style when I do LaTeX export of an org-mode document. It has some fields that I'd like to specify/fill in in a manner similar to the way AUTHOR, TITLE, DATE are ...
1
vote
1answer
95 views

How to hide frame environment in outline minor mode?

I am using AUCTex and outline-minor-mode to produce Latex presentations with beamer. I wonder how I could tell the outline-minor-mode to hide the content of a frame. I am not into LISP by now, so ...
0
votes
0answers
201 views

Default Latex Classes seen by emacs

I am trying to write a project proposal by using org-mode. And when I change the #+LATEX_CLASS variable to something different org can not export to pdf. So, I wondered how can see list of latex ...
0
votes
0answers
108 views

Make adaptive-wrap tab aware

I am switching to AUCTeX as my LaTeX editor and need tab-aware automatic line wrapping. From this question on stackoverflow I gathered that adaptive-wrap is basically what I need. How can I make ...
3
votes
1answer
334 views

Org-mode #+include: — ignore configuration lines from included file

How can I have org #+INCLUDE: ignore configurations from the included files? I'm thinking of cases where I don't want Latex Classes to be messed up. For example, if I have two org files book.org and ...
1
vote
1answer
267 views

How can I get a mailto link in an org-mode latex export to PDF for the #+email: keyword

When I'm specifying my mail address #+email: bla@comp.org I'm getting a text footnote bla@comp.org for an org latex export of a report. I'd like to have a complete mailto hyperlink though. I tried ...
2
votes
0answers
91 views

Org mode exporting with customized fonts in different (human) languages

I am writing Myanmar (Burmese) and English in org mode and want to export the buffer to LaTeX (PDF), HTML and ODT formats. Since Myanmar is not supported in Babel or Polyglossia packages, I am using ...
0
votes
1answer
94 views

org-babel uses wrong directory during execution of source blocks (org-compile-file error)

I'm experiencing a strange error when trying to execute/compile a LaTeX source block in org-babel. A simple example looks like this: #+NAME: latex1802142321 #+BEGIN_SRC latex :results raw :file ...
4
votes
0answers
618 views

orgmode image export side by side to both latex and html

In org export, I want to place two images side by side. I want them to be side by side in both LaTeX export and HTML export. In the example below, the first pair works for LaTeX and the second pair ...
4
votes
1answer
680 views

org Images in LaTeX export set default width

By default these org lines: my image: [[./figure1.png]] are exported into these ones in latex: \includegraphics[width=.9\linewidth]{./figure1.png} How can I change the default value of width \...
0
votes
0answers
141 views

How to specify a color theme specifically for Latex editing (the buffers with .tex files)?

I am using Emacs and there are various 'themes', eg. link to examples, but they do not appear to be dedicated to Latex. Some have modes for Latex, but I am wondering if there are theme files that can ...
0
votes
2answers
193 views

Editing equations as in lyx

I'd like to be able to edit equations as it is done in Lyx, that is, for example, being able to change a sub- or superscript without losing the rendering of the equation (even if it's a mid-low ...
2
votes
1answer
333 views

Yasnippets: loading two major modes (`org-mode` and `LaTeX`)

I'm trying to load the yasnippets for the LaTeX mode every time I open an org file. Is it possible? How can this be achieved?
2
votes
1answer
64 views

How to customize face when use 'org-edit-latex-environment?

When use org-edit-latex-environment(which opens another buffer so latex source code can be edited in more sophiscated environment, e.g. LaTeX) in org-mode, the source block will be highlight as yellow ...
0
votes
0answers
135 views

Equations in org-reveal presentation

I've installed reveal.js and org-reveal, and they are working as expected. Even, I'm getting the equations! However, the point with the equations is the following: If I introduce directly the LaTeX ...
2
votes
0answers
92 views

org-latex-fragment gets cutoff

I use dvisvgm to generate latex fragments. However, some of my equations seem to be cut off. One example is below The svg file generated does not have the cutoff but the image as displayed in emacs ...
5
votes
1answer
189 views

Close latex compilation window when successful

I like having TeX-show-compilation in LaTeX for large documents. However, if the compilation completed successfully, I would like the windows to be reverted or the compilation buffer to be killed. I ...
2
votes
0answers
185 views

`<dead-grave> is undefined`

for a few month, I use Emacs for Latex, and I am French. today (for the first time) when I use C-c ` to see my errors, Emacs answers <dead-grave> is undefined I try to add in my .emacs (...
1
vote
1answer
100 views

Removing a latex command (by matching braces)

In LaTeX, I sometime define a command of the type \tmpcmd{TEXT\cmd{MORE TEXT}}. After I am done, I want to remove all instances of this command, so I usually do a replace-string of \tmpcmd with an ...
0
votes
1answer
87 views

Why can't I bind tab to multiple spaces? [duplicate]

I'm trying to bind tab to either a tab or multiple spaces in Latex/ESS-noweb mode but I can't get it to work. I tried (local-set-key (kbd "<tab>") 'self-insert-command) which didn't work, and ...
8
votes
5answers
2k views

org-mode ignore heading when exporting to latex

I have a problem where I want to structure my document visually with a heading but do not want it to actually execute a \section{Fake Heading} for the latex export. I imagine this would be ...
0
votes
1answer
135 views

Use picinpar instead of wrapfigure for LaTeX-export

Org-mode exports to wrapfigure with ATTR_LATEX: :float wrap. https://tex.stackexchange.com/questions/47674/wrapfig-positioning-footer-is-overlapping-figure?noredirect=1&lq=1 recommends to use ...
0
votes
1answer
88 views

opening brace alignment/indentation problem in LaTeX mode

I have an alignment/indentation problem in LaTeX mode. Every time I begin a line with an opening brace and I hit <TAB> or run an indentation command on the region, the brace becomes aligned with ...
0
votes
1answer
54 views

Searching for space in LaTeX mode

In Emacs 25.3 (but not 22.3, for example), the search string " " (space) in LaTeX mode is matched by the carriage return character as well as the space character. I can understand why Emacs has been ...
1
vote
2answers
680 views

Ways to render latex-like formula like mathjax in Emacs

Assume one has a latex-like formula as the following which is usually rendered by mathjax in webpages supporting it (like wordpress): For all positive integers {n} one has \displaystyle \frac{1}{n+1} ...
1
vote
1answer
213 views

How to separate normal text from the frame block?

I just want to make the text appear separate from the above frame box in beamer export C-c C-e l O as in the MWE below. MWE: #+TITLE: Frame or Text? #+AUTHOR: Casual Author #+DATE: #+OPTIONS: H:2 ...
1
vote
1answer
143 views

What is the easiest way to detect if an `\includegraphics{*.eps}` has been used in a `TeX` document?

What is the easiest way to detect if one has used an \includegraphics{*.eps} in a tex document? (motivation: When I have used this I would like to not use pdflatex and instead use the combination of ...
2
votes
2answers
397 views

Replacing string in a region and conditional replace

My goal is to write a simple function that can do the following: Staring with an expression that looks like $$ x = y $$ $$ y = z $$ $$ z = x $$ (There can more lines of such equations) I want to ...
2
votes
0answers
235 views

Cleanup org-mode export intermediary directories

I am trying to delete extraneous files and directories generated during the export of a latex file from orgmode. I followed the instructions in a similarly named stackexchange post to delete extra ...
2
votes
1answer
1k views

Defining custom latex class for org-mode export

I an trying to define a custom latex class, I will use it to export my org files to PDF. I found information about this on internet and I tried to implement the proposed solution, I wrote this in my ....
1
vote
1answer
149 views

Basic AUCTeX Setup Issue in macOS and Linux

I'm trying to get AUCTeX up and running in macOS and linux and have followed the steps here. (The site has a separate guide for GNU/Linux.) My problem remains invariant between OSes, so I'm asking ...
9
votes
4answers
564 views

How to replace matching parentheses?

I write (and rewrite) a lot of mathematical formulas in LaTeX with Emacs. I frequently run into situations where I want to change a pair of matching parentheses, to improve readability. My Emacs is ...