Formatações de imagens e tabelas

256 views
Skip to first unread message

Rebeca Regina Regatieri

unread,
Jul 8, 2015, 3:06:49 PM7/8/15
to late...@googlegroups.com
Olá!

gostaria de pedir uma ajuda em duas questões quanto à formatação de imagens:

i) gostaria de usar dois nomes automáticos para legendas, gostaria de definir um nome de imagem para Mapa e outro para Gráfico.
Sei mudar automaticamente o nome da legenda usando:

\addto\captionsportuguese{

\renewcommand{\figurename}{Figura}

\renewcommand{\tablename}{Tabela}

}

Mas, não consigo criar dois nomes de figura. 


ii) outra questão é que quando digito a fonte das tabelas e das figuras, em alguns casos (quando acrescento nota) uso duas linhas, e gostaria de configurar para que o espaçamento entre linhas seja simples.


Se puderem me ajudar...:-)


Muito obrigada!




Youssef Cherem

unread,
Jul 8, 2015, 3:10:27 PM7/8/15
to late...@googlegroups.com
i) utilize o pacote trivfloat
ii) utilize o pacote setspace.

Youssef Cherem
________________
!المسيح قام! حقاً قام

--
You received this message because you are subscribed to the Google Groups "Latex-br" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latex-br+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/latex-br/48f1d3a3-08f8-43b9-8f1d-968c6da84bc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rebeca Regina Regatieri

unread,
Jul 8, 2015, 4:10:11 PM7/8/15
to late...@googlegroups.com
Youssef, muito obrigada!

Mas ainda não consegui avançar no primeiro ponto. Estou querendo ter uma legenda para Gráfico e outra para Mapa.

Por favor, veja se estou no caminho:

% Figure and Table Caption Styles

\usepackage{trivfloat}

\trivfloat{mapa}

\usepackage{wrapfig}

\usepackage{subfigure}

\usepackage{caption} % Required for changing caption styles

\DeclareCaptionFont{SlateGray4}{\color{SlateGray4}}

\captionsetup[table]{labelfont={bf,sf, SlateGray4},labelsep=period,justification=justifiedl, font=small, textfont=SlateGray4} % Specify the table caption style

\captionsetup[figure]{labelfont={sf,bf, SlateGray4},labelsep=period,justification=justified, font=small, textfont=SlateGray4} % Specify the figure caption style

\setlength{\abovecaptionskip}{10pt} % Whitespace above captions


\addto\captionsportuguese{

\renewcommand{\figurename}{Figura}

\renewcommand{\tablename}{Tabela}

}


No documento:

\begin{mapa}[h]

\center

\caption{\textcolor{SlateGray4}{Distribuição territorial das taxas de crescimento das matrículas brutas de 2009 a 2013 , respectivamente, na rede pública e na rede privada de Ensino Superior.}}

\label{map1}

\subfigure{\includegraphics[width=0.3\textwidth]{mapa1_publica.png}}

\qquad

\subfigure{\includegraphics[width=0.3\textwidth]{mapa1_privada.png}}

\\

\font{\tiny{FONTE: PNAD - IBGE, 2009-2013.}}}

\end{mapa}

Youssef Cherem

unread,
Jul 8, 2015, 4:21:55 PM7/8/15
to late...@googlegroups.com
O que exatamente está dando errado? Aparentemente, está tudo certo...

\trivfloat{mapa}
\trivfloat{grafico}

\begin{document}

\renewcommand{\listgraficoname}{Lista de Gráficos}
\renewcommand{\listmapaname}{Lista de Mapas}

\listofgraficos
\listofmapas

...

======

Se você já especificou o tipo de caption, acho que seria repetitivo usar \caption{\textcolor{SlateGray4} etc.

\font -- Não seria \fonte{}?

Youssef Cherem
________________
!المسيح قام! حقاً قام

Rebeca Regina Regatieri

unread,
Jul 8, 2015, 4:56:50 PM7/8/15
to late...@googlegroups.com


Não está aparecendo a legenda e ele não reconheceu o comando porque está aparecendo como texto a opção [h]. A fonte apareceu embaixo do mapa. Tem razão, está redundante esse textcolor no caption.

Muito obrigada!

Ah, já comecei a dar uma olhada no seu artigo. Bacana!

Rebeca Regina Regatieri

unread,
Jul 8, 2015, 4:59:45 PM7/8/15
to late...@googlegroups.com
Será que o problema está relacionado ao fato de eu estar usando o comando subfigure?

Youssef Cherem

unread,
Jul 8, 2015, 5:58:35 PM7/8/15
to late...@googlegroups.com
Talvez, envie um exemplo mínimo para darmos uma olhada...

Youssef Cherem
________________
!المسيح قام! حقاً قام

Rebeca Regina Regatieri

unread,
Jul 9, 2015, 8:52:59 AM7/9/15
to late...@googlegroups.com

Opaaa....está quase funcionando...rsrs


Agora apareceu a legenda do Mapa, só que o primeiro recebeu a legenda Mapa 1 e o segundo Mapa 0. oooww...


Além disso, coloquei o caption para aparecer em cima e apareceu embaixo...

Segue abaixo o que estou usando na programação.


% Figure and Table Caption Styles


\usepackage{trivfloat}

\trivfloat{mapa}

\trivfloat{gráfico}

\usepackage{wrapfig}

\usepackage{subfigure}

\usepackage{caption} % Required for changing caption styles

\DeclareCaptionFont{SlateGray4}{\color{SlateGray4}}

\captionsetup[table]{labelfont={bf,sf, SlateGray4},labelsep=period,justification=justifiedl, font=small, textfont=SlateGray4} % Specify the table caption style

\captionsetup[figure]{labelfont={sf,bf, SlateGray4},labelsep=period,justification=justified, font=small, textfont=SlateGray4} % Specify the figure caption style

\setlength{\abovecaptionskip}{10pt} % Whitespace above captions


% \input{structure.tex} % Include the document which specifies all packages and structural customizations for this template

\addto\captionsportuguese{

\renewcommand{\figurename}{Figura}

\renewcommand{\tablename}{Tabela}

}


\begin{mapa}[h]

\center

\caption{Distribuição territorial das taxas de crescimento das matrículas brutas de 2009 a 2013 , respectivamente, na rede pública e na rede privada de Ensino Superior.}

\label{map1}

\subfigure{\includegraphics[width=0.3\textwidth]{mapa1_publica.png}}

\qquad

\subfigure{\includegraphics[width=0.3\textwidth]{mapa1_privada.png}}

\\

\font{\tiny{FONTE: PNAD - IBGE, 2009-2013.}}}

