rusefi / rusefi_documentation

User documentation for rusEFI engine control unit
GNU General Public License v3.0
25 stars 30 forks source link

Find a way to convert .md pages from here to .pdf files #1

Open rusefi opened 5 years ago

rusefi commented 5 years ago

Some approaches proposed at https://superuser.com/questions/689056/how-can-i-convert-github-flavored-markdown-to-a-pdf

Need to try one or a couple and see how that goes

rusefi commented 5 years ago

https://github.com/rusefi/rusefi_documentation/tree/master/misc/Saab_Trionic_8_Combustion%20Detection%20Module_on_Mazda_Miata_running_rusEfi could be used a test page for the conversion

command line would be best

mi-hol commented 1 year ago

@rusefillc was this solved?

rusefillc commented 1 year ago

Nope :(

mi-hol commented 1 year ago

I succeeded letting pandoc create a pdf document from START-HERE.md

StartHere.pdf

Setup and commands used: !!note: draft!!

#install pandoc
winget install JohnMacFarlane.Pandoc
#install context (pdf-engine)
#download http://lmtx.pragma-ade.com/install-lmtx/context-win64.zip
#unzip to c:\context
cd c:\context
cmd.exe
.\install.bat
exit
#note: context setenv.bat has a bug and sets PATH incorrectly!
$env:path = "$env:path;C:\ConText\tex\texmf-win64\bin"
pandoc --pdf-engine=context -V pdfa .\START-HERE.md -o .\StartHere.pdf
mi-hol commented 1 year ago

@rusefillc

Saab-Trionic-8-Combustion-Detection-Module-on-Mazda-Miata-running-rusEFI.md

gives a 14MB pdf, guess some "tuning" of parameters passed to pdf-engine are required (i.e proper font, margins, header,...)

Saab-Trionic-8-Combustion-Detection-Module-on-Mazda-Miata-running-rusEFI.pdf

pandoc --pdf-engine=context -V pdfa .\Saab-Trionic-8-Combustion-Detection-Module-on-Mazda-Miata-running-rusEFI.md -o .\Saab-Trionic-8-Combustion-Detection-Module-on-Mazda-Miata-running-rusEFI.pdf

mi-hol commented 1 year ago

Task "PDF software?" for Dron is therefore solved from my view

@dron0gus is this maybe your task (user names are different)?

mi-hol commented 1 year ago

@ElDominio as the initial request might have come from you I wonder if you are still interested in the topic "printed manual"?