
나는 비머를 위해 내 코드에 다음과 같이 썼습니다.
\documentclass[11pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usetheme{Dresden}
\definecolor{studentblue}{RGB}{37,34,140}
\BeforeBeginEnvironment{definition}{
\setbeamercolor{block title}{fg=white,bg=studentblue}
\setbeamercolor{block body}{fg=black, bg=studentblue!20!white}
}
\AfterEndEnvironment{definition}{
\setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!10!bg}
}
\begin{document}
\begin{frame}
\begin{definition}
test
\end{definition}
\end{frame}
\end{document}
이러한 색상과 블록 제목이 "정의"인 블록을 얻으려면 제목에 있는 단어를 바꾸고 싶은데, 중괄호 사이에 있는 \BeforeBeginEnvironment 및 \AfterEndEnvironment 뒤의 단어를 바꾸는 것으로 충분하다고 생각했는데 그렇지 않습니다. 어떻게 해야 하나요? 감사해요
답변1
translator
이유는 확실하지 않지만 작동하려면 이탈리아어를 명시적으로 로드해야 하는 것 같습니다 .
\documentclass[11pt]{beamer}
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}
\usetheme{Dresden}
\uselanguage{Italian}
\languagealias{italian}{Italian}
\definecolor{studentblue}{RGB}{37,34,140}
\BeforeBeginEnvironment{definition}{%
\setbeamercolor{block title}{fg=white,bg=studentblue}%
\setbeamercolor{block body}{fg=black, bg=studentblue!20!white}%
}
\AfterEndEnvironment{definition}{%
\setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!75!black}%
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!10!bg}%
}
\begin{document}
\begin{frame}
\begin{definition}
test
\end{definition}
\end{frame}
\end{document}