New answers tagged

0

I've checked :dir again and it seems to work now (with org-mode v9.4). Here is a minimal example: #+BEGIN_SRC latex :tangle ./workingdir/inputfile.tex Content from input file #+END_SRC #+BEGIN_SRC latex :results raw :file test.pdf :dir ./workingdir \input{inputfile} \LaTeX #+END_SRC Thanks to @Hubisan for the pointer!


1

AucTeX redefines the binding for $ to be the command TeX-insert-dollar. That command checks whether you are in a math environment already and complains if you try to close it the "wrong" way. Doing C-h f TeX-insert-dollar shows you the doc string of the function: Insert dollar sign. If current math mode was not entered with a dollar, refuse to ...


0

This is covered in the AucTeX manual, specifically the section (auctex) Starting Viewers. The command to launch a viewer is: -- Command: TeX-view ('C-c C-v') Start a viewer without confirmation. The viewer is started either on a region or the master file, depending on the last command issued. This is especially useful for jumping to the location ...


4

As mentioned in the comments above, the latex commands need to be escaped. so this should work as expected.... (add-to-list 'org-latex-classes '("koma-article" "\\documentclass[french, 11pt]{scrartcl} \\usepackage[utf8]{inputenc} \\usepackage[T1]{fontenc} \\usepackage{babel} ...


2

According with what you are describing, I would recommend you to escape all the backslashes (all the backslashes that appear between the "koma-article" and [NO-DEFAULT-PACKAGES]). Finally, you need to make sure that you have the Koma-Script ‘article’ class installed: https://www.ctan.org/pkg/scrartcl.


1

A feature to set absolute path for bib file has been merged in org-ref. Update org-ref and add (setq org-ref-latex-bib-resolve-func #'expand-file-name). See org-ref github issues here and here.


1

You can create commands to achieve the job you want and link them to the key you like. (defun italic-word () "your comment" (interactive) (easy-mark) (TeX-font nil 9)) (defun bold-word () "your comment" (interactive) (easy-mark) (TeX-font nil 2)) (bind-key (kbd "M-o i") #'italic-word LaTeX-mode-map) (bind-key (...


1

I managed to guess-and-check my way to finding an answer to this! The trick is to wrap the equation in a figure: #+caption: Kepler's third law #+begin_figure \begin{equation} T^2 = \frac{4\pi^2}{G(M_1+M_2)} R^3 \end{equation} #+end_figure This applied the caption correctly. For posterity's sake, if you want to pass position options to the figure using this ...


1

org-toggle-latex-fragment is obsolete since Org 9.3. Use org-latex-preview. To preview all latex fragments in the buffer pass C-u twice before calling org-latex-preview. Note that a single C-u before org-latex-preview actually removes all previews. For instance, I set the keybinding C-f5 to org-latex-preview then C-u C-f5 removes all previews and C-u C-u C-...


1

Try the :caption attribute in #+ATTR_LATEX: instead: #+NAME: thelabel #+ATTR_LATEX: :width \textwidth :caption \caption{The caption.}\source{the Source} [[figure.pdf]] The LaTeX file I get reads in part: \begin{figure}[htbp] \centering \includegraphics[width=\textwidth]{/path/to/figure.jpg} \caption{The caption.}\source{The Source} \end{figure} which ...


Top 50 recent answers are included