Questions tagged [latex]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Make first row of long table bold

I have a long table like so: #+NAME: 古本大學文章結構 #+CAPTION: 古本大學文章結構表 #+ATTR_LATEX: :environment longtable :align |p{0.5cm}|p{2.25cm}|p{2.25cm}|p{2.25cm}|p{2.5cm}|p{2.25cm}|p{2.75cm}| :rowstyle bfseries |...
1
vote
1answer
50 views

org-mode How to use latex nested environments?

I want to use a matrix environment that is included in an outer environment, so: Environment: \begin{equation*} \left| \begin{matrix} a_1 & b_1\\ a_2 & b_2 \end{matrix} \right| \end{equation*} ...
0
votes
1answer
24 views

Link to footnote export as non-superscript

Links to a footnote automatically exports as superscript in LaTeX. Source: Lorem ipsum dolor sit amet, consectetur adipiscing elit. [fn:1685d75dd9ccdec5: This is a footnote.] In sed erat porta, ...
0
votes
0answers
36 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, ...
1
vote
1answer
53 views

How can I preview LaTeX “#+BEGIN_EXPORT” blocks? Is it possible to accomplish this with “org-latex-preview”?

The context When editing Org mode files, I like editing code snippets in isolated buffers because that way I can use snippets and language dependent features in those buffers (something which is not ...
1
vote
1answer
30 views

Make “org-latex-preview” load package so that it properly renders “tcolorbox” environments

The context The following org buffer * Random name This is an equation \begin{equation} x = a + b \end{equation} This is a box \begin{tcolorbox} a \end{tcolorbox} is previewed as The ...
3
votes
1answer
115 views

How to generate cited references with biber and xelatex

I would like to generate cited references and bibliography using biber and xelatex through org mode, but have not figured out how to do so. I have to use xelatex because I am working with Chinese ...
1
vote
0answers
61 views

How to properly highlight a code block (in-buffer) when inside of another block/environment?

The issue is that my source code blocks, BEGIN_src ... END_src, are not properly highlighted when within another block, e. g., BEGIN_proof ... END_proof. Here is a picture of how that looks like: ...
0
votes
0answers
34 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
103 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
20 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 ...
2
votes
0answers
33 views

Unexpected indentation in python chunks

Already one year ago, I described a problem on github with polymode and unexpected indents. Since there was no answer there so far and the problem is really annoying, I ask here for ideas for a ...
0
votes
0answers
17 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 ...
1
vote
1answer
53 views

Replace a character with a string as it is typed

I would like to do the following: activate some mode so that whenener I type the $ character in my buffer, it immediately gets replaced by <m>. Even better: when I type $ it puts <m></m&...
0
votes
1answer
19 views

Error “Unknown option `AUTO' for package `fontspec-luatex' ” when exporting from org to pdf with lualatex

When exporting a org file to pdf with lualatex, I get the message PDF file produced with errors. in my minibuffer. Upon inspection, I find ! LaTeX Error: Unknown option `AUTO' for package `fontspec-...
0
votes
1answer
84 views

AUCTeX LaTeX-math-mode outside a mathematical environment

Using AUCTeX with LaTeX-math-mode enabled, if I type (say) ` a inside a mathematical environment, it inserts \alpha, as I want. But if I do it outside a mathematical environment, it inserts \alpha{}. ...
0
votes
1answer
84 views

Getting `dvisvgm` to work with `org-latex-preview`

I am relatively new to Emacs and org-mode, and I would like the images displayed by org-latex-preview to be svg. I am trying to follow the instructions from this Stack Exchange question. I have (setq ...
0
votes
0answers
60 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
70 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
1answer
43 views

Change emacs generated image size in org-mode export

I'm using PlantUML to generate a UML diagram inside an orgmode file. I've looked everywhere, and either I'm using the wrong terms (likely) or I'm missing something (also likely). When I view the raw ...
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
50 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?
1
vote
1answer
42 views

How to stop Emacs from using LaTeX mode key bindings for `*.tex` files?

It seems that Emacs tries to autodetect the type of file and changes some of its behaviors accordingly. I don't want any of this behavior. I just want Emacs to treat every file as if it were some ...
0
votes
0answers
24 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
1answer
40 views

Is it possible to configure a org file for paper as well as presentation using beamer?

I am documenting my work using org mode and babel. I am exporting it to a LaTeX based pdf document by using the header: #+TITLE: Document Title #+AUTHOR: Author #+EMAIL: author@somewhere.com #+...
0
votes
0answers
15 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 (...
1
vote
1answer
26 views

Excluding frames from handout when exporting to LaTeX Beamer

I would like to exclude certain slides when I export my document as a handout using the corresponding option #+LaTeX_CLASS_OPTIONS: [handout]. I know what I need to arrive at in LaTeX to achieve this: ...
0
votes
0answers
47 views

Org-ref: how to get absolute path of bibliography in exported LaTeX file

I use Org-ref to insert references in Org mode when writing articles. I prefer to put bib files in a separate place, say /bib/ref.bib, instead of putting together with org files in ~/org/. After ...
0
votes
1answer
54 views

Pandas data frame as table

I'm enjoying learning org-babel to write literate documents and am trying to include summary tables produced by Pandas describe(). I found an old thread with some answers but none of the provided ...
0
votes
0answers
51 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 &...
1
vote
1answer
38 views

Export beamer handout or presentation function in org-mode?

I'd like to be able to call a function to export to pdf (via latex beamer) from an org subtree. Right now I have properties set up like so: :PROPERTIES: :EXPORT_LATEX_COMPILER: xelatex :...
1
vote
0answers
23 views

Add a background image to pdf export of an org-beamer file

I'd like to add a background image to a single page in a pdf I am creating with M-x org-beamer-export-to-pdf using the Metropolis theme (no relation). The use of the theme doesn't appear to be the ...
2
votes
1answer
75 views

Properly exporting latex to HTML from org-mode using dvisvgm / dvipng

I need to export my org notes containing latex to HTML format. Example document : #+latex_class: article #+latex_header: \usepackage{chemfig} #+latex_header: \usepackage[version=3]{mhchem} #+...
0
votes
1answer
47 views

How to use latex package emaxima in emacs

I am trying to use maxima with emaxima package in latex. I am using xubuntu 20.04, emacs 26.3, maxima 5.43.2. Here is my simple latex file. \documentclass[11pt,a4paper]{article} \usepackage[lines]{...
1
vote
1answer
62 views

How to define an org-mode “#+” type keyword?

I apologise if this has already been asked but I have no idea what are the "#+XYZ" commands in org-mode even called, tags? keywords? macros? I have a private Latex class whose usual header looks like ...
0
votes
1answer
89 views

How color ~code~ on export from org-mode to latex (pdf)?

I am trying to export an org file to latex (to pdf via latex) and to make latex color the inline ~code~ parts. According to the manual (see [1] "Defining filters for individual files") this should be ...
1
vote
2answers
58 views

Removing alignment in LaTeX align environment

I want to write a very long equation (3-4 lines) in LaTeX. For this equation I want to use align environment. What I don't like is how Emacs formats the LaTeX code: it adds a lot of unnecessary space, ...
0
votes
1answer
39 views

Org-mode export error- Wrong type argument: org-export-backend

I'm trying to export an Org document to latex, but get the following error: org-export-get-all-transcoders: Wrong type argument: org-export-backend, [cl-struct-org-export-backend nil latex ((...
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
1answer
35 views

using bibtex in org-mode messes up inlineimages of latex preview?

I had latex preview working with inlineimages as in the following .org file: #+STARTUP: latexpreview #+STARTUP: inlineimages $A \to B$ The latex formula is correctly changed into a png image as ...
0
votes
1answer
40 views

How to disable specific flycheck-warning messages in LaTeX-mode?

Currenty I am on LaTeX-mode-hook using flycheck. (setq LaTeX-item-indent 0) (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill) (add-hook 'LaTeX-mode-hook 'hl-todo-mode) (require 'tex) (add-hook 'LaTeX-...
0
votes
0answers
24 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/...
1
vote
1answer
27 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
23 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
43 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
87 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-...
1
vote
1answer
42 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 ...
0
votes
0answers
15 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 ...
2
votes
1answer
57 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
2 3 4 5
13