From: <prayner@unimelb.edu.au>
To: emacs-orgmode@gnu.org
Subject: special blocks require whitespace
Date: Wed, 13 Apr 2016 22:48:11 +1000 [thread overview]
Message-ID: <22286.16395.687342.122080@localhost.localdomain> (raw)
This is probably documented somewhere but I was surprised that I
needed to add some white space in order to get special blocks
recognized as such.
Here is a simple example:
#+Options: num:nil toc:nil
#+TITLE:
#+AUTHOR:
#+BEGIN_CENTER
this is not handled correctly
#+END_CENTER
#+BEGIN_CENTER
but this is
#+END_CENTER
----------------------------------------------------------------------
Here is the generated LaTeX
% Created 2016-04-13 Wed 22:25
% 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 24.5.1 (Org mode 8.3.3)},
pdflang={English}}
\begin{document}
\#+BEGIN\(_{\text{CENTER}}\)
this is not handled correctly
\#+END\(_{\text{CENTER}}\)
\begin{center}
but this is
\end{center}
\end{document}
----------------------------------------------------------------------
It's hard to see but the difference between the two examples is that
the 2nd has a single space after the #+BEGIN_CENTER
The behaviour arises from
((looking-at "\\+BEGIN_\\(\\S-+\\)")
This is with org version 8.3.3
Should this be considered a bug?
Please respond directly as well as to the list since I'm way behind with this list
regards
Peter
--
Peter Rayner
Leader, Clean Air and Urban Landscapes NESP hub <http://www.nespurban.edu.au>
room 343
School of Earth Sciences, University of Melbourne, 3010, Vic, Australia
tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761
mobile +61 402 752 379, skype: petermorag
mail-to: prayner@unimelb.edu.au TWITTER: @raynerstrings
google scholar profile <http://scholar.google.com.au/citations?user=H3up71wAAAAJ&hl=en>
next reply other threads:[~2016-04-13 12:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-13 12:48 prayner [this message]
[not found] <ee9ba14414cb416badf123599921c256@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-04-13 16:15 ` special blocks require whitespace Eric S 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=22286.16395.687342.122080@localhost.localdomain \
--to=prayner@unimelb.edu.au \
--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).