Hot answers tagged


Here is a solution without amsmath. \documentclass{article} \begin{document} \[ f(x)=\left\{\begin{array}{@{\mathstrut}l@{\quad}l} e^x & x\in [-1,1] \\[1ex] [x] & x\not\in [-1,1] \end{array}\right. \] \end{document} Of course I myself would not want to use packages that prevent me from using amsmath, but you may have very good reasons.


You have to be in math mode to use the cases environment. Use this: \usepackage{amsmath} ................. \[ f(x)= \begin{cases} e^x, & x\in [-1,1], \\ [x], & x\notin [-1,1]. \end{cases} \]


You should use simple names for the columns (just ASCII characters), that can be changed with columns. \documentclass{standalone} \usepackage{pgfplotstable} \pgfplotsset{compat = 1.16} \begin{document} \pgfplotstabletypeset[ col sep=comma, columns/Parameter/.style={string type}, columns/1/.style={column name={\#1}}, columns/2/.style={column name={\...


Some suggestions and observations: Don't load both the apacite package and the natbib package -- they're not mutually compatible. Since you're using the apacite bibliography style, you should load the apacite package with the option natbibapa (and not load natbib separately) if you want to be able to use the commands \citet and \citep. Change \bibliography{...

Only top voted, non community-wiki answers of a minimum length are eligible