每个人
我正在尝试将外部表导入到我的主要 tex 文件中,但是当我尝试编译我的文档时出现错误“无效的 UTF-8 字节序列”。
我的main.tex
样子是这样的:
\documentclass[12pt]{article}
\usepackage[right=1.25in,left=1.25in,top=1.1in,bottom=1.1in]{geometry}
\usepackage{hyperref}
\hypersetup{colorlinks, citecolor=blue, filecolor=blue, linkcolor=blue, urlcolor=blue}
\usepackage{graphicx}
\usepackage{url}
\usepackage[round]{natbib}
\usepackage{amsmath,amsthm}
\usepackage{engord}
\usepackage{float}
\usepackage{subfig}
\usepackage{pdflscape}
\usepackage{booktabs}
\usepackage{pgfplots}
\usepackage{threeparttable}
\pgfplotsset{compat=1.14}
\pgfplotsset{every axis label/.append style={font=\tiny}}
\usepackage[labelsep=period]{caption} %% This switches "Table 1: Title" to "Table 1. Title"
\usepackage{amssymb} %% Necessary, just for the \checkmark command in tables.
\usepackage{multirow} %% Necessary if we are doing tables in LaTeX
\usepackage{xr}
\usepackage{adjustbox}
\usepackage[portuguese]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{setspace}
\onehalfspacing
\usepackage{sectsty}
\sectionfont{\large}
\subsectionfont{\normalsize}
\subsubsectionfont{\normalsize}
\newcommand{\specialcell}[2][c]{\begin{tabular}[#1]{@{}l@{}}#2\end{tabular}}
\section{Introduction\label{sec:introduction}}
\input{external_table.tex}
\end{document}
我的external_table.tex
样子
\begin{table}[h]
\centering
\begin{adjustbox}{width = \textwidth, center}
\begin{threeparttable}[b]
\caption{\label{IV_wage_1} Title (Dep. Var: y)}
\bigskip
\begin{tabular}{lccc}
\toprule
& Educação1 & Educação2 & Educação3 \\
& (1) & (2) & (3)\\
\midrule
X & 0.379$^{*}$ & 0.639$^{**}$ & 0.320\\
& (0.193) & (0.296) & (0.201)\\
1o Estágio & -0.097***(0.026) & -0.09***(0.026) & -0.094***(0.026)\\
\\
Observations & 231 & 215 & 231\\
F-test (1st stage) & 12.7 & 9.02 & 9.82\\
\\
ano fixed effects & $\checkmark$ & $\checkmark$ & $\checkmark$\\
UF fixed effects & $\checkmark$ & $\checkmark$ & $\checkmark$\\
\bottomrule
\end{tabular}
\end{threeparttable}
\end{adjustbox}
\end{table}
有什么办法可以避免这个错误并直接导入表?