Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Knit-ting #14

Open
JKHopf opened this issue May 20, 2021 · 1 comment
Open

Issue with Knit-ting #14

JKHopf opened this issue May 20, 2021 · 1 comment
Assignees

Comments

@JKHopf
Copy link

JKHopf commented May 20, 2021

Hi,

I really love the look of the memor template, but I can't get it to knit to pdf_memo. The following issue is consistently output:

"! Missing $ inserted.

$
l.318 N
ote that the \texttt{echo\ =\ FALSE} parameter was added to the code

Try to find the following text in test.Rmd:
N

You may need to add $ $ around a certain inline R expression r in test.Rmd (see the above hint). See rstudio/rmarkdown#385 for more info.
Error: LaTeX failed to compile test.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See test.log for more info.
Execution halted"

I have even tried with the template .Rmd file that RStudio gives when you open a new file (see copy of code below).

Can you suggest any fixes?

Cheers

image

@timothytsai
Copy link
Contributor

So sorry for the delay! Looks like the error is being caused by the special character underscore "_" in the example on line 12 of the yaml, here is a corrected version (also use_profile is true/false):

--- title: "test" author: "JESS" date: "20/05/2021" output: memor::pdf_memo: use_profile: false company: name: Your company's name address: Your address phone: 888.888.8888 email: [email protected] short_title: short title footer_on_first_page: yes toc: yes lot: yes lof: yes number_sections: yes latex_engine: xelatex ---

If you need to use a special character like an underscore or colon within the YAML header, you'd need to escape the symbol as follows: your$\[email protected] or $\colon$

@timothytsai timothytsai self-assigned this Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants