Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

1 Answer 1

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. 179 in the documentation.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.