Reference 'fig:01_01' on page 1 undefined












1















I'm writing my thesis and I've founded some problems with refer a figure. For example, in the below code, I have a main.tex and I call other chapters with input or include (e.g. ch1). In the "ch1" I inserted a figure and ref before, when I compile, the reference shows "Figure ??" with questions marks instead of the number of the figure. I already checked if keep the same name in the ref and label. Please, I appreciate any help with this.



Note: May be the problem is works with "main.tex", since I tried writting the chapter in the same archive, and I haven't problem, I don't know why. I would like works with the structured form.



documentclass[10pt,oneside,onecolumn]{book}

usepackage{geometry} %margenes

usepackage[utf8]{inputenc} %tildes

usepackage{setspace} %paquete para interlineado

usepackage{helvet} % para tipo de letra

usepackage{ragged2e} %alineamiento del texto horizontal

usepackage{indentfirst} %borrar o establecer sangrías

usepackage{graphicx} %imágenes

usepackage[T1]{fontenc} %LaTeX asocia el caracter "228" y lo transforma en el requerido

usepackage{fancyhdr} %formatos paginas header & footer

usepackage{imakeidx}

usepackage{titlesec} %editor de titulo

usepackage[labelfont=bf]{caption} % poner negrita la palabra "figura" en imágenes

usepackage{subcaption} %Crear subfiguras

usepackage{caption} %Crear subfiguras


geometry{letterpaper,
total={151mm,214mm},
left=40mm,
top=40mm,
}

begin{document}

input{ch1}
input{ch2}

end{document}

%%%%%%

chapter{Large{ %tamaño 14
textbf{parindent=0pt % negrita
Introduccion}
}
}
normalsize{parindent=0pt
Este es el cap'itulo n'umero uno de esta tedioso y larga tesis.
}

section{Cualquier cosa}
parindent=0pt

Hola Figure~ref{fig:01_01}

begin{figure}[ht]
centering

includegraphics[scale=0.2]{Imagenes/01_01}
caption{Comite de ciencia 2012.label{fig:01_01}}

end{figure}









share|improve this question




















  • 1





    Have you tried compiling your document twice?

    – JouleV
    Feb 11 at 0:42











  • Off-topic: (i) If you didn't load the indentfirst package, you wouldn't have to supply all those parindent=0pt (=noindent) instructions after chapter- and section-level headers. (ii) Large is a switch, i.e., it doesn't take an argument encased in curly braces.

    – Mico
    Feb 11 at 0:51


















1















I'm writing my thesis and I've founded some problems with refer a figure. For example, in the below code, I have a main.tex and I call other chapters with input or include (e.g. ch1). In the "ch1" I inserted a figure and ref before, when I compile, the reference shows "Figure ??" with questions marks instead of the number of the figure. I already checked if keep the same name in the ref and label. Please, I appreciate any help with this.



Note: May be the problem is works with "main.tex", since I tried writting the chapter in the same archive, and I haven't problem, I don't know why. I would like works with the structured form.



documentclass[10pt,oneside,onecolumn]{book}

usepackage{geometry} %margenes

usepackage[utf8]{inputenc} %tildes

usepackage{setspace} %paquete para interlineado

usepackage{helvet} % para tipo de letra

usepackage{ragged2e} %alineamiento del texto horizontal

usepackage{indentfirst} %borrar o establecer sangrías

usepackage{graphicx} %imágenes

usepackage[T1]{fontenc} %LaTeX asocia el caracter "228" y lo transforma en el requerido

usepackage{fancyhdr} %formatos paginas header & footer

usepackage{imakeidx}

usepackage{titlesec} %editor de titulo

usepackage[labelfont=bf]{caption} % poner negrita la palabra "figura" en imágenes

usepackage{subcaption} %Crear subfiguras

usepackage{caption} %Crear subfiguras


geometry{letterpaper,
total={151mm,214mm},
left=40mm,
top=40mm,
}

begin{document}

input{ch1}
input{ch2}

end{document}

%%%%%%

chapter{Large{ %tamaño 14
textbf{parindent=0pt % negrita
Introduccion}
}
}
normalsize{parindent=0pt
Este es el cap'itulo n'umero uno de esta tedioso y larga tesis.
}

section{Cualquier cosa}
parindent=0pt

Hola Figure~ref{fig:01_01}

begin{figure}[ht]
centering

includegraphics[scale=0.2]{Imagenes/01_01}
caption{Comite de ciencia 2012.label{fig:01_01}}

end{figure}









share|improve this question




















  • 1





    Have you tried compiling your document twice?

    – JouleV
    Feb 11 at 0:42











  • Off-topic: (i) If you didn't load the indentfirst package, you wouldn't have to supply all those parindent=0pt (=noindent) instructions after chapter- and section-level headers. (ii) Large is a switch, i.e., it doesn't take an argument encased in curly braces.

    – Mico
    Feb 11 at 0:51
















1












1








1








I'm writing my thesis and I've founded some problems with refer a figure. For example, in the below code, I have a main.tex and I call other chapters with input or include (e.g. ch1). In the "ch1" I inserted a figure and ref before, when I compile, the reference shows "Figure ??" with questions marks instead of the number of the figure. I already checked if keep the same name in the ref and label. Please, I appreciate any help with this.



Note: May be the problem is works with "main.tex", since I tried writting the chapter in the same archive, and I haven't problem, I don't know why. I would like works with the structured form.



