Questions tagged [latex]

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

157 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
47 views

How can I split LaTeX inline math from preceeding or following sticked words?

I have this LaTeX code: Lorem $math$ ipsum $math$dolor sit consecteruer adipscing elit, sed do eiusmod tempor incidunt ut labore et dolore magna aliqua. $math$Ut $math$ enim ad minim veniam$math$, ...
1
vote
0answers
52 views

org-mode: Use dvisvgm on HTML export of Babel LaTeX blocks

As far as I understand, there are two competing forces when exporting LaTeX to HTML. If it's in the text (including using \begin blocks), then the preview mode of org.el is used, relying on org-...
1
vote
0answers
99 views

AUCTeX: 'reftex-cleveref-cref' inserts '\eqref' instead of '\cref' for equations

When I run 'reftex-cleveref-cref', which is supposed to insert a '\cref' command in my LaTeX file, I get the expected behaviour for figures and sections, but not for equations: I get the '\eqref' ...
1
vote
0answers
634 views

Letter in .org mode

.Org mode is very good in writing the outlined text . I use it routinely. But I have to fall back on wordpad or latex when I have to write a letter. Is there any available templates for letter using ...
1
vote
0answers
94 views

How to (mostly) get rid of doc-view?

Since I moved to emacs 25 (25.3.2 at the moment) in every context (org-mode, gnus, latex, browsing url, direct access to file) I access pdf-files in emacs, they are displayed in doc-view. I basically ...
1
vote
0answers
84 views

Spacemacs keeps installing and uninstalling auctex-latexmk

Running spacemacs 0.200.13. Everytime I start spacemacs, it either installs auctex-latexmk or deletes it saying that it is an orphan package. Here is some more information: I have latex layer ...
1
vote
0answers
48 views

Add custom parenthesis before and after selection

