Georg Baum wrote:
Am Montag, 18. Dezember 2006 15:07 schrieb Jean-Pierre Chretien:

I guess it's a typo, should read \input{preamble.tex}
\include is restricted to chapters, and must be in the document body.

It was no typo, I always confuse the two. Thanks for the correction.


Georg

Hi

I don't get it to work.
My setup is below, and I don't get any error messages concerning the \input{preamble.tex}. preamble.tex is in the same directory as the LyX file, but the preamble is not loaded, as \AIC gives an error message (when used in Math Mode).

Any ideas?

Rainer

###############################
BEGIN Preamble in LyX file

\input{preamble.tex}
\setcounter{chapter}{7}

END Preamble in LyX file
###############################


###############################
BEGIN preamble.tex

\usepackage{thumbpdf}
\usepackage{textcomp}
\usepackage{lmodern}
\usepackage{chapterbib}

\DeclareMathOperator{\AIC}{AIC}
\DeclareMathOperator{\AICc}{AIC_c}
\DeclareMathOperator{\FON}{FON}
\DeclareMathOperator{\PDK}{PDK}
\DeclareMathOperator{\ADK}{ADK}
\DeclareMathOperator{\Comp}{Comp}
\DeclareMathOperator{\ZOI}{ZOI}

\usepackage{dcolumn}
\newcolumntype{d}[1]{D{.}{.}{#1}}

\AtBeginDocument{\renewcommand\bibname{References}}

\hypersetup{pdftex}

###############################
END preamble.tex


BEGIN LyX Main Document translated into LaTeX
###############################
%% LyX 1.4.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[11pt,a4paper,twoside,british,PhD,afrikaans,english,backref=page,colorlinks=true]{usthesis}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{array}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{setspace}
\doublespacing
\usepackage[authoryear]{natbib}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\newcommand{\noun}[1]{\textsc{#1}}
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
 \usepackage[afrikaans, UKenglish]{babel}
 \usepackage{color}
    \definecolor{USmaroon}{rgb}{0.375,0.1328,0.2305}
    \definecolor{USgray}{rgb}{0.5469,0.5895,0.6016}
 \usepackage{graphicx}
 \usepackage[backref=page,breaklinks=true,colorlinks=true]{hyperref}
 \usepackage{thumbpdf}
 \usepackage{textcomp}
 \usepackage{lmodern}
 \usepackage{microtype}
 \newcommand{\address}{\adress} % spelling mistake in USThesis
 \AtBeginDocument{\renewcommand\bibname{References}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\input{preamble.tex}
\setcounter{chapter}{7}

\usepackage{babel}
\makeatother
\begin{document}
\input{Chapter_8_Hakea_and_biocontrol/Chapter_8_Hakea_and_Biocontrol.tex}

\input{Chapter_9_Hankea_from_Area_Source/Chapter_9_Hakea_from_area_source.tex}

\bibliographystyle{plainnatwithouturl}
\cleardoublepage\addcontentsline{toc}{chapter}{\bibname}\bibliography{/home/rkrug/Documents/Publications/PhD/Literature,/home/rkrug/Documents/Publications/PhD/Reprint_Collection}

\end{document}
###############################
END LyX Main Document translated into LaTeX
--
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Department of Conservation Ecology and Entomology
University of Stellenbosch
Matieland 7602
South Africa

Tel:            +27 - (0)72 808 2975 (w)
Fax:            +27 - (0)86 516 2782
Fax:            +27 - (0)21 808 3304 (w)
Cell:           +27 - (0)83 9479 042

email:  [EMAIL PROTECTED]
        [EMAIL PROTECTED]

Reply via email to