image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

image Latex Help Share It Thread Tools Search this Thread image
Old Jun4-09, 09:55 PM                  #1
S_David

S_David is Offline:
Posts: 244
Latex Help

Hello,

I have two questions:

1- How can I control the size of a multi-line equation?
2- In a multi-line equation, I always need to open a brace in one line and end it at another line. But the problem is by using the following code:
Code:
\begin{equation}
\begin{split}
X=&\left\{.....\right.\\
& \left. .... \right\}
\end{split}
\end{equation}
the two braces are not always of the same vertical length. How to solve this problem?

Thanks in advance
  Reply With Quote
Old Jun5-09, 08:21 AM                  #2
CompuChip

CompuChip is Offline:
Posts: 2,725
Blog Entries: 3
Recognitions:
Homework Helper Homework Helper
Re: Latex Help

In the first question, what do you mean by the 'size'?

For the second one: I haven't tested this, but you might try something like
Code:
\newcommand\twolines{3}{\ensuremath%
\begin{split}%
#1 = &\left\{\vphantom{#2}#1\right.\\%
       & \left. \vphantom{#1}#2 \right\}%
\end{split}%
}
and then use it like
Code:
\[ \twolines{X}{stuff on the first line}{stuff on the second line} \]
The trick lies of course in the use of \vphantom.

The quick-and-dirty way is to just make the brackets "by hand", so instead of \left and \right use \big, \bigg, \Big, etc.
  Reply With Quote
Old Jun5-09, 08:24 AM                  #3
minger

minger is Offline:
Posts: 980
Recognitions:
Science Advisor Science Advisor
Re: Latex Help

Originally Posted by CompuChip View Post
The quick-and-dirty way is to just make the brackets "by hand", so instead of \left and \right use \big, \bigg, \Big, etc.
I've personally never ran into this problem, but if I did, that would be the approach I would take.

I will have to take a look at that phantom command though...
  Reply With Quote
Old Jun5-09, 09:26 AM                  #4
S_David

S_David is Offline:
Posts: 244
Re: Latex Help

Originally Posted by CompuChip View Post
In the first question, what do you mean by the 'size'?
I mean the font size, because I have very long equations which takes much space in each page.
  Reply With Quote
Old Jun5-09, 09:55 AM                  #5
fatra2

fatra2 is Offline:
Posts: 318
Re: Latex Help

Why don't you make a line-break at some point so that the equation continues on the next line. This would preserve any unpleasant topography for the reader, and would assure that the equation doesn't overflow the page.

You can do this line break with a simple \\ wherever you want. Doing so, every part of your equation will be center aline. If you want to aline the equation specially, you can use && on each line.

Cheers
  Reply With Quote
Old Jun5-09, 10:02 AM                  #6
S_David

S_David is Offline:
Posts: 244
Re: Latex Help

Originally Posted by fatra2 View Post
Why don't you make a line-break at some point so that the equation continues on the next line. This would preserve any unpleasant topography for the reader, and would assure that the equation doesn't overflow the page.

You can do this line break with a simple \\ wherever you want. Doing so, every part of your equation will be center aline. If you want to aline the equation specially, you can use && on each line.

Cheers
My equations are not single line, but multi-line equations, so I already did the line-break. But my request is: how to make these equations small enough to span a reasonable space on the page?
  Reply With Quote
Old Jun5-09, 10:06 AM                  #7
fatra2

fatra2 is Offline:
Posts: 318
Re: Latex Help

My remark is simple. If you have very long equations, and you change the font size, the reader might lose reading comfort, due to their overfullness.

I firmly believe that you should leave the font the way they are, and just make line-break to make them comprehensible. You will gain in reading comfort, which is probably why you use LaTeX.

Cheers
  Reply With Quote
Old Jun6-09, 11:24 AM                  #8
S_David

S_David is Offline:
Posts: 244
Re: Latex Help

Originally Posted by fatra2 View Post
My remark is simple. If you have very long equations, and you change the font size, the reader might lose reading comfort, due to their overfullness.
How do we know, if we don't try? Let us try it, and then we decide.
  Reply With Quote
Old Jun8-09, 02:15 AM                  #9
fatra2

fatra2 is Offline:
Posts: 318
Re: Latex Help

Ok,

Here it goes. The font size in math mode are predefined in LaTeX. Therefore, a simple \fontsize or \Large only gives you a warning. This is due to a misunderstanding between the command given and the actions to be taken by the compiler.

Once in math mode, you can change the font size with the
Code:
{\...style}
command. For example,
Code:
{\displaystyle }
will appear full size. There are similar commands \textstyle, \scriptstyle, and \scriptscriptstyle.

Cheers
  Reply With Quote
Old Jun8-09, 06:55 AM                  #10
S_David

S_David is Offline:
Posts: 244
Re: Latex Help

I want to make them of font size 10 pt, for example, how can I do that using the commands you presented?
  Reply With Quote
Old Jun8-09, 07:19 AM                  #11
fatra2

fatra2 is Offline:
Posts: 318
Re: Latex Help

Hi there,

The easiest way to do so, is to put the whole document to 10pt. You can do so within the doucmet class declaration : \documentclass{10pt}{report/book/article/letter}, and there you go, your math mode will also be at 10pt.

Otherwise, you will have to look at the size that suits from the different styles mentioned before.

I am sorry that I cannot be anymore help. It's just that you are writing in LaTeX, meaning that you might have a different point of view than the compiler for the layout. I stick with my suggestion from before, that the compiler might not be so bad.

Cheers
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: Latex Help
Thread Thread Starter Forum Replies Last Post
Anyone Can Help Me With Latex? camillerinadia Computing & Technology 10 Apr22-08 10:57 AM
i need help with Latex cdhotfire Computing & Technology 15 Jun6-07 11:39 AM
LaTeX malawi_glenn Computing & Technology 1 Jun1-07 09:11 PM
Need help with Latex.... Problem+Solve=Reason General Math 2 Jan3-05 08:21 PM
LaTex courtrigrad Introductory Physics 1 Jan2-05 04:32 PM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image