I hereby claim:
- I am friendsatdawn on github.
- I am villalba (https://keybase.io/villalba) on keybase.
- I have a public key ASAMclivbcuzhSplvUAzJsSxXdntK0A7_pVPJNSg8xv8Ewo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
He intentado antes con Lua, sin exito. No se hacer scripts. Este no es uno, es apenas un pequeño desvío para novatos.
Se necesita:
num2words
de Phyton.shellesc
en LaTex.pdflatex
con el flag --shell-escape
. Ejemplo: pdflatex --shell-escape [otros flags] "main".tex
. Sin ello, LaTeX no tiene permiso.\newcommand{\letras}[1]{\ShellEscape{num2words #1 -l es > #1.aux} \input{#1.aux}}
.I have previously attempted this with Lua
, but was unsuccessful. I barely know how to do scripts. This is not one, it's just a little trick for newbies.
Install num2words
from Python.
Load the shellesc
package in LaTeX.
Run the program, e.g. pdflatex
with the --shell-escape
flag. Example: pdflatex --shell-escape [other flags] "main".tex
. Without it, LaTeX is not granted access to shell.
Write something like this in the preamble:\newcommand{\nWords}[1]{\ShellEscape{num2words #1 -l is > #1.aux} \input{#1.aux}}
. This produces a file nWords.aux
in the main directory, you can delete it when delete all the aux files. I know there are other ways I left to your skills.