Method: Limarka::Conversor#postextual

Defined in:
lib/limarka/conversor.rb

#postextual(tempfile) ⇒ Object

Escreve no arquivo o conteúdo gerado referente ao pós-textual do documento.

Parameters:

  • tempfile

    arquivo onde será escrito



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/limarka/conversor.rb', line 115

def postextual(tempfile)
  # Referências (obrigatório)
  # Glossário (opcional)
  # Apêndice (opcional)
  # Anexo (opcional)
  # Índice (opcional)

  s = StringIO.new

  s << secao_referencias
  s << secao_glossario
  s << secao_apendices
  s << secao_anexos
  s << secao_indice

  cria_xxx_referencias

  @postextual_tex = s.string
  File.open(tempfile, 'w') { |file| file.write(postextual_tex) }
end