长单词没有连字符

长单词没有连字符

我确信回答这个问题相当容易,但目前,很抱歉我无法回答,我正在使用 beamer 软件包,下面给出了一个单词,其中使用了“demonstrated”,我试图将其拆分,以便两行均衡文档,即对齐。我使用“ \- ”,它起作用了,但它只是拆分了没有连字符的单词,然后我使用 \hyphenation{demonst-rated},该单词消失了。提前致谢。

\documentclass[xcolor=dvipsnames]{beamer}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\hyphenation{words}
\hyphenation{demonstrated}
\usepackage{microtype}
\let\olditem\item
\renewcommand{\item}{%
\olditem\vspace{8pt}}
\usetheme{Warsaw}
\usepackage{romannum}
\addtobeamertemplate{block begin}{%
  \setlength{\textwidth}{1\textwidth}%
}{}

\addtobeamertemplate{block alerted begin}{%
  \setlength{\textwidth}{1\textwidth}%
}{}

\addtobeamertemplate{block example begin}{%
  \setlength{\textwidth}{1\textwidth}%
}{}

相关内容