Compare commits
2 commits
cdd3acb0b7
...
c6c4c6b201
Author | SHA1 | Date | |
---|---|---|---|
c6c4c6b201 | |||
5960280976 |
2 changed files with 7 additions and 2 deletions
|
@ -59,8 +59,10 @@ if test "$format" = epub -o "$format" = rtf -o "$format" = docx; then
|
|||
#if which pandoc >/dev/null; then
|
||||
# pandoc --reference-doc=$HOME/template.docx -s -o "$output" "$htmlfile"
|
||||
if which libreoffice >/dev/null; then
|
||||
echo libreoffice --headless --writer --convert-to "$format" "$htmlfile"
|
||||
libreoffice --headless --writer --convert-to "$format" "$htmlfile"
|
||||
embed_dir="$(mktemp -d)"
|
||||
libreoffice --headless --writer --convert-to "html:HTML (StarWriter):EmbedImages" --outdir "$embed_dir" "$htmlfile"
|
||||
libreoffice --headless --writer --convert-to "$format" "$embed_dir"/*
|
||||
rm -r "$embed_dir"
|
||||
else
|
||||
echo "No tengo libreoffice para convertir a $format."
|
||||
rm "$htmlfile"
|
||||
|
|
3
.zshrc
3
.zshrc
|
@ -12,6 +12,9 @@ bindkey -e
|
|||
bindkey "^[f" forward-word
|
||||
bindkey "^[b" backward-word
|
||||
|
||||
zmodload zsh/complist
|
||||
zstyle ':completion:*' menu yes select
|
||||
|
||||
zstyle ':completion:*' list-dirs-first yes
|
||||
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||
|
||||
|
|
Loading…
Reference in a new issue