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.

3
votes
1answer
242 views

Make reftex-mode work with a different citation format

By default reftex-mode recognizes LaTeX-like citations, which have a format like \cite{Smith15}. (Locating the cursor above a reference shows a description of it in the mini-buffer and pressing C-&...
3
votes
1answer
134 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
279 views

Org Mode and cdlatex

I am trying to use org mode to take notes in my math classes. It is awesome that org mode is integrated with LaTeX and partially with cdlatex. However, in a pure math class, the board is covered with ...
3
votes
2answers
147 views

External links to figures in org-mode

I would like to be able to link specific figures from other documents. Basically the function of the xr package in LaTeX where it doesn't necessarily give you an actual link that will take you outside ...
3
votes
1answer
206 views

How to fully fontify latex snippets including subscript and superscript within org-mode

I have many latex snippets delimited by $ inside my org notes. I recently discovered org-highlight-latex-and-related, which highlights latex snippets a certain face. However, I want to also apply the ...
3
votes
1answer
844 views

Org cdlatex doesn't work

I would like to use org to type my math lessons, documentation says it has an embedded system completion which can be activated by : (add-hook 'org-mode-hook 'turn-on-org-cdlatex) This command is ...
3
votes
1answer
845 views

org-mode latex and pdf export custom title

I'm using the latest org-plus-contrib package from the org ELPA archive under emacs 24.5 (Linux and OSX). I needed to have a custom title which includes a logo PNG in documents I export from org to ...
3
votes
3answers
386 views

Exporting org mode includes as latex lstinputlisting, or equivalent

Latex has the ability to include the contents of a file using the lstinputlisting command. When exporting an org-mode file to latex #+include: somefile inserts the file contents at that point in the ...
3
votes
1answer
350 views

Predictive mode, Auctex not playing nicely

I have predictive, auctex installed. I want predictive mode to work with my .tex files but I keep getting a warning of: Warning (emacs): Predictive major-mode setup function predictive-setup-latex ...
3
votes
0answers
59 views

How to align latex tables when using macro folding

I have a latex table which contains some long commands like includegraphics or href which makes the table very nasty to read. To get a better view I fold all macros in the table and want to use ...
3
votes
0answers
97 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, ...
3
votes
1answer
255 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 ...
3
votes
0answers
69 views

Is org-mode compatible with Plain TeX?

Being an old timer used to Plain TeX, I'd like to be able to add Plain TeX portions to an org-mode file and have them be nicely displayed when exported. Is it possible to configure org-mode for this ...
3
votes
0answers
45 views

Remove surrounding markup when prettifying symbols

Is there any way to get Emacs to hide surrounding markup when prettifying? That's a feature I really miss from Vim. For example, when editing LaTeX in Vim, the conceal feature can be made to replace ...
3
votes
0answers
83 views

AUCTeX auto parse class file in same directory as TeX file

I have a class file hmcpset.cls which defines some macros and environments. If I have it in the same directory as a TeX file, which uses \documentclass{hmcpset}, I would like AUCTeX to parse the ...
3
votes
0answers
53 views

Ignoring curly braces in search

Journal article titles in my BibTeX appear as follows: Title="{{E}nsure {C}onsistence {C}apitalization in {T}itles}", This produces consistence output, which I am happy with. However, searching for ...
3
votes
0answers
430 views

Edit ShareLaTeX document using Emacs

I was searching whether is is possible to edit a document from ShareLaTeX using Emacs in real time. Up to now I haven't find anything to do the job. So my question is if there is a good and reliable ...
3
votes
0answers
65 views

Highlighting the changed line in the source file in the resulting pdf using auctex and pdf-tools?

Is it possible to highlight the changed line in the resulting pdf using auctex and pdf-tools. I have this feature enabled in Skim with the following lines in my setup. (add-hook 'LaTeX-mode-hook (...
3
votes
1answer
72 views

Change overlaid text of an outline header?

Q: how do I add a new outline header regexp but change the overlaid text? I often write presentations with Beamer in LaTeX. As such, there are a lot of frame (ie, "slide") environments: \begin{...
2
votes
2answers
190 views

Typing two quote characters in a LaTeX document?

I'm working with a LaTeX document. I want to type "" since I need this for german.sty in LaTeX. Starting some time ago, Emacs thinks this is not a good idea. I do not agree. Right now I have to ...
2
votes
2answers
452 views

Org-mode logtable Latex export: How to change the “Continued on next page” text (to German)?

I am writing a German document in Org-mode and exporting to Latex. To use the longtable environment, I use: #+ATTR_LATEX: :environment longtable |-|-|-| In this way, a long table is exported as ...
2
votes
1answer
468 views

org-mode special blocks latex attribute

I am using special blocks to create myself a theorem environment so that I can style it in both HTML and Latex output. For this I do; #+BEGIN_theorem ---Theorem goes here---- #+END_theorem and this ...
2
votes
1answer
993 views

Specifying version when using extra latex packages with org mode

Somewhere long ago I read I could use additional latex packages in org-mode using: (setq org-latex-packages-alist '()) (add-to-list 'org-latex-packages-alist '("" "color" t)) (add-to-list 'org-latex-...
2
votes
1answer
779 views

How to define backslash as keybinding in AUCTeX

I have inserted the following code in my init file. This code insert a space+\ (ie, " \") when typing \ in a buffer. Despite the fact that the function ddd works without problem in any buffer, the ...
2
votes
2answers
241 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
1answer
151 views

Fix indentation of LaTeX code without wrapping lines

If I select everything in LaTeX-mode (AUCTeX) and auto-fill the region, the indentation of all lines is corrected. This is the part I like. However, it also breaks all long lines (which I think is ...
2
votes
1answer
330 views

Symbol’s value as variable is void: last-command-char when trying to insert bracket

I am using aquamacs and latex mode, 'Symbol’s value as variable is void: last-command-char when trying to insert bracket' occurs when I am trying to insert a bracket. How could I do, thank you
2
votes
1answer
409 views

Opening latex files works on one computer but not the other

On my primary computer, I have the following set up for emacs and everything works like a charm. I use emacs cvs, auctex cvs, and latexmk on a Ubuntu 14.04. However, I just put the same set up on ...
2
votes
2answers
38 views

Shortcut to put the selected region in an ordinary LaTeX environment (not with begin-end style) using auctex

In auctex if one has a selected region and then apply the command c-c c-e (LaTeX-environment) then by selecting an environment, the selected region will be folded between that environment. Is there a ...
2
votes
1answer
351 views

in org-mode, how to change the formatting of timestamps in export to LaTeX?

In org-mode, how can I change the formatting of timestamps exported to LaTeX PDF? In the generated .tex file, I see that my timestamps are rendered in LaTeX as \textit. How can I modify this? I ...
2
votes
2answers
223 views

Keeping track of a pdf viewer spawned via AUCTeX?

When using AUCTeX with pdflatex, one can run C-c C-c (TeX-command-master) or C-c C-v (TeX-view) to spawn a PDF viewer. I use Evince on Debian Wheezy, in case it's relevant. This might sound a ...
2
votes
1answer
28 views

Add expressions to LaTeX-electric-left-right-brace

I would want to "electrically" insert | or \right| when typing | or \left| in AucTeX and can't quite figure out how to add characters to AucTex-electric. A list of already defined completions can be ...
2
votes
1answer
50 views

Org Mode. Set separation length between elements of a list

I have noticed there is a big gap between the elements of a list when exporting to PDF. Is there a way to modify it?
2
votes
2answers
196 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-...
2
votes
1answer
235 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
2answers
218 views

How center #+BEGIN_EXAMPLE on org-mode LaTeX export?

I have a verbatim/monospaced block that way: #+BEGIN_EXAMPLE _ / \ T H ...
2
votes
1answer
167 views

Latex equation numbering on left instead of right with org-mode output

I've got this \begin{align} n &= 0 \\ n &= m + 1 \end{align} in an org-mode buffer. When I produce a Latex output, the numbering n = 0 (1) etc. is properly placed on the right. But an ...
2
votes
1answer
226 views

Make reftex-toc work with multiple files

I'm using Emacs 24.5 with AUCTeX and RefTex to edit a multi-file project. It consists of one main file with %%% TeX-master: t to mark as master. The 'slave' files all have %%% TeX-master: main to link ...
2
votes
2answers
331 views

AucTeX: Disable electric-pair-mode in minibuffer during Macro definition?

I use Emacs 24.3.1 and AUCTeX. I switched on the electric-pair-mode in LaTeX-buffers. The only time I would really like to disable it in the minibuffer while inserting math-mode parentheses via the \...
2
votes
1answer
573 views

Rich Text Format for LaTeX in Emacs

I have seen that the online LaTeX editor Overleaf has a nice Rich Text format so instead of this: you see this: You can also see it for yourselves without any login required if you go in the website ...
2
votes
1answer
205 views

Inserting electric braces in AUCTeX

This is a question a friend of mine had; figured posting here might give quick responses. Old version in new language, après Name How do I define the mapping ^ |--> ^ while ^^ |--> ^{}. ...
2
votes
1answer
41 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 ...
2
votes
1answer
284 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
29 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
117 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
683 views

Unnumbered section among numbered ones in Org-mode

It is known that the option num:nil drops the numeration of sections (when exporting from org-mode), but How could I include a unnumbered section among numbered ones in Org-mode?
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
84 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 ...