下面的代码可以工作,但是土耳其语字符没有出现。我尝试添加
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[turkish]{babel}
但这次代码不起作用。知道为什么吗?
% !TEX encoding = UTF-8 Unicode
\documentclass{beamer}
\mode<presentation>
\usetheme{warsaw}
\usepackage[latin1]{inputenc}
\usepackage{beamerthemesplit}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{booktabs}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{natbib}
\usepackage{graphicx}
\bibpunct[, ]{(}{)}{;}{a}{,}{,}
\title{Valuing Health}
\author[Günal Bilek]{Günal Bilek}
\institute{University of X}
\setcounter{page}{51}
\begin{document}
\begin{frame}[shrink=30]
\titlepage
\begin{figure}
\centering
\includegraphics[scale=0.35]{balance.jpg}
\end{figure}
\end{frame}
\end{document}
答案1
确保您的文件保存为 UTF-8 并添加\usepackage[utf8]{inputenc}
,而不是latin1
。
我还简化了包列表,删除了重复的包和已经被加载的包beamer
。
\documentclass{beamer}
\usetheme{Warsaw}
\usefonttheme{professionalfonts}
\usepackage{mathptmx}
\usepackage[scaled=.92]{helvet}
\mode<presentation>
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{beamerthemesplit}
\usepackage{booktabs}
\usepackage{natbib}
\bibpunct[, ]{(}{)}{;}{a}{,}{,}
\title{Valuing Health}
\author[Günal Bilek]{Günal Bilek}
\institute{University of X}
\begin{document}
\begin{frame}[shrink=30]
\titlepage
\begin{figure}
\centering
\includegraphics[scale=0.35]{example-image}
\end{figure}
\end{frame}
\end{document}