GithubHelp home page GithubHelp logo

contextlab / latex-base Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 391 KB

Template repository for latex documents produced by the Contextual Dynamics Lab

License: MIT License

Dockerfile 0.87% Jupyter Notebook 88.50% Shell 1.41% TeX 9.22%

latex-base's Introduction

Contextual Dynamics Lab LaTeX Template

This template repository provides a convenient way of setting up new paper-based projects. The template includes our lab-recommended systems for organizing LaTeX code (including bibliography and figures), analysis code (e.g., notebooks for reproducing each figure and a containerized environment for guaranteeing the notebooks will run correctly), and data (raw and pre-processed), and all associated documentation. The repository also includes scripts for automatically setting up the repository and compiling the latex files into PDFs.

Using this template repository

There are two simple ways of using this repository as a template for a new project:

  1. Visit the GitHub page for this project and click the green "Use this template" button. You will be taken to a new page that enables you to name and configure your new repository.
  2. Create a new GitHub repository and select "ContextLab/latex-template" from the "Repository template" dropdown menu. Then name and configure your repository from the same page.

Basic setup

After cloning your new repository, you'll want to get it set up and configured for you to start using it in your new project:

  1. The first step is to run the setup.sh script in Terminal:
sh setup.sh
  1. Next, you'll want to customize the Dockerfile to include any packages needed for your project.
  2. You should also update the README files (including this one) to reference your paper (rather than this template). Suggested example text for this file is provided below, and suggested code and data README files are provided in the code and data folders, respectively.

Paper title

This repository contains data and code used to produce the paper "Paper title" by Authors. The repository is organized as follows:

root
└── code: all code used in the paper
    └── notebooks : Jupyter notebooks for paper analyses
└── data: all data used in the paper
    ├── raw : raw data before processing
    └── processed : all processed data
└── paper: all files needed to generate a PDF of the paper
    └── figs : pdf copies of each figure
        └── source: source files used to construct individual figure panels or components
    ├── CDL-bibliography: bibliography management based on https://github.com/ContextLab/CDL-bibliography
    └── admin: files and documents related to administrative tasks (e.g., cover letters, forms, etc.)    

We also include a Dockerfile to reproduce our computational environment. Instruction for use are below (copied and modified from this project):

One time setup

  1. Install Docker on your computer using the appropriate guide below:
  2. Launch Docker and adjust the preferences to allocate sufficient resources (e.g. > 4GB RAM)
  3. Build the docker image by opening a terminal in this repo folder and enter docker build -t cdl .
  4. Use the image to create a new container for the workshop
    • The command below will create a new container that will map your local copy of the repository to /mnt within the container, so that all the files in the repo are shared between your host OS and the container. The command will also share port 9999 with your host computer so any jupyter notebooks launched from within the container will be accessible at localhost:9999 in your web browser
    • docker run -it -p 9999:9999 --name cdl -v $PWD:/mnt cdl
    • You should now see the root@ prefix in your terminal, if so you've successfully created a container and are running a shell from inside!
  5. To launch any of the notebooks: jupyter notebook --port=9999 --no-browser --ip=0.0.0.0 --allow-root

Using the container after setup

  1. You can always fire up the container by typing the following into a terminal
    • docker start --attach cdl
    • When you see the root@ prefix, letting you know you're inside the container
  2. Close a running container with ctrl + d from the same terminal you used to launch the container, or docker stop cdl from any other terminal

latex-base's People

Contributors

jeremymanning avatar

Stargazers

 avatar Jeff Carpenter avatar Zhaoning Li avatar Paxton Fitzpatrick avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

contextlab

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.