Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bruvellu opened this issue May 5, 2012 · 0 comments
Open

Comments

@bruvellu
Copy link
Owner

bruvellu commented May 5, 2012

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant