Generalfractional slash

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
gwum
Posts: 2
Joined: Wed Dec 03, 2008 12:00 am

fractional slash

Post by gwum »

I need to put a fractional backward slash in an equation. I am unable to do that. If I put a normal slash it is very small....I want it to be a big slash (slanting). Is there any command in LAtex for that.

Recommended reading 2024:

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

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

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

fractional slash

Post by localghost »

I'm not sure if understand you right, but you could take a look at the nicefrac package.


Best regards and welcome to the board
Thorsten¹
gwum
Posts: 2
Joined: Wed Dec 03, 2008 12:00 am

fractional slash

Post by gwum »

I will try to explain my problem in more detail here.

I have written Eq. in pic1 in Latex:

The code is as follows:

Code: Select all

\begin{equation}\label{eq: CP}CP= \frac{c}{\sum_{i=1}^c
\left(\frac{\sum_{x_m\in C_i,x_m\neq x_{c_i}}u_{im}^2
R_{c_im}^2}{\sum_{x_m\in C_i,x_m\neq
x_{c_i}}u_{im}^2}\right)}\end{equation}

Now I want to write something like pic2 (call it Eq2)

Although a few variables are diff but the equation is the same. I am unable to place the slanting slash like the one in Eq. 2. A normal slash appears extremely small. How to make the slash bigger like in Eq. 2. I have looked at the 'nice frac' package but cannot find a solution to my problem.

I would appreciate if someone could help.
Attachments
pic2.JPG
pic2.JPG (5.84 KiB) Viewed 20427 times
pic1.JPG
pic1.JPG (5.57 KiB) Viewed 20429 times
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

fractional slash

Post by phi »

Try the following:

Code: Select all

\begin{equation}\label{eq: CP}CP= \frac{c}{\sum_{i=1}^c
\left(\sum_{x_m\in C_i,x_m\neq x_{c_i}}u_{im}^2
R_{c_im}^2 \middle/ \sum_{x_m\in C_i,x_m\neq
x_{c_i}}u_{im}^2\right)}\end{equation}
\middle makes the slash as large as the delimiters in the surrounding \left...\right group.
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

fractional slash

Post by coachbennett1981 »

I was looking at something similar. Didn't see if you every got your answer. Localhost had it right:

Code: Select all

$CP= \dfrac{c}{\sum_{i=1}^c
\left(\nicefrac{\sum_{x_m\in C_i,x_m\neq x_{c_i}}u_{im}^2
R_{c_im}^2}{\sum_{x_m\in C_i,x_m\neq
x_{c_i}}u_{im}^2}\right)}$
Post Reply