新闻通讯模板中的列问题

新闻通讯模板中的列问题

我正在尝试使用现成的模板来制作一个非常简单的出版物。但是,文档中的列存在问题。

模板如下:

这是我正在尝试制作的新闻稿。如您所见,第二页的列存在问题:

列问题

以下是代码:

%%% LaTeX Template: Newsletter
%%%
%%% Source: http://www.howtotex.com/
%%% Feel free to distribute this template, but please keep the referal to HowToTeX.com.
%%% Date: September 2011


%%% ---------------
%%% PREAMBLE
%%% ---------------
\documentclass[10pt,a4paper]{article}

% Define geometry (without using the geometry package)
\setlength\topmargin{-48pt}
\setlength\headheight{0pt}
\setlength\headsep{25pt}
\setlength\marginparwidth{-20pt}
\setlength\textwidth{7.0in}
\setlength\textheight{9.5in}
\setlength\oddsidemargin{-30pt}
\setlength\evensidemargin{-30pt}

\frenchspacing                      % better looking spacing

% Call packages we'll need
\usepackage[english]{babel}         % english
\usepackage{graphicx}               % images
\usepackage{amssymb,amsmath}        % math
\usepackage{multicol}               % three-column layout
\usepackage{url}                    % clickable links
\usepackage{marvosym}               % symbols
\usepackage{wrapfig}                % wrapping text around figures
\usepackage[T1]{fontenc}            % font encoding
\usepackage{charter}                % Charter font for main content
\usepackage{blindtext}              % dummy text
\usepackage{datetime}               % custom date
\usepackage[utf8]{inputenc}


    \newdateformat{mydate}{\monthname[\THEMONTH] \THEYEAR}
\usepackage[pdfpagemode=FullScreen,
        colorlinks=false]{hyperref} % links and pdf behaviour

