Questions tagged [latex]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
78 views

Emacs: `cal-tex-cursor-month-landscape` is texing as portrait

Emacs has a buit-in library to generate a landscape calendar with the function cal-tex-cursor-month-landscape. I am using TexLive 2012 on a OSX. The calendar image gets truncated on portrait ...
3
votes
1answer
290 views

Installing Auctex from Package Manager: Scan error

When install auctex from the Package manager using GNU Archive, I get this error: forward-sexp: Scan error: "Unbalanced parentheses", 18984, 38451 This always happens to me when I install it using ...
3
votes
1answer
144 views

cycling through latex math mode and equation

Is there a way to cycle through \( x=1 \), \[ x=1\] and \begin{equation} x=1 \end{equation} in any latex package? I find this function practical but I didn't know how to implement using elisp or ...
3
votes
1answer
248 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
144 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
208 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 ...
3
votes
1answer
309 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
165 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
227 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
870 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
866 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
399 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
354 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
64 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
106 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
295 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
74 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
48 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
90 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
54 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
372 views

prettify-symbols-mode not working in auctex

In my .emacs file, I have (global-prettify-symbols-mode), and if I visit a .el document, I see the lambda character instead of lambda. My understanding is that in a .tex file I should see the beta ...
3
votes
0answers
432 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
71 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
76 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
197 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
481 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
516 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
1k 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
819 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
36 views

org-mode export to LaTeX: Wrapping a section in an environment

What's a good way to wrap every section in org-mode inside a LaTeX environment when exporting from org to LaTeX? For example, say, I want to wrap each section in a minipage so that the width is ...
2
votes
1answer
332 views

How do I have tables side by side?

I'd like to have small tables being shown side by side instead of one under the other, when I export to PDF. Is there an easy way to do that ? Like a break between tables ?
2
votes
2answers
295 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
156 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
359 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
427 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
380 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
226 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
57 views

How can I reliably create latex classes in org mode?

I'm trying to modify my .emacs to create my own classes, I tried this article and using org-latex rather than ox. I also tried this different approach. I tried enclosing the above classes with ...
2
votes
1answer
45 views

How can I position \label outside \caption in LaTeX export of figures?

Say you have a figure in your org-mode file like the following one: #+NAME: fig:first-figure #+CAPTION: Some caption #+BEGIN_figure This is a figure. #+END_figure This is exported to LaTeX code ...
2
votes
1answer
31 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
2answers
234 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
283 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
230 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
182 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
235 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
350 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
587 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
210 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
87 views

org-mode tikz drawing behavior abnormal

In below example, the text should be show on the right side if compile the latex code with pdflatex command. but in org-mode, the right side text missed: #+HEADER: :fit yes :imagemagick yes :...