En todos los archivos de un directorio:
-Cambiar todos los espacios por underscore (todos los archivos, sin importar su extensión):
for f in *; do mv "$f" `echo $f | tr ' ' '_'` ; done
- Cambiar todos los puntos por underscore (todos los archivos, sin importar su extensión):
for f in *; do mv "$f" `echo $f | tr ' ' '_'` ; done
Como lo anterior pudo alterar la extensión de los archivos:
- Cambiar los archivos *_eps a *.eps
for f in *eps; do mv -- "$f" "$(basename "$f" _eps).eps" ; done
jueves, 8 de marzo de 2018
jueves, 18 de enero de 2018
Emacs: backward/inverse search
After install AucTex, turn on the following two modes:
1.- to work with pdf reader (evince for me) instead of dvi:
2.- and activate the backward search:
You may load this modes automatically editing the .emacs file (see (*) at the bottom of this message).
Next, you must to compile the tex file with the option \synctex=1. There are two ways to do this:
1.- running the command
(see (**));
2. or touch the preamble of the tex file:
I think the best option is to always use a Makefile with the first option inside.
After compiling, will be generated a file *.synctex.gz
And... Ready!
- In the tex file, to go to the pdf:
- In the pdf file, to go to the corresponding place in the tex file:
-------------------------------------------------------------------------------------
(*) To choise this option all times you open emacs, add to the ~/.emacs file the following two lines:
(setq TeX-PDF-mode t)
(setq TeX-source-correlate-mode t)
(**) You could automatize this creating an alias, for example adding to your .bash_profile the line:
1.- to work with pdf reader (evince for me) instead of dvi:
M-x TeX-PDF-mode
2.- and activate the backward search:
M-x TeX-source-correlate-mode
You may load this modes automatically editing the .emacs file (see (*) at the bottom of this message).
Next, you must to compile the tex file with the option \synctex=1. There are two ways to do this:
1.- running the command
pdflatex -synctex=1 your-tex-file.tex
(see (**));
2. or touch the preamble of the tex file:
\documentclass{article}
\synctex=1
\begin{document}
...
\end{document}
\documentclass{article}
I think the best option is to always use a Makefile with the first option inside.
After compiling, will be generated a file *.synctex.gz
And... Ready!
- In the tex file, to go to the pdf:
C-c C-v ( or M-x TeX-View )
- In the pdf file, to go to the corresponding place in the tex file:
Control + right click mouse
-------------------------------------------------------------------------------------
(*) To choise this option all times you open emacs, add to the ~/.emacs file the following two lines:
(setq TeX-PDF-mode t)
(setq TeX-source-correlate-mode t)
(**) You could automatize this creating an alias, for example adding to your .bash_profile the line:
alias pdflatex='pdflatex -synctex=1'But I think that the best option is to choise this in a Makefile file.
Etiquetas:
computacion,
emacs,
latex,
Software libre
jueves, 27 de octubre de 2016
Gráfico -tipo- elementos finitos en 2D usando paraview
Calculamos una "nueva fórmula", que consiste en una componente de la velocidad:
vamos a Filters --> Alphabetical --> Calculator:
vamos a Filters --> Alphabetical --> Calculator:
y escribimos la fórmula

Con esto ya podemos graficar:
Filters --> Alphabetical --> Warp By Scalar
Para girar la imagen, se debe pulsar 3D y a ciegas mover un poco la imagen y luego volver a 2D
Y como resultado:
No olvidar usar el scale
Etiquetas:
paraview,
Software libre,
visualización
miércoles, 18 de marzo de 2015
Free service for solving numerical optimization problems
Free internet-based service for solving numerical optimization problems
http://www.neos-server.org/neos/
http://www.neos-server.org/neos/solvers/
http://www.neos-server.org/neos/
http://www.neos-server.org/neos/solvers/
jueves, 23 de octubre de 2014
sábado, 13 de septiembre de 2014
Redimensionar varias imágenes a la vez (con gimp)
Para redimensionar varias imágenes a la vez existe un plugin de gimp: David's Bach Processor (BDP).
Puede descargarse desde
También puede instalarse directamente desde los repositorios de ubuntu:
sudo aptitude install gimp-plugin-registry
aunque con esta última forma instalamos también otras cosas de gimp (de todos modos no pesan mucho).
Notar que este post es una alternativa a la solución planteada por de Gabriel en el post Resize images allá por el 2007.
Etiquetas:
edición imágenes,
gimp,
Software libre
Cuántos puntos por pulgadas debe tener mi imagen
Al crear una nueva imagen en gimp (File -> New) aparece el siguiente menú
Por supuesto que el ppi depende del tamaño de la imagen. Por ejemplo, si una pulgada es 2.54 cm y quiero una imagen de 15cm con calidad fotográfica entonces debe tener 1772 ppi, pues
15/2.54*300 = 1772.
Es útil tener presente que un ordenador usual no suele aguantar más de 2000 pixeles.
- 72 ppi (o ppp si está en español) indica que la imagen será de 72 puntos por pulgadas, y como ésta es la máxima cantidad de ppi de una pantalla de ordenador entonces es la mejor opción para imágenes que irán en un sitio web (más puntos no se apreciarán).
- 150 ppi es el número de ppi de una impresora de uso doméstico.
- 300 ppi es calidad fotográfica.
Por supuesto que el ppi depende del tamaño de la imagen. Por ejemplo, si una pulgada es 2.54 cm y quiero una imagen de 15cm con calidad fotográfica entonces debe tener 1772 ppi, pues
15/2.54*300 = 1772.
Es útil tener presente que un ordenador usual no suele aguantar más de 2000 pixeles.
Etiquetas:
edición imágenes,
gimp,
Software libre
Suscribirse a:
Entradas (Atom)




