From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/10664 Path: news.gmane.org!not-for-mail From: Pete Phillips Newsgroups: gmane.text.pandoc Subject: Re: Use of RCS with pandoc YAML blocks - SOLVED Date: Thu, 21 Aug 2014 02:16:53 -0700 (PDT) Message-ID: References: <19f1dbef-ad4e-401e-b549-dd2154c9c531@googlegroups.com> <20140818194437.GB35861@dhcp-128-32-252-28.lips.berkeley.edu> <20140819164539.GF17247@localhost.hsd1.ca.comcast.net> <9326fed8-88cc-44ee-a3bf-574311e40da9@googlegroups.com> <9caf551f-a3ff-4d61-bf91-389f7260db03@googlegroups.com> <20140820163235.GA18332@localhost.hsd1.ca.comcast.net> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_307_134167418.1408612613460" X-Trace: ger.gmane.org 1408612621 20691 80.91.229.3 (21 Aug 2014 09:17:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2014 09:17:01 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDGJJOPHXMDRBBPS22PQKGQEONV747Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 21 11:16:57 2014 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yh0-f58.google.com ([209.85.213.58]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XKOUJ-00036N-0M for gtp-pandoc-discuss@m.gmane.org; Thu, 21 Aug 2014 11:16:55 +0200 Original-Received: by mail-yh0-f58.google.com with SMTP id i57sf2146160yha.3 for ; Thu, 21 Aug 2014 02:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=N0Z3lW5aruAbPPKqh9io8/nNcp2yGHLK39Ti2liraxs=; b=MGJWA4Y0sw/Q+DFrkALrf4P//MZ+paMWSStS5vMtl1jmpcO8SxVftSHbpsf3Mq+GoV zYtRo6SltTzbwZXw27c97IAntSfO+hn4JHINCzYYj6/bArH7cPW/DHXiwj4TbrND9hNi ub8gmjoeYZl98qsu7fD+S7+Uky2mS6bUN29fcboXZW/jhumWIn4hhI5YlcNP9sW2SOPY VahZ7ih4XdiIPsvNebE7/DXcG/Au5Z00l6oDenWbDAmUZOaCJ29v9dpLtB4XdXEAOnb2 ez0Xc2eo7i12nCAi2cvWxIkF9Rreg13xWFGQyuIsJ1+8/lT/8WeVlpt+B1FaS1c4Sv3y SUVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=N0Z3lW5aruAbPPKqh9io8/nNcp2yGHLK39Ti2liraxs=; b=EkwcuLUuhQOVMpzZmtu4Mpr6EX1hlNEi/bWcQtGxXr1fghjou3yCRvprsu3T8b2Xb3 tWOaQwrZK7cMpoEUDxomZC0OGq1Oabog1vMLLWZZX0t3l8RKBaxN50QrfC35a+10n790 CoQ/e+Vgqdjzl3bTsvKuaDgpyNJc+OrFE/2vscQg5awptK9mOehRWQkw4WrtYcZBTnzG mi3YSzEFbVWBLphKSMhckwGiPt+WxsLqoGG71t9Sp6wOC7Yu3MQES0EL+pwkaRQSGAzm bRtFYAElSj+nkoCrr0at09E5ZV6qA+RpmVlS//XCOP/Blcqe0CWsZJxS5RhzTsERSEEm W+/Q== X-Received: by 10.140.91.105 with SMTP id y96mr9829qgd.16.1408612614223; Thu, 21 Aug 2014 02:16:54 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.106.136 with SMTP id e8ls587845qgf.36.gmail; Thu, 21 Aug 2014 02:16:53 -0700 (PDT) X-Received: by 10.140.23.163 with SMTP id 32mr130037qgp.8.1408612613791; Thu, 21 Aug 2014 02:16:53 -0700 (PDT) In-Reply-To: <20140820163235.GA18332-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> X-Original-Sender: petesmtl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:10664 Archived-At: ------=_Part_307_134167418.1408612613460 Content-Type: multipart/alternative; boundary="----=_Part_308_93964976.1408612613460" ------=_Part_308_93964976.1408612613460 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi John. On Wednesday, 20 August 2014 17:32:55 UTC+1, John MacFarlane wrote: > > The difference is explained by the following item in the changelog:=20 > > + Inline math must have nonspace before final `$` (#1313).=20 > > In 1.12.4, your RCS string was being erroneously parsed as LaTeX=20 > math. This had the good consequence (for you) that it was rendered=20 > verbatim, without escaping the $'s. But this was a bug in the markdown= =20 > reader, which has now been fixed.=20 > OK - that explains my few months of happiness then. ;-) =20 > > If it was possible to revert to that behaviour for the YAML block I= =20 > > would be a happy bunny. Is that possible ?=20 > > Sorry, no. I did think of a workaround which is a bit kludgy, but might= =20 > work. Suppose you defined a do-nothing macro \noop{..}, then enclosed=20 > your RCS in that:=20 > > \noop{\RCS $blah blah $}=20 > I have tried this: --- title: Test Document header-includes: - \usepackage{fancyhdr} - \usepackage{lastpage} - \usepackage{rcs} - \newcommand{\noop}[1]{} - \noop{\RCS $Revision: 1.1 $} - \noop{\RCS $Date: 2014/08/18 14:24:49 $} - \pagestyle{fancy} - \fancyfoot[R]{Revision:\ \RCSRevision} - \fancyfoot[L]{\RCSDate} - \date{\RCSDate} author: Pete Phillips --- =C2=A7 test test \newpage =C2=A7 more test test And running=20 pandoc -s --parse-raw testoldrcs.mkd -o testoldrcs.pdf I get the error: ! LaTeX Error: Missing \begin{document}. This is the same error I was getting in the early days of trying this out.= =20 Previously it was solved by adding quotes - - '\RCS $Revision: 1.2 $' but that makes no difference now. The latex generated is attached. Note=20 that using --parse-raw makes no difference to the latex code - I get the=20 same code with of without that option. Pete =20 =20 --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/d77c8bf8-79c6-4643-82d6-407611fc2d13%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_308_93964976.1408612613460 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi John.

