Adding table in list of table












-1















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.enter image description here










share|improve this question




















  • 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






  • 2





    Sorry, this is confusing. You say Figure 1.1 shall appear in the list of tables?

    – Christian Hupfer
    Jan 16 at 19:34
















-1















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.enter image description here










share|improve this question




















  • 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






  • 2





    Sorry, this is confusing. You say Figure 1.1 shall appear in the list of tables?

    – Christian Hupfer
    Jan 16 at 19:34














-1












-1








-1








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.enter image description here










share|improve this question
















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.enter image description here







table-of-contents






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 with documentclass{...} and ending with end{document}.

    – leandriis
    Jan 16 at 19:05






  • 2





    Sorry, this is confusing. You say Figure 1.1 shall appear in the list of tables?

    – Christian Hupfer
    Jan 16 at 19:34














  • 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






  • 2





    Sorry, this is confusing. You say Figure 1.1 shall 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










2 Answers
2






active

oldest

votes


















1














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.






share|improve this answer































    0














    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}





    share|improve this answer























      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%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









      1














      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.






      share|improve this answer




























        1














        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.






        share|improve this answer


























          1












          1








          1







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 16 at 19:16









          Peter WilsonPeter Wilson

          8,31211432




          8,31211432























              0














              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}





              share|improve this answer




























                0














                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}





                share|improve this answer


























                  0












                  0








                  0







                  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}





                  share|improve this answer













                  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}






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 17 at 13:20









                  esddesdd

                  58.9k34590




                  58.9k34590






























                      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%2f470422%2fadding-table-in-list-of-table%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 send String Array data to Server using php in android

                      Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                      Is anime1.com a legal site for watching anime?