Add latexmk link
This commit is contained in:
parent
56a470e86f
commit
a6fd5c261f
18
README.md
18
README.md
|
@ -8,3 +8,21 @@ Common configuration files for:
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
Execute `symlinks.sh` to create symbolic links.
|
Execute `symlinks.sh` to create symbolic links.
|
||||||
|
|
||||||
|
## Docker Images
|
||||||
|
|
||||||
|
`hub-jupyter` and `hub-jupyter-spark` are images based on cudnn docker image
|
||||||
|
for jupyter. To use them with GPU, add the following to
|
||||||
|
`/etc/docker/daemon.json` and restart the docker daemon:
|
||||||
|
```json
|
||||||
|
...
|
||||||
|
"runtimes": {
|
||||||
|
"nvidia": {
|
||||||
|
"path": "/usr/bin/nvidia-container-runtime",
|
||||||
|
"runtimeArgs": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
The `latex` docker contains tools for compiling `latex`.
|
||||||
|
|
||||||
|
The `route` docker is used to setup a socks5 proxy server using `ssh`.
|
||||||
|
|
|
@ -37,5 +37,7 @@ ps1_reset
|
||||||
#PS1='[\[\e[01;32m\]\u\[\e[0m\]@\[\e[38;5;63m\]\h \[\e[38;5;105m\]\w\[\e[00m\]]\[\e[1m\]\$\[\e[00m\] '
|
#PS1='[\[\e[01;32m\]\u\[\e[0m\]@\[\e[38;5;63m\]\h \[\e[38;5;105m\]\w\[\e[00m\]]\[\e[1m\]\$\[\e[00m\] '
|
||||||
PS2='\[\e[1m\]>> \[\e[00m\]'
|
PS2='\[\e[1m\]>> \[\e[00m\]'
|
||||||
|
|
||||||
|
alias test-command='echo test-'
|
||||||
|
|
||||||
export VISUAL=vim
|
export VISUAL=vim
|
||||||
export EDITOR="$VISUAL"
|
export EDITOR="$VISUAL"
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/fish
|
||||||
|
|
||||||
|
set fish_greeting
|
||||||
|
|
||||||
|
alias ubisunt='grep . -rnw -e'
|
||||||
|
|
||||||
|
set -x GIT_EDITOR vim
|
||||||
|
set -x LANG en_US.UTF-8
|
||||||
|
|
||||||
|
function latexmk --argument-names 'path'
|
||||||
|
if test -n "$path"
|
||||||
|
set abspath (realpath $argv[1])
|
||||||
|
else
|
||||||
|
set abspath $PWD
|
||||||
|
end
|
||||||
|
docker run --rm -it \
|
||||||
|
--volume "$HOME/.latexmkrc:/root/.latexmkrc:ro" \
|
||||||
|
--volume "$abspath:/data" \
|
||||||
|
--workdir "/data" \
|
||||||
|
--entrypoint latexmk \
|
||||||
|
latex \
|
||||||
|
$argv
|
||||||
|
end
|
|
@ -0,0 +1,19 @@
|
||||||
|
$pdf_mode = 1;
|
||||||
|
|
||||||
|
add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
|
||||||
|
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
|
||||||
|
|
||||||
|
sub run_makeglossaries {
|
||||||
|
if ( $silent ) {
|
||||||
|
system "makeglossaries -q '$_[0]'";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
system "makeglossaries '$_[0]'";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
push @generated_exts, 'glo', 'gls', 'glg', 'glsdefs';
|
||||||
|
push @generated_exts, 'slg', 'slo', 'sls';
|
||||||
|
push @generated_exts, 'acn', 'acr', 'alg';
|
||||||
|
$clean_ext .= ' %R.ist %R.xdy';
|
||||||
|
$out_dir = 'build';
|
|
@ -6,6 +6,7 @@ BASE=$(realpath --relative-to=$DIR $PWD)
|
||||||
pushd $HOME >> /dev/null
|
pushd $HOME >> /dev/null
|
||||||
ln -vs $BASE/home/vimrc .vimrc
|
ln -vs $BASE/home/vimrc .vimrc
|
||||||
ln -vs $BASE/home/bashrc .bashrc
|
ln -vs $BASE/home/bashrc .bashrc
|
||||||
|
ln -vs $BASE/home/latexmkrc .latexmkrc
|
||||||
popd >> /dev/null
|
popd >> /dev/null
|
||||||
|
|
||||||
# Create ftplugin links
|
# Create ftplugin links
|
||||||
|
@ -28,6 +29,7 @@ DIR=$HOME/.config/fish
|
||||||
BASE=$(realpath --relative-to=$DIR $PWD)
|
BASE=$(realpath --relative-to=$DIR $PWD)
|
||||||
mkdir -p $DIR
|
mkdir -p $DIR
|
||||||
pushd $DIR >> /dev/null
|
pushd $DIR >> /dev/null
|
||||||
|
ln -vs $BASE/home/fish/config.fish .
|
||||||
ln -vs $BASE/home/fish/fishd_color .
|
ln -vs $BASE/home/fish/fishd_color .
|
||||||
ln -vs $BASE/home/fish/functions .
|
ln -vs $BASE/home/fish/functions .
|
||||||
popd >> /dev/null
|
popd >> /dev/null
|
||||||
|
|
Loading…
Reference in New Issue