texlive[42407] Master/texmf-dist: uspace (31oct16)
commits+karl at tug.org
commits+karl at tug.org
Tue Nov 1 00:02:34 CET 2016
Revision: 42407
http://tug.org/svn/texlive?view=revision&revision=42407
Author: karl
Date: 2016-11-01 00:02:34 +0100 (Tue, 01 Nov 2016)
Log Message:
-----------
uspace (31oct16)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/uspace/uspace-ctanify.sh
trunk/Master/texmf-dist/doc/latex/uspace/uspace-test-lualatex.pdf
trunk/Master/texmf-dist/doc/latex/uspace/uspace-test-pdflatex.pdf
trunk/Master/texmf-dist/doc/latex/uspace/uspace-test-xelatex.pdf
trunk/Master/texmf-dist/doc/latex/uspace/uspace-test.tex
trunk/Master/texmf-dist/doc/latex/uspace/uspace.pdf
trunk/Master/texmf-dist/doc/latex/uspace/uspace.tex
trunk/Master/texmf-dist/tex/latex/uspace/uspace.sty
Modified: trunk/Master/texmf-dist/doc/latex/uspace/uspace-ctanify.sh
===================================================================
--- trunk/Master/texmf-dist/doc/latex/uspace/uspace-ctanify.sh 2016-10-31 23:02:21 UTC (rev 42406)
+++ trunk/Master/texmf-dist/doc/latex/uspace/uspace-ctanify.sh 2016-10-31 23:02:34 UTC (rev 42407)
@@ -5,9 +5,9 @@
rm -f uspace.pdf || true
rm -f uspace-test.pdf || true
-latexmk -gg -pdf -jobname=uspace-test-pdflatex -interaction=nonstopmode uspace-test.tex >uspace-test.tex.output 2>&1 </dev/null &
-latexmk -gg -xelatex -jobname=uspace-test-xelatex -interaction=nonstopmode uspace-test.tex >uspace-test.tex.output 2>&1 </dev/null &
-latexmk -gg -lualatex -jobname=uspace-test-lualatex -interaction=nonstopmode uspace-test.tex >uspace-test.tex.output 2>&1 </dev/null &
+latexmk -gg -pdf -jobname=uspace-test-pdflatex -interaction=nonstopmode uspace-test.tex >uspace-test-pdflatex.tex.output 2>&1 </dev/null &
+latexmk -gg -xelatex -jobname=uspace-test-xelatex -interaction=nonstopmode uspace-test.tex >uspace-test-xelatex.tex.output 2>&1 </dev/null &
+latexmk -gg -lualatex -jobname=uspace-test-lualatex -interaction=nonstopmode uspace-test.tex >uspace-test-lualatex.tex.output 2>&1 </dev/null &
latexmk -gg -lualatex -interaction=nonstopmode uspace.tex >uspace.tex.output 2>&1 </dev/null &
@@ -14,9 +14,15 @@
echo waiting for jobs to finish
wait
-echo "uspace-test.tex.output:"
-cat uspace-test.tex.output
+echo "uspace-test-pdflatex.tex.output:"
+cat uspace-test-pdflatex.tex.output
+echo "uspace-test-pdflatex.tex.output:"
+cat uspace-test-xelatex.tex.output
+
+echo "uspace-test-pdflatex.tex.output:"
+cat uspace-test-lualatex.tex.output
+
echo "uspace.tex.output:"
cat uspace.tex.output
@@ -51,8 +57,9 @@
setfacl -b *
chmod +rw-x *
chmod +x uspace-ctanify.sh
- ctanify --pkgname=uspace $CTANIFY_MAP
- mv -vf uspace.tar.gz "$ROOT_DIR"
+ #ctanify --pkgname=uspace $CTANIFY_MAP
+ #mv -vf uspace.tar.gz "$ROOT_DIR"
+ tar cvvzf "$ROOT_DIR/uspace.tar.gz" .
)
tar tvvzf uspace.tar.gz
Modified: trunk/Master/texmf-dist/doc/latex/uspace/uspace-test-lualatex.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/uspace/uspace-test-pdflatex.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/uspace/uspace-test-xelatex.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/uspace/uspace-test.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/uspace/uspace-test.tex 2016-10-31 23:02:21 UTC (rev 42406)
+++ trunk/Master/texmf-dist/doc/latex/uspace/uspace-test.tex 2016-10-31 23:02:34 UTC (rev 42407)
@@ -14,6 +14,7 @@
hidelinks,
breaklinks}
\urlstyle{same} % don't use monospace font for urls
+\usepackage{float}
\usepackage{uspace}
@@ -117,6 +118,44 @@
\pagebreak
+\section{\figuresp{} and \punctsp{}}
+
+\expl{\figuresp{} and \punctsp{} can be used to align numbers in tables. The
+ below table (partial table of Earth athmosphere constituents) does not use
+ either. The numbers are centered in their column.}
+
+\begin{figure}[H]
+\centering
+\begin{tabular}{l | c}
+ Element & ppmv \tabularnewline
+ \hline
+ Nitrogen & 780,840\tabularnewline
+ Oxygen & 209,460\tabularnewline
+ Argon & 9,340\tabularnewline
+ Carbon dioxide & 400 \tabularnewline
+ Neon & 18.18
+\end{tabular}
+\end{figure}
+
+\expl{Below is the same table as above but with addition of \figuresp{} and
+ \punctsp{} to pad the numbers so that they all seem the same width to
+ \LaTeX{}:}
+
+\begin{figure}[H]
+\centering
+\begin{tabular}{l | c}
+ Element & ppmv \tabularnewline
+ \hline
+ Nitrogen & 780,840 \tabularnewline
+ Oxygen & 209,460 \tabularnewline
+ Argon & 9,340 \tabularnewline
+ Carbon dioxide & 400 \tabularnewline
+ Neon & 18.18
+\end{tabular}
+\end{figure}
+
+\pagebreak
+
\section{en, em and other spaces}
\expl{Unicode contains several more space characters, some of which are shown in
Modified: trunk/Master/texmf-dist/doc/latex/uspace/uspace.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/uspace/uspace.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/uspace/uspace.tex 2016-10-31 23:02:21 UTC (rev 42406)
+++ trunk/Master/texmf-dist/doc/latex/uspace/uspace.tex 2016-10-31 23:02:34 UTC (rev 42407)
@@ -23,12 +23,13 @@
\\{\small\href{mailto:vhaisman+uspace at gmail.com?subject=[uspace]}{vhaisman at gmail.com}}}{}}
\date{\today}
\title{\texttt{uspace} user manual}
-\subtitle{v0.02}
+\subtitle{v0.03}
\usepackage{xcolor}
\usepackage{multicol}
\usepackage{microtype}
\usepackage{metalogo}
+\usepackage{hologo}
\PassOptionsToPackage{unicode}{hyperref}
\usepackage{bookmark}
@@ -96,13 +97,13 @@
\item[\fourPerEm{} (\texttt{U+2005})] \lstinline|\hspace{0.25em}|
\item[\sixPerEm{} (\texttt{U+2006})] \lstinline|\hspace{0.16667em}|
\item[\figuresp{} (\texttt{U+2007})] \lstinline|\leavevmode\hphantom{0}|
-\item[\punctsp{} (\texttt{U+2008})] \lstinline|\leavevmode\hphantom{.}|
-\item[\thinsp{} (\texttt{U+2009})] \lstinline|\leavevmode\,\linebreak[0]|
+\item[\punctsp{} (\texttt{U+2008})] \lstinline|\hspace{\fontcharwd \font `\,}|
+\item[\thinsp{} (\texttt{U+2009})] \lstinline|\leavevmode\allowbreak\,|
\item[\hairsp{} (\texttt{U+200A})] \lstinline|\hspace{0.08333em}|
\end{labeling}
-\footnotetext[1]{This already defined for pdf\LaTeX{} because we use
+\footnotetext[1]{This already defined for \hologo{pdfLaTeX} because we use
\lstinline|inputenc| with \lstinline|utf8| option when compiling with
- pdf\LaTeX{}, therefore this is only defined for \LuaLaTeX{} and
+ \hologo{pdfLaTeX}, therefore this is only defined for \LuaLaTeX{} and
\XeLaTeX{}.}
\footnotetext[2]{According to Unicode, these two are canonically
equivalent. See \url{http://unicode.org/notes/tn5/}
@@ -120,6 +121,8 @@
\begin{description}[style=nextline, labelwidth=4.5em, leftmargin=!,
labelindent=0em]
+ \item[\texttt{v0.03}] Change implementation for \punctsp{} and \thinsp{} to
+ fix issues with line wrapping when using these characters.
\item[\texttt{v0.02}] Round lengths to five digits after decimal
point. List also Unicode code point values beside character names.
\item[\texttt{v0.01}] First published version of this package.
Modified: trunk/Master/texmf-dist/tex/latex/uspace/uspace.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/uspace/uspace.sty 2016-10-31 23:02:21 UTC (rev 42406)
+++ trunk/Master/texmf-dist/tex/latex/uspace/uspace.sty 2016-10-31 23:02:34 UTC (rev 42407)
@@ -10,7 +10,7 @@
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{uspace}
-[2016/10/04 v0.02 LaTeX package that defines meanings to several different
+[2016/10/30 v0.03 LaTeX package that defines meanings to several different
Unicode space characters.]
\RequirePackage{ifxetex,ifluatex}
@@ -61,10 +61,10 @@
\newunicodechar{ }{\leavevmode\hphantom{0}}
% punctuation space
-\newunicodechar{ }{\leavevmode\hphantom{.}}
+\newunicodechar{ }{\hspace{\fontcharwd \font `\,}}
% thin space
-\newunicodechar{ }{\leavevmode\,\linebreak[0]}
+\newunicodechar{ }{\leavevmode\allowbreak\,}
% hair space
\newunicodechar{ }{\hspace{0.08333em}}
More information about the tex-live-commits
mailing list