osagarra / certificate_gen

This is a certificate generator for a congress, in case you need to generate multiple certificates with different names and contributions.
0 stars 0 forks source link

Issue in windows #2

Open johnfelipe opened 11 years ago

johnfelipe commented 11 years ago
    Microsoft Windows [Versión 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

    C:\Users\user>cd C:\xampp\htdocs\certificate_gen-master

    C:\xampp\htdocs\certificate_gen-master>python certificate_gen.py
    ## Generating tex files ##
    Name replaced!
    COntribution replaced!
    Name replaced!
    COntribution replaced!
    ## Generating pdf files ##
    "pdflatex" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.
    "mv" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.
    "rm" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.
    "rm" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.
    "pdflatex" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.
    "mv" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.
    "rm" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.
    "rm" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.

    C:\xampp\htdocs\certificate_gen-master>

Please tell me how i do

tnks

osagarra commented 11 years ago

I need to work on the documentation.. It obviously does not work under windows and you need pdflatex to run. But taking a look at the source code you can easily adapt the code.

Under windows you need to change the following lines towards the end of the code:

for tex in file_list:
    os.system('pdflatex '+'./output_tex/'+tex+' '+tex.split('.')[0]+'.pdf')
    os.system('move '+tex.split('.')[0]+'.pdf'+' ./output_pdf/'+tex.split('.')[0]+'.pdf')
    #os.system('del *.log') # comment this
    #os.system('del *.aux') # comment this

Additionally you need to change "pdflatex" by your favorite latex compiler.