I'm using the txfonts
package in order to access the \lambdaup
symbol. In order to maintain consistency with other documents, I'm then loading the lmodern
package to reset the font families. However, I would like to keep the style of parentheses for large (> 2 line) matrices (via the \pmatrix
environment from amsmath
) that \txfonts
gives me. Is there a way to do this?
Compare the following example with/without the \usepackage{lmodern}
line commented out:
\documentclass{article}
\usepackage{amsmath}
\usepackage{txfonts} % \lambdaup
\usepackage{lmodern}
\begin{document}
$\begin{pmatrix}
1 & 0 & 0\\
0 & 1 & 0\\
0 & 0 & 1
\end{pmatrix}$
\end{document}
First image shows the 'default' style of parentheses, from CM fonts:
Second image shows the style of parentheses that I am hoping to achieve, from TX fonts:
Third image shows egreg's proposed answer:
bmatrix
environment yield what you want?lmodern
beforetxfonts
.\lambdaup
and the style of parentheses, but it has the unfortunate side effect of changing the font family for the rest of the text... I need the 'main' font to be CM, to keep it consistent with other documents.upgreek
package for upright-shaped Greek characters?\lambda
than `\txfonts' - I need the style to be consistent with other documents.