Miktex 编译器无法编译我的演示文稿

Miktex 编译器无法编译我的演示文稿

下列关联用于演示文稿 我正在为明天的演示文稿做准备。

令人惊讶的是,它无法使用 MikTex 2.9 进行编译。尽管已经安装了最新的更新。最新的成功编译点是在添加方程式环境之前。

令我惊讶的是,它在 Overleaf 上成功编译,只有一条在向后兼容模式下运行的警告消息。没有别的!

我是否做错了什么,以致不是所有的编译器都能“吞下”我的代码?

注意:我对Dresden主题进行了一些修改,以适应我们机构的视觉交流。

答案1

您的日志文件中的相关错误消息是:

!pdfTeX error: pdflatex.exe (file mathkerncmssi8): Font mathkerncmssi8 at 450 n
ot found
 ==> Fatal error occurred, no output PDF file produced!

我认为您的字体图不正常或者您只是没有安装丢失的字体。

打开你的 MiKTeX 控制台,单击Tasks,然后Refresh font map files

如果它解决了该问题,请报告...

答案2

MiKTeX 字体映射似乎不能 100% 正常工作!实际上,我按照他建议的步骤做了,但没有成功。打开日志文件,有趣的部分是

!pdfTeX error: pdflatex.exe (file mathkerncmssi12): Font mathkerncmssi12 at 600
not found
==> Fatal error occurred, no output PDF file produced!

基于类似问题在 StackExchange 上,我运行了相同的命令,但mathkerncmssi12代码如下:

1-在 Win 上以管理员身份运行 CMD。

2- 运行initexmf --admin --edit-config-file updmap

3-它在记事本(Win 平台)中打开该文件。

4-将以下内容放入文件Map mathkerncmssi12.map中并保存。

5-返回 CMD 运行initexmf --admin --mkmaps

6- 您已完成!现在返回 LaTeX 没有任何问题!

答案3

这是您的演示文稿的有效版本。主要问题是字幕包不兼容[检查这个](在下面的代码中搜索“@SARI”单词即可查看我的评论)。

\documentclass [12pt]{beamer}
% Remember you have a limited set of sizes to choose from, any unrecognised value will be considered as default. Therefore, you MUST choose from: 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, 20pt. Default 11pt in Beamer package
\mode<presentation>{
\usetheme{Dresden}
\setbeamercovered{transparent}
\usecolortheme{lsc}

}

\mode<handout>{
  % tema simples para ser impresso
  \usepackage[bar]{beamerthemetree}
  % Colocando um fundo cinza quando for gerar transparências para serem impressas
  % mais de uma transparência por página
  \beamertemplatesolidbackgroundcolor{black!5}
}

\usepackage{amsmath}%,amssymb}
%\usepackage[brazil]{varioref} %These packages use local languages for figure numbers
%\usepackage[english,brazil]{babel}
\usepackage[utf8]{inputenc}
%\usepackage[latin1]{inputenc}

\usepackage{graphicx}
\usepackage{listings}
\usepackage{url}
\usepackage{colortbl}
\usepackage{tikz}
%\usepackage[style=ieee]{biblatex}
%
%% >>>>>>>>>>>>>>>>>>>>>>>>>>>PACKAGES SET BY MAZEN SHANAWANI <<<<<<<<<<<<<<<<<<<<
%\usepackage{caption} %@SARI:: CAUSES ERROR
\setbeamersize{text margin left=3mm,text margin right=3mm} 
\setbeamerfont{caption name}{size=\footnotesize}
%\usepackage[justification=centering, textfont={footnotesize}]{caption} %labelfont=footnotesize,  % %@SARI:: CAUSES ERROR
\setbeamerfont{caption}{size=\footnotesize}%USE THIS COMMAND INSTEAD @SARI::
\usepackage{comment}
\usepackage{siunitx}
%%\usepackage{bibentry}
\usepackage{listings}
%\usepackage[svgnames]{xcolor}
\usepackage{tikz}
\usepackage{pgfplots} %Required for BB figure
\usetikzlibrary{
    fadings,
    shapes.arrows,
    shadows,
    arrows.meta, % has replaced the old arrows library
    positioning,
    calc,
    bending, % better arrow tips on curved lines
    graphs, %Required for BB figure
    datavisualization.formats.functions %Required for BB figure
}
\beamertemplatetransparentcovereddynamic


