New answers tagged

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$ & ...


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


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


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


1

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


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

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


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


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


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


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

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

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

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


0

You could use a minipage to allow the line break within the node. \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{chains} \begin{document} \begin{tikzpicture}[ start chain, every node/.style={ draw, text height=1.5ex, text depth=.0ex, text width=7em, text centered, ...


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


0

Another option: use \XBox with the wasysym package


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

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


0

You can scale a bold \ominus; whether this works in WordPress I don't know, but it would be off-topic, because WordPress uses MathJax that's not TeX. \documentclass{article} \usepackage{amsmath,bm,graphicx} \makeatletter \newcommand*{\bigominus}{\DOTSB\bigominus@\slimits@} \newcommand{\bigominus@}{\mathop{\mathpalette\bigominus@@\relax}} ...


0

\bigominus does exist, in the mathx font og=f the mathabx package. You can easily use it without having to change the default math font: \documentclass{article}% \usepackage[utf8]{inputenc} \DeclareFontFamily{U}{mathx}{\hyphenchar\font45} \DeclareFontShape{U}{mathx}{m}{n}{ <-6> mathx5 <6-7> mathx6 <7-8> matha7 <8-9> mathx8 ...


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


0

One way is to use the multirow package and replace \textit{Accuracy} by \multirow{2}{*}[-3pt]{Accuracy} (args are: number of rows, width (* for natural width), fine tuning vertical position (optional), text).


0

You can also use the keys defined by Jake here. \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{shapes.geometric, intersections} \pgfplotsset{compat=1.7} \begin{filecontents}{mwe.dat} -6.9282,486.63,682.22 -4.0426,373.74,569.33 -1.1569,260.82,456.4 1.7287,147.95,343.53 4.6144,46.862,230.63 7.5,41.138,118.85 ...


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


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 \\ & = ...


0

You could do something like this to avoid having to enter the steps "in parallel" however it was too wide to fit in two columns so I split some lines up, perhaps your linewidth so now it looks a bit spaced out. But the basic idea is to use \allowdisplaybreaks and multicols \documentclass{article} \usepackage{amsmath,multicol} \allowdisplaybreaks ...


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


1

You should use siunitx for the units; for the alignment, use an array: \documentclass[11pt,a4paper]{article} \usepackage{array,siunitx} \begin{document} \[ \setlength{\arraycolsep}{0pt} \sisetup{per-mode=fraction} \begin{array}{ >{\displaystyle}c >{\displaystyle}c *{3}{ >{{}}c<{{}} >{\displaystyle}c >{\displaystyle}c } } ...


1

I do it here by stacking the unit under each term. EDITED to incorporate siunitx calls, invoked in customized form as \mySI{<units>}. \documentclass[11pt,a4paper]{article} %%%%%%%%%%%%%%%%%%% %%% Usepackages %%% %%%%%%%%%%%%%%%%%%% \usepackage[utf8]{inputenc} % Deutsche Tastatur / Umlaute \usepackage[T1]{fontenc} ...


5

You need to make sure that the equation sides have equal width. That can be achieved by placing the smaller elements inside a box of larger width via \makebox (X_x is wider than A_x and B_x +/- C_x is wider than Y_x +/- Z_x): \documentclass{article} \usepackage{algpseudocode} \usepackage{algorithm,calc} ...


6

\documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage[paperwidth=6in, paperheight=9in, margin=0.9in, showframe]{geometry} \usepackage{lipsum} \begin{document} \begin{figure} \centering \begin{minipage}{.4\textwidth} \centering \includegraphics[width=1\linewidth]{example-image} \end{minipage}\qquad \begin{minipage}{.4\textwidth} ...


4

Just reserve the wanted space to the minipages; with \dimexpr it's easy to fix the space in between the images (here to 2 ems). Note that you don't need \captionof. With \begin{minipage}[t] you ensure alignment with respect to the bottom of the pictures. \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage[paperwidth=6in, ...


0

Based on egreg's answer, making use of memoir's "out-of-the-box" subfloat features and etoolbox to automate the answer a little more: \documentclass{memoir} \usepackage{pgf,etoolbox} \newsubfloat{figure} \newcommand{\fourimagesbox}[3]{\begin{minipage}[c][#2]{#3} \centering \makebox{\copy#1} ...


1

Remove all the \begin{singlespacing} and \end{singlespacing} tags - they seem to be adding padding to the document that interferes with the textblocks. If you want to have different line spacing for a certain part of your text, you can adjust it on the fly with \\[10pt] or \\[-2pt] or similar, at the end of lines.


0

Another option: \makebox[0pt][l]{$\square$}{\raisebox{0.1\height}{$\times$}} (use raisebox as in the first simbol you use)


-1

\documentclass{article} \newbox\mybox \newenvironment{mytextbox}[1] {\vskip-\baselineskip\setbox\mybox=\vbox\bgroup\vskip#1} {\egroup\ht\mybox=0pt\box\mybox} \begin{document} \begin{titlepage} \begin{center} \begin{mytextbox}{0.5cm} \textbf{asdf\\ asdf ÜNİVERSİTESİ\\ FEN BİLİMLERİ ENSTİTÜSÜ} \end{mytextbox} \begin{mytextbox}{4cm} ...


4

The accepted answer is overcomplicated and with one potential bug. Try to write "Plus text text text" instead "Text text text" and think about the error message:). What you need is something like this: \newenvironment{mytextbox}[1] {\nointerlineskip \vbox to 0pt\bgroup\vskip#1\relax} {\vss\egroup} Note: you need not to allocate special box, you ...


6

In order to add space at the top of the page you have to say \vspace*{3cm} because the simple \vspace is removed at page breaks. If you want precise positioning with respect to the page margins, you can use textpos. For instance \documentclass{book} \usepackage{textpos} \newcommand{\fromtop}[1]{% ...


4

I find tikzpagenodes to be perfect for laying out title pages. Note, you need to run this twice. \documentclass{article} \usepackage{tikzpagenodes} \usetikzlibrary{calc} \usepackage{mwe} \begin{document} \thispagestyle{empty}% I assume you don't want a page number \begin{tikzpicture}[remember picture,overlay] \draw[red] (current page text area.south ...


1

Try this: \newbox\mybox \newenvironment{mytextbox}[1] {\vskip-\baselineskip\setbox\mybox=\vbox\bgroup\vskip#1\relax} {\egroup\ht\mybox=0pt\box\mybox} At the beginning of the environment it starts a box and puts the appropriate vertical space at the top of it. The body of the environment goes into the box, and then at the end it sets the height to ...



Top 50 recent answers are included