texlive[45509] Master: isopt (9oct17)

commits+karl at tug.org commits+karl at tug.org
Tue Oct 10 00:07:51 CEST 2017


Revision: 45509
          http://tug.org/svn/texlive?view=revision&revision=45509
Author:   karl
Date:     2017-10-10 00:07:51 +0200 (Tue, 10 Oct 2017)
Log Message:
-----------
isopt (9oct17)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/libexec/ctan2tds
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/isopt/
    trunk/Master/texmf-dist/doc/latex/isopt/Changes
    trunk/Master/texmf-dist/doc/latex/isopt/README.md
    trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.bib
    trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.pdf
    trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.tex
    trunk/Master/texmf-dist/tex/latex/isopt/
    trunk/Master/texmf-dist/tex/latex/isopt/isopt.sty
    trunk/Master/tlpkg/tlpsrc/isopt.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/isopt/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/isopt/Changes	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/isopt/Changes	2017-10-09 22:07:51 UTC (rev 45509)
@@ -0,0 +1 @@
+v. 0.01  2017-10-09 - first CTAN version
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/isopt/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/isopt/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/isopt/README.md	2017-10-09 22:07:51 UTC (rev 45509)
@@ -0,0 +1,11 @@
+# README #
+
+Writing a TeX length with \the writes the value and
+the unit without a space. Package isopt provides
+a macro \ISO which inserts a user defined space
+between number and  unit.
+
+
+This program can be redistributed and/or modified under the terms
+of the LaTeX Project Public License Distributed from CTAN archives
+in directory macros/latex/base/lppl.txt.


