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

  • Home
  • SEARCH
  • 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 7759121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:32:51+00:00 2026-06-01T13:32:51+00:00

In org-mode, when you export HTML projects you can use templates to give all

  • 0

In org-mode, when you export HTML projects you can use templates to give all exported pages the same options, this is described here http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html. What I would like to do, is give all exported pages an HTML snippet, for analytics, which is not an option. Is this possible with org-templates?

Now, I tried to add literal HTML code to the base template level-0-template.org with

#begin_html
...
#end_html

but it didn’t work out. Does anyone know how to add html code to each HTML file that is exported in the project?

My project is organized as follows:

|- org
   |- index.org
|- html
   |- index.html (this is exported)
|- templates
   |- level-0.org (I'd like to include default html here)
|- org_publish.el (this is the publishing config file) 
  • 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-01T13:32:53+00:00Added an answer on June 1, 2026 at 1:32 pm

    To expand on my comment in the question, here is the difference between #+setupfile: and #+include:.

    Details about both are available in the Org-Mode manual. See Setup File and Include Files.

    The setupfile is essentially a list of all org configurations that are included in the linked file. It will pass things such as #+options. It will not however include any other content that the original file might include.

    On the other hand, #+include: inserts the content of the linked file wherever the line is inserted. It acts similarly to \input in LaTex. I’m not certain to what degree it will bring along any org-configuration settings from the linked file, you may need to both #+include and #+setupfile the file to ensure everything is present. However since you do want the body content of the file to be included in each, you have to use #+include to insert it.

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

Sidebar

Related Questions

I Love org-mode! I tried to create my personal pages using org-export-html. Org-mode can
In Org-mode you can make comments and from Org-mode you can export to LaTeX
I use R interactively from Org-mode - the keybinding C-x ' from within an
I can't get 'remember' to work in org-mode of emacs. I'm on snow leopard.
I'd like to use mark-paragraph (also for movement with forward/backward-paragraph) in org-mode buffers in
I installed haml-mode in my Emacs follow this article http://www.emacswiki.org/emacs/HamlMode There is my code
When I try to make a custom beamer class for Org-mode by manipulating org-export-latex-classes
In Org-mode I can get headlines wrap with proper indentation by using org-indent-mode .
I'm using org mode to make a list that I would like exported to
When passing arguments to code block that exports results Org-mode fails to export with

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.