When compiling my Latex project using Texstudio in Windows 10 (using MiKTeX 2.9), I am getting the following warning:

Values of option `pdfpagelayout':(hyperref) * `SinglePage'(hyperref) * `OneColumn'(hyperref) * `TwoColumnLeft'(hyperref) * `TwoColumnRight'(hyperref) * `TwoPageLeft' (PDF 1.5)

The Latex code is as follows

%input macros (i.e. write your own macros file called MacroFile1.tex)

%Tables and Figures

\usepackage{makeidx}  % allows for indexgeneration

% References




% Thickness of the border for fbox command


        \node[shape=rectangle,draw,inner sep=1.5pt] (char) {#1};}}

    \pdfinfo { /Title  (Some Title Here)
               /Creator (TeX)
               /Producer (pdfTeX)
               /Author (Name of the author)
               /CreationDate (D:20130624000000)  %format D:YYYYMMDDhhmmss
               /ModDate (D:20140624000000)
               /Subject (Some Subject)
               /Keywords (PhD, Thesis)}
    \pdfcatalog { /PageMode (/UseOutlines)
                  /OpenAction (fitbh)  }

\title{Title of the Document}

  \author{\href{mailto:some@email.com}{\textbf{Author Name}}}
  \collegeordept{\href{http://www.school.com}{School of Computing Science}}
% insert below the file name that contains the crest in-place of 'UnivShield'
  \author{{\bf Name}}
%  \collegeordept{School of Computing Science}
%  \university{University}
% insert below the file name that contains the crest in-place of 'UnivShield'
% \crest{\includegraphics[bb = 0 0 292 336, width=120mm]{UnivShield}}
% insert below the file name that contains the crest in-place of 'UnivShield'
% \crest{\IncludeGraphicsW{UnivShield}{40mm}{14 14 73 81}}
\renewcommand{\submittedtext}{Submitted in fulfilment of the requirements for the Degree of}
\degree{\it Doctor of Philosophy (PhD)}
\degreedate{February 2019}

    \collegeordept{\href{http://www.school.com}{School of Computing Science}}

% turn of those nasty overfull and underfull hboxes

% Put all the style files you want in the directory StyleFiles and usepackage like this:


\renewcommand\baselinestretch{0.70} % \renewcommand\baselinestretch{1.2}
\baselineskip=18pt plus1pt


% A page with the abstract on including title and author etc may be
% required to be handed in separately. If this is not so, then comment
% the below 3 lines (between '\begin{abstractseparte}' and 
% 'end{abstractseparate}'), normally like a declaration ... needs some more
% work, mind as environment abstracts creates a new page!
% \begin{abstractseparate}
%       \input{Front/abstract}
% \end{abstractseparate}

% Using the watermark package which is in StyleFiles/
% and to remove DRAFT COPY ONLY appearing on the top of all pages comment out below line
%\watermark{DRAFT COPY ONLY}


%set the number of sectioning levels that get number and appear in the contents


%\printglossary  %% Print the nomenclature


\part{Introduction and Background}

\chapter{Background \texorpdfstring{\\}{} and Related Work}

\part{Part Name}
\chapter{Chapter Name}

\chapter{Chapter Name}

\chapter{Chapter Name}

\part{Part Name}
\chapter{Chapter Name}

\chapter{Conclusions and \texorpdfstring{\\}{} Future Work}


%\bibliographystyle{plainnat} %this works with package natbib
%\bibliographystyle{Classes/jmb} % bibliography style
\renewcommand{\bibname}{Bibliography} % changes default name Bibliography to References
\bibliography{References/citations} % References file
\addcontentsline{toc}{chapter}{Bibliography} %adds References to contents page


As you can see, I tried to add the pdfpagelayout option in the \hypersetup but it is not working. Any idea of what is going on here?

The hyperref.sty file can be found here

Many thanks in advance.

  • Thanks @KJO I have added the full latex code. I removed some personal information that I did not want to be online (email, name, university...). Take into account that this is the main file of a bigger project (PhD Thesis). As you can observe after \begin{document} there are few inputs of other text files. However, those files do not load any package, everything is loaded in this main file. I have also tried to load the Hyperref package just before the \begin{document} and didn't work either. – Salias May 29 at 23:43
  • Also, I have added the hyperref.sty file in PasteBin – Salias May 29 at 23:49
  • The latex command works fine and I am able to create a PDF out of it. However, the issue comes when I am trying to use the Convert to Html tool that comes with Texstudio. It is not working because the latex command was triggering those warnings and other errors. I managed to get rid of all the warning except this one. – Salias May 29 at 23:53
  • Anyhow, it is a very unusual warning and couldn't find anything online to solve it. So, either way, I found useful to post the issue here for the community. – Salias May 29 at 23:54
  • In Texstudio, go to Tools > Convert to Html (pasteboard.co/Ih0QDS5.jpg) – Salias May 29 at 23:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.