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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:07:22+00:00 2026-05-30T02:07:22+00:00

In Org-mode there are several ways to make comments . But I do not

  • 0

In Org-mode there are several ways to make comments. But I do not know of any way to make inline comments. According to the manual

regions surrounded by ‘#+BEGIN_COMMENT’ … ‘#+END_COMMENT’ will not
be exported.

But this is only true if the said region starts a line.

In the following

#+TITLE: Test

text #+BEGIN_COMMENT comment 1 #+END_COMMENT text

text
#+BEGIN_COMMENT comment 2 #+END_COMMENT text

only comment 2 is treated as a comment. It exports (e.g. C-e A) as

text #+BEGIN_COMMENT comment 1 #+END_COMMENT text

text

Also, org-toggle-comment does not work for making inline comments by using it on regions and comment-region does not even create a comment.

So, how can I make inline comments in Org-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-05-30T02:07:23+00:00Added an answer on May 30, 2026 at 2:07 am

    Jonathan Leech-Pepin’s comment on your question on \printbibliography gave me an idea. You can use a macro for inline comments. Note that you need trailing space after the comment definition.

    #+macro: comment  
    
    ...
    
    {{{comment(here is a comment)}}}
    

    EDIT: Since this is supposed to be a macro odd input may screw things up. I’m a little surprised that

    {{{comment(here is a)}} comment)}}}
    

    works for me, although

    {{{comment(here is a comment) more}}}
    

    does not. I would assume that anything other than fairly simple text would be fairly fragile if they decide to change the way they parse macros in the future.

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

Sidebar

Related Questions

Is there any way to automatically force number of decimal places in an org-mode
I would like to read the org-mode manual in org mode... Is there a
Is there a way to use an org-mode table to do automatic unit conversion?
I'm trying to publish webpage using org-mode. Two questions: Is there a way to
http://en.wikipedia.org/wiki/Diamond_problem I know what it means, but what steps can I take to avoid
I'm using org mode to make a list that I would like exported to
I know there's more important questions to discuss probably, but at the cost of
tl;dr version: Is there a way to force a strict mode for JAX-WS that
I write articles with org-mode, It works very well. But I found a very
I have a set of tables in org-mode that I am exporting, but I'd

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.