TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to write a permutation like this ?

permutation

share|improve this question
    
do you know how to utilize the pmatrix environment from amsmath package – percusse Jul 5 '13 at 22:07
    
Related: Typesetting permutations with LaTeX – Werner Jul 5 '13 at 22:15
up vote 5 down vote accepted

Consider using amsmath's smallmatrix:

enter image description here

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\[
  a = \bigl(\begin{smallmatrix}
    1 & 2 & 3 & \cdots & n-1 & n \\
    2 & 3 & 4 & \cdots &  n  & 1
  \end{smallmatrix}\bigr)
\]
Here is another permutation $a = \bigl(\begin{smallmatrix}
  1 & 2 & 3 & \cdots & n-1 & n \\
  2 & 3 & 4 & \cdots &  n  & 1
\end{smallmatrix}\bigr)$ in text mode.

\end{document}
share|improve this answer

Using amsmath's pmatrix environment:

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\[
  a = 
  \begin{pmatrix}
    1 & 2 & 3 & \cdots & n-1 & n \\
    2 & 3 & 4 & \cdots &  n  & 1
  \end{pmatrix}
\]
\end{document}

Another solution with matrix

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\[
  a =
  \left(
  \begin{matrix}
    1 & 2 & 3 & \cdots & n-1 & n \\
    2 & 3 & 4 & \cdots &  n  & 1
  \end{matrix}
  \right)
\]
\end{document} 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.