Text FormattingWhy trivfloat wants to speak french???

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
robertoneto123
Posts: 13
Joined: Thu Sep 25, 2008 1:20 pm

Why trivfloat wants to speak french???

Post by robertoneto123 »

Hello,

First of all, I am not doing a french document.

My problem: When I put

\usepackage[utf8]{inputenc}
\usepackage{trivfloat}
\usepackage[brazil]{babel}
\usepackage[alf,abnt-etal-list=0,abnt-etal-cite=2,abnt-year-extra-label=yes,abnt-etal-text=emph]{abntcite}
\usepackage{abnt-alf}
(...)

I got the error:

projetoFinal.tex:132:Package babel Error: You haven't defined the language french yet. \begin{document}

When I comment the \usepackage{trivfloat} line, everything works fine.

Does anyone know what is happening?

Thanks!

Roberto

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Why trivfloat wants to speak french???

Post by Stefan Kottwitz »

Hi Roberto,

if you would post a minimal working example instead of just that piece of code we could test and examine the problem.

I've tried your code, I had to comment out the packages abntcite and abnt-alf in order to make it compilable and of course I had to build a document around it using a class - there was no babel error.

Perhaps delete your .aux file and compile again.

Stefan
LaTeX.org admin
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Why trivfloat wants to speak french???

Post by josephwright »

As the author of trivfloat, I can't see why this is happening. As Stefan says, a full working example is needed here.
Joseph Wright
robertoneto123
Posts: 13
Joined: Thu Sep 25, 2008 1:20 pm

Re: Why trivfloat wants to speak french???

Post by robertoneto123 »

Thanks!

I attached a minimial example.

By the way, I found that if I put \usepackage[brazil,french]{babel} it does compile.

But is strange, since nothing in my doc is in french...
Attachments
testex.zip
(46 KiB) Downloaded 398 times
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Why trivfloat wants to speak french???

Post by josephwright »

Your example needs abnt.cls, which is missing from the zip file (standard files such as booktabs, trivfloat itself, etc., are not really necessary!)
Joseph Wright
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Why trivfloat wants to speak french???

Post by josephwright »

Phew, I found all of the necessary files on the Internet. If you start with a clean folder (delete all aux files, etc.) then all is fine. You might get an odd error if there are old aux files about delete all of them before trying anything. \listfiles gives me:

Code: Select all

*File List*
abnt.cls 2006/09/09 v1.32 Classe abnt (NBR6024, NBR6027, NBR6028, NBR147
24)
cvs-id.def
ifthen.sty 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
calc.sty 2005/08/06 v4.2 Infix arithmetic (KKT,FJ)
multicol.sty 2006/05/18 v1.6g multicolumn formatting (FMi)
abntex-abrev.sty 2005/11/14 v1.4 Abreviacoes
cvs-id.def
nbr10522-1988.def 2003/10/13 v1.2 Abreviacoes bibliograficas (NBR10522:1988)
cvs-id.def
abntex-abrev-pt_BR.def 2005/11/14 v1.3 definicao de abntex-abrev, traducao d
e termos en_US/pt_BR
cvs-id.def
abntex-text.sty 2005/11/14 v1.1 abnTeX text replacements
cvs-id.def
abntex-text-pt_BR.def 2005/12/21 v1.2 Definicao de nomes em Portugues/Brasil
(pt_BR)
cvs-id.def
abntex-default-design.sty 2005/06/22 v1.2 Definicoes de design padrao do abn
tex
cvs-id.def
relsize.sty 2003/07/04 ver 3.1
nbr6027-1989.def
nbr14724-2001.def
report.cls 2005/09/16 v1.4f Standard LaTeX document class
size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
setspace.sty 2000/12/01 6.7 Contributed and Supported LaTeX2e package
mathptmx.sty 2005/04/12 PSNFSS-v9.2a Times w/ Math, improved (SPQR, WaS)
helvet.sty 2005/04/12 PSNFSS-v9.2a (WaS)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
indentfirst.sty 1995/11/23 v1.03 Indent first paragraph (DPC)
inputenc.sty 2006/05/05 v1.1b Input encoding file
utf8.def 2006/03/30 v1.1i UTF-8 support for inputenc
t1enc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc
ot1enc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc
omsenc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc
babel.sty 2008/07/06 v3.8l The Babel package
bblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configuration
portuges.ldf 2008/03/18 v1.2q Portuguese support from the babel system
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Joseph Wright
LRMAAX
Posts: 1
Joined: Mon Nov 20, 2023 3:59 am

Why trivfloat wants to speak french???

Post by LRMAAX »

This problem is still happening and removing aux files doesn't help.

In case anyone arrives here without luck, I've put some details here: https://tex.stackexchange.com/questions ... ing-french
Post Reply