Tag Info

Hot answers tagged

8

This puts each box at the end of the first column in which it fits: \documentclass{article} \usepackage[margin = 0.1in]{geometry} \usepackage{multicol} \setlength\columnsep{0pt} \setlength\parskip{0pt} \setlength\parindent{0pt} \setlength\lineskip{0pt} \raggedcolumns \newcount\myboxes \newenvironment{mbxs}{\par}{% \myboxes=10000 \noindent \loop ...


6

\documentclass{article} \usepackage[margin = 0.1in]{geometry} \usepackage{multicol} \setlength\columnsep{0pt} \setlength\parskip{0pt} \setlength\parindent{0pt} \setlength\lineskip{0pt} \raggedcolumns \begin{document} \begin{multicols}{3} \fbox{% \begin{minipage}[t]{\dimexpr\linewidth-2\fboxsep-2\fboxrule\relax} text \end{minipage}} \fbox{% ...


5

Like this? \documentclass{article} \usepackage{tikz,lipsum,showframe} \tikzset{mybox/.style = {text width=\dimexpr\linewidth-20pt-\pgflinewidth\relax,align=justify,draw=red, very thick, rectangle, rounded corners, inner sep=10pt, inner ysep=10pt}, fancytitle/.style ={fill=red, text=white,rounded corners} } \begin{document} \noindent ...


5

minibox is just a one column tabular so you can shrink it vertically with \arraystretch as it has been stretched already by the \onehalfspacing Also, don't leave a space before the % at end of line: \documentclass{article} \usepackage{setspace} \onehalfspacing \renewcommand{\arraystretch}{1} % tables smaller spacing \setlength{\tabcolsep}{5pt} ...


4

Try the following definition: \usepackage[colaction]{multicol} \newcommand\stickout[1]{% \docolaction{\begin{wrapfigure}[11]{l}[50pt]{.3\textwidth}\hspace{20pt}}% first col {\ERROR}% middle {\begin{wrapfigure}[11]{r}[50pt]{.3\textwidth}\hspace{-20pt}}% last ...


4

Your issue is algorithm is a float environment by default, and you can't have floats inside a minipage. However, you can specify the [H] option to suppress floating and have it work as you intend: \documentclass{article} \usepackage{algorithm2e} \begin{document} \begin{minipage}{.5\linewidth} \begin{algorithm}[H]\small {Start}\; ...


3

Here is one option, provided by the environment foodstuff below: \documentclass{article} \usepackage{graphicx,tabularx,environ} \usepackage{lipsum} \makeatletter \newcommand{\@leftimage}{} \newcommand{\@rightimage}{} \let\leftimage\@gobble \let\rightimage\@gobble \long\def\extractleftimage#1\leftimage#2#3\null{\renewcommand{\@leftimage}{#2}} ...


3

Please always post complete documents not fragments, so this is untested, but putting a longtable in a minipage removes all the features of longtable and using longtable instead of tabular removes all the features of tabular, in particular tabular are naturally the width of their content. \begin{table}[!htb] \begin{tabular}[t]{l} ...


3

I would use a single figure environment, start the adjustwidth environment inside the figure environment, and use two minipage environments, side by side, to display the two images; each can be given its own \caption. (The frame lines in the screenshot depict the ordinary page margins.) \documentclass[letterpaper,11pt]{article} ...


2

This solution may be very specific to your case and not applicable to the general question title. More on the topic can be found in this question. As everything except the image should stay the same as in the normal portrait mode, you should probably just rotate the image and rotate the page only with a pdf attribute instead of using pdflandscape. I had to ...


1

A very simple solution with the floatrow package. It is an extension of the float package, and you shouldn't load it when loading floatrow. The \FBwidth optyion sets the caption width to the width of the figure. \documentclass[letterpaper,11pt]{article} \usepackage{graphicx} % omit 'demo' option in real doc \usepackage[space]{grffile} % for filenames with ...


1

Once again, it's \raisebox to the rescue. \documentclass{article} \usepackage{graphicx} \usepackage{mwe}% for image \newsavebox{\tempbox} \newlength{\tempheight} \newlength{\tempdepth} \begin{document} \savebox{\tempbox}{\parbox[c]{0.63\textwidth} {\hfil\textbf{Your Favorite Food Truck}\newline Offering gourmet local eats prepared daily for you Offering ...


1

It seems that it was a plain oversight on my side. As Harish Kumar and John Kormylo point out I just have to remove the [t] parameter in the minipage definition inside the lrbox. [...] \newsavebox{\eheaderbox} \begin{lrbox}{\eheaderbox}% \begin{minipage}{.5\textwidth} % remove HERE \begin{flushleft} [...]


1

These are aligned at the top: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{width=8cm} \usepackage{siunitx} \begin{document} \begin{table} \begin{minipage}[t]{5 cm} \centering \begin{tabular}[t]{|c|c|} \hline Temperature & IQ Score \\ \hline \SI{14}{\celsius} & \SI{57}{\percent} \\ \hline %% change all \% like this ...


1

I found a solution. It needs to be manually edited to fit to the lenght of the quote and needs to be changed for left/right column, but it works. \documentclass[a4paper,oneside]{article} \usepackage[ascii]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage[left=3cm,bottom=2cm]{geometry} \usepackage{amssymb,amsfonts,textcomp} ...



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