diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/mathpunctspace/mathpunctspace.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/mathpunctspace/mathpunctspace.tex | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/mathpunctspace/mathpunctspace.tex b/Master/texmf-dist/doc/latex/mathpunctspace/mathpunctspace.tex new file mode 100644 index 00000000000..373ccdfa787 --- /dev/null +++ b/Master/texmf-dist/doc/latex/mathpunctspace/mathpunctspace.tex @@ -0,0 +1,88 @@ +\documentclass{article} + +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage[nosetpagesize]{graphicx} +\usepackage{mathpunctspace} + +\title{Control the Space After Punctuation in Expressions} +\author{Yuwsuke Kieda} +\date{2017/04/03 v1.0} + +\begin{document} +\maketitle + +\section{Descriptions} + +We provide a mechanism to control the space after the comma in the expressions. + +\section{Usage} + +\subsection{Sample of Preamble} + +\begin{verbatim} +\usepackage{mathpunctspace} +\end{verbatim} + +\subsection{Options} + +\begin{itemize} + \item unit: mu or other (default: mu) + \item comma: substitute keyword ``natural'' or skip (default: natural) + \item semicolon: substitute keyword ``natural'' or skip (default: natural) + \item latexorg: original behavior of LaTeX +\end{itemize} + +Remark: keyword ``natural'' mean the spacing of the in-line. + +\section{License} + +BSD 2-Clause License + +\section{Repository} + +\texttt{https://github.com/yuw/texmf-mathpunctspace} + +\section{Samples} + +\begin{verbatim} +\usepackage{mathpunctspace} +\end{verbatim} + +Lorem ipsum dolor sit amet $(x, y)$, consectetuer adipiscing elit. + +Lorem ipsum dolor sit amet $\{x; x \in A\}$; consectetuer adipiscing elit. + +\begin{verbatim} +\usepackage[comma=10mu,semicolon=20mu]{mathpunctspace} +\end{verbatim} + +\includegraphics{comma10mu-semicolon20mu.pdf} + +\begin{verbatim} +\usepackage[unit=pt,comma=5pt,semicolon=5pt]{mathpunctspace} +\end{verbatim} + +\includegraphics{comma5pt-semicolon5pt.pdf} + +\begin{verbatim} +\usepackage[comma=0mu,semicolon=natural]{mathpunctspace} +\end{verbatim} + +\includegraphics{comma0mu-semicolonnat.pdf} + +\section{Risks} + +If the option (\texttt{comma=10mu}) is given as follows, ``right'' output can not be obtained. See \textit{The \TeX{}book} p.~134. + +\begin{verbatim} +\usepackage[comma=10mu]{mathpunctspace} +\end{verbatim} + +\begin{center} + \setbox9\hbox{,}% + Input: \verb!$1{,}000$!\qquad + Output: \raisebox{-\dp9}{\includegraphics{ordinary-comma.pdf}} +\end{center} + +\end{document} |