\end{mapa}

\\

\begin{mapa}[h]

\center

\caption{Distribuição territorial das taxas de crescimento das matrículas líquidas de 2009 a 2013, respectivamente, na rede pública e na rede privada de Ensino Superior.}

\label{map2}

\subfigure{\includegraphics[width=0.3\textwidth]{mapa2_publica.png}}

\qquad

\subfigure{\includegraphics[width=0.3\textwidth]{mapa2_privada.png}}

\\

Rebeca Regina Regatieri

unread,
Jul 9, 2015, 10:07:58 AM7/9/15
to late...@googlegroups.com
Quando deixei de usar o comando \subfigure, deu tudo certo.

Muitíssimo obrigada Youssef!

Youssef Cherem

unread,
Jul 9, 2015, 10:21:31 AM7/9/15
to late...@googlegroups.com


Às vezes o mais fácil é... fazer do jeito fácil:


============
\documentclass[article]{abntex2}
\usepackage{trivfloat}
\usepackage[brazil]{babel}
\usepackage[demo]{graphicx}
\usepackage[x11names,dvipsnames]{xcolor}
\usepackage{calc}
\usepackage{fourier}


\trivfloat{mapa}
\trivfloat{grafico}

\usepackage{wrapfig}


\usepackage{caption} % Required for changing caption styles

\DeclareCaptionFont{SlateGray4}{\color{SlateGray4}}

\captionsetup[table]{labelfont={bf,sf, SlateGray4},labelsep=period,justification=justifiedl, font=small, textfont=SlateGray4} % Specify the table caption style

\captionsetup[figure]{labelfont={sf,bf, SlateGray4},labelsep=period,justification=justified, font=small, textfont=SlateGray4} % Specify the figure caption style

\setlength{\abovecaptionskip}{10pt} % Whitespace above captions





\title{mapa.tex}
\author{José, o Capinador}
\date{Julho 2015}

\begin{document}

\maketitle

\section{Mapas}


\begin{mapa}[h]
\center
\caption{Primeiro mapa: Distribuição territorial das taxas de crescimento das matrículas brutas de 2009 a 2013 , respectivamente, na rede pública e na rede privada de Ensino Superior.\label{mapa1}}

\includegraphics[width=0.3\textwidth]{mapa1_publica.png}
\qquad
\includegraphics[width=0.3\textwidth]{mapa1_privada.png}

    (a) \hspace{0.3\textwidth} (b)
\\[10pt]
{\small Fonte: PNAD - IBGE, 2009-2013.}

\end{mapa}



\begin{mapa}[h]
\center
\caption{Segundo mapa depois do primeiro: Distribuição territorial das taxas de crescimento das matrículas brutas de 2009 a 2013 , respectivamente, na rede pública e na rede privada de Ensino Superior.\label{mapa2}}

\includegraphics[width=0.3\textwidth]{mapa1_publica.png}
\qquad
\includegraphics[width=0.3\textwidth]{mapa1_privada.png}

    (a) \hspace{0.3\textwidth} (b)
\\[10pt]   
{\small Fonte: PNAD - IBGE, 2009-2013.}

\end{mapa}

\end{document}

============


Youssef Cherem
________________
!المسيح قام! حقاً قام

--
You received this message because you are subscribed to the Google Groups "Latex-br" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latex-br+u...@googlegroups.com.

Youssef Cherem

unread,
Jul 9, 2015, 10:22:28 AM7/9/15
to late...@googlegroups.com
Ok, que bom que deu certo. Os pacotes subfig e subfigure estão obsoletos.

Youssef Cherem
________________
!المسيح قام! حقاً قام

On Thu, Jul 9, 2015 at 11:07 AM, Rebeca Regina Regatieri <berre...@gmail.com> wrote:
Quando deixei de usar o comando \subfigure, deu tudo certo.

Muitíssimo obrigada Youssef!

--
You received this message because you are subscribed to the Google Groups "Latex-br" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latex-br+u...@googlegroups.com.

Rebeca Regina Regatieri

unread,
Jul 9, 2015, 10:38:17 AM7/9/15
to late...@googlegroups.com
Mais uma vez, muito obrigada Youssef!!

William

unread,
Jul 16, 2015, 4:36:00 PM7/16/15
to late...@googlegroups.com
Olá Rebeca,
Olhando a sua postagem, eu gostaria de saber como você resolveu o problema de espaçamento entre a legenda e a fonte utilizando duas linhas. Eu tentei pelo pacote setspace mais não obtive exito.

Obrigado!
Reply all
Reply to author
Forward
0 new messages