Emacs: improved LaTeX templates.

master
Ambrevar 2013-01-06 11:38:21 +01:00
parent cf7c4b6e67
commit 6d7aebc4e8
8 changed files with 80 additions and 71 deletions

View File

@ -7,32 +7,64 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{eurosym}
\DeclareUnicodeCharacter{20AC}{\euro{}}
\usepackage{gensymb}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{needspace}
\usepackage[svgnames]{xcolor}
\usepackage{xspace}
\DeclareUnicodeCharacter{00AB}{\og{}}
\DeclareUnicodeCharacter{00B0}{\degree{}}
\DeclareUnicodeCharacter{00BB}{\fg{}}
\DeclareUnicodeCharacter{20AC}{\euro{}}
\DeclareUnicodeCharacter{2264}{\leqslant}
\DeclareUnicodeCharacter{2265}{\geqslant}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%=============================================================================
\title{${1:Title}}
\author{${2:\textsc{P.~Neidhardt}}}
%%=============================================================================
%% Various packages with configuration.
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{calc}
\usepackage{gensymb}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{needspace}
\usepackage[svgnames]{xcolor}
\usepackage{xspace}
% \usepackage{amsmath,amssymb,amsfonts}
% \usepackage{calc}
% \usepackage{parskip}
%% Load after xcolor.
\usepackage{tikz}
% \usepackage{listings}
%% Source code.
% \lstdefinestyle{customc}{
% % numbers=left,
% belowcaptionskip=1\baselineskip,
% breaklines=true,
% frame=L,
% xleftmargin=\parindent,
% % framexleftmargin=\parindent,
% language=C,
% showstringspaces=false,
% basicstyle=\footnotesize\ttfamily,
% keywordstyle=\bfseries\color{green!40!black},
% commentstyle=\itshape\color{purple!40!black},
% identifierstyle=\color{blue},
% stringstyle=\color{orange},
% numberstyle=\ttfamily
% }
% \lstset{escapechar=@,style=customc}
%% Load TikZ after xcolor.
% \usepackage{tikz}
% \newcommand{\fancybox}[1]{
% \begin{tikzpicture}
% \node[draw,rounded corners]{#1};
% \end{tikzpicture}
% }
%% Load last.
\usepackage[]{hyperref}
\usepackage[frenchb]{babel}
@ -45,47 +77,11 @@
urlcolor=blue,
}
%% Source code.
\lstdefinestyle{customc}{
% numbers=left,
belowcaptionskip=1\baselineskip,
breaklines=true,
frame=L,
xleftmargin=\parindent,
% framexleftmargin=\parindent,
language=C,
showstringspaces=false,
basicstyle=\footnotesize\ttfamily,
keywordstyle=\bfseries\color{green!40!black},
commentstyle=\itshape\color{purple!40!black},
identifierstyle=\color{blue},
stringstyle=\color{orange},
numberstyle=\ttfamily
}
\lstdefinestyle{customasm}{
% numbers=left,
belowcaptionskip=1\baselineskip,
frame=L,
xleftmargin=\parindent,
language=[x86masm]Assembler,
basicstyle=\footnotesize\ttfamily,
commentstyle=\itshape\color{purple!40!black},
}
\lstset{escapechar=@,style=customc}
%% Commands
\newcommand{\fancybox}[1]{
\begin{tikzpicture}
\node[draw,rounded corners]{#1};
\end{tikzpicture}
}
%%=============================================================================
%% Options
\newcommand{\comment}[1]{}
%% Options
% \usepackage{parskip}
% \renewcommand{\thefigure}{\arabic{section}.\arabic{figure}}
\renewcommand{\arraystretch}{1.4}
% \renewcommand{\familydefault}{\sfdefault}

View File

@ -8,10 +8,18 @@
\documentclass[svgnames]{beamer}
%% \documentclass[xcolor=latex,svgnames,table]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{eurosym}
\DeclareUnicodeCharacter{20AC}{\euro{}}
\usepackage{gensymb}
\usepackage{graphicx}
\usepackage{needspace}
\usepackage[svgnames]{xcolor}
\usepackage{xspace}
\DeclareUnicodeCharacter{00AB}{\og{}}
\DeclareUnicodeCharacter{00B0}{\degree{}}
\DeclareUnicodeCharacter{00BB}{\fg{}}
\DeclareUnicodeCharacter{20AC}{\euro{}}
\DeclareUnicodeCharacter{2264}{\leqslant}
\DeclareUnicodeCharacter{2265}{\geqslant}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -55,16 +63,6 @@
numberstyle=\ttfamily
}
\lstdefinestyle{customasm}{
% numbers=left,
belowcaptionskip=1\baselineskip,
frame=L,
xleftmargin=\parindent,
language=[x86masm]Assembler,
basicstyle=\footnotesize\ttfamily,
commentstyle=\itshape\color{purple!40!black},
}
\lstset{escapechar=@,style=customc}
%%==============================================================================

