Erfan.aa's blog

By Erfan.aa, 5 years ago, In English

Hello!

As you know, each team can have a notebook for their reference in any ACM-ICPC official contest. Actually, this is a rule of regional and World Finals ACM-ICPC contests, that you can bring some papers with yourself. Usually, each team put some source codes of different algorithms in their cheatsheet.

Generating this cheatsheet would be a little hard, because you may want to put many source codes in a few pages. Also, you may want to add a table of contents to it. And the most important part is to have syntax highlighting for your codes.

I just wanted to introduce you a tool for this purpose. Its name is "codes2pdf" and it's here: https://github.com/Erfaniaa/codes2pdf

(Actually, it's forked from pin3da/notebook-generator and it has been improved.)

Just give your cpp, py, java, and tex files as an input to it; it will generate a PDF file for you. Sample PDF file

I hope it will be helpful to you, even in fields which are not related to ACM-ICPC.

  • Vote: I like it
  • +81
  • Vote: I do not like it

| Write comment?
»
5 years ago, # |
  Vote: I like it +3 Vote: I do not like it

That's great!

»
5 years ago, # |
Rev. 2   Vote: I like it -35 Vote: I do not like it

ignore

»
5 years ago, # |
  Vote: I like it +5 Vote: I do not like it

What will be the Font size in generated PDF ?

»
5 years ago, # |
  Vote: I like it +6 Vote: I do not like it

It would be great if you put the link to the original repo https://github.com/pin3da/notebook-generator (;