question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Marginfigure OR embedded latex breaking rmarkdown

See original GitHub issue

If I put the following into a document it stops parsing syntax below the block.

 ```{marginfigure}
![](/Users/jtth/Dropbox/Proposal/text/draft1/gabor.png)
A Gabor patch. These Gabor patches are described by $g(x,y;\lambda,\theta,\psi,\sigma,\gamma) = \exp\left(-\frac{x'^2+\gamma^2y'^2}{2\sigma^2}\right)\sin\left(2\pi\frac{x'}{\lambda}+\psi\right)$, where $\lambda$ ranges from .01 to .1, $\theta$ ranges from 0 to 90, $\psi = 0, \sigma = 50, \gamma = 1$. Degrees of rotation corresponds with the value of $\theta$ and the spacing between the stripes corresponds with $\lambda$.

It ends with three '`' too.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jtthcommented, May 9, 2016

Linter, language-r, r-exec, and tidy-markdown.

Interestingly, replacing marginfigure (used with the tufte-template in Rmarkdown) with your version and replacing the quotes with \prime seems to work. And that is probably better. Thanks for the heads-up; I was taking pandoc’s ability to interpret quote characters and transferring that to the text editor. Some day, maybe.

0reactions
jtthcommented, May 9, 2016

Indeed. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

6.5 Control the placement of figures | R Markdown Cookbook
This can break the reading flow of a report. We can force the figure to always appear after the text by using the...
Read more >
r markdown - Latex: fail to show line breaks in formula with ```\\```
I'm using rmarkdown to knit to pdf. However, line break \\ doesn't take effect. I suspect something is wrong with my package amsmath ......
Read more >
How to add LaTeX to Rmarkdown to be within text rather than ...
I am writing text in RMarkdown that includes equations ...
Read more >
Markdown Basics
Turn your analyses into high quality documents, reports, presentations and dashboards with R Markdown. Use a productive notebook interface to weave together ...
Read more >
15 Common Problems with rmarkdown (and some solutions)
15.15 Your Turn · 15.14 My Figure or Table isn't being cited · 15.13 I want to include inline R code verbatim to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found