Giter Site home page Giter Site logo

nhamilakis / latexmk-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arkark/latexmk-docker

0.0 1.0 0.0 412 KB

Useful LaTeX environment on :whale:

Home Page: https://hub.docker.com/r/arkark/latexmk

License: MIT License

Dockerfile 43.04% Perl 18.45% Shell 38.51%

latexmk-docker's Introduction

🐳 arkark/latexmk

Docker build Docker automated build

Useful LaTeX environment on Docker.

  • One command to LaTeX environment
  • Colored latexmk output
  • Automatic conversion from to

Installation

$ docker pull arkark/latexmk
  • Docker image size: 2.12GB

If you want to install all packages of TeX Live, pull arkark/latexmk:full whose size is 4.36GB ⚠️.

Usage

  1. Prepare main.tex and some necessary files: e.g., other *.tex files, *.bib files, and image files.
  2. Move to the directory.
  3. Execute:
    $ docker run --rm -it -v $PWD:/workdir -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) arkark/latexmk
    If you use Mac, execute:
    $ docker run --rm -it -v $PWD:/workdir arkark/latexmk
    If you use Windows, execute in PowerShell:
    > docker run --rm -it -v "$(pwd):/workdir" arkark/latexmk
  4. Edit latex files and preview out/main.pdf while monitoring a latexmk's log.
  5. Press Ctrl+C to exit.

Options

The default latexmk file is here, which uses uplatex. If you want to customize it, add .latexmkrc file to the working directory.

For example, add the following .latexmkrc when using lualatex:

#!/usr/bin/env perl
$pdflatex = "lualatex --synctex=1 --interaction=nonstopmode --halt-on-error %O %S";
$max_repeat       = 5;
$pdf_mode         = 1;
$pdf_previewer    = ":";
$out_dir          = "out";
$pvc_view_file_via_temporary = 0;

Advanced Usage

Latexdiff:

$ docker run --rm -it -v $PWD:/workdir -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) arkark/latexmk latexdiff-vc <ARGS>

Colored latexmk with a root filename:

$ docker run --rm -it -v $PWD:/workdir -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) arkark/latexmk latexmk-ext <FILE_NAME>

Links

latexmk-docker's People

Contributors

arkark avatar akashisn avatar

Watchers

James Cloos 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.