View File

@ -8,13 +8,20 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{marvosym}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{eurosym}
\DeclareUnicodeCharacter{20AC}{\euro{}}
\usepackage{gensymb}
\usepackage{marvosym}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{needspace}
\usepackage[svgnames]{xcolor}
\usepackage{xspace}
\DeclareUnicodeCharacter{00AB}{\og{}}
\DeclareUnicodeCharacter{00B0}{\degree{}}
\DeclareUnicodeCharacter{00BB}{\fg{}}
\DeclareUnicodeCharacter{2264}{\leqslant}
\DeclareUnicodeCharacter{2265}{\geqslant}
\DeclareUnicodeCharacter{20AC}{\euro{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%==============================================================================

View File

@ -13,7 +13,6 @@ pacman-color
rxvt-unicode-patched
submarine
supermeatboy
swi-prolog
trash-cli
worldofgoo
yaourt

View File

@ -96,6 +96,7 @@ iptables
iputils
jfsutils
kmod
latex2rtf
less
lesspipe
lib32-alsa-lib
@ -171,6 +172,7 @@ procps-ng
psmisc
pwgen
python2-dbus
python2-gobject
ranger
reiserfsprogs
rtorrent
@ -184,7 +186,6 @@ strace
submarine
sudo
supermeatboy
swi-prolog
sxiv
sysfsutils
syslinux

View File

@ -132,6 +132,7 @@ gnumeric
gnupg
gnuplot
gnutls
gobject-introspection
goffice
gpgme
gpm
@ -198,6 +199,7 @@ kmod
krb5
ladspa
lame
latex2rtf
lcms
lcms2
ldns
@ -391,6 +393,7 @@ lsof
ltrace
lua
lua51
lua-lgi
lvm2
lzo2
m4
@ -477,13 +480,18 @@ pth
pwgen
pyalpm
pygobject2-devel
pygobject-devel
pygtk
python
python2
python2-beaker
python2-cairo
python2-dbus
python2-distribute
python2-gobject
python2-gobject2
python2-mako
python2-markupsafe
python2-notify
python-dbus-common
python-pyelftools

View File

@ -4,7 +4,6 @@ babel
beamer
bigfoot
carlisle
cm-super
collection-basic
colortbl
ec
@ -36,6 +35,7 @@ oberdiek
pdftex-def
pgf
scheme-minimal
tabulary
texinfo
texlive-common
texlive-docindex

View File

@ -65,8 +65,8 @@ alias grep='grep --color=auto'
# WantedBy=multi-user.target
if [ -n "$(command -v emacs)" ]; then
alias em='emacsclient -a "" -t'
# alias emacs-reload="emacsclient -e '(kill-emacs)' >/dev/null 2>&1; emacs --daemon"
alias emacs-reload="sudo systemctl restart emacs@$USER"
alias emacs-reload="emacsclient -e '(kill-emacs)' >/dev/null 2>&1; emacs --daemon"
# alias emacs-reload="sudo systemctl restart emacs@$USER"
fi
# List desktop applications.