Questions tagged [latex]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
306 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-...
2
votes
1answer
30 views

Prevent AucTeX from changing font within some tags

When I'm using AucTex, I tend to have problems with how the package formats the fonts I use within tags such as \textit{}. It appears that AucTeX wants to display an italicized version of the buffer's ...
2
votes
1answer
128 views

How to set field separators in bibtex-mode's autokey generator?

Q: how do I set a specific separator in bibtex-mode's autokey generator? Background I am working with bibtex-mode. It has a feature to auto-generate the entry key, which is customizable. Goal My ...
2
votes
1answer
83 views

Perform-replace only on text (no comments, no math) in latex-mode?

I need to write some Emacs-Lisp code that uses the perform-replace function, limiting its range of action only on text (ignoring comments, in-line math and math ambients) on LaTeX documents (in latex-...
2
votes
1answer
88 views

Narrow and move between latex environments

When writing LaTeX presentations with the beamer class in emacs+auctex I would like to have a function (and keybinding) that does the following three things: narrow to the next frame environment if ...
2
votes
1answer
75 views

Ways to automatically insert a space after a LaTeX command (inserted by an AucTeX shortcut, e.g. `g) if the next keystroke is a letter

With AucTeX, one can insert many LaTeX commands using shortcuts. For example in a math environment (e.g., between $ $), the shortcut `g insert \gamma. Normally right after \gamma if I would like to ...
2
votes
1answer
82 views

Taking action depending on the presence of particular message in the echo area

I have my proper function to run latex, say my-tex. Sometimes one should run latex two times to get references right. A message like below in the echo area appears to tell this. How to identify ...
2
votes
2answers
141 views

Org-mode \ang from siunitx is overruled by the \angle symbol on pdf export

I'm trying to use the package siunitx to format my scientific notations/values more nicely, but I can't get one thing to work, possibly due to my pdf-process. I type in my orgfile something like this:...
2
votes
3answers
686 views

Background color of LaTeX fragments in Org mode

How can I control the background color of my LaTex fragments in Org-mode? I am using the badwolf-theme package, and this is what I get: I would like the background color of my formulas to match the ...
2
votes
2answers
590 views

Org mode export to Latex: #+CAPTION: not working as plantUML inserts \includegraphics

How to disable plantUML inserting the images automatically? Code block inside a org file: #+NAME: fig:1 #+CAPTION: IETF-draft [[./draft.png]] #+begin_src plantuml :file draft.png Alice -> Bob: ...
2
votes
1answer
911 views

Latex symbols in org mode buffer

I've got #+OPTIONS: tex:t and #+STARTUP: entitiespretty at the top of my org file, however, this seems to allow only a subset of Latex. For example, typing \rightarrow embeds upon the last keystroke a ...
2
votes
1answer
375 views

Vim-LaTeX-Suite Macros in AucTeX / Emacs

I am a long term Vim user but I consider switching to Emacs + EVil-mode. However, there is one major obstacle. I most frequently use Vim to edit LaTeX files and I have grown quite accustomed to the ...
2
votes
1answer
143 views

How can I make imenu work with complex LaTeX documents?

I discovered a short time ago that M-x imenu plays nice with LaTeX documents – mostly. With a master/slave document setup (one file inputs another), imenu will not pick up on the structural elements ...
2
votes
2answers
380 views

Demoting sections on org-export

Context Last weekend I had some discussion with a friend about how I could improve my writing skills. As a result I would like to experiment with a new document structure to guide the process of ...
2
votes
1answer
51 views

detect if inside a LaTeX footnote and get its bounds?

Q: how do I get the bounds of a LaTeX footnote? I'd like to be able to detect, programmatically, if point is inside a LaTeX footnote environment. Ideally, I'd like to be able to extract the ...
2
votes
1answer
198 views

How to indent back one level when writing a newline?

I'm using Emacs to write LaTeX. For example, in the following code, I have write to the level 3. When I press C-j, the cursor will indent to the third level. I what the newline to be indent at level 2....
2
votes
1answer
72 views

Manual indentation in LaTeX mode

I'm new to Emacs, and dislike the default indentation in LaTeX mode. I want the indentation to do the following: insert a \t character (not spaces) be completely manual (I want to have to press Tab ...
2
votes
1answer
226 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-...
2
votes
1answer
293 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 ...
2
votes
1answer
54 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 ...
2
votes
1answer
70 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-...
2
votes
1answer
987 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 ....
2
votes
1answer
367 views

org-mode setting to preserve spacing in SRC code, with verbatim latex output to pdf

Like this post, when I indent within a SRC code block in org-mode, 8 consecutive spaces are converted to a tab. Moreover, when I export to LaTeX 8 consecutive spaces are converted to tabs in the ...
2
votes
1answer
313 views

prettify-symbols-mode and multi-character replacements?

With ``prettify-symbols-mode'' it is possible to replace strings by a character, or a character composition, e.g. ;; \lambda → λ (push '("\\lambda" . ?λ) prettify-symbols-alist) Optionally, it ...
2
votes
1answer
126 views

Org-mode Table, No export Latex column

Is there a way to have a column of a table not export, specifically in latex? I want to have an extra column for personal notes but when I export I don't want the table there.
2
votes
1answer
302 views

how to make smartparens insert “` and ”' instead of ``'' in latex-modes

Smartparens is quite useful, but I just do not understand its documentation. How do I make smartparens insert "` and "' instead of `` and '' when pressing " in latex-mode? Remark (because formating ...
2
votes
1answer
194 views

Fold entire preamble in AUCTeX

Can AUCTeX be configured to fold the entire LaTeX preamble (i.e., hide everything before \begin{document})? For example, it would be nice if the the following document: \documentclass[letter,11pt]{...
2
votes
1answer
195 views

Make glossary with `C-c C-c`

I have many documents with glossaries which I used to build using this script: pdflatex "$documentname.tex" makeglossaries "$documentname" pdflatex "$documentname.tex" pdflatex "$documentname.tex" ...
2
votes
1answer
253 views

smartparens NOT insert pair of LaTeX quotes?

Q: how do I get smartparens not to insert a pair of ``LaTeX'' quotes? The goal I set up smartparens to insert a pair of quotation marks unless point is just before a word or just after it, where * ...
2
votes
1answer
488 views

how to make all special symbols available in org latex?

once use the command below: C-x RET C-\ TeX RET I try to make some math formula: \sqrt{} but it can't be automatic translated to √, then I check the symbol list:C-h I and also can't find the \sqrt ...
2
votes
1answer
67 views

Make org-preview-latex-fragment stick

If I invoke org-preview-latex-fragment under one region, it destroys my previews in all other regions. Is there a way to make latex previews stick, so that previews are only removed when running C-c C-...
2
votes
2answers
508 views

Org mode export of intraperiodic spaces

In LaTeX, I use extra spacing to separate sentences from each other. This may for instance be achieved by \spaceskip=.33333em plus .16667em minus .083333em \xspaceskip=.8em plus .4em minus .13333em ...
2
votes
1answer
253 views

Browse and search text snippets in emacs and insert them as LaTeX input

Suppose I have a lot of small text snippets (including some LaTeX-code). Now I want to create a LaTeX document with emacs which includes some of the text snippets. I know yasnippet which can expand ...
2
votes
2answers
279 views

Long tables in emacs org do not export correctly through latex-pdf

I want to export two long tables (each 6X179). I tried to export with latex-->PDF using #+ATTR_LATEX: :float sidewaystable attribute. But what I get is this result, I get just three pages pdf file (...
2
votes
1answer
76 views

“TeX-insert-quote” does not work anymore

Emacs "suddenly" stopped automatically inserting the correct quotes once I hit the " key. It seems to me that this is due to a duplicate installation of some package, but I can't put my finger on it. ...
2
votes
1answer
527 views

Draw image outside of emacs and use it in org

I decided to use killer combination emacs + org mode + latex to take my lessons at school, the only thing that force me to use paper and not be an ecological student is for drawing and painting ...
2
votes
1answer
435 views

Poem in org-mode #+VERSE environment mangled by LaTeX export

I'm using org-mode to create a handout for a poetry class in which I want to include John Hollander's "Swan and Shadow." It looks great in emacs, but when it's exported to PDF through LaTeX, it no ...
2
votes
1answer
250 views

How to render latex expressions (not necessarily formula) inside buffer?

By preview-latex on can render latex formulae inside a tex buffer. The package px package renders latex formular inside an arbitrary buffer (see https://emacs.stackexchange.com/a/219/). A similar ...
2
votes
1answer
206 views

Ways to open the compiled pdf file of the current tex file

I would like to define a customized function to open the complied pdf file of the current tex file in the default pdf viewer of the system (say SumatraPDF.exe). I am primarily interested to a ...
2
votes
3answers
32 views

Disable tex-mode's auto tex-insert-quote functionaliy

So basically, for reasons unknown we don't use regular LaTeX style quotes at my company, instead just using regular double quotes. However, tex-mode in emacs automatically substitutes the " key for ``'...
2
votes
0answers
70 views

How to Add Document Class to AucTeX

I have a .cls LaTex template I would like to use regularly. Where/how should I save it so that AucTeX is aware of it? How does one set up LaTeX templates in Emacs/Spacemacs in general? I find very few ...
2
votes
0answers
55 views

Use org-ref to add citations in theorem titles

I am experimenting with writing a manuscript in org-mode and wondering if this is something org-ref can do In org-mode I have #+ATTR_LATEX: :options [Homeslice's Theorem] #+BEGIN_theorem latex blah ...
2
votes
0answers
45 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 ...
2
votes
0answers
97 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) ...
2
votes
0answers
844 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
2
votes
1answer
62 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 ...
2
votes
0answers
87 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 ...
2
votes
0answers
206 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
0answers
87 views

Automatic close evil-make buffer

I'm using evil mode (Spacemacs to be specific) and working with LaTeX projects. I use evil-make or :make command to compile the current LaTeX project to PDF file. I find it quite annoying that ...
2
votes
0answers
79 views

auctex failing to render formula previews

I am trying to get auctex on emacs to preview formulas but it doesnt seem to work and when I click preview, it produces the following error: PDF2DSC sentinel: Wrong type argument: arrayp, nil I have ...