New answers tagged

0 votes

Variable containing the total horizontal length of a table

You can simply put the tabular in a box and measure the width of the box with \wd. In the following example, I have used a multiplicative factor of 120%. \documentclass{article} \usepackage{array,...
user avatar
  • 26.5k
2 votes
Accepted

Side-by-side captions in minipage run too long, don't wrap to second line

(I've found a copy of SciPost document class online at https://git.scipost.org/scipost/SciPost_LaTeX_Templates_Submission.) The SciPost document class loads, among other packages, the caption package ...
user avatar
  • 444k
2 votes

How to align caption of minipage side-by-side with equation and image?

I'd use just four \parbox (or {minipage}). \documentclass{article} \usepackage{lipsum} \usepackage{mathtools} \begin{document} \begin{figure} \parbox{.475\linewidth}{% \begin{align} x = 1 \\ y =...
user avatar
  • 26.3k
1 vote

How to split a page into 6 parts, adding a centered image to each?

If there are only six figures images, you only need the packages graphicx and adjustvox for the vertical align: \documentclass[a4paper]{article} \usepackage[margin=1cm]{geometry} \usepackage{graphicx} ...
user avatar
  • 74k
0 votes

Align minipage on top of multiline section header

\documentclass[12pt]{article} \usepackage{lmodern} \usepackage{lipsum} \begin{document} 2021\hspace{1cm}\begin{minipage}[t]{0.5\textwidth} \lipsum[1] \end{minipage} \end{document} You can use the ...
user avatar
  • 342
2 votes
Accepted

Text stays above minipage

You want \includegraphics here as you do not want a full page. \documentclass{article} \usepackage{pdfpages} \begin{document} \subsection{Approach 1: Scikit-learn} We will start by importing ...
user avatar
1 vote

Cutting a quote to fit page

I would use the ready-made quotation environment to typeset the long quote. E.g., adapting the code in @Celdor's answer, I'd write \documentclass{article} \usepackage{kantlipsum} \usepackage[...
user avatar
  • 444k
0 votes

Cutting a quote to fit page

Use a list environment with options to set left and right margins as well as any other paragraph settings, s.a. line spread, paragraph indentation and paragraph skip \documentclass{article} \...
user avatar
  • 1,662
0 votes

How to pause side-by-side figures with their position fixed in beamer?

You can use \visible to make sure the image still occupies space on the first overlay: \documentclass{beamer} \begin{document} \begin{frame} \begin{figure} \centering \begin{minipage}{.45\...
user avatar
2 votes
Accepted

Alignment of MiniToc inside node

Create a new section and subsection format (named xsection and xsubsection) using \titlecontents from titletoc and adjust left (the left margin from the left page margin) \titlecontents{⟨section⟩}[⟨...
user avatar
  • 28.2k

Top 50 recent answers are included