AfonsoPortuga / abntex2

Automatically exported from code.google.com/p/abntex2
1 stars 0 forks source link

Incompatibilidade com Circuitikz #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Estou utilizando o modelo canônico para relatórios técnicos, e um simples
diagrama com circuitikz simplesmente não compila:

\begin{circuitikz} \draw
(0,0) to[battery] (0,4)
      to[ammeter] (4,4) -- (4,0)
      to[lamp] (0,0)
;
\end{circuitikz}

Eu utilizo o sharelatex como editor. Alguem já teve problemas com
circuitikz?

Estes são os erros resultantes:

Package tikz Error: + or - expected.

See the tikz package documentation for explanation. Type H <return> for 
immediate help. ... l.7 (0,0) to[battery] (0,4) This error message was 
generated by an \errmessage command, so I can't give any explicit help. Pretend 
that you're Hercule Poirot: Examine all clues, and deduce the truth by order 
and method.
03resultados/resultados.tex, line 7

Package tikz Error: Giving up on this path. Did you forget a semicolon?.

See the tikz package documentation for explanation. Type H <return> for 
immediate help. ... l.7 (0,0) to[battery] (0,4) (That was another \errmessage.)
00main.tex, line 7

Undefined control sequence.

\pgf@let@token ...ape, rotate=\pgf@circ@direction , yscale=\ctikzvalof {mirr... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

<argument> \pgf@circ@direction l.7 (0,0) to[battery] (0,4) The control sequence 
at the end of the top line of your error message was never \def'ed. If you have 
misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., 
`I\hbox'). Otherwise just continue, and I'll forget about whatever was 
undefined.
00main.tex, line 7

Missing number, treated as zero.

<to be read again> p l.7 (0,0) to[battery] (0,4) A number should have been 
here; I inserted `0'. (If you can't figure out why I needed to see a number, 
look up `weird error' in the index to The TeXbook.)
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawsmartlabel ...um \pgfcircmathresult > 20 \ifnum \pgfcircmathre... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Missing number, treated as zero.

<to be read again> > l.7 (0,0) to[battery] (0,4) A number should have been 
here; I inserted `0'. (If you can't figure out why I needed to see a number, 
look up `weird error' in the index to The TeXbook.)
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawreglabel ...chor = \pgf@circ@labanc ] at (\ctikzvalof {bipole/... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawreglabel ...le/name}.\pgf@circ@temp ) {\pgf@circ@finallabel {}} 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawvoltage ...mals \pgf@circ@direction \pgf@nil } \par \ifnum \pg... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Argument of \pgf@circ@stripdecimals has an extra }.

<inserted text> \par l.7 (0,0) to[battery] (0,4) I've run across a `}' that 
doesn't seem to match anything. For example, `\def\a#1{...}' and `\a}' would 
produce this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the root of 
the problem. But if your `}' was spurious, just type `2' and it will go away.
00main.tex, line 7

Paragraph ended before \pgf@circ@stripdecimals was complete.