% Space for added functionality and codes
\addtobeamertemplate{title page}{%
\begin{tikzpicture}[remember picture,overlay] 
  \node [xshift=3cm,yshift=0cm, opacity=0.3] at (current page.west)
  {\includegraphics[height=0.6\paperheight]{figs/Bologo.pdf}};              
\end{tikzpicture}%
}{}

\newcommand{\tabitem}{~~\llap{\textbullet}~~}

\setbeamertemplate{bibliography item}{\insertbiblabel}

\title[THZ \& mm]{Terahertz \\and \\ millimetric rectennas}
\author[Mazen Shanawani]{
  Mazen Shanawani
}
  \institute[DEI/CAMPI]{
     Laboratorio dei campi elettromagnetici\\
     DIPARTIMENTO DELL’ENERGIA ELETTRICA E DELL’INFORMAZIONE \\DEI \\
     Guglielmo Marconi
}

%\titlegraphic{\includegraphics[width = 5cm]{figs/Bologo.pdf}}
% Se comentar a linha abaixo, irá aparecer a data quando foi compilada a apresentação  
\date{11 December 2018}


%\pgfdeclareimage[height=1cm]{inf}{figs/CienciaDaComputacao.png}

% pode-se colocar o LOGO assim
%\logo{\pgfuseimage{inf}}

\AtBeginSection[]{
  \begin{frame}<beamer>
    \frametitle{Agenda}
    \tableofcontents[currentsection,currentsubsection]
  \end{frame}
}


\begin{document}

\begin{frame}
    \titlepage
\end{frame}

\begin{frame}
\frametitle{Agenda}
\tableofcontents
\end{frame}


\section{Introduction}

\frame{
    \frametitle{Transfer Matrix Method TMM}
    \begin{columns}[c]
        \column{0.5\textwidth}
            \begin{itemize}
                \item Compromise between complexity and accuracy.
                \item Ability to simulate multi insulator structure.
                \item Better mathematical accuracy.
                \item {\textcolor{unibored}{Now optimizer uses genetic algorithm to search for optimum solution (best figures of merit)}}
            \end{itemize}
        \column{0.5\textwidth}

        %\begin{figure}[htbp]   
        %   \centering
        %   \includegraphics[width= \textwidth]{figs/TMM_standalone.pdf}
        %   \caption{Classification of theory of operation}
        %\end{figure}
        \begin{equation}
            \psi_j(x) = A_j \cdot e^{p_j(x)} + B_j \cdot e^{-p_j(x)}
        \end{equation}
    \end{columns}
}
\section{References}
\begin{frame}[allowframebreaks]

  \frametitle<presentation>{References}
  \tiny {
    \begin{thebibliography}{10}
        \bibitem [1] {Mlinar2013} 
        Mlinar, V.
        \newblock Engineered nanomaterials for solar energy conversion.
        \newblock {\em Nanotechnology} {\bf 2013 }, {\em 042001}.

        \bibitem [2] {Nagel2016}
        Nagel, R.D.; Haeberle, T.; Schmidt, M.; Lugli, P.; Scarpa, G. 
        \newblock Large Area Nano-transfer Printing of Sub-50-nm Metal Nanostructures Using Low-cost Semi-flexible Hybrid Templates.
        \newblock Article; {\em Nanoscale Res. Lett. }{\bf 2016}, {\em 11, 143}. 

        \bibitem [3] {Shanawani201702}
        Shanawani, M.; Masotti, D.; Costanzo, A.
        \newblock THz Rectennas and Their Design Rules. \newblock {\em Electronics} {\bf 2017}, {\em 6, 99}. 

        \bibitem [4] {Corkish2002}
        Corkish, R.; Green, M.; Puzzer, T.
        \newblock Solar energy collection by antennas.
        \newblock {\em Sol. Energy} {\bf 2002}, {\em 73},~395--401.

        \bibitem [5] {Mlinar2013} 
        Mlinar, V.
        \newblock Engineered nanomaterials for solar energy conversion.
        \newblock {\em Nanotechnology} {\bf 2013 }, {\em 042001}.

    \end{thebibliography}
}
\end{frame}
\end{document}

在此处输入图片描述

相关内容