Compare commits

...

14 Commits

7 changed files with 74 additions and 5 deletions

1
.gitignore vendored
View File

@@ -40,3 +40,4 @@ Thumbs.db
#############
SIunits
exc_*
dev/

BIN
algo/.algo.sty.swp Normal file

Binary file not shown.

18
algo/algo-example.tex Normal file
View File

@@ -0,0 +1,18 @@
\documentclass[10pt,a4paper]{article}
\usepackage{commun}
\usepackage{algo}
\begin{document}
\begin{algobox}
\vars{}{}
\set{x}{2}
\debut
\fin
\end{algobox}
\end{document}

45
algo/algo.sty Normal file
View File

@@ -0,0 +1,45 @@
%%%
%%%
%%% Extensions : algo.sty
%%% Version : 1.0
%%% Date : 01/01/17
%%%
%%% Auteur : Jeff LANCE
%%%
%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{algo}[2017/01/01 Ajout d'environnement au package
algorithmicx, v1.0]
%-- extensions
% PERSONNELLES
% commun: contient des définitions et extensions de base pour tout.
% \RequirePackage{commun}
% ALGORITHMIE
\RequirePackage{algpseudocode,algorithm,algorithmicx}
%-- %
\newfontfamily\UbuntuMono[Ligatures=TeX]{ubuntumono}
% AlgoBox
\algnewcommand{\set[2]{\State #1 \textbf{PREND\_LA\_VALEUR} #2}
\algnewcommand{\vars}[2]{\State \textbf{VARIABLES}}
\NewDocumentEnvironment{algobox}{ }{%begin
\UbuntuMono
% \algsetblockx[variables]{bVARS}{eVARS}{}{1cm}{\textbf{VARIABLES}}{}
% \algblockx[traitement]{debut}{fin}{\textbf{\UbuntuMono DEBUT\_ALGORITHME}}{\textbf{\UbuntuMono FIN\_ALGORITHME}}
\algsetblockx[traitement]{debut}{fin}{}{1cm}{\textbf{DEBUT\_ALGORITHME}}{\textbf{FIN\_ALGORITHME}}
% \algnewcommand{\PREND}[2]{\State #1 \textbf{PREND\_LA\_VALEUR} #2}
\begin{algorithmic}
}{%end
\end{algorithmic}
}

BIN
algo/build/algo-example.pdf Normal file

Binary file not shown.

View File

@@ -70,6 +70,7 @@
\RequirePackage{array}
\RequirePackage{tabularx}
\RequirePackage{multicol}
\RequirePackage{multirow}
% mise en page
\RequirePackage{varwidth}
@@ -94,11 +95,11 @@
%% lh{largeur} : gauche - haut
%\newcolumntype{lh}[1]{>{\raggedright}p{#1}}
% % ch{largeur} : centre - haut
%\newcolumntype{ch}[1]{>{\centering\arraybackslash}p{#1}}
% \newcolumntype{H}[1]{>{\centering\arraybackslash}p{#1}}
%% rh{largeur} : droite - haut
%\newcolumntype{rh}[1]{>{\raggedleft}p{#1}}
% % lc{largeur} : gauche - centre
%\newcolumntype{lc}[1]{>{\raggedright}m{#1}}
% \newcolumntype{N}[1]{>{\raggedright}m{#1}}
% % cc{largeur} : centre - centre
% \newcolumntype{M}[1]{ >{\centering\arraybackslash} m{#1} }
%% rc{largeur} : droite - centre

View File

@@ -359,7 +359,11 @@
\subsection{#1}
}
<<<<<<< HEAD
% text ghosting
=======
% % text ghosting
>>>>>>> master
% \NewDocumentCommand \ghost { } {%
% \color{white}
% }