bruvellu / mestre-em-latex

Modelo em LaTeX para dissertações e teses acadêmicas

Home Page:http://bruvellu.github.io/mestre-em-latex/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Criar comandos para facilitar a inserção de citações e figuras

bruvellu opened this issue · comments

Para inserir citações internas, por exemplo:

\newcommand{\figref}[1]{Figura~\ref{#1}}
\newcommand{\tabref}[1]{tabela~\ref{#1}}
\newcommand{\secref}[1]{seção~\ref{#1}}
\newcommand{\apref}[1]{apêndice~\ref{#1}}

E para inserir figuras:

\newcommand{\imagem}[4]{\begin{figure}[H]
\center
\includegraphics[width=#4]{./imagens/#1}
\caption{#2}\label{#3}
\end{figure}}

\imagem{banana.eps}{Esta é a legenda.}{fig:este_eh_o_label}{10cm}

Outra opção com texto descritivo:

\newcommand{\imagemg}[5]{\begin{figure}[H]
\center
\includegraphics[width=#4]{./imagens/#1}
\caption[#5]{#2}\label{#3}
\end{figure}}

\imagem{banana.eps}{Esta é a legenda longa e cheia de detalhes a respeito da foto de uma banana, que fica horrível na lista de figuras pois é muito comprida e cheira de palavras.}{fig:este_eh_o_label}{10cm}{Foto da Banana}

[Dicas do Paul]