以下のようにテキストをインデントしようとしています。
\\
配置を正しくするために (現時点では完璧には程遠いですが)、改行とを試行錯誤してきました\hspace{3.1cm}
。上の画像のような結果を得る正当な方法はあるでしょうか?
最低限の実例として、
\documentclass[12pt,mathserif]{beamer}
\usetheme{Berkeley}
\usecolortheme{dove}
\useinnertheme{default}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{itemize items}[default]
\setbeamertemplate{enumerate items}[default]
\beamertemplatenavigationsymbolsempty
\setbeamerfont{footline}{size=\fontsize{9}{11}\selectfont}
\setbeamertemplate{footline}[page number]
\begin{document}
\frame{\frametitle{Detecting MWEs in Typed Text}
\begin{itemize}
\item $\mathbf{Assumption \;1}$: MWEs have unique prosodic\\
\hspace{3.1cm}characteristics
\item $\mathbf{Assumption \;2}$: KD is the reflection of prosody in\\
\hspace{3.1cm}typing
\item $\mathbf{Conclusion}$: \hspace{0.5cm}MWEs should be uniquely\\
\hspace{3.1cm}characterized in typing
\end{itemize}
}
\end{document}
答え1
このような配置は、 を使用すると簡単ですtabular
。
\documentclass{beamer}% http://ctan.org/pkg/beamer
\begin{document}
\begin{frame}
\begin{tabular}{@{\textbullet~}l@{\ }p{2in}}
\bfseries Assumption 1: & MWEs have unique prosodic characteristics \\
\bfseries Assumption 2: & KD is the reflection of prosody in typing \\
\bfseries Conclusion: & MWEs should be uniquely characterized in typing
\end{tabular}
\end{frame}
\end{document}
2in
右の列幅(現在は に固定されています)を測定したくない場合は、tabularx
代わりに。また、array
必要に応じて、最初の列を自動的にフォーマットするのに役立つ可能性があります\bfseries
。以下は、両方を組み込んだ例です。と不揃いな2番目の列:
\documentclass{beamer}% http://ctan.org/pkg/beamer
\usepackage{array,tabularx}% http://ctan.org/pkg/{array,tabularx}
\begin{document}
\begin{frame}
\begin{tabularx}{\linewidth}{@{\textbullet~}>{\bfseries}l@{\ }>{\raggedright\arraybackslash}X@{}}
Assumption 1: & MWEs have unique prosodic characteristics \\
Assumption 2: & KD is the reflection of prosody in typing \\
Conclusion: & MWEs should be uniquely characterized in typing
\end{tabularx}
\end{frame}
\end{document}
答え2
で説明した方法を使用できますhttps://tex.stackexchange.com/a/163733/586、環境に変化しますdescription
。
\documentclass[12pt,mathserif]{beamer}
\usetheme{Berkeley}
\usecolortheme{dove}
\useinnertheme{default}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{itemize items}[default]
\setbeamertemplate{enumerate items}[default]
\beamertemplatenavigationsymbolsempty
\setbeamerfont{footline}{size=\fontsize{9}{11}\selectfont}
\setbeamertemplate{footline}[page number]
% new additions
\defbeamertemplate{description item}{align left}{$\blacktriangleright$ \bfseries\insertdescriptionitem\hfill}
\setbeamertemplate{description item}[align left]
\begin{document}
\frame{\frametitle{Detecting MWEs in Typed Text}
\begin{description}[Assumption 2:]
\item [Assumption 1:] MWEs have unique prosodic
characteristics
\item [Assumption 2:] KD is the reflection of prosody in
typing
\item [Conclusion:] MWEs should be uniquely
characterized in typing
\end{description}
}
\end{document}
答え3
もっと良い方法があるかもしれませんが、ここではスタックを使用する方法の 1 つを紹介します。\bullet
右向きの三角形のシンボルの名前がわからなかったため、 を使用しました。また、何らかの理由で、スタックの行末 (EOL) シンボルをデフォルトから\\
別のもの (この場合は ) に変更する必要がありました\#
。stacktabbedgap は列間のギャップを設定します。
\documentclass{beamer}
\usepackage{tabstackengine}
\newcommand\pparbox[2]{\protect\parbox[t]{#1}{#2\strut}}
\setstacktabbedgap{1ex}
\setstackEOL{\#}
\begin{document}
\begin{frame}
\tabbedShortstack[l]{
\bfseries $\bullet$ Assumption 1: & \pparbox{2in}{%
MWEs have unique prosodic characteristics}\#
\bfseries $\bullet$ Assumption 2: & \pparbox{2in}{%
KD is the reflection of prosody in typing}\#
\bfseries $\bullet$ Conclusion: & \pparbox{2in}{%
MWEs should be uniquely characterized in typing}
}
\end{frame}
\end{document}
このテクニックを頻繁に使用する場合は、構文の多くをマクロに組み込むことができます。
\documentclass{beamer}
\usepackage{tabstackengine}
\newcommand\pparbox[2]{\protect\parbox[t]{#1}{#2\strut}}
\def\secondcolwidth{2in}%DEFAULT
\newcommand\firstcol[1]{\bfseries$\bullet$ #1:}
\newcommand\secondcol[1]{\pparbox{\secondcolwidth}{#1}}
\setstacktabbedgap{1ex}
\setstackEOL{\#}
\begin{document}
\begin{frame}
\def\secondcolwidth{2in}
\tabbedShortstack[l]{
\firstcol{Assumption 1} & \secondcol{MWEs have unique prosodic characteristics}\#
\firstcol{Assumption 2} & \secondcol{KD is the reflection of prosody in typing}\#
\firstcol{Conclusion} & \secondcol{MWEs should be uniquely characterized in typing}
}
\end{frame}
\end{document}