GithubHelp home page GithubHelp logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Isso pode ser feito com o pacote caption:

\usepackage{caption}
\captionsetup{font=small,labelsep=endash}

A norma da ABNT também sugere que as legendas sejam separadas com -- 
("travessão", segundo a ABNT, mas o nome correto é "meia-risca" (endash) e 
não : (dois pontos), pode-se fazer isso com labelsep=endash.

Para colocar o "travessão" (--) na lista de figuras e de tabelas, de forma a 
ficar como "Figura X -- XXXX", a solução não tão elegante que encontrei foi:

\usepackage[titles]{tocloft}

\newlength{\mylen}

\renewcommand{\cftfigpresnum}{\figurename\enspace}
\renewcommand{\cftfigaftersnum}{ --}
\settowidth{\mylen}{\cftfigpresnum } %\cftfigaftersnum %pondo \cftfigaftersnum 
aqui dentro dá um espaço maior depois do travessão
\addtolength{\cftfignumwidth}{\mylen}
%
\renewcommand{\cfttabpresnum}{\tablename\enspace}
\renewcommand{\cfttabaftersnum}{ --\hspace{\enspace}}
\settowidth{\mylen}{\cfttabpresnum\cfttabaftersnum}
\addtolength{\cfttabnumwidth}{\mylen}

----






Original comment by [email protected] on 7 Jan 2013 at 4:39

from abntex2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Youssef,

Não sabia sobre o endash. Muito bom! 

Porém, a classe abntex2.cls é baseada em memoir, por isso, não deveríamos 
usar o caption, uma vez que todas as funcionalidades dele já estão 
incorporadas ao memoir, mas muitos com outras macros.

Seria muito incômodo eu pedir para você tentar reeimplementar a solução 
usando o manual do memoir 
(http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir/memman.pdf)? Eu 
até já criei uma macro chamada \ABNTEXfontereduzida (se não me engado é 
esse o nome), que contém o tamanho padrão da fonte a ser usada em \caption e 
em \legend. Com o memoir as coisas, em geral, são bem simples. Mas esse ponto 
eu realmente não investiguei. Sua ajuda será muito bem vinda!

O mesmo vale para o travessão na lista de figuras e tabelas. Veja no código 
da classe que há uma seção justamente sobre esse ponto (ajustes das listas, 
em geral). Iniciei uma investigação mas realmente não avancei.

Obrigado!

Original comment by laurocesar on 7 Jan 2013 at 4:54

from abntex2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Youssef:
\captiondelim{-- } % para separar com --
\captionnamefont{\ABNTEXfontereduzida}
\captiontitlefont{\ABNTEXfontereduzida}

Original comment by laurocesar on 7 Jan 2013 at 5:19

from abntex2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Contribuições inseridas no abnTeX2. Estarão disponíveis no próximo release.

Original comment by laurocesar on 8 Jan 2013 at 12:05

  • Changed state: Done

from abntex2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024

Original comment by laurocesar on 18 Jan 2013 at 6:52

  • Added labels: Milestone-Release1.0

from abntex2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.