From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: special blocks require whitespace Date: Wed, 13 Apr 2016 22:48:11 +1000 Message-ID: <22286.16395.687342.122080@localhost.localdomain> Reply-To: prayner@unimelb.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqKDU-0004ft-CZ for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 08:48:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqKDQ-0008GH-6q for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 08:48:20 -0400 Received: from mail-gw2.its.unimelb.edu.au ([128.250.5.151]:34671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqKDP-0008Fk-SF for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 08:48:16 -0400 Received: from localhost.localdomain (unknown [10.1.131.43]) (Authenticated sender: prayner) by mail-gw2.its.unimelb.edu.au (Postfix) with ESMTPSA id 3CD2D282033 for ; Wed, 13 Apr 2016 22:48:11 +1000 (AEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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 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