我使用 texmarker documentclass = article
。
我如何才能将元素 itemize (a、b、c、d、e) 更改/移动到left
或right
。
非常感谢。
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\usepackage{tcolorbox}
\begin{document}
\begin{tcolorbox}[width=10cm]
\begin{itemize}
%\hspace*{0.2cm}
\item \small a
\item \small b
\item \small c
\item \small c
\item \small e
\end{itemize}
\end{tcolorbox}
\end{document}
答案1
您可以更改\leftmargini
:
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{tcolorbox}[width=10cm]
\addtolength{\leftmargini}{3cm}
\begin{itemize}
\item \small a
\item \small b
\item \small c
\item \small c
\item \small e
\end{itemize}
\end{tcolorbox}
\begin{tcbposter}[
poster = {showframe,height=2.5cm,spacing=2mm,rows=2},
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50},
]
\posterbox{row=1,column=1}{First box} \posterbox{row=1,column=2,rowspan=2}{%
\addtolength{\leftmargini}{2cm}
\begin{itemize}
\item \small a
\item \small b
\end{itemize}
}
\posterbox[natural height]{row=1,column=3}{Third box}
\end{tcbposter}
\end{document}