![Alinhe a imagem à direita do texto dentro da minipágina](https://rvso.com/image/476263/Alinhe%20a%20imagem%20%C3%A0%20direita%20do%20texto%20dentro%20da%20minip%C3%A1gina.png)
Quero exibir o logotipo de uma universidade diretamente de algum texto em um currículo dentro de uma minipágina. Não consigo trabalhar, nem com tabelas nem com wrapfigure. Mas sou um novato, admito. Como isso deve ser feito no LaTeX?
Agora parece:
Mas eu quero que fique assim:
\documentclass[11pt,oneside,a4paper,titlepage]{article}
\usepackage{geometry}
\usepackage[most]{tcolorbox}
\geometry{
a4paper,
left=0.1cm,
right=0.1cm,
top=0.1cm,
bottom=0.1cm
}
\definecolor{titleBack}{RGB}{100, 84, 82} % Wenge brown
\begin{document}
\tcbset{colframe=gray!95!black,colback=titleBack,arc=0mm}
\begin{tcolorbox}
\begin{minipage}{4.5cm}
%Picture
\end{minipage}
\begin{minipage}{15cm}
\begin{center}
\Huge{\textcolor{white}{Name}} \\
\vspace*{0.5cm}
\Large{\textcolor{white}{Curriculum Vitae}}
\end{center}
\end{minipage}
\end{tcolorbox}
\tcbset{colframe=white,colback=white,arc=0mm}
\begin{tcolorbox}
\begin{minipage}[t]{8cm}
\vspace*{-0.5cm}
\begin{tcolorbox}[grow to left by=0.6cm,colback=gray!15,colframe=white]
\section*{Profile}
\end{tcolorbox}
\end{minipage}
\begin{minipage}[t]{11cm}
\vspace*{-0.5cm}
\begin{tcolorbox}[grow to right by=0.75cm,colframe=white,colback=white]
\section*{Education}
\begin{itemize}
\item{
\begin{tabular}[!t]{l r}
\begin{tabular}[c]{@{}l@{}}\textbf{University of X} \\ \emph{MSc Y} \\ \emph{April, 2024}\end{tabular} & \rule{4ex}{4ex}
\end{tabular}
Some Text.
}
\item Another University
\end{itemize}
\end{tcolorbox}
\end{minipage}
\end{tcolorbox}
\end{document}
Responder1
Acho que usaria a opção tcolorbox
de sidebyside
, pelo menos em primeira instância. Então você tem opções de alinhamento adicionais minipage
que não são fornecidas. Não tão flexível quanto os caixões, mas mais simples, pois você já está usando o tcolorbox
.
Por exemplo,
\documentclass[11pt,oneside,a4paper,titlepage]{article}
\usepackage{geometry}
\usepackage[most]{tcolorbox}
\geometry{
a4paper,
left=0.1cm,
right=0.1cm,
top=0.1cm,
bottom=0.1cm
}
\definecolor{titleBack}{RGB}{100, 84, 82} % Wenge brown
\begin{document}
\tcbset{colframe=gray!95!black,colback=titleBack,arc=0mm}%
\begin{tcolorbox}
\begin{minipage}{4.5cm}
%Picture
\end{minipage}
\begin{minipage}{15cm}
\begin{center}
\Huge{\textcolor{white}{Name}} \\
\vspace*{0.5cm}
\Large{\textcolor{white}{Curriculum Vitae}}
\end{center}
\end{minipage}
\end{tcolorbox}
\tcbset{colframe=white,colback=white,arc=0mm}%
\begin{tcolorbox}
\begin{minipage}[t]{8cm}
\vspace*{-0.5cm}
\begin{tcolorbox}[grow to left by=0.6cm,colback=gray!15,colframe=white]
\section*{Profile}
\end{tcolorbox}
\end{minipage}
\begin{minipage}[t]{11cm}
\vspace*{-0.5cm}
\begin{tcolorbox}[grow to right by=0.75cm,colframe=white,colback=white,sidebyside,sidebyside align=center seam,righthand width=4ex+10pt]% adjust width as required for image and/or use width=\linewidth for \includegraphics
\section*{Education}
\begin{itemize}
\item{
\begin{tabular}[c]{@{}l@{}}\textbf{University of X} \\ \emph{MSc Y} \\ \emph{April, 2024}\end{tabular}
Some Text.
}
\item Another University
\end{itemize}
\tcblower
\rule{4ex}{4ex}
\end{tcolorbox}
\end{minipage}
\end{tcolorbox}
\end{document}
EDITAR
Aqui está uma versão tabularx
que pode funcionar melhor para fileiras de universidades.
\documentclass[11pt,oneside,a4paper,titlepage]{article}
\usepackage{geometry}
\usepackage{enumitem}
\usepackage{array,tabularx}
% \usepackage{kantlipsum}
\usepackage[most]{tcolorbox}
\geometry{
a4paper,
left=0.1cm,
right=0.1cm,
top=0.1cm,
bottom=0.1cm
}
\definecolor{titleBack}{RGB}{100, 84, 82} % Wenge brown
\newlist{edulist}{itemize}{1}
\setlist[edulist]{label=\textbullet,nosep}
\renewcommand{\tabularxcolumn}[1]{>{\raggedright\arraybackslash}m{#1}}
\begin{document}
\tcbset{colframe=gray!95!black,colback=titleBack,arc=0mm}%
\begin{tcolorbox}
\begin{minipage}{4.5cm}
%Picture
\end{minipage}
\begin{minipage}{15cm}
\begin{center}
\Huge{\textcolor{white}{Name}} \\
\vspace*{0.5cm}
\Large{\textcolor{white}{Curriculum Vitae}}
\end{center}
\end{minipage}
\end{tcolorbox}
\tcbset{colframe=white,colback=white,arc=0mm}%
\begin{tcolorbox}
\begin{minipage}[t]{8cm}
\vspace*{-0.5cm}
\begin{tcolorbox}[grow to left by=0.6cm,colback=gray!15,colframe=white]
\section*{Profile}
\end{tcolorbox}
\end{minipage}
\begin{minipage}[t]{11cm}
\vspace*{-0.5cm}
\begin{tcolorbox}[grow to right by=0.75cm,colframe=white,colback=white]% adjust width as required for image and/or use width=\linewidth for \includegraphics
\section*{Education}
\begin{tabularx}\linewidth{Xm{5ex}}
\begin{edulist}
\item\textbf{University of X}
\emph{MSc Y}
\emph{April, 2024}
Some Text.
\end{edulist}
&
\rule{4ex}{4ex}
\\
\begin{edulist}
\item \textbf{Another University}
\emph{BPhil}
\emph{July, 2024}
Super quick!
\end{edulist}
&
\includegraphics[width=4ex,height=4ex]{example-image-b}
\\
\end{tabularx}
\end{tcolorbox}
\end{minipage}
\end{tcolorbox}
% \kant[1-5]
\end{document}