添加软件包 minted 时出现警告?

添加软件包 minted 时出现警告?

minted当我尝试在 sharelatex 中加载包时,出于某种原因我收到警告。

警告是

Command \@parboxrestore has changed.

Package fvextra Warning: csquotes should be loaded after fvextra, to avoid a warning from the lineno package on input line 37.

我不确定我该如何解释这个?..我对我的错误信息非常挑剔,并试图避免所有类型的错误信息,那么为什么我minted在 sharelatex 中使用时会收到此警告,我该如何摆脱它?

这是我的 preamble.tex

\documentclass[11pt,twoside]{文章}

% ------- Enable UTF8 characters ------- %
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage[toc,page]{appendix}

\usepackage{listings}
\usepackage{color}
\usepackage[colorinlistoftodos]{todonotes}

\usepackage{epstopdf}
\usepackage{csquotes}
\usepackage{wrapfig}
\usepackage{pdfpages}
\usepackage{todonotes}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{commath} % Added by Me - Used for norm
\usepackage{smartdiagram} % Added by Me - Smartdiagram 
\usepackage{glossaries} % Added by Me - Glossary
\usepackage[shortlabels]{enumitem}
\makeglossaries
%-------------- Glossary -----------------%
\input{glossaries/glossaries_entries.tex}
\glsaddallunused
% ------------ Code Listing ------------- %

\usepackage{minted}

% ------- Page layout ------- %
\usepackage{fullpage}
\usepackage{hyperref} % clickable references
\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}
\usepackage{multicol}
\setlength{\columnsep}{1cm}

% ------- Images ------- %
\usepackage{graphicx}
\usepackage{caption}
\usepackage{float}
%\usepackage{subfigure}
\usepackage{subcaption}
%\DeclareCaptionFont{gray}{\color{gray}}
%\captionsetup{textfont={footnotesize,sc,gray},font={footnotesize,sc,gray}}

\newcommand{\figscale}{0.7\linewidth}
\newcommand{\smallfigscale}{0.07\linewidth}

\usepackage{blindtext}



%References
%\usepackage[numbers]{natbib} %Natbib supports both [i] and Author (year) citation styles. \citet and \citep replace \cite.
%\bibliographystyle{ieeetr}
%\bibliographystyle{plainnat}
\usepackage{url}

\usepackage[style=ieee,natbib=true,backend=biber,bibencoding=utf8,url=true]{biblatex}
\addbibresource{bibliography2.bib}




\usepackage{fancyhdr}
%\setlength{\headheight}{15pt}
%\usepackage[showframe,headsep=1cm,headheight=2cm]{geometry}
\usepackage[headsep=1cm,headheight=15pt]{geometry}

% Test

\usepackage{tikz}
\usetikzlibrary{shapes,arrows,shadows,shadows.blur,positioning,calc,arrows.meta,automata}
\newcommand{\mx}[1]{\mathbf{\bm{#1}}} % Matrix command
\newcommand{\vc}[1]{\mathbf{\bm{#1}}} % Vector command
\tikzstyle{pinkbox}=[draw,rounded corners,shade,top color=white,bottom color=pink,
                     minimum width=3.5cm,minimum height=1cm,align=center,node distance=1.5cm]
\tikzstyle{inter arrow}=[->,ultra thick,-{Triangle[angle=45:8pt]}]  

答案1

fvextra包由 加载minted,因此您应该minted在 之前加载csquotes

您应该做的另一件事是hyperref最后加载:很少有包应该比这个包晚到达,而您却没有加载其中任何一个。

附注:commath这是一个有很多缺陷的软件包

相关内容