LaTeX

2010-05-07 18 views
11

में एक बड़े मैट्रिक्स टंकित करना मैं अपने LaTeX दस्तावेज़ (amsmath के साथ) में एक 3x12 मैट्रिक्स मैं इनपुट करना चाहते हैं लेकिन LaTeX जब मैट्रिक्स 3x10 से भी बड़ा हो जाता है गला घोंटना लगता है:LaTeX

\begin{equation} 
\textbf{e} = 
\begin{bmatrix} 
1&1&1&1&0&0&0&0&-1&-1&-1&-1\\ 
1&-1&0&0&1&1&-1&-1&0&0&1&-1\\ 
0&0&1&-1&1&-1&1&-1&1&-1&0&0 
\end{bmatrix} 
\end{equation} 

त्रुटि : अतिरिक्त संरेखण टैब को \ cr में बदल दिया गया है। मुझे बताता है कि bmatrix पर्यावरण से अधिक & है। क्या इसे संभालने का कोई उचित तरीका है? ऐसा लगता है कि 1 और -1 के लिए संरेखण अलग है, क्या bmatrix की भी उम्मीद है? एक 10 कॉलम अधिकतम करने के लिए

The amsmath package provides some environments for matrices beyond the basic array environment of LATEX. The pmatrix, bmatrix, Bmatrix, vmatrix and Vmatrix have (respectively) (), [ ], { }, | |, and ∥ ∥ delimiters built in. For naming consistency there is a matrix environment sans delimiters. This is not entirely redundant with the array environment; the matrix environments all use more economical horizontal spacing than the rather prodigal spacing of the array environment. Also, unlike the array environment, you don’t have to give column specifications for any of the matrix environments; by default you can have up to 10 centered columns. (If you need left or right alignment in a column or other special formats you must resort to array.)

अर्थात bmatrix चूक:

उत्तर

19
amsmath प्रलेखन ( texdoc amsmath) से

एक फुटनोट

More precisely: The maximum number of columns in a matrix is determined by the counter MaxMatrixCols (normal value = 10), which you can change if necessary using LATEX’s \setcounter or \addtocounter commands.

+0

अद्भुत! यह वही था जो मैं खोज रहा था, मुझे नहीं पता था कि कोई अधिकतम कॉलम बदल सकता है। दाएं संरेखण के लिए, मैंने तब से एक अच्छा कामकाज पाया है जो अभी भी bmatrix कमांड को अनुमति देता है - मैं इसे अपने स्वयं के समाधान में पोस्ट करूंगा। – Hooked

+0

मुझे बिल्कुल वही समस्या थी, अच्छा सवाल! मैं प्रतिनिधित्व सिद्धांत में चरित्र तालिकाओं की गणना कर रहा था और यहां तक ​​कि बहुत छोटे समूहों के साथ भी आप बड़े matrices के साथ आसानी से खत्म हो गया। इस सवाल को पोस्ट करने/जवाब देने के लिए धन्यवाद! –

1

स्कॉट द्वारा जवाब सही है कहते हैं, लेकिन मैं के बाद से सीखा है आप संरेखण ओवरराइड कर सकते हैं।

\begin{bmatrix}[r] .... 

राइट संरेखण के लिए: http://texblog.net/latex-archive/maths/matrix-align-left-right/

\makeatletter 
\renewcommand*\[email protected][1][c]{\hskip -\arraycolsep 
    \let\@ifnextchar\[email protected] 
    \array{*\[email protected] #1}} 
\makeatother 

से लिया अब आदेश अनुमति देता है!

+0

मेरा मानना ​​है कि आप वही चीज़ प्राप्त करने के लिए 'mathtools' पैकेज से' bmatrix * 'पर्यावरण का उपयोग भी कर सकते हैं, कम से कम विकीबूक के अनुसार: http://en.wikibooks.org/wiki/LaTeX/Mathematics# Matrices_and_arrays –