我收到错误 - 可能来自 pagebackref

我收到错误 - 可能来自 pagebackref

我收到如下错误。

Package l3regex /usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/l3regex.sty, line 42
 Warning: This package is obsolete --- use 'expl3' instead on input line 42.

我的第 42 行是

\usepackage[
    pagebackref=true,
    colorlinks=true,
    allcolors=blue
    ]
    {hyperref}
    \renewcommand\backrefxxx[3]{%
    \hyperlink{page.#1}{$\uparrow$#1}%
}

你有什么主意吗?

我的档案是

\usepackage[nottoc]{tocbibind}
\usepackage[table]{xcolor}
\usepackage[titletoc]{appendix}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\fancypagestyle{first}{
\fancyhead[LE,RO]{}
\fancyhead[LO,RE]{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,RE]{\textit{Ajith Kularathna Aluvihare Gedara}}
\cfoot{}
}
\fancypagestyle{main}{
\fancyhead[LE,RO]{\textsl{\rightmark}}
\fancyhead[LO,RE]{\textsl{\leftmark}}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,RE]{\textit{Ajith Kularathna Aluvihare Gedara}}
\cfoot{}
}
\fancypagestyle{last}{
\fancyhead[LE,RO]{\textsl{\leftmark}}
\fancyhead[LO,RE]{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,RE]{\textit{Ajith Kularathna Aluvihare Gedara}}
\cfoot{}
}
\fancypagestyle{app}{
\fancyhead[LE,RO]{\textsl{APPENDICES}}
\fancyhead[LO,RE]{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,RE]{\textit{Ajith Kularathna Aluvihare Gedara}}
\cfoot{}
}
\raggedbottom %preventing spreading paras. 
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{chemfig}
\usepackage{chemnum}
\newcommand*\pkg[1]{\textsf{#1}}
\usepackage[
    pagebackref=true,
    colorlinks=true,
    allcolors=blue
    ]
    {hyperref}
    \renewcommand\backrefxxx[3]{%
    \hyperlink{page.#1}{$\uparrow$#1}%
}
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\usepackage{wrapfig}
\usepackage{multirow}
\usepackage{tabu}
\usepackage{float}
\usepackage{textcomp}
\usepackage[headheight=15pt]{geometry}
\geometry{
 a4paper,
 left=30mm,
 top=30mm,
 right=30mm,
 bottom=30mm,
 }
\setlength{\oddsidemargin}{1.0cm}
\setlength{\evensidemargin}{-0.1cm}
\usepackage{epigraph} 
\usepackage[font=small, labelfont=bf]{caption}
\usepackage{acronym} 
\usepackage{pdflscape}
\usepackage{dingbat}
\usepackage{soul}
\usepackage{amsmath}
\usepackage{tocloft}
\usepackage{multicol}
\setlength{\columnsep}{1cm}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}
\usepackage{xcolor}
\usepackage{color}
\usepackage{pgfplots}
\usepackage{tikz}
\usepackage [english]{babel}
\setlength{\parindent}{3em}
\setlength{\parskip}{1em}
\usepackage [autostyle, english = american]{csquotes}
\MakeOuterQuote{"}
\usepackage{pgfgantt}
\usepackage[version=4]{mhchem}



\definecolor{bblue}{HTML}{4F81BD}
\definecolor{rred}{HTML}{C0504D}
\definecolor{ggreen}{HTML}{9BBB59}
\definecolor{ppurple}{HTML}{9F4C7C}
%\definecolor{lred}{RGB}{255,50,0}

\hypersetup{
    pdftitle={Validation of innovative binder solution for wooden circular designed products},
    pdfauthor={Ajith Kularathna Aluvihare Gedara},
    pdfsubject={Manufacturing Engineering},
    pdfkeywords={Wood adhesives, wood binders},
    bookmarksnumbered=true,     
    bookmarksopen=true,         
    bookmarksopenlevel=1,       
    colorlinks=true,            
    pdfstartview=Fit,           
    pdfpagemode=UseOutlines,    % this is the option you were looking for
    pdfpagelayout=TwoPageRight
}

\usetikzlibrary{shapes.geometric, arrows, positioning,shadows,trees}
\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, text width=8em, fill=red!30]
\tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=blue!30]
\tikzstyle{process} = [rectangle, minimum width=1cm, minimum height=1cm, text centered, text width=8em, draw=black, fill=orange!30]
\tikzstyle{decision} = [diamond, draw, fill=blue!20, 
    text width=6em, text badly centered, inner sep=0pt]
\tikzstyle{arrow} = [thick,->,>=stealth]

\tikzset{
  basic/.style  = {draw, text width=2cm, drop shadow, font=\sffamily, rectangle},
  root/.style   = {basic, rounded corners=2pt, thin, align=center,
                   fill=green!30},
  level 2/.style = {basic, rounded corners=6pt, thin,align=center, fill=green!60,
                   text width=8em},
  level 3/.style = {basic, thin, align=left, fill=pink!60, text width=6.5em}
}

\setlength{\arrayrulewidth}{0.5mm} % table line thickness
\newcommand*{\hlt}[1]
{
\tikz[baseline]\node[rectangle, fill=yellow, rounded corners, inner sep=0.3mm,anchor=base]{#1};
}

\newcommand*{\hlr}[1]
{
\tikz[baseline]\node[rectangle, fill=magenta, rounded corners, inner sep=0.3mm,anchor=base]{#1};
}

\newcommand*{\hlg}[1]
{
\tikz[baseline]\node[rectangle, fill=green, rounded corners, inner sep=0.3mm,anchor=base]{#1};
}

\usepackage{imakeidx}
\makeindex[columns=2, title=Index, intoc]

我的主要文件是

\documentclass[12pt,twoside]{report}
\usepackage{packs}
\begin{document}
\pagenumbering{roman}
\input{files/ttl_1}
\cleardoublepage
\input{files/ttl_2}
\cleardoublepage
\pagestyle{first}
\chapter*{Dedication}
\addcontentsline{toc}{chapter}{Dedication}
To my son 
\cleardoublepage
\chapter*{Acknowledgement}
\addcontentsline{toc}{chapter}{Acknowledgement}
\input{files/ack}
\cleardoublepage
\tableofcontents
\cleardoublepage
\listoffigures
\cleardoublepage
\listoftables
\cleardoublepage
\newcommand{\listequationsname}{List of Equations}
\newlistof{equations}{equ}{\listequationsname}
    \newcommand{\myequations}[1]
{
    \addcontentsline{equ}{equations}{\protect\numberline{\theequation}#1}\par
}
\setlength{\cftequationsnumwidth}{2.5em}
\listofequations
\addcontentsline{toc}{chapter}{List of Equations}
\cleardoublepage
\section*{Abstract}
\addcontentsline{toc}{chapter}{Abstract}
\input{files/ab}
\cleardoublepage
\section*{List of Abbreviations}
\addcontentsline{toc}{chapter}{List of Abbreviations}
\input{files/abbri}
\cleardoublepage
\chapter*{Introduction to the thesis}
\addcontentsline{toc}{chapter}{Introduction to the thesis}
\input{files/intro_to_thesis.tex}
\cleardoublepage
\pagenumbering{arabic}
\pagestyle{main}
\chapter{Introduction}
\input{chapters/Introduction}
\cleardoublepage
\chapter{Literature review}
\input{chapters/Literature}
\cleardoublepage
\chapter{Methodology}
\input{chapters/Methodology}
\cleardoublepage
\chapter{Results and Discussion}
\input{chapters/Results}
\cleardoublepage
\chapter{conclusion}
\input{chapters/Conclusion}
\cleardoublepage
\pagestyle{last}
\bibliographystyle{unsrt}
\bibliography{refs}
\cleardoublepage
\pagestyle{app}
\cleardoublepage
\input{chapters/app}
\printindex
\end{document}

谢谢。

答案1

警告中的行号属于该文件/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/l3regex.sty,并且不是主 TeX 文件。

源代码中的软件包警告,第40-42行:

\PackageWarning
  \old@liii@module@name{This package is obsolete ---
   use 'expl3' instead}

因此,您必须检查.log文件以查找包加载的位置。如果这是您的 TeX 文件,则按照警告的建议l3regex替换包。expl3

该问题与页面反向引用无关。

相关内容