Questions tagged [latex]

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

170 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Spacemacs: Latex labels not showing in ref

Manually defined labels (without reftex) are not showing when I use helm-completion-at-point inside a \ref{} environment. How to make the labels show? I am new to Emacs and Spacemacs.
0
votes
0answers
26 views

TeXStudio profile for emacs keybindings?

Does any have a TeXStudio profile for setting basic emacs keybindings (C-p, C-n, C-b, C-f, etc.)? I know I can manually set them myself, but TeXStudio doesn't deconflict hotkeys and the work would be ...
0
votes
1answer
33 views

How can i make org mode export latex file with a custom language?

I need romanian for my school reports, i want to write them in org mode. Is there some #+LANG attribute? Do i need to set some emacs variables? I'd really like a per-file solution more
0
votes
1answer
35 views

Org-mode to Latex matrix automatically escapes ampersand

I am trying to write LaTex matrizes in org-mode. It works fine with exporting tables via #+attr_latex :mode math :environment matrix. However, when I try \begin{pmatrix} 1 & 2\\ 3 & 4\\ \end{...
0
votes
1answer
23 views

Run latexmk inside z shell instead of shell

Problem I am using latexkm to compile .tex documents, and recently I got this error while compiling: Running `latexmk' on `AF2021_serie5' with ``latexmk -bibtex-cond -pdf -synctex=1 AF2021_serie5'' Rc ...
0
votes
0answers
53 views

Syntax highlighting for shell code blocks when exporting org-mode files to Latex using listings

I'm using the LaTeX package listings for exporting code blocks in org-mode to latex files. I've defined a latex template with the =org-latex-classes= feature as described in https://so.nwalsh.com/2020/...
0
votes
0answers
70 views

Emacs warning after package updates

After running updates using list-packages, emacs keeps popping out the following messages when I open a tex file. I tried to reinstall the packages and commented out all settings related to auctex, ...
0
votes
0answers
38 views

Fit window to pdf upon loading

Question: I'm running auctex and pdf-tools to view pdf's within emacs. My problem is that I'd like to scale the pdf window horizontally after running C-c C-c. So far, I've created a hook to execute ...
0
votes
1answer
333 views

error while loading shared libraries: libpoppler.so.101: cannot open shared object file: No such file or directory

Running Doom Emacs 2.0.9 on Emacs 27.1 on Manjaro KDE. When I compile a latex documents, it produces a PDF file and opens an emacs window to display it. But what is displayed is some text and not the ...
0
votes
0answers
25 views

org-fill-paragraph in the presence of LaTeX Formula

Consider the following piece of text Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore $$e^ix = cos(x) + i \dot sin(x)$$ Lorem ipsum dolor ...
0
votes
0answers
20 views

How to get spell suggesstion for the word that cursor is on in the minibuffer?

Example behavior: When I am using python-mode if a cursor is on top of on a error, the error message is printed out on the minibuffer. If I have following line import o , import keyword get bold and ...
0
votes
0answers
98 views

org-latex-preview on entering insert mode in spacemacs

I use Spacemacs and org mode for writing latexified notes. There is no custom setup, just the default latex layer. I usually toggle org-latex-preview by C-c C-x C-l. It is annoying, because I must ...
0
votes
1answer
73 views

Highlight parentesis in latex

the image is self explanatory, I recently switched to doom emacs and I'm still learning. How can I fix this problem? I tried to switch off anything related to checkers in the init.el file but it doesn'...
0
votes
0answers
47 views

LaTeX pstricks pdf compilation without any specific configuration

