Hot answers tagged

4

Simple, just use the [t] option for the aligned construct. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{aligned}[t] \frac{\partial l(\mu, \sigma|\mathbf{y})}{\partial \mu} & = -\frac{1} {2\sigma^{2}}\sum_{i=1}^{a}\sum_{j=1}^{n_{i}}(y_{ij}-\mu)=0 \\ & = ...


4

Measure the object to be quoted; if it's higher than the quotes, raise them. \documentclass{article} \usepackage{amsmath} \makeatletter \newcommand{\mquote}[1]{{\mathpalette\mqu@te{#1}}} \newcommand{\mqu@te}[2]{% \sbox0{$\m@th#1\text{``}$}% \sbox2{$\m@th#1\text{''}$}% \sbox4{$\m@th#1#2$}% \ifdim\ht4>\dimexpr\ht0+1pt\relax ...


4

Not sure that marginpar is really the right markup here but having got that far you can do: \documentclass[a4paper, 10 pt, oneside, final]{scrartcl} \usepackage[left=4.1cm, right=0.75cm, top=0.5cm, bottom=0.5cm]{geometry} \usepackage{soul} \usepackage{scrpage2} \usepackage{titlesec} \usepackage{marvosym} \usepackage{tabularx} \usepackage[francais]{babel} ...


3

Box it inside a varwdith environment, which allows you to move it around: \documentclass{article} \usepackage{showframe} \usepackage{shapepar,varwidth} \def\triangledownshape{% {0}% {0}b{0}\\% {0}t{-10}{20}\\% %{8.66}t{-5}{10}\\% {17.32}e{0}% } \def\triangledownpar#1{\Shapepar\triangledownshape #1\unskip\ .\par} \begin{document} ...


3

Assuming that you do not have paragraphs in your parshape: \def\triangledownpar#1{\vspace*{\fill}\noindent% \makebox[\linewidth]{% \Shapepar\triangledownshape#1\unskip\ .\par}\vfill}


3

With \begin{columns}[T] you can have the columns aligned to the top. \documentclass[14pt,handout,t]{beamer} \usepackage{lmodern} \addtobeamertemplate{frametitle}{\vspace*{2cm}}{\vspace*{1mm}} \geometry{paperwidth=297mm,paperheight=210mm} \usepackage{graphicx} \usepackage{lipsum} \setbeamersize{text margin left=100pt,text margin right=100pt} \begin{document} ...


3