I use emacs to write latex and I need to enclose a lot of small expression in braces ( \{ and \} for latex) I would like to select the text to enclose and have some command that would add { before the ...
1
vote
0answers
81 views

Failing to convert Japanese org-mode document to Latex

I am writing Japanese Org mode note and need to convert it into Latex. I defined the japanese latex class in my config file as follow: (with-eval-after-load 'org (add-to-list 'org-latex-classes ...
1
vote
0answers
72 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 ...
1
vote
0answers
31 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 ...
1
vote
0answers
34 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 ...
1
vote
0answers
86 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 ...
1
vote
0answers
443 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: ...
1
vote
0answers
121 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 ...
1
vote
0answers
54 views

AUCTeX folding: don't display error

Here is a common beamer slide: \begin{frame} \frametitle{Test} \begin{itemize} \item \textbf<1>{Item one} \item \textbf<2>{Item two} \end{itemize} \end{frame} This is what it ...
1
vote
0answers
61 views

Tab or auto completion of command while editing a .tex file

Seeing if there is a way for auto or tab complete specifically while editing a .tex file. For example \text.... (tab or autocomplete) in some editors will allow you to quickly choose from '\textbf'...
1
vote
0answers
884 views

Change style of Org-Mode export to pdf

I'm new to Org-Mode and Spacemacs and I'm trying to change the export style of org-mode. I want to take notes with it and have source code blocks. I'm having difficulty in changing the export ...
1
vote
0answers
298 views

How do I preview latex math in org mode without generating image files?

So when I preview latex in emacs org, there will be a sub-folder itximg generated in the same folder as the .org, containing the image files. My question is can org mode preview latex math without ...
1
vote
0answers
28 views

Use all the codes in the existed equations as the backend for autocompletion when type new equation

I find that I often have to suffer typing some similar latex codes many times in different equations or the same equation. So it will be convenient that all the codes in the existed equations in the ...
1
vote
0answers
64 views

LaTeX highlighting: Dollar expressions across lines

I'm having some trouble with LaTeX math expressions between (single) dollar signs. Specifically, syntax highlighting breaks across lines. Things looks something like this: if there exists $\alpha&...
1
vote
0answers
49 views

What is the cause of this inconsistent behaviour of TeX-command-buffer when narrowing?

When editing medium sized .tex files, I often find it convenient to make use of the narrow command C-x n n (narrow-to-region), usually in combination with the mark section command C-c * (LaTeX-mark-...
1
vote
0answers
330 views

AUCTeX/LaTeX - ERROR: Undefined control sequence. documentclass

I am using AUCTeX with the following configuration. (require 'tex) (setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master "main") (setq latex-run-command "pdflatex") Trying to build ...
1
vote
0answers
65 views

Import and run tizk code in org-mode

If I have an org-mode file where I want to embed a TikZ rendering at a certain place, I've found the simplest is just to throw something like this in where you want it, i.e., no code block necessary: ...
1
vote
0answers
615 views

Understanding Emacs macro and org mode tikz behavior

I found this discussion, and the last response gives this code: #+TITLE: Test #+AUTHOR: Blah #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [american] # # Setup tikz package for both LaTeX and HTML ...
1
vote
0answers
52 views

org beamer export vs < symbol

I'm using org mode beamer export. I have an itemized list I want an item to start with the text "<7ms" It seems to be almost impossible to quote the "<" character so that the org parser doesn'...
1
vote
0answers
91 views

Update buffer status in tabbar after saving and auto-compiling LaTeX file

I have customized tabbar to have a custom face for tabbar-selected-modified. The customizations work nicely for displaying the "modified" status of a buffer, and reverts to the default face when the ...
1
vote
0answers
150 views

How can I get the Latex compilation report by using AUCTeX in spacemacs

How can I get the compilation report by using AUCTeX in spacemacs? For example, when I use WinEdt in Windows, i can obtain the following compilation report: LaTeX Compilation Report (Pages:14) ...
1
vote
0answers
141 views

Fontification by AUCTeX is great, but font locking for ConTeXt code, any idea?

I wasn't sure where to post this question, but I count on the Emax community when it comes to font-locking and fontification. We all know that AUCTeX is the way to go when writing a document in LaTeX,...
1
vote
0answers
286 views

org-mode latex export: German ß character

Is there a way to export to latex in a way that the German 'ß' ("scharfes S", "eszett") character stays? I'm using utf-8 input encoding, and Umlauts get exported well, but ß appears as capital SS in ...
1
vote
0answers
56 views

How to point latex preview to another file?

I have two files. A main file, say, main.tex which has all the boiler plate and structure, and section.tex, which has content. Inside main.tex I have \include{section}. I edit section.tex, because ...
1
vote
3answers
1k views

Making pdf-tools work after successful compiling on mac os x

After installing the required dependencies with homebrew, I was able to compile pdf-tools . But I cannot make it work (I cannot see the pdf on emacs after compiling) I would like to know if somebody ...
1
vote
0answers
27 views

Navigation ignores comment blocks in (La)TeX mode

I sometimes leave large blocks of comments in LaTeX source code: Text text text text. % Comments comments comments comments. % Six lines of comments. % More comments. % Separate comment block. % ...
1
vote
0answers
85 views

Opening an External PDF in Emacs from Terminal

I am using Emacs on the Mavericks OSX Terminal. I can open the TeX file fine, but I can compile a pdf via C-c C-c. Is there some way that I can open the pdf in an external window via the command line? ...
1
vote
0answers
38 views

How to copy latex equations as word equations from emacs?

How can I copy LaTeX-equations from an emacs editor to an MS-Word equation, like the following does for Browsers instead of emacs: https://github.com/idf/LaTex2Word-Equation
1
vote
0answers
104 views

How can I wrap the subscript into a math environment in Org-mode?

I have some subscripts in my org file like B_25, B_30. These subscripts can be exported to LaTeX like B_{25}, B_{30}. However, I want part of the subscripts like B to be exported as italic B. As one ...
1
vote
0answers
78 views

Is it possible in org-mode to export a * heading to a \begin{heading} \end{heading} block construct?

I'm trying to export a heading as a block construct. Something like * heading Content * Another Heading gets exported to \begin{heading} Content \end{heading} \section{Another Heading} Using ...
1
vote
0answers
79 views

Add commands after custom LaTeX split window view

I use (setq TeX-view-program-list (quote (("Emacs" "emacsclient -e '(split-window-horizontally 88) 'emacsclient -e '(other-window 1)'; emacsclient %o;")))) (setq TeX-view-program-selection (quote (((...
1
vote
0answers
256 views

How to disable DocView as default command in AUCTeX?

When I'm writing a .tex file on emacs, I like to compile with pdflatex and then see the result on an external pdf viewer. The emacs manual says that I can use C-c C-c to launch any compilation method ...
0
votes
0answers
11 views

Spacemacs: “Wrong type argument: stringp, nil” Auctex error when building tex file

following a recent update, Auctex now refuses to build. Throwing a wrong type argument: stringp, nil error. The full debug text: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-...
0
votes
0answers
19 views

Exporting a bullet point in org-mode to theorem/defintion in latex

I'm two weeks old in Emacs and just short of one in org-mode, so not that much knowledge. I want to use org-mode to take my university and research notes. Some of those, are needed to be exported as ...
0
votes
0answers
14 views

Several “Error skipping s-expressions at point” during ispell process

I'm working on a paper (a multifile LaTeX project) and when I tried to pass ispell to the different files, loads of Error skipping s-expressions at point messages appeared. I suspect that ispell didn'...
0
votes
0answers
18 views

Creating independently-numbered structures in Org-mode for LaTeX export

I want to keep the typical numbering system for different parts and chapters but add interlude in between with its own numbering. Similar to what this tread does except instead of "Software Break" I ...
0
votes
0answers
46 views

Org-mode, how can I export my images in different float enviroment?

I need to export some images in different type of float in latex (i.e. \begin{map}). An example of latex code is here. How can I define image attributes in org-mode to achieve that?
0
votes
0answers
39 views

Cannot get Company completions to work in LaTeX mode with LSP

I am trying to get LaTeX-specific backends for company to work well with LSP and LaTeX. My problem is I cannot seem to get all the desired backends to work well together. For example, company-capf ...
0
votes
0answers
13 views

auctex preview-latex of image inside beamer

I have small issue with preview in a beamer presentation when I have images included. I followed: AUCTeX previews are not displayed correctly with beamer This helped a lot, but unfortunately there is ...
0
votes
0answers
21 views

Changing current math mode (e.g. inline to display)

Is there a built-in or at least ready-made way to change which math mode I'm in? For example if I'm writing in inline math mode (which in my case would mean my cursor is between single dollar signs) ...
0
votes
0answers
21 views

Structure templates: handling custom templates exportation

When using C-c C-, to insert a structure template, there is an option to add a "custom" template [ ] Press TAB, RET or SPC to write block name I've inserted one called questions, i.e. #+...
0
votes
0answers
16 views

LaTeX footnote cross-referencing

This is a bug discovered when trying to make footnotes cross-reference one another. * Cross-Referencing Issue I have a footnote[fn:a7c8d549e5724e0:This is a footnote. See also [fn:f52362a5a5f18c7].]...
0
votes
0answers
35 views

How to render latex in-line with org mode?

I have a file with the following contents: Math Notes -*- mode: org -*- #+STARTUP: latexpreview Test $\forall \epsilon > 0$ I am trying to render the latex with C-c C-x C-l, but it's not working....
0
votes
0answers
17 views

How to export a centered threeparttable to LaTeX?

Is anyone using the threeparttable for Latex export? I can't manage to create a centered version of this table. For my input org code #+begin_table #+begin_threeparttable #+ATTR_LATEX: :environment ...