Questions tagged [latex]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
36 views

How can I run additonal linux commands after compiling a latex file

I want to run the following commands when emacs compiles a latex file. FILE="paper.tex" # currently opened buffer in the emacs pdflatex -shell-escape -shell-escape -jobname=paper_temp $FILE;...
user avatar
  • 1,076
0 votes
1 answer
28 views

Org Koma Letter export return args-out-of-range error

After updating my system I get the error at the bottom when exporting C-c C-e C-s (cursor on My Subject). Can someone explain me the error message in order to solve the problem? my_letters.org: * My ...
user avatar
  • 617
0 votes
0 answers
19 views

Is it possible to swap ImageMagick `convert` for Inkscape when generating png files from LaTeX

I made a related post a while back about switching from ImageMagick's convert for security reasons. I've since learned that Inkscape (which I'd previously regarded as bloat) can be used from the ...
user avatar
0 votes
1 answer
33 views

Is it possible to force calc to use the rules of ordinary algebraic calculus when the language is 'latex?

I mean : in a simple way.. (let ((calc-language 'latex))(calc-eval "1/2 + 1/4")) ; =>\frac{1}{12} (let ((calc-language 'C))(calc-eval "1/2 + 1/4")) ; =>3/4 Of course, no ...
user avatar
  • 1,710
0 votes
0 answers
24 views

\usepackage{helvet} not working [migrated]

I need to simulate Arial font. I am using Miketex with texmaker. So far the code below works fine, but since I copied the file on usb and transferred it to another PC, Texmaker will not work with sans-...
user avatar
1 vote
1 answer
24 views

Preview while editing long latex blocks

I need to edit latex for my math class. I'm currently using cdlatex mode w/ org-latex-preview functionality. The downside for me is that I can't see the equation as I'm editing it. I'd love to have a ...
user avatar
1 vote
2 answers
90 views

Change font in table in PDF exported from Org

I'm trying to export an Org table that contains the Unicode characters for moon phases (U+1F311 etc). Export to HTML works fine, but I just see blank spaces in the exported PDF. I know next to nothing ...
user avatar
  • 1,284
1 vote
0 answers
28 views

Org-mode expands org-special-block-extras incorrectly

I've been using org-special-block-extras to insert special blocks in org-mode which I then export to PDF through LaTeX, things such as margin notes or colored blocks. It used to work until recently (...
user avatar
0 votes
1 answer
79 views

How to export org to pdf with RTL text including hebrew

I have written a short document in org and I have tried to export it to a PDF document for printing and readable formatting. I am facing some issues however since the document should include both ...
user avatar
  • 90
0 votes
1 answer
27 views

C-c C-c on #+PROPERTY: keyword line changes the mode from Org to TeX

Context Linux Mageia 8 GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-04-01 Issue With: this (rather long) org-mode file, open with emacs -Q, C-c ...
user avatar
3 votes
1 answer
54 views

How to debug reftex not working with multiple files

I am using reftex and auctex with emacs 27.1 on Ubuntu 21.10 to write a large latex document that consists of many .tex files in a single directory. Between various weekly Ubuntu updates and editing ...
user avatar
1 vote
1 answer
46 views

How to use an org mode document's title in the LaTeX export headers?

I'm using org mode to write letters using a custom LaTeX class provided by my employer. With this class I have to define the title of the document in the LaTeX header like this: \def\subject{This is ...
user avatar
  • 2,460
0 votes
1 answer
32 views

org-mode inline latex call

I would like to add a statement only included in LaTeX export. I know I can use the #+LATEX: prefix, but what if the statement is inlined, like this? \hfill Systemübersicht \hfill This centers the ...
user avatar
  • 224
0 votes
1 answer
26 views

Org-Ref LaTeX citation (v3) export not working correctly

I am writing my dissertation in org-mode with org-ref to handle citations. I can not get a multi-source multi-note citation to export correctly. Here is the org-mode code: [[cite:On Van Tillian ...
user avatar
0 votes
1 answer
41 views

"latexmk" command not found in emacs

I updated my texlive to 2022 recently and found that the auto-compilation command in tex-mode running latexmk -pdf -pdflatex=xelatex --synctex=1 -interaction=nonstopmode -file-line-error file.tex ...
user avatar
1 vote
1 answer
33 views

How to export captions from org-mode into LaTex with subscripts or citations

I'm trying to create a caption but the TOC caption doesn't display properly when there are subscripts, or citations with additional text in the main caption. Having them in the TOC caption seems to ...
user avatar
  • 11
0 votes
1 answer
32 views

How to tell emacs how to find TeX compiler?

I am trying to compile a .tex file using AUCTeX on Emacs 27.2. When I run the LaTeX command (via the menu bar) I get the following message: TeX-command: ERROR: AUCTeX cannot find a working TeX ...
user avatar
0 votes
0 answers
36 views

Org-mode theorem with automatic numbering, label, and caption (export to HTML and LaTeX)

This question is related to a previous SE post: Org export theorem with caption and number in HTML, and a doc page org-special-blocks.el. Another SE post covers this issue, but the solution also doesn'...
user avatar
  • 103
0 votes
0 answers
28 views

Multiple matrices side-by-side in org-mode (export to LaTeX and HTML)

How do I display multiple matrices side-by-side in an org-mode document so that they are exported nicely to LaTeX and HTML documents? Currently, I'm using the following but the result is not what I ...
user avatar
  • 103
1 vote
1 answer
34 views

Can replace-regexp-lax-whitespace manage "~" as a whitespace?

I have this function: (defvar biblio-publishers-info-list '(("Cambridge University Press" . "Cambridge, U.K.")) "DOCSTRING") (defun biblio-publishers-info-complete ()...
user avatar
0 votes
0 answers
28 views

How to convert greek text to unicode using matching input method?

Good evening, I have a large TeX-file with Greek inclusions in traditional babel way: \textgreek{sunj'hkh|}. I would like to convert it to unicode for further work. Emacs has greek-babel input method,...
user avatar
0 votes
1 answer
28 views

AucTex: Output PDF Buffer Location

When hitting C-c C-a to display a PDF, the buffer opens automatically below the TeX source code. How can I force it to open on the right side? I am currently using shackle to manually control the ...
user avatar
0 votes
1 answer
28 views

don't insert curly braces in latex-math-mode

In latex-math-mode, when using any macro, curly braces are inserted. for example using `-g inserts \gamma{}. I would like it to produce only \gamma. I couln't find a way to do this.
user avatar
  • 11
0 votes
1 answer
35 views

Hideshow minor mode in LaTeX

It seems that HideShow mode is not compatible with LaTeX. Is there any way to achieve a similar effect: hide some blocks that I highlight?
user avatar
  • 101
0 votes
1 answer
45 views

Emacs Org will not print out email address?

I use Org mode on emacs 27.2 on ubuntu linux, and have for some time. I have a template where the top section contains: #+title: My title #+author: My Name #+date: Friday March 25 2022 #+EMAIL: ...
user avatar
  • 103
0 votes
1 answer
34 views

How can I compile current LaTeX buffer without showing `Master file:` line in the minibuffer

Following solution is used to compile current buffer that is a LaTeX file: (defun my-run-latex () "Save all buffers and run LaTeX on the current master." (interactive) (let* ((inhibit-...
user avatar
  • 1,076
0 votes
0 answers
16 views

How to make TeX-fold-mode use the correct font face for folded macro argument when inside a tex environment in a org file?

Enabling TeX-fold-mode while using Org-mode produces great results in general. I do so because I have many folding settings for latex files and would like to see my org document folded in the same way ...
user avatar
  • 11
0 votes
1 answer
48 views

How to increase font size of equation from a Latex export block?

I have the following org document: #+LATEX_HEADER: \usepackage[scaled=1.5]{helvet} \renewcommand\familydefault{\sfdefault} Testing equation #+BEGIN_EXPORT latex \begin{equation*} 1 + 1 = 2 \end{...
user avatar
  • 285
1 vote
0 answers
32 views

Exporting Org mode file containing LaTeX code to HTML without MathJax

I have recently started using Org mode and Emacs. I am trying to export Org mode code to HTML and my Org mode has LaTeX code in it. To render the LaTeX code in the browser, one needs internet ...
user avatar
1 vote
2 answers
121 views

How to put pictures on the right and left side of text in org mode for latex export?

I'm stuck on a trial and error loop testing the latex export settings to no avail. What I want: +---------+ | | | Pic | | | +----+----+---+ |Pic |Txt | | | | +----+---...
user avatar
  • 617
0 votes
0 answers
35 views

How to see all latex options?

Somewhere I've heard that having draft somewhere in LaTex doesn't print pictures. Given being in my org file and having no internet connection, how can I use that very vague knowledge to learn about ...
user avatar
  • 617
1 vote
2 answers
115 views

How to use makeindex?

I'm having a hard time exporting an index to a pdf file. I can't find any option named :makeindex as per documentation Pasting the lines below to /tmp/tmp.org end exporting hence doesn't render any ...
user avatar
  • 617
1 vote
1 answer
57 views

Doom Emacs not inserting citep references into LaTeX document

I'm new to using LaTeX for writing papers and I'm trying to get a workflow going using LaTeX in Doom Emacs on Arch Linux (all the required texlive packages having first been installed via pacman). ...
user avatar
  • 21
0 votes
1 answer
30 views

How to automatically disable abbrev-mode when entering math environment?

I use abbrev-mode mostly for usual text in LaTeX. How can I automatically disable it when entering math environment?
user avatar
0 votes
1 answer
33 views

org export with tikz entries

I would like to use orgmode for preparing exam questions. For tex-template I am using tikz which includes some text entries e.g. for the title and subtitle. The tex part for tikz looks e.g. like: \...
user avatar
  • 55
5 votes
1 answer
96 views

Looking for a way to have LaTeX source code and its real-time rendering in side-by-side Emacs windows

I am looking for a way to use Emacs as a LaTeX editor that couples a persistent LaTeX source window with an adjacent real-time rendered view of the LaTeX-encoded content, similar to what is available ...
user avatar
  • 2,909
1 vote
1 answer
57 views

How to properly name or label pictures in org mode?

In particular I can't understand the purpose of fig:. Is it to distinguish figures from other blocks e.g. #+NAME code:python_foo? Does it alter org modes behaviour or is it a convention? I've seen the ...
user avatar
  • 617
0 votes
1 answer
41 views

How to avoid the `\lstset{language=⟨language⟩,...}` before each `lstlisting` when code blocks are exported from org-mode to LaTeX?

With (setq org-latex-listings t), code blocks are exported from org-mode to LaTeX into: \begin{lstlisting} ... \end{lstlisting} So far, so good. But is there a way to avoid the \lstset{language=⟨...
user avatar
0 votes
1 answer
37 views

How to export from org-mode to LaTeX ~⟨code snippet⟩~ into \lstinline[...]+⟨code snippet⟩+ (just as src_⟨language⟩{⟨code snippet⟩})?

With (setq org-latex-listings t), src_⟨language⟩{⟨code snippet⟩} is exported from org-mode to LaTeX into \lstinline[language=⟨language⟩]~⟨code snippet⟩~ (here, ~ could be almost any token): so far, so ...
user avatar
0 votes
1 answer
36 views

How to reduce the exported pdf file size in org mode?

My org file consists of mainly images. The exported latex is ~60MB. Currently I'm using a subsequent ghostcript shell script to shrink the pdf's filesize to ~6MB. Does emacs offer some hidden ...
user avatar
  • 617
0 votes
1 answer
20 views

latex-mode keywords string highlight based on patterns

In LaTeX I use a number of custom commands for which I created a keyword highlight in init.el. For example, I have a command to write argmax/argmin and therefore I have the following in in my init.el ;...
user avatar
0 votes
1 answer
58 views

Org-mode: Verse blocks in LaTeX export

in this chapter of org-mode manual, there is a tutorial on how to export a latex file with some features of verse package, such as line-counting and centralization. The example given is a poem by ...
user avatar
0 votes
0 answers
32 views

How to dynamically display the latex pdf page size in org mode before export?

I'm restrained to submit a pdf containing maximal 1 page. Is there a e.g. mode which dynamically displays the exported pdf's page count?
user avatar
  • 617
0 votes
1 answer
32 views

How can I display the calc menu when `calc-embedded-mode` is enabled?

I find calc-embedded-mode handy for typing math from LaTeX mode. As I use it very little, I would like to have the calc menu in integrated mode. The menu remains in latex mode which is useless. I ...
user avatar
  • 1,710
1 vote
0 answers
30 views

Why does Org mode LaTeX export ignore optional short caption?

I'm exporting an org mode file to pdf via LaTeX. The file contains images with captions #+CAPTION[Short caption]: Full caption that is way too long to fit into the list of figures #+NAME: fig:foo file:...
user avatar
3 votes
1 answer
111 views

How can I convert a Lisp expression to a LaTeX math expression?

How can I convert a lisp expression to LaTeX math expression. From simple things like (- 3 2 1) which should be converted to 3 - 2 - 1, to relatively complex things like: (* 1 2 (/ 2 3)) ⇒ 1 \times 2 \...
user avatar
0 votes
1 answer
52 views

LaTeX code output by Calc wrong

If I enable calc-embedded mode (C-x * e) in a LaTeX document (latex mode by default) when the point is in the math environment of the document below: \documentclass{article} \usepackage{amsmath} \...
user avatar
  • 1,710
1 vote
1 answer
47 views

Configure new commands in orgmode

I want to have custom commands for my documents in Org (which I export to Latex) for this I use \newcommand. I use a template that I load with #+setupfile, but if I define the new commands in that ...
user avatar
  • 21
0 votes
0 answers
36 views

CDLatex math-modify, parenthesis completion for orgmode outside of explicit environment

I would like to use CDLatex not just in specific Latex environments but anywhere. For example to quickly add emphasis or curly brackets for lesser used commands. Currently when typing a'e nothing ...
user avatar
  • 26
0 votes
1 answer
28 views

HTML publish latex block images

I am trying to export a latex tikzpicture, like the following to html: #+begin_src latex :exports results :results raw file :file ex.png :output-dir ../img/ \begin{tikzpicture} \draw node[circle,...
user avatar
  • 3

1
2 3 4 5
16