Questions tagged [latex]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
110 views

Non-hex digit used for Unicode escape error when setting org-latex-classes

When I try to set org-latex-classes with the following code: (setq org-latex-classes '(("article" " \\documentclass[12pt,a4paper]{article} \usepackage{xeCJK} %\usepackage[heading]{...
4
votes
1answer
144 views

how to include remote images in org-mode export to LaTeX?

When I paste the URL of an image into an org-mode file and then export it to HTML, the remote image URL gets turned into an img tag and displayed in my HTML file without the need for me to save the ...
1
vote
1answer
13 views

How to prevent #+BEGIN_LaTeX from generating \begin{LaTeX} when exporting to .tex source?

I am a beginner and have been using emacs for around a month. I'm still finding my way around. Sorry if this is a very basic question. I'm trying to write a scientific document in org-mode and using ...
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-...
12
votes
4answers
1k views

How to enlarge latex fragments in org mode at the same time as the buffer text?

I'm using org-mode in emacs, but I think the question is also relevant for auctex users. In org-mode you can show latex fragments, as the manual demonstrates. But: these fragments (mostly math ...
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 ...
1
vote
2answers
42 views

avoid org-preview-latex to open a new window

I use emacs in frame-only mode and org to typeset latex equations and technical writing. Since it is hard to see and understand the latex equations in their raw format, I use a package called org-...
2
votes
1answer
37 views

orgmode latex export: How to create repeatable labels?

Every time I export org-mode document to LaTeX, most sections get new and unique labels, e.g., \section{Introduction} \label{sec:orge0665da} The next time I export the document, the label will ...
1
vote
1answer
19 views

Display latex output natively in emacs in a vertically split window

Running Doom Emacs 2.0.9 on Emacs 26.3. Currenly, when I do TeX-command-run-all on a tex file, it opens the output in okular pdf viewer in a separate KDE window. I was wondering if it is possible to ...
10
votes
5answers
774 views

How to replace matching parentheses?

I write (and rewrite) a lot of mathematical formulas in LaTeX with Emacs. I frequently run into situations where I want to change a pair of matching parentheses, to improve readability. My Emacs is ...
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
17 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?
1
vote
1answer
27 views

show-paren-mode or similar to highlight multi-character parentheses

In latex, "parentheses" such as \(\), $$ and \[\] are constantly used. Is there a way to customize show-paren-mode or is there some other mode to highlight these multi-character parentheses in latex-...
1
vote
1answer
24 views

Org-mode tables exported as latex arrays within eqnarray environment, how?

If I have constructed a blocked array using an org-mode table, I can easily export the table as, e.g., a pmatrix array as presented below. However, the pmatrix is exported within a math environment (\[...
0
votes
1answer
34 views

org-mode inline latex dollar sign

In org mode, this inline latex dollar sign fails to render: $\$$ but this has no problem rendering: \[ \$ \]
0
votes
1answer
166 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-...
3
votes
1answer
840 views

Exporting Org in Landscape

I have an org document I'd like to export to PDF - with several wide tables columns in it - so much so that it makes sense to export the whole document in A4 landscape to keep the orientation ...
0
votes
1answer
21 views

Shrink frames in beamer export from orgmode

How can I send a shrink option to a beamer frame? I already tried with *** frame title :PROPERTIES: :BEAMER_envargs: [shrink=5] :END: as suggested in https://lists.gnu.org/archive/html/emacs-...
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 ...
0
votes
1answer
406 views

AUCTEX won't create dsc file

I'm using Emacs24 on windows with AUCTEX for Latex. When I try to toggle preview it doesn't show, insteed there is a little "not working" picture on each equation and I get an error Running `...
0
votes
1answer
15 views

Add compiling option to tex engine

I want to use minted package in my tex file. It needs the command-line option --shell-escape to allow external pygmentize program execution. How can I add that option to the tex engine? My related ...
0
votes
0answers
37 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
1answer
109 views

Custom verbatim environments/macros in AucTeX

Here's my MWE: \documentclass{article} \newenvironment{tscode}{}{} \def\tscode|#1|{} \begin{document} \tsinline|efwe| \begin{tscode} efihw$feiw$ \end{tscode} \end{document} % Local Variables: % ...
0
votes
1answer
276 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 '(...
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
1answer
48 views

Getting Latex preview to work with org mode (.dvi not found)

In my .org file I embedded a simple Latex segment: $f(x) = x^2$ Then I use the following command to generate a preview for that segment: org-toggle-latex-fragment But I get an error: org-...
2
votes
1answer
117 views

Auctex previews, change foreground color of text

I am using a dark theme and the latex previews from auctex are created with black text color. How can I change it? What I can do is change the background color to white (in Preview Reference Face ...
1
vote
0answers
37 views

Syncing tex source with `savebox`

I realize this is quite an edge case, but I am wondering if anyone can help me. I have source correlation set up in emacs as follows (setq TeX-source-correlate-start-server t TeX-...
2
votes
1answer
859 views

Spacemacs Latex: how to make view command tile vertically with emacs window?

I'm using Spacemacs Latex layer, which uses Auctex. If press space m v for the first time, the document viewer opens up in full screen over my emacs window. After, it only updates the window and keeps ...
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. #+...
3
votes
1answer
81 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{...
0
votes
1answer
14 views

Make eqref work in HTML export

I'm trying to use org-ref to reference to equation numbers. It works with PDF export but never works in HTML export. In the web page it only shows a clickable (???) link with no destination. I tried ...
1
vote
0answers
15 views

Get position in a pdf-page by clicking for annoting a pdf with latex

In https://tex.stackexchange.com/a/85676/4011, it is illustrated of how to annotated a pdf by using the latex package pdfpages, loading the pdf as a background layer and then use tikz nodes to make ...
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) ...
2
votes
1answer
33 views

Promote a major mode kbd to a higher priority than the same ones used by a minor mode

I am using emacs to write LaTeX documents with AucTeX and cdlatex. Both of them have the same feature of automatically closing parens and dollar sign symbols. However, AucTeX obviously did a better ...
0
votes
2answers
215 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
1answer
119 views

org-mode table/matrix in latex export

I have an issue when exporting a table using *matrix environments. The align string appears in the cell content, whatever it is specified or not #+CAPTION: my matrix #+ATTR_LATEX: :mode displaymath :...
0
votes
1answer
255 views

Creating table of content with the package titletoc in Org Mode for LaTex export produces strange lines of text

I use the LaTeX package titletoc to produce table of contents in some chapters or sections for Org-Mode LaTeX / PDF export with #+TOC: headlines 1 local But in the PDF file there is for example the ...
0
votes
1answer
93 views

opening brace alignment/indentation problem in LaTeX mode

I have an alignment/indentation problem in LaTeX mode. Every time I begin a line with an opening brace and I hit <TAB> or run an indentation command on the region, the brace becomes aligned with ...
7
votes
4answers
738 views

How to make emacs align and indent a bibtex entry?

I want bibtex-mode to align and properly indent fields. I copied a bibtex entry for the following article into Emacs: (Article source here) But, with a simple paste, the alignment is lost in Emacs ...
1
vote
2answers
27 views

Hook on entering org latex fragment

Hi is there a hook that gets triggered upon entering a LaTeX fragment in org? I'm trying to do (add-hook <enter-org-latex-hook> 'org-cdlatex-mode) but can't seem to find the correct hook to ...
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].]...
1
vote
1answer
29 views

Perform calculations in orgtbl with the LaTeX syntax?

This is an orgtbl table #+begin_src emacs-lisp :results none (setq calc-language 'latex) (calc-radians-mode) #+end_src #+attr_latex: :mode math |----------+-----+----------| | Fonction | var | ...
0
votes
1answer
20 views

Set LaTex export fallback font

How do I set a fallback font for LaTex export to pdf? I have the following setting in my init.el. (setq org-latex-classes '(("article" " \\documentclass[12pt,a4paper]{article} \\...
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....
2
votes
1answer
38 views

How to perform incremental search inside math environments in tex/latex documents

Is there a way to perform incremental search that filters out all non-math environments (i.e., only searches within $...$, $$...$$, and if possible other relevant \begin{..}..\end{..} environments)? ...
3
votes
1answer
73 views

Spacemacs pdf-tools inverse search with keyboard possible?

I am running spacemacs and pdf-tools on Ubuntu 18.04. It does work quite well, however now I asked myself whenever there is an option to do inverse search (or to make a new command doing inverse ...
1
vote
0answers
31 views

Overleaf like compilation check in emacs

When I am writing in latex in emacs I have to press C-c C-l to see the compilation log or use M-x TeX-error-overview to see the errors. Overleaf does have a handy feature, which lets the symbol turn ...
0
votes
1answer
31 views

Display buffer from commandline

I'm trying to do the same thing as described in (Export an org-mode file as a PDF via command line?) generate a pdf from a org file but want to do it inside a docker container also. And now I get an ...

1
2 3 4 5
12