| General > General Technical Chat |
| Generating documents .docx from lightweight markup language |
| << < (4/4) |
| Picuino:
Doesn't work as well as expected. I'm going to investigate how to generate printable HTML, which I think will be much more flexible and easier. |
| Someone:
If the output file can PDF then going through Tex seems like the sensible way: https://ctan.org/pkg/markdown Then all the structure and template can be isolated as Tex, taking some plain text MD files as the content. |
| Picuino:
I managed to do that with LaTeX templates with Pandoc. The problem is that I don't know how to make the tables display correctly, with separations and divisions between pages. I attach an example |
| PKTKS:
--- Quote from: Picuino on February 09, 2022, 07:59:42 am ---I managed to do that with LaTeX templates with Pandoc. The problem is that I don't know how to make the tables display correctly, with separations and divisions between pages. I attach an example --- End quote --- IMHO.. if you are going LaTeX then go the proper way... use no shortcut.. no newbie modern shit will easy you Tables in TeX are very simple and can be displayed in multi-page all across PDF RTF HTML and multi column as long as you require the directives.. Do not mess TeX with strange front ends.. I can almost bet a bad result Attached a skeleton and the rendered PDF made today by latex --- Code: ---\input { class_ARTICLE.tex } \usepackage{multirow} % used for multi-row tables \usepackage{multicol} % used for multi-column tables and text envars \begin{document} \title{PRINCIPAL TITLE } \pagenumbering{gobble} \maketitle \newpage \pagenumbering{arabic} \section{OneSection} \begin {table}[h!] \centering \caption{Caption for the table.} \label {tab:table1} \begin {tabular}{l|c||r} 1 & 2 & 3\\ \hline a & b & c\\ \end {tabular} \end {table} \lipsum[1-10] \end{document} --- End code --- Included just for fun - page numbering in BARCODEs... :popcorn: and watermarking Paul |
| Picuino:
After many tests with LaTeX, docx, ODT, Pandoc and Docutils I have finally decided to use Docutils with ODT. I attached the project in case it helps someone else. The PDF document comes from ODT. Thank you very much for the comments. |
| Navigation |
| Message Index |
| Previous page |