Created
April 30, 2016 13:33
-
-
Save munepi/7780258f3e3840d2517f7e35ba25f4f6 to your computer and use it in GitHub Desktop.
On adding crop marks with existing PDF files - JIS B5のPDFファイルにトンボをつけてA4のPDFファイルを生成する方法について
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %#!pdflatex | |
| \documentclass[pdftex,% b5paper%<- ISO B5 | |
| ]{article} | |
| \setlength{\paperwidth}{182mm}\setlength{\paperheight}{257mm}%<- JIS B5 | |
| \usepackage[cam,a4,center]{crop} | |
| \usepackage{pdfpages} | |
| \pagestyle{empty} | |
| \begin{document} | |
| \includepdf[pages=-,noautoscale]{foo-jisb5.pdf} | |
| \end{document} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %#!ptex2pdf -l -u | |
| \documentclass[dvipdfmx,b5paper]{ujarticle} | |
| \usepackage[cam,nodriver,a4,center]{crop} | |
| \usepackage{pdfpages} | |
| \pagestyle{empty} | |
| \makeatletter | |
| \iftombow | |
| \hoffset=\dimexpr (210mm - \paperwidth)/2 - 1in\relax | |
| \voffset=\dimexpr (297mm - \paperheight)/2 - 1in\relax | |
| \fi | |
| \makeatother | |
| \begin{document} | |
| \includepdf[pages=-,noautoscale]{foo-jisb5.pdf} | |
| \end{document} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %#!ptex2pdf -l -u | |
| \documentclass[dvipdfmx,tombo,b5paper]{ujarticle} | |
| \usepackage{pdfpages} | |
| \pagestyle{empty} | |
| \makeatletter | |
| \iftombow | |
| \hoffset=\dimexpr (210mm - \paperwidth)/2 - 1in\relax | |
| \voffset=\dimexpr (297mm - \paperheight)/2 - 1in\relax | |
| \fi | |
| \makeatother | |
| \begin{document} | |
| \includepdf[pages=-,noautoscale,offset=1in -1in]{foo-jisb5.pdf} | |
| \end{document} |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pTeX のトンボ

### crop パッケージの crop マーク