emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: Bastien <bzg@altern.org>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Tags included in subtree export title despite tags:nil in header
Date: Sat, 29 Oct 2011 16:48:32 +0200	[thread overview]
Message-ID: <20111029164832.1c83474b@kuru.homelinux.net> (raw)
In-Reply-To: <87fwic6j37.fsf@gnu.org>

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

Hi Bastien,

On Sat, 29 Oct 2011 15:08:44 +0200
Bastien <bzg@altern.org> wrote:

> Hi Suvayu,
> 
> Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> 
> > org-exp.el:2155:(defun org-export-get-title-from-subtree ()
> 
> Can you instrument this function with edbug-defun and see what might 
> be wrong with it?
> 

Lines:
2170:        (looking-at org-todo-line-regexp)
2171:        (setq title (match-string 3))

I tried using edebug-defun on the above function. I see that it reads
the title _with the tags_ no matter what are in the export options.

With the attached minimal test file, and starting Emacs as:

$ emacs -Q -l ~/.emacs.d/minimal-org.el subtree-test.org

I could export the entire file to html correctly (meaning the subtree
with the noexport tag is exported correctly). But When exporting the
subtree to pdf the noexport tag is included in the presentation title.

> I tried this file:
> 
...
> 
> and exporting the subtree named "beamer :noexport" uses the correct
> title here, i.e. "beamertitle".
> 

Sorry I should have provided an example file in the first place. I am
not setting the EXPORT_TITLE property. The bug is the tags:nil option
is not respected whether it is present in the file header or it is set
by the EXPORT_OPTIONS property for the exported subtree. This is
puzzling since other export options (e.g. ^:{}) is respected
irrespective of whether it is present in the file header or the
EXPORT_OPTIONS property.

> So I can't reproduce this...
> 

I hope this clearly describes the bug.

-- 
Suvayu

Open source is the future. It sets us free.

[-- Attachment #2: subtree-test.org --]
[-- Type: text/plain, Size: 1169 bytes --]

#+TITLE:     Subtree export bug
#+AUTHOR:    Suvayu Ali
#+EMAIL:     
#+DATE:      2011-10-29 Fri
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:nil toc:t \n:nil @:t ::t |:t ^:{} -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:nil
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport


* Top level header

Irrespective of whether I have =^:{}= in the subtree =EXPORT_OPTIONS=,
the subscript/superscript settings are respected. I was expecting the
same for =tags:nil=. Not only does that not happen, even setting the
option hs no effect on the exported title.

This text is not going to be exported to beamer.

** Subtree export tags in title bug				   :noexport:
   :PROPERTIES:
   :EXPORT_FILE_NAME: subtree-test.pdf
   :EXPORT_DATE: 29 Oct 2011
   :LaTeX_CLASS: beamer
   :LaTeX_CLASS_OPTIONS: [smaller]
   :BEAMER_FRAME_LEVEL: 1
   :EXPORT_AUTHOR: Suvayu Ali
   :EXPORT_OPTIONS: tags:nil
   :END:

*** Subscript/Superscript
+ Subscript/Superscript within braces: B^{0}_{s}
+ Subscript/Superscript without braces: B^0_s


*** Acknowledgements
+ Thanks to XYZ, Foo and Bar

[-- Attachment #3: subtree-test.tex --]
[-- Type: text/plain, Size: 1026 bytes --]

% Created 2011-10-29 Sat 16:38
\documentclass[smaller]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\providecommand{\alert}[1]{\textbf{#1}}

\title{Subtree export tags in title bug				   \textbf{:noexport:}}
\author{Suvayu Ali}
\date{29 Oct 2011}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Emacs Org-mode version 7.7}}

\begin{document}

\maketitle


\begin{frame}
\frametitle{Subscript/Superscript}
\label{sec-1}

\begin{itemize}
\item Subscript/Superscript within braces: B$^{0}$$_{s}$
\item Subscript/Superscript without braces: B\^{}0\_{}s
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Acknowledgements}
\label{sec-2}

\begin{itemize}
\item Thanks to XYZ, Foo and Bar
\end{itemize}
\end{frame}

\end{document}

  reply	other threads:[~2011-10-29 14:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-26 18:20 Tags included in subtree export title despite tags:nil in header suvayu ali
2011-10-27  9:06 ` Giovanni Ridolfi
2011-10-27 11:42   ` Suvayu Ali
2011-10-27 12:05     ` Suvayu Ali
2011-10-29 13:08       ` Bastien
2011-10-29 14:48         ` Suvayu Ali [this message]
2011-10-29 16:13           ` Bastien
2011-10-29 23:10             ` Suvayu Ali
2011-10-30  1:07               ` Nick Dokos
2011-10-30  7:57                 ` Suvayu Ali
2011-10-30  8:48                   ` Bastien
2011-11-01 23:31                     ` suvayu ali
2011-11-02 10:17                       ` Bastien

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=20111029164832.1c83474b@kuru.homelinux.net \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=bzg@altern.org \
    --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).