Code Snippets

That Have Come in Handy

Posted on April 22, 2020

Table of Contents

Video Compression

ffmpeg -r ~FramesPerSecond~ -i Input.avi -y -an -c:v libx264 -preset veryslow -qp 0 -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" Output.mp4 -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2"

Zathura

Change page aligning

:set first-page-column 1:1

Matlab

Fullscreen Figure

fig = figure('units','normalized','outerposition',[0 0 1 1]);

Proper Formatting

xlabel('$\theta_1$','interpreter','latex')
ylabel('$\theta_2$','interpreter','latex')
zlabel('$\theta_3$','interpreter','latex')
set(gca,'TickLabelInterpreter', 'latex');
set(gca,'FontSize',17)
set(gca,'linewidth',2)

IguanaTex

Change width of rendered TeX

\documentclass[10pt,a4paper,twocolumn]{article}
\usepackage[top=30pt,bottom=30pt,left=0pt,right=100pt]{geometry}