emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: [bug] COMMENT alone on heading ignored by new exporter
Date: Sat, 29 Sep 2012 01:08:22 +0930	[thread overview]
Message-ID: <871uhm40pd.fsf@ucl.ac.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

Hello,

I often use COMMENT in headlines to block out text that I don't want
exported.  This works generally very well.  However, sometimes I comment
a headline that has no headline text, as in "* COMMENT" alone.  These
sections are ignored properly by the old exporter but not the new one.

This is a minor bug; all you have to do is add any text after the
COMMENT.  I thought it would be easy to figure out where this is going
wrong but I was unable to.  Sorry!

Example org and exported tex files attached.

Thanks,
eric

PS - I've been silent on this list for months now; it's annoying how
work can interfere with what I would rather be doing... :(

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.2.50.1 and Org release_7.9.1-225-ga5756f

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: comment.org --]
[-- Type: text/org, Size: 389 bytes --]

* first
  some text
* second
  some text which should appear in the new exporter
*** second first
    some text which should appear
*** COMMENT second third
    some text which should not appear
*** COMMENT 
    some text which should not appear *but* does actually appear unfortunately in the new exporter, although not in the old one.
* COMMENT third
  some text which should not appear

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: comment.tex --]
[-- Type: text/x-tex, Size: 1105 bytes --]

% Created 2012-09-29 Sat 01:04
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage[integrals]{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage{xcolor}
\usepackage{listings}
\usepackage{amsmath}
\author{Eric Fraga}
\date{\today}
\title{comment}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Generated by Org mode 7.9.1 in Emacs 24.2.50.1.}}
\begin{document}

\maketitle
\tableofcontents
\vspace*{1cm}

\section{first}
\label{sec-1}
some text

\section{second}
\label{sec-2}
some text which should appear in the new exporter
\subsection{second first}
\label{sec-2-1}
some text which should appear

\subsection{COMMENT}
\label{sec-2-2}
some text which should not appear \textbf{but} does actually appear unfortunately in the new exporter, although not in the old one.
% Generated by Org mode 7.9.1 in Emacs 24.2.50.1.
\end{document}

             reply	other threads:[~2012-09-28 15:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-28 15:38 Eric Fraga [this message]
2012-09-29  6:59 ` [bug] COMMENT alone on heading ignored by new exporter Nicolas Goaziou
2012-09-29 14:36   ` Eric Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871uhm40pd.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).