diff options
author | Karl Berry <karl@freefriends.org> | 2019-12-19 22:11:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-12-19 22:11:59 +0000 |
commit | 8876a8021514f190d676e4e5261f1084a66754d3 (patch) | |
tree | 9a496107a312a1acbbdb06ea0e1657c285109729 /Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex | |
parent | 693eacf895c01285e2992460bb489142ead8ae8a (diff) |
pgf (19dec19)
git-svn-id: svn://tug.org/texlive/trunk@53187 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex index 9cd4a9a6dd6..72b60ef6d99 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-numberprinting.tex @@ -290,8 +290,8 @@ precision. |fixed relative| ``rounds from the left'': it takes the \emph{first} non-zero digit, temporarily places the period after this digit, and rounds that number. The rounding style |fixed| leaves the period where it is, and - rounds everything behind that digit. The |sci| style is similar to |fixed - relative|. + rounds everything behind that digit. The |sci| style is similar to + |fixed relative|. \end{keylist} \begin{key}{/pgf/number format/int detect} @@ -344,7 +344,7 @@ precision. \begin{key}{/pgf/number format/frac} Displays numbers as fractionals. % -\begin{codeexample}[width=3cm] +\begin{codeexample}[width=3cm,preamble={\usetikzlibrary{fpu}}] \pgfkeys{/pgf/number format/frac} \pgfmathprintnumber{0.333333333333333}\hspace{1em} \pgfmathprintnumber{0.5}\hspace{1em} @@ -370,7 +370,7 @@ precision. \begin{key}{/pgf/number format/frac denom=\meta{int} (initially empty)} Allows to provide a custom denominator for |frac|. % -\begin{codeexample}[width=3cm] +\begin{codeexample}[width=3cm,preamble={\usetikzlibrary{fpu}}] \pgfkeys{/pgf/number format/.cd,frac, frac denom=10} \pgfmathprintnumber{0.1}\hspace{1em} \pgfmathprintnumber{0.5}\hspace{1em} @@ -385,7 +385,7 @@ precision. the fractional part. In this case, the fractional part will be less then $1$. Use |frac whole=false| to avoid whole number parts. % -\begin{codeexample}[width=3cm] +\begin{codeexample}[width=3cm,preamble={\usetikzlibrary{fpu}}] \pgfkeys{/pgf/number format/.cd,frac, frac whole=false} \pgfmathprintnumber{20.1}\hspace{1em} \pgfmathprintnumber{5.5}\hspace{1em} @@ -805,9 +805,9 @@ the correct digits, afterwards a display style generates proper \TeX-code. \begin{stylekey}{/pgf/number format/verbatim} A style which configures the number printer to produce verbatim text - output, i.\,e., it doesn't contain \TeX\ macros. + output, i.e., it doesn't contain \TeX\ macros. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{fpu}}] \pgfkeys{ /pgf/fpu, /pgf/number format/.cd, @@ -823,9 +823,9 @@ the correct digits, afterwards a display style generates proper \TeX-code. |assume math mode|. Furthermore, it installs a |sci generic| format for verbatim output of scientific numbers. - However, it will still respect |precision|, |fixed zerofill|, |sci - zerofill| and the overall styles |fixed|, |sci|, |int detect| (and their - variants). It might be useful if you intend to write output files. + However, it will still respect |precision|, |fixed zerofill|, + |sci zerofill| and the overall styles |fixed|, |sci|, |int detect| (and + their variants). It might be useful if you intend to write output files. \end{stylekey} |