Jumat, 11 Oktober 2024

Latex Document Minimal 1

  1. Open the Latex editor.
  2. type this following Latex code in the Latex editor:
    % !TEX TS-program=pdflatex -shell-escape <filename.tex>
    % Author And Co-Author: github/Michael0x2a, stackoverflow/Display Name,Thorsten,Stefan Kottwitz, Private Course And Tutor Course
    \documentclass{minimal}
    %\pagestyle{empty}
    %\headheight=0pt
    %\headsep=0pt
    \usepackage{pstricks}
    \usepackage[crop=off]{auto-pst-pdf}
    \paperwidth=72.27pt
    \paperheight=72.27pt
    \topmargin=-72.27pt
    \oddsidemargin=-72.27pt
    \parindent=0sp
    \special{papersize=\the\paperwidth,\the\paperheight}
    \begin{document}
    \begin{pspicture}(\paperwidth,\paperheight)
    \psframe[linecolor=red](\paperwidth,\paperheight)
    \end{pspicture}
    \end{document}
  3. Save file as minimalPSTricks.tex
  4. Run the Typeset command or similar other command with pdflatex -shell-escape <file-name>.tex, from above example the <file-name>.tex is minimalPSTricks.tex.

Output



Notes

  • Compile Latex document with -shell-escape parameter or argument.
  • Well tested using TeXworks. Some Latex editor may not compile correctly.
  • You may get the best output last file name with -pics, for above example minimalPSTricks-pics.pdf
  • To see more clear picture, click on the picture.

Related Post

Tidak ada komentar:

Posting Komentar

Various Other Posts