We’re rewarding the question askers & reputations are being recalculated! Read more.

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
25 views

Org-mode parameters for custom table environment for LaTeX

I am using an overridden table environment based on tabular to get some custom cell coloring based on row alternation (similar to what rowcolors does, but also allowing column color variation at the ...
0
votes
0answers
26 views

Markdown and Latex highlighting (font lock) in R Markdown file

I am using polymode to edit rmarkdown files. Exporting to e.g. pdf is super simple and works very well. R code chunks are also properly highlighted. But: I do quite often use latex code inside (r)...
0
votes
0answers
32 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
25 views

Org-export: Change position of author and title in the tex-file?

I want to convert my latex template to an org-mode template. I want to change where the \title{} and the \author commands are inserted in the tex-file. At the moment these commands gets inserted just ...
2
votes
2answers
44 views

Org-mode: How to LaTeX export “$n$-” correctly?

I have notes containing many of the following type of LaTeX fragments $p$-adic ... $n$-th ... But org-mode exports them as literal dollar sign instead of math. The problem seems to be the - ...
0
votes
0answers
17 views

org-mode: Multiple source listings in the same float

I have an org-mode document that includes source listings of two kinds: XML and text, where the XML code refers to the text file. I want to include the two source listings into the same float in the ...
0
votes
0answers
46 views

asynchronously running org-toggle-latex-fragment

In orgmode, it is quite useful to view the equations inline. However, sometimes this can take a while to execute. Running org-toggle-latex-fragment asynchronously would be quite useful. However, most ...
0
votes
0answers
24 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
15 views

How to get correct list numbering with code blocks items in Org-babel?

Here is a minimal working example of Org file for LaTeX export: #+OPTIONS: toc:nil * A list with R source blocks 1. This is the first item. #+begin_src R :results output :session *R* :exports both x ...
1
vote
2answers
42 views

Emacs Org-mode + Letter class = Unknown latex class 'letter'

I want to use Emacs with org-mode to export notes using 'letter' class. Texlive is installed in a Mac, and have many classes to export. But Emacs in org-mode only work with: article, report and book: ...
2
votes
1answer
24 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 ...
0
votes
1answer
14 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
62 views

How to execute a org-babel source block within the working directory?

Say you have the following org-babel source block: #+BEGIN_SRC latex :results raw :file test.pdf \LaTeX #+END_SRC When executing it, org-babel will do the actual compilation in a temporary directory ...
0
votes
1answer
71 views

Why emacs loses its config settings when editing tex files

I'm facing a rather peculiar situation where my emacs settings seem to be lost every time that I open a .tex file. That's doesn't happen when I'm editing .el or .py files. Heres some examples with ...
1
vote
1answer
18 views

Exporting Org to PDF while displaying Regex literal strings

I've been searching for the past couple of days to a solution to an issue I'm having. Hoping somebody who is more apt with emacs/exporting could provide some insight. Upon exporting an .org file (C-...
0
votes
0answers
27 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
36 views

How can I get Tex-latex-mode style inline math fontification in Org mode?

I enjoy the inline math fontification that the AucTeX TeX-latex-mode provides – both the theme-responsive coloring and visual indication for sub- and super-scripted math. I have worked in plain ...
0
votes
1answer
43 views

How to align the source code block when export to PDF in Org-mode?

While using org-mode to export source code to PDF files, the source code is not aligned with the indentation of the text. The .org file are as follow: And the output result looks like this: Would ...
2
votes
1answer
34 views

Yasnippets: How to add if statements that check for regex?

I would like to replicate some of the snippets shown in this blog post Some of the snippets shown in that post involved if statements that check for regexp in snippet fields as well as checking for ...
0
votes
0answers
44 views

Spacemacs/LaTeX : How to scroll at the same time and pace a tex file and its pdf preview?

Config : Spacemacs 0.300.0@27.0.5 with latex layer I am using two windows in one frame with a tex file and its preview: |---------------------------------------------------------| | \section{...
0
votes
0answers
21 views

How to allow multi language output with org mode and Latex?

I'm using the most recent version of emacs on Windows10. I have an issue where when I want to convert an org file to Pdf through Latex but I'm having languages issues. If I use English I have to ...
0
votes
1answer
94 views

company-mode doesn't work on latex environment

I've installed the company package in order to get an auto-completion functionality. It works well in my ESS environment, but no in latex. In fact, no completions are showed in latex buffers when I ...
0
votes
1answer
60 views

How to perform query-replace inside mathematical expressions in latex

Inspired by this answer, I have written the following function to perform a query-replace inside a math environment, but it does not work. Edit. If you execute the function, the query-search tries to ...
0
votes
1answer
31 views

Semantic way to export Org subtrees inside arbitrary LaTeX environments

I would like to begin taking math class notes in Org mode -- I have thus far used plain LaTeX, but I have found Org has the potential to be much faster for real-time scribing. I already made a custom ...
0
votes
0answers
30 views

Org mode export to latex with adjustbox

I have some document, in which I make use of tables. These tables are sometimes a little too wide to fit on a page and will overflow the page margin, when I make the PDF file from the Latex code, ...
1
vote
1answer
60 views

AucTeX not loading beamer class

When trying to use the LaTeX document class beamer with AucTeX it does not load the template. Emacs reports Symbol’s value as variable is void: LaTeX-hyperref-package-options-list after loading ...
2
votes
2answers
80 views

org-mode export to LaTeX: Wrapping a section in an environment

What's a good way to wrap every section in org-mode inside a LaTeX environment when exporting from org to LaTeX? For example, say, I want to wrap each section in a minipage so that the width is ...
1
vote
1answer
39 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]{...
0
votes
0answers
17 views

Native Org Citation Style

CSL style-sheets can be easily customized to render, for example, Chinese citations like these: 徐復觀〈陰陽五行及其有關文獻的研究〉,收入《中國人性論史》,頁555-563。陳鼓應,《易傳與道家思想》(台北:臺灣商務印書館,1994年)。 from the bibtex entries ...
0
votes
0answers
52 views

Merge two cells in an org table

I basically stumbled onto this older question how to merge cells in an org-table. This would be very useful to create a header, something like: |Merged header| |----+--------| | / | < | | 1 ...
0
votes
0answers
19 views

TeX-view replaces current buffer

I am encountering an issue since I switched to dev-branch: when I run the TeX-view command with only one active buffer (my .tex file), instead of opening a new side-window and displaying the PDF there,...
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$, ...
3
votes
1answer
380 views

How do I have tables side by side?

I'd like to have small tables being shown side by side instead of one under the other, when I export to PDF. Is there an easy way to do that ? Like a break between tables ?
3
votes
1answer
113 views

How can I reliably create latex classes in org mode?

I'm trying to modify my .emacs to create my own classes, I tried this article and using org-latex rather than ox. I also tried this different approach. I tried enclosing the above classes with ...
2
votes
3answers
44 views

Disable tex-mode's auto tex-insert-quote functionaliy

So basically, for reasons unknown we don't use regular LaTeX style quotes at my company, instead just using regular double quotes. However, tex-mode in emacs automatically substitutes the " key for ``'...
1
vote
1answer
33 views

CUSTOM_ID for HTML breaks “next line” in LaTeX

If in Org, I have **** Scancode :PROPERTIES: :CUSTOM_ID: input-types-scancode :END: Representing a Scancode is simple. the ID properly gets set in HTML: <ol class="org-ol"> <li><...
0
votes
0answers
21 views

How to silence *Org Preview LaTeX Output* buffer?

Every time I preview a math segment, this buffer pops up with the following text: This is /path/to/bin/dvipng (dvipng (TeX Live)) 1.15 Copyright 2002-2015 Jan-Ake Larsson [1] Is there a way I can ...
0
votes
0answers
26 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
67 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
21 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
1answer
44 views

Regex: Don't Match Text Between Curly Braces (LaTeX Commands)

I've been using pandoc and emacs to convert beamer presentations to markdown format. In the beamer presentations we highlighted certain code in example code blocks red. Pandoc has left me to get rid ...
0
votes
0answers
52 views

Error when exporting to pdf in org-mode

I get the following error when exporting to pdf directly in org-mode (C-c C-e l o), but conversion using pandoc with the exported tex document (C-c C-e l l) works fine. What went wrong? Latex ...
2
votes
1answer
50 views

How can I position \label outside \caption in LaTeX export of figures?

Say you have a figure in your org-mode file like the following one: #+NAME: fig:first-figure #+CAPTION: Some caption #+BEGIN_figure This is a figure. #+END_figure This is exported to LaTeX code ...
4
votes
1answer
90 views

AUCTeX command for Make and View

I sometimes use Makefiles with LaTeX documents, and so I'd like to define a command that does something similar to AUCTeX's C-c C-a (TeX-command-run-all) but using make. I tried creating a function ...
0
votes
1answer
48 views

Org-ref not communicating with Tex-live?

Org-ref cannot tell that I have biblatex-caspervector installed. Is this because of some packages that I missed?
0
votes
0answers
30 views

Compile multiple Rnw files

If we divide our Rnw file into multiple files, is it possible to create the whole document using knitr and LaTeX in Emacs by pressing M-n e on a child file? I guess the process above should be ...
0
votes
0answers
44 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 %%% ...
2
votes
1answer
97 views

org-mode tikz drawing behavior abnormal

In below example, the text should be show on the right side if compile the latex code with pdflatex command. but in org-mode, the right side text missed: #+HEADER: :fit yes :imagemagick yes :...
0
votes
0answers
21 views

How to setup Emacs for live editing of ConTeXt documents?

I haven't found anything on how to set this up, such that latex-preview-pane works as expected, and I also couldn't find how to get the preview-latex working. It's mentioned in online docs but there's ...
0
votes
0answers
66 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?