~ubuntu-branches/ubuntu/oneiric/latexml/oneiric

« back to all changes in this revision

Viewing changes to t/math/choose.tex

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2010-06-09 08:15:06 UTC
  • Revision ID: james.westby@ubuntu.com-20100609081506-1asj0n4u3w4q6jem
Tags: upstream-0.7.0
ImportĀ upstreamĀ versionĀ 0.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
\documentclass{article}
 
2
\begin{document}
 
3
\let\foo={
 
4
\let\bar=}
 
5
\section{Testing Choose}
 
6
\def\beep{beep}
 
7
\beep\foo\def\beep{BEEP} hello, \beep. \bar\beep.
 
8
 
 
9
1. $  a +  b $
 
10
 
 
11
2. $  a \choose b $
 
12
 
 
13
3. $ a + {b \choose c} + d$
 
14
 
 
15
% Should also work with these
 
16
4. $ a + \bgroup b \choose c \egroup + d$
 
17
 
 
18
% And even our own tokens \let to {}
 
19
5. $ a + \foo b \choose c \bar + d$
 
20
 
 
21
%% Interesting behaviour! \begingroup ..\endgroup do NOT create boxes!
 
22
6. $ a + \begingroup b \choose c \endgroup + d$
 
23
 
 
24
%$ a + { b \choose c \egroup + d$
 
25
 
 
26
%$ a + \bgroup b \choose c } + d$
 
27
 
 
28
% Aha, TeX doesn't like this (says Ambiguous)
 
29
%$ a + \frac{b \choose c}{d \choose e} + f$
 
30
 
 
31
 
 
32
 
 
33
 
 
34
%\def\open{\bgroup}\def\close{\bgroup}
 
35
% It doesn't like this either; it want's a real }
 
36
%$ a + \open b \choose c \close + d$
 
37
 
 
38
\end{document}