* pandoc creating folder with name that makes latex fail @ 2020-05-07 14:33 Jason Miller [not found] ` <e448fa9c-3dfd-4eb8-8e06-01efa9c29384-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Jason Miller @ 2020-05-07 14:33 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1853 bytes --] 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. <inserted text> $ 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. [-- Attachment #1.2: Type: text/html, Size: 2648 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <e448fa9c-3dfd-4eb8-8e06-01efa9c29384-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: pandoc creating folder with name that makes latex fail [not found] ` <e448fa9c-3dfd-4eb8-8e06-01efa9c29384-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2020-05-07 14:43 ` Paul M. [not found] ` <CABoaWcXysCY8fPMXbZj7m3Nc_b763gnjyBGTm-AJNDt87+bARA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Paul M. @ 2020-05-07 14:43 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 2760 bytes --] 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 <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. 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. > <inserted text> > $ > 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 > <https://groups.google.com/d/msgid/pandoc-discuss/e448fa9c-3dfd-4eb8-8e06-01efa9c29384%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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. [-- Attachment #2: Type: text/html, Size: 3991 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CABoaWcXysCY8fPMXbZj7m3Nc_b763gnjyBGTm-AJNDt87+bARA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: pandoc creating folder with name that makes latex fail [not found] ` <CABoaWcXysCY8fPMXbZj7m3Nc_b763gnjyBGTm-AJNDt87+bARA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2020-05-07 14:47 ` Jason Miller [not found] ` <38a1639b-1f2f-458d-ab27-2c88968d88bb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Jason Miller @ 2020-05-07 14:47 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 3116 bytes --] Thanks, Paul. I'm new to pandoc, so I wasn't sure which tree to bark up in my troubleshooting. I'm posting a version of this question to the RStudio community. Hadn't thought about knitr. Will bark up that tree, too. On Thursday, May 7, 2020 at 7:43:20 AM UTC-7, pmags wrote: > > 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 <mille...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > <javascript:>> 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. >> <inserted text> >> $ >> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/e448fa9c-3dfd-4eb8-8e06-01efa9c29384%40googlegroups.com >> <https://groups.google.com/d/msgid/pandoc-discuss/e448fa9c-3dfd-4eb8-8e06-01efa9c29384%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/38a1639b-1f2f-458d-ab27-2c88968d88bb%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 4995 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <38a1639b-1f2f-458d-ab27-2c88968d88bb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: pandoc creating folder with name that makes latex fail [not found] ` <38a1639b-1f2f-458d-ab27-2c88968d88bb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2020-05-07 16:48 ` John MacFarlane 0 siblings, 0 replies; 4+ messages in thread From: John MacFarlane @ 2020-05-07 16:48 UTC (permalink / raw) To: Jason Miller, pandoc-discuss Agreed: pandoc doesn't create any directories of that form. It creates a temp dir but uses the system's temp dir function to generate the name, and it wouldn't look like that. Jason Miller <millerj870-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > Thanks, Paul. I'm new to pandoc, so I wasn't sure which tree to bark up in > my troubleshooting. I'm posting a version of this question to the RStudio > community. Hadn't thought about knitr. Will bark up that tree, too. > > On Thursday, May 7, 2020 at 7:43:20 AM UTC-7, pmags wrote: >> >> 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 <mille...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> <javascript:>> 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. >>> <inserted text> >>> $ >>> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/e448fa9c-3dfd-4eb8-8e06-01efa9c29384%40googlegroups.com >>> <https://groups.google.com/d/msgid/pandoc-discuss/e448fa9c-3dfd-4eb8-8e06-01efa9c29384%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> > > -- > 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/38a1639b-1f2f-458d-ab27-2c88968d88bb%40googlegroups.com. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-07 16:48 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-05-07 14:33 pandoc creating folder with name that makes latex fail Jason Miller [not found] ` <e448fa9c-3dfd-4eb8-8e06-01efa9c29384-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2020-05-07 14:43 ` Paul M. [not found] ` <CABoaWcXysCY8fPMXbZj7m3Nc_b763gnjyBGTm-AJNDt87+bARA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2020-05-07 14:47 ` Jason Miller [not found] ` <38a1639b-1f2f-458d-ab27-2c88968d88bb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2020-05-07 16:48 ` John MacFarlane
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).