From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25148 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Paul M." Newsgroups: gmane.text.pandoc Subject: Re: pandoc creating folder with name that makes latex fail Date: Thu, 7 May 2020 10:43:04 -0400 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a022f105a50fe6d9" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="52262"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJ37C5KUAHBBBN52D2QKGQEGWXWGBI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 07 16:43:21 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f60.google.com ([209.85.221.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jWhk7-000DT9-FF for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 07 May 2020 16:43:19 +0200 Original-Received: by mail-wr1-f60.google.com with SMTP id d16sf2567782wrv.18 for ; Thu, 07 May 2020 07:43:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588862599; cv=pass; d=google.com; s=arc-20160816; b=NsT+QGEeEkBnNAkBQUhHikRvd3axNvgjdIl5LOpZsj5f2zJrQ5FH7C0nmI+sOjt9Vo iUntpzQgvWc8z77vn9BsEWi+mBPGFHN5joXWqiz8YLcSIlyVSwkCjHMudOJuT9JGu47f h99SlctdyRxnrfvRxgDclOrOWkGHhg6aqiQJsZPaB3lr4UHRdyf5lOEKqeuECZlRdprx MzPYmgUaHKW763WN7d+MeUPYkcQsRx4Gsi71YB9gl/pcSmJ37Tsme/UhN8YgSWZDyeeF a22xFaE1/xniJjqGWUjz0xpp6TRf3EPq4RPjAdryhug9O+K3xFNaLCqfDJ5X3thDF5Wz b1KA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=rtd8er1CLxxqpRMxbkLtyUOb027TkI925sjw6AhMXkY=; b=WwRqDXdU6S/3bwImxV/1mhQa2m+O6Acby/08p3aU28Ri46Da0ohqWHflxOL5oWVQN7 BoDtaUXH+5Y8l2SUNnJD2BYjJykgL3FDgT4O0VGAzX0RvBGMa6mF7LqtBkZzHs0inh+T 0z1ROCif1j+PIICLA8ekRfzEDk9B+AOLhsBZSlrqXvLfbIGcLcf5Qmxwwr9hvX4JPrvC ckq0sgOczUuPSwF4okPtb4FaoQNYhZFmZNLiqVvX/RYnteHo5ULDlmpZdeLyIzBNpEOy +I++cdMSZKj85B29xNPUYMEAOIHQIXtI6DlVGKkYa2NmBHBejpeO5Oh2Dn3EK40nyzGX d4OA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gyg3jbez; spf=pass (google.com: domain of pmmagic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) smtp.mailfrom=pmmagic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=rtd8er1CLxxqpRMxbkLtyUOb027TkI925sjw6AhMXkY=; b=XeklIl3UHzmy05hqoG5uOYvikOchtG1ywlk6ehI8hXtQR4FuIupxJKP1z7A8v6jKFd YJLYrytoFULBlFuklK7+oh/ksYoe6c1XazljWa//YkLQfW7UDGO162obWs7VnD0UQhlN kNU5MX4sWLipkU4U7jjgnv2+5Yl5G5H5D7e9niRQmD158LG4AYQFaeO08QTrJ9Sxe+7/ F8Yd8Z6nqmjlmJWi+X/Cyii0hLWEy9xropPSaJtyjyhUNDdi01NHE/MvHZBbIEQiSoR+ D2xVz6uHsaYRNwQSwmUkPD4ybNJu/GYAwJeD/VwuxovedALYwDTfR8PeS3k3XT5vt3Uk 5Yxw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=rtd8er1CLxxqpRMxbkLtyUOb027TkI925sjw6AhMXkY=; b=EneVUjkOxiolLnMppahXtWoWQhWKAD2jFV4ixpSF6BEq5QX4t0b+uWJRQJVH8LdGRD 0zX8uof1aWOycLmf3s8h3TXGL5mPdmvSRqR8sLNvpm1aQEL8F3mtSUp1qxBdrzlX+zjX fFKhsD85J6M1ZO1XWNQOXuKqKav/A/jZ4cwHLAqNQYfhFMSK1TR8+QQ9EAeZDIctqiVT puHBcAhe7Lma3ENV5INv4o+ciFpMWPNNpJvp1XgPfGeQpp6DN43Vyjk9vIPcl45RXfTR AXd0d4l+sUS9y4pCmdqu3ml99NV0Xxp6U3SqYvbwGf2136BH8H6v7wvLBCD7Tb4JQBIx 9WjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=rtd8er1CLxxqpRMxbkLtyUOb027TkI925sjw6AhMXkY=; b=e3BolwgfvSoAzEwI6fMEgsx2Av+3S9ZHxnLNTOXRdua+t4AZuSf5xcpVT2P8lJBp/P devKrxlprDT9ieIHLAutgGQn6pqtM0PQVEbCr4mkHMPJX+EkBSbR+KFMyJcxrIlFNvCU 2PUPwcNublVlfc7Lwu56PIhGAw0KoQ+CEZkptbKCfXJ9j9t3dYx0iYEQY6bePdHSaL+T 263Xx+Z0ytz5UBq4CvUaaqQT9XblWGkpRR4LaJDxNgmsS8zHe7XFC7mIFlJ7pY3opqbz KGu2UoylihlWWTcISXeM0ITUV07Vkp0Tv9fCvtfY/8CDw3DlQOhGNpGI9XqxYTUgAczu kt6Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AGi0Pubq3N7LKFhe5WGQzR3knTieuST1Fs4T99M/2G27rezlxDQsl6gQ Mym5jaCJ7W/qaspe17rV10s= X-Google-Smtp-Source: APiQypIQuT5BhNcfs3n+Fgjo2XOw6bHlvA5QYRioRIXmBWfC8sTMElDZlGMTIBTb5VKFaCxDfwCFwQ== X-Received: by 2002:adf:cd92:: with SMTP id q18mr16720317wrj.237.1588862599146; Thu, 07 May 2020 07:43:19 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a5d:668b:: with SMTP id l11ls6913087wru.0.gmail; Thu, 07 May 2020 07:43:16 -0700 (PDT) X-Received: by 2002:a5d:6584:: with SMTP id q4mr17452351wru.403.1588862596721; Thu, 07 May 2020 07:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588862596; cv=none; d=google.com; s=arc-20160816; b=cLp5gP204Sjnd/Ygax1b5JRSFwrQkSpI3xPHocAlofkttxQc6+M1gdywBawx5ltfVX CDuWhhdpUIXi7BhCMbVyB3FUXF8dWE/yHpwjykcUfsNtwab3U0bcxfNWCeybd5NIgGgk z0cAO2xCI+tklDdPvx6Xq1MzISLZD2oBZIg29Lkq1xJ89j9rwr/ajJ75uR9P+qXnYSjG mxGQFV8GDbXJKZTOzO0OPv15qiPH8hesBOeLUKU9qFyaACEuRZaxskFbA0u7MRhb+4Mw 9U6r6SDlpERF8d1YUiMQ3rwFs6yc4zTzf28rPP0cNVmE+PIp8/arRaG7DwFzTcqK4Ko4 hXeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Bpj8W0CjWnR3DHGMqBjCFUBHiyH2A2K2vvtAgpL0hLQ=; b=A9nPXYuYAGvxlA/TDQ3lgwmdNUF0ZYtnOkZRVQy8byiaxtBpfODzhMh0iewhakVEjI bJMVmvDfSmW1jde8265oPlGTz/0yVONsq8irUJkpaHigwbK+JQjH+OnKYC4l4v09aynr FFPC8y7EHg1qLf/yY/hAiNaDIsyFGqERgzZydTmGH7oJCOTOyLIY5WPJWjBXODNWDKL7 I+OYcCBuFxva/Abr4rRsaAbHKKuWWvFGDJ3Nbqti8VplmcBu5P1GnWKvibsj1uOPxUYa 0lU0cSVDRqF0Rr0VD1sHL37nsV1IkBhqmLC1w8twWmhmkoG7lvr3MAsNJZMyvSnlPi3+ KZDA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gyg3jbez; spf=pass (google.com: domain of pmmagic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) smtp.mailfrom=pmmagic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com. [2a00:1450:4864:20::230]) by gmr-mx.google.com with ESMTPS id u23si653207wmn.0.2020.05.07.07.43.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 May 2020 07:43:16 -0700 (PDT) Received-SPF: pass (google.com: domain of pmmagic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) client-ip=2a00:1450:4864:20::230; Original-Received: by mail-lj1-x230.google.com with SMTP id a21so6559588ljb.9 for ; Thu, 07 May 2020 07:43:16 -0700 (PDT) X-Received: by 2002:a05:651c:545:: with SMTP id q5mr8794207ljp.57.1588862595898; Thu, 07 May 2020 07:43:15 -0700 (PDT) In-Reply-To: X-Original-Sender: pmmagic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gyg3jbez; spf=pass (google.com: domain of pmmagic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) smtp.mailfrom=pmmagic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:25148 Archived-At: --000000000000a022f105a50fe6d9 Content-Type: text/plain; charset="UTF-8" If you're using this with RMarkdown (e.g. via RStudio) the problem most likely lies in knitr or RMarkdown packages in terms of temporary directories generated. On Thu, May 7, 2020 at 10:33 AM Jason Miller wrote: > 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 > > . > -- 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/CABoaWcXysCY8fPMXbZj7m3Nc_b763gnjyBGTm-AJNDt87%2BbARA%40mail.gmail.com. --000000000000a022f105a50fe6d9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If you're using this with RMarkdown (e.g. via RStudio)= the problem most likely lies in knitr or RMarkdown packages in terms of te= mporary directories generated.

On Thu, May 7, 2020 at 10:33 AM Jason Mil= ler <millerj870-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>= ; wrote:
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.=C2=A0 The chunk looks like this

<= br>
```{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=A0 I think it uses PDFlatex via pandoc.=C2=A0 This 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=A0 The name of that folder has as unders= core.=C2=A0 This means the path to the graphic file, a string that's us= ed in the .tex source file, has an underscore.=C2=A0 And 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=A0 I am getting a "Missing $ inserted" erro= r before the latex compiler craps out.=C2=A0 No 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=A0 Or 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 pandoc-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-01efa9c2= 9384%40googlegroups.com.

--
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://group= s.google.com/d/msgid/pandoc-discuss/CABoaWcXysCY8fPMXbZj7m3Nc_b763gnjyBGTm-= AJNDt87%2BbARA%40mail.gmail.com.
--000000000000a022f105a50fe6d9--