3

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 Answers1

0

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

dfc
  • 792
  • 5
  • 16