Emacs: some improvement for TeX support.

master
Ambrevar 2012-10-12 22:02:52 +02:00
parent 52daab1872
commit 1770b88e70
85 changed files with 999 additions and 14 deletions

View File

@ -76,6 +76,8 @@
("chai" "je sais" nil 1) ("chai" "je sais" nil 1)
("chq" "chaque" nil 1) ("chq" "chaque" nil 1)
("chui" "je suis" nil 1) ("chui" "je suis" nil 1)
("cmd" "commande" nil 1)
("cmds" "commandes" nil 1)
("cmt" "comment" nil 1) ("cmt" "comment" nil 1)
("coeur" "cœur" nil 1) ("coeur" "cœur" nil 1)
("coeurs" "cœurs" nil 1) ("coeurs" "cœurs" nil 1)
@ -175,6 +177,8 @@
("progs" "programmes" nil 1) ("progs" "programmes" nil 1)
("ptt" "petit" nil 1) ("ptt" "petit" nil 1)
("pê" "peut-être" nil 2) ("pê" "peut-être" nil 2)
("qcq" "quelconque" nil 1)
("qcqs" "quelconques" nil 1)
("qd" "quand" nil 4) ("qd" "quand" nil 4)
("qq" "quelque" nil 1) ("qq" "quelque" nil 1)
("qqch" "quelque chose" nil 1) ("qqch" "quelque chose" nil 1)

View File

@ -1,3 +1,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; MAIN
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;============================================================================== ;;==============================================================================
;; Bindings ;; Bindings
;;============================================================================== ;;==============================================================================

View File

