Latex lyx问题:ps,pdf“;“未显示作者”;

Latex lyx问题:ps,pdf“;“未显示作者”;,latex,lyx,Latex,Lyx,我正在尝试写一篇基于VLDB.cls和.tex文件的论文,可以从中访问。它使用ACM SIG程序样式。在修复了许多错误后,现在我没有收到任何错误,但是当我将文件保存为pdf或ps时,我看不到作者姓名 标题和摘要没有显示,它们之间的代码没有显示 % ****************** TITLE **************************************** \title{Alternate {\ttlit ACM} SIG Proceedings Paper in LaTe

我正在尝试写一篇基于VLDB.cls和.tex文件的论文,可以从中访问。它使用ACM SIG程序样式。在修复了许多错误后,现在我没有收到任何错误,但是当我将文件保存为pdf或ps时,我看不到作者姓名

标题和摘要没有显示,它们之间的代码没有显示

% ****************** TITLE ****************************************

\title{Alternate {\ttlit ACM} SIG Proceedings Paper in LaTeX
Format\titlenote{(Produces...}}

\numberofauthors{3}
% Three authors sharing the same affiliation.
    \author{
      \alignauthor Ben King\\      
      \email{king@cs.berkeley.edu}
%
      \alignauthor Georgia Tobin\\     
      \email{tobin@cs.berkeley.edu}
%
      \alignauthor Gerald Murray\\    
      \email{murrray@cs.berkeley.edu}
%
      \sharedaffiliation
      \affaddr{Department of Electrical Engineering and Computer Science }  \\
      \affaddr{University of California, Berkeley }   \\
      \affaddr{Berkeley, CA 94720-1776 }
          }
%
\maketitle
我在Ubuntu上使用lyx

以下是作者的代码

% ****************** TITLE ****************************************

\title{A Sample {\ttlit VLDB} Proceedings Paper in LaTeX
Format\titlenote{for use with vldb.cls}}
\subtitle{[Extended Abstract]
\titlenote{A full version of this paper is available as\textit{Author's Guide to Preparing ACM SIG Proceedings Using \LaTeX$2_\epsilon$\ and BibTeX} at \texttt{www.acm.org/eaddress.htm}}}

% ****************** AUTHORS **************************************

% You need the command \numberofauthors to handle the 'placement
% and alignment' of the authors beneath the title.
%
% For aesthetic reasons, we recommend 'three authors at a time'
% i.e. three 'name/affiliation blocks' be placed beneath the title.
%
% NOTE: You are NOT restricted in how many 'rows' of
% "name/affiliations" may appear. We just ask that you restrict
% the number of 'columns' to three.
%
% Because of the available 'opening page real-estate'
% we ask you to refrain from putting more than six authors
% (two rows with three columns) beneath the article title.
% More than six makes the first-page appear very cluttered indeed.
%
% Use the \alignauthor commands to handle the names
% and affiliations for an 'aesthetic maximum' of six authors.
% Add names, affiliations, addresses for
% the seventh etc. author(s) as the argument for the
% \additionalauthors command.
% These 'additional authors' will be output/set for you
% without further effort on your part as the last section in
% the body of your article BEFORE References or any Appendices.

\numberofauthors{8} %  in this sample file, there are a *total*
% of EIGHT authors. SIX appear on the 'first-page' (for formatting
% reasons) and the remaining two appear in the \additionalauthors section.

\author{
% You can go ahead and credit any number of authors here,
% e.g. one 'row of three' or two rows (consisting of one row of three
% and a second row of one, two or three).
%
% The command \alignauthor (no curly braces needed) should
% precede each author name, affiliation/snail-mail address and
% e-mail address. Additionally, tag each line of
% affiliation/address with \affaddr, and tag the
% e-mail address with \email.
%
% 1st. author
\alignauthor
Ben Trovato\titlenote{Dr.~Trovato insisted his name be first.}\\
       \affaddr{Institute for Clarity in Documentation}\\
       \affaddr{1932 Wallamaloo Lane}\\
       \affaddr{Wallamaloo, New Zealand}\\
       \email{trovato@corporation.com}
% 2nd. author
\alignauthor
G.K.M. Tobin\titlenote{The secretary disavows
any knowledge of this author's actions.}\\
       \affaddr{Institute for Clarity in Documentation}\\
       \affaddr{P.O. Box 1212}\\
       \affaddr{Dublin, Ohio 43017-6221}\\
       \email{webmaster@marysville-ohio.com}
% 3rd. author
\alignauthor Lars Th{\Large{\sf{\o}}}rv{$\ddot{\mbox{a}}$}ld\titlenote{This author is the
one who did all the really hard work.}\\
       \affaddr{The Th{\large{\sf{\o}}}rv{$\ddot{\mbox{a}}$}ld Group}\\
       \affaddr{1 Th{\large{\sf{\o}}}rv{$\ddot{\mbox{a}}$}ld Circle}\\
       \affaddr{Hekla, Iceland}\\
       \email{larst@affiliation.org}
\and  % use '\and' if you need 'another row' of author names
% 4th. author
\alignauthor Lawrence P. Leipuner\\
       \affaddr{Brookhaven Laboratories}\\
       \affaddr{Brookhaven National Lab}\\
       \affaddr{P.O. Box 5000}\\
       \email{lleipuner@researchlabs.org}
% 5th. author
\alignauthor Sean Fogarty\\
       \affaddr{NASA Ames Research Center}\\
       \affaddr{Moffett Field}\\
       \affaddr{California 94035}\\
       \email{fogartys@amesres.org}
% 6th. author
\alignauthor Charles Palmer\\
       \affaddr{Palmer Research Laboratories}\\
       \affaddr{8600 Datapoint Drive}\\
       \affaddr{San Antonio, Texas 78229}\\
       \email{cpalmer@prl.com}
}
% There's nothing stopping you putting the seventh, eighth, etc.
% author on the opening page (as the 'third row') but we ask,
% for aesthetic reasons that you place these 'additional authors'
% in the \additional authors block, viz.
\additionalauthors{Additional authors: John Smith (The Th{\o}rv\"{a}ld Group,
email: {\texttt{jsmith@affiliation.org}}) and Julius P.~Kumquat
(The Kumquat Consortium, email: {\texttt{jpkumquat@consortium.net}}).}
\date{30 July 1999}
% Just remember to make sure that the TOTAL number of authors
% is the number that will appear on the first page PLUS the
% number that will appear in the \additionalauthors section.


\maketitle
我还尝试了另一种作者格式,但仍然没有显示作者姓名

% ****************** TITLE ****************************************

\title{Alternate {\ttlit ACM} SIG Proceedings Paper in LaTeX
Format\titlenote{(Produces...}}

\numberofauthors{3}
% Three authors sharing the same affiliation.
    \author{
      \alignauthor Ben King\\      
      \email{king@cs.berkeley.edu}
%
      \alignauthor Georgia Tobin\\     
      \email{tobin@cs.berkeley.edu}
%
      \alignauthor Gerald Murray\\    
      \email{murrray@cs.berkeley.edu}
%
      \sharedaffiliation
      \affaddr{Department of Electrical Engineering and Computer Science }  \\
      \affaddr{University of California, Berkeley }   \\
      \affaddr{Berkeley, CA 94720-1776 }
          }
%
\maketitle
此外,当我检查标题时,我看到:

Error in latexParagraphs: You should not mix title layouts with normal ones.
但是,我将我的文档视为dvi、ps或pdf

我不确定是什么导致了这个问题

编辑

虽然从.lyx转换为pdf或dvi,但我仍然看不到作者,通过使用shell命令,一切都很好。 我认为这是lyx的问题, 我花了8个小时来解决这个问题,说真的,我安装了Windows7LYX,并在那里进行了尝试,结果还是一样


谢谢lyx:)您在正常工作时表现良好。

您提到的链接中的
vldb.cls
类没有定义名为
\sharedafiliation
的命令。注释该代码允许编译文件并查看作者姓名:

\documentclass{vldb}
\title{Alternate {\ttlit ACM} SIG Proceedings Paper in LaTeX
Format\titlenote{(Produces...}}
\numberofauthors{3}
    \author{
      \alignauthor Ben King\\      
      \email{king@cs.berkeley.edu}
      \alignauthor Georgia Tobin\\     
      \email{tobin@cs.berkeley.edu}
      \alignauthor Gerald Murray\\    
      \email{murrray@cs.berkeley.edu}
%      \sharedaffiliation
      \affaddr{Department of Electrical Engineering and Computer Science }  \\
      \affaddr{University of California, Berkeley }   \\
      \affaddr{Berkeley, CA 94720-1776 }
    }
\begin{document}
\maketitle
\end{document}

不过,这样的地址很难看。由期刊定义如何显示具有单一附属关系的作者地址。不幸的是,示例文件没有做到这一点。在这种情况下,我会联系编辑并询问。

+1作为第1000个乳胶问题;)我也有一个类似的问题,就是作者没有展示出来。即使我在编译时没有任何错误。对我来说,只需将整个authors-TeX代码移到序言中就可以了,现在作者已经编译并显示出来了。标题和日期仍在文档中,切换的顺序(标题作者)不会引起任何问题。@user8472,是凌晨4点左右,等待10分钟后我必须睡觉。谢谢你的回答。顺便说一下,vldb为作者提供了第一个代码,另一个(第二个)代码来自acm网页。所以我还没有解决这个问题。您链接到的页面(ACM)提供了LaTeX的
vldb.cls
类文件的下载。此文件没有定义命令
\sharedafiliation
(甚至与之类似的东西也没有)。是否可能存在不同版本的类文件,或者您所引用的代码(“第二个”)是否存在差异参考另一个
.cls
文件?关于作者姓名下方的从属关系格式难看的问题,我得到的印象是,杂志希望在每个作者下方重复从属关系,即使他们有相同的从属关系。但这并不是一个真正的技术问题,而是一个文体问题(因此也是杂志的责任)。很抱歉错过了Lyx部分,我只关注乳胶方面。您确定Lyx使用了正确的类文件
vldb.cls
?输出是否看起来像原始LaTeX的输出(包括版权声明和字体等)?只是为了澄清:需要配置Lyx以使用正确的类文件;这里有关于如何做到这一点的文档:如果您看不到我在上面指出的内容(版权声明、相同的自定义字体等),这表明Lyx没有选择正确的类文件!