Compare commits
14 Commits
465a589aee
...
algo
| Author | SHA1 | Date | |
|---|---|---|---|
| 0498982439 | |||
| 2c4d7064dc | |||
| 8d9fabf86a | |||
| 0089c8b3ad | |||
| 6cc6f5c439 | |||
| 857e0d9ffa | |||
| 949e648aad | |||
| 032899e6d8 | |||
| c79e6bd64d | |||
| 7c65f2d920 | |||
| fbed6d37dd | |||
| af9ca5317b | |||
| c4eed2e86b | |||
| abfe14ad13 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -40,3 +40,4 @@ Thumbs.db
|
|||||||
#############
|
#############
|
||||||
SIunits
|
SIunits
|
||||||
exc_*
|
exc_*
|
||||||
|
dev/
|
||||||
|
|||||||
BIN
algo/.algo.sty.swp
Normal file
BIN
algo/.algo.sty.swp
Normal file
Binary file not shown.
18
algo/algo-example.tex
Normal file
18
algo/algo-example.tex
Normal 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
45
algo/algo.sty
Normal 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
BIN
algo/build/algo-example.pdf
Normal file
Binary file not shown.
@@ -70,6 +70,7 @@
|
|||||||
\RequirePackage{array}
|
\RequirePackage{array}
|
||||||
\RequirePackage{tabularx}
|
\RequirePackage{tabularx}
|
||||||
\RequirePackage{multicol}
|
\RequirePackage{multicol}
|
||||||
|
\RequirePackage{multirow}
|
||||||
|
|
||||||
% mise en page
|
% mise en page
|
||||||
\RequirePackage{varwidth}
|
\RequirePackage{varwidth}
|
||||||
@@ -94,11 +95,11 @@
|
|||||||
%% lh{largeur} : gauche - haut
|
%% lh{largeur} : gauche - haut
|
||||||
%\newcolumntype{lh}[1]{>{\raggedright}p{#1}}
|
%\newcolumntype{lh}[1]{>{\raggedright}p{#1}}
|
||||||
% % ch{largeur} : centre - haut
|
% % ch{largeur} : centre - haut
|
||||||
%\newcolumntype{ch}[1]{>{\centering\arraybackslash}p{#1}}
|
% \newcolumntype{H}[1]{>{\centering\arraybackslash}p{#1}}
|
||||||
%% rh{largeur} : droite - haut
|
%% rh{largeur} : droite - haut
|
||||||
%\newcolumntype{rh}[1]{>{\raggedleft}p{#1}}
|
%\newcolumntype{rh}[1]{>{\raggedleft}p{#1}}
|
||||||
% % lc{largeur} : gauche - centre
|
% % lc{largeur} : gauche - centre
|
||||||
%\newcolumntype{lc}[1]{>{\raggedright}m{#1}}
|
% \newcolumntype{N}[1]{>{\raggedright}m{#1}}
|
||||||
% % cc{largeur} : centre - centre
|
% % cc{largeur} : centre - centre
|
||||||
% \newcolumntype{M}[1]{ >{\centering\arraybackslash} m{#1} }
|
% \newcolumntype{M}[1]{ >{\centering\arraybackslash} m{#1} }
|
||||||
%% rc{largeur} : droite - centre
|
%% rc{largeur} : droite - centre
|
||||||
|
|||||||
@@ -359,7 +359,11 @@
|
|||||||
\subsection{#1}
|
\subsection{#1}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
% text ghosting
|
||||||
|
=======
|
||||||
% % text ghosting
|
% % text ghosting
|
||||||
|
>>>>>>> master
|
||||||
% \NewDocumentCommand \ghost { } {%
|
% \NewDocumentCommand \ghost { } {%
|
||||||
% \color{white}
|
% \color{white}
|
||||||
% }
|
% }
|
||||||
|
|||||||
Reference in New Issue
Block a user