Procedimiento para la elaboración de informes.
-
Descargar el contenedor https://hub.docker.com/r/rstropek/pandoc-latex
-
Instalar Joplin
- Elaborar el informe en formato markdown en Joplin. No incluir emojis, ni tablas de contenido.
- Une vez terminado el informe, clic en exportar y en formato elegir markdown.
- Elegir un directorio para guardar el archivo markdown.
- Una vez generado el archivo exportado, desde linux o mac hacer lo siguiente:
Entrar al directorio donde está el archivo markdown y ejecutar el siguiente script.
#!/bin/bash
read -p "Ingresa el título del documento: " title
awk '{gsub("../_resources/",""); print}' *.md > reporte.md; mv ../_resources/* .
cat << EOF >> reporte.md
---
title: $title
author: []
date:
subject: Markdown
keywords: [Markdown, Example]
subtitle: NOMBRE DE LA EMPRESA CLIENTE.
lang: es
titlepage: false
titlepage-color: 483D8B
titlepage-text-color: FFFAFA
titlepage-rule-color: FFFAFA
titlepage-rule-height: 2
book: true
classoption: oneside
code-block-font-size: \scriptsize
---
EOF
docker run --rm -v $(pwd):/data -w /data rstropek/pandoc-latex -f markdown --from markdown+yaml_metadata_block --template https://raw.githubusercontent.com/vsh00t/Informes/main/eisvogel.tex --table-of-contents --toc-depth 6 -t latex -o Informe.pdf reporte.md