I tried to use multicolumn to make the first row of the table centered and the rest follows the normal paragraph rule. Here's the code snippet:
\documentclass[a4paper,12pt]{report}
\usepackage{indentfirst}
\setlength{\parindent}{2.30em}
\usepackage[utf8]{inputenc}
\usepackage{pdflscape}
\usepackage{lscape}
\usepackage{booktabs, tabularx}
\usepackage{bm}
\usepackage{xfrac}
\usepackage[titles]{tocloft}
\usepackage{subfig}
\usepackage{rotating}
\usepackage{wrapfig}
\usepackage{mathptmx}
\usepackage{amsmath, amssymb, amsfonts}
\usepackage{cleveref}
\usepackage[top=1.8in, bottom=1.25in, left=1.75in, right=1.25in, headheight=1.25in]{geometry}
\usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}
\sloppy
\microtypecontext{spacing=nonfrench}
\emergencystretch=\maxdimen
% Fonts
\usepackage{sectsty}
\allsectionsfont{\normalsize}
%Pagination
\usepackage{fancyhdr}
\pagestyle{fancyplain}% <- use fancyplain instead fancy
\fancyhf{}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
% Caption
\usepackage{caption}
\captionsetup{format=hang, font=normalsize, labelfont=bf, justification=justified, labelsep=period}
% Graphics
\usepackage{graphicx}
\graphicspath{{./Figure/}}
\DeclareGraphicsExtensions{.pdf,.jpeg,.jpg,.png}
% Spacing
\usepackage{setspace} % control linespacing
\setstretch{1.5}
\clearpage
\begin{document}
\renewcommand{\thechapter}{\Roman{chapter}}
\chapter{Methodology}
\renewcommand{\thechapter}{\arabic{chapter}}
\label{ch:Methodology}
\thispagestyle{empty}
\begin{landscape}
\centering
\begin{tabularx}{\linewidth}{| p{0.75in} | p{1in} | p{0.9in} | p{2in} | p{0.8in} | p{0.6in} | p{0.8in} |}{\hyphenpenalty=20\exhyphenpenalty=20}
\hline
\multicolumn{1}{|c|}{\textbf{Name}} & \multicolumn{1}{|c|}{\textbf{Alphanumeric Name}} & \multicolumn{1}{|c|}{\textbf{Fiber Strand Size}} (mm) &
\multicolumn{1}{|c|}{\textbf{Color}} & \multicolumn{1}{|c|}{\textbf{Stripping}} & \multicolumn{1}{|c|}{\textbf{Texture}} &
\multicolumn{1}{|c|}{\textbf{Extracted From}} \\
\hline
Streaky Two & S2 & 0.20 - 0.50 & Ivory white, slightly tinged with very light brown to red or purple streak & Excellent & Soft &
Next to the outer leafsheath \\
\hline
\end{tabularx}
\label{table:Abaca Fiber Grades}
\end{landscape}
\end{document}
However, I get the following errors in the line \end{tabularx}:
How do I remove those errors? I don't understand what the error is trying to say. Your help is much appreciated. Thank you!


{\hyphenpenalty=20\exhyphenpenalty=20}you placed right after the column specification. Why do you put those there? In a tabular,\hlinemust start the row and cannot have anything in front of it. – Willie Wong Feb 01 '24 at 06:29\multicolumn{1}{|c|}{\textbf{Fiber Strand Size}} (mm)should probably be\multicolumn{1}{|c|}{\textbf{Fiber Strand Size} (mm)}instead; currently you are generating a spurious column. – Willie Wong Feb 01 '24 at 06:30ccolumn type on the header cells, thereby disabling automatic linebreaking. As a result, the table ends up being much wider than\linewidth. Moreover, since you don't use a single instance of anX-type column, the chances that table's overall width will be equal to the target width are virtually zero. – Mico Feb 01 '24 at 06:59\textbf{Alpha\-numeric Code}but no dice. – Kenneth Ligutom Feb 01 '24 at 07:27ccolumn type for the header cells. – Mico Feb 01 '24 at 07:29\DeclareGraphicsExtensions{.pdf,.jpeg,.jpg,.png}? If not I would suggest to remove it, because it does not only change the search order but also remove several extensions supported by pdfTeX (or LuaTeX and even more for, e.g., XeTeX). – cabohah Feb 01 '24 at 07:49\usepackage[utf8]{inputenc}does nothing in any latex since 2016,\usepackage{lscape}does nothing as you have loadedpdflscape. better to usetxfontsfor a times roman clone thanmathptmxunless you need fonts in a 1990's postscript printer. why not simply\usepackage{microtype}? you are asking for adjustments to letters to avoid stretching white space, but then have\sloppy\emergencystretch=\maxdimenallowing unlimited white space – David Carlisle Feb 01 '24 at 08:56newtxtextandnewtxmathinsteas ofmathptmx. In case you're curious about the nomenclature: thenewtxtextandnewtxmathpackages originated with thetxfontspackage but have since evolved significantly. – Mico Feb 01 '24 at 11:34newtxtextand/ornewtxmathfont packages. Instead, they appear to be related to unresolved cross-references. Two questions: (a) Did you verify that there are no typos in the document's\labeland\refdirectives? (b) Did you run LaTeX at least twice (and not delete several important aux files between runs)? – Mico Feb 04 '24 at 16:32\labeland\refof the the varietyfig:Architectures of Mask R-CNN, Keypoint R-CNN, and FibeR-CNN? Is it within your power to come up with shorter and easier-to-manage label strings? – Mico Feb 04 '24 at 16:42\labeland\refare completely unrelated to and separate from LaTeX's font-handling routines. – Mico Feb 05 '24 at 08:53