vim skel and tex things

This commit is contained in:
Frank Villaro-Dixon 2016-01-22 17:39:58 +01:00
parent db35ce6048
commit da59a36eb9
4 changed files with 1912 additions and 0 deletions

View file

@ -0,0 +1,78 @@
\RequirePackage{xkeyval}
\RequirePackage{tikz}
\RequirePackage{amssymb}
\define@key{boxedtheorem}{titlecolor}{\def\titlecolor{#1}}
\define@key{boxedtheorem}{titlebackground}{\def\titlebackground{#1}}
\define@key{boxedtheorem}{background}{\def\background{#1}}
\define@key{boxedtheorem}{titleboxcolor}{\def\titleboxcolor{#1}}
\define@key{boxedtheorem}{boxcolor}{\def\boxcolor{#1}}
\define@key{boxedtheorem}{thcounter}{\def\thcounter{#1}}
\define@key{boxedtheorem}{size}{\def\size{#1}}
\presetkeys{boxedtheorem}{titlecolor = black, titlebackground = white, background = white,%
titleboxcolor = black, boxcolor = black, thcounter=, size = .9\textwidth}{}
\newcommand{\couleurs}[1][]{%
\setkeys{boxedtheorem}{#1}
\tikzstyle{fancytitle} =[draw=\titleboxcolor, rounded corners, fill=\titlebackground,
text= \titlecolor]
\tikzstyle{mybox} = [draw=\boxcolor, fill=\background, very thick,
rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
}
%Commande générique pour faire un joli encadré
\newsavebox{\boiboite}
\newcommand{\titre}{Titre}
\newenvironment{boite}[2][]%
{%
\renewcommand{\titre}{#2}
\couleurs[#1]
\begin{lrbox}{\boiboite}%
\begin{minipage}[!h]{\size}
}%
{%
\end{minipage}
\end{lrbox}
\begin{center}
\begin{tikzpicture}
\node [mybox] (box){\usebox{\boiboite}};
\node[fancytitle, right=10pt] at (box.north west) {\titre};
\end{tikzpicture}
\end{center}
}
\newcommand{\newboxedtheorem}[4][]{%
\couleurs[#1]
\@ifnotempty{#4}{%
\@ifundefined{the#4}{\@ifundefined{\thcounter}{\newcounter{#4}}{%
\newcounter{#4}[\thcounter ] } } { }%
}
\newenvironment{#2}[1][]{%
\@ifnotempty{#4}{\refstepcounter{#4}}
\begin{boite}[#1]{\textbf{#3\@ifnotempty{#4}{ \csname the#4\endcsname}}\@ifnotempty{##1}{
(##1)}\textbf{.}}
}%
{%
\end{boite}
}
}
%http://snouffy.free.fr/blog-fr/index.php/post/2009/09/30/Des-jolies-boites-en-LaTeX-pour-encadrer-les-th%C3%A9or%C3%A8mes
%\newboxedtheorem[boxcolor=orange, background=blue!5, titlebackground=blue!20,
%titleboxcolor = black]{theo}{Théorème}{test}
%%%%Document
% \begin{theo}[Loi des grands nombres]
% Soit $(X_n)_{n\in \mathbb{N}}$ une suite de variables aléatoires réelles
% indépendantes identiquement distribuées telles que $X_1 \in L^1$. Alors :
% $$\frac{1}{n} \sum_{i=1}^n X_i \overset{\textnormal{p.s.}}{\longrightarrow}
% \mathbb{E} (X_1) .$$
% \end{theo}

View file

@ -0,0 +1,179 @@
%%
%% This is file `tracklang.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tracklang.dtx (with options: `tracklang.sty,package')
%%
%% tracklang.dtx
%% Copyright 2014 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license of (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainer of this work is Nicola Talbot.
%%
%% This work consists of the files tracklang.dtx and tracklang.ins and the derived files tracklang.sty, tracklang.tex.
%%
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tracklang}[2014/11/21 v1.1 (NLCT) Track Languages]
\providecommand*{\@tracklang@declareoption}[1]{%
\DeclareOption{#1}{\TrackPredefinedDialect{#1}}%
}
\input{tracklang}
\let\@tracklang@declaredoptions\@declaredoptions
\ProcessOptions
\let\@tracklang@declareoption\@gobble
\ifx\@tracklang@languages\@empty
\@ifundefined{bbl@loaded}%
{%
\@ifundefined{trans@languages}
{%
\@ifpackageloaded{ngerman}%
{%
\@tracklang@add@ngerman
}%
{%
\@ifpackageloaded{polyglossia}
{%
\@for\this@language:=albanian,amharic,arabic,armenian,asturian,%
bahasai,bahasam,basque,bengali,brazil,breton,bulgarian,%
catalan,coptic,croatian,czech,danish,divehi,dutch,english,%
esperanto,estonian,farsi,finnish,french,friulan,galician,%
german,greek,hebrew,hindi,icelandic,interlingua,irish,%
italian,kannada,lao,latin,latvian,lithuanian,lsorbian,%
magyar,malayalam,marathi,nko,norsk,nynorsk,occitan,%
piedmontese,polish,portuges,romanian,romansh,russian,%
samin,sanskrit,scottish,serbian,slovak,slovenian,spanish,%
swedish,syriac,tamil,telugu,thai,tibetan,turkish,turkmen,%
ukrainian,urdu,usorbian,vietnamese,welsh\do{%
\@ifundefined{\this@language @loaded}%
{}%
{%
\@ifundefined{@tracklang@add@\this@language}%
{%
\PackageWarning{tracklang}%
{Adding unknown language `\this@language'}%
\AddTrackedLanguage\this@language
}%
{%
\@nameuse{@tracklang@add@\this@language}%
}%
}%
}%
}%
{%
\@ifpackageloaded{babel}
{%
\PackageInfo{tracklang}{babel loaded but
\string\bb@loaded\space not defined. Will attempt
to track known languages.}%
\@for\this@language:=\@tracklang@declaredoptions\do{%
\@ifundefined{captions\this@language}%
{}%
{\@nameuse{@tracklang@add@\this@language}}%
}%
}%
{}%
}%
}%
}%
{%
\let\@tracklang@add@Acadian\@tracklang@add@acadian
\let\@tracklang@add@French\@tracklang@add@french
\let\@tracklang@add@Afrikaans\@tracklang@add@afrikaans
\let\@tracklang@add@Dutch\@tracklang@add@dutch
\let\@tracklang@add@AmericanEnglish\@tracklang@add@american
\let\@tracklang@add@Austrian\@tracklang@add@austrian
\@namedef{@tracklang@add@Austrian1997}{\@tracklang@add@naustrian}
\let\@tracklang@add@Bahasa\@tracklang@add@bahasa
\let\@tracklang@add@Basque\@tracklang@add@basque
\let\@tracklang@add@Brazilian\@tracklang@add@brazil
\let\@tracklang@add@Portuguese\@tracklang@add@portuguese
\let\@tracklang@add@Breton\@tracklang@add@breton
\let\@tracklang@add@BritishEnglish\@tracklang@add@british
\let\@tracklang@add@Bulgarian\@tracklang@add@bulgarian
\let\@tracklang@add@Canadian\@tracklang@add@canadian
\let\@tracklang@add@Canadien\@tracklang@add@canadien
\let\@tracklang@add@Catalan\@tracklang@add@catalan
\let\@tracklang@add@Croatian\@tracklang@add@croatian
\let\@tracklang@add@Czech\@tracklang@add@czech
\let\@tracklang@add@Danish\@tracklang@add@danish
\let\@tracklang@add@Dutch\@tracklang@add@dutch
\let\@tracklang@add@English\@tracklang@add@english
\let\@tracklang@add@Esperanto\@tracklang@add@esperanto
\let\@tracklang@add@Estonian\@tracklang@add@estonian
\let\@tracklang@add@Finnish\@tracklang@add@finnish
\let\@tracklang@add@French\@tracklang@add@french
\let\@tracklang@add@Galician\@tracklang@add@galician
\let\@tracklang@add@German\@tracklang@add@german
\@namedef{@tracklang@add@German1997}{\@tracklang@add@ngerman}
\let\@tracklang@add@Greek\@tracklang@add@greek
\let\@tracklang@add@Polutoniko\@tracklang@add@polutoniko
\let\@tracklang@add@Hebrew\@tracklang@add@hebrew
\let\@tracklang@add@Hungarian\@tracklang@add@hungarian
\let\@tracklang@add@Icelandic\@tracklang@add@icelandic
\let\@tracklang@add@Irish\@tracklang@add@irish
\let\@tracklang@add@Italian\@tracklang@add@italian
\let\@tracklang@add@Latin\@tracklang@add@latin
\let\@tracklang@add@LowerSorbian\@tracklang@add@lowersorbian
\let\@tracklang@add@Magyar\@tracklang@add@magyar
\let\@tracklang@add@Nynorsk\@tracklang@add@nynorsk
\let\@tracklang@add@Norsk\@tracklang@add@norsk
\let\@tracklang@add@Polish\@tracklang@add@polish
\let\@tracklang@add@Portuguese\@tracklang@add@portuguese
\let\@tracklang@add@Romanian\@tracklang@add@romanian
\let\@tracklang@add@Russian\@tracklang@add@russian
\let\@tracklang@add@Scottish\@tracklang@add@scottish
\let\@tracklang@add@Serbian\@tracklang@add@serbian
\let\@tracklang@add@Slovak\@tracklang@add@slovak
\let\@tracklang@add@Slovene\@tracklang@add@slovene
\let\@tracklang@add@Spanish\@tracklang@add@spanish
\let\@tracklang@add@Swedish\@tracklang@add@swedish
\let\@tracklang@add@Turkish\@tracklang@add@turkish
\let\@tracklang@add@Ukrainian\@tracklang@add@ukrainian
\let\@tracklang@add@UpperSorbian\@tracklang@add@uppersorbian
\let\@tracklang@add@Welsh\@tracklang@add@welsh
\@for\this@language:=\trans@languages\do{%
\@ifundefined{@tracklang@add@\this@language}{}%
{\@nameuse{@tracklang@add@\this@language}}%
}%
}%
}%
{%
\@for\this@language:=\bbl@loaded\do{%
\@ifundefined{@tracklang@add@\this@language}%
{%
\PackageWarning{tracklang}{Adding unknown language `\this@language'}%
\AddTrackedLangage{\this@language}%
}%
{\@nameuse{@tracklang@add@\this@language}}%
}%
}
\fi
\endinput
%%
%% End of file `tracklang.sty'.

File diff suppressed because it is too large Load diff

6
vim/skeletons/skel.js Normal file
View file

@ -0,0 +1,6 @@
/* <+FILENAME+>
* <+DESCRIPTION+>
* Copyright Frank Villaro-Dixon, BSD Simplified, 2014
*/