- Open the Latex editor.
- type this following Latex code in the Latex editor:
% !TEX TS-program=pdflatex <filename.tex>
\documentclass{minimal}
%\pagestyle{empty}
%\headheight=0pt
%\headsep=0pt
\usepackage{tikz}
\paperwidth=72.27pt
\paperheight=72.27pt
\topmargin=-72.27pt
\oddsidemargin=-72.27pt
\parindent=0sp
\special{papersize=\the\paperwidth,\the\paperheight}
\begin{document}
\begin{tikzpicture}
\path[draw=red](0,0)rectangle(0.995\paperwidth,0.995\paperheight);
\end{tikzpicture}
\end{document} - Save file as minimalTikz.tex
- Run the Typeset command or similar other command with pdflatex <file-name>.tex, from above example is minimalTikz.tex.
Output
< Previous Latex Document Minimal 1
<< back to Study About Draw In Latex 2
Notes to see more clear picture, click on the picture
Bibliography
https://en.wikibooks.org/
https://latex.org/
https://www.bu.edu/
Tidak ada komentar:
Posting Komentar