Latex 如何强制元素在同一条线上?

Latex 如何强制元素在同一条线上?,latex,box,oval,Latex,Box,Oval,我想在LaTeX中创建的简历边栏中添加技能,我使用tcolorbox软件包在文本周围创建一个椭圆形框,但每次创建一个新的椭圆形框时,文本(带框)都会转到一个新行。我怎样才能强制它在同一行中一个接一个地添加 以下是模板的代码(latex template twentysecondcv): 要使所有的\tcbox在同一行中,请将nobeforeater选项添加到\ovalbox 如果修改类文件,最好也更改名称(例如twentysecondcvx.cls),以避免在不同版本中出现这种混淆。[也相应地

我想在LaTeX中创建的简历边栏中添加技能,我使用tcolorbox软件包在文本周围创建一个椭圆形框,但每次创建一个新的椭圆形框时,文本(带框)都会转到一个新行。我怎样才能强制它在同一行中一个接一个地添加

以下是模板的代码(latex template twentysecondcv):

  • 要使所有的
    \tcbox
    在同一行中,请将
    nobeforeater
    选项添加到
    \ovalbox

  • 如果修改类文件,最好也更改名称(例如
    twentysecondcvx.cls
    ),以避免在不同版本中出现这种混淆。[也相应地更改
    .cls
    文件中的第一行]



你能确定一下吗?当然!我刚刚更新了问题,在tex文件中添加了最少的代码。非常感谢您的编辑!您还可以链接到您正在使用的
twentysecondcv.cls
版本吗?我尝试了几个在网上浮动的类文件,但它们都缺少宏,如
\contact
。不幸的是,搜索不会给出任何允许编译代码的结果。您链接到的类文件没有定义
\myskills
等。您的文档无法编译。
\documentclass[letterpaper]{twentysecondcv} % a4paper for A4
\definecolor{shadecolor}{rgb}{1,0.8,0.3}

\usepackage{times,tcolorbox}
\newtcbox{\ovalbox}{colback=gray!50!white,boxrule=0pt,arc=5pt,
  boxsep=0pt,left=4pt,right=4pt,top=2pt,bottom=2pt}

\profilepic{alice.jpeg}
\cvname{Your Name}
\cvjobtitle{about me}

\begin{document}

\aboutme{}
\contact{contact}

%----------------------------------------------------------------------------------------
%    SKILLS
%----------------------------------------------------------------------------------------

\myskills{
\ovalbox{Skill 1} 
\ovalbox{Skill2} 
\ovalbox{Skill3}
\ovalbox{Skill4}

}

\references{references document 1}

\makeprofile % Print the sidebar

%----------------------------------------------------------------------------------------
%    MAIN PAGE
%----------------------------------------------------------------------------------------

\section{About Me}

\hrulefill 

\section{Experience}

\hrulefill 

\section{Education}

\hrulefill 

\section{Courses}

\hrulefill 
\section{Other information}
\end{document} 
\documentclass[letterpaper]{twentysecondcvx} % a4paper for A4
\definecolor{shadecolor}{rgb}{1,0.8,0.3}

\usepackage{tcolorbox}
\newtcbox{\ovalbox}{colback=gray!50!white,boxrule=0pt,arc=5pt,
  boxsep=0pt,left=4pt,right=4pt,top=2pt,bottom=2pt,nobeforeafter}

\profilepic{alice.jpeg}
\cvname{Your Name}
\cvjobtitle{about me}

\begin{document}

\aboutme{}
\contact{contact}

%----------------------------------------------------------------------------------------
%    SKILLS
%----------------------------------------------------------------------------------------

\myskills{
\ovalbox{Skill 1} 
\ovalbox{Skill2} 
\ovalbox{Skill3}
\ovalbox{Skill4}

}

\references{references document 1}

\makeprofile % Print the sidebar

%----------------------------------------------------------------------------------------
%    MAIN PAGE
%----------------------------------------------------------------------------------------

\section{About Me}

\hrulefill 

\section{Experience}

\hrulefill 

\section{Education}

\hrulefill 

\section{Courses}

\hrulefill 
\section{Other information}
\end{document}