Skip to content

Instantly share code, notes, and snippets.

@zr-tex8r
Created April 12, 2018 00:23
Show Gist options
  • Save zr-tex8r/9c9114d09cdd20953ea32101f71d832a to your computer and use it in GitHub Desktop.
Save zr-tex8r/9c9114d09cdd20953ea32101f71d832a to your computer and use it in GitHub Desktop.
LaTeX: dvipsでPDFを作る際にナントカBoxのサイズを指定する
% LaTeX + dvips
\documentclass[a4paper]{article}
\textwidth=250bp \oddsidemargin=-1in \evensidemargin=-1in
\textheight=250bp \topmargin=-1in \headheight=0pt \headsep=0pt
\AtBeginDvi{%
\special{papersize=250bp 250bp}%
\special{ps:SDict begin
[ /CropBox [0 0 200 200] /PAGE pdfmark
[ /BleedBox [0 0 150 150] /PAGE pdfmark
[ /TrimBox [0 0 100 100] /PAGE pdfmark
[ /ArtBox [0 0 50 50] /PAGE pdfmark
end}%
}
\begin{document}
\noindent\hbox{}\vfill
\font\fa=ipxm-r-u26 at 196bp
\noindent\fa\raise.12em\hbox{\char3}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment