This file contains hidden or 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
#Name of the main lyx and tex file | |
ARTICLE = article | |
#name of the bibliography | |
BIBLIO = biblio | |
#path to the mendeley bibliography where it comes from | |
MENDELEY_DATABASE = ../Bibtex\ Databases/thermostamping.bib | |
#path to LyX application |
This file contains hidden or 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
on run argv | |
set input to item 1 of argv | |
--Choose the output folder. Script ends if cancelled | |
set cwd to do shell script "pwd" | |
set strOutputDirectory to (get POSIX file (cwd) as string) | |
set strOutputDirectory to strOutputDirectory & ":" | |
set fullinput to strOutputDirectory & input | |
--Drop the file extension |
This file contains hidden or 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
# Replace "search" with "replacement" in "input" (all text) | |
on replace_string(input, search, replacement) | |
set oldDelim to AppleScript's text item delimiters | |
set AppleScript's text item delimiters to search | |
set textItems to every text item of input | |
set AppleScript's text item delimiters to replacement | |
set res to textItems as string | |
set AppleScript's text item delimiters to oldDelim | |
return res |
This file contains hidden or 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
%GMSH2PDETOOLBOX Reads a mesh in msh format, version 1 or 2 and returns the | |
%arrays p, e and t according to the MATLAB pde toolbox syntax. Filename | |
%refers to the .msh file. Note that only triangular 2D mesh are processed | |
%since these are the only elements allowed in pde toolbox. | |
% | |
%SEE ALSO load_gmsh load_gmsh4 initmesh | |
% | |
% Copyright (C) 2014 Arthur Levy. https://github.com/arthurlevy/ | |
% | |
% This fucntion uses the routine load_gmsh4 in load_gmsh2.m: Copyright (C) |
This file contains hidden or 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
% Preview source code | |
%% LyX 2.0.7 created this file. For more info, see http://www.lyx.org/. | |
%% Do not edit unless you really know what you are doing. | |
\documentclass[3p, review,preprint]{elsarticle} | |
\usepackage{units} | |
\usepackage{graphicx} | |
\makeatletter |
This file contains hidden or 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
The really important git commands: | |
git init | |
git add | |
git commit | |
git log | |
git status | |
git tag | |
git checkout | |
git checkout . |
This file contains hidden or 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
cp paper.tex new_file.tex | |
git checkout v1 -- paper.tex | |
cp paper.tex old_file.tex | |
latexdiff -t CULINECHBAR --append-safecmd="vect,tens,moy,norm" old_file.tex new_file.tex > diff.tex | |
latex diff.tex | |
bibtex diff.aux | |
latex diff.tex | |
dvipdfmx -o diff.pdf diff.dvi |