Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8166179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:46:25+00:00 2026-06-06T19:46:25+00:00

In the latex-mode, we can make a tex file to fill it with all

  • 0

In the latex-mode, we can make a tex file to fill it with all settings we want, e.g.call it as usual.tex, and put its location at the head of all tex files we would like to debug, as follow:

\input{path_of_usual.tex/usual}

we can type codes simply between

\begin{document}

and

\end{document}

with the all settings filled in usual.tex.

And here my purpose is to do the similar thing in org-mode -xelatex, what commands I need to add into .emacs ?

It seem to add such commands in .emacs

(add-to-list 'org-export-latex-classes
         '("my-article"
           "\\documentclass......
             \\usepackage{.....

can define the latex format via the code in org-file : #+LATEX_CLASSES my-article.

but I replaced all \\.... of \\input{location_of_usual.tex/usual}, the org-file can’t produce PDF-file, giving the message:

No definition of class ‘usual’ in ‘org-export-classes’

What is the correct set-up?

I made a lot tries to deal with, but failed, such as:

#+LaTeX:\input{location}

emacs still shows the error message, saying:

no definition of class ‘usual’ in ‘org-export-classes’

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:46:26+00:00Added an answer on June 6, 2026 at 7:46 pm

    can define the latex format via the code in org-file :
    #+LATEX_CLASSES my-article.

    This is a typo, the file header directive is #+LATEX_CLASS:. Changing
    that should let you export to pdf.

    but I replaced all \\.... of \\input{location_of_usual.tex/usual},
    the org-file can’t produce PDF-file, giving the message:
    No definition of class ‘usual’ in ‘org-export-classes’

    I think you are mixing up things, earlier you said you added your own
    export class called my-article, but the above error message suggests you
    used “usual”.

    What is the correct set-up?
    I made a lot tries to deal with, but failed, such as:
    #+LaTeX:\input{location}

    Here if you wish the \input{..} line to appear outside the
    \begin{document}…\end{document} you should use the #+LATEX_HEADER:
    directive instead.

    PS: I think these are more appropriate for the org-mode mailing list.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Org-mode you can make comments and from Org-mode you can export to LaTeX
Does LaTeX handle situation when a .bib file has different encoding than .tex file?
I have an extensive emacs configuration. Unfortunately, auto-fill-mode is broken within LaTeX-mode for some
How can I make my entire LaTeX document (using TeXShop in Mac OS X)
I found Org-mode + LaTeX to be a very wonderful tool. How can I
When I try to make a custom beamer class for Org-mode by manipulating org-export-latex-classes
When using Org-mode and its LaTeX export BibTeX or Biblatex is often used to
When editing an Sweave document in LaTeX (using the Noweb mode), Emacs knows to
LaTeX newbie here. I need to set background color for all my \subsection titles.
The latex file is giving the following error: ! LaTeX Error: File `datetime.sty' not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.