Tag Info

Hot answers tagged

9

Or use a minipage \documentclass{beamer} \begin{document} \begin{frame} \begin{center} \begin{minipage}{0.6\textwidth} \includegraphics[width=\linewidth]{example-image} \\ \raggedleft\url{http://xkcd.com/1301} \end{minipage} \end{center} \end{frame} \end{document}


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, ...


6

Use a tabular \documentclass{beamer} \begin{document} \begin{frame} \begin{center} \begin{tabular}{@{}r@{}} \includegraphics[width=0.6\textwidth]{example-image} \\ \url{http://xkcd.com/1301} \end{tabular} \end{center} \end{frame} \end{document}


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} ...


3

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} ...


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

...or use a right-aligned stack \documentclass[10pt]{beamer} \usepackage{graphicx} \usepackage{url,stackengine} \begin{document} \begin{frame} \begin{center} \def\stackalignment{r}\stackunder[6pt]{% \includegraphics[width=0.6\textwidth]{example-image}% }{% \url{http://xkcd.com/1301}% } \end{center} \end{frame} \end{document} ...


2

With package mathtools: \documentclass[11pt]{article} \usepackage{mathtools} \usepackage{array} \usepackage[math]{cellspace} \begin{document} \begin{table}[!htdp] \begin{center} \begin{tabular}{Sc @{\clap{0}} m{5cm} @{$\mathclap{c}$} m{5cm} @{$\mathclap{r}$}} \cline{2-3} \multicolumn{1}{c}{$\dfrac{1}{x}$} & \multicolumn{1}{|c}{F} & ...


2

One way to solve issues #1 and #2 is to center-set the confidence intervals below the corresponding point estimates, by encasing the intervals in pairs of curly braces, {...}. You can probably solve issue #3 by removing - (the minus symbol) from the list of "input symbols" defined in \sisetup{...}. However, since there's not a single - symbol in the table ...


2

For your first problem, it's because inside each cell we're in math mode. For the second problem, I think it would be better-looking to have the confidence intervals centred in the cell; to have the semi-colon centred between numbers, I replaced it with `{\,;\,}. I do not meet the third problem with the code you give. I also propose to put the legend at ...


1

Is this what you seek? Use of text width=the longest length and align=left,center, right of your selections. Code \documentclass[border=10pt]{standalone}%[12pt,twoside,a4paper]{book} \usepackage{graphicx,wrapfig,tikz} \usetikzlibrary{positioning,shapes} \tikzset{myarrow/.pic = { \begin{scope}[rotate=-90,scale=0.5] \draw[fill=black] (-0.5,0) -- ...


1

I figured out how to do it with a graphics package. Still interested if there's a way with tables. \documentclass[11pt]{article} \usepackage{array} \usepackage[math]{cellspace} \usepackage{tikz} \definecolor{fillcolour}{HTML}{eeeeee} \begin{document} \begin{tikzpicture} \draw (5,0) -- (5,1); \draw (0,0) rectangle (10,1); \draw [fill=fillcolour] (0,0) ...


1

With tabularx: \documentclass[11pt]{article} \usepackage{amsmath} %% showframe just for demo \usepackage{tabularx} \usepackage[table]{xcolor} \begin{document} \noindent\arrayrulewidth1pt \begin{tabularx}{\textwidth}{>{\hsize=0.05\hsize}XXX} \cline{2-3} \noalign{\vspace{\arrayrulewidth}} \raggedleft$\dfrac{1}{x}$ & ...


1

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} ...


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