Tag Info

Hot answers tagged

5

I'm more going towards what you're after than what you currently have... Specifying a fixed distance between columns is best done using the @{..} specification. So, for example, one could use l@{\hspace{1cm}}c to denote a 1cm gap between a left and centred column. \documentclass{article} \usepackage{booktabs}% http://ctan.org/pkg/booktabs ...


4

Replication of column specifications is done using a *{<num>}{<col spec>} interface, which should repeat <col spec> a total of <num> times: \begin{tabular}{*{20}{c}} % tabular content \end{tabular} will produce a table of 20 columns, each one centred. To add vertical column rules (which you should never do), you can use ...


4

You can set the problem in an array to adjust the spacing. For consistency, it's best to define this as an environment: \documentclass{article} \usepackage{amsmath,array,environ} \DeclareMathOperator*{\minimize}{\text{minimize}} \DeclareMathOperator*{\subjto}{\text{subject to}} \newcolumntype{R}{>{\displaystyle}r} ...


4

Use \centering inside the figure environment. \documentclass[10.5pt]{beamer} \usepackage{beamerthemesplit} \usetheme{Copenhagen} \setbeamercovered{transparent} \usepackage{ragged2e} \let\olditem=\item% \renewcommand{\item}{\olditem \justifying} \begin{document} \begin{frame} \begin{itemize} \item blablabla \begin{figure} \centering ...


4

You can try with align key of enumitem and define your own align key: \SetLabelAlign{myright}{strut\smash{\parbox[t]{\labelwidth}{\raggedleft#1}}} and use it as align=myright. \documentclass{article} \usepackage{enumitem,showframe} \SetLabelAlign{myright}{strut\smash{\parbox[t]{\labelwidth}{\raggedleft#1}}} \newlist{keywordlist}{description}{1} ...


3

I would use aligned rather than array here, because semantically it's not really a cases situation nor an array: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \left\{ \begin{aligned} a^{3} + b^{3} &= -q \\ ab &= \dfrac{-1}{3} \, p \end{aligned} \right. \end{equation*} \end{document}


3

\centering is a switch that causes everything inside the group following it to be centred. Remove it since you don't need it in this context - it is the cause of the alignment problem in your section title. Moving the list environment to the right could be done using enumitem's leftmargin or wide key-value. \documentclass[12pt]{article} ...


2

Pass the align=center option to the nodes. I also changed to a matrix of math nodes to have the proper math-mode for the math expressions (regular text was produced with the help of \text from amsmath) and increased the text width: \documentclass[a4paper,fontsize=12pt,a4paper,DIV=10,BCOR=10mm,twoside,titlepage=false,openany,pagesize]{scrbook} ...


2

Change the definition of \paragraph so that it is like \subsubsection and not an inline title. \documentclass[11pt,a4paper]{article} \makeatletter \renewcommand\paragraph{% \@startsection{paragraph}{4}{\z@}% {-3.25ex \@plus-1ex \@minus-.2ex}% the same spacing above, but negative {1sp}% no space after the title ...


2

When I tried using cases, it aligned nicely and worked just fine: \[ \begin{cases} a^3+b^3 &= -q \\ ab &= -\dfrac{1}{3}\,p. \end{cases} \] If that isn't an answer and you really are stuck with using the array, you might try to change the column separator to an equals sign with a bit of space around it, and then put @{} before the ...


1

I suggest using the empheq package for a simpler syntax, with option overload. It loads mathtools, which in turn loadsamsmath. I also usenccmath` for its mediumsized fractions, that look better here, in my opinion: \documentclass{article} \usepackage[overload]{empheq} \usepackage{nccmath} \begin{document} \begin{align*}[left = \empheqlbrace] a^{3} + ...


1

try ... \makeatletter \let\SX@I\SX@resultInput \def\SX@resultInput{\centerline{\SX@I}} \makeatother \begin{document} \LTXinputExample[pos=t,style=PSTricks,graphic={[scale=1]"diagram"}]{diagram.tex} \end{document}


1

Taken from Herbert's another answer (click) several decades ago and I modified to meet my requirement. But honestly I am not sure whether or not it is safe for long-term use. \documentclass[dvipsnames,border=12pt,preview]{standalone} \usepackage{xcolor} \usepackage{showexpl} \usepackage{accsupp} ...


1

The column separation specification @{<stuff>} inserts <stuff> between the columns, so the result is as expected in your case. If you want a 2.5pt gap, then you need to insert @{\hspace{2.5pt}}. However, if your main aim is to align the parts at the = sign, then you can use \documentclass{article} \usepackage{amsmath} \begin{document} ...


1

You could simply not use the \text{...} "wrapper" in the second argument of \DeclareMathOperator*} macro. Instead, just write \newcommand\myspacer{\quad} \DeclareMathOperator*{\minimize}{minimize\myspacer} \DeclareMathOperator*{\subjto}{subject\ to\myspacer} The macro \myspacer is set to \quad for now. If you wish to change it to \qquad or \, that's ...



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