# Tag Info

6

Put & before the text, not after. I also modified text subscripts (red, sp) as text, and removed \limits (redundant in this environment) in the first equation: \documentclass[ngerman]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[showframe, ...

5

\documentclass{article} \usepackage[T1]{fontenc} \usepackage{fouriernc} \usepackage{mathtools} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} \omega_{1}^2&=1-2\sqrt[3]{19}+\sqrt[3]{19^2}\\ \omega_{1}^{2}&=b\omega_{1}+a\omega_{2}+r\\ a=3, & \qquad b=-3, \qquad r=-3 \\ ...

4

Here's a solution with the verbatimbox package. Note that this first solution will not break the verbatim across page boundaries. \documentclass{article} \usepackage{verbatimbox} \begin{document} \begin{enumerate} \item First item \begin{enumerate} \item First sub-item \hspace{-5cm}\begin{verbbox}[\tiny] This line of code is nice and ...

4

Verbatim is a list and uses as leftmargin \@totalleftmargin. So you can change this locally: \documentclass{article} \usepackage{fancyvrb} \begin{document} \begin{enumerate} \item First item \begin{enumerate} \item First sub-item \begingroup \makeatletter \@totalleftmargin=-1cm \begin{Verbatim}[fontsize=\tiny] This line of code is nice and ...

4

The interesting thing is that \tempa gets set to zero at some point and has to be recomputed. \documentclass{standalone} \usepackage{mathtools} \newlength{\tempa} \newcommand{\aligncenter}[1]% #1=display math to be aligned {\settowidth{\tempa}{$\displaystyle #1$}% \hspace{0.5\tempa}&% \settowidth{\tempa}{$\displaystyle #1$}% \hspace{-0.5\tempa}#1} ...

4

In this specific case one sub-optimal option would be to use \smashoperator[l]: \documentclass{article} \usepackage{mathtools}% Loads amsmath \begin{document} \begin{align*} & \smashoperator[l]{\prod_{-n \leq k \leq n-1}}\left[\frac{k+1}{k}\right] = -1 \\ & \smashoperator[l]{\prod_{1 \leq j \leq n}} j = \lim_{m\to\infty} \frac{m^{n+1} ...

4

This is a very dirty trick, but it works. It aligns the matrices' elements rather than the delimiters. \documentclass[11pt,a4paper,oneside]{report} \usepackage[pdftex]{graphicx} \usepackage[T1]{fontenc} \usepackage{fouriernc} \usepackage{mathtools} \usepackage{amsfonts,amsmath,amssymb,amsthm} \usepackage[a4paper, hmargin={3.5cm,3cm}, ...

3

ragged2e updates both \newline and \\ to function differently. Before updating, it stores the original set of macros. The original functionality can be reinstated by placing \makeatletter \let\@gnewline\@raggedtwoe@saved@gnewline% Restore original functionality of \newline \let\\\@raggedtwoe@savedcr% Restore original functionality of \\ \makeatother in ...

3

Or use a makebox: \documentclass[10pt]{beamer} \begin{document} \begin{frame} \centering \includegraphics[width=0.6\textwidth]{example-image}\\ \makebox[0.6\textwidth][r]{\url{http://xkcd.com/1301}} \end{frame} \end{document} Or \llap and \raisebox \documentclass[10pt]{beamer} \begin{document} \begin{frame} \centering ...

2

The code could be written as shown below \documentclass{article} \usepackage[pdftex]{graphicx} \usepackage[T1]{fontenc} \usepackage{fouriernc} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} \omega_{1}^2&=1-2\sqrt[3]{19}+\sqrt[3]{19^2}\\ ...

2

fancyvrb provides xleftmargin and xrightmargin as key-value settings to adjust the left/right margins of the verbatim text: \documentclass{article} \usepackage{fancyvrb} \begin{document} \begin{enumerate} \item First item \begin{enumerate} \item First sub-item \begin{Verbatim}[fontsize=\tiny,xleftmargin=-5cm] This line of code is nice ...

2

1ST APPROACH This page checks the page number for even/odd, to decide whether to left or right lap the chapter number. The distance from the outside edge of the chapter number to the edge of the page is preserved in this approach. \documentclass[letterpaper,twoside,openright]{memoir} \usepackage{blindtext} \usepackage{graphicx} \usepackage{etoolbox} ...

2

You have better ways of colouring an equation. See for example: this question and its answers. I have used empheq in my example. With tcolorbox, you can be more fancier. Now the real problem. The following code works with the help of marginnote package. \documentclass{book} \usepackage{mathtools} \usepackage{xcolor} ...

1

There you go again: \documentclass{book} \usepackage{mathtools,amssymb,ifoddpage,showframe} %% remove showframe. \usepackage{xcolor} \definecolor{background}{RGB}{255,255,170} \usepackage{empheq} \newcommand*\mybox[1]{% \colorbox{background}{\hspace{1em}#1\hspace{1em}}} \usepackage{kantlipsum} \usepackage[fulladjust]{marginnote} ...

1

Put \resizebox inside the minipage environment. Actually, the minipage can be removed in such case, when double check and also found by @Mico. thanks. Code \documentclass{article} \usepackage[showframe]{geometry} \usepackage{booktabs} \usepackage{multirow} \usepackage{amsmath} \usepackage{graphicx} \begin{document} \noindent \begin{table}[htbp] ...

1

You can achieve that with the \mathclap command. As I don't see what the minipage environment is here for, I deleted it. \documentclass{article} \usepackage{mathtools} \usepackage{nccmath} \begin{document} \begin{align*} & \prod_{\mathclap{k = -n}}^{\mathclap{n-1}}\; \biggl[\frac{k+1}{k}\biggr] = -1 \\ & \prod_{\mathclap{j = 1}}^{n} j = ...

1

By default, matlab2tikz produces the code that enable scale only axis option of the axis environment (see 4.10.1 Common Scaling Options of the pgfplots documentation). Just remove that line from your .tikz file to solve the first issue. The second problem is more about your personal representation of the data, so I may only suggest to reduce the font or ...

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