有一个可编译的 LaTeX2e 文件。需要修改它以用于 Springer 出版物。已下载宏并将其安装在 MiKTeX 中。插入后
\documentclass[smallextended]{svjour3}
出现2个问题。
\ institute is an undefined control sequence.
Cannot import this .tex file into Lyx:
tex2lyx -fixedenc -utf8 –f
\documentclass[english]{article}
\documentclass[smallextended]{svjour3}
\RequirePackage{fix-cm}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in,headheight=24pt,headsep=1cm,footskip=1cm}
\usepackage{babel}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage{mathptmx}
\usepackage{setspace}
\usepackage[unicode=true,
bookmarks=false,
breaklinks=false,pdfborder={0 0 1},backref=section,colorlinks=false]
{hyperref}
\makeatletter
回应:Springer 的软件包已在 MiKTeX 中重新安装。下面的 Latex 编译。此 .tex 文件不会导入 Lyx。运行时发生错误:
tex2lyx -fixedenc -utf8 -f
元件来源: https://wiki.lyx.org/Examples/Springer 对于 svjour3,Springer 的期刊类别:1. 提取ftp://ftp.springer.de/pub/tex/latex/svjour3/global.zip到 C:\Program Files\MiKTeX 2.9\tex\latex\springer。通知 MiKTeX 上面安装的文件。这可以通过以下方式完成:1. 在 Windows 开始菜单中打开 MiKTeX 2.9→维护(管理员)→设置(管理员)(如果针对所有用户)或 MiKTeX 2.9→维护->设置(如果针对当前用户)。2. 单击按钮刷新 FNDB。• 通知 LyX 上面安装的文件。这可以通过以下方式完成:1. (重新)启动 LyX 2. 使用菜单工具→重新配置
\documentclass[smallextended]{svjour3}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in,headheight=24pt,headsep=1cm,footskip=1cm}
\usepackage{graphicx}
\usepackage[unicode=true,
bookmarks=false,
breaklinks=false,pdfborder={0 0 1},backref=section,colorlinks=false]
{hyperref}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage[USenglish]{babel}
\makeatother
\begin{document}
\title{The Lxxx Convolution and Convolution Probability Function}
\author{By Jay A. Lxxx, PhD}
\maketitle
\institute{Jay A. Lxxx, PhD \
Bter \\
1870 Pista Drive \\
Myville, NC 29991 \\
Tel.: (899) 698-0033\\
\email{[email protected]} % \\
% \emph{Present address:} of F. Author % if needed
}
\date{Received: date / Accepted: date}
% The correct dates will be entered by the editor
\begin{abstract}
This article has two parts and an addendum. In the first part, two
indicators along with an associated probability function are introduced
to enhance the arsenal of traders' tools. The Hull Moving Average
as described by its creator, Alan Hull, is the fastest of all moving
averages. Its construction is build from weighted moving averages.
The new indicators, although not moving averages, behave similarly,
and are not only faster than the Hull, but forecast market behavior
a few bars. The probability function sharply identifies turns in the
market.
\end{abstract}
\keywords{Hull Moving Average, Linear Regression, Probability, Extrapolation,
Stock Options} \PACS{G17 \and C51 \and C52, C53}
\section{Definition of the Lxxx Convolution Tools}
\subsection{Linear Regression and the Hull Moving Average}
\paragraph{The Hull Moving Average {[}HMA{]} was introduced in 2005. According
to Hull, `The Hull Moving Average solves the age old dilemma of making
a moving average more responsive to current price activity whilst
maintaining curve smoothness. In fact the HMA almost eliminates lag
altogether and manages to improve smoothing at the same time.' (\protect\protect\protect\protect\href{http://alanhull.com/hull-moving-average/}{How to reduce lag in a moving average})}
\paragraph{Since its introduction the Hull has found popularity with stock,
stock option and currency traders. Effectively, the Hull Moving Average
is faster than all other moving averages. In addition, it is smoother
than them. Because of this many accept that a bull trend is determined}
\begin{figure}
\begin{centering}
\protect\includegraphics[clip]{\string"Fig 1\string".jpg}
\par\end{centering}
\protect\caption{Details 31 bars of daily SPY data, its moving linear regression, Hull
interpolation and Hull Moving Average.}
\end{figure}
\paragraph{when only 2 consecutive points indicate a rising market; bear when
falling. Its speed is the square root of its length. The speed of
a simple moving average is a much larger half its length. }
\paragraph{}
\end{document}
答案1
重新安装 Miktex 和 Springer 宏。现在可识别宏。