First off, loading the package palatino
will give you the "Palatino" font only in text mode, but not in math mode. To get "Palatino" in both text and math mode, load a package such as mathpazo
or -- assuming you have a fairly up-to-date TeX distribution -- the packages newpxtext
and newpxmath
.
Second, you're getting small, i.e., inline-style, integral symbols because lines inside an array
environment are typeset, by default, in inline-style math mode rather than in display-style math mode. If, for some reason, you must use an array
environment, you can get the larger integral symbols by prefixing the instruction \displaystyle
to \int
, as is done on the left-hand side of equation (2) in the example below. You should probably also increase the separation between rows, e.g., by affixing [2ex] after the end of the first row of the array
.
Two big advantages of using a gathered
environment instead of an array
environment for the example at hand are (i) the rows would be typeset automatically in displaymath style and (ii) you wouldn't need to provide additional extra vertical separation of the rows by hand. The result of using gathered
instead of array
in this manner is shown on the right-hand side of equation (2) below.
For more information on displaying operator symbols such as \int
and \sum
in either inline-math style or display-math style, see the posting Show inline math as if it were display math and the associated answers.
\documentclass[12pt,a4paper]{report}
\usepackage{newpxtext,newpxmath}
\setlength\textwidth{2in} % just for this example
\begin{document}
\begin{equation}\label{good}
\int_{0}^{1}
\end{equation}
\begin{equation}\label{nolongerugly}
\begin{array}{c}
\displaystyle\int_{0}^{1} \\[2ex] % provide some extra vertical separation
\displaystyle\int_{0}^{1}
\end{array}
\quad\text{vs.}\quad
\begin{gathered}
\int_{0}^{1} \\ % no need to provide extra vertical separation
\int_{0}^{1}
\end{gathered}
\end{equation}
\end{document}
You could use the multline
environment of the amsmath
package. The example below uses a simple interword space to separate the variables; depending on your needs and preferences you may want to increase the separation a bit.
\documentclass{article}
\usepackage{amsmath} % Required for multline environment
\newcommand\V[1]{\textup{#1}} % Variable names in upright roman
\begin{document}
\begin{multline}
\label{eq:designmat}
X_i=\bigl[\,1\
\V{CitySize}_i \
\V{NoMotorways}_i \
\V{ElevatedMotorways}_i \
\V{SpeedLimit}_i \\
\V{Policing}_i \
\V{TrafficLights}_i \
\V{TransitLanesTrue}_i \
\V{Aggression}_i \,
\bigr]^T
\end{multline}
\hrule % just to show width of text block
\end{document}
Best Answer
Here are ways to do it, with the
cases
environment. In the second way, you can have the1
centred easily with\hfill
(thanks to @Mico's suggestion):