From: hackbard Date: Tue, 5 Nov 2013 21:42:01 +0000 (+0100) Subject: added the identity pstrick fig for steffi! X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dfcf822e6397f8e059d43990d32d878b7485b81;p=lectures%2Flatex.git added the identity pstrick fig for steffi! --- diff --git a/sandbox/identity.tex b/sandbox/identity.tex new file mode 100644 index 0000000..286fb4c --- /dev/null +++ b/sandbox/identity.tex @@ -0,0 +1,162 @@ +\pdfoutput=0 +\documentclass[twoside,a4paper,11pt,openany]{book} +%\documentclass[twoside,a4paper,11pt,draft]{book} +\usepackage[activate]{pdfcprot} +\usepackage{verbatim} +\usepackage[a4paper,textheight=636pt,textwidth=442pt,includeheadfoot]{geometry} +\usepackage[english,german]{babel} +\usepackage[latin1]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{amsmath} +\usepackage{amssymb} +\usepackage{bm} +\usepackage{ae} +\usepackage{aecompl} +\usepackage[dvips]{graphicx} +\graphicspath{{./img/}} +\usepackage{subfigure} +\usepackage{color} +\usepackage{pstricks} +\usepackage{pst-node} +\usepackage{rotating} +\usepackage{fancyhdr} + +% custom sections +\usepackage{titlesec} + +% cites +\usepackage[numbers,sort,compress]{natbib} + +% list of publications +\usepackage{multibib} +%\usepackage[resetlabels]{multibib} +\newcites{pub}{List of publications} + +% box around verbatim text +\usepackage{fancyvrb} + +% miller +\usepackage{miller} + +% in use? +%\usepackage{slashbox} + +% smaller captions ... +\usepackage[small,bf]{caption} + +% units +\usepackage{units} + +% theorem environment +\usepackage{framed} +\usepackage[framed,thref,thmmarks,amsmath,hyperref]{ntheorem} + +% hyperlinks +\usepackage[colorlinks=true,linkcolor=black,citecolor=black]{hyperref} + +% shortcuts +\newcommand{\si}{Si$_{\text{i}}${}} +\newcommand{\ci}{C$_{\text{i}}${}} +\newcommand{\cs}{C$_{\text{s}}${}} +\newcommand{\degc}[1]{\unit[#1]{$^{\circ}$C}{}} +\newcommand{\degk}[1]{\unit[#1]{K}{}} +\newcommand{\distn}[1]{\unit[#1]{nm}{}} +\newcommand{\dista}[1]{\unit[#1]{\AA}{}} +\newcommand{\perc}[1]{\unit[#1]{\%}{}} + +%\newcommand{\bra}[1]{\left\langle #1 \right|} +%\newcommand{\ket}[1]{\left| #1 \right\rangle} +%\newcommand{\braket}[2]{\left\langle #1 \mid #2 \right\rangle} +\newcommand{\bra}[1]{\langle #1 |} +\newcommand{\ket}[1]{| #1 \rangle} +\newcommand{\braket}[2]{\langle #1 | #2 \rangle} + +% (re)new commands +\newcommand{\printimg}[5]{% + \begin{figure}[#1]% + \begin{center}% + \includegraphics[#2]{#3}% + \caption{#4}% + \label{#5}% + \end{center}% + \end{figure}% +} + +\pagestyle{fancy} + +\renewcommand{\chaptermark}[1]{ + \markboth{\thechapter.\ #1}{} +} +\renewcommand{\sectionmark}[1]{ + \markright{\thesection.\ #1} +} +\fancyhf{} +\fancyhead[LE,RO]{\thepage} +\fancyhead[LO]{\nouppercase\rightmark} +\fancyhead[RE]{\nouppercase\leftmark} + +% hyphenation +\hyphenation{} + +% colors +\newrgbcolor{hb}{0.75 0.77 0.89} +\newrgbcolor{lbb}{0.75 0.8 0.88} +\newrgbcolor{lachs}{1.0 .93 .81} +% +\newrgbcolor{ctheorem}{0.85 0.85 0.95} +\newrgbcolor{cdefinition}{0.95 0.85 0.85} +\newrgbcolor{cremark}{0.97 0.97 0.97} +\newrgbcolor{cproof}{0.95 0.92 0.95} + +% roman numbers +\newcommand{\RM}[1]{\MakeUppercase{\romannumeral #1{}}} + +% vectors are simply represented by bold font characters +\renewcommand{\vec}[1]{{\bm #1{}}} + +% +% theorem environment +% +% common +\theoremstyle{plain} +\theoremseparator{:} +\theorembodyfont{\normalfont} +\theoremsymbol{} +% theorem +\shadecolor{ctheorem} +\newshadedtheorem{theorem}{Theorem}[section] +% definition +\shadecolor{cdefinition} +\newshadedtheorem{definition}[theorem]{Definition} +% remark +\shadecolor{cremark} +\newshadedtheorem{remark}[theorem]{Remark} +% proof +\theoremstyle{nonumberplain} +\theoremsymbol{\rule{1ex}{1ex}} +\shadecolor{cproof} +\newtheorem{proof}{Proof} + +\newcommand{\ctid}[1]{% +\psset{unit=#1} +\begin{pspicture}(.4,.4) +\psdot[dotsize=0.15](0.207,0.02) +\psarc[linewidth=0.02,arrowinset=0]{<-}(0.2,0.15){0.15}{-50}{220} +\end{pspicture} +} + +\begin{document} + +% english +\selectlanguage{english} + +\noindent +Using ps-tricks, the identity \ctid{1cm} looks like this.\\ +And we can scale it up! See:\\ +\ctid{2cm}\\ +\ctid{3cm}\\ +\ctid{4cm}\\ +\ctid{5cm}\\ +\ctid{6cm} + +\end{document}