error in memoir: Command newfloat already defined











up vote
5
down vote

favorite












Using this preamble:



documentclass[pdftex,11pt,a4paper,openany]{memoir}
usepackage[brazil]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{indentfirst}
usepackage{latexsym}
usepackage{amsmath,amssymb,amsfonts,wasysym}
usepackage[pdftex]{graphicx}
usepackage{wrapfig}
usepackage[left=3cm,right=2cm,top=3cm,bottom=3cm]{geometry}
usepackage{color}
usepackage[dvipsnames]{xcolor}
definecolor{darkgray}{gray}{0.3}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{3}
usepackage[pdftex, colorlinks=true, linkcolor=darkgray, citecolor=blue, urlcolor=blue]{hyperref}


TexMaker gives this error message:



! LaTeX Error: Command newfloat already defined.
Or name end... illegal, see p.192 of the manual.


Where is the problem?










share|improve this question
























  • Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it).
    – Caramdir
    Jul 21 '11 at 17:49






  • 3




    There's no error with the preamble you provided. If you are trying to load the package float afterwards, don't: memoir has its built-in mechanism for this. Never use the option pdftex.
    – egreg
    Jul 21 '11 at 18:04










  • Do you mean that I cant use memoir with pdftex?
    – Rodrigo Thomas
    Jul 21 '11 at 18:24






  • 1




    no, just that there is no reason to specify the pdftex option. Packages that respond to it will detect it by themselfs
    – daleif
    Jul 21 '11 at 18:51















up vote
5
down vote

favorite












Using this preamble:



documentclass[pdftex,11pt,a4paper,openany]{memoir}
usepackage[brazil]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{indentfirst}
usepackage{latexsym}
usepackage{amsmath,amssymb,amsfonts,wasysym}
usepackage[pdftex]{graphicx}
usepackage{wrapfig}
usepackage[left=3cm,right=2cm,top=3cm,bottom=3cm]{geometry}
usepackage{color}
usepackage[dvipsnames]{xcolor}
definecolor{darkgray}{gray}{0.3}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{3}
usepackage[pdftex, colorlinks=true, linkcolor=darkgray, citecolor=blue, urlcolor=blue]{hyperref}


TexMaker gives this error message:



! LaTeX Error: Command newfloat already defined.
Or name end... illegal, see p.192 of the manual.


Where is the problem?










share|improve this question
























  • Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it).
    – Caramdir
    Jul 21 '11 at 17:49






  • 3




    There's no error with the preamble you provided. If you are trying to load the package float afterwards, don't: memoir has its built-in mechanism for this. Never use the option pdftex.
    – egreg
    Jul 21 '11 at 18:04










  • Do you mean that I cant use memoir with pdftex?
    – Rodrigo Thomas
    Jul 21 '11 at 18:24






  • 1




    no, just that there is no reason to specify the pdftex option. Packages that respond to it will detect it by themselfs
    – daleif
    Jul 21 '11 at 18:51













up vote
5
down vote

favorite









up vote
5
down vote

favorite











Using this preamble:



documentclass[pdftex,11pt,a4paper,openany]{memoir}
usepackage[brazil]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{indentfirst}
usepackage{latexsym}
usepackage{amsmath,amssymb,amsfonts,wasysym}
usepackage[pdftex]{graphicx}
usepackage{wrapfig}
usepackage[left=3cm,right=2cm,top=3cm,bottom=3cm]{geometry}
usepackage{color}
usepackage[dvipsnames]{xcolor}
definecolor{darkgray}{gray}{0.3}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{3}
usepackage[pdftex, colorlinks=true, linkcolor=darkgray, citecolor=blue, urlcolor=blue]{hyperref}


TexMaker gives this error message:



! LaTeX Error: Command newfloat already defined.
Or name end... illegal, see p.192 of the manual.


Where is the problem?










share|improve this question















Using this preamble:



documentclass[pdftex,11pt,a4paper,openany]{memoir}
usepackage[brazil]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{indentfirst}
usepackage{latexsym}
usepackage{amsmath,amssymb,amsfonts,wasysym}
usepackage[pdftex]{graphicx}
usepackage{wrapfig}
usepackage[left=3cm,right=2cm,top=3cm,bottom=3cm]{geometry}
usepackage{color}
usepackage[dvipsnames]{xcolor}
definecolor{darkgray}{gray}{0.3}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{3}
usepackage[pdftex, colorlinks=true, linkcolor=darkgray, citecolor=blue, urlcolor=blue]{hyperref}


TexMaker gives this error message:



! LaTeX Error: Command newfloat already defined.
Or name end... illegal, see p.192 of the manual.


Where is the problem?







floats errors memoir






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 2 '11 at 13:56









doncherry

34.5k23134207




34.5k23134207










asked Jul 21 '11 at 17:31









Rodrigo Thomas

3412312




