Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to put the text right to the following equation, describing SVM kernels. Does anybody know how to put the name of kernels just to the right (not above or below) to the formula like:

 kernel 1
 kernel 2
 etc...

 \[
   K\left( {{X}_{i}},{{X}_{j}} \right)=
   \left\{ \begin{align}
     & {{X}_{i}}\bullet {{X}_{j}} \\ 
     & {{\left( \gamma {{X}_{i}}\bullet {{X}_{j}} \right)}^{d}} \\ 
     & \exp (-\gamma |{{X}_{i}}-{{X}_{j}}{{|}^{2}} \\ 
     & \tanh \left( \gamma {{X}_{i}}\bullet {{X}_{j}}+C \right) \\ 
  \end{align} \right\}
 \]

What tags to use, and in what order?

share|improve this question

migrated from stackoverflow.com Nov 25 '13 at 18:13

This question came from our site for professional and enthusiast programmers.

    
Welcome to TeX.SX! Your post was migrated here from another Stack Exchange site. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Kevin C Nov 25 '13 at 18:58
1  
Your code contains an error. You should use aligned instead of align. Also, please always try to include a minimal working example (MWE), starting with \documentclass{...} and ending with \end{document}. –  Kevin C Nov 25 '13 at 19:01
    
Another note: you might also want to change \bullet to \cdot, unless the former has a meaning different from inner product. –  Kevin C Nov 26 '13 at 0:51

2 Answers 2

My best guess at what you want...

Code

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin{align} % use align* if don't want equation numbered
  K\left( {{X}_{i}},{{X}_{j}} \right)=
  \left\{ \begin{aligned}
    & {{X}_{i}}\bullet {{X}_{j}} \\ 
    & {{\left( \gamma {{X}_{i}}\bullet {{X}_{j}} \right)}^{d}} \\ 
    & \exp (-\gamma |{{X}_{i}}-{{X}_{j}}{{|}^{2}} \\ 
    & \tanh \left( \gamma {{X}_{i}}\bullet {{X}_{j}}+C \right) \\ 
  \end{aligned} \right\} 
  && \text{[some kernel name]}
\end{align}
\end{document}

Output

enter image description here

share|improve this answer

u can simply use parallel tag to do that,first u need to import package parallel then simply put equation code in left part and then put kernel names in the right part. code for reference below

\documentclass{article}
\usepackage{parallel}
\begin{document}
\begin{Parallel}[v]{0.48\textwidth}{0.48\textwidth}
\ParallelLText
{
  your equation code here
}
\ParallelRText
{
name of kernels here
}
\end{Parallel}
\end{document}
share|improve this answer
    
Welcome to TeX.SX! Your post was migrated here from another Stack Exchange site. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Kevin C Nov 26 '13 at 1:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.