On Wednesday, 20 August 2014 17:32:55 UTC+1, John MacFarlan= e wrote:
The difference is exp= lained by the following item in the changelog:

    + Inline math must have nonspace before final `$` (#1313)= .

In 1.12.4, your RCS string was being erroneously parsed as LaTeX
math.  This had the good consequence (for you) that it was rendere= d
verbatim, without escaping the $'s.  But this was a bug in the mar= kdown
reader, which has now been fixed.

OK - that explains my few months of ha= ppiness then. ;-)
 
>   If it was possible to revert to that behaviour for th= e YAML block I
>   would be a happy bunny.  Is that possible ?

Sorry, no.  I did think of a workaround which is a bit kludgy, but= might
work.  Suppose you defined a do-nothing macro \noop{..}, then encl= osed
your RCS in that:

    \noop{\RCS $blah blah $} 

<= /div>
I have tried this:
---
title: Test  Document
header
-includes:
   
- \
usepackage{fancyhdr}
   
- \usepackage{lastpage}
   
-= \<= span style=3D"color: #000;" class=3D"styled-by-prettify">usepackage
<= span style=3D"color: #660;" class=3D"styled-by-prettify">{rcs}
   
- \newcommand{\noop}[1]{}
    - \noop{\RCS $Revision: 1.1 = $}<= span style=3D"color: #000;" class=3D"styled-by-prettify">
    =
-
\noop{\RCS $Date: 2014= /08= /18 14:24:49= $<= span style=3D"color: #660;" class=3D"styled-by-prettify">}
   
- \pagestyle{fancy}
   
- \fancyfoot[R]{Revision:\ \RCSRevision}    - \fancyfoot[L]{\RCSDate}
   
- \dat= e{\= RCSDate}

author
: Pete Phillips
---=
=C2=A7= test
t= est


\newp= age


=C2=A7 more test
test


And running&n= bsp;

 p= andoc -s --parse-raw testoldrcs.mkd -o testoldrcs.pdf
=
I get the error:

! LaTeX Error: Missing \begin{document}.

This is the same error I was getting in the ea= rly days of trying this out.  Previously it was solved by adding quote= s -     - '\RCS $Revision: = 1.2 $'

but that makes no difference now. &n= bsp;The latex generated is attached. Note that using --parse-raw makes no difference to the latex code - = I get the same code with of without that option.

P= ete



  

 

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/d77c8bf8-79c6-4643-82d6-407611fc2d13%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_308_93964976.1408612613460-- ------=_Part_307_134167418.1408612613460 Content-Type: text/x-tex; charset=UTF-8; name=testoldrcs-parseraw.tex Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=testoldrcs-parseraw.tex X-Attachment-Id: b96f2e6f-d8a3-4fe0-8c13-ac381ed53db1 Content-ID: \documentclass[]{article} \usepackage{lmodern} \usepackage{amssymb,amsmath} \usepackage{ifxetex,ifluatex} \usepackage{fixltx2e} % provides \textsubscript \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=3D0 % if pdftex \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \else % if luatex or xelatex \ifxetex \usepackage{mathspec} \usepackage{xltxtra,xunicode} \else \usepackage{fontspec} \fi \defaultfontfeatures{Mapping=3Dtex-text,Scale=3DMatchLowercase} \newcommand{\euro}{=E2=82=AC} \fi % use upquote if available, for straight quotes in verbatim environments \IfFileExists{upquote.sty}{\usepackage{upquote}}{} % use microtype if available \IfFileExists{microtype.sty}{\usepackage{microtype}}{} \ifxetex \usepackage[setpagesize=3Dfalse, % page size defined by xetex unicode=3Dfalse, % unicode breaks when used with xetex xetex]{hyperref} \else \usepackage[unicode=3Dtrue]{hyperref} \fi \hypersetup{breaklinks=3Dtrue, bookmarks=3Dtrue, pdfauthor=3D{Pete Phillips}, pdftitle=3D{Test Document}, colorlinks=3Dtrue, citecolor=3Dblue, urlcolor=3Dblue, linkcolor=3Dmagenta, pdfborder=3D{0 0 0}} \urlstyle{same} % don't use monospace font for urls \setlength{\parindent}{0pt} \setlength{\parskip}{6pt plus 2pt minus 1pt} \setlength{\emergencystretch}{3em} % prevent overfull lines \setcounter{secnumdepth}{0} \title{Test Document} \author{Pete Phillips} \date{} \usepackage{fancyhdr} \usepackage{lastpage} \usepackage{rcs} \newcommand{\noop}[1]{} true true \pagestyle{fancy} \fancyfoot[R]{Revision:\ \RCSRevision} \fancyfoot[L]{\RCSDate} \date{\RCSDate} \begin{document} \maketitle \section{test}\label{test} test \newpage \section{more test}\label{more-test} test \end{document} ------=_Part_307_134167418.1408612613460--