1

I use texmarker with documentclass = article.

How can i change/move element itemize (a,b,c,d,e) to the left or right.

Thank so much.

\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}

enter image description here

  • 2
    Do you want to move the items with respect to the tcolorbox or do you want to move the whole box? – user36296 Mar 22 at 17:48
  • @samcarter i want only move item a,b,c,d, e to right inside tcolorbox, not move the box. Thanks – latexforti Mar 22 at 17:50
  • 2
    Thanks for the clarification! Try \addtolength{\leftmargini}{3cm} – user36296 Mar 22 at 17:51
  • 1
    While you wait for an answer to your new question, can you go back to your previous ones and look if the answers solve your problems and accept them, if they do? – user36296 Mar 22 at 18:02
  • 1
    Changing leftmargini works just fine with \posterbox: pastebin.com/wNgEZy3K – user36296 Mar 22 at 18:10
3

You can change the \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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.