Feat: add qrcode support
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bertrand Benjamin 2020-08-12 22:26:04 +02:00
parent dbf0621ef2
commit fbd4ce6579
8 changed files with 6662 additions and 11 deletions

View File

@ -1,5 +1,6 @@
\documentclass[a4paper,10pt]{article} \documentclass[a4paper,10pt]{article}
\usepackage{myXsim} \usepackage{myXsim}
\usepackage{qrcode}
\title{TITRE} \title{TITRE}
\tribe{TRIBU} \tribe{TRIBU}
@ -31,7 +32,7 @@
\item \verb+\vectCoord+ $\vectCoord{\#1}{\#2}$ \item \verb+\vectCoord+ $\vectCoord{\#1}{\#2}$
\item \verb+\e+ $\e$ \item \verb+\e+ $\e$
\item \verb+\i+ $\i$ % \item \verb+\i+ $\i$
\item \verb+\coefBino+ $\coefBino{\#1}{\#2}$ \item \verb+\coefBino+ $\coefBino{\#1}{\#2}$
@ -148,5 +149,11 @@
print("Le tarif est ", x*0.8) print("Le tarif est ", x*0.8)
\end{lstlisting} \end{lstlisting}
\section{QRcode}
\verb+\usepackage{qrcode}+
\qrcode{phrase à coder}
\end{document} \end{document}

View File

@ -4,7 +4,6 @@
\RequirePackage{colorscheme} \RequirePackage{colorscheme}
\RequirePackage{base} \RequirePackage{base}
\RequirePackage{myhdr} \RequirePackage{myhdr}
\RequirePackage{hyperref}
\RequirePackage[no-files]{xsim} \RequirePackage[no-files]{xsim}

View File

@ -6,11 +6,6 @@
\RequirePackage{fancyhdr} \RequirePackage{fancyhdr}
% Definition etc
\RequirePackage{amsthm}
\newtheorem*{definition}{Définition}
\newtheorem*{Remarque}{Remarque}
\newcommand{\op@entete}{} \newcommand{\op@entete}{}
\newcommand{\op@typedoctmp}{} \newcommand{\op@typedoctmp}{}
\newcommand{\op@tribe}{} \newcommand{\op@tribe}{}

3542
tools/style/qrcode.dtx Normal file

File diff suppressed because it is too large Load Diff

57
tools/style/qrcode.ins Normal file
View File

@ -0,0 +1,57 @@
%% qrcode.ins
%% Copyright 2015 by Anders O.F. Hendrickson
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (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 Anders O.F. Hendrickson.
%%
%% This work consists of the files qrcode.dtx and qrcode.ins
%% and the derived file qrcode.sty.
\input docstrip.tex
\keepsilent
\usedir{tex/latex/qrcode}
\preamble
This is a generated file.
Copyright (C) 2015 by Anders Hendrickson <ahendric@cord.edu>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
of this license or (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.
\endpreamble
\generate{\file{qrcode.sty}{\from{qrcode.dtx}{package}}}
\obeyspaces
\Msg{*************************************************************}
\Msg{* *}
\Msg{* To finish the installation you have to move the following *}
\Msg{* file into a directory searched by TeX: *}
\Msg{* *}
\Msg{* qrcode.sty *}
\Msg{* *}
\Msg{* To produce the documentation run the file qrcode.dtx *}
\Msg{* through LaTeX. *}
\Msg{* *}
\Msg{* Happy TeXing! *}
\Msg{* *}
\Msg{*************************************************************}
\endbatchfile

3051
tools/style/qrcode.sty Normal file

File diff suppressed because it is too large Load Diff

View File

@ -29,11 +29,11 @@
%% Vecteurs %% Vecteurs
% représentation d'un vecteur % représentation d'un vecteur
\renewcommand{\vect}[1]{\overrightarrow{#1}} \newcommand{\vect}[1]{\overrightarrow{#1}}
% Norme d'un vecteur % Norme d'un vecteur
\newcommand{\norme}[1]{||\vec{#1}||} \newcommand{\norme}[1]{||\vect{#1}||}
% Produit scalaire % Produit scalaire
\newcommand{\scal}[2]{\vec{#1} \cdot \vec{#2}} \newcommand{\scal}[2]{\vect{#1} \cdot \vect{#2}}
\newcommand{\vectCoord}[2]{% \newcommand{\vectCoord}[2]{%
{\renewcommand{\arraystretch}{1}% {\renewcommand{\arraystretch}{1}%
\left(\begin{array}{c} #1 \\ #2 \end{array} \right)% \left(\begin{array}{c} #1 \\ #2 \end{array} \right)%
@ -41,7 +41,7 @@
} }
% Les complexes % Les complexes
\def\Ouv{$\left(\text{O}~;~\vec{u},~\vec{v}\right)$} \def\Ouv{$\left(\text{O}~;~\vect{u},~\vect{v}\right)$}
\newcommand{\e}{\mathrm{\,e\,}}% le e de l'exponentielle \newcommand{\e}{\mathrm{\,e\,}}% le e de l'exponentielle
%\renewcommand{\i}{\mathrm{\,i\,}}% le i des complexes %\renewcommand{\i}{\mathrm{\,i\,}}% le i des complexes