I changed the auctex style file pstricks.el (from lines 779-784) (TeX-add-style-hook "pstricks" (lambda () (unless (or (member "pst-pdf" TeX-active-styles) (eq TeX-engine ...
0
votes
0answers
53 views

In-line latex fragment position in org-mode

The in-line LaTex equation images are slightly higher than the rest of the font, maybe because of the image borders. This is really a small thing but could it be better aligned at the bottom?
0
votes
0answers
25 views

export to Beamer gets slower and slower

My presentation has like 30 slides, nothing fancy, mostly a couple of bullet points on each frame and in total like 10 small images. Still the export to beamer, i.e. a pdf takes like 10 seconds and ...
0
votes
0answers
18 views

Auctex freezes when editing an equation containing '' at the end of a long document

Whenever I edit a particularly long document (thousands of lines) with auctex, I start getting freezes when I edit a math equation that contains a double prime '' far down in the document. My guess (...
0
votes
0answers
91 views

imaxima: no LaTeX output and crash

I want to setup the imaxima buffer with working LaTeX output. Following the EmacsWiki, I added this to my init: (add-to-list 'load-path "/usr/share/emacs/site-lisp/") (autoload 'maxima-mode &...
0
votes
0answers
23 views

Is there a configuration of Latex files which can change my key-bindings?

I am observing what I believe is an odd behavior in Emacs. I have a Latex file which, when opened, changes the keybindings in my Emacs. For example, C-x s does not save the file anymore, and Emacs ...
0
votes
0answers
28 views

Better usage of langtool with `.tex` files

I have integrated langtool into emacs for grammer check .tex files. Seems like it is not configured for .tex files in some cases. Download link for the .jar file (https://languagetool.org/download/...
0
votes
0answers
29 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
49 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
16 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
20 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
55 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
129 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
16 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
23 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
23 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
19 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
80 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
20 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 ...
0
votes
0answers
57 views

How to export multiple org files to pdf using a shell script that calls an elisp snippet?

I am new to Emacs (I am using spacemacs). Please be patient. I am still learning but now that I realize the power of Emacs I want and hope to learn elisp also. I have a bunch of org files prefixed "...
0
votes
0answers
43 views

How to replace a LaTex macro with its argument?

I want to replace a macro with its argument, that's to say, if I have \newcommand{\foo}{FOO} I want to replace every occurence of \foo with its argument FOO in a specified region. I am trying to ...
0
votes
0answers
21 views

AUCTeX: inconsistent behaviour when compling (probably becuase of what I'm doing)

I cannot get AUCTeX to preview updates to multifile documents. I have the following config: (use-package tex :ensure auctex :config (setq-default TeX-master nil) (setq TeX-source-...
0
votes
0answers
242 views

How to properly render markdown latex in emacs cli using markdown-mode and pandoc?

I have been facing lately the following problem. I have installed markdown-mode and I've been using pandoc behind the scenes to communicate with markdown-mode and do the rendering. I've been trying ...
0
votes
0answers
29 views

Emacs(AUCtex) can't recognize \input{~/Documents}

I have three MacOSs, and set different names for User and Home Folder. I take Emacs as my default editor in those devices. Using Emacs to edit tex-document, I found the code \input{~/Documents} and \...
0
votes
1answer
63 views

How to open a PDF after running tex-file?

I am able to run pdflatex via tex-file, and the PDF generates just fine. How would I go about automatically opening the resultant PDF file after generation?
0
votes
0answers
13 views

Having tinybookmarks-insert using %%% in LaTeX mode buffers

I am using the package tinybookmarks.el from project emacs-tiny-tools. It provides nice commands, to insert a separation break line, which can be used as bookmark like this one from one of my Lisp ...
0
votes
0answers
49 views

Automatically Highlighted Pdf Code Export [Org-Mode]

I want my Org Mode Latex Pdf Export to look like Code Styles and Colours Colour definitions for the xcolor package have been added to org-format-latex-header It looks like that now: (setq org-...
0
votes
0answers
95 views

Automatic detection of master files not working in AUCTeX

I have the following two questions: 1) Is it still recommended these days to use the guess-TeX-master snippet from AUCTeX wiki? 2) If yes, could someone provide some hints on why it doesn't work in ...
0
votes
1answer
57 views

Avoid Adding Backslash to Curly Brackets when Exporting Latex

I want to export an org tree to latex, but whenever I have a command that nests curly brackets, org export will automatically prepend all brackets with a backslash. For example, the tree: Exports to ...
0
votes
0answers
68 views

Skim: search backward generates shell buffer in Emacs

I have configured forward and backward search between Emacs and Skim (MacOS) for my LaTeX work. While the search works fine, every time I do an backward search from Skim, an additional shell buffer ...
0
votes
0answers
28 views

Putting a framebox around enumerated items

I would like to put my enumerated items in a framebox with rounded corners. I can do it with LaTex. But I would like to do it in emacs org document. How can I do it ?
0
votes
0answers
577 views

spacemacs: LatexMk not recognised when building latex

I am trying to build a LaTeX file from inside spacemacs. I have LatexMk installed with MiKtex. I have tried SPC m b to build a test.tex file and it does nothing. Doing C-h C-l shows: Running `...
0
votes
0answers
78 views

Preview LaTeX doesn't work when I delete the _region_.prv folder

Suppose I create a latex document in ~/junk/text.tex with the following conent: \documentclass{article} \begin{document} $x$ \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% ...
0
votes
0answers
191 views

Proper syntax highlighting of $…$ in org-mode

I've put (setq org-highlight-latex-and-related '(latex script entities)) in my emacs config and yet $..$ that contain more than one symbol aren't highlighted properly: How to fix?
0
votes
1answer
161 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
0answers
31 views

How to prevent preview-latex to manipulate and delete the pdf created by latex

Running latex-preview manipulates and then deletes the pdf created by latex. If skim is open as pdf-viewer the pdf gets sliced into the images created by latex-preview. Running latex again doesn't ...
0
votes
1answer
56 views

How to get error messages for org-preview-latex-fragment?

(This took a long time to research, so I'm answering my own question, hoping to save others some time) Let's say I have a file like this: one by two is $\froc1{2}$ When I run M-x org-preview-latex-...