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
39 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
56 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
25 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
7 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 ...
2
votes
1answer
15 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
22 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
36 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
40 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
20 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
32 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
47 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
19 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
62 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
20 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
34 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
27 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
16 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
48 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, #+...
2
votes
1answer
39 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
20 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
47 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
66 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
52 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
44 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
19 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
32 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
36 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
41 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
33 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
59 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. ...
2
votes
1answer
157 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
33 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
88 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
22 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
88 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
83 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
59 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
33 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
10 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
42 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)) ...
0
votes
0answers
11 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
23 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
43 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
33 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
29 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
108 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.
9
votes
4answers
217 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
59 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 ...
0
votes
0answers
24 views

Eliminating org-drill redundancy on export

I have used org-drill with great success to study for my exams in the past, however something that has always bothered me is when exporting my org document as a LaTeX document there is a lot of ...
1
vote
1answer
90 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-...