![Borrar la imagen a la derecha del texto dentro de la minipágina](https://rvso.com/image/476263/Borrar%20la%20imagen%20a%20la%20derecha%20del%20texto%20dentro%20de%20la%20minip%C3%A1gina.png)
Quiero mostrar el logotipo de una universidad extraído directamente de algún texto en un CV dentro de una minipágina. No puedo ponerme a trabajar, ni con tablas ni con wrapfigure. Pero soy un novato, lo admito. ¿Cómo debería hacerse esto en LaTeX?
Ahora parece:
Pero quiero que se vea así:
\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}
Respuesta1
Creo que usaría tcolorbox
la sidebyside
opción, al menos en primera instancia. Entonces tienes opciones de alineación adicionales minipage
que no proporciona. No es tan flexible como los ataúdes, pero es más sencillo porque ya estás usando tcolorbox
.
Por ejemplo,
\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
Aquí hay una versión tabularx
que puede funcionar mejor para filas 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}