Math & Science\in not working as expected

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Rahul
Posts: 29
Joined: Wed Jul 24, 2013 10:07 am

\in not working as expected

Post by Rahul »

hi,

Code: Select all


\documentclass[12pt,journal,compsoc]{IEEEtran}
\usepackage{alltt}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage{array}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{float}
\usepackage{lipsum}


\begin{document}
For a range block $R_i$, we calculate $s_i$, $o_i$ using the equations 4.2 and 4.3 and find the best matching domain block (for which the rms is minimum) in the same way as in previous method. Apply $s_i$ and $o_i$ on the first pixel $a_1$ of domain block to produce new range pixel ${b_{1_{new}}}$. Now, apply $s_i$ and $o_i$ to the next pixel $a_k$\in $\{a_2,a_3,...,a_n\}$ producing a value ${b_{k_{new}}}$. This new value bknew should not be equal to ${b_{1_{new}}}$. If they are equal we take the next pixel of domain block and produce new bknew until that is not equal to b1new. If ${b_{k_{new}}}$  \in $\{0,1,...,255\}$ 
we skip this pixel. We now calculate {s_{i_{new}}} and {o_{i_{new}}} as follows: 
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

\in not working as expected

Post by Johannes_B »

Hi guys,

\in is a mathematical construct and as such belongs into a mathematical environment. I added some more information for you inside the code, just have a look by clicking on Open in Writelatex.

Code: Select all

\documentclass[12pt,journal,compsoc]{IEEEtran}
\usepackage{mathtools}
\usepackage{hyperref}


\begin{document}
For a range block $R_i$, we calculate $s_i$, $o_i$ using the 
equations 4.2 and 4.3 and find the best matching domain block 
(for which the rms is minimum) in the same way as in previous 
method. Apply $s_i$ and $o_i$ on the first pixel $a_1$ of 
domain block to produce new range pixel ${b_{1_{new}}}$. Now, 
apply $s_i$ and $o_i$ to the next pixel $a_k \in \{a_2,a_3,
\dots,a_n\}$ producing a value ${b_{k_{new}}}$. This new value 
bknew should not be equal to ${b_{1_{new}}}$. If they are equal 
we take the next pixel of domain block and produce new bknew 
until that is not equal to b1new. If ${b_{k_{new}}}  \in 
\{0,1,...,255\}$ we skip this pixel. We now calculate 
${s_{i_{new}}}$ and 
${o_{i_{new}}}$ as follows: 


\section{FYI}
You can automatically number and reference equations, just like 
you can do with tables and figures. This is much more reliable, 
changes are easier. For example, the Pythagorean theorem is shown 
in equation~\ref{eq:pythagoras}, you can do this with 
autocite, too: \autoref{eq:pythagoras}

\begin{equation}
a^2 + b^2 = c^2
\label{eq:pythagoras}
\end{equation}
\end{document}
Best regards
Johannnes
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

\in not working as expected

Post by localghost »

I strongly recommend to do some basic reading. A question like this can be answered very easy by just reading some introductory material. This saves you a lot of time instead of waiting for an answer here. I know that you don't want to hear that, but it's a fact.

Furthermore we would appreciate it very much if you describe the problem with some additional words and the relevant error messages from the log file (*.log). And it is essential that you cut the problem down to a proper minimal example. All these things belong to an adequate problem description. You have been already told so already in your other questions. We don't want to repeat this for every question. Otherwise it can happen that you only get back code without any comments or no answer at all. We are no dogs here to which you can simply chuck a bone.

And just for your information, a proper example that demonstrates the problem could look like this.

Code: Select all

\documentclass[12pt,journal,compsoc]{IEEEtran}

\begin{document}
  \in
\end{document}
So, please do not call an example minimal if it is far from being one.


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