Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How could I disable the indentation of the items here:

items indented

The MWE is this (compiled with pdflatex):

\documentclass[12pt,a4paper]{article}

\usepackage[pass]{geometry}
\usepackage{tikz}


\begin{document}

\pdfpagewidth=148mm \pdfpageheight=210mm % for PDF output
\paperwidth=148mm \paperheight=210mm     % for TikZ


\begin{tikzpicture}[overlay,remember picture,y=0.80pt,x=0.80pt,yscale=-1, inner sep=0pt, outer sep=0pt,anchor=north west]

  \begin{scope}[shift={(0,0.34461553)}]% layer1

  \path[fill=blue] (10,10) node[below right] (text3134) {%
    \frame{%
    %\parbox{150pt}{%
      \begin{minipage}{150pt}%
        \begin{itemize}%
          \setlength{\topsep}{0pt}%
          \setlength{\itemsep}{0pt}%
          \setlength{\itemindent}{0em}%
          \setlength{\parindent}{0em}%
          \setlength{\parskip}{0pt}%
          \setlength{\marginparsep}{0em}%
          \leftmargin=0em%
          \itemindent=0em%
          \labelsep=0em \labelwidth=0em%
          \item[\textcolor{red}{\textbullet}] Hello
          \item \frame{world!}
        \end{itemize}%
      \end{minipage}
    %}%parbox
    }%frame
  }%path
  ;

  \end{scope}

\end{tikzpicture}
\end{document}
share|improve this question

1 Answer 1

up vote 3 down vote accepted

Easiest way is to use enumitem. This is your code modified accordingly.

\documentclass[12pt,a4paper]{article}

\usepackage[pass]{geometry}
\usepackage{tikz,enumitem}


\begin{document}

\pdfpagewidth=148mm \pdfpageheight=210mm % for PDF output
\paperwidth=148mm \paperheight=210mm     % for TikZ


\begin{tikzpicture}[overlay,remember picture,y=0.80pt,x=0.80pt,yscale=-1, inner sep=0pt, outer sep=0pt,anchor=north west]

  \begin{scope}[shift={(0,0.34461553)}]% layer1

  \path[fill=blue] (10,10) node[below right] (text3134) {%
    \frame{%
    %\parbox{150pt}{%
     \begin{minipage}{150pt}%
        \begin{itemize}[leftmargin=*,topsep=0pt,itemsep=0pt]%
%           \setlength{\topsep}{0pt}%
%           \setlength{\itemsep}{0pt}%
%           \setlength{\itemindent}{0em}%
%           \setlength{\parindent}{0em}%
          \setlength{\parskip}{0pt}%
%           \setlength{\marginparsep}{0em}%
%           \leftmargin=0em%
%           \itemindent=0em%
%           \labelsep=0em \labelwidth=0em%
          \item[\textcolor{red}{\textbullet}] Hello
          \item \frame{world!}
        \end{itemize}%
      \end{minipage}
    %}%parbox
    }%frame
  }%path
  ;

  \end{scope}

\end{tikzpicture}
\end{document}

enter image description here

Instead of using \frame you can just put node[below right,draw,rectangle] (text3134) {.....

share|improve this answer
    
Many thanks for that, @HarishKumar - works dandy fine :) - cheers! –  sdaau May 12 '12 at 15:38
    
@sdaau: You are welcome. –  Harish Kumar May 12 '12 at 15:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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