![비머에서 텍스트 들여쓰기](https://rvso.com/image/286367/%EB%B9%84%EB%A8%B8%EC%97%90%EC%84%9C%20%ED%85%8D%EC%8A%A4%ED%8A%B8%20%EB%93%A4%EC%97%AC%EC%93%B0%EA%B8%B0.png)
아래와 같이 텍스트를 들여쓰려고 합니다.
정렬을 올바르게 하기 위해(지금은 완벽하지 않습니다) 줄바꿈 \\
과 \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
필요한 경우 첫 번째 열의 서식을 자동으로 지정하는 데 사용할 수 있습니다 . 다음은 두 가지를 모두 통합한 예입니다.~와 함께불규칙한 두 번째 열:
\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
더 좋은 방법이 있을 수 있지만 여기에는 스택을 사용하는 한 가지 방법이 있습니다. \bullet
오른쪽을 가리키는 삼각형 기호의 이름을 몰라서 사용했습니다 . 또한 어떤 이유로든 스택 EOL(End-of-Line) 기호를 기본값에서 \\
다른 것으로 변경해야 했습니다 \#
. 이 경우에는 . 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}