描述以新行开始,无缩进

描述以新行开始,无缩进

我在用此方法在新行中写入描述beamer

在此处输入图片描述

但是我怎样才能删除新行的缩进以使其与对齐\item[]

这就是我现在所拥有的。

\pdfminorversion=4
\documentclass{beamer}
\usetheme{Madrid}
\usepackage{appendixnumberbeamer}
\usepackage{textpos}
\usepackage{animate}
\usepackage{siunitx}
\usepackage{caption}
\usepackage{subcaption}

\begin{document}

\begin{frame}{title}
  \fontsize{8pt}{9}\selectfont
  \begin{columns}
    \centering
    \column{.7\textwidth}
    \vbox to .8\textheight{%
    \begin{figure}
      \centering
      \begin{subfigure}[b]{.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{../Fig1}
      \end{subfigure}%\hfill
      \begin{subfigure}[b]{.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{../Fig2}
      \end{subfigure}\\\vfill
      \begin{subfigure}[b]{.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{../Fig3}
      \end{subfigure}%\hfill
      \begin{subfigure}[b]{.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{../Fig4}
      \end{subfigure}%
    \end{figure}
    }%

    \column{.3\textwidth}
    Imperfection in Tx and Rx may cause IQ imbalance and other system error.\\
    \begin{description}[leftmargin=0pt]
    \item[Gain Imbalance] \hfill \\Amplitude is different for I and Q.
    \item[Quadrature Error] \hfill \\Phase between I and Q is not \ang{90}.
    \item[IQ Offset] \hfill \\I and Q are not centered at zero.
    \item[Gain Compression] \hfill \\Distance $d$ between constellation points is power dependent.
    \end{description}

  \end{columns}
\end{frame}

\end{document}

答案1

一种简单的方法是设置description width为等于-\labelsep;在下面的例子中,我把更改局部到框架,但如果你移动该行

\setbeamersize{description width=-\labelsep}

这一变化将是全球性的:

\documentclass{beamer}

\begin{document}

{
\setbeamersize{description width=-\labelsep}
\begin{frame}
\begin{description}
\item[First]\mbox{}\\ The first item.
\item[Second]\mbox{}\\ The second item.
\item[Third]\mbox{}\\ The third item.
\end{description}
\end{frame}
}

\end{document}

在此处输入图片描述

问题中的更新代码是,\begin{description}[leftmargin=0pt]因此字符串“leftmargin=0pt”被视为最宽标签,覆盖先前定义的描述宽度;只需删除即可[leftmargin=0pt]。还请注意,我figurecentersubfigure替换了minipage(实际上不需要中的环境figure):subfigurebeamer

\documentclass{beamer}
\usepackage{siunitx}

\begin{document}

{
\setbeamersize{description width=-\labelsep}
\begin{frame}{title}
  \fontsize{8pt}{9}\selectfont
  \begin{columns}
    \column{.7\textwidth}
    \vbox to .8\textheight{%
    \begin{center}
      \begin{minipage}[b]{.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{example-image-a}
      \end{minipage}%\hfill
      \begin{minipage}[b]{.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{example-image-b}
      \end{minipage}\\\vfill
      \begin{minipage}[b]{.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{example-image-c}
      \end{minipage}%\hfill
      \begin{minipage}[b]{.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{example-image-a}
      \end{minipage}%
      \end{center}
    }%

    \column{.3\textwidth}

    Imperfection in Tx and Rx may cause IQ imbalance and other system error.\\
    \begin{description}
    \item[Gain Imbalance] \hfill \\Amplitude is different for I and Q.
    \item[Quadrature Error] \hfill \\Phase between I and Q is not \ang{90}.
    \item[IQ Offset] \hfill \\I and Q are not centered at zero.
    \item[Gain Compression] \hfill \\Distance $d$ between constellation points is power dependent.
    \end{description}

  \end{columns}
\end{frame}
}

\end{document}

在此处输入图片描述

答案2

如果您使用该enumitem包,您就可以调整列表的每个参数。

为了实现你想要的,你需要itemindentleftmargin参数

\documentclass{article}
\usepackage{enumitem}

\begin{document}

   \begin{description}[nosep,itemsep=0pt,leftmargin=0pt]
      \item[Counterfactual Test]\hfill\\
      Kann ein Kaugummi erhalten werden, wenn sich kein Kaugummi im Automaten befindet?
   \end{description}
\end{document}

在此处输入图片描述

相关内容