\documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \tikzstyle{abox} = [rectangle, thick, text centered , text width=3.5cm, minimum height=1cm, top color=white, bottom color=blue!30, draw=blue!40] \tikzstyle{xbox} = [rectangle, thick, text centered , text width=.3cm, minimum height=3.5cm, top color=white, bottom color=red!30, draw=red!40] \tikzstyle{bbox} = [rectangle, thick, text centered , text width=.3cm, minimum height=1cm, top color=white, bottom color=green!30, draw=green!40] \coordinate (A) at (0cm, 0cm); \coordinate (X) at (3cm, 0cm); \coordinate (E) at (4cm, 0cm); \coordinate (B) at (5.2cm, 0cm); % measurement \node [abox] (ABox) at (A) {$\mathbf{A}$}; \node [left] at (ABox.west) {$\scriptstyle m$}; \node [below] at (ABox.south) {$\scriptstyle n$}; \node [yshift=-2.5cm] at (A) {measurement}; % input \node [xbox] (XBox) at (X) {$\mathbf{x}$}; \node [left] at (XBox.west) {$\scriptstyle n$}; \node [below] at (XBox.south) {$\scriptstyle 1$}; \node [yshift=-2.5cm] at (X) {input}; % equal \node at (E) {=}; % observation \node [bbox] (BBox) at (B) {$\mathbf{b}$}; \node [left] at (BBox.west) {$\scriptstyle m$}; \node [below] at (BBox.south) {$\scriptstyle 1$}; \node [yshift=-2.5cm] at (B) {observation}; \end{tikzpicture} \end{document}
\documentclass[12pt]{article} \usepackage[papersize={35mm, 45mm}, text={30mm, 40mm}]{geometry} \usepackage{concrete} \usepackage{amsmath} \DeclareMathOperator*{\AAbf}{\ensuremath{\mathbf{A}}} \DeclareMathOperator*{\xxbf}{\ensuremath{\mathbf{x}}} \DeclareMathOperator*{\bbbf}{\ensuremath{\mathbf{b}}} \begin{document} \begin{equation*} \AAbf_{\scriptscriptstyle m\times n} \medspace \xxbf_{\scriptscriptstyle n\times 1} = \bbbf_{\scriptscriptstyle m\times 1} \end{equation*} \begin{equation*} \AAbf_{m\times n} \medspace \xxbf_{n\times 1} = \bbbf_{m\times 1} \end{equation*} \end{document}
# main document
#SRC=doc
SRC=temp
# latex compilier
LATEX=pdflatex
# bibliography generator
BIBTEX=bibtex
# pdf viewer
PDFVIEW=evince
COLOR="\\033[32m"
NORMAL_COLOR="\\033[0m"
OPT="-e"
UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
PDFVIEW=open
LATEX=xelatex
OPT=""
endif
pdf:$(SRC).pdf
@echo $(OPT) "$(COLOR)===> Viewing PDF… $(NORMAL_COLOR)"
$(PDFVIEW) $(SRC).pdf &
$(SRC).pdf:$(SRC).tex $(SRC).bbl
@echo $(OPT) "$(COLOR)===> Running LaTeX… $(NORMAL_COLOR)"
$(LATEX) $(SRC)
@echo $(OPT) "$(COLOR)===> Running LaTeX once more… $(NORMAL_COLOR)"
$(LATEX) $(SRC)
$(SRC).bbl:$(SRC).aux $(SRC).tex
@echo $(OPT) "$(COLOR)===> Running BibTeX… $(NORMAL_COLOR)"
$(BIBTEX) $(SRC)
$(SRC).aux:$(SRC).tex
@echo $(OPT) "$(COLOR)===> Running LaTeX for BibTeX… $(NORMAL_COLOR)"
$(LATEX) $(SRC)
clean:
@echo $(OPT) "$(COLOR)===> Tidy up!… $(NORMAL_COLOR)"
rm -f *~
find . -maxdepth 1 -type f -name "$(SRC).*" ! -name "$(SRC).tex" -exec rm -f {} \;
# remove AucTeX-related files.
rm -rf _region_* $(DOC).prv prv_$(DOC).log
\documentclass{minimal} \usepackage[papersize={2.8in, 1.5in}, text={2.8in, 1.5in}]{geometry} \usepackage{amsmath} \usepackage{fourier} \begin{document} \begin{alignat*}{3} \text{maximize}\qquad & \sum_{(u,v)\in E} x_{(u,v)} & \\ \text{subject to}\qquad & \sum_{v\in V} x_{(u,v)} \leq 1 & \quad\text{for all $u\in U$}; \\ & \sum_{u\in U} x_{(u,v)}\leq 1 & \quad\text{for all $v\in V$}; \\ & x_{(u,v)} \geq 0 & \quad\text{for all $(u,v)\in E.$} \end{alignat*} \end{document}
\documentclass{article} \usepackage[papersize={45mm, 45mm}, text={40mm, 40mm}]{geometry} \usepackage{tikz} \usetikzlibrary{arrows} \usepackage{chessboard} % chessboard drawing \begin{document} \begin{figure}[h] \centering \chessboard[tinyboard,vlabelformat=\arabic{filelabel}, setwhite={Rd5},showmover=false, color=red, padding=-0.2em, pgfstyle=circle, markfields={d1,d2,d3,d4,d6,d7,d8,a5,b5,c5,e5,f5,g5,h5}] \end{figure} \end{document}
\documentclass{article} \usepackage[papersize={45mm, 45mm}, text={40mm, 40mm}]{geometry} \usepackage{tikz} \usetikzlibrary{arrows} \usepackage{chessboard} % chessboard drawing \begin{document} \begin{figure}[h] \centering \chessboard[tinyboard,vlabelformat=\arabic{filelabel}, setwhite={Bd5},showmover=false, color=red, padding=-0.2em, pgfstyle=circle, markfields={e4,f3,g2,h1,e6,f7,g8,c4,b3,a2,c6,b7,a8}] \end{figure} \end{document}
\documentclass{article} \usepackage[papersize={45mm, 30mm}, text={40mm, 35mm}]{geometry} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{figure} \centering \begin{tikzpicture}[node distance=1cm,>=stealth',elem/.style={circle,draw,fill=orange!40}] \node [elem] (b2) {2}; \node [elem] (b4) [below of=b2, xshift=-10mm] {4} edge [->] (b2); \node [elem] (b3) [below of=b2, xshift= 8mm] {3} edge [->] (b2); \node [elem] (b1) [below of=b4, xshift= -8mm] {1} edge [->] (b4); \node [elem] (b0) [below of=b4, xshift= 8mm] {0} edge [->] (b4); \node [elem] (b5) [below of=b3, xshift= 4mm] {5} edge [->] (b3); \end{tikzpicture} \end{figure} \end{document}
\documentclass{report} \usepackage{amsthm,amsmath,amssymb} \newtheorem{theorem}{Theorem}[chapter] \newtheorem{claim}[theorem]{Claim} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \begin{document} \tableofcontents \chapter{first} \begin{claim} Mountain dew rocks. \end{claim} \section{1} \section*{Proof} \begin{lemma}[Dr. Strangelove's last line.] Mein F\"uhrer, I can walk! \end{lemma} \begin{appendix} \chapter{First Appendix} \begin{theorem} Halo! \end{theorem} \begin{lemma} world! \end{lemma} \end{appendix} \end{document}
\documentclass[12pt]{beamer} \usepackage{color} \usepackage{fontspec} \defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text} \setmainfont{Cambria} \setsansfont[Scale=0.95]{Candara} \setmonofont{Consolas} \title{Overlay Examples} \subtitle{Overlay} \author{Kilgore Trout} \institute[Tralfamadore] {Tralfamadore Institute of Technology} \usetheme{Madrid} \begin{document} \begin{frame}[fragile] \frametitle{Overlay Examples} \begin{itemize} \item Successive \color{red}\verb|\only<n>{..}|\\ \color{gray}\verb|\only<1>{Abra}\only<2>{Cada}\only<3>{Bra}| \color{black}$\Rightarrow$ \only<1>{Abra}\only<2>{Cada}\only<3>{Bra} \onslide<4-> \item \color{red}\verb|\uncover<n>{..}| \color{black}shows at given n. \\ \color{gray}\verb|\uncover<5>{I am 5}| \color{black}$\Rightarrow$ \uncover<5>{I am 5} \onslide<6-> \item \color{red}\verb|\invisible<n>{..}| \color{black}hides at given n.\\ \color{gray}\verb|\invisible<8>{Invisible at 8}| \color{black}$\Rightarrow$ \invisible<8>{Invisible at 8} \onslide<10-> \item \color{red}\verb|\alt<n>{at n}{not at n}| \color{black}for two alternatives. \\ \color{gray}\verb|\alt<11>{I am 11}{I am not 11}| \color{black}$\Rightarrow$ \alt<11>{I am 11}{I am not 11} \onslide<13-> \item\color{red}\verb|\temporal<n>{before}{at n}{after}| \color{black}for three alternatives. \\ \color{gray}\verb|\temporal<14>{I am 13}{I am 14}{I am 15}| \color{black}$\Rightarrow$ \temporal<14>{I am 13}{I am 14}{I am 15} \end{itemize} \onslide<15-> \onslide<1-> \begin{center} \Large Slide \texttt{\thepage} \end{center} \end{frame} \end{document}
\documentclass{article} \usepackage[papersize={85mm, 25mm}, text={75mm, 20mm}]{geometry} \usepackage{pgf, tikz} \usetikzlibrary{arrows,automata} \begin{document} \begin{figure}[h] \footnotesize \centering \begin{tikzpicture}[ % type of arrow head >=stealth', % keep arrow head from touching the surface shorten >= 1pt, % automatic node positioning auto, % node distance=1.5cm, % line thickness semithick, % text for the initial state arrow. I left it as blank initial text=] \tikzstyle{every state}=[draw=blue!50, thick, fill=blue!20, minimum size=4mm] \node[state] (v1) {$v_1$}; \node[state] (v2) [right of=v1] {$v_2$}; \node[state] (v3) [right of=v2] {$v_3$}; \node[state] (v4) [right of=v3] {$v_4$}; \node[state] (v5) [right of=v4] {$v_5$}; \path[->] (v1) edge (v2); \path[->] (v3) edge (v4); \path[->] (v4) edge (v5); \path[->, bend right, bend angle = 5] (v2) edge (v5); \path[->, bend left, bend angle = 25] (v1) edge (v3); \end{tikzpicture} \end{figure} \end{document}