<to be read again> \par l.7 (0,0) to[battery] (0,4) I suspect you've forgotten 
a `}', causing me to apply this control sequence to too much text. How can we 
recover? My plan is to forget the whole thing and hope for the best.
00main.tex, line 7

Missing number, treated as zero.

<to be read again> \par l.7 (0,0) to[battery] (0,4) A number should have been 
here; I inserted `0'. (If you can't figure out why I needed to see a number, 
look up `weird error' in the index to The TeXbook.)
00main.tex, line 7

Missing = inserted for \ifnum.

<to be read again> \par l.7 (0,0) to[battery] (0,4) I was expecting to see `<', 
`=', or `>'. Didn't.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawvoltagegeneric ... \distacefromnode ! (\ctikzvalof {bipole/nam... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Missing number, treated as zero.

<to be read again> ! l.7 (0,0) to[battery] (0,4) A number should have been 
here; I inserted `0'. (If you can't figure out why I needed to see a number, 
look up `weird error' in the index to The TeXbook.)
00main.tex, line 7

Illegal unit of measure (pt inserted).

<to be read again> ! l.7 (0,0) to[battery] (0,4) Dimensions can be in units of 
em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one! 
I'll assume that you meant to say pt, for printer's points. To recover 
gracefully from this error, it's best to delete the erroneous units; e.g., type 
`2' to delete two letters. (See Chapter 27 of The TeXbook.)
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawvoltagegeneric ...irc@voltage@angle :(\ctikzvalof {bipole/name... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawvoltagegeneric ...irc@voltage@angle : (\ctikzvalof {bipole/nam... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawvoltagegeneric ....center) ! \bumpb ! (\ctikzvalof {bipole/nam... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawvoltage ...pole@voltage@label@where ) coordinate (Vlab) at ($(... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawvoltage ...@europeanvoltage \eudist \else \ctikzvalof {voltage... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawvoltage ...pole@voltage@label@where )$) node [anchor=\pgf@circ... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawvoltage ...ole@voltage@label@anchor , inner sep=0] at (Vlab) {... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawcurrent ...fff {\pgf@circ@direction } \def \pgfcircmathresult ... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawcurrent ...pole@current@label@where ) node [anchor=\pgf@circ@d... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\pgf@circ@drawcurrent ...de [anchor=\pgf@circ@dir ] { \pgf@circ@finallabel {... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 7

Undefined control sequence.

\tikz@invoke@collected@onpath ...mmand \tikz@temp \pgf@stop \tikz@node@is@a@... 
l.7 (0,0) to[battery] (0,4) The control sequence at the end of the top line of 
your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 8

Package tikz Error: + or - expected.

See the tikz package documentation for explanation. Type H <return> for 
immediate help. ... l.8 to[ammeter] (4,4) -- (4,0) (That was another 
\errmessage.)
00main.tex, line 8

Package tikz Error: Giving up on this path. Did you forget a semicolon?.

See the tikz package documentation for explanation. Type H <return> for 
immediate help. ... l.8 to[ammeter] (4,4) -- (4,0) (That was another 
\errmessage.) Missing character: There is no ) in font nullfont! Missing 
character: There is no n in font nullfont! Missing character: There is no o in 
font nullfont! Missing character: There is no d in font nullfont! Missing 
character: There is no e in font nullfont! Missing character: There is no [ in 
font nullfont! Missing character: There is no a in font nullfont! Missing 
character: There is no m in font nullfont! Missing character: There is no m in 
font nullfont! Missing character: There is no e in font nullfont! Missing 
character: There is no t in font nullfont! Missing character: There is no e in 
font nullfont! Missing character: There is no r in font nullfont! Missing 
character: There is no s in font nullfont! Missing character: There is no h in 
font nullfont! Missing character: There is no a in font nullfont! Missing 
character: There is no p in font nullfont! Missing character: There is no e in 
font nullfont! Missing character: There is no , in font nullfont! Missing 
character: There is no r in font nullfont! Missing character: There is no o in 
font nullfont! Missing character: There is no t in font nullfont! Missing 
character: There is no a in font nullfont! Missing character: There is no t in 
font nullfont! Missing character: There is no e in font nullfont! Missing 
character: There is no = in font nullfont! ! Undefined control sequence. 
\pgf@let@token ...ape, rotate=\pgf@circ@direction , yscale=\ctikzvalof {mirr... 
l.8 to[ammeter] (4,4) -- (4,0) The control sequence at the end of the top line 
of your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined.
00main.tex, line 8

Undefined control sequence.

<argument> \pgf@circ@direction l.8 to[ammeter] (4,4) -- (4,0) The control 
sequence at the end of the top line of your error message was never \def'ed. If 
you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling 
(e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was 
undefined. ! Missing number, treated as zero. <to be read again> p l.8 
to[ammeter] (4,4) -- (4,0) A number should have been here; I inserted `0'. (If 
you can't figure out why I needed to see a number, look up `weird error' in the 
index to The TeXbook.)
00main.tex, line 8

Undefined control sequence.

\pgf@circ@drawsmartlabel ...um \pgfcircmathresult > 20 \ifnum \pgfcircmathre... 
l.8 to[ammeter] (4,4) -- (4,0) The control sequence at the end of the top line 
of your error message was never \def'ed. If you have misspelled it (e.g., 
`\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just 
continue, and I'll forget about whatever was undefined. ! Missing number, 
treated as zero. <to be read again> > l.8 to[ammeter] (4,4) -- (4,0) A number 
should have been here; I inserted `0'. (If you can't figure out why I needed to 
see a number, look up `weird error' in the index to The TeXbook.)
00main.tex, line 8

Undefined control sequence.

\pgf@circ@drawreglabel ...chor = \pgf@circ@labanc ] at (\ctikzvalof {bipole/... 
l.8 to[ammeter] (4,4) -- (4,0) (That makes 100 errors; please try again.) Here 
is how much of TeX's memory you used: 30630 strings out of 493109 601251 string 
characters out of 6135009 757182 words of memory out of 5000000 33436 
multiletter control sequences out of 15000+600000 57728 words of font info for 
58 fonts, out of 8000000 for 9000 1141 hyphenation exceptions out of 8191 
60i,12n,59p,410b,714s stack positions out of 5000i,500n,10000p,200000b,80000s ! 
==> Fatal error occurred, no output PDF file produced! 

Original issue reported on code.google.com by edno...@gmail.com on 19 Mar 2015 at 11:47

GoogleCodeExporter commented 9 years ago
Compilei com abntex2 e rodou sem problemas. Portanto, deve ser alguma 
incompatibilidade com algum pacote do modelo que está utilizando. 

Original comment by yche...@gmail.com on 19 Mar 2015 at 11:59

GoogleCodeExporter commented 9 years ago
Não é incompatibilidade ou defeito da classe, mas sim do modelo. Os modelos 
são fornecidos como exemplo e não há garantia que eles funcionem com 
qualquer pacote.

Original comment by yche...@gmail.com on 19 Mar 2015 at 12:07

GoogleCodeExporter commented 9 years ago
Tambem testei utilizando apenas o pacote abntex2. Ocorreram os mesmos problemas

Original comment by edno...@gmail.com on 19 Mar 2015 at 12:23

GoogleCodeExporter commented 9 years ago
Não tenho muito controle sobre a versão do pacote no sharelatex, talvez seja 
outra versão. Vi que anteriormente existiu uma certa incompatibilidade com 
Tikz, e o circuitikz é baseado no Tikz.

Original comment by edno...@gmail.com on 19 Mar 2015 at 12:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Descobrir o problema. Na verdade, se eu fizer:
\documentclass[12pt,oneside,a4paper,english,french,spanish,brazil]{abntex2}

Não compila!!!

Mas, se fizer:
\documentclass[12pt,oneside,a4paper,english,spanish,brazil]{abntex2}

COMPILA!!!

Tem algum bug com a opção french então.

Quando você fez o teste, compilou com a opão french?

Original comment by edno...@gmail.com on 19 Mar 2015 at 12:44

GoogleCodeExporter commented 9 years ago
Sim: \documentclass[french,brazil]{abntex2} compila normalmente (sharelatex).
Se não está escrevendo nada em francês, retire a opção e pronto.

Original comment by yche...@gmail.com on 19 Mar 2015 at 1:59

GoogleCodeExporter commented 9 years ago
Aviso: não utilizar as issues do GoogleCode. As issues devem sem abertas no 
novo portal do Github: https://github.com/abntex/abntex2

Original comment by laurocesar on 19 Mar 2015 at 4:14