Text FormattingTo write a format of words

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Rahul
Posts: 29
Joined: Wed Jul 24, 2013 10:07 am

To write a format of words

Post by Rahul »

image prob.jpg
image prob.jpg (5.56 KiB) Viewed 5815 times
I wish to write simply as described in figure.

Recommended reading 2024:

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

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

Rahul
Posts: 29
Joined: Wed Jul 24, 2013 10:07 am

To write a format of words

Post by Rahul »

I have used \smash but the equal to sign is occuring in next line.
Last edited by cgnieder on Thu Jul 25, 2013 3:54 pm, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

To write a format of words

Post by cgnieder »

There is nothing really special about the formula. The formula in the picture is wrong, though: whoever typeset it forgot to mark the new labels as text with amsmath's \text{}. What you need is one of amsmath's multi-line environments (which are all explained both in amsmath and mathmode. Here's my proposal:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{gather*}
  s_{i_{\text{new}}}
  = \frac
      {a_k - a_1}
      {b_{k_{\text{new}}} - b_{1_{\text{new}}}} \\
  o_{i_{\text{new}}}
  = a_k - s_{i_{\text{new}}} \cdot b_{k_{\text{new}}}
\end{gather*}

\end{document}
Regards
site moderator & package author
Rahul
Posts: 29
Joined: Wed Jul 24, 2013 10:07 am

To write a format of words

Post by Rahul »

problem 22.jpg
problem 22.jpg (6.88 KiB) Viewed 5804 times
There is one more problem regarding the symbol summ. How to write x,y under these symbols.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

To write a format of words

Post by cgnieder »

I don't understand... simply use \sum_{x,y}!

Regards
site moderator & package author
Rahul
Posts: 29
Joined: Wed Jul 24, 2013 10:07 am

Re: To write a format of words

Post by Rahul »

:oops:
Rahul
Posts: 29
Joined: Wed Jul 24, 2013 10:07 am

Re: To write a format of words

Post by Rahul »

What about P ??? Had to use underset ???
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

To write a format of words

Post by cgnieder »

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
  \frac{\sum_{x,y} P_{x,y}^2}{\sum_{x,y}(P_{x,y}-\tilde{P}_{x,y})^2}
\]

\[
  \frac{\sum\limits_{x,y} P_{x,y}^2}{\sum\limits_{x,y}(P_{x,y}-\tilde{P}_{x,y})^2}
\]
\end{document}
I like the first one better...

Regards
site moderator & package author
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

To write a format of words

Post by localghost »

The new question has been split to this topic. Please ask only follow-ups to the initial question here.
Post Reply