我怎样才能禁用此处项目的缩进:
MWE 是这样的(用 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}
答案1
最简单的方法是使用enumitem
。这是您相应修改的代码。
\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}
\frame
您可以只放置,而不使用node[below right,draw,rectangle] (text3134) {....
。