Document ClassesEquation Sideways II

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
mr_pink
Posts: 11
Joined: Fri May 23, 2008 11:20 am

Equation Sideways II

Post by mr_pink »

Hi there,

after my last sideways equation problem was quickly resolved thanks to your help, i have another one now. In the next part of my thesis I have more of the same too-long-for-one-page piecewise functions. The problem is that now the lines consist of sums of integrals and most of the integral limits contain fractions.

I can't get this kind of integral in an array working in the sideways environment and i assume it is because with the limits the line is too tall for textheight. I've been using:

\begin{sideways}%
\parbox{\textheight}{%
\begin{multline}
...
\begin{array}
...
\end{array}
...
\end{multline}}
\end{sideways}

in scrbook, TexnicCenter, Miktex distribution, MS Windows.

And apart from the fact that I can't turn the equation, it does not look professional the way tex formulas usually do at all. If i put the integral in its own equation environment, it looks nice and normal. But as soon as I put it in an array, it's shrunk to the height of a line. I'll attach a picture of the difference. Is there anything i can to do allow the lines more space in an array?

Thanks in advance for your help!! If there's anything I forgot, please ask, I'm here waiting for an answer anyway. :)

Anne
Attachments
integrals.JPG
integrals.JPG (11.03 KiB) Viewed 6102 times

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Re: Equation Sideways II

Post by Stefan Kottwitz »

Hi Anne,

your description is good. If you also would post the code of your formulas inside this sideways environment we could test it on our systems and perhaps find a correction.

Stefan
LaTeX.org admin
mr_pink
Posts: 11
Joined: Fri May 23, 2008 11:20 am

Re: Equation Sideways II

Post by mr_pink »

mh. This is REALLY weird. I typed in the last part of the first line of the array so you could really find out if it was working with an entire line and now it works. :(

It still doesn't look good and is too long for one line even in landscape but there are no mistakes when I compile it. I'm really sorry I bothered you with the question in the first place!

I'm going to attach the code anyway, now that I have it. Maybe you know a way how to "give more space" to the integral signs and limits?

Thanks for the help and sorry for the confusion!!

Anne

PS: this is the code. The a's stand for the rest of the array, that is still missing, obviously.

\begin{sideways}%
\parbox{\textheight}{%
\begin{multline}
\label{7IOa_profit}
E_{\Pi_1}^{7IOa}(\overline{y_i},\text{ }\overline{y_o})=\\-c\overline{y_i}-c_o\overline{y_o} +\left\{
\begin{array}{lllll}
\int_0^c \theta\overline{y_i}\phi(\theta)\,\mathrm{d}\theta &%
+\int_c^{p(\overline{y_i}+\overline{y_o})} \left[\left(\frac{a-\overline{y_i}-\overline{y_o}}{b}\right)(\overline{y_i}+\overline{y_o})%
-c\overline{y_o}\right]\phi(\theta)\,\mathrm{d}\theta &%
+\int_{p(\overline{y_i}+\overline{y_o})}^{\frac{a}{2b}+\frac{c}{2}} \left[\theta(a-b\theta)%
-c(a-b\theta-\overline{y_i})\right]\phi(\theta)\,\mathrm{d}\theta &%
+\int_{\frac{a}{2b}+\frac{c}{2}}^{\frac{a}{b}} \left[\left(\frac{a}{2b}+\frac{c}{2}\right)\left(\frac{a}{2}-\frac{cb}{2}\right)%
-c\left(\frac{a}{2}-\frac{cb}{2}-\overline{y_i}\right)\right]\phi(\theta)\,\mathrm{d}\theta &%
\text{if} \quad \overline{y_i}<\frac{a}{2}-\frac{cb}{2}\leq \overline{y_i}+\overline{y_o}<a-bc,\\
a & +a & +a & +a & \text{if} \quad a,\\
a & +a & +a & +a & \text{if} \quad a,\\
a & +a & +a & +a & \text{if} \quad a,\\
a & +a & +a & +a & \text{if} \quad a,\\
a & +a & +a & +a & \text{if} \quad a,\\
a & +a & +a & +a & \text{if} \quad a.
\end{array}
\right.
\end{multline}}
\end{sideways}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Equation Sideways II

Post by Stefan Kottwitz »

Hi Anne,

perhaps the quickest way is using \arraystretch of the array package:

Code: Select all

\usepackage{array}
...
\begin{sideways}%
\renewcommand*\arraystretch{1.5}%
...
\end{sideways}
\arraystretch will affect other array environments like matrices too, that's why I placed the command inside the sideways environment to limit its scope. After this sideways environment the array will be without stretch.

There are other possibilities, if you cannot use \arraystretch. Just let us know if you need another way.

Stefan
LaTeX.org admin
mr_pink
Posts: 11
Joined: Fri May 23, 2008 11:20 am

Re: Equation Sideways II

Post by mr_pink »

I'll try that.

Thank you so much! You're incredibly quick and helpful!!!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Equation Sideways II

Post by localghost »

Stefan_K wrote:[...] perhaps the quickest way is using \arraystretch of the array package [...]
Just for the record. The \arraystretch macro is provided by the LaTeX kernel and not by the array package. But this package provides the length \extrarowheight, which can be set locally for a specific environment.


Best regards
Thorsten¹
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Re: Equation Sideways II

Post by Stefan Kottwitz »

Hi Thorsten,

thanks for the correction! Indeed the \extrarowheight was vaguely behind my thoughts, and you are right, in latex.ltx there's written \def\arraystretch{1}, supported by array.

Stefan
LaTeX.org admin
Post Reply