@ -1,5 +1,5 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; MODE OPTIONS ;; MODES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;============================================================================== ;;==============================================================================
@ -128,7 +128,7 @@
(setq latex-run-command "pdflatex") (setq latex-run-command "pdflatex")
;; TODO: display in TeX/LaTeX only. ;; TODO: display in TeX/LaTeX only.
(defun tex-view-pdf () (defun tex-pdf-view ()
(interactive) (interactive)
(shell-command (shell-command
(concat "zathura --fork " (concat "zathura --fork "
@ -137,7 +137,15 @@
) )
) )
(defun tex-compress-pdf () ;; Replace tex-view
(define-key my-keys-minor-mode-map (kbd "C-c C-v") 'tex-pdf-view)
;; Save automatically before compiling.
(define-key my-keys-minor-mode-map (kbd "C-c C-f") (lambda () (interactive)
(save-buffer)
(tex-file)
))
(defun tex-pdf-compress ()
(interactive) (interactive)
(defvar file-noext (replace-regexp-in-string ".tex" "" (file-name-nondirectory buffer-file-name))) (defvar file-noext (replace-regexp-in-string ".tex" "" (file-name-nondirectory buffer-file-name)))
(defvar file (replace-regexp-in-string "tex" "pdf" (file-name-nondirectory buffer-file-name))) (defvar file (replace-regexp-in-string "tex" "pdf" (file-name-nondirectory buffer-file-name)))

View File

@ -1 +1 @@
text-mode tex-mode

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : abstract
# group: sections
# name : \abstract
# --
\begin{abstract}
$0
\end{abstract}

View File

@ -0,0 +1,137 @@
# -*- mode: snippet -*-
# contributor : Pierre Neidhardt <ambrevar at gmail dot com> 2012-04-27
# key: beamer
# group: skeleton
# name: \documentclass{beamer} ...
# --
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{beamer}
%% \documentclass[xcolor=latex,svgnames,table]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{eurosym}
\DeclareUnicodeCharacter{20AC}{\euro{}}
% \usepackage[T1]{fontenc}
% \usepackage{lmodern}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{${1:Title}}
\subtitle{${2:Subtitle}}
\author{${3:\textcolor{structure.fg!60!white}{P.~Neidhardt}}}
\institute{\textcolor{sidebarSection}{${4:Institute}}}
\let\latexbak\LaTeX
\renewcommand{\LaTeX}{{\rm \latexbak}}
\let\texbak\TeX
\renewcommand{\TeX}{{\rm \texbak}}
\def\unix{\textsc{Unix}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Source code.
\usepackage{listings}
\lstdefinestyle{customc}{
% numbers=left,
belowcaptionskip=1\baselineskip,
frame=L,
xleftmargin=\parindent,
% framexleftmargin=\parindent,
language=C,
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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Beamer config
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Remove navigation bar.
\beamertemplatenavigationsymbolsempty
%% Colors
\colorlet{sidebarSection}{orange!100!black}
\colorlet{sidebarSub}{yellow!100!black}
%% Themes
\usecolortheme{whale}
%% Background
\setbeamertemplate{background canvas}[vertical shading][top=white,bottom=white]
%% Bars
\setbeamercolor{frametitle}{bg=black, fg=white}
\useoutertheme[height=0pt]{sidebar}
\setbeamertemplate{sidebar canvas left}[horizontal shading][left=white!40!black,right=black]
\setbeamercolor{author in sidebar}{fg=red}
\setbeamercolor{section in sidebar shaded}{fg= sidebarSection}
\setbeamercolor{subsection in sidebar shaded}{fg= sidebarSub}
\setbeamercolor{subsection in sidebar}{fg=white}
\setbeamercolor{title}{fg=white,bg=black}
\setbeamertemplate{title page}[default][colsep=-4bp,rounded=true,shadow=true]
%% Blocks
\setbeamertemplate{blocks}[rounded] [shadow=true]
\setbeamercolor{block title}{fg=white,bg=structure.fg!80!black}
\setbeamercolor{block body}{fg=black,bg=structure.bg}
%% Footline
\setbeamertemplate{footline}[page number]
%% Lists
%% default, triangle, circle, square, ball
\setbeamertemplate{itemize item}[ball]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Locale
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[frenchb]{babel}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\titlepage{}
\end{frame}
\def\ftitle{First Title}
\def\fsubtitle{First Subtitle}
\section{\ftitle}
\subsection{\fsubtitle}
\frame[shrink,containsverbatim]{
\frametitle{\ftitle}
\framesubtitle{\fsubtitle}
\begin{lstlisting}[caption=Hello world!]
int main(int argc, char** argv)
{
printf("Hello world\n");
return 0;
}
\end{lstlisting}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# contributor : Bjorn Reese <breese@users.sourceforge.net>
# key: begin
# group: environments
# name: \begin{environment} ... \end{environment}
# --
\begin{$1}
$0
\end{$1}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: bf
# group: font
# name: \textbf{ ... }
# --
\textbf{$1}$0

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: bib
# group: misc
# name: \bibliography
# --
\bibliographystyle{plain}
\bibliography{$1}$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Claudio Marforio <marforio@gmail.com>
# key: block
# group: environments
# name : \begin{*block} ... \end{*block}
# --
\begin{${1:$$(yas/choose-value '("block" "exampleblock" "alertblock"))}}{${2:Block Title}}
\end{$1}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: case
# group: math
# name: \begin{cases} ... \end{cases}
# --
\begin{cases}
$0 \\\\
\end{cases}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Pierre Neidhardt <ambrevar at gmail dot com>
# key: center
# group: environments
# name: \begin{center}
# --
\begin{center}
$0
\end{center}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : cha
# group: sections
# name : \chapter
# option: \label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
# --
\chapter{${1:name}}
$0

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : cha*
# group: sections
# name : \chapter*
# --
\chapter*{${1:name}}
$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor : Marcio M. Ribeiro <marcio.mr@gmail.com>
# key: cite
# group: references
# name : \cite
# --
\cite{${1:label$(unless yas/modified-p (reftex-citation nil 'dont-insert))}}$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : desc
# group: environments
# name : \begin{description} ... \end{description}
# --
\begin{description}
\item[$0]
\end{description}

View File

@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: doc
# name: \documentclass
# --
\documentclass[$2]{${1:$$(yas/choose-value '("article" "report" "book" "letter"))}}
\usepackage[utf8]{inputenc}
\usepackage{eurosym}
\DeclareUnicodeCharacter{20AC}{\euro{}}
\begin{document}
$0
\end{document}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: em
# group: font
# name: \emph{...}
# --
\emph{$1}$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: enum
# group: environments
# name : \begin{enumerate} ... \end{enumerate}
# --
\begin{enumerate}
\item $0
\end{enumerate}

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: eq
# group: math
# name: \begin{equation} ... \end{equation}
# option: \label{${1:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
# --
\begin{equation}
$0
\end{equation}

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: eqs
# group: math
# name: \begin{align} ... \end{align}
# --
\begin{${1:$$(yas/choose-value '("align" "align*" "multline" "gather" "subequations"))}}
\label{${2:label}}
$0
\end{$1}

View File

@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : fig
# group: environments
# name : \begin{figure} ... \end{figure}
# option: \label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
# --
\begin{figure}[htbp]
\centering
$0
\caption{${1:caption}}
\end{figure}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Claudio Marforio <marforio@gmail.com>
# key: frame
# group: environments
# name : \begin{frame} ... \end{frame}
# --
\begin{frame}{${1:Frame Title}}
\end{frame}

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : graphics
# name : \includegraphics
# --
\includegraphics[width=${1:\linewidth}]{${2:file}}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: it
# group: font
# name: \textit{}
# --
\textit{$1}$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : item
# group: environments
# name : \begin{itemize} ... \end{itemize}
# --
\begin{itemize}
\item $0
\end{itemize}

View File

@ -0,0 +1,8 @@
-*- mode: snippet -*-
# contributor : Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: lab
# group: references
# name : \label
# option: \label{${1:label$(unless yas/modified-p (reftex-label nil 'dont-insert))}}$0
# --
\label{$1}$0

View File

@ -0,0 +1,313 @@
# -*- mode: snippet -*-
# contributor : Xavier Danaux <xdanaux@gmail.com>
# contributor : Pierre Neidhardt <ambrevar at gmail dot com> 2012-09-10
# key: letter
# group: skeleton
# name: Modern Letter class
# --
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{marvosym}
\usepackage{eurosym}
\DeclareUnicodeCharacter{20AC}{\euro{}}
% \usepackage[T1]{fontenc}
% \usepackage{lmodern}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%==============================================================================
%% Localization
%%==============================================================================
%% Supported locales: en, fr.
\def\locale{en}
%%==============================================================================
%% Personal Information
%%==============================================================================
\def\firstname{Pierre}
\def\familyname{Neidhardt}
\def\street{}
\def\postcode{}
\def\city{}
\def\country{}
\def\mobile{\en{(+00) }00 00 00}
\def\phone{\en{(+00) }00 00 00}
\def\mail{}
% \def\institute{} %% Not used.
%%==============================================================================
%% Recipient Information
%%==============================================================================
%% Recipient gender. Can be male, female, org.
\def\gender{${2:male}}
%% Recipient
\def\recipientfirstname{${3:Firstname}}
\def\recipientfamilyname{${4:Familyname}}
\def\recipientinstitute{${5:Institute}}
\def\recipientstreet{${6:Street}}
\def\recipientcity{${7:City}}
\def\recipientpostcode{${8:Postcode}}
%%==============================================================================
%% Subject
%%==============================================================================
\def\subject{${9:Subject}}
%%==============================================================================
%% PDF Metadata
%%==============================================================================
\def\FileAuthor{\firstname{} \familyname}
\def\FileTitle{Letter}
\def\FileSubject{\subject{}}
% \def\FileKeyWords{\firstname{} \familyname, letter}
%%==============================================================================
%% General options
%%==============================================================================
\usepackage{eukdate}
% \usepackage{lipsum}
\usepackage{ifthen}
\usepackage[svgname]{xcolor}
%% print if not empty
\def\pine#1{\def\test{#1}\ifx\test\empty\relax\else #1\fi}
%% print #2 if not empty.
\def\pinex#1#2{\ifx#1\empty\relax\else #2\fi}
%% Language
\def\en #1{}
\def\fr #1{}
%% If strings are equal. Syntax:
\ifthenelse{\equal{\locale}{en}}{
\def\en #1{#1}}{}
\ifthenelse{\equal{\locale}{fr}}{
\def\fr #1{#1}}{}
%% Gender commands.
\def\male #1{}
\def\female #1{}
\def\org #1{}
\ifthenelse{\equal{\gender}{male}}{
\def\male #1{#1}}{}
\ifthenelse{\equal{\gender}{female}}{
\def\female #1{#1}}{}
\ifthenelse{\equal{\gender}{org}}{
\def\org #1{#1}}{}
\def\civility{%
\en{\male{M.}\female{Mrs.}}%
\fr{\male{Monsieur}\female{Madame}}%
}
%% Greetings toggle.
\def\greetings #1{}
\ifthenelse{
\equal{\gender}{org}
}{}{\def\greetings #1{#1}}
%% Compilation options
\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex]{graphicx}
\else
\usepackage[dvips]{graphicx}
\fi
%% Babel
\fr{\usepackage[frenchb]{babel}}
%% Day-of-week translation
\makeatletter
\fr{
\renewcommand\weekday{%
\ifcase\theeuk@date Samedi\or Dimanche\or Lundi\or
Mardi\or Mercredi\or Jeudi\or Vendredi\fi}
\newcommand\weekdaylower{%
\ifcase\theeuk@date samedi\or dimanche\or lundi\or
mardi\or mercredi\or jeudi\or vendredi\fi}
}
\makeatother
%% Layout
\usepackage[scale=0.8]{geometry}
% \en{\setlength{\parindent}{0pt}}
\fr{
\setlength{\parindent}{4ex}
}
\addtolength{\parskip}{6pt}
%% Width of the minipage used to display parts of text on the right.
\newlength{\mpwidth}
\addtolength{\mpwidth}{0.4\textwidth}
%% Remove page number
\pagestyle{empty}
%% Fonts
\renewcommand{\familydefault}{\sfdefault}
%% \let\emphtemp\emph
%% \renewcommand{\emph}[1]{{\rm\emphtemp{#1}}}
\let\latextemp\LaTeX
\renewcommand{\LaTeX}{{\rm \latextemp}}
\let\textemp\TeX
\renewcommand{\TeX}{{\rm \textemp}}
%% PDF Metadata
\ifpdf
\usepackage[]{hyperref}
\hypersetup{
pdfauthor = \FileAuthor,
pdftitle = \FileTitle,
pdfsubject = \FileSubject,
%% pdfkeywords = \FileKeyWords,
pdfcreator = \LaTeX,
pdfproducer = \LaTeX,
pdftex,
pdfborder=0,
breaklinks,
baseurl=http://,
pdfpagemode=None,
pdfstartview=XYZ,
pdfstartpage=1,
colorlinks=true,
urlcolor=black
}
\else
\usepackage[dvips]{hyperref}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%==============================================================================
%% Personal particulars
%%==============================================================================
\en{\hfill}
\begin{minipage}{\mpwidth}
\edef\fullname{\firstname{} \familyname{}}
\pinex{\fullname}{{\bfseries \fullname}
\vspace{0.5em}\\\\
}
\small\itshape%
\pinex{\street}{\street \\\\}
\pinex{\city}{\postcode{} \city\pinex{\country}{ -- \country{}}
\vspace{0.5em}\\\\
}
\pinex{\mobile}{\Mobilefone~\mobile \\\\}
\pinex{\phone}{\Telefon~\phone \\\\}
\pinex{\mail}{\Letter~\href{mailto:\mail}{\mail}}
\end{minipage}
\vspace{\baselineskip}
%%==============================================================================
%% Recipient particulars
%%==============================================================================
\en{\noindent}%
\fr{\hfill}%
\begin{minipage}{\mpwidth}
\edef\recipientfullname{\recipientfirstname{} \recipientfamilyname}
\pinex{\fullname}{{\bfseries \recipientfullname}
\\\\[0.5\baselineskip]
}
\pinex{\recipientinstitute}{\recipientinstitute{}
\\\\[0.5\baselineskip]
}
\pinex{\recipientcity}{
{\small\itshape
\recipientstreet{} \\\\
\pine{\recipientpostcode} \recipientcity{} \\\\
}
}
\end{minipage}
%%==============================================================================
%% Date
%%==============================================================================
\vfill
\vspace{1em}
\hfill
\begin{minipage}{\mpwidth}
\en{\today}
\fr{\city, le \weekdaylower\ \today}
\end{minipage}\\\\
%%==============================================================================
%% Object
%%==============================================================================
\pinex{\subject}{
\noindent
\textbf{\en{Object}\fr{Objet}~:}
\subject{}.
\vspace{1\baselineskip}
}
%%==============================================================================
%% Content
%%==============================================================================
\greetings{
\en{Dear}\fr{\male{Cher}\female{Chère}} \civility{} \recipientfamilyname,
}
\noindent
Common blah.
I thank you for your consideration; I am looking forward to hearing from you soon!
%%==============================================================================
%% Closing
%%==============================================================================
\vfill
\en{
Best regards.
%% Yours sincerely,
}
\fr{
%% Cordialement,
Veuillez agréer, \civility{}, l'expression de mes sentiments les meilleurs.
}
\vspace{\baselineskip}
\hfill
\begin{minipage}{\mpwidth}
\textbf{\firstname\ \familyname}\newline
%\includegraphics[scale=0.75]{signature_blue}
\end{minipage}
%%==============================================================================
%% P.S. & Attachment
%%==============================================================================
\vfill
%% \noindent{\em
%% \fr{Ci-joint~: Curriculum Vitæ}
%% \en{Attachment: Curriculum Vit\ae}
%% }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: lil
# group: environments
# name: \lstinline
# --
\lstinline @$1@$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: listing
# group: environments
# name: \begin{lstlisting}
# --
\begin{lstlisting}
$0
\end{lstlisting}

View File

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: matrix
# group: math
# name: \begin{matrix} ... \end{}
# --
\begin{${1:$$(yas/choose-value '("pmatrix" "bmatrix" "Bmatrix" "vmatrix" "Vmatrix" "smallmatrix"))}}
\label{${2:label}}
$0
\end{$1}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: minipage
# group: environments
# name: \begin{minipage}[position][width] ... \end{minipage}
# --
\begin{minipage}[${1:htbp}]{${2:1.0}${3:\linewidth}}
$0
\end{minipage}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: par
# group: sections
# name : \paragraph
# option: \label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
# --
\paragraph{${1:name}}
$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: parbox
# group: environments
# name: \parbox{...}
# --
\parbox[${1:htbp}]{${2:1.0}${3:\linewidth}}{
$0
}

View File

@ -0,0 +1,7 @@
-*- mode: snippet -*-
# contributor : Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: ref
# group: references
# name : \ref
# --
\ref{${1:label$(unless yas/modified-p (reftex-reference nil 'dont-insert))}}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: sc
# group: font
# name: \textsc{ ... }
# --
\textsc{$1}$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : sec
# group: sections
# name : \section
# option: \label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
# --
\section{${1:name}}
$0

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key : sec*
# group: sections
# name : \section*
# --
\section*{${1:name}}
$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: ssub
# group: sections
# name : \subsubsection
# option: \label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
# --
\subsubsection{${1:name}}
$0

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: ssub*
# group: sections
# name : \subsubsection*
# --
\subsubsection*{${1:name}}
$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: sub
# group: sections
# name : \subsection
# --
\subsection{${1:name}}
\label{${2:label}}
$0

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: subfig
# group: environments
# name : \subfigure
# --
\subfigure[${1:caption}]{
\label{${2:label}}
$0
}

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: sub*
# group: sections
# name : \subsection*
# --
\subsection*{${1:name}}
$0

View File

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: table
# group: environments
# name : \begin{table} ... \end{table}
# --
\begin{center}
\begin{tabular}{${1:format}}
$0
\end{tabular}
\end{center}

View File

@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: table
# group: environments
# name : \begin{table} ... \end{table}
# --
\begin{table}[htbp]
\centering
\begin{tabular}{${3:format}}
$0
\end{tabular}
\caption{${1:caption}}
\label{${2:label}}
\end{table}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: tss
# group: font
# name: \textsuperscript{ ... }
# --
\textsuperscript{$1}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: tt
# group: font
# name: \texttt{ ... }
# --
\texttt{$1}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: use
# group: misc
# name: \usepackage
# --
\usepackage[$2]{$1}$0

View File

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# contributor : Bjorn Reese <breese@users.sourceforge.net>
# contributor : Song Qiang <tsiangsung@gmail.com>
# key: verb
# group: environments
# name: \begin{verbatim} ... \end{verbatim}
# --
\begin{verbatim}
$0
\end{verbatim}

View File

@ -0,0 +1 @@
text-mode

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Mads D. Kristensen <madsdk@gmail.com>
# key: array
# group: math
# name : \begin{array} ... \end{array}
# --
\begin{array}{${1:format}}
$0
\end{array}

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: bf
# group: font
# name: bf
# --
{\bf $1}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: big
# group: math
# name: \bigl( ... \bigr)
# --
\\${1:$$(yas/choose-value '("big" "Big" "bigg" "Bigg"))}l( $0 \\$1r)

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: François Garillot <francois@garillot.net>
# key: bigop
# group: math
# name: \bigop_{n}^{}
# --
\\big${1:$$(yas/choose-value '("oplus" "otimes" "odot" "cup" "cap" "uplus" "sqcup" "vee" "wedge"))}_{$2}^{$3}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: binom
# group: math
# name: \binom{n}{k}
# --
\binom{${1:n}}{${2:k}}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: François Garillot <francois@garillot.net>
# key: coprod
# group: math
# name: \coprod_{n}^{}
# --
\coprod_{$1}^{$2}$0

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: em
# group: font
# name: \emph{...}
# --
{\em $1}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
# key: foot
# group: environment
# name: \footnote{...}
# --
\footnote{$1}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: frac
# group: math
# name: \frac{numerator}{denominator}
# --
\frac{${1:numerator}}{${2:denominator}}$0

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: href
# group: environments
# name: \href{url}{text}
# --
\href{${1:url}}{${2:text}}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: int
# group: math
# name: \int_{n}^{}
# --
\\${1:$$(yas/choose-value '("int" "oint" "iint" "iiint" "iiiint" "idotsint"))}{$2}^{$3}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: it
# group: font
# name: \textit{}
# --
{\it $1}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: François Garillot <francois@garillot.net>
# key: lim
# group: math
# name: \lim_{n}
# --
\lim_{$1}$0

View File

@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# contributor : Pierre Neidhardt <ambrevar at gmail dot com> 2012-10-12
# key: main
# --
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input eplain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
$0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bye
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: François Garillot <francois@garillot.net>
# key: prod
# group: math
# name: \prod_{n}^{}
# --
\prod_{$1}^{$2}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: sum
# group: math
# name: \sum_{n}^{}
# --
\sum_{$1}^{$2}$0

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: tt
# group: font
# name: \texttt{ ... }
# --
{\tt $1}$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: url
# group: environments
# name: \url
# --
\url{${1:$$(yas/choose-value '("http" "ftp"))}://${2:address}}$0

View File

@ -16,7 +16,6 @@ awesome
bash bash
bash-completion bash-completion
bashmount bashmount
binutils
bison bison
bzip2 bzip2
calc calc
@ -36,7 +35,6 @@ dhcpcd
diffutils diffutils
djvulibre djvulibre
dosfstools dosfstools
doxygen
dropbox dropbox
dropbox-cli dropbox-cli
e2fsprogs e2fsprogs
@ -60,8 +58,7 @@ fortune-mod-tbbt
fossil fossil
gaupol gaupol
gawk gawk
gcc gcc-multilib
gcc-libs
gcolor2 gcolor2
gdb gdb
gettext gettext

View File

@ -11,6 +11,7 @@ apr
apr-util apr-util
archlinux-keyring archlinux-keyring
arch-wiki-lite arch-wiki-lite
asciidoc
aspell aspell
aspell-en aspell-en
aspell-fr aspell-fr
@ -29,7 +30,7 @@ babl
bash bash
bash-completion bash-completion
bc bc
binutils binutils-multilib
bison bison
boost-libs boost-libs
bzip2 bzip2
@ -70,8 +71,9 @@ diffutils
dirmngr dirmngr
djvulibre djvulibre
dnssec-anchors dnssec-anchors
docbook-xml
docbook-xsl
dosfstools dosfstools
doxygen
dri2proto dri2proto
e2fsprogs e2fsprogs
elfutils elfutils
@ -111,8 +113,8 @@ fuse
gaupol gaupol
gawk gawk
gc gc
gcc gcc-libs-multilib
gcc-libs gcc-multilib
gcolor2 gcolor2
gconf gconf
gd gd
@ -209,6 +211,8 @@ lcms2
ldns ldns
less less
lesspipe lesspipe
lib32-gcc-libs
lib32-glibc
libarchive libarchive
libass libass
libassuan libassuan
@ -427,6 +431,8 @@ perl
perl-digest-sha1 perl-digest-sha1
perl-error perl-error
perl-locale-gettext perl-locale-gettext
perl-test-pod
perl-yaml-syck
pinentry pinentry
pixman pixman
pkg-config pkg-config
@ -560,6 +566,7 @@ xfsprogs
xineramaproto xineramaproto
xkeyboard-config xkeyboard-config
xmlrpc-c xmlrpc-c
xmlto
xorg-bdftopcf xorg-bdftopcf
xorg-fonts-alias xorg-fonts-alias
xorg-fonts-encodings xorg-fonts-encodings

8
.save
View File

@ -154,9 +154,13 @@ FILELIST=(${FILELIST[*]} ".cmus/autosave")
## Emacs ## Emacs
FILELIST=(${FILELIST[*]} ".emacs") FILELIST=(${FILELIST[*]} ".emacs")
FILELIST=(${FILELIST[*]} ".emacs.d/plugins")
FILELIST=(${FILELIST[*]} ".emacs.d/snippets")
FILELIST=(${FILELIST[*]} ".emacs.d/abbrev_defs") FILELIST=(${FILELIST[*]} ".emacs.d/abbrev_defs")
FILELIST=(${FILELIST[*]} ".emacs.d/functions.el")
FILELIST=(${FILELIST[*]} ".emacs.d/main.el")
FILELIST=(${FILELIST[*]} ".emacs.d/modes.el")
FILELIST=(${FILELIST[*]} ".emacs.d/plugins.el")
FILELIST=(${FILELIST[*]} ".emacs.d/snippets")
FILELIST=(${FILELIST[*]} ".emacs.d/theme.el")
## GTK ## GTK
FILELIST=(${FILELIST[*]} ".gtkrc-2.0") FILELIST=(${FILELIST[*]} ".gtkrc-2.0")