Skip to content

Instantly share code, notes, and snippets.

View Ondiz's full-sized avatar

Ondiz Ondiz

View GitHub Profile
@Ondiz
Ondiz / fuerzas.tex
Last active February 11, 2019 16:40
Diagrama de fuerzas TikZ
\documentclass[12pt,a4paper]{article}
\usepackage{tikz}
\usetikzlibrary{scopes}
\begin{document}
\def\iangle{35} % Ángulo de giro
\def\arcr{0.5cm} % Radio del arco para marcar ángulos
@Ondiz
Ondiz / wrap.tex
Last active June 6, 2017 20:22
Ejemplo de uso de wrapfig con blindtext y tcolorbox
\documentclass[a4paper,11pt]{article}
% Idioma
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
% Imágenes
\usepackage{graphicx}
% Cuadros de colores
\usepackage{tcolorbox}
@Ondiz
Ondiz / cuadros.tex
Last active May 17, 2017 19:23
Ejemplos de uso del paquete tcolorbox
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{parskip}
\usepackage{amsmath}
@Ondiz
Ondiz / navegacion.html
Last active January 18, 2017 18:54
Cambiar de color los elementos de la barra de navegación
<nav>
<ul>
{% assign navigation_pages = site.html_pages | sort: 'navigation_weight' %}
{% for p in navigation_pages %}
{% if p.navigation_weight %}
<li>
<a href="{{ p.url | prepend: site.github.url }}" {% if p.url == page.url %}class="active"{% endif %}>
{{ p.title }}
</a>
</li>
@Ondiz
Ondiz / asciicast.json
Last active January 12, 2017 15:51
Ejemplo de asciicast
{
"height": 20,
"title": null,
"duration": 91.438744,
"env": {
"SHELL": "/bin/bash",
"TERM": "xterm"
},
"command": null,
"version": 1,
@Ondiz
Ondiz / ejemplo.tex
Last active November 24, 2016 11:18
Ejemplo de documento escrito en LaTeX
\documentclass[a4paper,10pt]{article}
%%%%%%%%%%%% PREÁMBULO %%%%%%%%%%%%%%%%%%%%%
% Paquetes
\usepackage[utf8]{inputenc}
\usepackage[spanish,es-tabla]{babel}
\usepackage[T1]{fontenc}
@Ondiz
Ondiz / Makefile
Created October 21, 2016 08:47
Makefile para presentaciones con Markdown, Latex y Pandoc
all:
pandoc -t beamer \
--template=template \
--latex-engine=xelatex \
metadata.yaml \
presentation.md \
-o presentation.pdf
explorer.exe presentation.pdf & # Open resulting pdf in background
latex:
@Ondiz
Ondiz / .emacs
Created October 18, 2016 10:51
Hunspell y emacs
;; Hunspell
(setq-default ispell-program-name "hunspell")
(setq ispell-really-hunspell t)
;; tell ispell that apostrophes are part of words
;; and select Bristish dictionary (nil)
(setq ispell-local-dictionary-alist
`((nil "[[:alpha:]]" "[^[:alpha:]]" "[']" t ("-d" "en_GB") nil utf-8)
("spanish" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "es_ES") t utf-8)
@Ondiz
Ondiz / listingPygment.tex
Last active October 5, 2016 18:00
Configure listings to look like Pygments friendly
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{listings}
% Configure listings to look like Pygments friendly
\lstset{
tabsize=2,
rulecolor=,
backgroundcolor=\color[HTML]{f0f0f0},
@Ondiz
Ondiz / index.html
Last active October 4, 2016 13:00
Página para listar los posts
---
layout: default
title: Título
---
<h1>Título</h1>
<ul class="posts">
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> »
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
</li>