독립형 및 비머, 미리보기 및 자르기

독립형 및 비머, 미리보기 및 자르기

후속 조치슬라이드를 만들지 않고 tikz에서 비머 도구 사용하기:

standalonebeamervia 옵션 의 조합이 preview작동한다면 훌륭하겠지만 (독립형 매뉴얼의) 이 간단한 예제도 내가 기대하는 두 페이지 대신에 단 한 페이지의 PDF를 생성합니다.

\documentclass[beamer,preview]{standalone}

\begin{document}

\begin{standaloneframe}[] 
\only<1>{ One }
\only<2>{ Two }
\end{standaloneframe}

\end{document}

미리보기가 없으면 예상되는 두 페이지가 제공되지만 잘리지는 않습니다.

그리고 다른 질문에 보고된 결과 crop대신 .preview! Improper \prevdepth. \newpage ...everypar {}\fi \par \ifdim \prevdepth

안정적으로 작업할 수 있다면 정말 좋을 것입니다.

답변1

pdfcrop페이지를 자르는 데 사용할 수 있습니다 . 수동으로 실행하거나

pdfcrop filename.pdf

컴파일 후 또는 독립적으로 실행하도록 트릭한 후(셸 탈출이 활성화되어야 함):

% !TeX program = txs:///arara
% arara: pdflatex: {synctex: on, interaction: nonstopmode, shell: yes}

\documentclass[beamer,convert={command=\unexpanded{{/usr/local/texlive/2023/bin/universal-darwin/pdfcrop\space \infile}}}]{standalone}

\begin{document}

\begin{standaloneframe}[] 
\only<1>{ One one }
\only<2>{ Two }
\end{standaloneframe}

\end{document}

관련 정보