% Customize (header and) footer
\usepackage{fancyhdr}
\pagestyle{fancy}
\lfoot{ \footnotesize 
        Boletín de Miura 42\\
        \Mundus\ \href{http://www.howtotex.com}{HowToTeX.com}   \quad
        \Telefon\ 555-5555                                          \quad
        \Letter\ \href{mailto:[email protected]}{[email protected]}
      }
\cfoot{}
\rfoot{\footnotesize ~\\ Página \thepage}
\renewcommand{\headrulewidth}{0.0pt}    % no bar on top of page
\renewcommand{\footrulewidth}{0.4pt}    % bar on bottom of page

%%% ---------------
%%% DEFINITIONS
%%% ---------------

% Define separators
\newcommand{\HorRule}[1]{\noindent\rule{\linewidth}{#1}} % Creating a horizontal rule
\newcommand{\SepRule}{\noindent                          % Creating a separator
                        \begin{center}
                            \rule{250pt}{1pt}
                        \end{center}
                        }                       

% Define Title en News input
\newcommand{\JournalName}[1]{%
        \begin{center}  
            \Huge \usefont{T1}{augie}{m}{n}
            #1%
        \end{center}    
        \par \normalsize \normalfont}

\newcommand{\JournalIssue}[1]{%
        \hfill \textsc{\mydate \today, No #1}
        \par \normalsize \normalfont}

\newcommand{\NewsItem}[1]{%
        \usefont{T1}{augie}{m}{n}   
        \large #1 \vspace{4pt}
        \par \normalsize \normalfont}

\newcommand{\NewsAuthor}[1]{%
            \hfill by \textsc{#1} \vspace{4pt}
            \par \normalfont}       


%%% ---------------
%%% BEGIN DOCUMENT
%%% ---------------
\begin{document}
% Title 
% -----
\JournalIssue{1}
\JournalName{Miura 42}
\noindent\HorRule{3pt} \\[-0.75\baselineskip]
\HorRule{1pt}
% -----

% Front article
% -----
\vspace{0.5cm}
    \SepRule
\vspace{0.5cm}

\begin{center}
\begin{minipage}[h]{0.75\linewidth}
    \begin{wrapfigure}{l}{0.41\textwidth}
        \includegraphics[width=0.42\textwidth]{frog.jpg}
        \\  % this spacer is needed to make the text on the right fit OK
    \end{wrapfigure}

    \NewsItem{Una nueva E-zine}


TEXT

\end{minipage}
\end{center}
% -----


% Other news (1)
% -----
\vspace{0.5cm}
    \SepRule
\vspace{0.5cm}
\begin{multicols}{3}
    \NewsItem{Sobre Miura 42}
    \NewsAuthor{Fulanito}

         TEXT
% -----

\vspace{1cm}
% Other news (2)
% -----
\NewsItem{Sobre el nombre (que desvela el misterio de la vida, el universo y todo         lo     demás)}


        \begin{center}
            \includegraphics[width=0.8\linewidth]{elephant}
        \end{center}




\vspace{0.5cm}
    \SepRule
\vspace{0.5cm}
\begin{multicols}{3}
    \NewsItem{Calibratio}
    \NewsAuthor{Fulanito}


    TEXT

\end{multicols}
% -----
\end{document} 

我不知道我做错了什么。我只是想创建比原始模板稍长一点的新闻稿,但我不知道如何修复列。

提前致谢。

答案1

我稍微修正了您给出的 MWE。因此,我添加了适当的内容\headheight以消除消息 a (原始) 0ptheadheigth 太小。我还添加了缺失的内容\end{muticolumn}(参见 MWE 中标记的两行,其中有一些%%%%%%%%%%%%%%%%%%%%%。我将语言更改为英语,因为我不懂法语并且出现错误(缺少 e-frensh)。请将其改回来。我使用\blindtext\Blindtext为新闻传呼机创建了 3 页。不要忘记并删除[demo]graphicx,我没有您的图像...

请测试以下 MWE(当前 MiKTeX 2.9 没有错误消息或警告):

%%% LaTeX Template: Newsletter
%%%
%%% Source: http://www.howtotex.com/
%%% Feel free to distribute this template, but please keep the referal to HowToTeX.com.
%%% Date: September 2011


%%% ---------------
%%% PREAMBLE
%%% ---------------
\documentclass[10pt,a4paper]{article}

% Define geometry (without using the geometry package)
\setlength\topmargin{-48pt}
\setlength\headheight{12pt}  %needed for header/footer
\setlength\headsep{25pt} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength\marginparwidth{-20pt}
\setlength\textwidth{7.0in}
\setlength\textheight{9.5in}
\setlength\oddsidemargin{-30pt}
\setlength\evensidemargin{-30pt}

\frenchspacing                      % better looking spacing

% Call packages we'll need
\usepackage[english]{babel}         % english
\usepackage[demo]{graphicx}               % images %%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amssymb,amsmath}        % math
\usepackage{multicol}               % three-column layout
\usepackage{url}                    % clickable links
\usepackage{marvosym}               % symbols
\usepackage{wrapfig}                % wrapping text around figures
\usepackage[T1]{fontenc}            % font encoding
\usepackage{charter}                % Charter font for main content
\usepackage{blindtext}              % dummy text
\usepackage{datetime}               % custom date
\usepackage[utf8]{inputenc}


\newdateformat{mydate}{\monthname[\THEMONTH] \THEYEAR}
\usepackage[pdfpagemode=FullScreen,
        colorlinks=false]{hyperref} % links and pdf behaviour

% Customize (header and) footer
\usepackage{fancyhdr}
\pagestyle{fancy}
\lfoot{ \footnotesize 
        Boletín de Miura 42\\
        \Mundus\ \href{http://www.howtotex.com}{HowToTeX.com}   \quad
        \Telefon\ 555-5555                                          \quad
        \Letter\ \href{mailto:[email protected]}{[email protected]}
      }
\cfoot{}
\rfoot{\footnotesize ~\\ Página \thepage}
\renewcommand{\headrulewidth}{0.0pt}    % no bar on top of page
\renewcommand{\footrulewidth}{0.4pt}    % bar on bottom of page

%%% ---------------
%%% DEFINITIONS
%%% ---------------

% Define separators
\newcommand{\HorRule}[1]{\noindent\rule{\linewidth}{#1}} % Creating a horizontal rule
\newcommand{\SepRule}{%
  \noindent                          % Creating a separator
    \begin{center}
      \rule{250pt}{1pt}
    \end{center}
}                       

% Define Title en News input
\newcommand{\JournalName}[1]{%
        \begin{center}  
            \Huge \usefont{T1}{augie}{m}{n}
            #1%
        \end{center}    
        \par \normalsize \normalfont}

\newcommand{\JournalIssue}[1]{%
        \hfill \textsc{\mydate \today, No #1}
        \par \normalsize \normalfont}

\newcommand{\NewsItem}[1]{%
        \usefont{T1}{augie}{m}{n}   
        \large #1 \vspace{4pt}
        \par \normalsize \normalfont}

\newcommand{\NewsAuthor}[1]{%
            \hfill by \textsc{#1} \vspace{4pt}
            \par \normalfont}       


%%% ---------------
%%% BEGIN DOCUMENT
%%% ---------------
\begin{document}
% Title 
% -----
\JournalIssue{1}
\JournalName{Miura 42}
\noindent\HorRule{3pt} \\[-0.75\baselineskip]
\HorRule{1pt}
% -----

% Front article
% -----
\vspace{0.5cm}
  \SepRule
\vspace{0.5cm}

\begin{center}
\begin{minipage}[h]{0.75\linewidth}
  \begin{wrapfigure}{l}{0.41\textwidth}
      \includegraphics[width=0.42\textwidth]{frog.jpg}
      \\  % this spacer is needed to make the text on the right fit OK
  \end{wrapfigure}

  \NewsItem{Una nueva E-zine}


  \blindtext

  \blindtext

\end{minipage}
\end{center}
% -----


% Other news (1)
% -----
\vspace{0.5cm}
    \SepRule
\vspace{0.5cm}
\begin{multicols}{3} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \NewsItem{Sobre Miura 42}
    \NewsAuthor{Fulanito}

    \blindtext

    \blindtext
% -----

\vspace{1cm}
% Other news (2)
% -----
\NewsItem{Sobre el nombre (que desvela el misterio de la vida, el universo y todo         lo     demás)}

  \begin{center}
    \includegraphics[width=0.8\linewidth]{elephant}
  \end{center}

\end{multicols} %%%%%%%%%%%%%%%%%%%%missing%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\vspace{0.5cm}
    \SepRule
\vspace{0.5cm}
\begin{multicols}{3}
    \NewsItem{Calibratio}
    \NewsAuthor{Fulanito}

    \Blindtext

    \Blindtext

\end{multicols}
% -----
\end{document} 

相关内容