Generallineno | Package not found

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
hiteurecomupf
Posts: 2
Joined: Wed Feb 22, 2012 6:31 pm

lineno | Package not found

Post by hiteurecomupf »

Hi all,

I am very much eager to solve this problem which i am failing to understand why is coming again and again. I am using TexMAKER as the front end. I have to write a journal paper using their .tex file along with 2 other files named as mdpi.cls and mdpi.bst. As ordered i have put all the 3 files into one same folder. Now what ever i write in the texfile and when i do the compilation, i am getting this error.
! LaTeX Error: File `lineno.sty' not found at mdpi.cls at line 218.
I downloaded the lineno package zip file from ctan and put in the same folder where all the 3 files are already present but still this error is bugging me.

I am giving the .tex file format here below -

Code: Select all

%  LaTeX support: e-mail latex@mdpi.com
%
%  In case you need support, please attach any log files that you could
%  have, and specify the details of your LaTeX setup (which operating
%  system and LaTeX version / tools you are using).
%==========================================================
% LaTeX Class File and Rendering Mode (choose one)
%----------------------------------------------------------
% you will need to save "mdpi.cls" and "mdpi.bst" files
% into the same folder as the this template file.
%----------------------------------------------------------
\documentclass[journal,article,submit,moreauthors,pdftex,12pt,a4paper]{mdpi} % for use with pdfLaTeX only
%\documentclass[journal,article,submit,moreauthors,dvipdfm,12pt,a4paper]{mdpi} % if eps figure are used, use this line with LaTeX and dvi2pdf only
%=================================================================
% Class Options
%-----------------------------------------------------------------
%As first class option the journal should be set. Choose between:
%administrativesciences, algorithms, atmosphere, cancers, challenges, diversity, energies, entropy, forests, futureinternet, games, genes, information, ijerph, ijms, jfb, jlpea, marinedrugs, materials, micromachines,
%molbank,  molecules, nutrients, pharmaceuticals, pharmaceutics , polymers, religions, remotesensing, sensors, sustainability, symmetry, toxins, viruses, water
%
%-----------------------------------------------------------------
% The default type of manuscript is article, but could be replaced
% by using one of the class options:
% article, review, communication, commentary, letter, bookreview,
% correction, addendum, editorial.
%-----------------------------------------------------------------
% If there is only one author the class opting oneauthor should be
% used. Otherwise use the class option moreauthors .
%-----------------------------------------------------------------
% The class option submit will be changed to accept by the Editorial
% Office when the paper is accepted.
% This will only make changes to the frontpage, the headings and
% the copyright information
% Journal Info and Pagination for Accepted Papers will also be
% assigned by the Editorial
%-----------------------------------------------------------------
\setcounter{page}{1}
\lastpage{x}
\doinum{10.3390/------}
\pubvolume{xx}
\pubyear{2012}
\history{Received: xx / Accepted: xx / Published: xx}

%-----------------------------------------------------------------
% The following line should be uncommented if the LaTeX file
% is uploaded to arXiv.org
%\pdfoutput=1
%=================================================================
%=================================================================
% Add packages and commands to include here
% The hyperref, caption, float and color packages are already included
%-----------------------------------------------------------------
\usepackage{amssymb,amsmath}
\usepackage{graphicx}
\usepackage{subfigure,psfig}
%-----------------------------------------------------------------
% Full title of the paper (Capitalized)
\Title{xxxx}
% Authors (add full first names)
\Author{xxxxx}
% Affiliations / Addresses, add [1] after \address if there is only one affiliation
\address{%
$^{1}$ \\
$^{2}$ }
%Contact information of the corresponding author, add [2] after \corres if there are more than one corresponding author
\corres{xxxx,xxxx,xxxx}
% Abstract
\abstract{}
% Keywords: add 3 to 10 keywords
\keyword{}
% the fields PACS and MSC may be left empty or commented out if not applicable
%\PACS{}
%\MSC{}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Introduction}
Main text paragraph. Citing a journal paper \cite{ref-journal}. And now citing a book reference \cite{ref-book}. 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Results and Discussion}
Main text paragraph.
Main text paragraph.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{This is a subsection heading}
Main text paragraph.
Main text paragraph.
\subsubsection{This is a subsubsection heading}
Main text paragraph.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Experimental Section}
Main text paragraph.
Main text paragraph.
\subsection{This is a subsection heading}
Main text paragraph.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Acknowledgements}
Main text
%==========================================================
%==========================================================
% Back Matter (References and Notes)
%----------------------------------------------------------
% Style and layout of the references
\bibliographystyle{mdpi}
\makeatletter
\renewcommand\@biblabel[1]{#1. }
\makeatother
%----------------------------------------------------------
% Use the following option to include external BibTeX files:
%\bibliography{template}
%----------------------------------------------------------

\begin{thebibliography}{1}
\end{thebibliography}
\end{document} 
As mentioned above i have just started using it and till now i don't have any experience in encountering any kind of error like this. As also mentioned before this error is coming in the mdpi.cls file at line no 218, so due to that no pdf ois getting generated. I am giving the mentioned packages as they are in mdpi.cls file

211 \RequirePackage{calc}
212 \RequirePackage{indentfirst}
213 \RequirePackage{times,fancyhdr}
214 \RequirePackage{graphicx}
215 \RequirePackage{lastpage}
216 \RequirePackage{ifthen}
217 \RequirePackage{lineno}
218 \RequirePackage{float}
219 \floatstyle{plaintop}
220 \restylefloat{figure}
221 \restylefloat{table}

If any one can give me any hint on this error will be really helpful.

Cheers..

Sougata
Last edited by localghost on Wed Feb 22, 2012 7:06 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

lineno | Package not found

Post by Stefan Kottwitz »

Hi Sougata,

if your TeX installation provides a package manager, such as TeX Live and MiKTeX do, install lineno by this package manager.

If you download it from CTAN, install it within in the TeX directory structure, in that case you have to refresh the file name database, by running the program mktexlsr or texhash at the command prompt.

Or put lineno.sty right into the same folder as your document is, which probably is the quickest and easiest way for now.

Stefan
LaTeX.org admin
Post Reply