Skip to content

Commit

Permalink
In accordance with the siunitx package, the function Quantity.tosiuni…
Browse files Browse the repository at this point in the history
…tx() returns now the \qty and \unit macros.
  • Loading branch information
tjenni committed Jan 7, 2023
1 parent 7872d75 commit 4a5e3b8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Author: Thomas Jenni

Version: 1.0.6
Version: 1.0.7

Date: 2022-08-03
Date: 2023-01-07

License: MIT

Expand Down
Binary file modified lua-physical.pdf
Binary file not shown.
24 changes: 12 additions & 12 deletions lua-physical.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%!TEX program = lualatex

% Copyright (c) 2022 Thomas Jenni
% Copyright (c) 2023 Thomas Jenni

% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -28,7 +28,7 @@
\usepackage{hyperref}
\usepackage{luacode}
\usepackage{listings}
\usepackage{siunitx}[=2021-04-09]
\usepackage{siunitx}
\usepackage{tabularx}
\usepackage{float}
\usepackage{ulem}
Expand Down Expand Up @@ -62,12 +62,12 @@

% config siunitx
\sisetup{
output-decimal-marker = {.},
output-decimal-marker = {.},
per-mode = symbol,
separate-uncertainty = true,
add-decimal-zero = true,
uncertainty-mode = compact,
minimum-decimal-digits = 1,
exponent-product = \cdot,
round-mode=off
round-mode=none
}

\DeclareSIUnit\unitless{}
Expand Down Expand Up @@ -156,7 +156,7 @@

\lstset{language=[LaTex]Tex}

\title{The \textsc{lua-physical} library \\\ \\\normalsize Version 1.0.5}
\title{The \textsc{lua-physical} library \\\ \\\normalsize Version 1.0.7}
\author{Thomas Jenni}
\date{\today}
\maketitle
Expand Down Expand Up @@ -202,12 +202,12 @@ \section{Loading}

% configure the siunitx package
\sisetup{
output-decimal-marker = {.},
output-decimal-marker = {.},
per-mode = symbol,
separate-uncertainty = true,
add-decimal-zero = true,
uncertainty-mode = compact,
minimum-decimal-digits = 1,
exponent-product = \cdot,
round-mode = off
round-mode=none
}

% declare the unitless unit (siunitx package)
Expand Down Expand Up @@ -257,7 +257,7 @@ \section{Loading}
\subsection{License}
This code is freely distributable under the terms of the MIT license.\\

Copyright (c) 2020 Thomas Jenni\\
Copyright (c) 2023 Thomas Jenni\\

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\\

Expand Down
2 changes: 1 addition & 1 deletion test/testQuantity.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--[[
This file contains the unit tests for the physical.Quantity class.
Copyright (c) 2020 Thomas Jenni
Copyright (c) 2023 Thomas Jenni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 4a5e3b8

Please sign in to comment.