LyX ⇒ PNAS layout in lyx
PNAS layout in lyx
Please not that the required pnastwoF.sty and pnastwo.cls are in the right place under /usr/share/texmf/tex/latex/PNAS, I am using Debian 7, and lyx does not complain about any of these two classes/styles.
Please see the following link for the PNAS journal's Latex templates and classes:
http://www.pnas.org/site/authors/LaTex.xhtml
or see the attached files.
Thanks for your help in advance.
- Attachments
-
- PNASTMPL.TEX
- PNAS LaTeX Template
- (8.24 KiB) Downloaded 311 times
-
- PNASTWOS.TEX
- Sample .TEX file
- (15.53 KiB) Downloaded 310 times
-
- pnastwo.cls
- PNAS Class File
- (97.8 KiB) Downloaded 306 times
-
- pnastwoF.sty
- PNAS Style File
- (10.24 KiB) Downloaded 347 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
PNAS layout in lyx
I had to disable the following in the preamble:
Code: Select all
%\usepackage[dvips]{graphicx}
%\usepackage{pnastwoF}
Code: Select all
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[pnastwo]{article (Proceedings of the National Academy of Science, PNAS)}
# Input general definitions
Input stdclass.inc
Code: Select all
Missing Number, treated as zero.
\maketitle
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
I still need to continue trying to sort this out until hopefully get some feedback from someone with better expertise in LATEX and LYX than myself.
Thanks
PNAS layout in lyx
I found the following forum http://tex.stackexchange.com/questions/ ... nt-find-hv in which the font-related problem are solved. Now I can activate the line : \usepackage{pnastwoF} in permeable.
Now lyx preamble look as following with no errors:
Code: Select all
%% ADDITIONAL OPTIONAL STYLE FILES
%\usepackage[dvips]{graphicx}
\usepackage{pnastwoF}
\usepackage{amssymb,amsfonts,amsmath}
%% OPTIONAL MACRO DEFINITIONS
\def\s{\sigma}
%%%%%%%%%%%%
%% For PNAS Only:
\url{www.pnas.org/cgi/doi/10.1073/pnas.0709640104}
\copyrightyear{2008}
\issuedate{Issue Date}
\volume{Volume}
\issuenumber{Issue Number}
\setcounter{page}{2687} %Set page number here if desired
%%%%%%%%%%%%
PNAS layout in lyx
Regarding the title and author error. I did the following to g round the above problem:
Simply use the following command in lyx instead of using the title, author etc from the menu.
Code: Select all
\title{Almost sharp fronts for the surface geostrophic equation}
\author{Roberta Graff\affil{1}{University of Cambridge, Cambridge, United Kingdom}, Javier de Ruiz Garcia\affil{2}{Universidad de Murcia, Bioquimica y Biologia Molecular, Murcia, Spain}, \and Franklin Sonnery\affil{2}{}}
\contributor{Submitted to Proceedings of the National Academy of Sciences of the United States of America}
\maketitle % The \maketitle command is necessary to build the title page
It seems that the PNAS class do not like the way how lyx handels the
Code: Select all
\maketitle
I must mention that I also tried both inserting Tables, Figures and Bibliographies and all worked fine.