![미니페이지 내부 텍스트 오른쪽에 그림 플러시](https://rvso.com/image/476263/%EB%AF%B8%EB%8B%88%ED%8E%98%EC%9D%B4%EC%A7%80%20%EB%82%B4%EB%B6%80%20%ED%85%8D%EC%8A%A4%ED%8A%B8%20%EC%98%A4%EB%A5%B8%EC%AA%BD%EC%97%90%20%EA%B7%B8%EB%A6%BC%20%ED%94%8C%EB%9F%AC%EC%8B%9C.png)
미니페이지 내 이력서의 일부 텍스트에서 바로 플러시된 대학 로고를 표시하고 싶습니다. 나는 테이블이나 랩피겨를 사용하지 않고 일하러 갈 수 없습니다. 하지만 나는 초보자라는 것을 인정합니다. LaTeX에서는 어떻게 해야 하나요?
이제 다음과 같습니다:
하지만 나는 다음과 같이 보이기를 원합니다:
\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}
답변1
나는 적어도 첫 번째 경우에는 tcolorbox
'의 옵션을 사용할 것이라고 생각합니다 . sidebyside
그런 다음 추가 정렬 옵션이 minipage
제공되지 않습니다. 관만큼 유연하지는 않지만 이미 tcolorbox
.
예를 들어,
\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}
편집하다
tabularx
여러 대학에 더 잘 작동할 수 있는 버전은 다음과 같습니다 .
\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}