From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25147 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jason Miller Newsgroups: gmane.text.pandoc Subject: pandoc creating folder with name that makes latex fail Date: Thu, 7 May 2020 07:33:54 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1931_2060938937.1588862034112" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="6573"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCSLBW6NWYFRBVNY2D2QKGQE6EMM2EA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 07 16:34:04 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f63.google.com ([209.85.210.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jWhb5-0001Q7-Vz for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 07 May 2020 16:34:00 +0200 Original-Received: by mail-ot1-f63.google.com with SMTP id k10sf3055929otp.19 for ; Thu, 07 May 2020 07:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=10tccbUSOg0c8SHqNf5hQSCbb9nu5+2U+3+5HRD3WTw=; b=rYykvCTYb+SxH+dUGLbwwqFwDJuMv1wKeGpSdNAnHgd7qyBJfiTzzKdAlJzC6kde1l 7o6zm7RdkGY7ykWEkK4bVsOK4LABGC8jwyycxgZxxgfgx8qPICU/Sp21NTbBiwmt7nZV v+HE8r/+J/kp5NfymG3zhOvoNJGjMN7k/tgr5rod+E3pA26Vnuu+/J4ExpQfkQbnDZRk fHGTEEnM/h3nO9u2XdVIq2FGFBBNm/k96WQ0H2zvzDawoGinM+PSv/XISbFyF+IWWNGU H29iJ3uyjX+8VWHNvHSMD77OFj8a4HaO9aBmxcVTLt5xmvhp+r1gIKpkI3ckoaRDCQj8 Dp2Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=10tccbUSOg0c8SHqNf5hQSCbb9nu5+2U+3+5HRD3WTw=; b=OwxKL458S8Xew5IIJD/a617ASht1TkbOfEhAigMcsUAt0zwOy3ZEwFPnZfGNJ3aN0O bEOvfy5MWMgQSX5WjOQYon/pt/nU2qc6JSYZWhuCyGdtPGA8Sb8/d8PPlGkcu6J/aRnh O4rAe/Jltr5JlHAQWbkkdnHqzRMufUX5SKVRsPQSvWrQuQdQmWOGwTSNhbFI3zqorrhs iuUyMYIGbFMASZpDOozMasOoV3CzDZdrs8pMkrYhT3AyQ3QEPDXGZ7wbx64HnYW2Fb3D bvmJfUhrU85s8meBmjimGzTrprxiooJaI1Jd1DBlNjcoq6gGNIH35vM9TbAzlXA+KnMF jRGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=10tccbUSOg0c8SHqNf5hQSCbb9nu5+2U+3+5HRD3WTw=; b=n353vvhTM5YR2alGZ1MtZRMjloRc8HZ4DSoNJ9zRosX/XHYVYi3YBEBMn2sJRNcl47 PUMugNnuSfD1XT09+Qv7LX6Wo1+HOitJXwADfxzEgNGl3nTTaXiyLO2YtXydg1nEV96J kHECYK/K21GeBs0T/CWWbmuBGg3+1DfAYKtqZGa+MeYiD0kQTpMFCBwee6wPE9urei3F 1AOCLW1Ap0G8ioW+0cxKsC6rXuaRZ92bPQFFKWvDRy/HyXbcnPD7ZQhFGPd5hYurN/px k0CNrlfKviLqlVtbJdE3sH2aUYT8RTemHIAdJlsQoakVE5HxZOyTQZgneNnllF4QnnYo sS2Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AGi0PuY3hsO+k2yJ9IPThCqHtCSD0zw4scagcjqdsGGDRz+CDI1ZPeZj 3F7VDHq0sRblHqhdUFPPz8I= X-Google-Smtp-Source: APiQypIEVcoKWQHH6PfYEx+twgFGS9bPd73DpVLXoBT8hMDPLGPiUzbRQVTqfFKoh16axkp8Ypq1lQ== X-Received: by 2002:a9d:1eaa:: with SMTP id n39mr11276497otn.238.1588862038982; Thu, 07 May 2020 07:33:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:5390:: with SMTP id h138ls1488322oib.4.gmail; Thu, 07 May 2020 07:33:56 -0700 (PDT) X-Received: by 2002:aca:5806:: with SMTP id m6mr6613609oib.178.1588862034728; Thu, 07 May 2020 07:33:54 -0700 (PDT) X-Original-Sender: millerj870-Re5JQEeQqe8AvxtiuMwx3w@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.io gmane.text.pandoc:25147 Archived-At: ------=_Part_1931_2060938937.1588862034112 Content-Type: multipart/alternative; boundary="----=_Part_1932_881434359.1588862034112" ------=_Part_1932_881434359.1588862034112 Content-Type: text/plain; charset="UTF-8" Pandoc is used to generate a PDF from an R markdown document that has a chunk that generates a plot using ggplot2 and a custom function, progress.plot. The chunk looks like this ```{r charts, echo=FALSE, fig.cap="Your progress curve"} progress.plot(student) ``` The PDF is generated using a LaTeX engine. I think it uses PDFlatex via pandoc. This is causing a problem that appears to be close to the pandoc metal. It seems like pandoc uses a temporary folder to store the diagram I generate with ggplot2. The name of that folder has as underscore. This means the path to the graphic file, a string that's used in the .tex source file, has an underscore. And the latex compiler doesn't like that. ! Missing $ inserted. $ l.142 ...de2020-05-06_files/figure-latex/charts-1} \caption[Your progress cu... The "_files" in the latex log snippet, above, is the name of a folder created by pandoc (or Rmarkdown). I am getting a "Missing $ inserted" error before the latex compiler craps out. No PDF is generated and the directory with the figure is deleted. Is there a pandoc configuration change to take the underscore out of the temporary directory's name? Or is there any other workaround that will allow me to generate figures to include in my R markdown document? Thanks for whatever advice people can share. -- 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 email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e448fa9c-3dfd-4eb8-8e06-01efa9c29384%40googlegroups.com. ------=_Part_1932_881434359.1588862034112 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Pandoc is used to generate a PDF from an R markdown d= ocument that has a chunk that generates a plot using ggplot2 and a custom f= unction, progress.plot. =C2=A0The chunk looks like this


