Search found 11 matches

by tonyjnel
Tue Jun 07, 2011 8:07 pm
Forum: Graphics, Figures & Tables
Topic: Matrix Fraction Spacing
Replies: 2
Views: 3275

Re: Matrix Fraction Spacing

Thanks, that's perfect.
by tonyjnel
Tue Jun 07, 2011 8:06 pm
Forum: Graphics, Figures & Tables
Topic: tikzpicture inside alignat environment
Replies: 1
Views: 3338

tikzpicture inside alignat environment

Hi,

I am making a matrix with a red line through the first column and row. I have code that works for making this matrix, but when I try to put it into the alignat environment I get an error. Here is the (working) code that draws the matrix:


\documentclass[12pt]{article}
\usepackage{amsmath ...
by tonyjnel
Tue May 31, 2011 9:51 pm
Forum: Graphics, Figures & Tables
Topic: Matrix Fraction Spacing
Replies: 2
Views: 3275

Matrix Fraction Spacing

Hi,
The default spacing of the array environment puts fractions in the same column too close together (vertically) for my liking. This is my code:

\documentclass[12pt]{article}
\begin{document}
\[
\left(\begin{array}{ccc|c}
1&2&-1&-1\\
0&1&\frac{3}{2}&\frac{9}{2}\\
0&0&\frac{11}{2}&\frac{55}{2 ...
by tonyjnel
Tue May 31, 2011 6:20 pm
Forum: Graphics, Figures & Tables
Topic: Align matrices and multi-line text
Replies: 3
Views: 5293

Align matrices and multi-line text

Thanks localghost, alignat works perfectly for this. I had tried using it before but with no success. Substack was the key ingredient I was missing. This is what I ended up with:
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\begin ...
by tonyjnel
Tue May 31, 2011 3:52 pm
Forum: Graphics, Figures & Tables
Topic: Align matrices and multi-line text
Replies: 3
Views: 5293

Align matrices and multi-line text

I want to align these large blocks of stuff and I was wondering what the best way to do it is. I essentially want four columns: the first will be a multi-line description of the operation, the second will be a matrix, the third will be another multi-line description, and the fourth will be another ...
by tonyjnel
Fri May 27, 2011 8:06 pm
Forum: Math & Science
Topic: System of equations
Replies: 11
Views: 10913

System of equations

Thanks Juanjo for explaining what all those ampersands are for. I couldn't find a good explanation but that makes me a lot more comfortable using it. Also thanks for catching that superfluous +.

Can you explain why "+{}" produces the correct spacing while "{}+{}" does not? It seems to me that they ...
by tonyjnel
Tue May 24, 2011 8:19 pm
Forum: Math & Science
Topic: System of equations
Replies: 11
Views: 10913

System of equations

Thanks Stefan! That is exactly what I wanted. I think there were some typos in your code though.. LaTeX didn't give me errors when I changed it to
\begin{alignat*}{4}
5x_1 &+ 3x_2 &+ x_3 &= 0\\
x_1 &+ &- 4x_3 &= 0\\
&- 9x_2 &+ 2x_3 &= 0
\end{alignat*}

-Tony
by tonyjnel
Tue May 24, 2011 7:31 pm
Forum: Math & Science
Topic: System of equations
Replies: 11
Views: 10913

System of equations

This is almost what I am looking for but there is too much space between the elements of the array. I want mine to read just like an equation (like the rest of my equations that aren't arrays) so that my paper is consistent. I tried this:

\begin{align*}
5x_1&+3x_2&+x_3&=0\\
x_1&+{}&-4x_3&=0 ...
by tonyjnel
Mon May 23, 2011 7:29 pm
Forum: Math & Science
Topic: Highlighting in matrices
Replies: 3
Views: 4989

Re: Highlighting in matrices

That's really great gmedina, and I know i'm being nit-picky at this point, but is there a way that the highlighted cells can be highlighted by a triangle rather than the stair-step shape generated by this code. It may only make sense physically to do this with matrices that only have single ...
by tonyjnel
Thu May 12, 2011 7:44 pm
Forum: Text Formatting
Topic: begin{center} adds vertical space?
Replies: 2
Views: 21253

Re: begin{center} adds vertical space?

Thanks, Stefan, that did the trick :)

It also shifted the title of the example but I modified the environment by adding \flushleft before the title of the example to fix that.

-Tony