summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-10-27 21:02:44 +0000
committerKarl Berry <karl@freefriends.org>2015-10-27 21:02:44 +0000
commit0abc6680fd61592b6ad516b519251dfb4444ece0 (patch)
tree5af87011d70bf6fb76552c96edf1ac33b59ff64e
parent8ff6b188f6b90296f3962551b22d9b735df48a16 (diff)
dynamicnumber (27oct15)
git-svn-id: svn://tug.org/texlive/trunk@38726 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/dynamicnumber/README.md88
-rw-r--r--Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdfbin158110 -> 158209 bytes
-rw-r--r--Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx6
-rw-r--r--Master/texmf-dist/tex/latex/dynamicnumber/dynamicnumber.sty3
4 files changed, 4 insertions, 93 deletions
diff --git a/Master/texmf-dist/doc/latex/dynamicnumber/README.md b/Master/texmf-dist/doc/latex/dynamicnumber/README.md
deleted file mode 100644
index 5830bd89cf4..00000000000
--- a/Master/texmf-dist/doc/latex/dynamicnumber/README.md
+++ /dev/null
@@ -1,88 +0,0 @@
-Dynamic Number
-==============
-
-What is it?
------------
-
-Dynamic Number dynamically typesets values generated in different kinds of scripts in LaTeX through the use of symbolic links. The aim is to reduce errors resulting from out-of-date numbers by directly setting them in the number generating file and importing a symbolic link in the LaTeX source file.
-
-It can be used to import not only numerical values into LaTeX, but even strings and pieces of code are possible. The main repository is located in [this](https://github.com/opieters/DynamicNumber) repository.
-
-**Attention** The symbolic links mentioned here are ***NOT*** related in any kind to the symbolic links used in UNIX systems. See example below to see what is meant with a symbolic link.
-
-Installation
-------------
-
-Depending on your desires, one or more might not be applicable. All the supported languages have a file in the `languages` folder. Currently only MATLAB and Python are supported to produce Dynamic Number (dn) list files (also called symbolic link lists).
-
-### LaTeX
-
-Currently the package is also available on CTAN. This is the preferred way of installing LaTeX packages. You can thus download it using your favourite (La)TeX package manager. The instructions below are thus obsolete.
-
-#### Linux and OS X
-
-Run the installation file in terminal: `source install.sh`.
-
-#### Windows
-
-For Windows, there is not yet a script. You must install it manually and add it to MiKTeX.
-
-1. Open the command line (`CTRL-R` and type `cmd`).
-2. Create the package with: `latex dynamicnumber.ins`.
-3. Extract the documentation to pdf with: `pdflatex dynamicnumber.dtx`.
-4. Use the instructions in [this](http://tex.stackexchange.com/questions/2063/how-can-i-manually-install-a-package-on-miktex-windows)
-
-### MATLAB
-
-Add the necessary functions to MATLAB's path.
-
-1. Clone the directory in your MATLAB folder (`Documents/MATLAB`).
-2. Now the contents should be in `Documents/MATLAB/DynamicNumber`.
-3. Open MATLAB.
-4. Set path to include the cloned folder. The Set path can be found in the File menu on older MATLAB installations or HOME, Environment in newer installations.
-
-### Python
-
-**TODO** Add to PyPI if stable.
-
-For the moment, add it to your project directory.
-
-Quick start
------------
-
-### LaTeX
-
-LaTeX usage is very straightforward. Load the package with `\usepackage{dynamicnumber}` and next load a symbolic link lists with `\dnreadfile{list}`. Now you can start using your dynamic variables with `\dnget{variable}`.
-
-More information and additional commands can be found in the documentation.
-
-**Attention!** Do not attempt to create a `pgfkey` with the name `dynamicnumber`, it will conflict with the internal workings of the package.
-
-### MATLAB and Python
-
-Create a symbolic link lists with the `dn()` command, then add symbolic links with the `add`-method.
-
-The `add`-method requires at least 2 arguments: the symbolic link name and a value (either numerical or string). The optional third can specify a unit for the value. The symbolic link will be stored to typeset both number and unit in a nice way, with the `units` package (`\unit{<value}{<unit>}`).
-
-Example (in Python, MATLAB code is almost identical)
-
-```python
-# Some computations and sensor readout to predict temperature tomorrow:
-temperature = 23.4
-temp_predictions = dn('TemperaturePredictions')
-temp_predictions.add('tomorrow',temparture,'C') # or \\Celcius instead of C
-```
-
-**Note!**: If you wish to use special LaTeX commands such as `\Celcius` or `\metre`, your need to be careful with the use of the backslash. In MATLAB you only need to add one backslash because of the way it is parsed, but in Python you need to add two of them! This is needed because the backslash is also used for escape sequences.
-
-Contributions
--------------
-
-The libraries are basic in a sense that they do not have a lot of features or options. This is intentional. Users can easily adopt them to suit their own needs without having to go through 100s of lines of code and the learning curve is very small. So the main goal is to have a library that support many platforms, is (almost) identical on all these platforms and is simple to use.
-
-Bug fixes and small feature improvements are always welcome, you can use a pull request to add must-have features or perform bug fixes.
-
-License
--------
-
-See the `LICENSE.txt` file.
diff --git a/Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdf b/Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdf
index b84719cca69..dde0bbdc87b 100644
--- a/Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdf
+++ b/Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx b/Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx
index 0325843a7e4..fe512c14d9f 100644
--- a/Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx
+++ b/Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx
@@ -14,7 +14,7 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{dynamicnumber}
-%<package> [2015/10/04 v0.1.1 Dynamic Number package]
+%<package> [2015/10/27 v0.1.3 Dynamic Number package]
%
%<*driver>
\documentclass{ltxdoc}
@@ -29,7 +29,7 @@
%</driver>
% \fi
%
-% \CheckSum{59}
+% \CheckSum{58}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -176,6 +176,7 @@
% \begin{macro}{\dnload}
% Loads a dn list from file \meta{load}|.dnlist| and executes all commands in
% this file after a check if the file exists.
+% \changes{v0.1.3}{2015/10/27}{Removed bug where the current list was reset.}
% \begin{macrocode}
\DeclareDocumentCommand{\dnload}{m}{%
\IfFileExists{#1.dnlist}{%
@@ -185,7 +186,6 @@
\@auxcommand
}%
\immediate\closein\dninstream%
- \dnsetcurrent{#1}%
}{}%
}
% \end{macrocode}
diff --git a/Master/texmf-dist/tex/latex/dynamicnumber/dynamicnumber.sty b/Master/texmf-dist/tex/latex/dynamicnumber/dynamicnumber.sty
index dd16e05ea37..1c05cff7723 100644
--- a/Master/texmf-dist/tex/latex/dynamicnumber/dynamicnumber.sty
+++ b/Master/texmf-dist/tex/latex/dynamicnumber/dynamicnumber.sty
@@ -18,7 +18,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{dynamicnumber}
- [2015/10/04 v0.1.1 Dynamic Number package]
+ [2015/10/27 v0.1.3 Dynamic Number package]
%% \DescribeMacro{\dncurrent}
\RequirePackage{pgfkeys}
\RequirePackage{xparse}
@@ -56,7 +56,6 @@
\@auxcommand
}%
\immediate\closein\dninstream%
- \dnsetcurrent{#1}%
}{}%
}
\DeclareDocumentCommand{\dnget}{O{} m}{%