How to add border to code blocks in generated beamer pdf from Markdown using Pandoc

ぃ、小莉子 提交于 2021-02-10 14:07:21

问题


I've found how to add line numbers by writing,

```{.c .numberLines}
int x = 1;
int y = x;
```

But wonder how to add a border to the code blocks.


回答1:


The "easiest" way to do this is to modify the default.beamer template and pass the --listings variable to pandoc during pdf creation. Take a look at the information for frames in the listings documentation: http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/listings/listings.pdf



来源:https://stackoverflow.com/questions/23343233/how-to-add-border-to-code-blocks-in-generated-beamer-pdf-from-markdown-using-pan

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!