scielo-edo / SPS-TeX

LaTeX for SciELO Publishing Schema
0 stars 0 forks source link

<fig> #23

Closed jorgesallum closed 7 years ago

jorgesallum commented 7 years ago

Ver https://github.com/scielo-edo/SPS-TeX/tree/hello/proofs/001

output

\begin{figure}
% FIGURA %%%%%%%%%%%%%%%%%%%%%%%%%%%
\includegraphics[width=\textwidth]{0034-8910-rsp-47-04-0791-gf01}
\caption{Fluxo simplificado para o Sistema Nacional de Notificações de
Incidentes em
Saúde.}
\end{figure}

input

<fig id="f01">
  <label>Figura</label>
  <caption>
    <title>Fluxo simplificado para o Sistema Nacional de Notificações de Incidentes em
      Saúde.</title>
  </caption>
  <graphic xlink:href="0034-8910-rsp-47-04-0791-gf01"/>
</fig>

yaml

graphic: |
  @@lua(return attr('xlink:href'))@@

fig: |

  \begin{figure}
  \caption{@@lua(return find "//title")@@}
  \end{figure}
yamadapc commented 7 years ago

O que precisa ser feito e não é?

yamadapc commented 7 years ago
fig : |
  \begin{figure}
  \includegraphics[width=\textwidth]{@@lua(return find "//graphic")@@}
  \caption{@@lua(return find "//title")@@}
  \end{figure}
jorgesallum commented 7 years ago

Pedro, não funcionou. Verificar em http://jats2tex.beijaflor.io/workspaces/18

output (que precisamos)

% Generated by jats2tex@0.11.1.0
\begin{figure}
\includegraphics[width=\textwidth]{0034-8910-rsp-47-04-0791-gf01}
\caption{Fluxo simplificado para o Sistema Nacional de Notificações de
Incidentes em
Saúde.}
\end{figure}

output (atual)

% Generated by jats2tex@0.11.1.0
\begin{figure}
\includegraphics[width=\textwidth]{}
\caption{Fluxo simplificado para o Sistema Nacional de Notificações de
Incidentes em
Saúde.}
\end{figure}
yamadapc commented 7 years ago

Quis dizer o que já tinha, mais isso. Já corrigi no workspace com essa saída