Adding table in list of table
I want to add table and figure in list of table and figure in latex. Bur the result is not showing properly.
I want the result to be like Figure 1.1 instead of just 1.1. Rest all should be same. I am also sharing my code with it.
table-of-contents
add a comment |
I want to add table and figure in list of table and figure in latex. Bur the result is not showing properly.
I want the result to be like Figure 1.1 instead of just 1.1. Rest all should be same. I am also sharing my code with it.
table-of-contents
2
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass{...}and ending withend{document}.
– leandriis
Jan 16 at 19:05
2
Sorry, this is confusing. You sayFigure 1.1shall appear in the list of tables?
– Christian Hupfer
Jan 16 at 19:34
add a comment |
I want to add table and figure in list of table and figure in latex. Bur the result is not showing properly.
I want the result to be like Figure 1.1 instead of just 1.1. Rest all should be same. I am also sharing my code with it.
table-of-contents
I want to add table and figure in list of table and figure in latex. Bur the result is not showing properly.
I want the result to be like Figure 1.1 instead of just 1.1. Rest all should be same. I am also sharing my code with it.
table-of-contents
table-of-contents
edited Jan 16 at 18:34
Troy
10.9k62367
10.9k62367
asked Jan 16 at 18:29
HimaniBaliHimaniBali
1
1
2
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass{...}and ending withend{document}.
– leandriis
Jan 16 at 19:05
2
Sorry, this is confusing. You sayFigure 1.1shall appear in the list of tables?
– Christian Hupfer
Jan 16 at 19:34
add a comment |
2
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass{...}and ending withend{document}.
– leandriis
Jan 16 at 19:05
2
Sorry, this is confusing. You sayFigure 1.1shall appear in the list of tables?
– Christian Hupfer
Jan 16 at 19:34
2
2
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass{...} and ending with end{document}.– leandriis
Jan 16 at 19:05
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass{...} and ending with end{document}.– leandriis
Jan 16 at 19:05
2
2
Sorry, this is confusing. You say
Figure 1.1 shall appear in the list of tables?– Christian Hupfer
Jan 16 at 19:34
Sorry, this is confusing. You say
Figure 1.1 shall appear in the list of tables?– Christian Hupfer
Jan 16 at 19:34
add a comment |
2 Answers
2
active
oldest
votes
Use the tocloft package (> texdoc tocloft to see the manual). For example, after eliminating any typos:
documentclass% ???
usepackage{tocloft}
newlength{mylen} % a scratch length
renewcommand{cftfigpresnum}{Figure } % put Figure before figure number
settowidth{mylen}{cftfigpresnum} % space for Figure text
addtolength{cftfignumwidth}{mylen} % need more space for Figure + number
% and similarly for table entries
renewcommand{cfttabpresnum}{Table }
settowidth{mylen}{cfttabpresnum}
addtolength{cfttabnumwidth}{mylen}
% and whatever else for the rest of your document.
The manual explains the above code.
add a comment |
Suggestion using package tocbasic with a standard class:
documentclass{report}
usepackage{tocbasic}[2018/12/30]
DeclareTOCStyleEntries[
indent=0pt,
numsep=1em,
dynnumwidth
]{tocline}{figure,table}
DeclareTOCStyleEntry[
entrynumberformat=entryprefix{figurename}
]{tocline}{figure}
DeclareTOCStyleEntry[
entrynumberformat=entryprefix{tablename}
]{tocline}{table}
newcommand*entryprefix[2]{#1 #2}
begin{document}
listoffigures
chapter{Foo}
begin{figure}[htb]
centeringrule{5cm}{1cm}
caption{First Caption}
end{figure}
begin{figure}[htb]
centeringrule{5cm}{1cm}
caption{Second Caption}
end{figure}
end{document}
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470422%2fadding-table-in-list-of-table%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Use the tocloft package (> texdoc tocloft to see the manual). For example, after eliminating any typos:
documentclass% ???
usepackage{tocloft}
newlength{mylen} % a scratch length
renewcommand{cftfigpresnum}{Figure } % put Figure before figure number
settowidth{mylen}{cftfigpresnum} % space for Figure text
addtolength{cftfignumwidth}{mylen} % need more space for Figure + number
% and similarly for table entries
renewcommand{cfttabpresnum}{Table }
settowidth{mylen}{cfttabpresnum}
addtolength{cfttabnumwidth}{mylen}
% and whatever else for the rest of your document.
The manual explains the above code.
add a comment |
Use the tocloft package (> texdoc tocloft to see the manual). For example, after eliminating any typos:
documentclass% ???
usepackage{tocloft}
newlength{mylen} % a scratch length
renewcommand{cftfigpresnum}{Figure } % put Figure before figure number
settowidth{mylen}{cftfigpresnum} % space for Figure text
addtolength{cftfignumwidth}{mylen} % need more space for Figure + number
% and similarly for table entries
renewcommand{cfttabpresnum}{Table }
settowidth{mylen}{cfttabpresnum}
addtolength{cfttabnumwidth}{mylen}
% and whatever else for the rest of your document.
The manual explains the above code.
add a comment |
Use the tocloft package (> texdoc tocloft to see the manual). For example, after eliminating any typos:
documentclass% ???
usepackage{tocloft}
newlength{mylen} % a scratch length
renewcommand{cftfigpresnum}{Figure } % put Figure before figure number
settowidth{mylen}{cftfigpresnum} % space for Figure text
addtolength{cftfignumwidth}{mylen} % need more space for Figure + number
% and similarly for table entries
renewcommand{cfttabpresnum}{Table }
settowidth{mylen}{cfttabpresnum}
addtolength{cfttabnumwidth}{mylen}
% and whatever else for the rest of your document.
The manual explains the above code.
Use the tocloft package (> texdoc tocloft to see the manual). For example, after eliminating any typos:
documentclass% ???
usepackage{tocloft}
newlength{mylen} % a scratch length
renewcommand{cftfigpresnum}{Figure } % put Figure before figure number
settowidth{mylen}{cftfigpresnum} % space for Figure text
addtolength{cftfignumwidth}{mylen} % need more space for Figure + number
% and similarly for table entries
renewcommand{cfttabpresnum}{Table }
settowidth{mylen}{cfttabpresnum}
addtolength{cfttabnumwidth}{mylen}
% and whatever else for the rest of your document.
The manual explains the above code.
answered Jan 16 at 19:16
Peter WilsonPeter Wilson
8,31211432
8,31211432
add a comment |
add a comment |
Suggestion using package tocbasic with a standard class:
documentclass{report}
usepackage{tocbasic}[2018/12/30]
DeclareTOCStyleEntries[
indent=0pt,
numsep=1em,
dynnumwidth
]{tocline}{figure,table}
DeclareTOCStyleEntry[
entrynumberformat=entryprefix{figurename}
]{tocline}{figure}
DeclareTOCStyleEntry[
entrynumberformat=entryprefix{tablename}
]{tocline}{table}
newcommand*entryprefix[2]{#1 #2}
begin{document}
listoffigures
chapter{Foo}
begin{figure}[htb]
centeringrule{5cm}{1cm}
caption{First Caption}
end{figure}
begin{figure}[htb]
centeringrule{5cm}{1cm}
caption{Second Caption}
end{figure}
end{document}
add a comment |
Suggestion using package tocbasic with a standard class:
documentclass{report}
usepackage{tocbasic}[2018/12/30]
DeclareTOCStyleEntries[
indent=0pt,
numsep=1em,
dynnumwidth
]{tocline}{figure,table}
DeclareTOCStyleEntry[
entrynumberformat=entryprefix{figurename}
]{tocline}{figure}
DeclareTOCStyleEntry[
entrynumberformat=entryprefix{tablename}
]{tocline}{table}
newcommand*entryprefix[2]{#1 #2}
begin{document}
listoffigures
chapter{Foo}
begin{figure}[htb]
centeringrule{5cm}{1cm}
caption{First Caption}
end{figure}
begin{figure}[htb]
centeringrule{5cm}{1cm}
caption{Second Caption}
end{figure}
end{document}
add a comment |
Suggestion using package tocbasic with a standard class:
documentclass{report}
usepackage{tocbasic}[2018/12/30]
DeclareTOCStyleEntries[
indent=0pt,
numsep=1em,
dynnumwidth
]{tocline}{figure,table}
DeclareTOCStyleEntry[
entrynumberformat=entryprefix{figurename}
]{tocline}{figure}
DeclareTOCStyleEntry[
entrynumberformat=entryprefix{tablename}
]{tocline}{table}
newcommand*entryprefix[2]{#1 #2}
begin{document}
listoffigures
chapter{Foo}
begin{figure}[htb]
centeringrule{5cm}{1cm}
caption{First Caption}
end{figure}
begin{figure}[htb]
centeringrule{5cm}{1cm}
caption{Second Caption}
end{figure}
end{document}
Suggestion using package tocbasic with a standard class:
documentclass{report}
usepackage{tocbasic}[2018/12/30]
DeclareTOCStyleEntries[
indent=0pt,
numsep=1em,
dynnumwidth
]{tocline}{figure,table}
DeclareTOCStyleEntry[
entrynumberformat=entryprefix{figurename}
]{tocline}{figure}
DeclareTOCStyleEntry[
entrynumberformat=entryprefix{tablename}
]{tocline}{table}
newcommand*entryprefix[2]{#1 #2}
begin{document}
listoffigures
chapter{Foo}
begin{figure}[htb]
centeringrule{5cm}{1cm}
caption{First Caption}
end{figure}
begin{figure}[htb]
centeringrule{5cm}{1cm}
caption{Second Caption}
end{figure}
end{document}
answered Jan 17 at 13:20
esddesdd
58.9k34590
58.9k34590
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470422%2fadding-table-in-list-of-table%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
2
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass{...}and ending withend{document}.– leandriis
Jan 16 at 19:05
2
Sorry, this is confusing. You say
Figure 1.1shall appear in the list of tables?– Christian Hupfer
Jan 16 at 19:34