无法使用 \newpage

无法使用 \newpage

我对 Latex 完全是菜鸟,我想制作一个横向文档,没什么特别的,我只需要创建多个横向页面,每个页面中的文本都有非常特定的位置(每个页面的文本都是相同的),直到我只有一个页面时,一切正常,但是当我尝试使用 \newpage 时,即使它仍然可以编译,第二页也不会显示,我可能弄乱了代码中的一些东西,但正如我所说的,我是一个完全的菜鸟,我不明白哪里出了问题,任何帮助都将不胜感激:D

这是代码,

    % !TEX TS-program = pdflatex
    % !TEX encoding = UTF-8 Unicode

    % This is a simple template for a LaTeX document using the "article" class.
    % See "book", "report", "letter" for other types of document.

    \documentclass[11pt]{article} % use larger type; default would be 10pt

    \usepackage[landscape]{geometry}
    \usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)


    %%% Examples of Article customizations
    % These packages are optional, depending whether you want the features they provide.
    % See the LaTeX Companion or other references for full information.

    %%% PAGE DIMENSIONS
    \usepackage{geometry} % to change the page dimensions
    \geometry{a4paper} % or letterpaper (US) or a5paper or....
    \geometry{bottom=0.1in,top=0.1in,left=0.7in,right=0.7in} % for example, change the margins to 2 inches all round
    % \geometry{landscape} % set up the page for landscape
    %   read geometry.pdf for detailed page layout information

    \usepackage{graphicx} % support the \includegraphics command and options

    % \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent

    %%% PACKAGES
    \usepackage{booktabs} % for much better looking tables
    \usepackage{array} % for better arrays (eg matrices) in maths
    \usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
    \usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
    \usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
    % These packages are all incorporated in the memoir class to one degree or another...

    %%% HEADERS & FOOTERS
    \usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
    \pagenumbering{gobble}
    \pagestyle{empty} % options: empty , plain , fancy
    \renewcommand{\headrulewidth}{0pt} % customise the layout...
    \lhead{}\chead{}\rhead{}
    \lfoot{}\cfoot{\thepage}\rfoot{}

    %%% SECTION TITLE APPEARANCE
    \usepackage{sectsty}
    \allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
    % (This matches ConTeXt defaults)

    %%% ToC (table of contents) APPEARANCE
    \usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
    \usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
    \renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
    \renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!

    %%% END Article customizations

    %%% The "real" document content comes below...

    %\title{Brief Article}
    %\author{The Author}
    %\date{} % Activate to display a given date or no date (if empty),
             % otherwise the current date is printed 


    \usepackage[absolute,overlay]{textpos}

    \begin{document}


    \begin{textblock*}{5cm}(16cm,1.8cm) % {block width} (coords) 
       Nome Evento
    \end{textblock*}

    \begin{textblock*}{5cm}(13cm,2.7cm) % {block width} (coords) 
       Giorno
    \end{textblock*}

    \begin{textblock*}{5cm}(9cm,3.8cm) % {block width} (coords) 
      Razza
    \end{textblock*}

    \begin{textblock*}{5cm}(9cm,5cm) % {block width} (coords) 
      Loi
    \end{textblock*}

    \begin{textblock*}{5cm}(16cm,5cm) % {block width} (coords) 
       Codice Identificativo
    \end{textblock*}

    \begin{textblock*}{5cm}(24cm,5cm) % {block width} (coords) 
       Sesso
    \end{textblock*}

    \begin{textblock*}{5cm}(9.5cm,19.9cm) % {block width} (coords) 
       Giudice
    \end{textblock*}


    \newpage %%%% NOT WORKING FOR SOME REASON

    \begin{textblock*}{5cm}(16cm,1.8cm) % {block width} (coords) 
       Nome Evento
    \end{textblock*}

    \begin{textblock*}{5cm}(13cm,2.7cm) % {block width} (coords) 
       Giorno
    \end{textblock*}

    \begin{textblock*}{5cm}(9cm,3.8cm) % {block width} (coords) 
      Razza
    \end{textblock*}

    \begin{textblock*}{5cm}(9cm,5cm) % {block width} (coords) 
      Loi
    \end{textblock*}

    \begin{textblock*}{5cm}(16cm,5cm) % {block width} (coords) 
       Codice Identificativo
    \end{textblock*}

    \begin{textblock*}{5cm}(24cm,5cm) % {block width} (coords) 
       Sesso
    \end{textblock*}

    \begin{textblock*}{5cm}(9.5cm,19.9cm) % {block width} (coords) 
       Giudice
    \end{textblock*}

    \end{document}

先谢谢了

答案1

这些textblock内容是在“背景”中排版的(某种意义上),这不会给实际页面添加任何内容。因此,当\newpage出现并强制 latex 发送页面时,没有任何实际内容可以发送出去,因此\newpage会被忽略。

尝试简单地添加\strut一个

\strut\newpage

支柱是一条看不见的垂直线,但现在一些真实的东西,并\newpage可以发送出页面。

相关内容