Property changes on: trunk/Master/texmf-dist/doc/latex/isopt/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.bib	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.bib	2017-10-09 22:07:51 UTC (rev 45509)
@@ -0,0 +1,9 @@
+ at online{nist,
+url={https://physics.nist.gov/cuu/Units/checklist.html},
+author={{NIST: National Institut of Standards and Technology}},
+organisation= {U.S. Department of Commerce},
+title={SI Unit rules and style conventions},
+subtitle={Check List for Reviewing Manuscripts},
+date={2004-09},
+urldate={2017-10-09},
+}


Property changes on: trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.bib
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.pdf	2017-10-09 22:06:08 UTC (rev 45508)
+++ trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.pdf	2017-10-09 22:07:51 UTC (rev 45509)

Property changes on: trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.tex	2017-10-09 22:07:51 UTC (rev 45509)
@@ -0,0 +1,66 @@
+\documentclass[paper=a4]{article}
+\usepackage{geometry}
+\usepackage{dejavu-otf}
+\usepackage[space=~]{isopt}
+\makeatletter
+\let\FV\ISOpt at fileversion
+\makeatother
+
+\usepackage{biblatex}
+\addbibresource{\jobname.bib}
+
+\title{Writing a \TeX\ length in ISO style\thanks{Thanks to Heiko Oberdiek}\\[7pt] \normalsize v. \FV}
+\author{Herbert Voß}
+
+\begin{document}   
+
+\maketitle
+
+\section{How it works}
+By default \TeX\ writes an internal length in the following way:
+
+\verb|\the\baselineskip|$\rightarrow$\the\baselineskip
+
+There is no space between value and unit. Package \texttt{isopt} provides the macro
+\texttt{\textbackslash ISO} which needs a \TeX\ length as argument and prints
+it with the default \verb|\thinspace|
+
+\verb|\ISO\the\baselineskip|$\rightarrow$\ISO\the\baselineskip
+
+\begin{verbatim}
+\sbox0{Hello World}
+The box is \ISO\wd0\ wide, \ISO\ht0\ high and has a depth  of \ISO\dp0.
+\end{verbatim}
+
+\sbox0{Hello World}
+The box is \ISO\wd0\ wide, \ISO\ht0\ high and has a depth  of \ISO\dp0.
+
+
+There is also a short form \verb|\THE| which is defined as \verb|\ISO\the|.
+It saves only some keystrokes:
+
+\verb|\THE\tabcolsep|$\rightarrow$\THE\tabcolsep
+
+
+If you prefer the tilde \verb|~| as space between value and unit, then pass
+it as optional argument of the package:
+
+\begin{verbatim}
+\usepackage[space=~]{isopt}
+\end{verbatim}
+ 
+The predefined space is \verb|\usepackage[space=\thinspace]{isopt}|
+
+\section{Limitations}
+
+The current version does not support a rubber length like \verb|\the\parskip|$\rightarrow$\the\parskip
+
+
+
+
+
+\nocite{*}
+\printbibliography
+
+\end{document}
+


Property changes on: trunk/Master/texmf-dist/doc/latex/isopt/isopt-doc.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/isopt/isopt.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/isopt/isopt.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/isopt/isopt.sty	2017-10-09 22:07:51 UTC (rev 45509)
@@ -0,0 +1,57 @@
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This is file `ISOpt.sty',
+%%
+%% Herbert Voss <hvoss at tug.org>
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN archives
+%% in directory macros/latex/base/lppl.txt.
+%%
+%% DESCRIPTION:
+%%   `ISOpt' offers writing a TeX length in ISO style
+%%
+\NeedsTeXFormat{LaTeX2e}
+\def\ISOpt at fileversion{0.01}
+\def\ISOpt at filedate{2017/10/09}
+\ProvidesPackage{isopt}[2017/10/09 v 0.01  print a TeX length in ISO style]
+\message{`isopt' v\ISOpt at fileversion, \ISOpt at filedate\space (hv)}
+%
+\RequirePackage{xkeyval}
+\let\ISOpt at space\thinspace
+\DeclareOptionX{space}{\def\ISOpt at space{#1}}
+\ProcessOptionsX\relax
+%
+\newcommand*{\ISO}{\@ifnextchar\bgroup\dudenpt at arg\dudenpt@}
+\newcommand*{\dudenpt at arg}[1]{\dudenpt@#1\relax}
+\newcommand*{\dudenpt@}{\begingroup\afterassignment\@dudenpt\dimen@=}
+\newcommand*{\@dudenpt}{\expandafter\endgroup\expandafter\duden at pt\the\dimen@}
+\begingroup
+  \catcode`P=12
+  \catcode`T=12
+  \lowercase{% 
+    \def\x{%  
+      \def\duden at pt##1.##2PT{%
+        ##1\ifnum##2>\z at .##2\fi
+        \ifcase
+            \ifnum##2>\z@\@ne
+            \else\ifnum##1>9 \@ne
+            \else\ifnum##1<\z@ \@ne
+            \else \z@
+            \fi\fi\fi
+          \ISOpt at space
+        \else
+          \nobreakspace
+        \fi
+        pt%
+      }%   
+    }%  
+  }%  
+\expandafter\endgroup\x
+%
+\newcommand\THE{\ISO\the}
+%
+\endinput
+
+


Property changes on: trunk/Master/texmf-dist/tex/latex/isopt/isopt.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-10-09 22:06:08 UTC (rev 45508)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-10-09 22:07:51 UTC (rev 45509)
@@ -335,7 +335,7 @@
     intro-scientific
     inversepath invoice invoice2
     ionumbers iopart-num ipaex ipaex-type1 iscram iso
-    iso10303 isodate isodoc isomath isonums isorot isotope
+    iso10303 isodate isodoc isomath isonums isopt isorot isotope
     issuulinks istgame itnumpar
     iwhdp iwona
   jablantile jacow jamtimes japanese-otf japanese-otf-uptex jfmutil

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2017-10-09 22:06:08 UTC (rev 45508)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2017-10-09 22:07:51 UTC (rev 45509)
@@ -557,6 +557,7 @@
  'invoice',     "&MAKEflatten",
  'ipa',         "die 'skipping, part of wsuipa'",
  'ipaex-type1', "&MAKEflatten",
+ 'isopt',	"&MAKEflatten",
  'isostds',     "die 'skipping, use iso or iso10303'",
  'itrans',      "die 'skipping, no longer maintained (maybe you want xetex-itrans?), too complex'",
  'itrans-processor',    "die 'skipping, no longer maintained, too complex'",

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2017-10-09 22:06:08 UTC (rev 45508)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2017-10-09 22:07:51 UTC (rev 45509)
@@ -549,6 +549,7 @@
 depend isodate
 depend isodoc
 depend isonums
+depend isopt
 depend isorot
 depend isotope
 depend issuulinks

Added: trunk/Master/tlpkg/tlpsrc/isopt.tlpsrc
===================================================================


More information about the tex-live-commits mailing list