# Tag Info

2

For strange reason, braket uses \: for \Set, where \, would be sufficient. I propose to redefine the commands with a *-variant that suppresses the spaces next to the braces (and with \, in the “big” form). \documentclass{article} \usepackage{braket,xparse} \begingroup \catcode\|=\active \gdef\changebarto#1{\mathcode\|="8000 \let|#1} \endgroup ...

2

The definition of \Set includes a \medmuskip \: around its argument (from braket.sty): \expandafter\gdef\csname Set \endcsname#1{\left\{% \ifx\SavedDoubleVert\relax \let\SavedDoubleVert\|\fi \:{\let\|\SetDoubleVert \mathcode`\|32768\let|\SetVert #1}\:\right\}} Note the use of \: after \left\{ and before \right\}. You can redefine ...

4


2

The extra space is added according to the inner sep and outer sep amounts. If you zero them out the image is tightly packed inside the node thanks to inner sep=0 and moreover the arrows start right from the border thanks to outer sep=0 \documentclass[tikz]{standalone} \usepackage{mwe} % For dummy images \usetikzlibrary{positioning} \begin{document} ...

4

Building on Mike Renfro's answer, you can use the mdframed package to produce the frame as the original one, not including line numbers: \documentclass{article} \usepackage{xcolor, listings} \usepackage[framemethod=tikz]{mdframed} \def\postbreak{% \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookrightarrow\space}}} \lstset{postbreak=\postbreak, ...

4

Working from Formatting source listings with listings & framed packages, if you don't mind the frame going around the line numbers, you can use the framed package and keep your frames and linebreaks intact. \usepackage{framed} ... \begin{framed} \begin{lstlisting}[escapeinside={@}{@}] Lorem ipsum dolor sit amet,@\newline\postbreak@ ...

1

This revised solution addresses the requirement to be able to scale the result to different math style sizes. To do that, features of the scalerel package are employed to import the current math style into the revised definition of \tilde. And, as with the original solution, it provides the desired syntax and does it without frontloading the \tilde with a ...

1

As people have mentioned dgroup is pretty much the only way. However, I found using breqn to be inconvenient. It still requires intervention, because equations are not broken up the way I would like. So, now I'm using gather* with split.

5

The extra space comes from \partopsep. You can set \partopsep to 0pt: \documentclass{article} \usepackage[a5paper]{geometry}% http://ctan.org/pkg/geometry \usepackage{changepage,lipsum}% http://ctan.org/pkg/{changepage,lipsum} \makeatletter \renewenvironment{adjustwidth}[2]{% \begin{list}{}{% \partopsep\z@% \topsep\z@% ...

4

Here's one option that uses a paragraph break rather than a forced line break: \documentclass[12pt,letterpaper]{article} \usepackage{amsmath,amsthm,enumitem} % LSP is short for Lamport Structured Proof \newlist{lsp}{enumerate}{10} \setlist[lsp]{label=\arabic*.,ref=\arabic*} \newcommand{\lspproof}{\par\nobreak{\scshape Proof:}\quad} ...

7

This document is forced to 5 pages (don't try this at home:-) \documentclass{article} \newcount\maxpage \maxpage=5 \AtBeginDocument{\setbox0\vbox\bgroup} \AtEndDocument{\egroup \dimen0=\dimexpr\ht0 / \maxpage\relax \count0=1 \loop \setbox2\vsplit0 to \dimen0 \vbox to \textheight{\unvbox2\vss}% \pagebreak \ifnum\count0<\maxpage \repeat \vbox to ...

3

Here's a way: \documentclass{article} \usepackage{subfig} \usepackage{graphicx} \begin{document} \begin{figure}[htb] \captionsetup[subfloat]{farskip=2pt,captionskip=1pt} \centering \subfloat[Some figure]{\includegraphics[width=0.48\textwidth]{example-image-a}}\hfill \subfloat[Some other figure]{\includegraphics[width=0.48\textwidth]{example-image-b}} ...

4

You can use \\[<negativespace>] like \\[-2ex] after the last sub float in the current line. Some example: \documentclass{article} \usepackage{subfig} \usepackage{graphicx} \begin{document} \begin{figure}[htb] \subfloat[Some figure]{\includegraphics[width=0.48\textwidth]{example-image-a}}\hfill \subfloat[Some other ...

4

However you end up deciding, you might like to use DeclarePairedDelimiter from the mathtools package \DeclarePairedDelimiter{\group}{<}{,*{>}} This will allow you to make your choice in one go, and you can continue typesetting your document without worrying :) % arara: pdflatex % !arara: indent: {overwrite: yes} \documentclass{article} ...

2

Here are various options. The first was closest to your original question. The second is advocated by Werner's comment. The third and fourth are homemade versions in which the < and > are either stretched vertically or scaled with a maximum width constraint of 1ex. In both these latter cases, the size is set to span the vertical range of a \strut. ...

1

A solution using the floatrow package – and makecellto improve the appearance of column heads: each row of tables is in a floatrow environment; defined by a \tabbox{the table itself}{\caption{…}\label…}} command. No need for a \captionof command \documentclass[11pt, a4paper]{article} \usepackage[utf8]{inputenc} ...

2

There were two problems. One, Ignasi mentioned, which is that you did not line break or \parafter each set of two tabulars. The other problem is that you had 5, not 3 nor 6 \hspace macros. I removed the two that you had at the beginning of lines, leaving only the 3 that occurred mid line. \documentclass{article}% \usepackage{caption} \textwidth 6.5in ...

1

The sig-alternate class is set up to produce two-column documents. Given that (a) your table is quite a bit wider than a single column and (b) the figure is supposed to be as wide as \textwidth (rather than as wide as \columnwidth,say), you need to use the environments table* and figure* to create full-width (two columns wide) floats. By the way, in a ...

Top 50 recent answers are included