未找到“figurescaption.sty”

未找到“figurescaption.sty”

我正在使用来自网站的包,其部分代码列表如下。

\documentclass[twoside,twocolumn]{article}  
\usepackage[sc]{mathpazo}  
\usepackage[T1]{fontenc}  
\linespread{1.05}  
\usepackage{microtype}  
\usepackage[bahasa]{babel}  
\usepackage[left=3.00cm, right=2.00cm, top=2.50cm, bottom=2.50cm,columnsep=0.5cm]{geometry}  
\usepackage[hang, small,labelfont=bf,up,textfont=it,up]{figurescaption} %   
\usepackage{booktabs}  
\usepackage{enumitem}  
\usepackage{blindtext}  
\setlist[itemize]{noitemsep}  
\usepackage{abstract}  
\renewcommand{\abstractnamefont}{\normalfont\bfseries}  
\renewcommand{\abstracttextfont}{\normalfont\small\itshape}  
\usepackage{titlesec}  
\renewcommand\thesection{\Roman{section}}  
\renewcommand\thesubsection{\roman{subsection}}     
\titleformat{\section}[block]{\large\scshape\centering}{\thesection.}{1em}{}  
\titleformat{\subsection}[block]{\large}{\thesubsection.}{1em}{}   
\usepackage{fancyhdr}   
\pagestyle{fancy}  
\fancyhead{}  
\fancyfoot{} 
\fancyhead[C]{Jurnal KIP $\bullet$ May 2017 $\bullet$ Vol. IV, No. 3}  
\fancyfoot[RO,LE]{\thepage}  
\usepackage{titling}  
\usepackage{hyperref}  
\setlength{\droptitle}{-4\baselineskip}
\pretitle{\begin{center}\Large\bfseries} 
\posttitle{\end{center}} 
\title{Judul Artikel}    
\author{%
\textsc{The writer} \\[1ex]  
\normalsize My University \\  
\normalsize \href{mailto:[email protected]}{[email protected]}  
}
\date{} 
\renewcommand{\maketitlehookd}{
\begin{abstract}
\noindent \blindtext
\end{abstract}
}
\begin{document}
\maketitle
\section{Pendahuluan}
\blindtext

\end{document}

但是,我收到错误消息:图形标题.sty未在包中找到。
请帮忙修复代码。

答案1

您不应该使用不存在的包。在您的情况下figurescaption.sty找不到它,因为它在 TeX 发行版中不可用。您应该改用caption,它接受这种类型的参数(顺便说一下,请将多个选项括在括号中)。

\documentclass[twoside,twocolumn]{article}  
\usepackage[bahasa]{babel}  
\usepackage[T1]{fontenc}  
\usepackage[left=3cm, right=2cm, top=2.5cm, bottom=2.5cm,columnsep=0.5cm]{geometry}  
\usepackage[hang, small,labelfont={bf,up},textfont={it,up}]{caption} %   

\usepackage[sc]{mathpazo}
\usepackage{microtype}  

\usepackage{blindtext}  
\usepackage{booktabs}  
\usepackage{enumitem}  
\usepackage{abstract}  
\usepackage{titlesec}  
\usepackage{fancyhdr}   
\usepackage{titling}  
\usepackage{hyperref}  

\setlist[itemize]{noitemsep}  
\linespread{1.05}  

\renewcommand{\abstractnamefont}{\normalfont\bfseries}  
\renewcommand{\abstracttextfont}{\normalfont\small\itshape}  

\renewcommand\thesection{\Roman{section}}  
\renewcommand\thesubsection{\roman{subsection}}     
\titleformat{\section}[block]{\large\scshape\centering}{\thesection.}{1em}{}  
\titleformat{\subsection}[block]{\large}{\thesubsection.}{1em}{}   

\pagestyle{fancy}  
\fancyhead{}  
\fancyfoot{} 
\fancyhead[C]{Jurnal KIP $\bullet$ May 2017 $\bullet$ Vol. IV, No. 3}  
\fancyfoot[RO,LE]{\thepage}  

\setlength{\droptitle}{-4\baselineskip}
\pretitle{\begin{center}\Large\bfseries} 
\posttitle{\end{center}} 

\renewcommand{\maketitlehookd}{
\begin{abstract}
\noindent \blindtext
\end{abstract}
}

\title{Judul Artikel}    
\author{%
\textsc{The writer} \\[1ex]  
\normalsize My University \\  
\normalsize \href{mailto:[email protected]}{[email protected]}  
}
\date{} 
\begin{document}
\maketitle
\section{Pendahuluan}
\blindtext

\end{document}

相关内容