%20%ED%85%8D%EC%8A%A4%ED%8A%B8%20%EA%B8%B8%EC%9D%B4%EB%A1%9C%20%EC%84%A4%EC%A0%95.png)
페이지는 텍스트가 끝날 때 이루어져야 합니다. 따라서 "페이지"는 하나만 있습니다. 괜찮아요. 인쇄용이 아닙니다.
\documentclass[12pt]{article}
% Packages
\usepackage{lipsum,anyfontsize}
\usepackage[left=100px,right=100px,top=50px,bottom=50px,
paperwidth=1052px, paperheight=2250 px]{geometry} % max 15800 long
\begin{document}
\fontsize{35}{42}\selectfont
\lipsum[1-5]
\end{document}
이것은 보드용입니다. 사진을 업로드할 수 있으며(예, 사진으로 변환할 수 있습니다) 완벽한 형식(예: 1052px)이 있습니다.
단위가 픽셀 단위인 것이 매우 중요합니다.
더 나은/쉬운 글꼴(-크기)에 대한 조언은 높이 평가되지만 필요하지는 않습니다(글꼴은 px 단위를 사용하는 원인으로 믿을 수 없을 정도로 큽니다).
이걸 찾았어요"페이지" 크기를 문서 길이와 일치시키는 방법이 있습니까?하지만 나는 도움이 되지 않습니다. 저를 미워하지 마세요.
답변1
다음 예에서는 페이지 내용을 상자에 넣고 상자 크기를 측정한 후 페이지 높이에 맞게 치수가 수정된 페이지를 배송합니다. 이 예에서는 pdfTeX 또는 LuaTeX를 가정합니다. 여기에서 \pdf(h,v)origin
출력 \pdfpage(height,width)
페이지의 크기를 설정하는 데 사용할 수 있습니다.
% arara: pdflatex
\documentclass[12pt]{article}
\usepackage{lipsum,anyfontsize}
\makeatletter
\newcommand*{\PrintPageHeight}{%
\edef\PageHeightPt{\strip@pt\pdfpageheight pt}%
\edef\PageHeightPx{%
\strip@pt\dimexpr
% scaling operation with doubled precision
\pdfpageheight
*\dimexpr1pt\relax
/\dimexpr1px\relax
\relax
px
}%
\typeout{}%
\typeout{=> Page height = \PageHeightPt\space = \PageHeightPx}%
\typeout{}%
}
\makeatother
\newcommand*{\CheckPageHeight}{%
\ifdim\pdfpageheight>15800px %
\errmessage{Page height is too large!}%
\fi
}
\setlength{\paperwidth}{1052px}
\setlength{\textwidth}{\paperwidth}
\addtolength{\textwidth}{-200px}% 2 * 100px
\setlength{\pdfhorigin}{100px}
\setlength{\pdfvorigin}{50px}
\setlength{\pdfpagewidth}{\paperwidth}
\newsavebox{\PageBox}
\newenvironment{board}{%
\setbox\PageBox=\vbox\bgroup
\begingroup % for color support
}{%
\endgroup
\egroup
\setlength{\paperheight}{\ht\PageBox}%
\addtolength{\paperheight}{\dp\PageBox}%
\addtolength{\paperheight}{100px}% 2 * 50px
\setlength{\pdfpageheight}{\paperheight}%
\shipout\box\PageBox
\PrintPageHeight
\CheckPageHeight
}
\setlength{\maxdepth}{0pt}
\setlength{\topskip}{0pt}
\pagestyle{empty}
\begin{document}
\begin{board}
\fontsize{35}{42}\selectfont
\lipsum[1-5]
\end{board}
\end{document}
보고된 페이지 높이:
=> Page height = 2518.68092pt = 2509.26201px