Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [latex]

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

1
vote
1answer
21 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
109 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
52 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
42 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
86 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
249 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
110 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 ...
0
votes
2answers
89 views

Emacs/LaTeX displays _char as a subscript in the editor

Emacs seems to be doing some WYSIWYG with _, as if it were in math mode (in the picture, _ is followed by subscript 'o', inside the include statement. It shouldn't. I'm using Emacs/Tex out of the box, ...
0
votes
0answers
22 views

Watermark package in LaTeX

The code below works with TeXworks, not Emacs. Specifically, the generated DVI is blank. If I use the "Save as PDF" feature, only the watermark appears, not the included pdf (temporarily uploaded here)...
2
votes
1answer
39 views

How can I navigate through errors after compilation in `latex-mode`?

What I mean by debugging is the ability to navigate through errors after compilation. I read that this can be done in AUCTeX with the command C-c [backtick]. I was wondering if there was a similar ...
0
votes
0answers
52 views

How to refactor/rename LaTeX labels?

Q: how do I refactor LaTeX labels? I have a long LaTeX document with lots of figures and tables. Each of them has a long and convoluted label. Each label is referenced in a number of places in the ...
1
vote
3answers
52 views

Can i export LaTex to a .tex file?

I'm cofiguring emacs with org. Principally I wrote in emacs using .org file so i want a standard header file where i define al my "use package" file in particular: \usepackage{geometry} \usepackage{...
0
votes
1answer
73 views

flyspell overrides company key bindings

I have the following in my init file. ;; ======= Company mode set up ============ (use-package company :ensure t :defer t :init (add-hook 'after-init-hook 'global-company-mode) :config (use-...
1
vote
1answer
79 views

aux problem compiling latex

Exporting latex from org-mode (using C-c C-e l o) ".tex" file is fine generated but i can't generate ".pdf" from that. Same problem even using auctex (C-c C-c latex) from ".tex" generated from org. ...
4
votes
1answer
810 views

Changing default font size in org latex export

Org exports latex with default font size of 11 pts. Is it possible to make this font size to 10 pts and also reduce spacing to one and half space ? Regards
2
votes
1answer
50 views

Custom ID is rendered in LaTex with org mode

I'm a noob in Emacs org mode. I convert a note of my friend's from .lyx to .tex with lyx then I use pandoc to convert it into .org. As default under heading I find: :PROPERTIES: :CUSTOM_ID: title-of-...
1
vote
1answer
202 views

SVG image from org-babel

I am trying to create a SVG image from latex code in an org-mode file. #+name: foo #+header: :file foo.svg #+begin_src latex bar #+end_src But I keep getting the following error: executing Latex ...
1
vote
0answers
26 views

Can I generate and show two table of contents with reftex simultaneously?

I work in a main tex-document, where I use reftex to display the table of contents. But I also have another buffer where I want to show a toc. Is this possible? Now the *toc*-buffer is overtaken ...
0
votes
1answer
145 views

My emacs does not use the LaTeX-includegraphics-extensions option in my .emacs file

I tried to customize my .emacs file adding the options to the macro command \includegraphics. I use Emacs 25.3.1 on MacOS. My .emacsfile is as follows: (package-initialize) (custom-set-variables '(...
1
vote
1answer
124 views

Electric behavior of dollar sign using AUCTeX

I'm trying to turn $...$ into an electric pair, just as say (...). So I tried this solution, and it works fine on my older machine, running Emacs 24.3.1 and AUCTeX 11.87. However, on a newer ...
1
vote
1answer
82 views

Prevent org export from expanding \ as $\backslash$

When using the org's ox-koma-letter, I'm having a problem with org exporting LaTeX commands expanding the leading \ as $\backslash$. Using the example letter (from Romeo to Juliet) on the orgmode.org ...
0
votes
1answer
72 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 ...
0
votes
0answers
14 views

Description export from org-mode to Latex has an anomaly

The line - Conduction :: Heat transfer after contact of two bodies of unequal temperature. in org-mode is exported as \begin{description} \item[{conduction}] Heat trasfer after contact of two bodies ...
1
vote
0answers
61 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
19 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
37 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
71 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 ...
0
votes
0answers
70 views

RefTeX cannot find .bib file or cross references in multifile document

I have a large LaTex project, which I organized into several .tex files and use \input{} in a single file to include the content of the other files. However, when editing this project from spacemacs, ...
0
votes
0answers
36 views

Getting predictive mode to suggest all possiblies

I asked this at tex.sx but haven't got an answer yet. So I try a more emacs savvy crowd. I'm trying auctex+predictive mode as my new latex editor. One feature that tempted me to add predictive mode ...
3
votes
1answer
131 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.
11
votes
4answers
352 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....
2
votes
1answer
112 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 ...
1
vote
1answer
197 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
121 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 ...
1
vote
1answer
218 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
81 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 ...
0
votes
0answers
215 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
124 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 ...
0
votes
0answers
446 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
34 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
55 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
221 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 ...
2
votes
1answer
97 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
65 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
148 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
85 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 ...
0
votes
0answers
41 views

C-c C-c not always doing the same thing

I use emacs to typeset documents using latex (nothing fancy, no AUCTeX). Usually, when I enter 'C-c C-c' it will invoke pidflatex and compile it. Sometimes, instead I will see a message in the mini-...
3
votes
1answer
176 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
176 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 ...
1
vote
0answers
48 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 ...