Mus is coming
This commit is contained in:
parent
413cf02099
commit
35860a18e8
8
.aliases
8
.aliases
@ -1,5 +1,7 @@
|
|||||||
alias o="xdg-open"
|
alias o="xdg-open"
|
||||||
|
|
||||||
|
alias pdf="latexmk -pdf -gg"
|
||||||
|
|
||||||
alias pro="cd ~/Documents/Projects"
|
alias pro="cd ~/Documents/Projects"
|
||||||
alias doc="cd ~/Documents"
|
alias doc="cd ~/Documents"
|
||||||
alias blog="cd ~/Documents/Projects/myself/log/"
|
alias blog="cd ~/Documents/Projects/myself/log/"
|
||||||
@ -17,9 +19,9 @@ csv_fields() {
|
|||||||
alias edit="$VISUAL"
|
alias edit="$VISUAL"
|
||||||
|
|
||||||
export templates_dir="~/Documents/Projects/templates"
|
export templates_dir="~/Documents/Projects/templates"
|
||||||
alias new.td='copier "$templates_dir/latex/td.template"'
|
alias new.td='copier copy --trust "$templates_dir/latex/td.template"'
|
||||||
alias new.cm='copier "$templates_dir/latex/cm.template"'
|
alias new.cm='copier copy --trust "$templates_dir/latex/cm.template"'
|
||||||
alias new.letter='copier "$templates_dir/latex/letter.template"'
|
alias new.letter='copier copy --trust "$templates_dir/latex/letter.template"'
|
||||||
|
|
||||||
pdfcompress () {
|
pdfcompress () {
|
||||||
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSubsetFonts=true -dColorImageDownsampleType=/Bicubic -dColorImageResolution=144 -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=144 -dMonoImageDownsampleType=/Bicubic -dMonoImageResolution=144 -sOutputFile="$2" "$1";
|
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSubsetFonts=true -dColorImageDownsampleType=/Bicubic -dColorImageResolution=144 -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=144 -dMonoImageDownsampleType=/Bicubic -dMonoImageResolution=144 -sOutputFile="$2" "$1";
|
||||||
|
41
.latexmkrc
41
.latexmkrc
@ -1,12 +1,11 @@
|
|||||||
$hash_calc_ignore_pattern{aux} =
|
$hash_calc_ignore_pattern{aux} =
|
||||||
'^\\\\gdef\\\\minted@oldcachelist\{,'
|
'^\\\\gdef\\\\minted@oldcachelist\{,'
|
||||||
. '|^\s*default\.pygstyle,'
|
. '|^\s*default\.pygstyle,'
|
||||||
. '|^\s*[[:xdigit:]]+\.pygtex';
|
. '|^\s*[[:xdigit:]]+\.pygtex';
|
||||||
|
|
||||||
$pdflatex =
|
$pdflatex =
|
||||||
'lualatex -shell-escape -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=build %O '
|
'lualatex -shell-escape -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=build %O '
|
||||||
. '\'\PassOptionsToPackage{outputdir=build}{minted}\input{%S}\''
|
. '\'\PassOptionsToPackage{outputdir=build}{minted}\input{%S}\'';
|
||||||
. '| texlogsieve';
|
|
||||||
$aux_dir = 'build';
|
$aux_dir = 'build';
|
||||||
$bibtex_use = 2;
|
$bibtex_use = 2;
|
||||||
|
|
||||||
@ -34,39 +33,3 @@ sub biber {
|
|||||||
return system "biber", @args;
|
return system "biber", @args;
|
||||||
}
|
}
|
||||||
|
|
||||||
$silent = 1; # This adds "-interaction batchmode"
|
|
||||||
$silence_logfile_warnings = 1;
|
|
||||||
|
|
||||||
END {
|
|
||||||
local $?; # do not override previous exit status
|
|
||||||
if ( -s "$root_filename.blg" and open my $bibfile,
|
|
||||||
'<', "$root_filename.blg" )
|
|
||||||
{
|
|
||||||
print("**********************\n");
|
|
||||||
print("bibtex/biber messages:\n");
|
|
||||||
while ( my $line = <$bibfile> ) {
|
|
||||||
if ( $line =~ /You.ve used/ ) {
|
|
||||||
last;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
print($line);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
close($bibfile);
|
|
||||||
}
|
|
||||||
if ( -s "$root_filename.ilg" and open my $indfile,
|
|
||||||
'<', "$root_filename.ilg" )
|
|
||||||
{
|
|
||||||
print("*************************\n");
|
|
||||||
print("makeindex/xindy messages:\n");
|
|
||||||
while ( my $line = <$indfile> ) {
|
|
||||||
print($line);
|
|
||||||
}
|
|
||||||
close($indfile);
|
|
||||||
}
|
|
||||||
if ( -s "$root_filename.log" ) {
|
|
||||||
print("***************\n");
|
|
||||||
print("LaTeX messages:\n");
|
|
||||||
Run_subst("texlogsieve %R.log");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
10
.loadenv.sh
10
.loadenv.sh
@ -39,3 +39,13 @@ if [ -f "/home/sortion/.local/share/miniforge3/etc/profile.d/mamba.sh" ]; then
|
|||||||
fi
|
fi
|
||||||
# <<< conda initialize <<<
|
# <<< conda initialize <<<
|
||||||
|
|
||||||
|
if type opam > /dev/null; then
|
||||||
|
eval $(opam env)
|
||||||
|
fi
|
||||||
|
|
||||||
|
PATH="/home/$USER/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
||||||
|
PERL5LIB="/home/$USER/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
||||||
|
PERL_LOCAL_LIB_ROOT="/home/$USER/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
||||||
|
PERL_MB_OPT="--install_base \"/home/$USER/perl5\""; export PERL_MB_OPT;
|
||||||
|
PERL_MM_OPT="INSTALL_BASE=/home/$USER/perl5"; export PERL_MM_OPT;
|
||||||
|
|
||||||
|
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ source:
|
|||||||
cp ~/.dotfiles/.loadenv.sh ~/.loadenv.sh
|
cp ~/.dotfiles/.loadenv.sh ~/.loadenv.sh
|
||||||
cp ~/.dotfiles/.vimrc ~/.vimrc
|
cp ~/.dotfiles/.vimrc ~/.vimrc
|
||||||
cp ~/.dotfiles/.gitconfig ~/.gitconfig
|
cp ~/.dotfiles/.gitconfig ~/.gitconfig
|
||||||
cp ~/.dotfiles/.latexmkrc ~/.latexmk
|
cp ~/.dotfiles/.latexmkrc ~/.latexmkrc
|
||||||
|
|
||||||
antigen:
|
antigen:
|
||||||
git clone https://github.com/zsh-users/antigen.git
|
git clone https://github.com/zsh-users/antigen.git
|
||||||
|
Loading…
x
Reference in New Issue
Block a user