I am using a Master/Doctoral Thesis fromhttps://www.latextemplates.com.I have got a very simpel problem which is undefined control sequence \tabhead!Can anybody help me to overcome that?
I will be very pleased.
Best,Pouya
\documentclass[11pt, oneside, english, singlespacing,liststotoc, toctotoc,headsepline,]{MastersDoctoralThesis}\usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{mathpazo} \usepackage[backend=biber,style=authoryear,natbib=true]{biblatex}\addbibresource{example.bib}\usepackage[autostyle=true]{csquotes}\geometry{ paper=a4paper, inner=2.5cm, outer=3.8cm, bindingoffset=.5cm, top=1.5cm, bottom=1.5cm, %showframe,}\begin{table}\caption[Environmental sustainability constraints]{Four set of constraints as environmental sustainability which scale the human economic.}\label{tab:activities}\centering\begin{tabular}{p{0.2\linewidth}p{0.7\linewidth}}\toprule\tabhead{Number} & \tabhead{Activity}\\\midrule1 \& 2 & The use of renewable and non-renewable resources on the source side\\3 \& 4 & Pollution and Waste assimilation on the sink side\\\bottomrule\\\end{tabular}\end{table}\printbibliography[heading=bibintoc]\end{document}- 1Neither the documentclass you use nor any of the packages you load defines the command
\tabheadwhich is why you end up with the error message. What do you expect\tabheadto do/result in? Did you read about this command somewhere? If so, where?leandriis– leandriis2021-01-06 20:30:38 +00:00CommentedJan 6, 2021 at 20:30
1 Answer1
From the website that you mention, download and unpackthesis_1.zip. In the fileChapters/Chapter1.tex, near the top, you will find the following lines:
% Define some commands to keep the formatting separated from the content \newcommand{\keyword}[1]{\textbf{#1}}\newcommand{\tabhead}[1]{\textbf{#1}}\newcommand{\code}[1]{\texttt{#1}}\newcommand{\file}[1]{\texttt{\bfseries#1}}\newcommand{\option}[1]{\texttt{\itshape#1}}This means: if you want to use the command\tabhead in your document, add a line like the one above to your preamble:
\documentclass[...]{...}...\newcommand{\tabhead}[1]{\textbf{#1}}...\begin{document}- thank you very much. You don't know how grateful I am!Pouya Mahdavi– Pouya Mahdavi2021-01-07 09:55:36 +00:00CommentedJan 7, 2021 at 9:55
You mustlog in to answer this question.
Explore related questions
See similar questions with these tags.

