Questions tagged [latex]

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

Filter by
Sorted by
Tagged with
6
votes
1answer
925 views

Org: Add front cover for LaTeX/PDF export?

I want to add a front cover for my Org document which will export as a PDF (#+LaTeX_CLASS: article). I don't want to modify my org-latex-classes and apply globally. I tried to add the following block ...
6
votes
1answer
1k views

Exporting beamer with org-mode

How do I generate a beamer presentation from an org-mode file? What beamer features can I use in my file?
6
votes
1answer
242 views

Formatting of usepackage commands in LaTeX document

I'm trying to use AUCTeX edit LaTeX files. The beginning of the document I just wanted to edit looks like this: It's not neatly organized, inconsistent in many ways, and I should probably change it ...
6
votes
1answer
1k views

Specify sidewaystable placement in Org-mode export

I have an Org-mode document that I am exporting to PDF, and my document contains a table that I would like to rotate on export. I have been able to achieve the rotation with #+ATTR_LATEX: :float ...
6
votes
1answer
54 views

How to check with regular expressions or another way if some package is used in a LaTeX document?

How to check if a specific package is used by a LaTeX document. For example in the below document (intentionally written in an ugly but technically correct format), the packages fontenc, inputenc, ...
6
votes
1answer
595 views

How can I have Org use `sidewaysfigure` in LaTeX export?

I am writing an Org document with some large figures (images) which I would like to place on a separate page in landscape orientation when exporting to LaTeX. In LaTeX I can achieve what I want by ...
6
votes
1answer
268 views

Make AUCTeX compile each \include to a separate file

In LaTeX it is customary to put the content of different chapters into different files which are then pulled into a master file using \include{FILENAME} statements. One can then use the \includeonly{...
6
votes
1answer
4k views

Exporting org to pdf: LaTeXerror [closed]

When I try to export a .org or .tex file to pdf with the command org-latex-export-to-pdf, I get the following error in *Messages* buffer: Processing LaTeX file ./test.tex... org-latex-compile: PDF ...
6
votes
1answer
108 views

Don't complain about unmatching parenthesis and brackets in latex math mode

In mathematical notation, parenthesis and brackets have overloaded meaning, and when it comes to represent intervals, the parenthesis/brackets don't have to match. For example, (1, 2] means an ...
6
votes
1answer
414 views

Table cell alignment breaks when using latex inside org table

Let's assume we have a table that looks like this: After running org-preview-latex-fragment command I get this: As you can see the top row is not aligned with the other rows. How can one view ...
5
votes
1answer
553 views

org-mode / export to PDF: How to disable numbering for pages?

When I export a simple text file to PDF with the command org-latex-export-to-pdf, by default, Org-mode adds the number of each page at the bottom of the PDF file. But I would like Emacs to print ...
5
votes
2answers
274 views

Don't switch to math-mode when entering `$` in a `minted` environment

I am using AUCTeX to edit Latex files and use the minted package to highlight source-code within documents. Unfortunately the character $ is still recognized as a delimiter for a math-mode even though ...
5
votes
1answer
169 views

Recompile tex file without modification

I \input{b.tex} in a.tex. I made changes to b.tex, and tried to recompile a.tex by C-c C-c in AUCTeX, but it didn't work since a.tex hadn't been changed. How can I recompile then?
5
votes
1answer
282 views

AucTeX: can I hide comments?

Is there a setting in auctex that can hide (fold) comments (paragraphs which start with %)?
5
votes
1answer
360 views

LaTeX closing $ signs makes cursor jump

I'm in LaTeX/PS mode and whenever I close my $ math statements the cursor jumps to the first $ and back to the closing $. How can I disable this?
5
votes
1answer
914 views

How can I customize the LaTeX export of org babel #+RESULTS?

I regularly use org-mode and org-babel to create e.g. exercises or proof-of-principle documents which I export to PDF via the LaTeX exporter. I noticed that the #RESULTS generated by a #+begin_src-#+...
5
votes
2answers
839 views

How do I insert resizebox code in org-mode tables when exporting to latex?

I'm trying to figure out how to insert a resize command inside a table environment in org-mode that exports to latex, Here is my minimal example of raw latex source vs org-mode tables: #+LATEX_CLASS:...
5
votes
1answer
996 views

Make org-mode export to Beamer keep temporary files out of the current directory

Exporting to Beamer from org-mode creates a myriad of temporary files (the .tex file + files ending in .aux, .log, .toc, .fls, .nav, .vrb, etc.). Most LaTeX implementations now have an option (-...
5
votes
1answer
163 views

Inserting unicode symbol for rational numbers ℚ using TeX input method

Hello good people of Emacs! To insert unicode math symbols I use TeX input method. This way I get unicode character ℝ by typing \Bbb{R}, ℕ by typing \Bbb{N}, ℤ by typing \Bbb{Z}, etc... I'm unable ...
5
votes
1answer
438 views

LaTeX Mode and Listings with $-signs?

I am using LaTeX-Mode and need to include some listings which contain dollar-signs: \begin{lstlisting}[caption=Meteor Server: Bereitstellen einer entfernten Prozedur,label=lst:meteor-server-publish-...
5
votes
1answer
2k views

How do I configure class options for latex export in my .emacs?

By default org mode seems to configure 8x11 as the paper type when I export to latex. I always print to A4, so I would like all of my exports to specify a4 as the paper type -- e.g.: \documentclass[...
5
votes
1answer
163 views

Recognize LaTeX partial files (with no preamble) as LaTeX

I installed auto-complete and also auto-complete-latex so to be able to use it with LaTeX files. Because in a document I use an external file with the preamble commands in it, Emacs recognises only ...
5
votes
1answer
163 views

Close latex compilation window when successful

I like having TeX-show-compilation in LaTeX for large documents. However, if the compilation completed successfully, I would like the windows to be reverted or the compilation buffer to be killed. I ...
5
votes
2answers
293 views

LaTeX preview on HiDPI display

LaTeX preview with C-c C-x C-l looks very tiny on my HiDPI screen. What can I do to solve this?
5
votes
1answer
113 views

Inform AucTeX about index style file

I am currently working on a document for which I use a custom index style file. When I type C-c C-c to compile my document, Emacs/AucTeX offers to run its Index command (which I assume runs makeindex)....
5
votes
1answer
219 views

Handling left-to-right inside right-to-left paragraphs using Emacs and AUCTeX

I'm using Emacs to typeset a document which has English as its main language but which will use Hebrew and Greek as well. You can see on my screenshot how the \footnote command shows two open ...
5
votes
3answers
742 views

TOC of tables for org-mode long tables

Here is a super-short org mode file ready to export to pdf C-c C-e l o. It is a sample file to demonstrate long tables and the issue I am facing with the auto generated index of tables by org-mode. #+...
5
votes
1answer
738 views

controlling display of latex equations in org-mode

By default org-mode will overlap images of the latex equations for a given section, or for the whole document. If I press C-c C-c on an equation with an image overlay, all the images are removed. Can ...
5
votes
2answers
520 views

Deactivate subscripts and superscripts raising / lowering in latex mode

On a new install, I noticed that Emacs systematically lowers or raises what it identifies as subscripts or superscripts (sometimes correctly, sometimes incorrectly...) due to the presence of _ or ^ in ...
5
votes
1answer
285 views

Exporting Devanagarai text from org-mode to LaTeX?

I have a .tex file with text in Devanagari script. I am able to convert to pdf using XeLaTeX outside of Emacs without any problem. However, when I try it within Emacs, the resulting pdf does not have ...
5
votes
1answer
89 views

detect if inside a LaTeX ``quote'' and return its bounds?

Q: how can I test if point is inside LaTeX ``quotes,'' and how can I get the bounds of that quote? LaTeX quotation marks are kooky, typesetting ``text inside a double-quote'' and `text inside a ...
5
votes
1answer
2k views

AUCTeX/Preview PDF2DSC sentinel error

I normally use OS X, and have recently decided to start using Emacs, and specifically AUCTeX based on myriad recommendations. I downloaded the current version for OS X and tried to preview a very ...
5
votes
2answers
120 views

How to inherit one abbrev table in another abbrev table?

I've defined a lot of abbrevs in latex-mode-abbrev-table and I'd like to use all the contents in latex-mode-abbrev-table and org-mode-abbrev-table when in org-mode. A possible "solution" would be to ...
5
votes
1answer
1k views

“Error running timer `font-latex-jit-lock-force-redisplay'” in LaTeX mode

Since an upgrade to GNU Emacs 24.4.1, I Error running timer `font-latex-jit-lock-force-redisplay': (wrong-number-of-arguments (2 . 2) 3) [N times] where N in my observations ranges from single ...
5
votes
1answer
319 views

Preview LaTeX fragment on indirect buffers

I am writing my research notes in org-mode and they contain many LaTeX formulas. I use the preview feature (C-c C-x C-l) a lot. As the notes are rather large, I also tend to use an indirect buffer, to ...
5
votes
1answer
239 views

Set image width globally for LaTeX export

I write my research notes in org-mode, and I'd like to avoid writing #+ATTR_LaTeX: :width 5cm :placement [!htpb] right before all of my figures, to save some time. A possible solution might be to make ...
5
votes
1answer
237 views

Org-mode latex pdf export command doesn't find citations

I'm trying to write my thesis in org-mode, and so far it feels amazing. The integration with my todo system, the easy markup language, integration with latex. Wow. But recently (since I upgraded to ...
5
votes
0answers
194 views

How can I wrap org-preview-latex-fragment to be async?

Calling org-preview-latex-fragment blocks user input for a second or two depending on the size of your fragment, and with universal args, converting all fragments in buffer can take minutes. It would ...
4
votes
2answers
2k views

How to include “titlepage” before the Latex Org Mode document?

I have a title page that I would like to put before the Org Mode document. Example is below. Right now, I am producing the title page separately and printing it as 2 separate files. It would be nice ...
4
votes
1answer
1k views

org-mode different latex document class

I am trying to use tufte-book document class in org-mode. But for some reason, org-mode doesn't let me use it and says it is unrecognized. So I am going to the resulting .tex file and manually ...
4
votes
1answer
1k views

Orgmode + Mac (el capitan): can't find latex

I'm running Orgmode 8.2.10 on a Mac (El Capitan) and I'm trying to use C-c C-x C-l to preview some latex formulas. However, using the mentioned shortcut produces the error: Can't find "latex" (needed ...
4
votes
1answer
973 views

multiple files in LaTeX?

I currently use emacs to write and compile LaTeX files using the key combo: C-c C-f. Now this is all well and good, but now I'm working on a much bigger project that is divided into many chapters. ...
4
votes
1answer
2k views

Changing default font size in org latex export

Org exports latex with default font size of 11 pts. Is it possible to make this font size to 10 pts and also reduce spacing to one and half space ? Regards
4
votes
1answer
858 views

org-mode quote block environment

Is there a way in org-mode to setup #+begin_quote my quote here #+end_quote to be expanded in latex export as \begin{quoting} ... \end{quoting} I want to use quoting latex package to style quote ...
4
votes
1answer
798 views

how to modify default command for TeX-command-master (ie, C-c C-c)?

Q: how can I get TeX-command-master (C-c C-c) to default to LaTeX rather than View? TeX-command-master dispatches to various commands, such as LaTeX, BibTeX, View, etc., almost none of which I use ...
4
votes
3answers
79 views

Search and replace TeX \over with LaTeX \frac

I have a source file that was originally coded in TeX (well, this is actually a conTeXt file). A fraction like 1/(2/x^2) is coded as {1 \over {2 \over x^2}}. I'd like to convert to LaTeX syntax, that ...
4
votes
1answer
351 views

Orgmode character export to latex pdf

I am exporting a block of code #+begin_lstlisting cut -d \' | grep http:// #+end_lstlisting But the org export to latex replaces the backslash with $\backslash$ and the http:// string with \url{...
4
votes
1answer
2k views

How do I create a floating tikz figure when exporting to PDF in org-mode?

With org-mode 8.2.10 on Emacs 24.5.1, the following will produce a ditaa figure in the exported PDF (LaTeX): #+BEGIN_SRC ditaa :file foo.png :cmdline -E -s 4 -S +---------+ | testing | +---------+ #+...
4
votes
1answer
535 views

How to cite author-date including page number in org-mode?

I am using org-ref in org-mode. I want to cite a book like this: \citep[p. 1445]{Fong:2006} but I am only getting citep:Fong:2006. How can I include page number?
4
votes
2answers
801 views

how to start outline-minor-mode with latex-mode?

I have the following in my .emacs: (add-hook 'latex-mode-hook #'outine-minor-mode) (add-hook 'latex-mode-hook (lambda () (outline-minor-mode 1))) (I am aware this redundant, I am ...