3412312












  • Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it).
    – Caramdir
    Jul 21 '11 at 17:49






  • 3




    There's no error with the preamble you provided. If you are trying to load the package float afterwards, don't: memoir has its built-in mechanism for this. Never use the option pdftex.
    – egreg
    Jul 21 '11 at 18:04










  • Do you mean that I cant use memoir with pdftex?
    – Rodrigo Thomas
    Jul 21 '11 at 18:24






  • 1




    no, just that there is no reason to specify the pdftex option. Packages that respond to it will detect it by themselfs
    – daleif
    Jul 21 '11 at 18:51


















  • Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it).
    – Caramdir
    Jul 21 '11 at 17:49






  • 3




    There's no error with the preamble you provided. If you are trying to load the package float afterwards, don't: memoir has its built-in mechanism for this. Never use the option pdftex.
    – egreg
    Jul 21 '11 at 18:04










  • Do you mean that I cant use memoir with pdftex?
    – Rodrigo Thomas
    Jul 21 '11 at 18:24






  • 1




    no, just that there is no reason to specify the pdftex option. Packages that respond to it will detect it by themselfs
    – daleif
    Jul 21 '11 at 18:51
















Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it).
– Caramdir
Jul 21 '11 at 17:49




Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it).
– Caramdir
Jul 21 '11 at 17:49




3




3




There's no error with the preamble you provided. If you are trying to load the package float afterwards, don't: memoir has its built-in mechanism for this. Never use the option pdftex.
– egreg
Jul 21 '11 at 18:04




There's no error with the preamble you provided. If you are trying to load the package float afterwards, don't: memoir has its built-in mechanism for this. Never use the option pdftex.
– egreg
Jul 21 '11 at 18:04












Do you mean that I cant use memoir with pdftex?
– Rodrigo Thomas
Jul 21 '11 at 18:24




Do you mean that I cant use memoir with pdftex?
– Rodrigo Thomas
Jul 21 '11 at 18:24




1




1




no, just that there is no reason to specify the pdftex option. Packages that respond to it will detect it by themselfs
– daleif
Jul 21 '11 at 18:51




no, just that there is no reason to specify the pdftex option. Packages that respond to it will detect it by themselfs
– daleif
Jul 21 '11 at 18:51










2 Answers
2






active

oldest

votes

















up vote
7
down vote













There's no error with the preamble you provided. If you are trying to load the package float afterwards, don't: memoir has its built-in mechanism for defining new floating environments.



See p. 169 in the documentation.






share|improve this answer






























    up vote
    2
    down vote













    Just for the record, I had the same problem, using memoir and floatrow together. Removing pdflatex from the preamble did not solve it.



    I compiled the document successfully by adding the following line before loading floatrow:



    letnewfloatundefined
    usepackage{floatrow}


    Thanks to Joseph Wright.






    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',
      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%2f23726%2ferror-in-memoir-command-newfloat-already-defined%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








      up vote
      7
      down vote













      There's no error with the preamble you provided. If you are trying to load the package float afterwards, don't: memoir has its built-in mechanism for defining new floating environments.



      See p. 169 in the documentation.






      share|improve this answer



























        up vote
        7
        down vote













        There's no error with the preamble you provided. If you are trying to load the package float afterwards, don't: memoir has its built-in mechanism for defining new floating environments.



        See p. 169 in the documentation.






        share|improve this answer

























          up vote
          7
          down vote










          up vote
          7
          down vote









          There's no error with the preamble you provided. If you are trying to load the package float afterwards, don't: memoir has its built-in mechanism for defining new floating environments.



          See p. 169 in the documentation.






          share|improve this answer














          There's no error with the preamble you provided. If you are trying to load the package float afterwards, don't: memoir has its built-in mechanism for defining new floating environments.



          See p. 169 in the documentation.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 days ago









          Leone

          72




          72










          answered Aug 8 '11 at 17:52









          egreg

          698k8518573126




          698k8518573126






















              up vote
              2
              down vote













              Just for the record, I had the same problem, using memoir and floatrow together. Removing pdflatex from the preamble did not solve it.



              I compiled the document successfully by adding the following line before loading floatrow:



              letnewfloatundefined
              usepackage{floatrow}


              Thanks to Joseph Wright.






              share|improve this answer

























                up vote
                2
                down vote













                Just for the record, I had the same problem, using memoir and floatrow together. Removing pdflatex from the preamble did not solve it.



                I compiled the document successfully by adding the following line before loading floatrow:



                letnewfloatundefined
                usepackage{floatrow}


                Thanks to Joseph Wright.






                share|improve this answer























                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  Just for the record, I had the same problem, using memoir and floatrow together. Removing pdflatex from the preamble did not solve it.



                  I compiled the document successfully by adding the following line before loading floatrow:



                  letnewfloatundefined
                  usepackage{floatrow}


                  Thanks to Joseph Wright.






                  share|improve this answer












                  Just for the record, I had the same problem, using memoir and floatrow together. Removing pdflatex from the preamble did not solve it.



                  I compiled the document successfully by adding the following line before loading floatrow:



                  letnewfloatundefined
                  usepackage{floatrow}


                  Thanks to Joseph Wright.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 25 '15 at 22:20









                  iled

                  19016




                  19016






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f23726%2ferror-in-memoir-command-newfloat-already-defined%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

                      Accessing regular linux commands in Huawei's Dopra Linux

                      Can't connect RFCOMM socket: Host is down

                      Kernel panic - not syncing: Fatal Exception in Interrupt