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
6 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
123 views

How to link to a LaTeX label within align* environment in Orgmode?

I am using org mode to write documents with math, and then exporting to latex. Consider an unnumbered align environment with two equations: \begin{align*} x = 1\\ y = 2 \end{align*} Now, number the ...
0
votes
1answer
26 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
50 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
25 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
11 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
40 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 ...
0
votes
1answer
103 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-...
2
votes
2answers
38 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
3answers
989 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
319 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 `...
1
vote
1answer
16 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
14 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 ...
4
votes
1answer
737 views

How to set PDF export in polymode-mode to use xelatex engine?

Consider the below MWE of .Rmd file containing Arabic text which needs xelatex engine to be rendered by pandoc. As the documentation of the latter says putting this option would make it: --latex-...
0
votes
1answer
92 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
205 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
31 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 ...
2
votes
3answers
35 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 ``'...
3
votes
1answer
296 views

Org-mode #+include: — ignore configuration lines from included file

How can I have org #+INCLUDE: ignore configurations from the included files? I'm thinking of cases where I don't want Latex Classes to be messed up. For example, if I have two org files book.org and ...
2
votes
1answer
336 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 ?
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$, ...
2
votes
1answer
57 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 ...
3
votes
1answer
76 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
2answers
124 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
101 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
83 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 ...
1
vote
1answer
31 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
19 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
25 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
40 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
12 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
37 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
59 views

Spacemacs keeps installing and uninstalling auctex-latexmk

Running spacemacs 0.200.13. Everytime I start spacemacs, it either installs auctex-latexmk or deletes it saying that it is an orphan package. Here is some more information: I have latex layer ...
0
votes
0answers
41 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 ...
0
votes
1answer
33 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-...
2
votes
1answer
47 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
83 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
41 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
24 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 ...
2
votes
1answer
87 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
37 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
20 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
1answer
69 views

Org-mode export to PDF not highlighting code blocks

I am trying to use org-mode export through LaTex to get a nice PDF of my documents, but I can't get it to show highlighted code blocks through Pygments. The following is a snapshot of my configuration....
1
vote
1answer
48 views

Latex compilation message in the echo area dissapears too soon

The outcome (success/error) of a Latex compilation (TeX-command-run-all) is printed in the echo area. Once you press a key, however, the echo area is cleared and the message is gone. I usually look at ...
0
votes
0answers
51 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?
3
votes
1answer
567 views

Exporting Org in Landsacpe

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 ...
1
vote
0answers
56 views

AUCTeX: 'reftex-cleveref-cref' inserts '\eqref' instead of '\cref' for equations

When I run 'reftex-cleveref-cref', which is supposed to insert a '\cref' command in my LaTeX file, I get the expected behaviour for figures and sections, but not for equations: I get the '\eqref' ...
0
votes
1answer
35 views

AUCTeX: Command 'reftex-cleveref-cref' not recognized before 'reftex-reference' is run

I have a strange behavior in AUCTeX with RefTeX: the command 'reftex-reference' (C-c )) needs to be run before the command 'reftex-cleveref-cref' gets recognized, on a newly-started emacs session. In ...
0
votes
0answers
38 views

Auctex doesn't show the preview pictures, while no error output

When using the preview command in the auctex editor on a latex file, no pictures are actually displayed, and no error output in the log. I checked that there does exists the "_region_.pdf" file, ...