#!/bin/sh # -*- encoding: utf-8 -*- # # Construction des dessins illustrant le mécanisme des marées # Building a few drawings for the explanation of tides # Copyright (C) 2018 Jean Forget # # This program is distributed under the same terms as Perl 5.16.3: # GNU Public License version 1 or later and Perl Artistic License. # # Here is the summary of GPL: # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 1, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., https://www.fsf.org/. # export PATH=$HOME/tex-live/2017/bin/i386-linux:$PATH lualatex maree convert -density 300 -background white -alpha deactivate maree.pdf tmp.png convert -crop '1350x570+480+630' tmp-0.png maree-base.png convert -crop '1940x520+480+1380' tmp-0.png maree-vives-eaux.png convert -crop '1350x1270+430+630' tmp-1.png maree-mortes-eaux.png convert -crop '1340x600+460+2090' tmp-1.png maree-dynamique.png convert -crop '1670x2000+470+470' tmp-2.png battements1.png convert -crop '1670x1620+470+500' tmp-3.png battements2.png