/* LaTeX */ Beispiel ergänzt

This commit is contained in:
Ben 2011-07-13 07:42:16 +00:00
parent 08c4e70839
commit 451e48fcb6
1 changed files with 36 additions and 0 deletions

View File

@ -42,6 +42,7 @@ Vortragender: [[Ben]], ???
* ~/Templates
* texdoc
* symbols-a4
** pifont+utf8 <code>\AtBeginDocument{\DeclareUnicodeCharacter{2192}{\ding{217}}}</code>
* xelatex
* dinbrief
* hyperref
@ -54,6 +55,7 @@ Vortragender: [[Ben]], ???
** Formeln (Variablendef+\mathsf\mathrm)
* häufige Fehler
** lacheck
** \listfiles
** space nach .
** zu viele Leerzeichen <code>{% }%</code> \xspace
** units
@ -62,6 +64,40 @@ Vortragender: [[Ben]], ???
* eigene .sty schreiben
** \makeatletter \makeatother
** ~/texmf/tex/latex
** zwei kurze Beispiele:
% 0-5 Sterne zeichen
% \stars{3}
\usepackage{bbding}
\usepackage{forloop}
\newcounter{ct}
\newcommand{\stars}[1]{%
\forloop{ct}{0}{\value{ct} < #1}{\FiveStar}%
\forloop{ct}{#1}{\value{ct} < 5}{\FiveStarOpen}%
}
% Checkbox zeichnen (feste Breite 1ex!)
% \checkbox % ☐
% \checkbox[y] % ☑
% \checkbox[x] % ☒
\usepackage{tikz}
\usepackage{amssymb}
\usepackage{pifont}
\newcounter{checkboxtype}\setcounter{checkboxtype}{0}
\newcounter{checkboxtypex}\setcounter{checkboxtypex}{1}
\newcounter{checkboxtypey}\setcounter{checkboxtypey}{2}
\newcommand{\checkbox}[1][]{%
\tikz{%
\node[inner sep=0,minimum size=1ex,draw] (box){};%
\useasboundingbox (box.north east) -- (box.south west);%
\ifcase\value{checkboxtype#1}%
\or% x
\node at (0,-0.1ex){\ding{55}};%
\or% y
\node at (0.3ex,0.4ex){\checkmark};%
\fi%
}%
}
* .tex.erb
* insdljs ??