latex2pdf with ligatures, etc.

This commit is contained in:
Frank Villaro-Dixon 2013-10-19 15:53:50 +02:00
parent 75f6a8e110
commit 20b3a07098
5 changed files with 38 additions and 26 deletions

19
Utils/latex2pdf Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
test #$ -gt 1 || exit 1
tmp=tmp$$
file=/dev/shm/$tmp
result=$(echo $1 | rev | cut -d. -f2- | rev).pdf
sed 's/oeil/\\oe{}il/g;
s/oeuvre/\\oe{}uvre/g;
s/soeur/s\\oe{}ur/g;
s/noeud/n\\oe{}ud/g;
s/oeuf/\\oe{}uf/g;
s/boeuf/b\\oe{}uf/g
' $1 > $file
pdflatex $file
mv $tmp.pdf $result
rm -f $tmp*

24
bashrc
View file

@ -379,27 +379,6 @@ function mutt() {
fi;
}
function latex2pdf() {
test #$ -gt 1 || exit 1
tmp=tmp$$
file=/dev/shm/$tmp
result=$(echo $1 | rev | cut -d. -f2- | rev).pdf
sed 's/oeil/\\oe{}il/g;
s/oeuvre/\\oe{}uvre/g;
s/soeur/s\\oe{}ur/g;
s/noeud/n\\oe{}ud/g;
s/oeuf/\\oe{}uf/g;
s/boeuf/b\\oe{}uf/g
' $1 > $file
pdflatex $file
mv $tmp.pdf $result
rm -f $tmp*
}
# }}}
SSHAGENT=/usr/bin/ssh-agent
@ -426,6 +405,9 @@ export DEVKITPRO=/opt/devkitpro
export DEVKITARM=$DEVKITPRO/devkitARM
export PATH=$PATH:$DEVKITARM/bin
export MANPATH=$MANPATH:$DEVKITARM/man
export PATH=$PATH:~/Programmation/dotfiles/Utils
# }}}
#Launch startx when login

View file

@ -21,6 +21,14 @@ color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
#color body blue black "[*][-[:alnum:]]+[*]" # *bold*
#color body yellow blue "[*][-[:alnum:]]+ *[-[:alnum:]]+[*]" # *really bold*
#color body yellow blue "/[-[:alnum:]]+/" # /emphasized/
#color body yellow blue "[-]+[-[[:alnum:]]+[-]{1}" # -strike-through-
#color body red black "_[-[:alnum:]]+_" # _underline_
#FIXME
# email addresses
color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
#mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
@ -39,13 +47,13 @@ color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^X-Author:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-WebTV-Stationery:"
color header yellow black "^X-Message-Flag:"
color header yellow black "^X-Spam-Status:"
color header yellow black "^X-SpamProbe:"
color header red black "^X-SpamProbe: SPAM"
color header red black "^X-Author:"
# Coloring quoted text - coloring the first 7 levels:

View file

@ -68,8 +68,6 @@ map <Tab> <C-w>w
map <S-Tab> <C-w>W
set list
set listchars=tab:\|\-"Cool for ifs/whiles
"set listchars=tab:\|\ "Cool for ifs/whiles
@ -77,8 +75,8 @@ set listchars+=trail:· "For eol with spaces
"set listchars+=eol:↲ "To show eol;not very useful with trail, but cool anyway :p
set listchars+=nbsp:⍽ "For unbreakeable spaces
highlight NonText ctermfg=8 guifg=gray "EOL
highlight SpecialKey ctermfg=grey
highlight NonText ctermfg=8 guifg=lightblue "EOL
highlight SpecialKey ctermfg=lightblue
set history=500

View file

@ -41,6 +41,11 @@ while true; do
$OCTOPUS wallpaper
done &
while true; do
sleep 120
$OCTOPUS init-mouse
done &
xautolock -time 60 -locker "systemctl suspend" &
redshift -l 46:6&