Text FormattingText coming out in incorrect format

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Text coming out in incorrect format

Post by bazman »

Hi there when I run the following code the line "Spanning forward rates are denoted by." comes out in a smilar style to \emph{} but with no spaces in between it?

It seems weird o me the sentence just follows on from teh previous one which deisplays correctly? Why is this last line different?

Also if I want the equation to appear in the center of the page how can I do this?

Code: Select all


\documentclass{article} % Your input file must contain these two lines
\usepackage{natbib}
\begin{document} % plus the \end{document} command at the end.
\section{LMM} % This command makes a section title.
Following the presentation in Rebonato et al 2009.
A discrete set of default-free discount bonds are assumed to trade in the economy P_t^i. Spanning forward rates are denoted by.

\begin{align*}
Var(X_t) =\sigma{(\sigma^2 + \theta^2 \kappa) t} \\
\end{align*} 

 \emph{this is emphasized}.
Bold text is typed like this: \textbf{this is bold}.
\subsection{A Warning or Two} % This command makes a subsection title.
If you get too much space after a mid-sentence period---abbreviations
like etc.\ are the common culprits)---then type a backslash followed by
a space after the period, as in this sentence.
Remember, don't type the 10 special characters (such as dollar sign and
backslash) except as directed! The following seven are printed by
typing a backslash in front of them: \$ \& \# \% \_ \{ and \}.
The manual tells how to make other symbols.
\bibliographystyle{plainnat}
\bibliography{volsmile2}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Text coming out in incorrect format

Post by localghost »

There is an error which can be found in the log file. Subscripts and superscripts can only be done this way in math mode.

Code: Select all

A discrete set of default-free discount bonds are assumed to trade in the economy
$P_t^i$. Spanning forward rates are denoted by.
Refer to our special topic for novices [1]. There you will find some basic reading about such things.

[1] View topic: LaTeX Resources for Beginners


Best regards
Thorsten
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Text coming out in incorrect format

Post by gmedina »

Additionally, to use the align environment (or its starred version) you need the amsmath package. Add this to the preamble:

Code: Select all

\usepackage{amsmath}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Re: Text coming out in incorrect format

Post by bazman »

Again thank you to both of you!
Post Reply