Search found 14 matches

by x42bn6
Wed Mar 24, 2010 8:36 pm
Forum: Math & Science
Topic: amsmath with multiple alignments on one line, centered
Replies: 5
Views: 3492

Re: amsmath with multiple alignments on one line, centered

Do I really have to hack around it?

And is that the space which corresponds to the space in the environments in amsmath?
by x42bn6
Wed Mar 24, 2010 7:53 pm
Forum: Math & Science
Topic: amsmath with multiple alignments on one line, centered
Replies: 5
Views: 3492

Re: amsmath with multiple alignments on one line, centered

Yes, but not with an array (because the between-line spacing is different for an array and, say, align - stick a \dfrac both lines in the same cell and they're too close).
by x42bn6
Wed Mar 24, 2010 6:45 pm
Forum: Math & Science
Topic: amsmath with multiple alignments on one line, centered
Replies: 5
Views: 3492

amsmath with multiple alignments on one line, centered

Hi all,

Let's just say I want to typeset, ASCII-art style:


0 < a < b < 1
1 < a+1 < b+1 < 2


Where the alignments are on the < characters and the contents a, b, a+1 and b+1 are centred in their "cells", but 0, 1, 1 and 2 are right- or left-aligned as if they were the standard align environment ...
by x42bn6
Wed Feb 10, 2010 11:26 pm
Forum: General
Topic: if, else, fi
Replies: 3
Views: 11695

Re: if, else, fi

That works, thanks.

Just out curiosity, could I know:

- What \relax does?
- Any sort of documentation on \if, \ifx, \else, \fi and so on?
by x42bn6
Wed Feb 10, 2010 11:04 pm
Forum: General
Topic: if, else, fi
Replies: 3
Views: 11695

if, else, fi

Probably because they're such common terms, I can't find anything explaining how to get conditionals to work.

I have the following bit of code:

\DeclareMathOperator{\fisherInformationOp}{\operatorname{I}}
\newcommand{\I}[2][]{\fisherInformationOp_#1\left(#2\right)}

The idea being that sometimes ...
by x42bn6
Mon Nov 30, 2009 8:36 pm
Forum: Math & Science
Topic: align with annotations
Replies: 9
Views: 13641

align with annotations

Is the correct syntax to use align with some annotations as follows?

\begin{align*}
A\land B &= B\land A & \text{commutativity}\\
&= X & \text{as defined above}
\end{align*}

The reason I ask is because the annotations (commutativity, as defined above) don't right-align to the page, almost ...
by x42bn6
Sun Nov 22, 2009 6:13 am
Forum: Text Formatting
Topic: fancyvrb + math
Replies: 1
Views: 3625

fancyvrb + math

Hi all,

I'm trying to put mathematical symbols in a Verbatim environment:

%& -shell-escape

\documentclass[a4paper]{article}

\usepackage{fancyvrb}

\begin{document}
\begin{Verbatim}[commandchars=\\\{\},
codes={\catcode‘$=3\catcode‘^=7}]
x=1/sqrt(z**2) ! $\frac{1}{\sqrt{z^2}}$
\end{Verbatim}
\end ...
by x42bn6
Mon Oct 26, 2009 12:22 am
Forum: Math & Science
Topic: "Advanced" matrices
Replies: 8
Views: 10850

"Advanced" matrices

Does anyone know how to do matrices but a bit more?

Of course it's a little bit hard without any code, but consider the matrix:


1 2 2 2 2 2
2 1 2 2 2 2
2 2 1 2 2 2
2 2 2 1 2 2
2 2 2 2 1 2
2 2 2 2 2 1


I'd like to be able to do something like put 1s on the diagonal and then put a big "2" in the ...
by x42bn6
Sun Oct 25, 2009 4:58 pm
Forum: General
Topic: Disable chapter numbering
Replies: 1
Views: 4640

Disable chapter numbering

Hi all,

How would I go about removing chapter numbering in a book document class?

i.e.

Code: Select all

\chapter{Foo}
\section{Bar}
\subsection{Baz}
\subsection{Qux}
Would give Baz section number 1.1.1. and Qux section number 1.1.2. How would I get it to display as 1.1. and 1.2. respectively?
by x42bn6
Tue Oct 20, 2009 10:09 pm
Forum: Math & Science
Topic: ntheorem and footnotes
Replies: 7
Views: 4578

Re: ntheorem and footnotes

Genius! I've never used those functions before, and I'm guessing they're used in case \footnote doesn't work?