documentclass[10pt,oneside,onecolumn]{book}

usepackage{geometry} %margenes

usepackage[utf8]{inputenc} %tildes

usepackage{setspace} %paquete para interlineado

usepackage{helvet} % para tipo de letra

usepackage{ragged2e} %alineamiento del texto horizontal

usepackage{indentfirst} %borrar o establecer sangrías

usepackage{graphicx} %imágenes

usepackage[T1]{fontenc} %LaTeX asocia el caracter "228" y lo transforma en el requerido

usepackage{fancyhdr} %formatos paginas header & footer

usepackage{imakeidx}

usepackage{titlesec} %editor de titulo

usepackage[labelfont=bf]{caption} % poner negrita la palabra "figura" en imágenes

usepackage{subcaption} %Crear subfiguras

usepackage{caption} %Crear subfiguras


geometry{letterpaper,
total={151mm,214mm},
left=40mm,
top=40mm,
}

begin{document}

input{ch1}
input{ch2}

end{document}

%%%%%%

chapter{Large{ %tamaño 14
textbf{parindent=0pt % negrita
Introduccion}
}
}
normalsize{parindent=0pt
Este es el cap'itulo n'umero uno de esta tedioso y larga tesis.
}

section{Cualquier cosa}
parindent=0pt

Hola Figure~ref{fig:01_01}

begin{figure}[ht]
centering

includegraphics[scale=0.2]{Imagenes/01_01}
caption{Comite de ciencia 2012.label{fig:01_01}}

end{figure}









share|improve this question
















I'm writing my thesis and I've founded some problems with refer a figure. For example, in the below code, I have a main.tex and I call other chapters with input or include (e.g. ch1). In the "ch1" I inserted a figure and ref before, when I compile, the reference shows "Figure ??" with questions marks instead of the number of the figure. I already checked if keep the same name in the ref and label. Please, I appreciate any help with this.



Note: May be the problem is works with "main.tex", since I tried writting the chapter in the same archive, and I haven't problem, I don't know why. I would like works with the structured form.



documentclass[10pt,oneside,onecolumn]{book}

usepackage{geometry} %margenes

usepackage[utf8]{inputenc} %tildes

usepackage{setspace} %paquete para interlineado

usepackage{helvet} % para tipo de letra

usepackage{ragged2e} %alineamiento del texto horizontal

usepackage{indentfirst} %borrar o establecer sangrías

usepackage{graphicx} %imágenes

usepackage[T1]{fontenc} %LaTeX asocia el caracter "228" y lo transforma en el requerido

usepackage{fancyhdr} %formatos paginas header & footer

usepackage{imakeidx}

usepackage{titlesec} %editor de titulo

usepackage[labelfont=bf]{caption} % poner negrita la palabra "figura" en imágenes

usepackage{subcaption} %Crear subfiguras

usepackage{caption} %Crear subfiguras


geometry{letterpaper,
total={151mm,214mm},
left=40mm,
top=40mm,
}

begin{document}

input{ch1}
input{ch2}

end{document}

%%%%%%

chapter{Large{ %tamaño 14
textbf{parindent=0pt % negrita
Introduccion}
}
}
normalsize{parindent=0pt
Este es el cap'itulo n'umero uno de esta tedioso y larga tesis.
}

section{Cualquier cosa}
parindent=0pt

Hola Figure~ref{fig:01_01}

begin{figure}[ht]
centering

includegraphics[scale=0.2]{Imagenes/01_01}
caption{Comite de ciencia 2012.label{fig:01_01}}

end{figure}






floats ref






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 10 at 23:36









Kurt

37.9k847162




37.9k847162










asked Feb 10 at 23:31









JVeraJVera

61




61








  • 1





    Have you tried compiling your document twice?

    – JouleV
    Feb 11 at 0:42











  • Off-topic: (i) If you didn't load the indentfirst package, you wouldn't have to supply all those parindent=0pt (=noindent) instructions after chapter- and section-level headers. (ii) Large is a switch, i.e., it doesn't take an argument encased in curly braces.

    – Mico
    Feb 11 at 0:51
















  • 1





    Have you tried compiling your document twice?

    – JouleV
    Feb 11 at 0:42











  • Off-topic: (i) If you didn't load the indentfirst package, you wouldn't have to supply all those parindent=0pt (=noindent) instructions after chapter- and section-level headers. (ii) Large is a switch, i.e., it doesn't take an argument encased in curly braces.

    – Mico
    Feb 11 at 0:51










1




1





Have you tried compiling your document twice?

– JouleV
Feb 11 at 0:42





Have you tried compiling your document twice?

– JouleV
Feb 11 at 0:42













Off-topic: (i) If you didn't load the indentfirst package, you wouldn't have to supply all those parindent=0pt (=noindent) instructions after chapter- and section-level headers. (ii) Large is a switch, i.e., it doesn't take an argument encased in curly braces.

– Mico
Feb 11 at 0:51







Off-topic: (i) If you didn't load the indentfirst package, you wouldn't have to supply all those parindent=0pt (=noindent) instructions after chapter- and section-level headers. (ii) Large is a switch, i.e., it doesn't take an argument encased in curly braces.

– Mico
Feb 11 at 0:51












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474254%2freference-fig01-01-on-page-1-undefined%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474254%2freference-fig01-01-on-page-1-undefined%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents