From: Lixin Chin <lixinchin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: Unable to nest headings within export blocks [9.0 (9.0-elpa @ c:/Data/Documents/emacs.d/elpa/org-20161102/)]
Date: Thu, 3 Nov 2016 11:47:57 +0800 [thread overview]
Message-ID: <338ea338-093e-6323-083e-ac8732c44778@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
As per the subject, when a heading line is included within a
`#+BEGIN_EXPORT backend ... #+END_EXPORT' block, it breaks the parsing
of the block, which is instead split into multiple `paragraph' elements.
See the attached example (test.org), and associate exports (test.tex)
and (test.html).
Tested with `emacs -Q -l minimal-org.el', with the org package installed
from http://orgmode.org/elpa/, org-20161102.
[-- Attachment #2: test.org --]
[-- Type: text/plain, Size: 234 bytes --]
* Test heading
#+BEGIN_EXPORT latex
Text which should appear in \LaTeX{} exports, but not HTML.
#+END_EXPORT
#+BEGIN_EXPORT html
* HTML only heading
Text which should appear in HTML exports, but not \LaTeX{}.
#+END_EXPORT
[-- Attachment #3: test.tex --]
[-- Type: text/plain, Size: 925 bytes --]
% Created 2016-11-03 Thu 11:34
% Intended LaTeX compiler: pdflatex
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\date{\today}
\title{}
\hypersetup{
pdfauthor={},
pdftitle={},
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 25.1.1 (Org mode 9.0)},
pdflang={English}}
\begin{document}
\tableofcontents
\section{Test heading}
\label{sec:org0b53ca6}
Text which should appear in \LaTeX{} exports, but not HTML.
\#+BEGIN\(_{\text{EXPORT}}\) html
\section{HTML only heading}
\label{sec:org14261e8}
Text which should appear in HTML exports, but not \LaTeX{}.
\#+END\(_{\text{EXPORT}}\)
\end{document}
[-- Attachment #4: test.html --]
[-- Type: text/html, Size: 10960 bytes --]
[-- Attachment #5: minimal-org.el --]
[-- Type: text/plain, Size: 96 bytes --]
(setq user-emacs-directory "C:/Data/Documents/emacs.d/")
(package-initialize)
(require 'org)
next reply other threads:[~2016-11-03 3:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-03 3:47 Lixin Chin [this message]
2016-11-03 5:20 ` Bug: Unable to nest headings within export blocks [9.0 (9.0-elpa @ c:/Data/Documents/emacs.d/elpa/org-20161102/)] Lixin Chin
2016-11-05 7:41 ` Nicolas Goaziou
2016-11-07 2:47 ` Lixin Chin
2016-11-07 16:44 ` Charles C. Berry
2016-11-09 4:51 ` Lixin Chin
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=338ea338-093e-6323-083e-ac8732c44778@gmail.com \
--to=lixinchin@gmail.com \
--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).