mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
example how to typeset pixel
This commit is contained in:
parent
80da75ae5b
commit
523913c372
3 changed files with 29 additions and 0 deletions
7
documents/siunitx-pixel/Makefile
Normal file
7
documents/siunitx-pixel/Makefile
Normal 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
|
6
documents/siunitx-pixel/README.md
Normal file
6
documents/siunitx-pixel/README.md
Normal 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)
|
16
documents/siunitx-pixel/siunitx-pixel.tex
Normal file
16
documents/siunitx-pixel/siunitx-pixel.tex
Normal 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}
|
Loading…
Add table
Add a link
Reference in a new issue