Text FormattingError in code

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

Error in code

Post by Rahul »

Code: Select all

\noindent
 ${b_{1_{new}}$ and $b_{k_{new}}\}$ in the equations 4.5 and 4.6 are integers.Their fractional part is ignored.Apply ${s_{i_{new}}$ and ${o_{i_{new}}}$ to \${{a_{k+1} ,a_{k+2} ,a_{k+3} ,...,a_{n}\}}$ producing \${b_{(k+1)_{new}},b_{(k+2)_{new}},b_{(k+3)_{new}},...,b_{n_{new}}\}$. Now,we write only \${b_{1_{new}},b_{(k+1)_{new}},b_{(k+2)_{new}},...,b_{n_{new}}\}$ over the corresponding pixels of $R_i$.
Required output is given in figure. Please check the code and tell the error.I hv tried many times.Ty in advance.
Attachments
Untitled.jpg
Untitled.jpg (35.46 KiB) Viewed 2617 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Error in code

Post by localghost »

Be more careful in placing backslashes (\) and braces ({}).

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools}  % loads »amsmath«

\begin{document}
  \noindent
  $b_{1_\text{new}}$ and $b_{k_\text{new}}$ in the equations 4.5 and 4.6 are integers.
  Their fractional part is ignored. Apply $s_{i_\text{new}}$ and $o_{i_\text{new}}$ to
  $\{{a_{k+1} ,a_{k+2} ,a_{k+3} ,\ldots,a_{n}\}}$ producing
  $\{b_{(k+1)_\text{new}}, b_{(k+2)_\text{new}}, b_{(k+3)_\text{new}}, \ldots, b_{n_\text{new}}\}$.
  Now, we write only $\{b_{1_\text{new}}, b_{(k+1)_\text{new}}, b_{(k+2)_\text{new}},\ldots, b_{n_\text{new}}\}$
  over the corresponding pixels of $R_i$.
\end{document}
For line breaks inside in-line math mode see here.


Remarks:


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply