{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/bookdown/issues/591","repository_url":"https://api.github.com/repos/rstudio/bookdown","labels_url":"https://api.github.com/repos/rstudio/bookdown/issues/591/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/bookdown/issues/591/comments","events_url":"https://api.github.com/repos/rstudio/bookdown/issues/591/events","html_url":"https://github.com/rstudio/bookdown/issues/591","id":332255148,"node_id":"MDU6SXNzdWUzMzIyNTUxNDg=","number":591,"title":"Feature request: about ````","user":{"login":"bubifengyun","id":4437214,"node_id":"MDQ6VXNlcjQ0MzcyMTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4437214?v=4","gravatar_id":"","url":"https://api.github.com/users/bubifengyun","html_url":"https://github.com/bubifengyun","followers_url":"https://api.github.com/users/bubifengyun/followers","following_url":"https://api.github.com/users/bubifengyun/following{/other_user}","gists_url":"https://api.github.com/users/bubifengyun/gists{/gist_id}","starred_url":"https://api.github.com/users/bubifengyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bubifengyun/subscriptions","organizations_url":"https://api.github.com/users/bubifengyun/orgs","repos_url":"https://api.github.com/users/bubifengyun/repos","events_url":"https://api.github.com/users/bubifengyun/events{/privacy}","received_events_url":"https://api.github.com/users/bubifengyun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/rstudio/bookdown/milestones/7","html_url":"https://github.com/rstudio/bookdown/milestone/7","labels_url":"https://api.github.com/repos/rstudio/bookdown/milestones/7/labels","id":3223770,"node_id":"MDk6TWlsZXN0b25lMzIyMzc3MA==","number":7,"title":"v0.8","description":null,"creator":{"login":"yihui","id":163582,"node_id":"MDQ6VXNlcjE2MzU4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/163582?v=4","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":28,"state":"open","created_at":"2018-03-28T00:48:54Z","updated_at":"2018-06-17T03:38:56Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2018-06-14T05:21:47Z","updated_at":"2018-06-17T12:58:20Z","closed_at":"2018-06-14T14:02:03Z","author_association":"NONE","body":"in *./inst/example/02-component.Rmd* file,\r\n\r\n<pre>\r\n````markdown\r\nA normal paragraph.\r\n\r\n(ref:foo) A scatterplot of the data `cars` using **base** R graphics. \r\n\r\n`r ''````{r foo, fig.cap='(ref:foo)'}\r\nplot(cars)  # a scatterplot\r\n```\r\n````\r\n</pre>\r\n\r\nthis code, when set in pandoc\r\n\r\n```yaml\r\n# _output.yml\r\npandoc_args: [\"--listings\", \"--top-level-division=chapter\"]\r\n```\r\nusing `listings` insteal of `Shade and Highlight`, it will pops error\r\nsuch as, \r\n\r\n```\r\nRscript --quiet _render.R \"bookdown::pdf_book\"\r\n! Undefined control sequence.\r\n\\lstlisting ->\\def \\lstenv@name \r\n                                {lstlisting}\\begingroup \\lst@setcatcodes \\ca...\r\nl.1603 \\end{lstlisting}\r\n                       '} \r\nHere is how much of TeX's memory you used:\r\n 25476 strings out of 493005\r\n 450868 string characters out of 6134596\r\n 606163 words of memory out of 5000000\r\n 29161 multiletter control sequences out of 15000+600000\r\n 46124 words of font info for 75 fonts, out of 8000000 for 9000\r\n 1348 hyphenation exceptions out of 8191\r\n 53i,18n,117p,10406b,1664s stack positions out of 5000i,500n,10000p,200000b,80000s\r\n\r\n错误: Failed to compile bookdown.tex. See bookdown.log for more info.\r\n此外: Warning message:\r\nIn parse_ref_links(x, \"^%s (.+)$\") :\r\n  Possibly duplicated text reference labels: (ref:foo)\r\n```\r\n\r\nHope can support listings code block. Thank you."},"comment":{"url":"https://api.github.com/repos/rstudio/bookdown/issues/comments/397877354","html_url":"https://github.com/rstudio/bookdown/issues/591#issuecomment-397877354","issue_url":"https://api.github.com/repos/rstudio/bookdown/issues/591","id":397877354,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Nzg3NzM1NA==","user":{"login":"bubifengyun","id":4437214,"node_id":"MDQ6VXNlcjQ0MzcyMTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4437214?v=4","gravatar_id":"","url":"https://api.github.com/users/bubifengyun","html_url":"https://github.com/bubifengyun","followers_url":"https://api.github.com/users/bubifengyun/followers","following_url":"https://api.github.com/users/bubifengyun/following{/other_user}","gists_url":"https://api.github.com/users/bubifengyun/gists{/gist_id}","starred_url":"https://api.github.com/users/bubifengyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bubifengyun/subscriptions","organizations_url":"https://api.github.com/users/bubifengyun/orgs","repos_url":"https://api.github.com/users/bubifengyun/repos","events_url":"https://api.github.com/users/bubifengyun/events{/privacy}","received_events_url":"https://api.github.com/users/bubifengyun/received_events","type":"User","site_admin":false},"created_at":"2018-06-17T12:58:20Z","updated_at":"2018-06-17T12:58:20Z","author_association":"NONE","body":"https://github.com/rstudio/bookdown/blob/master/R/latex.R?#L137 这一行是对行内代码的复原。对于 listings 则没有涉及，我找找，能否对 lstinline lstlisting 括号内的都不替换。"}}
{"actor":{"display_login":"bubifengyun"}}