From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: filter paragraph function not running Date: Thu, 1 Jun 2017 20:18:46 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGd6x-0000s4-5k for emacs-orgmode@gnu.org; Thu, 01 Jun 2017 23:18:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGd6v-0005UO-U5 for emacs-orgmode@gnu.org; Thu, 01 Jun 2017 23:18:51 -0400 Received: from mail-vk0-x231.google.com ([2607:f8b0:400c:c05::231]:35922) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dGd6v-0005Qj-Q9 for emacs-orgmode@gnu.org; Thu, 01 Jun 2017 23:18:49 -0400 Received: by mail-vk0-x231.google.com with SMTP id p85so34364032vkd.3 for ; Thu, 01 Jun 2017 20:18:48 -0700 (PDT) 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 user error. in md output i don't think this is being run and i am not sure why. in odt, it doesn't work but i am not sure why. finally, does anybody know a quick way to get paragraphs to look like i do them instead of indenting the first line and not putting a blank line, for pdf output? thanks. (add-to-list 'org-export-filter-paragraph-functions 'alpha-org-export-=3D=3D=3D-rule--par) (defun alpha-org-export-=3D=3D=3D-rule--par (paragraph backend _info) "Reverse the new exporter emphasis to get my =3D=3D=3D back as a horizontal rule that separates paragraphs with blanks above and below." ;; runs after =3D=3D=3D is converted. (from the code-font ;; interpretation to the backend.) (with-no-warnings (cond ((and (org-export-derived-backend-p backend 'html) (or (string-match "

\n=3D\n

\n*" paragraph) (string-match "

\n=3D\n

\n*" paragraph))) "\n\n
\n\n") ;; fixme notwork ((org-export-derived-backend-p backend 'md) (replace-string "`=3D`" "=3D=3D=3D")) ((org-export-derived-backend-p backend 'odt) ;; untested (replace-string "=3D" "=3D=3D=3D")) ((org-export-derived-backend-p backend 'latex) ;; =3Dfact re string needs \\\\, but string needs \\ ;; (replace-regexp-in-string "\\\\hi" "there" "\\hi" t t) ;; (replace-regexp-in-string "\\\\hi{=3D}" "there" "\\hi{=3D}" t t= ) ;; seems to work (replace-regexp-in-string "\\\\texttt{=3D}" "\\\\hspace{\\\\stretch{1}}\\\\rule{0.15\\\\textwidth}{0.1pt}\\\\hspace{\\\= \stretch{1}}" ;; "\\\\centerline{\\\\rule {0.15\\\\linewidth}{.2pt}}" paragraph)) ((and (org-export-derived-backend-p backend 'ascii) (string-match "^`=3D'$" paragraph)) "=3D=3D=3D\n\n") (t paragraph)))) --=20 The Kafka Pandemic: The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time. "You=E2=80=99ve really gotta quit this and get moving, because this is murd= er by neglect." --- .