GeneralNEED HELP?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
anhnn123
Posts: 2
Joined: Fri Jun 15, 2018 10:15 am

NEED HELP?

Post by anhnn123 »

Yet another problem with my revtex4 document. My document isn't compiling, because of the caption package. Yet, I need to change the revtex4-1 figures caption.

Here's a MWE showing the problem :

Code: Select all

\RequirePackage[l2tabu,orthodox]{nag}
    \documentclass[10pt,letterpaper,nofootinbib,notitlepage,tightenlines]{revtex4-1}
    \usepackage[letterpaper,margin=1in]{geometry}
    \usepackage[T1]{fontenc}
    \usepackage{lmodern}
    \usepackage[utf8]{inputenc}
    \usepackage[french]{babel}
     
    \usepackage[caption=false]{subfig}
    \captionsetup{margin=1cm,format=hang,font=small,format=plain,labelfont={bf,up},textfont={it}}
    \captionsetup[subfigure]{margin=0cm,font=small,format=plain,labelfont={bf,up},textfont={up}}
     
    \usepackage{graphicx}
    \usepackage{here}
     
    \usepackage[font=small,format=plain,labelfont=bf,textfont=up]{caption}
    \DeclareCaptionLabelSeparator{frenchsep}{ : }
    \captionsetup{labelsep=frenchsep}
     
    \begin{document}
     
    \section{Title}
     
    Bla bla bla :
    \bigskip
     
    	\begin{figure}[H]
    	\centering
    		\includegraphics[height=7cm]{figure.pdf}
    		\caption{Some text.}
    	\end{figure}
     
    Bla bla
     
    \end{document}
What should I do ?
Last edited by Stefan Kottwitz on Sat Jun 23, 2018 11:36 am, edited 1 time 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.

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

NEED HELP?

Post by Stefan Kottwitz »

This code compiles for me without any error. (Of cause I had to replace the image). I get:
revtex.png
revtex.png (8.04 KiB) Viewed 1115 times
Can you post your .log file here, as attachment? The "Attachments" link is below the text edit field, when writing a post.

Stefan
LaTeX.org admin
Post Reply