feat: Add lp-mouse, and amended latexmkrc
This commit is contained in:
parent
3b8ce96db1
commit
8f91a8163b
12
.aliases
12
.aliases
@ -1,11 +1,11 @@
|
||||
alias o="evince2"
|
||||
alias o="xdg-open"
|
||||
|
||||
alias pro="cd ~/Documents/Projects"
|
||||
alias doc="cd ~/Documents"
|
||||
alias activenv="mamba activate hic2023py3.11"
|
||||
|
||||
alias vim="nvim"
|
||||
alias int="cd ~/Documents/cours/licence/L3/stage/pasteur/projects/"
|
||||
alias blog="cd ~/Documents/Projects/myself/log/"
|
||||
alias cours="cd ~/Documents/cours/master/M1/S1/"
|
||||
|
||||
# Print field name from header with the field rank
|
||||
csv_fields() {
|
||||
@ -16,6 +16,8 @@ csv_fields() {
|
||||
head -n 1 "${file}" | tr "${delimiter}" "\n" | awk '{print NR, $0}'
|
||||
}
|
||||
|
||||
alias edit="$VISUAL"
|
||||
|
||||
export templates_dir="~/Documents/Projects/templates"
|
||||
alias new.td='copier "$templates_dir/latex/td.template"'
|
||||
alias new.cm='copier "$templates_dir/latex/cm.template"'
|
||||
@ -25,6 +27,6 @@ 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";
|
||||
}
|
||||
|
||||
colorinvert() { convert "$1" -channel RGB -negate "$(echo $1 | sed 's/\./-inv\./')"
|
||||
|
||||
colorinvert() {
|
||||
convert "$1" -channel RGB -negate "$(echo $1 | sed 's/\./-inv\./')"
|
||||
}
|
||||
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "liquidprompt/lp-mouse"]
|
||||
path = liquidprompt/lp-mouse
|
||||
url = git@github.com:UncleSamulus/lp-mouse.git
|
64
.latexmkrc
64
.latexmkrc
@ -1,24 +1,72 @@
|
||||
# Minted
|
||||
&set_tex_cmds( '-shell-escape %O '
|
||||
. '\'\PassOptionsToPackage{outputdir={%Y}}{minted}\input{%S}\''
|
||||
);
|
||||
$hash_calc_ignore_pattern{aux} =
|
||||
'^\\\\gdef\\\\minted@oldcachelist\{,'
|
||||
. '|^\s*default\.pygstyle,'
|
||||
. '|^\s*[[:xdigit:]]+\.pygtex';
|
||||
|
||||
$pdflatex = 'lualatex -shell-escape -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=build %O %S | texlogsieve';
|
||||
$pdflatex =
|
||||
'lualatex -shell-escape -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=build %O '
|
||||
. '\'\PassOptionsToPackage{outputdir=build}{minted}\input{%S}\''
|
||||
. '| texlogsieve';
|
||||
$aux_dir = 'build';
|
||||
$bibtex_use = 2;
|
||||
|
||||
# Amend cleaned extensions
|
||||
$clean_ext .= " fdb_latexmk run.xml synctex.gz";
|
||||
|
||||
# Make latexmk quiet
|
||||
$latexmk_silent = 1;
|
||||
|
||||
# Makeglossaries
|
||||
add_cus_dep('acn', 'acr', 0, 'makeglossaries');
|
||||
add_cus_dep('glo', 'gls', 0, 'makeglossaries');
|
||||
add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' );
|
||||
add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' );
|
||||
$clean_ext .= " acr acn alg glo gls glg";
|
||||
|
||||
sub makeglossaries {
|
||||
my ($base_name, $path) = fileparse( $_[0] );
|
||||
my ( $base_name, $path ) = fileparse( $_[0] );
|
||||
my @args = ( "-q", "-d", $path, $base_name );
|
||||
if ($silent) { unshift @args, "-q"; }
|
||||
return system "makeglossaries", "-d", $path, $base_name;
|
||||
}
|
||||
|
||||
sub biber {
|
||||
my ( $base_name, $path ) = fileparse( $_[0] );
|
||||
my @args = ( "--output-directory", $path, $base_name );
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
export PATH="/home/$USER/.luarocks/bin:/home/$USER/.julia/bin:/home/$USER/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/$USER/.local/bin:/home/$USER/bin:/home/$USER/Documents/cours/tools/bin/:/usr/games/:/home/$USER/.config/emacs/bin/"
|
||||
export PATH="/home/$USER/.luarocks/bin:/home/$USER/.julia/bin:/home/$USER/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/$USER/.local/bin:/home/$USER/bin:/home/$USER/Documents/cours/tools/bin/:/usr/games/:/home/$USER/.config/emacs/bin/:/usr/local/cuda/bin//"
|
||||
|
||||
# export EDITOR=vim
|
||||
export ALTERNATE_EDITOR=""
|
||||
export EDITOR="emacsclient -t" # $EDITOR opens in terminal
|
||||
export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI mode
|
||||
export VISUAL="emacsclient -fs -c -a emacs" # $VISUAL opens in GUI mode
|
||||
|
||||
# nvm
|
||||
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
||||
|
8
.zshrc
8
.zshrc
@ -1,9 +1,9 @@
|
||||
autoload antigen
|
||||
|
||||
source ~/.aliases
|
||||
|
||||
source ~/.loadenv.sh
|
||||
|
||||
source ~/.aliases
|
||||
|
||||
source ~/.dotfiles/antigen/antigen.zsh
|
||||
|
||||
antigen use oh-my-zsh
|
||||
@ -34,8 +34,12 @@ source ~/.antigen/bundles/nojhan/liquidprompt/liquidprompt
|
||||
|
||||
# source ~/.antigen/bundles/nojhan/liquidprompt/themes/powerline/powerline.theme && lp_theme powerline
|
||||
|
||||
source ~/.dotfiles/liquidprompt/lp-mouse/preset.conf
|
||||
|
||||
source ~/.antigen/bundles/nojhan/lp-dotmatrix/presets/variant-chevron.conf
|
||||
|
||||
source ~/.antigen/bundles/nojhan/lp-dotmatrix/presets/colors_green-red.conf
|
||||
|
||||
source ~/.antigen/bundles/nojhan/lp-dotmatrix/dotmatrix.theme && lp_theme dotmatrix
|
||||
|
||||
# source <(/home/sortion/.cargo/bin/starship init zsh --print-full-init)
|
||||
|
1
liquidprompt/lp-mouse
Submodule
1
liquidprompt/lp-mouse
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 9cc137a33be56f01a3228971cf263b530c14f9ef
|
Loading…
Reference in New Issue
Block a user