New answers tagged

4

You can not have blank lines in equation delete the three blank lines and the error will go.


4

l columns are left-aligned, while c columns are center aligned, so just change l to c in the array specification. That said, I'd rather use pmatrix from amsmath here. \documentclass{article} \usepackage{amsmath} \begin{document} \[ \phi_1(\mathbf{x}) = \left( \begin{array}{c} x_1^2 \\ \sqrt{2}x_1x_2 \\ x_2^2 ...


2

A look into the documentation reveals: The style sgamevar.sty (but not sgame.sty) is compatible with beamer. Both styles are incompatible with the memoir class and with tabularx.sty and array.sty (and hence any package, like jurabib.sty, that loads array.sty). I understand this that there is incompatibility with array and packages based on array code. See ...


2

Here is a solution using siunitx and ncccmath for its \medmath command, which reduces the size of \displaystyle by about 20 %: \documentclass[12pt,a4paper]{article} \pagestyle{myheadings} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} %code \usepackage{uarial} % for \renewcommand{\familydefault}{\sfdefault} %arial font \usepackage[brazilian]{babel} ...


5

My main suggestion is to take the factor 10^4 outside the matrix. That way, the width of first five columns can be made reduced dramatically, while the width of the final two columns doesn't increase much on net. Using a bmatrix* environment and reducing the value of the \arraycolsep helps too. \documentclass[12pt,a4paper]{article} \pagestyle{myheadings} ...


1

The question is a bit too generic. I'd exploit the \DeclareOption* feature: \DeclareOption*{\edef\alanclass@givencode{\CurrentOption}} After \ProcessOptions you can input your code file in the format %% file alanclasscodes.def \alanclass@code{AK3696}{% \def\degreetitle{Bachelor of Arts (Honours)}% } %%% and so on for the other codes by doing ...


3

The usual expansion problems with xstring, I'd say. But you're complicating things. The \clist_set:Nn function of expl3 purges empty items, so it's a straightforward application. \documentclass{article} \usepackage{xparse} \usepackage{xcolor} \ExplSyntaxOn \NewDocumentCommand{\SetArrayLength}{sm} { \IfBooleanTF{#1} {% star form: expect a control ...



Top 50 recent answers are included