TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create something like this:

enter image description here

The left hand side has the definition and right hand side we have examples. The left hand side and the right hand side could be simply separated by a "\qquad". But this is only at one particular location of the page, I don't want the entire page to be partitioned into two columns (as by using multicol)

The idea is sort of like subplot, or subfigure where you can place pictures side by side

Is this done through a table? Do we partition the page into two columns at a given location? What is the best way to achieve this?

share|improve this question
    
Would a tabular suffice? – Steven B. Segletes Mar 9 at 16:19
    
multicol doesn't have to partition the whole page: \begin{multicols}{2} <left side> \columbreak <right side \end{multicols} – Andrew Cashner Mar 9 at 16:27
    
Just to be sure: For the root test, you have to check $L<1$, not $L<0$ :) – PhoemueX Mar 9 at 21:35
up vote 7 down vote accepted

Two side-by-side minipage environments will work. In the example below, the left-hand minipage is twice as wide as the one on the right; feel free to adjust the relative sizes to suit your needs.

enter image description here

\documentclass{article}
\usepackage{amsmath} % for "\text" macro
\begin{document}

\noindent
\begin{minipage}[t]{0.6667\textwidth}
\textbf{Root test}: 
Given $\displaystyle \sum_{n=1}^\infty \lvert a_n\rvert^{\frac{1}{n}}$ then:

\smallskip
1. $L>0 \Rightarrow \text{Divergent}$

2. $L<0 \Rightarrow \text{Convergent}$

3. $L=0 \text{ Undetermined}$
\end{minipage}% % leave no gap
\begin{minipage}[t]{0.3333\textwidth}
Divergent:

$\displaystyle \sum_{n=1}^\infty \frac{-12^n}{n}$

\bigskip
Convergent:

$\displaystyle \sum_{n=1}^\infty \frac{n^n}{3^{1+2n}}$
\end{minipage}

\end{document}
share|improve this answer
    
Thanks a lot, works wonderfully. – Beached Whale Mar 10 at 19:59

enter image description here

It's possible to use \parbox{...}{...}\hfill\parbox{...}{...} like in :

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

\parbox{0.6\textwidth}{
\textbf{Root test}: 
Given $\displaystyle \sum_{n=1}^\infty \lvert a_n\rvert^{\frac{1}{n}}$ then:

\smallskip
1. $L>0 \Rightarrow \text{Divergent}$

2. $L<0 \Rightarrow \text{Convergent}$

3. $L=0 \text{ Undetermined}$
}
\hfill
\parbox{0.3\textwidth}{
Divergent:

$\displaystyle \sum_{n=1}^\infty \frac{-12^n}{n}$

\bigskip
Convergent:

$\displaystyle \sum_{n=1}^\infty \frac{n^n}{3^{1+2n}}$
}

\end{document}
share|improve this answer
    
I think you should insert \noindent ahead of the first \parbox. In addition, I think one should change \parbox{... to \parbox[t]{... to assure that the two boxes line up properly. – Mico Mar 9 at 21:01

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.