Has anyone seen this problem before?  I have a short latex document (below
the dotted line) that latex crunches without error.  However, when I try to
import it into lyx (file-->import plain latex) lyx manages to create a .lyx
file but then hangs forever when it tries to read it (I've also put the
output .lyx file below the dotted line).

Here's what cygwin lyx 1.6.6 sends to the command shell when it tries to
read the .lyx file:

Warning: #LyX file created by tex2lyx 1.6.6

BufferParams::readToken(): Unknown token: default

BufferParams.cpp(2365): Unknown inputenc value `\font_roman'. Using `auto'
inst\
ead.



I have the same problem with lyx 1.6.7 on Windows 7 and 1.6.6 on Ubuntu.

Any clues would be greatly appreciated!

Scott

----- test.tex -----------------------------------

\documentclass[a4paper,10pt,fleqn]{article}


\usepackage[english]{babel}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{inputenc}
\usepackage{graphicx}
\usepackage[square,comma,sort&compress]{natbib}
\graphicspath{{../images/}}
\usepackage{url}
\usepackage{color}
\usepackage{subfigure}
\usepackage{setspace}
\usepackage[small,sc,bf]{caption}
\renewcommand{\captionfont}{\small\itshape}
\usepackage[dvips,bookmarks,bookmarksnumbered,colorlinks,linkcolor=black,filecolor=black,urlcolor=black,citecolor=blue]{hyperref}

% Fonts
%\usepackage{newcent} %palatino %times

% Line spacing
\renewcommand{\baselinestretch}{1.05}

