From 99dc3eb86824477d94728164b5f4baaeb971950e Mon Sep 17 00:00:00 2001 From: eqkter Date: Fri, 9 Dec 2022 00:01:46 +0100 Subject: 1st bug hunting and a README --- README.txt | 30 ++++++++++++++++++++++++++++++ physics-ng.sty | 13 +++++++++---- 2 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 README.txt diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..76948e9 --- /dev/null +++ b/README.txt @@ -0,0 +1,30 @@ +physics-ng: a personal package to have mostly the same +possibilities as the old osbolete physics package + +Alexis Draussin (eqkter@protonmail.com) + +This work may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either +version 1.3c 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 + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +This is version 1.0 of physics-ng and associated files, and +recquires the fourier, bm, siunitx and esvect packages. This +initial version is entirely design to use the fourier math +type font, with the possibility to have black-board notation +for vector writing with esvect. The physics-ng package bring +the old command qty with nqty, infinetesimal d notation, ISO +norm vector matrix and tensor notations, and another handful +of usual physics LaTeX writing. Note that the Dirac brakets +notation shall be managed by the braket package, and the +derivatives of all form by the diffcoeff package. + +Manifest +%%%%%%%% +README.txt this document +physics-ng.sty LaTeX .sty file +physics-ng.pdf documentation +physics-ng.tex LaTeX source of documentation diff --git a/physics-ng.sty b/physics-ng.sty index 763a687..3859428 100644 --- a/physics-ng.sty +++ b/physics-ng.sty @@ -7,17 +7,19 @@ % The derivative part and the Dirac brakets are respectively taken of by the % diffcoeff and braket packages. % It depends on asm ecosystem, siunitx, and esvect (for black board vector notation) -% design for Fourier mathtype-font with sloped setting +% Designed for Fourier mathtype-font with sloped setting, following ISO 80000-2 notations +% If you do not want to use the Fourier math font, or follow this ISO norm, this package +% is not yet ready for you % % Created by Alexis Draussin % Updated on December 8, 2022 % Uploaded on December 20, 2022 +\RequirePackage{xparse} % only for \dd and \nqty commands, copied from the old physics, to be replaced \RequirePackage{amsmath} -\RequirePackage{fourier} -\RequirePackage{bm} -\RequirePackage{siunitx} +\RequirePackage{fourier, bm} \RequirePackage{esvect} +\RequirePackage{siunitx} \DeclareOption{bb}{\let\arrowopt = 1} \DeclareOption{nobb}{\let\arrowopt = 0} % default @@ -27,6 +29,9 @@ % incertitude command, using siunitx \newcommand{\incert}[3]{\left(\num{#1}\pm\num{#2}\right)~\si{#3}} +% text between elements of equation +\newcommand{\qq}[1]{\ensuremath{\quad\text{#1}\quad}} + % transforms: Laplace, Fourier and Z \DeclareMathAlphabet{\pazocal}{OMS}{zplm}{m}{n} % fourier overwrite the mathcal alpabet \newcommand{\LT}[1]{\ensuremath{\pazocal{L}\left\lbrace#1\right\rbrace}} -- cgit v1.2.3