This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mac(xls,virtualLab) | |
% Create MAC matrix from data exported to excel | |
% | |
% xls: file name | |
% Xls file shape: | |
% - 1st row: "Experimental" - 1st column: "Simulation" | |
% - 2nd row: experimental frequencies - 2nd column: simulation frequencies | |
% - 3rd row and on: MAC values - 3rd column and on: MAC values | |
% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Barra para marcar ancho de columna | |
(require 'fill-column-indicator) ; cargar paquete | |
(setq fci-rule-column 80) ; establecer ancho a 80 caracteres | |
(add-hook 'markdown-mode-hook 'fci-mode) ; cargarlo con el modo markdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-derived-mode formato-mode markdown-mode "Formato" | |
"Modo para formato para personalizado" | |
;; 2 espacios en lugar de tab | |
(setq-default indent-tabs-mode nil) | |
(setq tab-width 2) | |
;; Líneas de 80 caracteres (79 + \n) | |
(add-hook 'formato-mode-hook 'turn-on-auto-fill) | |
(add-hook 'formato-mode-hook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[preprint,12pt]{elsarticle} | |
\usepackage{amssymb,amsmath} | |
\usepackage{hyperref} | |
\usepackage{longtable,booktabs} | |
\usepackage{graphicx,grffile} | |
\usepackage[utf8]{inputenc} | |
\usepackage{epstopdf} % convert eps images to pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Markdown files in order of appearance | |
FILES = paper.md | |
# Crossref must be before citeproc | |
all: | |
pandoc \ | |
--natbib \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Asignar los archivos .latex al modo LaTex | |
(add-to-list 'auto-mode-alist '("\\.latex\\'" . LaTeX-mode)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function zoomSubplot(figNum,r,c,axis,lim1,lim2) | |
% Same zoom into all subplots: | |
% | |
% figNum: number of the figure with subplots | |
% f: number of rows | |
% c: number of columns | |
% axis: axis to synchronise 'x', 'y' or 'xy' | |
% lim1: limit to axis if single | |
% lim2: limits to second axis (x and then y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toPdf(inputFolder, outputFolder) | |
% Export all files in folder to pdf without opening | |
% | |
% - inputFolder: complete path to folder where fig figures stand | |
% - outputFolder: complete path to folder to where pdfs should be exported | |
cd(inputFolder) | |
files = ls(inputFolder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Añadir path | |
(add-to-list 'load-path "<PATH>") | |
;; Cargar modo Markdown al inicio | |
(autoload 'markdown-mode "markdown-mode" | |
"Major mode for editing Markdown files" t) | |
(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode)) | |
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) | |
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Añadir path de los paquetes (si no está ya) | |
(add-to-list 'load-path "<PATH>") | |
; Escribir en mayúscula después de punto | |
(autoload 'auto-capitalize-mode "auto-capitalize" | |
"Toggle `auto-capitalize' minor mode in this buffer." t) | |
(autoload 'turn-on-auto-capitalize-mode "auto-capitalize" | |
"Turn on `auto-capitalize' minor mode in this buffer." t) | |
(autoload 'enable-auto-capitalize-mode "auto-capitalize" | |
"Enable `auto-capitalize' minor mode in this buffer." t) |