TexStudio 中的两个表格出现错误:包 inputenc 错误 unicode 字符 - (U+200E) 未设置为在 LaTeX 中使用。有人知道具体问题是什么吗?
已解决:樟科植物前的隐形字符
我的第一个表是,出现错误\end{tabular}
:
\begin{table}[ht]
\scriptsize
\centering
\captionsetup{type=table}
\caption[The amount of ecological relevant \texorpdfstring{g\textsubscript{s}}{gs}-VPD curves for the different genera. ]{The total number of ecological relevant \texorpdfstring{g\textsubscript{s}}{gs}-VPD curves for the different genera. The associated altitude and growth form are displayed as well.}
\label{tab:inventory}
\scalebox{1.5}{
\begin{tabular}{llll}
\hline
Genus & Growth form & Altitude (m) & \#gs-VPD curves \\ \hline
Asteraceae Mikania & Liana & 400 & 2 \\
Cucurbitaceae Cayaponia & Liana & 400 & 2 \\
Clusiaceae Clusia & Liana & 1100 & 3 \\
Ericaceae Psammisia & Liana & 1100 & 1 \\
Sapindaceae Serjania & Liana & 1100 & 1 \\
Asteraceae Mikania & Liana & 2200 & 5 \\
Cucurbitaceae Gurania & Liana & 2200 & 1 \\
Gobiesocidae Gouania & Liana & 2200 & 2 \\
Vitaceae Cissus & Liana & 2200 & 1 \\
Burseraceae Protium & Tree & 400 & 1 \\
Urticaceae Cecropia & Tree & 400 & 3 \\
Urticaceae Pourouma & Tree & 400 & 2 \\
Clusiaceae Tovomita & Tree & 1100 & 5 \\
Dichapetalaceae Stephanopodium & Tree & 1100 & 1 \\
Lauraceae Ocotea & Tree & 1100 & 2 \\
Leguminosae Dussia & Tree & 1100 & 1 \\
Myristicaceae Otoba & Tree & 1100 & 1 \\
Actinidiaceae Saurauia & Tree & 2200 & 1 \\
Sapindaceae Billia & Tree & 2200 & 3 \\
Araliaceae Oreopanax & Tree & 3000 & 2 \\
Ericaceae Cavendishia & Tree & 3000 & 1 \\
Rosaceae Rubus & Tree & 3000 & 2 \\
Rubiaceae Palicourea & Tree & 3000 & 2 \\
Siparunaceae Siparuna & Tree & 3000 & 1 \\ \hline
\textbf{Total} & & & \textbf{46} \\ \hline
\end{tabular}}
\end{table}
我的第二张表是,错误出现在樟科Ocotea floribunda
& Tree & 1100 & 3 & 0 & 3 \\
\begin{longtable}{llllll}
\caption[The amount of \texorpdfstring{g\textsubscript{s}}{gs}-VPD curves, light response curves and SLA for the different genera. ]{The amount of measured \texorpdfstring{g\textsubscript{s}}{gs}-VPD curves, light response curves and SLA for the different genera (or species if the plant was determined on species level). The associated altitude and growth form are displayed as well.}
\label{tab:inventoryalles} \\
\hline
Genus or species if known & Growth form & Altitude & \#gs-VPD & \#A-PAR & \#SLA \\ \hline
\endfirsthead
%
\endhead
%
\hline
\endfoot
%
\endlastfoot
%
Asteraceae Mikania & Liana & 400 & 14 & 1 & 13 \\
Cucurbitaceae Cayaponia & Liana & 400 & 2 & 0 & 2 \\
Hydrangeaceae Hydrangea & Liana & 400 & 3 & 1 & 5 \\
Clusiaceae Clusia & Liana & 1100 & 9 & 0 & 9 \\
Ericaceae Psammisia & Liana & 1100 & 3 & 2 & 5 \\
Melastomataceae Blakea & Liana & 1100 & 2 & 0 & 2 \\
Sapindaceae Serjania & Liana & 1100 & 5 & 0 & 5 \\
Aristolochiaceae Aristolochia & Liana & 2200 & 3 & 0 & 3 \\
Asteraceae Mikania & Liana & 2200 & 8 & 0 & 8 \\
Cucurbitaceae Gurania & Liana & 2200 & 3 & 0 & 3 \\
Gobiesocidae Gouania & Liana & 2200 & 2 & 0 & 2 \\
Vitaceae Cissu & Liana & 2200 & 3 & 1 & 4 \\
Asteraceae Mikania & Liana & 3000 & 2 & 0 & 2 \\
Smilacaceae Smilax & Liana & 3000 & 3 & 0 & 3 \\
Annonaceae Rollinia mucosa & Tree & 400 & 0 & 1 & 2 \\
Burseraceae Protium & Tree & 400 & 2 & 0 & 2 \\
Lecythidaceae Grias neuberthii & Tree & 400 & 2 & 0 & 2 \\
Malvaceae Theobroma gileri & Tree & 400 & 2 & 0 & 2 \\
Meliaceae Guarea & Tree & 400 & 5 & 0 & 5 \\
Phyllanthaceae Hieronyma alchorneoides & Tree & 400 & 0 & 1 & 2 \\
Urticaceae Cecropia hastae & Tree & 400 & 6 & 0 & 6 \\
Urticaceae Pourouma & Tree & 400 & 5 & 1 & 0 \\
Clusiaceae Tovomita weddelliana & Tree & 1100 & 6 & 1 & 6 \\
Dichapetalaceae Dichapetalum & Tree & 1100 & 3 & 1 & 4 \\
Dichapetalaceae Stephanopodium angulatum & Tree & 1100 & 3 & 0 & 3 \\
Lauraceae Caryodaphnopsis theobromifolia & Tree & 1100 & 0 & 1 & 1 \\
Lauraceae Ocotea floribunda & Tree & 1100 & 3 & 0 & 3 \\
Lauraceae Ocotea fraxifera & Tree & 1100 & 2 & 0 & 2 \\
Leguminosae Dussia & Tree & 1100 & 3 & 0 & 3 \\
Myristicaceae Otoba gordonifolia & Tree & 1100 & 3 & 2 & 5 \\
Actinidiaceae Saurauia & Tree & 2200 & 3 & 0 & 3 \\
Lauraceae Nectandra subbullata & Tree & 2200 & 2 & 0 & 2 \\
Moraceae Morus insignis & Tree & 2200 & 3 & 0 & 3 \\
Phyllanthaceae Hieronyma asperifolia & Tree & 2200 & 3 & 1 & 4 \\
Sapindaceae Billia rosea & Tree & 2200 & 5 & 1 & 5 \\
Theaceae Gordonia fruticos & Tree & 2200 & 1 & 0 & 0 \\
Adoxaceae Viburnum hallii & Tree & 3000 & 2 & 0 & 2 \\
Araliaceae Oreopanax & Tree & 3000 & 2 & 0 & 2 \\
Betulaceae Alnus acuminata & Tree & 3000 & 4 & 0 & 4 \\
Ericaceae Cavendishia bracteata & Tree & 3000 & 3 & 0 & 3 \\
Rosaceae Rubus & Tree & 3000 & 3 & 0 & 3 \\
Rubiaceae Palicourea & Tree & 3000 & 2 & 0 & 2 \\
Siparunaceae Siparuna & Tree & 3000 & 3 & 0 & 3 \\
Unknown 1 & Unknown & 3000 & 0 & 1 & 0 \\
Unknown 2 & Unknown & 3000 & 0 & 1 & 0 \\
Unknown 3 & Unknown & 3000 & 0 & 1 & 0 \\ \hline
\textbf{Total} & & & \textbf{143} & \textbf{18} & \textbf{150} \\ \hline
\end{longtable}
设置如下:
%% PACKAGES FOR LANGUAGE STUFF %%
\usepackage[latin1,utf8]{inputenc} %
\usepackage[english]{babel}
\input{hyphenation.tex}
%% PACKAGES FOR LAYOUT AND WRITING%%
\usepackage{hyperref} %
\usepackage[times]{quotchap}
\usepackage[sumlimits]{amsmath}
\usepackage{amsthm}
\usepackage[vlined,ruled]{algorithm2e}
\usepackage{verbatim}
\usepackage{float}
\usepackage[a4paper,verbose, centering,reversemp]{geometry}
\usepackage{fancyhdr}
\usepackage{times}
\usepackage{wrapfig}
\usepackage{floatflt}
\usepackage[round]{natbib}
\usepackage{xcolor}
\usepackage{multicol}
\usepackage{graphicx}
%\usepackage[version=3]{mhchem}
\usepackage{enumitem}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage[calcwidth,newparttoc]{titlesec}
\usepackage[osf]{mathpazo}
\usepackage{siunitx}
\usepackage{isotope}
\usepackage{newtxtext,newtxmath,amsmath}
\usepackage{amsmath}
\usepackage{nomencl}
\makenomenclature
\usepackage{glossaries}
\makeglossaries
%refer to multiple figures:
%\usepackage[colorlinks]{hyperref}
\usepackage[nameinlink]{cleveref}
\Crefname{figure}{Fig.}{Figs.}
\newcommand\crefrangeconjunction{--}
%% PACKAGES FOR TABLES %%
\usepackage{booktabs,tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\usepackage{multirow}
\usepackage{hhline}
\usepackage[font={small},labelfont={bf},center]{caption}
\usepackage{lscape}
\usepackage{longtable}
\usepackage{pdflscape}
\usepackage{graphicx}
%% OTHER PACKAGES
\usepackage{datetime}
\usepackage{pdfpages}
\usepackage{amssymb,listings,color,textcomp,marvosym,flafter,longtable,subcaption,amsfonts,rotating}
\usepackage{array,pstricks,listings}
\definecolor{chaptergray}{rgb}{0.85,0.85,0.85}
\parskip=\medskipamount
\DeclareGraphicsExtensions{jpg,png}
\input{page_layout_definition}
{label}
\newcommand{\mijnfiguur}[5][ht]{
\begin{figure}[#1]
\begin{center}
\includegraphics[#2]{#3}
\end{center}
\caption{#4}
\label{#5}
\end{figure}
}
\begin{document}
\selectlanguage{english}
\lstset{language=Matlab,commentstyle=, framexleftmargin=5mm,belowcaptionskip=5mm,
frame=single,basicstyle={\ttfamily\small},
stringstyle=\small,commentstyle=\textcolor[rgb]{0.53,0.53,0.53},
backgroundcolor=\color[rgb]{0.93,0.93,0.93},showspaces=false,framexleftmargin=-2pt,showstringspaces=false,upquote=true}
\frontmatter
\include{Titelpagina}
\newpage\mbox{}\newpage
\inputencoding{latin1}
\include{Copyright}
\newpage\mbox{}\newpage
\inputencoding{utf8}
\include{Abstract}
\include{Samenvatting}
\include{Resumen}
\include{Voorwoord}
\newpage\mbox{}\newpage
\tableofcontents
\listoffigures
\listoftables
\include{Abbreviations}
\mainmatter
\include{chapter2}
\include{chapter1}
\include{chapter3}
\include{chapter4}
\include{chapter5}
\include{chapter6}
\let\secfnt\undefined
\newfont{\secfnt}{ptmb8t at 9pt}
\begin{multicols}{2}
\small
%\bibliographystyle{amsplain}
\bibliographystyle{myplainnat}
\bibliography{library}
\end{multicols}
\include{Bijlagen}
\end{document}
答案1
这两个流氓角色是从左到右标记并且是不可见的,可能陷入复制和粘贴操作(可能来自 word 生成的 PDF)
我回过头去看了许多编辑,试图找到第二个,
但当你删除了在 Lauraceae 之前发现的流氓角色后,却没有任何收获(要么是粘贴不正确,要么是提前编辑掉了,或者是第一个编译中的回声)
Dichapetalaceae Stephanopodium & Tree & 1100 & 1 \\
[HERE I AM]Lauraceae Ocotea & Tree & 1100 & 2 \\
Leguminosae Dussia & Tree & 1100 & 1 \\
然后再次编译,看看是否都已经消失了