% Citation format
\bibpunct{[}{]}{,}{n}{\hspace{-1mm}}{,}
%\citestyle{nature}
\renewcommand{\bibnumfmt}[1]{#1.}

% Page format
\setlength{\topmargin}{-5mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textwidth}{160mm}
\setlength{\textheight}{237mm}
\setlength{\parskip}{0.75\baselineskip}
\setlength{\parindent}{0pt}
\setlength{\bibsep}{0.25\baselineskip}

% Useful commands
\newcommand{\Pn}{$P_n$}
\newcommand{\argmin}{\mathop{\mathrm{arg\,min}}}
\newcommand{\vs}{\vspace{1mm}}
\newcommand{\vsm}{\vspace{2mm}}
\newcommand{\vst}{\vspace{3mm}}
\newcommand{\ie}{i.e.\ }
\newcommand{\eg}{e.g.\ }
\newcommand{\cf}{cf.\ }
\newcommand{\etal}{\it{et al.\ }}
\newcommand{\myit}[1]{\textit{#1}}
\newcommand{\abstitle}{{\bf{Abstract}}}
\newcommand{\abstext}[1]{\small{#1}}




\begin{document}



% Title Page
\thispagestyle{empty}
%{\footnotesize{Technical Report - DTU - Informatics and Mathematical
%    Modelling (\today)}}\\
{\footnotesize{\it published in} Wind Energy (2008)}


\vspace{1.2cm}
\begin{spacing}{1.6}
{\LARGE{\textbf{A \\
      Title}}}

\end{spacing}


\vspace{1cm}
\begin{spacing}{1.1}
\small{{\textbf{Scott Otterson$^*$, Pierre Pinson}}}\\
\noindent
\vsm
\footnotesize{DTU Informatics, Technical
  University of Denmark, Lyngby, Denmark\\}
\small{{\textbf{Another author}}}\\
\noindent
\footnotesize{A company, H{\o}rsholm, Denmark\\}
\vsm
\footnotesize{DTU Informatics, Technical University of Denmark,
  Lyngby, Denmark\\}
\end{spacing}



\vspace{1.4cm}
\begin{table}[!h]
 \centering
 \begin{tabular}{p{150mm}}
  \hline
  \\
  {\abstitle} \\
  \\
  \begin{spacing}{0.9}
   {\abstext{Short-term (up to 2-3 days ahead) probabilistic forecasts of
    wind power provide forecast users with a highly valuable
   information on the uncertainty of expected wind
   generation.}}
  \end{spacing}
  \\
  \begin{spacing}{0.9}
{\small{ \textbf{Keywords:} wind power, forecasting, uncertainty,
   multivariate Gaussian random variable, scenarios.}}
  \end{spacing}\\
  \hline
 \end{tabular}
\end{table}


\vspace{1.4cm}
\begin{spacing}{0.9}
 {\footnotesize{$^{*}$  \myit{Corresponding author:}}}\\
 {\footnotesize{S. Otterson,  \href{http://www.imm.dtu.dk}{DTU
 Informatics}, \href{http://www.dtu.dk}{Technical University of
 Denmark}, }}\\
 {\footnotesize{Richard Petersens Plads (bg.\ 305 - 010),
 DK-2800 Kgs.\ Lyngby, Denmark.}}\\
 {\footnotesize{Tel: +45 3421 3438, fax: +45 4588 2673, email:
 \href{mailto:[email protected]}{[email protected]}}, webpage:
 \href{http://www2.imm.dtu.dk/~scot}{www.imm.dtu.dk/$\sim$scot}}
\end{spacing}


\end{document}


---- test.lyx (the file created when lyx imports test.tex
------------------------------------

#LyX file created by tex2lyx 1.6.6
\lyxformat 264
\begin_document
\begin_header
\textclass article
\begin_preamble



\usepackage{amsfonts}\graphicspath{{../images/}}
\...@ifundefined{definecolor}
 {\usepackage{color}}{}
\usepackage{subfigure}\usepackage[small,sc,bf]{caption}\renewcommand{\captionfont}{\small\itshape}
\usepackage[dvips,bookmarks,bookmarksnumbered,colorlinks,linkcolor=black,filecolor=black,urlcolor=black,citecolor=blue]{hyperref}%
Fonts
%\usepackage{newcent} %palatino %times

% Line spacing
\renewcommand{\baselinestretch}{1.05}

% Citation format
\bibpunct{[}{]}{,}{n}{\hspace{-1mm}}{,}
%\citestyle{nature}
\renewcommand{\bibnumfmt}[1]{#1.}

% Page format
\setlength{\topmargin}{-5mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textwidth}{160mm}
\setlength{\textheight}{237mm}


\setlength{\bibsep}{0.25\baselineskip}

% Useful commands
\newcommand{\Pn}{$P_n$}
\newcommand{\argmin}{\mathop{\mathrm{arg\,min}}}
\newcommand{\vs}{\vspace{1mm}}
\newcommand{\vsm}{\vspace{2mm}}
\newcommand{\vst}{\vspace{3mm}}
\newcommand{\ie}{i.e.\ }
\newcommand{\eg}{e.g.\ }
\newcommand{\cf}{cf.\ }
\newcommand{\etal}{\it{et al.\ }}
\newcommand{\myit}[1]{\textit{#1}}
\newcommand{\abstitle}{{\bf{Abstract}}}
\newcommand{\abstext}[1]{\small{#1}}





\end_preamble
\options fleqn
\language english
\inputencoding
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 10
\spacing single
\papersize a4paper
\use_geometry false
\use_amsmath 2
\use_esint 1
\cite_engine natbib_authoryear
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip 0.75\baselineskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\end_header

\begin_body

\begin_layout Standard


\begin_inset ERT
status collapsed

\begin_layout Standard

% Title Page
\end_layout

\begin_layout Standard


\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
thispagestyle{empty}
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard

%{
\backslash
footnotesize{Technical Report - DTU - Informatics and Mathematical
\end_layout

\begin_layout Standard


\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard

%    Modelling (
\backslash
today)}}
\backslash

\backslash

\end_layout

\begin_layout Standard


\end_layout

\end_inset


\size footnotesize

\shape italic
published in
\family default
\series default
\shape default
 Wind Energy (2008)
\size default

\end_layout

\begin_layout Standard


\begin_inset VSpace 1.2cm
\end_inset


\end_layout

\begin_layout Standard
\paragraph_spacing other 1.6


\size largest

\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset


\series bold
A
\newline
 Title
\series default

\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\size default

\end_layout

\begin_layout Standard


\begin_inset VSpace 1cm
\end_inset


\end_layout

\begin_layout Standard
\paragraph_spacing other 1.1


\size small

\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset


\series bold
Scott Otterson
\begin_inset Formula $^*$
\end_inset

, Pierre Pinson
\series default

\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\newline

\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
vsm
\end_layout

\end_inset


\size footnotesize

\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset

DTU Informatics, Technical University of Denmark, Lyngby, Denmark
\newline

\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\size small

\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset


\series bold
Another author
\series default

\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\newline

\size footnotesize

\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset

A company, H
\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset

ø
\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset

rsholm, Denmark
\newline

\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
vsm
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset

DTU Informatics, Technical University of Denmark, Lyngby, Denmark
\newline

\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\noindent

\size footnotesize


\begin_inset VSpace 1.4cm
\end_inset


\begin_inset Float table
placement !h
wide false
sideways false
status open


\begin_layout Standard

\size footnotesize


\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
centering
\end_layout

\end_inset


\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="1">
<features>
<column alignment="none" valignment="top" width="150mm">
<row>
<cell alignment="none" valignment="top" usebox="none">
\begin_inset Text

\begin_layout Standard

\size footnotesize


\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
hline
\end_layout

\end_inset


\end_layout

\end_inset
</cell>
</row>
<row>
<cell alignment="none" valignment="top" usebox="none">
\begin_inset Text

\begin_layout Standard

\size footnotesize


\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
abstitle
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\end_layout

\end_inset
</cell>
</row>
<row>
<cell alignment="none" valignment="top" usebox="none">
\begin_inset Text

\end_inset
</cell>
</row>
<row>
<cell alignment="none" valignment="top" usebox="none">
\begin_inset Text

\begin_layout Standard
\paragraph_spacing other 0.9

\size footnotesize


\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
abstext{
\end_layout

\end_inset

Short-term (up to 2-3 days ahead) probabilistic forecasts of wind power
provide forecast users with a highly valuable information on the uncertainty
of expected wind generation.
\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\end_layout

\end_inset
</cell>
</row>
<row bottomline="true">
<cell alignment="none" valignment="top" bottomline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
\paragraph_spacing other 0.9

\size footnotesize


\size small

\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset


\series bold
Keywords:
\series default
 wind power, forecasting, uncertainty, multivariate Gaussian random
variable, scenarios.
\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\size footnotesize

\end_layout

\end_inset
</cell>
</row>
</lyxtabular>

\end_inset


\end_layout

\end_inset


\end_layout

\begin_layout Standard

\size footnotesize


\begin_inset VSpace 1.4cm
\end_inset


\end_layout

\begin_layout Standard
\paragraph_spacing other 0.9

\size footnotesize


\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset


\begin_inset Formula $^{*}$
\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
myit{
\end_layout

\end_inset

Corresponding author:
\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\size footnotesize

\newline

\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset

S. Otterson,
\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
href{http://www.imm.dtu.dk}{
\end_layout

\end_inset

DTU Informatics
\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset

,
\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
href{http://www.dtu.dk}{
\end_layout

\end_inset

Technical University of Denmark
\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset

,
\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\size footnotesize

\newline

\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset

Richard Petersens Plads (bg.\InsetSpace \space{}
305 - 010), DK-2800 Kgs.\InsetSpace \space{}
Lyngby, Denmark.
\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\size footnotesize

\newline

\begin_inset ERT
status collapsed

\begin_layout Standard

{
\end_layout

\end_inset

Tel: +45 3421 3438, fax: +45 4588 2673, email:
\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
href{mailto:[email protected]}{
\end_layout

\end_inset

[email protected]
\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset

, webpage:
\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
href{http://www2.imm.dtu.dk/~scot}{
\end_layout

\end_inset

www.imm.dtu.dk/
\begin_inset Formula $\sim$
\end_inset

scot
\begin_inset ERT
status collapsed

\begin_layout Standard

}
\end_layout

\end_inset


\size footnotesize

\end_layout

\end_body
\end_document

Reply via email to