Giter Club home page Giter Club logo

nacl's Introduction

NaCl - NCTU_a Contest library

ICPC codebook of the team NCTU_a.

Building

Run make codebook to build the PDF. Run make help for a list of build commands.

Editing

Editing the codebook's content should be very simple, thanks to the automated TeX file generator.

To add new content to the codebook, first put the files to add (code snippets or TeX files) somewhere under nacl/. You may also modify existing files.

To change the files to include, section names, or arrangements, etc., edit codebook/config.yaml. It should have a structure like this:

include:
  - Section 1:
    - path_to_file
    - Subsection 1.1:
      - Subsubsection 1.1.1:
        - ...:
          - path_to_file
          - path_to_file
      - ...
    - ...
  - Section 2:
    - ...
  - ...
some_additional_configs:
  ...

Paths should be relative to nacl/. .tex files will be directly inputted, and other files will be shown as highlighted code. See the default config file for a complete example.

By default, all local dependencies for C/C++ files are shown. When there are #include "..." directives in a file, NaCl will show the section that the included file belongs to. It will also refuse to work if there is a dependency cycle. These behaviors can be changed in the config file.

#includes and comments of the form /// ... are removed, unless you add // keep-line to the end of a line.

Dependencies

  • A TeX distribution
  • Python 3.6 or newer
    • pyyaml package
    • pygments package
  • Clang-Format 13 or newer
  • Fira Mono font

License

See COPYING for details.

nacl's People

Contributors

henotrix avatar toxicpie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

henotrix smiles02

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.