Saturday, May 12, 2018

Compile latex sources with docker container

Someone maintains a great source over here:
https://hub.docker.com/r/blang/latex/

Comprehensive instructions are also available on the same web page.

Essentially, you will have to do:

# Change to your project
cd my_latex_project

# Download the command wrapper and make it executable
wget https://raw.githubusercontent.com/blang/latex-docker/master/latexdockercmd.sh
chmod +x latexdockercmd.sh

# Optional: Change the version (see above, default blang/latex:ubuntu)
edit ./latexdockercmd.sh

# Or use latexmk (best option)
./latexdockercmd.sh latexmk -cd -f -interaction=batchmode -pdf main.tex

Thursday, May 10, 2018

Google chrome keyboard shortcut on Mac for navigating "Previous|Next"

Open the previous page in your browsing history for the current tab⌘ + [ or ⌘ + Left arrow
Open the next page in your browsing history for the current tab⌘ + ] or ⌘ + Right arrow

For complete google chrome keyboard shortcuts reference, visit https://support.google.com/chrome/answer/157179?hl=en

How to install docker for mac Community Edition

到这个网址, 点击“Get Docker”:
https://store.docker.com/editions/community/docker-ce-desktop-mac

或者直接下载:
https://download.docker.com/mac/stable/Docker.dmg

Other ways of installation can be found here (I have NOT tried yet)
https://pilsniak.com/how-to-install-docker-on-mac-os-using-brew/