```{r charts, echo=3DFALSE, fig.cap=3D"Your progress c= urve"}

progress.plot(student)

<= /div>
```

The PDF is generated us= ing a LaTeX engine. =C2=A0I think it uses PDFlatex via pandoc. =C2=A0This i= s causing a problem that appears to be close to the pandoc metal.

It seems like pandoc uses a temporary folder to store the d= iagram I generate with ggplot2. =C2=A0The name of that folder has as unders= core. =C2=A0This means the path to the graphic file, a string that's us= ed in the .tex source file, has an underscore. =C2=A0And the latex compiler= doesn't like that.

=C2=A0 =C2=A0 ! Missi= ng $ inserted.
=C2=A0 =C2=A0 <inserted text>=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 $
=C2=A0 =C2=A0 l.142 ...de2020-05-06_files/figure-latex/charts-1}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\caption[Your progre= ss cu...


The "_files&quo= t; in the latex log snippet, above, is the name of a folder created by pand= oc (or Rmarkdown). =C2=A0I am getting a "Missing $ inserted" erro= r before the latex compiler craps out. =C2=A0No PDF is generated and the di= rectory with the figure is deleted.

Is there a pan= doc configuration change to take the underscore out of the temporary direct= ory's name? =C2=A0Or is there any other workaround that will allow me t= o generate figures to include in my R markdown document?

Thanks for whatever advice people can share.

--
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 view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/e448fa9c-3dfd-4eb8-8e06-01efa9c29384%40googlegroups.co= m.
------=_Part_1932_881434359.1588862034112-- ------=_Part_1931_2060938937.1588862034112--