Skip to content

Instantly share code, notes, and snippets.

View cereda's full-sized avatar

Paulo Cereda cereda

View GitHub Profile
@cereda
cereda / mydoc.tex
Created June 25, 2011 11:29
Base64 LaTeX example
\documentclass{article}
\usepackage{filecontents}
\usepackage{graphicx}
\newcommand{\generateimage}[2]{%
\immediate\write18{convert.cmd #1 > #2}}
\begin{document}
\begin{filecontents*}{myfigure.txt}
@cereda
cereda / duck.sty
Created July 18, 2012 14:37
Sample duck package
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{duck}[2012/18/07 Duck style for memoir]
\RequirePackage{graphicx}
\RequirePackage{xcolor}
\RequirePackage{tikz}
\RequirePackage{xspace}
\definecolor{cffffff}{RGB}{255,255,255}
\definecolor{cffcc00}{RGB}{255,204,0}
@cereda
cereda / .zshrc
Created December 6, 2021 17:08
My .zshrc file
# directory to store all antigen stuff -- optional,
# I just like to keep things out of my home dir
ADOTDIR=/opt/paulo/applications/antigen/payload
# source to the antigen script, obtained from
# curl -L git.io/antigen > antigen.zsh
source /opt/paulo/applications/antigen/antigen.zsh
# tell antigen to use the omz framework
antigen use oh-my-zsh
@cereda
cereda / mona.tex
Created January 14, 2021 14:46
Mona Lisa with pxpic
\documentclass{standalone}
\usepackage{pxpic}
\begin{document}
\pxpicsetup{
mode = px,
colours = {a=[HTML]{969660},b=[HTML]{424140},c=[HTML]{615032},d=[HTML]{946833},e=[HTML]{523226},f=[HTML]{D3AA52},g=[HTML]{636B4A},h=[HTML]{AEB083},i=[HTML]{241625},j=[HTML]{7A8555}},
size = 4pt
@cereda
cereda / wyd2023.tex
Created October 16, 2020 11:46
Logo for the WYD Lisbon 2023.
\documentclass[margin=1cm]{standalone}
\usepackage{tikz}
\definecolor{c00873e}{RGB}{0,135,62}
\definecolor{cd63f31}{RGB}{214,63,49}
\definecolor{cfbc112}{RGB}{251,193,18}
\begin{document}
\def \globalscale {4.000000}
@cereda
cereda / simpledoc_abnt.tex
Created November 25, 2019 11:38
A simple ABNT-compliant document structure.
\documentclass[12pt, oneside, a4paper]{memoir}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[brazilian]{babel}
\setulmarginsandblock{3cm}{2cm}{*}
\setlrmarginsandblock{3cm}{2cm}{*}
\checkandfixthelayout
\documentclass[margin=1cm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-3.000000, xscale=3.000000, inner sep=0pt, outer sep=0pt]
\path[scale=0.265,fill=black,nonzero rule,line width=0.175pt]
(446.9277,475.1484) .. controls (446.6095,475.1574) and (446.2663,475.1797) ..
(445.8945,475.2109) .. controls (442.7456,475.4650) and (442.1494,475.8050) ..
(441.1289,478.1875) -- (439.8555,480.9961) -- (429.2207,481.0781) .. controls
\documentclass[margin=1cm]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{tikzducks}
\definecolor{c3d7465}{RGB}{61,116,101}
\definecolor{c7cb964}{RGB}{124,185,100}
\definecolor{cdaeb7f}{RGB}{218,235,127}
\definecolor{c366b59}{RGB}{54,107,89}
\documentclass[margin=1cm]{standalone}
\usepackage{tikz}
\definecolor{c87cdde}{RGB}{135,205,222}
\definecolor{cd5ffe6}{RGB}{213,255,230}
\newcommand{\donkey}{\begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-1.000000, xscale=1.000000, inner sep=0pt, outer sep=0pt]
\path[draw=black,fill=c87cdde,line join=miter,line cap=butt,even odd rule,line
width=0.800pt] (357.5670,456.7335) .. controls (375.6334,454.2877) and
(496.2666,447.1348) .. (507.9604,498.8487) .. controls (513.5084,523.3840) and
% !Mode:: "TeX:UTF-8:Main"
% !Mode:: "TeX:UTF-8:Main"
% arara: pdflatex
% arara: convert: {density: 96, otheroptions: -dispose previous -delay 20 -loop 1, format: gif}
% xarara: showfile: {format: gif}
\documentclass{article}
\usepackage[utf8]{inputenc} %probably not needed ...
\usepackage[T1]{fontenc}
\usepackage[svgnames,x11names]{xcolor}