Coder Social home page Coder Social logo

kanglicheng / notebook-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pin3da/notebook-generator

0.0 0.0 0.0 407 KB

(Auto) generate notebooks from your source code. Useful for ACM-ICPC

License: Mozilla Public License 2.0

JavaScript 69.02% TeX 30.98%

notebook-generator's Introduction

notebook-generator

Build Status

(Auto) generate notebooks from your source code. Useful for ACM-ICPC

Dependencies

This generator works in both Linux and Windows, so check how to install texlive in your OS.

texlive for Linux:

aptitude install texlive

texlive for Windows:

download installer (install-tl-Windows.exe) from https://www.tug.org/texlive/acquire-netinstall.html

Install

npm install -g notebook-generator

Use

Usage: notebook-generator <source_dir> [options]

Auto generate notebooks from your source code

Options:
    -V, --version             output the version number
    -a --author <name>        author's name to be added in the notebook
    -i --initials <initials>  initials of the author to be placed in the upper-right corner of all pages
    -o --output <filename>    output file for the notebook. (default: "./notebook.pdf")
    -s --size <size>          font size is allowed 8, 9, 10, 11, 12, 14, 17, 20 pt (default: "10")
    -c --columns <amount>     number of columns is allowed 2, 3. (default: "2")
    -p --paper <size>         paper size is allowed letterpaper, a4paper, a5paper. (default: "letterpaper")
    -h, --help                output usage information
    -I --image <source>       cover image to be added in the notebook.

example:

notebook-generator ./ --output /tmp/team_reference.pdf
notebook-generator ./ --author "Universidad Tecnologica de Pereira" --initials UTP --size 12 --columns 3 --paper a4paper --image ./in-silicon

The second one will create a 'notebook.pdf' file in the current directory.

Example PDF

Here you can find an example https://github.com/pin3da/Programming-contest/blob/master/codes/notebook.pdf

Files

The notebook generator will add your source code with syntax highlight, additionally you can add .tex files which will be rendered as latex code.

Notes:

  • Try to use up to 3 "levels" in your source code.
  • Use spaces insead of underscore (in the filenames) to print a prettier TOC.

Manuel Pineda & Diego Restrepo

notebook-generator's People

Contributors

pin3da avatar diegores14 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.