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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:07:13+00:00 2026-06-01T01:07:13+00:00

In Org-mode you can make comments and from Org-mode you can export to LaTeX

  • 0

In Org-mode you can make comments and from Org-mode you can export to LaTeX but Org-mode comments are not exported to LaTeX comments. How can Org-mode be made to export Org-mode comments as LaTeX comments?

Here is an example. The following

* Test

Text before comment
# Comment
Text after comment

Text before comment
#+BEGIN_COMMENT
Comment
#+END_COMMENT
Text after comment

exports to

\section{Test}
\label{sec-1}


Text before comment
Text after comment

Text before comment

Text after comment

But I want the Org-mode comments to be exported as LaTeX comments. Thus, I want the following LaTeX output:

\section{Test}
\label{sec-1}


Text before comment
% Comment
Text after comment

Text before comment
\begin{comment}
Comment
\end{comment}
Text after comment

I am running Org-mode 7.6 in Emacs 23.3.1.

  • 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-01T01:07:15+00:00Added an answer on June 1, 2026 at 1:07 am

    Under the current exporter the only method I can think of that would allow you to export comments would be backend-specific. You could use something along the lines of:

    #+latex: comment
    

    or

    #+begin_latex
    \begin{comment}
      comment
    \end{comment}
    #+end_latex
    

    However both are contrived and you would need to do the equivalent for HTML etc if you intend to export to more than one format.

    There is a new exporter in development however where this should not be overly difficult to implement (comments are already identified as blocks in the parser so it would simply need a method to convert them on export).

    I’m forwarding this request to the mailing list to see if this can be included.
    Edit: Thread located here.

    Edit: Response from the maintainer of Org-Mode

    the current exporters don’t allow this, but the new export engine by
    Nicolas makes it possible.

    The plan is to merge the new export engine into Org’s core before
    version 8.0, so please stay tuned.

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

Sidebar

Related Questions

In Org-mode there are several ways to make comments . But I do not
When I try to make a custom beamer class for Org-mode by manipulating org-export-latex-classes
In org-mode, when you export HTML projects you can use templates to give all
When using Org-mode and its LaTeX export BibTeX or Biblatex is often used to
How can I make org-mode markup work for a part of a word? For
I'm using org-mode and am looking to export my agenda ( example of an
I Love org-mode! I tried to create my personal pages using org-export-html. Org-mode can
I can't get 'remember' to work in org-mode of emacs. I'm on snow leopard.
I use R interactively from Org-mode - the keybinding C-x ' from within an
org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for

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.