Max Bian wrote:
> The attached files contain one lyx file showing a footnote problem. The
> .tex file is the exported latex.
>
> I noticed that some codes are inserted:
>
> %% LyX specific LaTeX commands.
> \providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
> %% Special footnote code from the package 'stblftnt.sty'
> %% Author: Robin Fairbairns -- Last revised Dec 13 1996
> \let\SF@@footnote\footnote
> \def\footnote{\ifx\protect\@typeset@protect
> \expandafter\SF@@footnote
> \else
> \expandafter\SF@gobble@opt
> \fi
> }
> \expandafter\def\csname SF@gobble@opt \endcsname{\@ifnextchar[%]
> \SF@gobble@twobracket
> \@gobble
> }
> \edef\SF@gobble@opt{\noexpand\protect
> \expandafter\noexpand\csname SF@gobble@opt \endcsname}
> \def\SF@gobble@twobracket[#1]#2{}
>
> %% User specified LaTeX commands.
>
> This code (from lyx_sty.C) seems causing problem. Five error boxes
> popup regarding this code.
what happens with the attached file?
Herbert
--
http://www.lyx.org/help/
#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass scrreprt
\begin_preamble
\usepackage{babel}
\include{config}
\listfiles
\end_preamble
\language english
\inputencoding auto
\fontscheme bookman
\graphics dvips
\paperfontsize 12
\spacing onehalf
\papersize letterpaper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\leftmargin 1.5in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\headheight 0in
\headsep 0in
\footskip 0.5cm
\secnumdepth 4
\tocdepth 4
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Standard
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
begin{bibunit}[unsrt]
\end_inset
\layout Chapter
The new technology What is the problem?
\layout Subsection
What is the problem?
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
protect
\backslash
footnotemark
\end_inset
\layout Standard
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
footnotetext{
\backslash
cite{PolymerChem},
\backslash
cite{Polymer_elp} and
\backslash
cite{Electrodynamics}.}
\end_inset
Dielectric constant (
\begin_inset Formula $\kappa $
\end_inset
) is one of the electrical properties of.
\layout Standard
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
end{bibunit}
\end_inset
\the_end
\usepackage{drftcite}
\usepackage{lscape}
\usepackage{pstcol}
\usepackage{bibunits}
\usepackage{textcomp}
\usepackage{afterpage}
% Settings
\interfootnotelinepenalty=1
\setlength{\abovecaptionskip}{0.5cm} % 0.5cm as an example
\setlength{\belowcaptionskip}{0.5cm} % 0.5cm as an example
% Caption Stuff
\let\oldcaption=\caption
\renewcommand{\caption}[1]{
\ifx \shortcaption \undefined
\oldcaption{#1}
\else
\oldcaption[\shortcaption]{\shortcaption \ #1}
\fi
}
\newcommand{\setshortcaption}[1]{
\newcommand{\shortcaption}{#1}
}
\usepackage[ps2pdf,pdfauthor={Max Bian}, linkcolor={blue}, linktocpage, letterpaper,
colorlinks={true}, citecolor={blue}]{hyperref}