0

I would very much like to be able to use the following package in my spacemacs environment:

https://github.com/tsdye/tufte-org-mode

Alas, I am still learning how to do things in spacemacs.

My understanding is that this is a package that needs to be installed locally on my spacemacs distribution (I can't just ask for it to be downloaded from melpa).

To that end what is the correct way to do this? Do I for example create a folder:

/.emacs.d/private/local/ox-tufte-latex

and then deposit the file ox-tufte-latex.el in there? (Here, I'm following the suggestions outline in https://blog.lord.geek.nz/2019/04/25/spacemacs-custom-package-for-the-hasty/).

7
  • Are you sure you want to use that? It says: Deprecated The Org mode LaTeX exporter can now be configured to produce Tufte LaTeX input. The patch described below is no longer necessary.
    – NickD
    Mar 29, 2023 at 17:22
  • @NickD How to do that?
    – crocefisso
    Mar 29, 2023 at 17:39
  • 1
    Ok - yes, this concerned me. But basically all I want to do is produce documents in the style given in github.com/tsdye/tufte-org-mode. So I download the files in github.com/tsdye/tufte-org-mode and navigate to the folder and open "tufte-latex.org". If the exporter is already setup for producing pdfs then I should be able select "org-export-dispatch". At this point I don't see "Export to Tufte Latex" but I do see "Export to Latex" and if I use that I get the error "org-babel-read: Symbol's function definition is void: jk-org-kwd!". Mar 29, 2023 at 17:42
  • Did @crocefisso's answer work?
    – NickD
    Mar 29, 2023 at 17:56
  • 1
    @NickD - thanks - I'm giving it a go as indicated below. Mar 29, 2023 at 18:04

1 Answer 1

1

Save ox-tufte-latex.el in a directory. Let PATH be the path of this directory.

Add this to your init:

  (use-package ox-tufte-latex
    :ensure nil
    :init (add-to-list 'load-path "PATH")
    )

use-package is installed by default in Emacs 29. Below Emacs 29, use-package installation is required.

Note: for html exports there is org-tufte

5
  • Hi crocefisso - I think I follow all of that. Although I guess the above code would have to go in my dotespacemacs/user-init instead (that is how spacemacs is supposed to work, right?). Unfortunately, I'm on emacs 28.2. Can you provide me with basic instructions on how to install use-package (in spacemacs is this something I need to include under dotespacemacs-configuration-layers ?) Mar 29, 2023 at 18:04
  • I don't use spacemacs. Maybe use-package is installed by default in spacemacs (check that with M-x list-packages). To install packages (let say use-package) in Emacs, do M-x package-install use-package
    – crocefisso
    Mar 29, 2023 at 18:12
  • Partial success!!!! I can see that us-package is already installed. I then put the code you gave me above into the section of the .spacemacs file labelled "user-config". Now when I open the file tufte-latex.org and try the exporter I get a "Export to Tufte Latex" option... great!! However, when I try to export to pdf I still get the error "Symbol's function definition is void: jk-org-kwd". I feel we are almost there... Mar 29, 2023 at 19:21
  • I found the solution to the above problem on the github page of the package: github.com/tsdye/tufte-org-mode/issues/1 - however, then I run into another issue..."...wrong type argument...". I'm giving up for now.... if anyone ever manages to make progress with this I would love to hear about it.... I'm accepting the answer given by this thread since it essentially solves the problem as originally posed .... even if I am stuck again at a later stage. Thanks!! Mar 29, 2023 at 22:36
  • I never used this package, I hope you find someone who can debug you. As @NickD said, I think it would be best to use the native functionality mentioned by tsdye, but unfortunately we don't know how to do that either... You could open an issue on tsdye's Github.
    – crocefisso
    Mar 29, 2023 at 23:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.