-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathfull_page_pdf.tex
25 lines (24 loc) · 920 Bytes
/
full_page_pdf.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
% Use the preview package to generate "full-page" images, i.e. crop to the
% relevant parts of the figure
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
%\setlength\PreviewBorder{2mm} % use to add a border around the image
\usepackage{tikz}
\begin{document}
\begin{preview}
% Put everything you want inbetween \begin{preview} and \end{preview} or use
% \PreviewEnvironment{tikzpicture} in the preamble to only have the TikZ-
% picture in the output
\begin{tikzpicture}
\shade (0,0) circle(2); % background
\draw (0,0) circle(2); % rim
\draw (.75,1) circle(.5); % right eye
\fill (.66,.9) circle(.25); % right pupil
\draw (-.75,1) circle(.5); % left eye
\fill (-.66,.9) circle(.25);% left pupil
\fill (.2,0) circle (.1); % right nostril
\fill (-.2,0) circle (.1); % left nostril
\draw (-135:1) arc (-135:-45:1) -- cycle; % mouth
\end{tikzpicture}
\end{preview}
\end{document}