New answers tagged

0

You can use the \smashoperator command, from mathtools: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation*} \smashoperator{\bigcup_{a \in \{\text{set that is very wide}\}}} S_a \end{equation*} \end{document}


5

The Z part in Mico's answer can be rewritten in a different way. Still big but at least there is a pattern and also code-friendly since kronecker product is associative. \documentclass{article} \usepackage{mathtools,multirow} \begin{document} \[ \left[ \begin{array}{c|c|c} \begin{psmallmatrix}-1\\-1\end{psmallmatrix}\otimes I_{2} \otimes \begin{...


4

The full matrix simply has too many non-trivial elements to fit in portrait mode on a normal-sized page, even with \arraycolsep set to (nearly) 0pt. That's why the matrix is protruding into the right-hand margin instead of being centered within the text block. I think you have two main options: You could either use landscape mode to display the full matrix,...


1

The following patch updated \makecvheader to insert an image to the left of the name. It's set using a left overlap so as to maintain the regular layout. Add \usepackage{etoolbox} \patchcmd{\makecvheader}% <cmd> {\headerfirstnamestyle}% <search> {\leavevmode% Start paragraph \llap{% Left overLAP \includegraphics[height=29pt]{example-...


2

An alternative approach using tabularand \captionof from thecaption`-package. I do not really like using tabulars for this, but it works. You can then align the images and caption individually. Output Code \documentclass{article} \usepackage{graphicx} \usepackage{array} \usepackage{caption} \begin{document} \begin{tabular}{m{4cm}m{6cm}} \...


3

You may wish to move the content into place for the smaller image. To do so, place the larger image inside a box - \imagebox - so you can measure its height: \documentclass{article} \usepackage{graphicx} \newsavebox{\imagebox} \begin{document} \begin{figure} \savebox{\imagebox}{\includegraphics[width=.45\linewidth]{example-image-9x16}}% \begin{...


3

Add [b] to minipages, it will vertically align them to the bottom. \begin{minipage}[b]{.45\linewidth} As pointed out by Mico, there is no use for \centering here. Output Code \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[h] \begin{minipage}[b]{.45\linewidth} \includegraphics[width=.5\...


2

Something like this? (The [b] position specifiers are needed to bottom-align subfigures b and c.) \documentclass[demo]{report} % omit 'demo' option in real document \usepackage{graphicx,subcaption} \begin{document} \setcounter{chapter}{1} % just for this example \begin{figure} \begin{minipage}[b]{0.45\textwidth} \begin{subfigure}[b]{\linewidth} \...


1

To gain control over the spacing, you can use the \columns environment provides by beamer: \documentclass[xcolor={dvipsnames,svgnames}]{beamer} \usetheme{CambridgeUS} \usecolortheme{spruce} \usepackage[english,greek]{babel} \usepackage{ucs} \usepackage[utf8x]{inputenc} %\usepackage{kerkis} \usepackage{booktabs} \usepackage{tikz} \usepackage{booktabs,...


1

First question: \node (action5) [action, label=0:{Send message to A \\ response(projection)}] at (action4 -| test1){}; % Second question: \draw[->,red] (wait1)--($(test1)!(wait1)!(action5)$) node[pos=0.3,above] {response(complete)}; Please don't just add code that doesn't compile (missing lots of styles and libraries). Not only it is super ...


2

If you check the warning you get with your code you will find one telling you that the \headheight is to low. So you need to set it to a propper value, for example with: \setlength{\headheight}{44pt} Then the overwriting is gone. Please see the corrected and a little bit more minimized MWE: \documentclass[ngerman]{scrartcl} \usepackage[T1]{fontenc} \...


4

Here's a KOMA-friendly method using scrlayer-scrpage: \documentclass[headheight=55pt,headsepline]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \setcounter{secnumdepth}{5} \setcounter{tocdepth}{5} \usepackage{scrlayer-scrpage} \ihead{% \parbox{9cm}{% \begin{flushleft} \bfseries Test\\ \scriptsize Test\\\vspace*{0.15cm} \...


6

EDIT -- After posting the code below, I worked on it some more and got rid of some of the ugliness. Rather than continuing to update this answer, I made a project on github: https://github.com/bcrowell/timetravel Below is the code for a proof-of-concept implementation of this idea. The good news: It accomplishes what I wanted to do for this application. ...


1

The simplest method is probably to place the nodes below right and below left of the .south anchor of the upper node to centre the upper block relative to the lower ones. To centre the upper block relative to the frame, it is probably easiest to draw the lower blocks first and then centre the upper block relative to the current bounding box. I've also ...


1

Thanks to Axel Sommerfeldt's solution to a similar issue described in Compatibility issue with \renewenvironment{figure} and [H] placement I was able to solve the problem by patching \float@endH from the float package as well. \documentclass[]{article} \usepackage{mwe} \usepackage{changepage} \usepackage{float} \makeatletter \newenvironment{shiftedfloat}[...


1

I discovered that using a minipage appears to work a few hours after posting. \newenvironment{smallbox}[1][p]{% \begin{boxe}[#1] \begin{minipage}[c][\textheight]{\linewidth} }{\end{minipage}\end{boxe}}


3

I would like to suggest that you load the subcaption package and use side-by-side subtable environments. The one on the left will contain sub-tables (a) and (b), and the one on the right will contain sub-table (c). \documentclass{report} \usepackage{float} \usepackage{subcaption} \begin{document} \hrule % just to illustrate width of textblock \begin{...


3

Instead of having table environments inside minipages, use one table environment and two minipages inside that. You can have multiple captions inside the same table (or figure) environment. Note that with two minipages of 0.5\linewidth next to each other and a \quad space between, you'll get an overfull box and the second minipage poking a little bit into ...


1

Of course, you still have to count lines this way. \documentclass{article} \usepackage{graphicx} \usepackage{afterpage} \usepackage{caption} \usepackage{showframe} \begin{document} \section{aaa} aaaa one two three four five six seven eight nine ten one two three four five six seven eight nine ten one two three four five six seven eight nine ten \rule{...


3

If you let tex page break normally and note where it breaks the page you can force a "hidden" paragraph break at exactly that spot and insert th ewrapfig: \documentclass{article} \usepackage{graphicx,wrapfig} \begin{document} \section{aaa} aaaa one two three four five six seven eight nine ten one two three four five six seven eight nine ten one two ...


4

You can use above right or below right as a possible parameter for node. For instance: \node [block, above right=of a1] (a2) {A2}; You can also use seperate distances for above or right: \node [block, above right=2cm and 1cm of a1] (a2) {A2}; To recreate your image example, you'd use: \node [block, right=of a1] (a2) {A2}; \node [block, above right=of ...


2

Elaborating on Werner’s answer (with compliments to his crystal ball… :-) \documentclass[a4paper]{article} \usepackage[T1]{fontenc} % not actually necessary, but recommended \usepackage[width=14cm]{geometry} % just for this example \usepackage{amsmath} \begin{document} Text before. \begin{equation} \begin{split} \text{PRODUCTION}_{i,t} &= ...


1

You're probably looking for something like this: \documentclass{article} \usepackage[margin=1in]{geometry}% Just for this example \usepackage{amsmath} \begin{document} \begin{align} \text{PRODUCTION}_{i,t} &= b_0 + b_1 \text{FORECAST}_{i,t} + b_2 \text{PEER\_FORECAST}_{i,t} + \nonumber \\ &\phantom{{}={}} b_3 \text{FORECAST}_{i,t} \times \...


0

Well, if I understand you right, you have to change your \begin{minipage}{.5\textwidth} to \begin{minipage}{.5\textheight}, because you used environment landscape. This means that now the given textheight of your document becomes the width of the new typing area ... I show it to you in the following mwe (please see I added an command \fbox in your subfile ...


1

Here is my take on it, the idea is to use xstring to look at the last character in the input and then adjust accordingly. The positive thing here is of course that we can adjust this from the preamble. Of course things like \big) is not something that can be catched with this method. \documentclass[a4paper]{memoir} \usepackage{xstring} % Caveat \transpose{ ...


0

The solution was to change the titleFormat using a negative value for vspace like below: \titleformat{name=\chapter,numberless}[display] {\normalfont\color{yourcolor}} {} {1ex} {\vspace{-20ex}\huge\sffamily\itshape\center} [] \titlespacing*{\chapter}{0pt}{50pt}{40pt}


4

Here's a first pass which adjusts automatically for the current line width but not for the kind of arrow tip. It also requires modification if the direction direction/angle of the path differs or if the arrow points in the opposite direction, for example. \documentclass[tikz,border=10pt,multi]{standalone} \usetikzlibrary{positioning,calc,arrows.meta} \begin{...


2

Something like this? Note: The logo exists in .svg format. I had to convert it to .pdf. Also, don't use the figure environment for an image that doesn't have to float, and has no caption. \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[svgnames]{xcolor} \usepackage{amssymb} \colorlet{Blue}{blue} \begin{document}...


1

Do you want something like this: \begin{titlepage} \noindent\parbox{\linewith}{\includegraphics[width=0.25\textwidth]{<path>}\\ Text below the picture} \vspace{-30pt}%if needed \begin{center} some stuff \end{center} \end{titlepage}


1

For example you can use the wasysym package, and with quick command to automate some proper spacing, here it goes. Output Code \documentclass{article} \usepackage{wasysym} \newcommand\insq[1]{% \Square\ #1\quad% } \begin{document} \textbf{Gab es irgendwelche technischen Probleme?} \insq{Allgemein} \insq{Personalisiert} \insq{Keine Probleme} \...


3

Just for fun (pdf only): \documentclass{article} \usepackage{hyperref} \begin{document} \CheckBox[name=check1]{} Allgemein \hfil \CheckBox[name=check2]{} Personalisiert \hfil \CheckBox[name=check3]{} Keine Probleme \end{document}


1

\makebox[2cm][l]{$\square$ TextA} \makebox[2cm][l]{$\square$ TextB} \makebox[2cm][l]{$\square$ TextC} Change [2cm] to whatever you need


0

Using multicol: \documentclass{article} \usepackage{enumitem,amssymb} \usepackage{multicol} \newlist{todolist}{itemize}{2} \setlist[todolist]{label=$\square$} \begin{document} \begin{multicols}{3} \begin{itemize} \begin{todolist} \item List item 1 \item List item 2 \item List item 3 \item List item 4 \...


0

This problem is solved by using the latest version of LaTeX or including \usepackage{dblfloatfix} in your preamble.


1

The width of the collection of \columns is too wide: 0.5\textwidth + 0.5\textwidth + 0.05\textwidth > \textwidth. Go with something less wide: \documentclass{beamer} \let\Tiny\tiny% http://tex.stackexchange.com/a/94159/5764 \begin{document} \begin{frame} \frametitle{A frame title} \begin{columns} \column{0.4\textwidth} \begin{figure} ...


5

Here is a solution with wrapfigure. I replaced the items of a description environment (wrapfigure won't work) with a special formatting of \paragraph with the titlesec package, in order to mimick the layoout of a description environment: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{fourier, erewhon} \usepackage[showframe]{...



Top 50 recent answers are included