I have tried to include a wraptable in my paper, but one of the paragraphs above the table is unnecessarily "stretched" - something I guess is related to the warning "Underfull \hbox (badness 10000) in paragraph at lines.." that I also get?
Any idea how I can avoid this? I am compiling in pdfLaTeX.
Code for the text:
Even though Russia still utilises 'old media channels' (e.g. television, radio and
newspapers) to reach both its domestic audience and audiences outside of its national
borders, the reach is limited to Russian speaking minorities abroad. Thus, the Russian
state relies heavily on social media to reach non-Russian speaking audiences in the
West (\citeauthor{ramsay2019weaponising}, \citeyear{ramsay2019weaponising}).
\input{Images/Tables/SoMe platforms}Examining how Russia utilises the possibilities of
social media platforms is therefore an important area of research for disciplines such as
political science, international studies, media and communication etc.
Code for the table:
\begin{wraptable}{r}{3.9cm}
\captionsetup{justification=centering}
\vspace{-3.3mm}
\footnotesize
\begin{threeparttable}
\caption{\label{SoMe platforms}\Most popular platforms}
{\renewcommand{\arraystretch}{0.9}
\begin{tabular}{cc} \hline \hline
Platform & Active users \ \hline
Facebook & 2,853 \
YouTube & 2,291 \
WhatsApp & 1,386 \
Instagram & 1,386 \
WeChat & 1,242 \
TikTok & 732 \
Telegram & 550 \
Sina Weibo & 530 \
Snapchat & 514 \
Pinterest & 478 \
Reddit & 430 \
Twitter & 397 \ \hline
\end{tabular}}
\begin{tablenotes}[flushleft] \vspace{-0.2cm}
\item{Note: Counted in millions}.\vspace{-0.15cm}
\item{Source: \citeauthor{StatistaB} (\citeyear{StatistaB})}.\vspace{0.1cm}
\end{tablenotes}
\end{threeparttable}
\vspace{-3.5mm}
\end{wraptable}
Code for preamble:
\documentclass[oneside]{article}
%%%% Packages
\usepackage[T1,T2A]{fontenc} % Selv tilføjet
\usepackage[utf8]{inputenc}
\usepackage[russian,english]{babel}
\babeltags{ru=russian, en=english}
\usepackage{blindtext}
\usepackage{footnote}
\usepackage{csquotes}
\usepackage[style=apa, citestyle=apa, sorting=nyt ]{biblatex}
\addbibresource{Biblo.bib}
\usepackage{eso-pic}
\usepackage{graphicx}
\usepackage[a4paper, hmargin={2.5cm, 3cm}, vmargin={3cm, 3cm}]{geometry}
\usepackage{fancyhdr}
\graphicspath{ {figures/} }
\usepackage{array}
\usepackage[titletoc]{appendix}
\usepackage{tcolorbox}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{marginnote}
\usepackage{threeparttable}
\usepackage[font=small,format=plain,labelfont=bf,textfont=normal,justification=justified,singlelinecheck=false]{caption}
\usepackage{amsmath}
\usepackage{setspace}
\usepackage{parskip}
\usepackage{float}
\pagestyle{fancy}
\usepackage{etoolbox}\apptocmd\appendix{\pretocmd\section{\clearpage}{}{}}{}{}
\usepackage{subfiles}
% Extra packages
\usepackage[T1]{fontenc}
\usepackage{bmpsize}
\usepackage{topcapt}
\usepackage{booktabs}
\usepackage{wrapfig}
\usepackage{url}
\usepackage{ragged2e}
% Commands
\setstretch{1.25}
\newcommand{\margmod}[1]{\marginnote{\setstretch{.5}\parbox[t]{\marginparwidth}{\raggedright\emph{#1}}}}
%%%% Front page % ændrer senere!
\def \ColourPDF {Images/Metaimages/Front page_Political Science.pdf}
\def \TitlePDF {Images/Metaimages/Front page_Political Science.pdf}
\author{
\LARGE{My full name} \
\vspace{0cm} \
{Academic Supervisor: Add name} \
\vspace{.5cm} \
}
\title{
\vspace{3mm}
\Huge{Master's Thesis}\
\vspace{18mm}
\LARGE{Enter title name}
\vspace{90mm}
}
\date{March 2022}
%%%% Layout style
\linespread{1.5}
\fancyhead[L]{}
\fancyhead[R]{\slshape \rightmark}
\setlength{\parskip}{1em}
%%%% Front page layout
\begin{document}
\pagenumbering{roman}
\AddToShipoutPicture{\put(0,602){\includegraphics[viewport=0 600 700 1600]{\ColourPDF}}}
\AddToShipoutPicture{\put(0,0){\includegraphics{\TitlePDF}}}
\clearpage\maketitle
\thispagestyle{empty}
\newpage
%%%% Meta info
%\begin{table}[!ht]
\begin{table}[!h]
\begin{tabular}{lll}
\vspace{5mm}
\textbf{University} & & {University of Copenhagen} \
\vspace{5mm}
\textbf{Name of Department} & & {Department of Political Science} \
\vspace{5mm}
\textbf{Study Programme} & & {Master of Science (MSc) in Political Science} \
\vspace{5mm}
\textbf{Author} & & {My full name} \
\vspace{5mm}
\textbf{Student ID} & & {Add ID} \
\vspace{5mm}
\textbf{Academic Supervisor} & & {Add name} \
\textbf{Title} & & {Title - line 1} \vspace{0.5mm}
\cr & & {Title - line 2}
\ \
\textbf{Date of Submission} & & {Add date} \
\
\textbf{ECTS} & & {30} \
\end{tabular}
\end{table}
\newpage
Start of paper..
Screnshot of the output:
Addendum:
Updated preamble:
\documentclass[oneside]{article}
%%%% Packages
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian,english]{babel}
\babeltags{ru=russian, en=english}
\usepackage{blindtext}
\usepackage{footnote}
\usepackage{csquotes}
\usepackage[style=apa, citestyle=apa, sorting=nyt ]{biblatex}
\addbibresource{Biblo.bib}
\usepackage{eso-pic}
\usepackage{graphicx}
\usepackage[a4paper, hmargin={2.5cm, 3cm}, vmargin={3cm, 3cm}]{geometry}
\usepackage{fancyhdr}
\graphicspath{ {figures/} }
\usepackage{array}
\usepackage[titletoc]{appendix}
\usepackage{tcolorbox}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{marginnote}
\usepackage{threeparttable}
\usepackage[font=small,format=plain,labelfont=bf,textfont=normal,justification=justified,singlelinecheck=false]{caption}
\usepackage{amsmath}
\usepackage{setspace}
\usepackage{parskip}
\usepackage{float}
\pagestyle{fancy}
\usepackage{etoolbox}\apptocmd\appendix{\pretocmd\section{\clearpage}{}{}}{}{}
\usepackage{subfiles}
% Extra packages
\usepackage[T1]{fontenc}
\usepackage{bmpsize}
\usepackage{topcapt}
\usepackage{booktabs}
\usepackage{microtype} % <--- new
\usepackage{wrapfig}
\usepackage{tabularray} % <--- new
\UseTblrLibrary{booktabs, siunitx, varwidth} % <--- new
\usepackage{url}
\usepackage{ragged2e}
Output when testing the compilation of proposed solution by Zarko:





tabularrayyou have installed? With 2021Q it should work as advertised ;-). See addendum to my answer, – Zarko Feb 15 '22 at 17:03tabularraypackage (to version 2021Q), the best by help of some wizard (at MiKTeX by MiKTeX Console). Do you consider the suggestion in addendum to my answer? Please test it as it is. – Zarko Feb 17 '22 at 08:04wraptable.txt, the compilation of proposed solution should work. Try before test deleteaux.file which you have in folders. BTW, do you load it as administrator and as user? – Zarko Feb 17 '22 at 10:21aux.files and compiled your proposed solution once again, but I keep getting the same error and messy output (see latest update in addendum). I'm not sure whether I load it as administrator and user - how can I check that? Appreciate your patience btw. I will probably move forward soon and return to the wraptable issue at a later point :-/ – Nicolai MC Feb 18 '22 at 08:32\input{insbox}. Added it to preamble and test again my proposed solution, it works like charm and gives result as I shown in my answer. How you install MiKTeX? As single user? Or multiuser? One (desperate and hard) solution can be remove (thoroughly, by use of Console) MiKTeX from your computer and then make fresh installation of it.. – Zarko Feb 18 '22 at 09:59\input{insbox}. Made a fresh installation of MikTeX and tested your proposed solution (both your first one and the updated one in your appendum) in a blank Overleaf project. I think I installed it as multiuser (I chose the shared system-wide configuration). Still getting the same error (Environment tallblr undefined) and messy output though. If I a later point figure out what is causing my problem, I will let you know... :-) Thanks! – Nicolai MC Feb 18 '22 at 13:33