parent
08afaed4f8
commit
da6611d4e6
|
@ -167,6 +167,37 @@
|
|||
)
|
||||
)
|
||||
|
||||
(defun tex-clean ()
|
||||
(interactive)
|
||||
(defvar file-noext (replace-regexp-in-string ".tex" "" (file-name-nondirectory buffer-file-name)))
|
||||
(shell-command
|
||||
(concat "rm -f "
|
||||
file-noext
|
||||
".aux "
|
||||
file-noext
|
||||
".idx "
|
||||
file-noext
|
||||
".ilg "
|
||||
file-noext
|
||||
".ind "
|
||||
file-noext
|
||||
".lof "
|
||||
file-noext
|
||||
".log "
|
||||
file-noext
|
||||
".nav "
|
||||
file-noext
|
||||
".out "
|
||||
file-noext
|
||||
".snm "
|
||||
file-noext
|
||||
".tns "
|
||||
file-noext
|
||||
".toc "
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
;; ;; Add '--shell-escape' switch to compilation command (useful for using GnuPlot from TikZ)
|
||||
;; (eval-after-load "tex"
|
||||
;; '(setcdr (assoc "LaTeX" TeX-command-list)
|
||||
|
|
|
@ -1 +1 @@
|
|||
tex-mode
|
||||
common
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
\usepackage[utf8]{inputenc}
|
||||
\usepackage{eurosym}
|
||||
\DeclareUnicodeCharacter{20AC}{\euro{}}
|
||||
\DeclareUnicodeCharacter{00AB}{\og{}}
|
||||
\DeclareUnicodeCharacter{00BB}{\fg{}}
|
||||
% \usepackage[T1]{fontenc}
|
||||
% \usepackage{lmodern}
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key : abstract
|
||||
# group: sections
|
||||
# name : \abstract
|
||||
# --
|
||||
\begin{abstract}
|
||||
$0
|
||||
\end{abstract}
|
|
@ -1,137 +0,0 @@
|
|||
# -*- 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}
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
@ -1,10 +0,0 @@
|
|||
# -*- 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}
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: bf
|
||||
# group: font
|
||||
# name: \textbf{ ... }
|
||||
# --
|
||||
\textbf{$1}$0
|
|
@ -1,8 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: bib
|
||||
# group: misc
|
||||
# name: \bibliography
|
||||
# --
|
||||
\bibliographystyle{plain}
|
||||
\bibliography{$1}$0
|
|
@ -1,9 +0,0 @@
|
|||
# -*- 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}
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: case
|
||||
# group: math
|
||||
# name: \begin{cases} ... \end{cases}
|
||||
# --
|
||||
\begin{cases}
|
||||
$0 \\\\
|
||||
\end{cases}
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Pierre Neidhardt <ambrevar at gmail dot com>
|
||||
# key: center
|
||||
# group: environments
|
||||
# name: \begin{center}
|
||||
# --
|
||||
\begin{center}
|
||||
$0
|
||||
\end{center}
|
|
@ -1,9 +0,0 @@
|
|||
# -*- 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
|
|
@ -1,8 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key : cha*
|
||||
# group: sections
|
||||
# name : \chapter*
|
||||
# --
|
||||
\chapter*{${1:name}}
|
||||
$0
|
|
@ -1,7 +0,0 @@
|
|||
# -*- 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
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key : desc
|
||||
# group: environments
|
||||
# name : \begin{description} ... \end{description}
|
||||
# --
|
||||
\begin{description}
|
||||
\item[$0]
|
||||
\end{description}
|
|
@ -1,13 +0,0 @@
|
|||
# -*- 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}
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: em
|
||||
# group: font
|
||||
# name: \emph{...}
|
||||
# --
|
||||
\emph{$1}$0
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: enum
|
||||
# group: environments
|
||||
# name : \begin{enumerate} ... \end{enumerate}
|
||||
# --
|
||||
\begin{enumerate}
|
||||
\item $0
|
||||
\end{enumerate}
|
|
@ -1,10 +0,0 @@
|
|||
# -*- 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}
|
|
@ -1,10 +0,0 @@
|
|||
# -*- 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}
|
|
@ -1,12 +0,0 @@
|
|||
# -*- 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}
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Claudio Marforio <marforio@gmail.com>
|
||||
# key: frame
|
||||
# group: environments
|
||||
# name : \begin{frame} ... \end{frame}
|
||||
# --
|
||||
\begin{frame}{${1:Frame Title}}
|
||||
|
||||
\end{frame}
|
|
@ -1,6 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key : graphics
|
||||
# name : \includegraphics
|
||||
# --
|
||||
\includegraphics[width=${1:\linewidth}]{${2:file}}
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: it
|
||||
# group: font
|
||||
# name: \textit{}
|
||||
# --
|
||||
\textit{$1}$0
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key : item
|
||||
# group: environments
|
||||
# name : \begin{itemize} ... \end{itemize}
|
||||
# --
|
||||
\begin{itemize}
|
||||
\item $0
|
||||
\end{itemize}
|
|
@ -1,8 +0,0 @@
|
|||
-*- 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
|
|
@ -1,313 +0,0 @@
|
|||
# -*- 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}
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: lil
|
||||
# group: environments
|
||||
# name: \lstinline
|
||||
# --
|
||||
\lstinline @$1@$0
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: listing
|
||||
# group: environments
|
||||
# name: \begin{lstlisting}
|
||||
# --
|
||||
\begin{lstlisting}
|
||||
$0
|
||||
\end{lstlisting}
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Song Qiang <tsiangsung@gmail.com>
|
||||
# key: math
|
||||
# group: math
|
||||
# name: displaymath \[ ... \]
|
||||
# --
|
||||
\[
|
||||
$1
|
||||
\]
|
|
@ -1,11 +0,0 @@
|
|||
# -*- 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}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
# -*- 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}
|
|
@ -1,9 +0,0 @@
|
|||
# -*- 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
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: parbox
|
||||
# group: environments
|
||||
# name: \parbox{...}
|
||||
# --
|
||||
\parbox[${1:htbp}]{${2:1.0}${3:\linewidth}}{
|
||||
$0
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
-*- 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
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: sc
|
||||
# group: font
|
||||
# name: \textsc{ ... }
|
||||
# --
|
||||
\textsc{$1}$0
|
|
@ -1,9 +0,0 @@
|
|||
# -*- 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
|
|
@ -1,8 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key : sec*
|
||||
# group: sections
|
||||
# name : \section*
|
||||
# --
|
||||
\section*{${1:name}}
|
||||
$0
|
|
@ -1,9 +0,0 @@
|
|||
# -*- 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
|
|
@ -1,8 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: ssub*
|
||||
# group: sections
|
||||
# name : \subsubsection*
|
||||
# --
|
||||
\subsubsection*{${1:name}}
|
||||
$0
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: sub
|
||||
# group: sections
|
||||
# name : \subsection
|
||||
# --
|
||||
\subsection{${1:name}}
|
||||
\label{${2:label}}
|
||||
$0
|
|
@ -1,10 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: subfig
|
||||
# group: environments
|
||||
# name : \subfigure
|
||||
# --
|
||||
\subfigure[${1:caption}]{
|
||||
\label{${2:label}}
|
||||
$0
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: sub*
|
||||
# group: sections
|
||||
# name : \subsection*
|
||||
# --
|
||||
\subsection*{${1:name}}
|
||||
$0
|
|
@ -1,11 +0,0 @@
|
|||
# -*- 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}
|
|
@ -1,14 +0,0 @@
|
|||
# -*- 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}
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: tss
|
||||
# group: font
|
||||
# name: \textsuperscript{ ... }
|
||||
# --
|
||||
\textsuperscript{$1}$0
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: use
|
||||
# group: misc
|
||||
# name: \usepackage
|
||||
# --
|
||||
\usepackage[$2]{$1}$0
|
|
@ -1,11 +0,0 @@
|
|||
# -*- 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}
|
|
@ -1,6 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: bf
|
||||
# key: tbf
|
||||
# group: font
|
||||
# name: \textbf{ ... }
|
||||
# --
|
|
@ -1,6 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: em
|
||||
# key: tem
|
||||
# group: font
|
||||
# name: \emph{...}
|
||||
# --
|
|
@ -1,6 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: it
|
||||
# key: tit
|
||||
# group: font
|
||||
# name: \textit{}
|
||||
# --
|
|
@ -1,6 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: sc
|
||||
# key: tsc
|
||||
# group: font
|
||||
# name: \textsc{ ... }
|
||||
# --
|
|
@ -1,6 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: sl
|
||||
# key: tsl
|
||||
# group: font
|
||||
# name: \textsl{ ... }
|
||||
# --
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: tt
|
||||
# group: font
|
||||
# name: \texttt{ ... }
|
||||
# --
|
||||
\texttt{$1}$0
|
|
@ -1,6 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: tt
|
||||
# key: ttt
|
||||
# group: font
|
||||
# name: \texttt{ ... }
|
||||
# --
|
|
@ -1 +1 @@
|
|||
text-mode
|
||||
common
|
|
@ -1,9 +0,0 @@
|
|||
# -*- 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}
|
|
@ -1,6 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# key: bf
|
||||
# group: font
|
||||
# name: bf
|
||||
# name: {\bf }
|
||||
# --
|
||||
{\bf $1}$0
|
|
@ -1,7 +0,0 @@
|
|||
# -*- 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)
|
|
@ -1,7 +0,0 @@
|
|||
# -*- 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
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Song Qiang <tsiangsung@gmail.com>
|
||||
# key: binom
|
||||
# group: math
|
||||
# name: \binom{n}{k}
|
||||
# --
|
||||
\binom{${1:n}}{${2:k}}
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: François Garillot <francois@garillot.net>
|
||||
# key: coprod
|
||||
# group: math
|
||||
# name: \coprod_{n}^{}
|
||||
# --
|
||||
\coprod_{$1}^{$2}$0
|
|
@ -1,6 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# key: em
|
||||
# group: font
|
||||
# name: \emph{...}
|
||||
# name: {\em }
|
||||
# --
|
||||
{\em $1}$0
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Márcio M. Ribeiro <marcio.mr@gmail.com>
|
||||
# key: foot
|
||||
# group: environment
|
||||
# name: \footnote{...}
|
||||
# --
|
||||
\footnote{$1}$0
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Song Qiang <tsiangsung@gmail.com>
|
||||
# key: frac
|
||||
# group: math
|
||||
# name: \frac{numerator}{denominator}
|
||||
# --
|
||||
\frac{${1:numerator}}{${2:denominator}}$0
|
|
@ -1,6 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# key: href
|
||||
# group: environments
|
||||
# name: \href{url}{text}
|
||||
# --
|
||||
\href{${1:url}}{${2:text}}$0
|
|
@ -1,7 +0,0 @@
|
|||
# -*- 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
|
|
@ -2,6 +2,6 @@
|
|||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: it
|
||||
# group: font
|
||||
# name: \textit{}
|
||||
# name: {\it }
|
||||
# --
|
||||
{\it $1}$0
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: François Garillot <francois@garillot.net>
|
||||
# key: lim
|
||||
# group: math
|
||||
# name: \lim_{n}
|
||||
# --
|
||||
\lim_{$1}$0
|
|
@ -1,6 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Pierre Neidhardt <ambrevar at gmail dot com> 2012-10-12
|
||||
# key: main
|
||||
# name: tex-main
|
||||
# --
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\input eplain
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: François Garillot <francois@garillot.net>
|
||||
# key: prod
|
||||
# group: math
|
||||
# name: \prod_{n}^{}
|
||||
# --
|
||||
\prod_{$1}^{$2}$0
|
|
@ -1,7 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Song Qiang <tsiangsung@gmail.com>
|
||||
# key: sum
|
||||
# group: math
|
||||
# name: \sum_{n}^{}
|
||||
# --
|
||||
\sum_{$1}^{$2}$0
|
|
@ -1,6 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# key: tt
|
||||
# group: font
|
||||
# name: \texttt{ ... }
|
||||
# name: {\tt }
|
||||
# --
|
||||
{\tt $1}$0
|
|
@ -1,7 +0,0 @@
|
|||
# -*- 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
|
Loading…
Reference in New Issue