Search found 10 matches

by timppapoika
Sun Apr 19, 2009 4:35 pm
Forum: Math & Science
Topic: Formatting a long equation.
Replies: 8
Views: 8435

Re: Formatting a long equation.

Ah. As simple as that. Thanks a bunch guys!
by timppapoika
Sun Apr 19, 2009 4:24 pm
Forum: Math & Science
Topic: Formatting a long equation.
Replies: 8
Views: 8435

Formatting a long equation.

Here it is:
\documentclass[a4paper,11pt]{article}

\usepackage[finnish]{babel}
\usepackage[latin1]{inputenc}
\usepackage[pdftex]{graphicx}
\usepackage{amsmath}

\begin{document}

\begin{equation}\label{eqn:deltacs}
\begin{aligned}
\Delta c_s&=
\left( \left |\frac{c_w(T_0-T_1)}{m_s(T_2-T_0 ...
by timppapoika
Sun Apr 19, 2009 3:54 pm
Forum: Math & Science
Topic: Formatting a long equation.
Replies: 8
Views: 8435

Re: Formatting a long equation.

Thanks for the suggestions, both of them worked perfectly. Now the problem is the equation number, though. In Stefan's version the number is a bit too high, and Thorsten's version too low. Is there a way to get it vertically in the middle? I've tried placing the nonumber command after different ...
by timppapoika
Sun Apr 19, 2009 2:48 pm
Forum: Math & Science
Topic: Formatting a long equation.
Replies: 8
Views: 8435

Formatting a long equation.

I've end up with a monster of an equation and now I'll need to chop it into pieces as well as use brackets.

Here's what I tried, the brackets are the problem and the over-all look will be messy. Is there a way to make it tidy, basically so that the new lines begin where the first equals sign ends ...
by timppapoika
Tue Mar 31, 2009 3:46 pm
Forum: Graphics, Figures & Tables
Topic: Error bars with PSTricks
Replies: 3
Views: 3079

Re: Error bars with PSTricks

Just to let you know, I couldn't figure the errorbars and LMS together for some reason. But I started using gnuplot, which seems to be straight-forward program to create graphs, although pstricks' images look a lot nicer.
by timppapoika
Mon Mar 30, 2009 9:22 pm
Forum: Graphics, Figures & Tables
Topic: Error bars with PSTricks
Replies: 3
Views: 3079

Error bars with PSTricks

Once again I'm stuck with drawing my graphs. This time I can't get error bars into my graph. How to do it using pstricks-add? Here's my data so far:
\begin{filecontents*}{LSM.data}
1.725163898 8.885630396 .9090909091 4.872484542 .5471756552 2.945557272 .3100868364 1.552826417 .1702513062 ...
by timppapoika
Mon Mar 30, 2009 12:48 pm
Forum: Graphics, Figures & Tables
Topic: PSTricks error, why?
Replies: 6
Views: 4675

Re: PSTricks error, why?

Thanks a billion, localghost! It worked! You can't imagine how reliefed and thankful I am. Thanks again, you eased my life significantly!
by timppapoika
Mon Mar 30, 2009 12:01 pm
Forum: Graphics, Figures & Tables
Topic: PSTricks error, why?
Replies: 6
Views: 4675

PSTricks error, why?

Thanks for the reply, localghost!

Adding the second argument for lenght of the y-axis results in a different error:
!Undefined control sequence.
<recently read> \c@lor@to@ps

l.284 ...rrows=->}(0,0)(0,0)(8,8){.5\textwidth}{!}
I tried substituting the last two arguments to {10cm} and {5cm}, but ...
by timppapoika
Mon Mar 30, 2009 11:06 am
Forum: Graphics, Figures & Tables
Topic: PSTricks error, why?
Replies: 6
Views: 4675

PSTricks error, why?

Is "butt" more appropriate?

Anyways, the LMS.data looks like this:
\begin{filecontents*}{LSM.data}
0 1 1 3 2.8 4 3 2.9 2 5 4 4 5 5.5 6 8.2 8 7
\end{filecontents*}

As I said I took the code from an example, which can be found on page 112 in http://www.ctan.org/tex-archive/graphics/pstricks ...
by timppapoika
Mon Mar 30, 2009 10:10 am
Forum: Graphics, Figures & Tables
Topic: PSTricks error, why?
Replies: 6
Views: 4675

PSTricks error, why?

I'm starting to lose my mind here! Although LaTeX is very versatile, it sometimes can be be a pain in the ass! Now I'm trying to plot graph using the Least Square Method with pstricks-add and I've encountered a weird problem. I took the code from an example, but LaTex says:
!Missing number treated ...