summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-10-31 23:02:34 +0000
committerKarl Berry <karl@freefriends.org>2016-10-31 23:02:34 +0000
commit9ccc9c3898aab84f54fd9f05204a8cd6d2a134f4 (patch)
treeed79d9de5896e43b101a5a7ea9559e58cfa2a5d4 /Master/texmf-dist
parent2558915d24d58a11a4117a77589fa5e8402d8d9d (diff)
uspace (31oct16)
git-svn-id: svn://tug.org/texlive/trunk@42407 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rwxr-xr-xMaster/texmf-dist/doc/latex/uspace/uspace-ctanify.sh21
-rw-r--r--Master/texmf-dist/doc/latex/uspace/uspace-test-lualatex.pdfbin143480 -> 146331 bytes
-rw-r--r--Master/texmf-dist/doc/latex/uspace/uspace-test-pdflatex.pdfbin143831 -> 146770 bytes
-rw-r--r--Master/texmf-dist/doc/latex/uspace/uspace-test-xelatex.pdfbin25150 -> 27378 bytes
-rw-r--r--Master/texmf-dist/doc/latex/uspace/uspace-test.tex39
-rw-r--r--Master/texmf-dist/doc/latex/uspace/uspace.pdfbin81036 -> 81953 bytes
-rw-r--r--Master/texmf-dist/doc/latex/uspace/uspace.tex13
-rw-r--r--Master/texmf-dist/tex/latex/uspace/uspace.sty6
8 files changed, 64 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/latex/uspace/uspace-ctanify.sh b/Master/texmf-dist/doc/latex/uspace/uspace-ctanify.sh
index 58dfab59a16..8dec20e2d53 100755
--- a/Master/texmf-dist/doc/latex/uspace/uspace-ctanify.sh
+++ b/Master/texmf-dist/doc/latex/uspace/uspace-ctanify.sh
@@ -5,17 +5,23 @@ set -e
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 &
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 @@ ROOT_DIR="$PWD"
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
diff --git a/Master/texmf-dist/doc/latex/uspace/uspace-test-lualatex.pdf b/Master/texmf-dist/doc/latex/uspace/uspace-test-lualatex.pdf
index f7e0a44843c..8c008651bea 100644
--- a/Master/texmf-dist/doc/latex/uspace/uspace-test-lualatex.pdf
+++ b/Master/texmf-dist/doc/latex/uspace/uspace-test-lualatex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/uspace/uspace-test-pdflatex.pdf b/Master/texmf-dist/doc/latex/uspace/uspace-test-pdflatex.pdf
index 35b9f924006..e6fa2ae03e4 100644
--- a/Master/texmf-dist/doc/latex/uspace/uspace-test-pdflatex.pdf
+++ b/Master/texmf-dist/doc/latex/uspace/uspace-test-pdflatex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/uspace/uspace-test-xelatex.pdf b/Master/texmf-dist/doc/latex/uspace/uspace-test-xelatex.pdf
index b9ea36d2652..f33280dd314 100644
--- a/Master/texmf-dist/doc/latex/uspace/uspace-test-xelatex.pdf
+++ b/Master/texmf-dist/doc/latex/uspace/uspace-test-xelatex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/uspace/uspace-test.tex b/Master/texmf-dist/doc/latex/uspace/uspace-test.tex
index 0c0b8cb573f..b735f965fa0 100644
--- a/Master/texmf-dist/doc/latex/uspace/uspace-test.tex
+++ b/Master/texmf-dist/doc/latex/uspace/uspace-test.tex
@@ -14,6 +14,7 @@
hidelinks,
breaklinks}
\urlstyle{same} % don't use monospace font for urls
+\usepackage{float}
\usepackage{uspace}
@@ -117,6 +118,44 @@ The name of the Master Namer is `Kur­rem­kar­mer­ruk'.
\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
diff --git a/Master/texmf-dist/doc/latex/uspace/uspace.pdf b/Master/texmf-dist/doc/latex/uspace/uspace.pdf
index 8fcbaab7555..67c908fb501 100644
--- a/Master/texmf-dist/doc/latex/uspace/uspace.pdf
+++ b/Master/texmf-dist/doc/latex/uspace/uspace.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/uspace/uspace.tex b/Master/texmf-dist/doc/latex/uspace/uspace.tex
index dad385fed1a..212ebe4831b 100644
--- a/Master/texmf-dist/doc/latex/uspace/uspace.tex
+++ b/Master/texmf-dist/doc/latex/uspace/uspace.tex
@@ -23,12 +23,13 @@
\\{\small\href{mailto:vhaisman+uspace@gmail.com?subject=[uspace]}{vhaisman@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 @@ and their implementations:\nobreak%
\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 @@ This package would not be what it is without help and comments from people of
\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.
diff --git a/Master/texmf-dist/tex/latex/uspace/uspace.sty b/Master/texmf-dist/tex/latex/uspace/uspace.sty
index 3e520d19116..4856989a412 100644
--- a/Master/texmf-dist/tex/latex/uspace/uspace.sty
+++ b/Master/texmf-dist/tex/latex/uspace/uspace.sty
@@ -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 @@ Unicode space characters.]
\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}}