Generalsorry, I have to ask this again.

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

sorry, I have to ask this again.

Post by gcheer3 »

I made a similar code as yesterday. It didnt work. Sorry I have to ask the similar question.
I want to let "=" be alignment points
Do I need 'split' in this case?

Code: Select all

   
\begin{align}
   
   \text{Nominal significance level:} \quad\alpha &= 0.05   \par
   \text {Target Power of the test:}  \quad \beta &= 0.80  \par
   \text{Sampling ratio: } \quad        \theta &= 1 , 1/2 \par
   \text{Assumed treatment difference:} \quad \delta &= 0.1  \par
   \text {Assumed overall event rate:} \quad \pi_{\text{asm}} &= 0.01, 0.02, 0.03,....., 0.50  \par
   \text {Actual overall event rate:} \quad  \pi_{\text{act}} &= 0.15, 0.25  \par
   \bigskip
   \text {For adaptive design, take $25\%$ of the initial sample size for the interim study: } n_{1}.=0.25n

   \end{align}

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: sorry, I have to ask this again.

Post by Stefan Kottwitz »

Hi,

write \\ instead of \par to end the lines.
Don't write empty lines in math environments. The text of the last line is too long.

Stefan
LaTeX.org admin
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

sorry, I have to ask this again.

Post by gmedina »

In the other thread I already recommended some basic documentation. You can try something like the following:

Code: Select all

\documentclass{report}
\usepackage{amsmath}
\usepackage{units}

\begin{document}

\begin{align}
   &\text{Nominal significance level:}                &\alpha           &= 0.05 &&&& \\
   &\text {Target Power of the test:}                 &\beta            &= 0.80 &&&& \\
   &\text{Sampling ratio: }                               &\theta           &= 1 , \nicefrac{1}{2} &&&& \\
   &\text{Assumed treatment difference:}          &\delta           &= 0.1 &&&&& \\
   &\text {Assumed overall event rate:}              &\pi_{\text{asm}} &= 0.01, 0.02,\ldots, 0.50 &&&& \\
   &\text {Actual overall event rate:}                &\pi_{\text{act}} &= 0.15, 0.25 &&&& \\
   &\text {For adaptive design, take $25\%$ of the}   &&&&&&& \notag \\
   &\text{initial sample size for the interim study:} &n_{1} &=0.25n &&&&&
\end{align}

\end{document}
However, you could also use a tabbing environment or maybe a tabular environment. It all depends on your particular needs.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

Re: sorry, I have to ask this again.

Post by gcheer3 »

Thanks for you guys.
Have a good night!!!
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

Re: sorry, I have to ask this again.

Post by gcheer3 »

I have a new question. I am use Beamer. If I want to show the formula one by one instead of showing all of the formulae at the same time, what should I do? I tried \pause, it didnt work.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

sorry, I have to ask this again.

Post by Stefan Kottwitz »

Hi,

see beamer user guide 23 How To Uncover Things Piecewise and especially 23.4 Uncovering Tagged Formulas Piecewise.

Stefan
LaTeX.org admin
Post Reply