# Tag Info

7

Something like this? \documentclass[10pt]{article} \usepackage{amsmath, amsthm, amssymb} \usepackage{array} \usepackage{booktabs} \usepackage[makeroom]{cancel} \begin{document} \noindent \begin{minipage}{0.45\textwidth} Solve the following system: \begin{align*} 6x-5y &= 11 \\ 7x+5y &= 2 \end{align*} \end{minipage} \bigskip\...

5

Here's a solution that uses side-by-side minipage environments but no multicols environment. Since the minipages are quite narrow, I suggest you use raggedright rather than full justification; this may be achieved by loading the ragged2e package with the option document. To align the variables within an equation, use \phantom statements along the lines used ...

5


4

Here is a solution. Use \setlength{\cftbeforetoctitleskip}{<dimen>} because \lstlistoflistings use \tableofcontents \documentclass{article} \usepackage{tocloft} \usepackage{listings} \setlength{\cftbeforetoctitleskip}{5cm} \begin{document} A \lstlistoflistings \begin{lstlisting}[caption={bla bla},label=list] for i:=maxint to 0 do begin { do nothing } ...

4

The warnings (not errors) come from the bookmark code. The setting of the space factor by \@ can be used with TeX, but not in bookmark strings. There the command can be disabled by: \usepackage{hyperref}% option "pdfencoding=auto" or "unicode" recommended \pdfstringdefDisableCommands{\let\@\@empty}

4

How about this: two aligned environments and an \eqparbox in between, nested in flalign. Eqparbox allows to have a \parbox of width the longest line width of the paragraph: \documentclass[10pt]{article} \usepackage{amsmath, amsthm, amssymb} \usepackage{array, eqparbox} \usepackage{booktabs} \usepackage[makeroom]{cancel} \begin{document} Solve the system. \...

4

I'd forego the use of \displaystyle, setting the entire construction using amsmath's cases: \documentclass{article} \usepackage{amsmath} \begin{document} Consider the following: \[ P\bigl[ \tfrac{1}{2} +\mu \bigr] = \begin{cases} 0 & \text{if }\mu <-\tfrac{1}{2} \\ \tfrac{1}{2} + \mu & \text{if }-\tfrac{1}{2} \leq \...

3

This may not be ideal visually, but addresses your concern: \documentclass{article} \usepackage{amsmath,eqparbox} \usepackage{xcolor,booktabs,tabularx} \usepackage[makeroom]{cancel} \usepackage[margin=1cm]{geometry} \begin{document} \begin{enumerate} \item[34.] Solve the system using elimination by addition. \begin{alignat*}{3} x + y + z &...

3

You should enclose everything in a \parbox, not just the chapter title. By the way, you should not load both titletoc and tocloft. The -15pt bit should correspond to some parameter in titletoc, find out which one. Add also a better separation between titles in the TOC. I removed most of the unnecessary package for the example. Changing \contentsname into ...

2

Use \floatsetup{captionskip=…}: \documentclass{book} \usepackage{graphicx} \usepackage{floatrow} \usepackage{caption} \captionsetup{ slc=false, } \begin{document} \begin{figure} \floatsetup{captionskip=2cm} \ffigbox[\FBwidth] {\caption{Caption goes here.}} {\includegraphics{example-image-a}} \end{figure} \end{document}...

2

Here's a solution that uses the dcases environment provided by the mathtools package. It works like cases, except that all contents are rendered in \displaystyle automatically. The screenshot also shows the output of the corresponding cases environment. \documentclass[12pt,a4paper]{article} \usepackage{mathtools} \begin{document} Consider the following: \[...

2

Here's a solution that aligns three columns, adapted from this answer. \documentclass{article} \usepackage{amsmath} \begin{document} Consider the following: \[ P\Big[\frac{1}{2}+\mu \Big] = \setlength{\arraycolsep}{0pt} \renewcommand{\arraystretch}{2} \left\{ \begin{array}{l @{\quad} l r l} 0 & \text{if } & \mu &{}< -\dfrac{1}{...

1

You can make a longtable environment look very much like an array environment. The longtable environment provides for automatic page breaking, and you can give it a \caption, if need be. If it's not possible to tell which of the following two arrays was created with longtable and which was created with array, that's by design. :-) \documentclass{article} ...

1

To remove all the space below the figure, you can use \setlength\intextsep{0pt}. This will have to be used outside the float, therefore I put it within curlybraces {} so that it would only be a local change. Put it in the preamble if you want it to affect all figures. Even though this might solve this issue, as Werner points out, this will not always work ...

1

You can always check with \ifvmode or \ifhmode, e.g., \ifvmode do this\else do that\fi. But here you don't need that because \par acts that way (don't use \newline or \\ to end paragraphs). I added the \noindent which does no harm if \parskip=0pt and acts as you seem to want when \parskip≠0pt. \newenvironment{myenv} {\begin{trivlist}\item} {\par\...

1


1

The relevant LaTeX parameters are: \intextsep: the space between text and floats in the running text \textfloatsep: the space between a float at the top of the page and the text, also the space below text and a float at the bottom of the page \floatsep: the space between to consecutive floats Thus you should be adjusting the first two of these parameters....

1

this worked for me. :D \begingroup% \makeatletter% \cleardoublepage% \let\newpage\relax% \let\clearpage\relax% \vspace*{\fill}% \vspace*{\dimexpr-50\p@-\baselineskip}% Remove the initial %% -default- 50pt gap (plus 1 line) \chapter{Hello World} \vspace*{\fill}% \endgroup%

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