What you want, as I understand it, is best obtained with alignat environment, from amsmath: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} \frac{\partial l(\mu, \sigma|\mathbf{y})}{\partial \mu} & = -\frac{1} {2\sigma^{2}} \sum_{i=1}^{a}\sum_{j=1}^{n_{i}}(y_{ij}-\mu)=0 & \qquad\qquad \frac{\partial l(\mu, ...


3

tabularx is the wrong tool here really, as the column widths are known in advance. I simplified the markup generally but seems to make the required table. \documentclass{article} \usepackage[left=1.5cm,right=1.5cm,top=2cm,bottom=2cm]{geometry} \usepackage{lscape,array} \newcommand{\decimaltable} {{\par \setlength\extrarowheight{10pt}% ...


3

Here's a suggestion with just one tikzpicture environment, and the four axis environments placed relative to each other. I also shortened the title of each axis and added a line break to make them narrower, and removed the ylabels from the axes on the right. Finally I moved the label for 2012 Q4 in the first axis. As a sidenote you may be interested in the ...


3

\documentclass{article} \usepackage{delarray} \begin{document} \[ \begin{array}[t]\lbrack{c}\rbrack 1\\2\\3\end{array} + \begin{array}[t]\lbrack{c}\rbrack 1\\2\\3\\4\\5\end{array} \] \end{document}


3

For centering you need to make two changes in your code: first column type should be c for multirow use \multirow{2}*{...} instead \multirow{2}{10mm}{ Since I can not compile your original MWE, I comment parts which doing troubles. SO I get the following result: \documentclass[a4paper,fontsize=11pt]{scrbook} \usepackage[margin=25mm]{geometry} ...


2

Without multirow: \documentclass[a4paper,fontsize=11pt]{scrbook} \usepackage[margin=25mm]{geometry} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{csquotes} %\usepackage{amsmath,amssymb} \usepackage{array} \begin{document} \begin{center} \begin{tabular}{>{$}c<{$}|m{0.55\linewidth}}\hline s_{21} & ...


2

tcolorbox has to insert certain code (including the before skip) before the remaining height can be calculated. Here, the inserted skip apperently is not removed automatically. I can offer the following 'hotfix' which inserts a negative skip at the \pagebreak. Currently, I have not the time to investigate possible negative impacts of this patch further, but ...


2

Does this meet your needs? \documentclass{article} \usepackage{amsmath,scalerel} \newsavebox\tmpbox \newcommand*{\mquote}[1]{\ThisStyle{\savebox{\tmpbox}{\hbox{$\SavedStyle#1$}}% \raisebox{\dimexpr\ht\tmpbox-.7\ht\strutbox}{``}\usebox{\tmpbox}% \raisebox{\dimexpr\ht\tmpbox-.7\ht\strutbox}{''}}} \begin{document} \[ \frac{f(x)}{g(x)} \implies ...


2

Do you liked the following position: It is achieved by (only snipped of MWE) \begin{axis} \addplot[black,mark=none] table [col sep=comma,x index=0,y index=1] {mwe.dat} node[above left] {$f_1(x)$}; \addplot[mark=none,black] table [col sep=comma,x index=0,y index=2] {mwe.dat} node[below left] {$f_2(x)$}; \end{axis} Edit: ...


2

The row only appeared misaligned due to the non-symmetric rule added which had height but not depth. \documentclass[12pt]{report} \usepackage{array} \usepackage{amsmath} \begin{document} \begin{tabular}{| >{$}c<{$} | c | c | c | c | c | c |c |} \cline{2-8} \multicolumn{1}{c}{}&\multicolumn{7}{|c|}{\rule{0mm}{0.4cm}{figure1 put here}}\\ \hline ...


2

You can grab the floatrow documentation code: \floatsetup[widefloat]{margins=hangleft} \begin{figure*}% \begin{floatrow}[4] \ffigbox {\caption{Figure~I in the row (\texttt{floatrow}), ``column'' width}% \label{fig:row:Dog}} {\input{TheDog.picture}} \ffigbox[\FBwidth] {\caption{Figure~II in the row (\texttt{floatrow}), ...


2

The reference point of an image is at its bottom. Add some space in the left column, \vspace{\topsep} is the same as what's added by the itemize environment in the right column. In other cases you can use \vspace{0pt}. \documentclass[14pt,handout,t]{beamer} \usepackage{lipsum} \geometry{paperwidth=297mm,paperheight=210mm} \setbeamersize{text margin ...


1

May I suggest to use a version like this: \documentclass[a4paper, fontsize=11pt]{scrartcl} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage[onehalfspacing]{setspace} \usepackage{amsmath,array,booktabs} \begin{document} \begin{table} \begin{tabular}{*{4}{c}} \toprule Spieler $1$ & ...


1

Okay, even more searching gave me this: \begin{frame}[c,allowframebreaks] \begin{figure} . . . \end{figure} \end{frame} which does the trick.


1

Just make two rows, one for images, one for captions \begin{figure}[htbp] \centering \begin{minipage}{0.6\textwidth} \includegraphics[width=\textwidth]{figures/fig1.jpg} \end{minipage}%%% \hfill \begin{minipage}{0.35\textwidth} \includegraphics[width=\textwidth]{figures/fig2.png} \end{minipage} ...


1

Like this? The code of above image is: \documentclass[border=3mm, tikz]{standalone} \usetikzlibrary{chains} \begin{document} \begin{tikzpicture}[ start chain = going right, every node/.style = { draw, minimum height=3em, text width=7em, align=center, on chain, join} ] \node {node with\\linebreak}; ...


1

You could define a \centerbox command which you wrap around all the images you want to include. Technically, it's not the label "(a)" which is off, but the images only get placed with zero offset. That's what you can change with a \raisebox. \documentclass{article} \usepackage{graphicx} \usepackage{subfigure} ...


1

Most of your problems are answered in comments (see Johannes_B and salim bou), regarding mdframed you probably want, that text is aligned. This can be possible only in case, if you use `mdframed on left side too but with white lines (that on white paper aren't visible): \documentclass{article} \usepackage{array} \usepackage{mdframed} ...


1

Some manual work, but this seems to be what you're looking for. Note that subfigure has been obsolete for several years and subfig is much better, if not subcaption that, however, has quite a different syntax. \documentclass{article} \usepackage{graphicx} \usepackage{subfig} \begin{document} \begin{figure}[htp] \centering ...


1

You also might use the \makecell command, which allows for line breaks inside cells I took the liberty to slightly improve your table (in my opinion) with a thicker vertical rule and increasing \arraystretch: \documentclass[a4paper, fontsize=11pt]{scrbook} \usepackage{geometry} \geometry{a4paper, top=25mm, left=25mm, right=25mm, bottom=20mm, headsep=10mm, ...


1

I'm not sure if this is what you looking for: The obtain above picture of table is obtained by your code, where I erase \setlength{\extrarowheight}{10pt} (whic add only space above cells content) and add \renewcommand\arraystretch{1.5}. So, the complete code (with some changes in setting of math expressions), is: \documentclass[a4paper, ...



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