2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-18 19:18:21 +02:00

example how to typeset pixel

This commit is contained in:
Martin Thoma 2014-10-02 14:05:26 +02:00
parent 80da75ae5b
commit 523913c372
3 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,7 @@
SOURCE = siunitx-pixel
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.out

View file

@ -0,0 +1,6 @@
Read the [manual](ftp://ftp.tex.ac.uk/tex-archive/macros/latex/exptl/siunitx/siunitx.pdf)
for more information how `siunitx` works.
Material
--------
* [Why use a package to typeset units?](http://tex.stackexchange.com/q/107818/5645)

View file

@ -0,0 +1,16 @@
\documentclass[a4paper,9pt]{scrartcl}
\usepackage{amssymb, amsmath} % needed for math
\usepackage[utf8]{inputenc} % this is needed for umlauts
\usepackage[ngerman]{babel} % this is needed for umlauts
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
\usepackage[margin=2.5cm]{geometry} %layout
\usepackage{hyperref} % links im text
\usepackage[binary-units = true]{siunitx} % this package is for units!
\DeclareSIUnit\px{px}
\begin{document}
My display has a resolution of $\SI{1366}{\px} \times \si{768}{\px}$.
The speed of a modem is $\SI[per-mode=symbol]{57.6}{\kilo\bit\per\second}$
\end{document}