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 9061573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:31:11+00:00 2026-06-16T15:31:11+00:00

I have a shell script which exports several org files to latex; an example

  • 0

I have a shell script which exports several org files to latex; an example command is shown below:

emacs --batch \
--visit=file.org --funcall org-export-as-latex-batch 

The first few lines of file.org are

#+TITLE: Titlename
#+INCLUDE: ./preamble.org

preamble.org has the following lines:

#+AUTHOR:
#+LATEX_HEADER: \usepackage{fullpage}
#+LATEX_HEADER: \usepackage{parskip}

For some reason, preamble.org is not loaded when I execute in batch mode. It loads fine when I open the buffer and execute M-x org-export-as-latex. Any ideas what I need to do to have preamble.org load in batch mode?

  • 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-16T15:31:12+00:00Added an answer on June 16, 2026 at 3:31 pm

    This line

    #+INCLUDE: ./preamble.org
    

    doesn’t work for me in both cases: manually and batch mode. I use

    #+SETUPFILE: ./preamble.org
    

    instead, and it works in batch mode too.

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

Sidebar

Related Questions

I have a shell script which outputs all of the .js and .html files
I have this shell script which executes the following command: #!/bin/sh echo -e {\username\:\user\,\password\:\mypasswd\,\data\
I have a shell script which conditionally calls a function. For Example:- if [
I have three shell script which I am running as below- sh -x script1.sh
i have unix shell script which is need to be run like below test_sh
I have a shell script testShell.sh which uses getopts as below: #!/bin/bash while getopts
All, I have shell script which goes through all the media (audio,video) files in
I have a shell script which copies a few files to the current directory,
Hi I have a shell script which should run based on the return of
I have a shell script in which I have to execute two queries (on

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.