tsdye / tufte-org-mode

An Org mode environment for producing Tufte-LaTeX books and handouts
GNU General Public License v3.0
137 stars 19 forks source link

unknown latex class tufte-handout | tufte-book #6

Open kadir-gunel opened 4 years ago

kadir-gunel commented 4 years ago

Hello,

I am trying to reproduce the .org file in the repository. At first, I had jk-org-kwd problem which is gone after deleting :ignore: tags from each section. But now when I try to export the .org to .pdf emacs keeps telling me that there is no Tufte-book or Tufte-handout classes.

On the other hand, when I try to use .tex files instead of .org everything works fine.

What should I do ? I am using emacs 27.1 with org-mode v. 9.3.7

B.R.

muntean-alex commented 4 years ago

Hi!

I'm having the same issue. Still relatively new to (spac)emacs.

What I did:

Trying to add this:

+LATEX_CLASS: tufte-book

Getting this: helm-M-x-execute-command: Unknown LaTeX class ‘tufte-book’

Any ideas on what I'm doing wrong?

kadir-gunel commented 4 years ago

One possible way is to ignore this package and define the tufte-handout and tufte-book inside the init.el file like below :

(add-to-list 'org-latex-classes
         '("tufte-handout"
           "\\documentclass[two-side, nobib]{tufte-handout}
[NO-PACKAGE]"
           ("\\section{%s}" . "\\section*{%s}")
           ("\\subsection{%s}" . "\\subsection*{%s}")
           ("\\paragraph{%s}" . "\\paragraph*{%s}")
           ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
flowsta commented 2 years ago

Hi

Hi!

I'm having the same issue. Still relatively new to (spac)emacs.

What I did:

* downloaded the .el file

* set loadpath, and (load)

* confirm that it's loading in spacemacs
  Loading ~/.emacs.d/lisp/tufte-org-mode/ox-tufte-latex.el (source)...done

Trying to add this: #+LATEX_CLASS: tufte-book Getting this: helm-M-x-execute-command: Unknown LaTeX class ‘tufte-book’

Any ideas on what I'm doing wrong?

Have you evaluated the block codes in tufte-latex.org? You should do it in order to activate tufte-book as a latex-class for Orgmode.

Best