我的代码有些问题,所以我改成了
\usepackage[utf8]{inputenc}
我可以编译。但现在我又遇到了另一个问题。我用巴西葡萄牙语编写,因此定义环境用葡萄牙语编译,我的意思是,在文档中我们看到“Definição”(葡萄牙语定义)。
因此,当我尝试编译时,收到以下消息:
Package inputenc Error: Unicode char \u8:ção not set up for use with LaTeX
我能做些什么?
PS:我不知道它是否有帮助,但我也使用这些包:
\usepackage[brazilian]{babel}
\usepackage[T1]{fontenc}
感谢:D
我能做的最少的事情哈哈哈:主要文件:
\documentclass[11pt,fleqn]{book}
\usepackage{microtype}
\usepackage[utf8]{inputenc}
\usepackage[brazilian]{babel}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\definecolor{ocre}{RGB}{243,102,25}
\input{structure}
\begin{document}
\begin{definition}
Um triângulo é um polígono de 3 lados.
\end{definition}
\end{document}
以及结构输入文件:
\usepackage{titlesec} % Allows customization of titles
\usepackage{graphicx} % Required for including pictures
\graphicspath{{Pictures/}} % Specifies the directory where pictures are stored
\usepackage{amsmath,amsfonts,amssymb,amsthm} % For including math equations, theorems, symbols, etc
\newtheorem{definitionT}{Definição}[section]
\RequirePackage[framemethod=default]{mdframed} % Required for creating the theorem, definition, exercise and corollary boxes
% Theorem box
\newmdenv[skipabove=7pt,
skipbelow=7pt,
backgroundcolor=black!5,
linecolor=ocre,
innerleftmargin=5pt,
innerrightmargin=5pt,
innertopmargin=5pt,
leftmargin=0cm,
rightmargin=0cm,
innerbottommargin=5pt]{tBox}
\newenvironment{definition}{\begin{tBox}\begin{definitionT}}{\end{definitionT}\end{tBox}}
谢谢 :)