Skip to content

Instantly share code, notes, and snippets.

View TorbjornT's full-sized avatar

Torbjørn T. TorbjornT

  • Granvin, Norway
View GitHub Profile
%https://tex.stackexchange.com/questions/439203/
\documentclass{article}
\usepackage{sidecap}
\usepackage{lipsum}
\usepackage[demo]{graphicx}
\begin{document}
\lipsum
\begin{figure*}[htb!]
\centering
\includegraphics[height=15cm,width=11.4cm]{Figure2.pdf}
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{center}
\begin{tikzpicture}[
myaxis/.style={
line width = 1pt, -{Stealth[length=3mm]}
},
\documentclass{report}
\usepackage{minitoc}
\dominitoc
\begin{document}
\tableofcontents
\addcontentsline{toc}{chapter}{Liste des Algorithmes} % remove to get minitoc
\chapter{Les Courbes Elliptiques}
\minitoc\newpage
\section{section1}
\end{document}
@TorbjornT
TorbjornT / demo.tex
Last active March 12, 2018 12:18
chapter descriptions
\documentclass{report}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\sffamily\huge\bfseries}
{\chaptertitlename\ \thechapter}{5pt}
{\begin{flushleft}
\normalfont\normalsize\itshape\ChapterDesc \vspace{0.25cm}
\end{flushleft}
\Huge}
\newcommand\ChapterDesc{}
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel=$x$,ylabel=$y$,
xtick={100},ytick={100},
no marks,axis equal,axis lines=middle,
xmin=-9,xmax=8,ymin=-8,ymax=8,
from PIL import Image
import subprocess
doc = '''
\documentclass{{article}}
\\begin{{document}}
\\thispagestyle{{empty}}
This page is not entirely blank.
\documentclass[border=9,tikz]{standalone}
\usetikzlibrary{decorations.pathmorphing}
\begin{document}
\begin{tikzpicture}
\draw[decoration={snake,pre length=2mm,post length=2mm,segment length=4mm},thick,red,decorate](0,0)--(2,0);
\draw[decoration={snake,segment length=4mm},decorate,very thin,blue] (-0.2,0)--(2,0);
\draw [very thin,blue] (2mm,-5pt) -- (2mm,5pt) node[above,align=center,font=\tiny]{red\\decoration\\start};
\end{tikzpicture}
\end{document}
@TorbjornT
TorbjornT / beamerbar
Last active September 30, 2016 19:45
\listfiles
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing,calc}
\makeatletter
\def\progressbar@progressbar{} % the progress bar
\newcount\progressbar@tmpcounta% auxiliary counter
\newcount\progressbar@tmpcountb% auxiliary counter
\newdimen\progressbar@pbht %progressbar height