Skip to content

Instantly share code, notes, and snippets.

@jnothman
Last active November 17, 2021 05:08
Show Gist options
  • Select an option

  • Save jnothman/0729018fc39b2c30f082 to your computer and use it in GitHub Desktop.

Select an option

Save jnothman/0729018fc39b2c30f082 to your computer and use it in GitHub Desktop.

Revisions

  1. jnothman revised this gist Jun 11, 2014. 1 changed file with 63 additions and 0 deletions.
    63 changes: 63 additions & 0 deletions forkme.svg
    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
  2. jnothman revised this gist Jun 10, 2014. 2 changed files with 8 additions and 6 deletions.
    Binary file modified forkmeongithub.pdf
    Binary file not shown.
    14 changes: 8 additions & 6 deletions forkmeongithub.tex
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,13 @@
    \documentclass{article}
    \usepackage{tikz}
    \usepackage{ifthen}
    \usepackage{xcolor}
    \usetikzlibrary{shadows.blur}

    \newlength{\forkmeoffset}
    \setlength{\forkmeoffset}{12em}
    \definecolor{forkmebg}{HTML}{CC0000}
    \definecolor{forkmeline}{HTML}{888888}
    \definecolor{forkmefg}{HTML}{EEEEEE}

    \newcommand{\forkme}[1][west]{
    \ifthenelse{\equal{#1}{east}}{%
    @@ -17,22 +18,23 @@
    \begin{tikzpicture}[remember picture, overlay]
    \node[forkmerot, shift={(0, -\forkmeoffset)}] at (current page.north #1) {
    \begin{tikzpicture}[remember picture, overlay]
    \node[fill=forkmebg, text centered, minimum width=50em, minimum height=3.0em, blur shadow, shadow yshift=0pt, shadow xshift=0pt, shadow blur radius=.4em, shadow opacity=50](fmogh) at (0pt, 0pt) { \fontfamily{phv}\selectfont\bfseries Fork me on GitHub};
    \draw[color=gray, black, dashed, line width=.08em, dash pattern=on .5em off 1.5\pgflinewidth] (-25em,1.2em) rectangle (25em,-1.2em);
    \node[fill=forkmebg, text centered, minimum width=50em, minimum height=3.0em, blur shadow, shadow yshift=0pt, shadow xshift=0pt, shadow blur radius=.4em, shadow opacity=50, text=forkmefg](fmogh) at (0pt, 0pt) { \fontfamily{phv}\selectfont\bfseries Fork me on GitHub};
    \draw[forkmefg!60, dashed, line width=.08em, dash pattern=on .5em off 1.5\pgflinewidth] (-25em,1.2em) rectangle (25em,-1.2em);
    \end{tikzpicture}
    };
    \end{tikzpicture}
    }

    \begin{document}
    \forkme[west]
    \forkme[east]
    {\LARGE\colorlet{forkmebg}{blue} \setlength{\forkmeoffset}{8cm} \forkme[east]}

    Variables include:
    \begin{itemize}
    \item \texttt{{\textbackslash}forkme[west]} vs \texttt{{\textbackslash}forkme[east]}
    \item shift offset (length: \texttt{{\textbackslash}forkmeoffset})
    \item node fill color (color: \texttt{forkmebg})
    \item line color (color: \texttt{forkmeline})
    \item text and line color (color: \texttt{forkmefg})
    \item text size: inherited from surrounding context
    \end{itemize}
    \end{document}
    \end{document}
  3. jnothman revised this gist Jun 10, 2014. 2 changed files with 0 additions and 1882 deletions.
    1,882 changes: 0 additions & 1,882 deletions forkmeongithub.eps
    0 additions, 1,882 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
    Binary file added forkmeongithub.pdf
    Binary file not shown.
  4. jnothman revised this gist Jun 10, 2014. 1 changed file with 1882 additions and 0 deletions.
    1,882 changes: 1,882 additions & 0 deletions forkmeongithub.eps
    1,882 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
  5. jnothman revised this gist Jun 10, 2014. 1 changed file with 23 additions and 10 deletions.
    33 changes: 23 additions & 10 deletions forkmeongithub.tex
    Original file line number Diff line number Diff line change
    @@ -1,25 +1,38 @@
    \documentclass{article}
    \usepackage{tikz}
    \usepackage{ifthen}
    \usetikzlibrary{shadows.blur}

    \begin{document}
    \newlength{\forkmeoffset}
    \setlength{\forkmeoffset}{12em}
    \definecolor{forkmebg}{HTML}{CC0000}
    \definecolor{forkmeline}{HTML}{888888}

    \newcommand{\forkme}[1][west]{
    \ifthenelse{\equal{#1}{east}}{%
    \tikzset{forkmerot/.style={rotate=-45}}
    }{%
    \tikzset{forkmerot/.style={rotate=45}}
    }
    \begin{tikzpicture}[remember picture, overlay]
    \node[rotate=45, shift={(0, -12em)}] at (current page.north west) {
    \node[forkmerot, shift={(0, -\forkmeoffset)}] at (current page.north #1) {
    \begin{tikzpicture}[remember picture, overlay]
    \node[draw, fill=red!60, text centered, minimum width=50em, minimum height=3.0em, blur shadow, shadow yshift=0pt, shadow xshift=0pt, shadow blur radius=.4em, shadow opacity=50](fmogh) at (0pt, 0pt) { \fontfamily{phv}\selectfont\bfseries Fork me on GitHub};
    \draw[gray, dashed, line width=.08em, dash pattern=on .5em off 1.5\pgflinewidth] (-25em,1.2em) rectangle (25em,-1.2em);
    \node[fill=forkmebg, text centered, minimum width=50em, minimum height=3.0em, blur shadow, shadow yshift=0pt, shadow xshift=0pt, shadow blur radius=.4em, shadow opacity=50](fmogh) at (0pt, 0pt) { \fontfamily{phv}\selectfont\bfseries Fork me on GitHub};
    \draw[color=gray, black, dashed, line width=.08em, dash pattern=on .5em off 1.5\pgflinewidth] (-25em,1.2em) rectangle (25em,-1.2em);
    \end{tikzpicture}
    };
    \end{tikzpicture}
    }

    \begin{document}
    \forkme[west]
    \forkme[east]

    Variables include:
    \begin{itemize}
    \item \texttt{west} and \texttt{rotate=45} or \texttt{east} and \texttt{rotate=-45}
    \item shift offset
    \item node fill color
    \item line color
    \item \texttt{{\textbackslash}forkme[west]} vs \texttt{{\textbackslash}forkme[east]}
    \item shift offset (length: \texttt{{\textbackslash}forkmeoffset})
    \item node fill color (color: \texttt{forkmebg})
    \item line color (color: \texttt{forkmeline})
    \end{itemize}
    \end{document}

    \end{document}
  6. jnothman created this gist Jun 10, 2014.
    25 changes: 25 additions & 0 deletions forkmeongithub.tex
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    \documentclass{article}
    \usepackage{tikz}
    \usetikzlibrary{shadows.blur}

    \begin{document}

    \begin{tikzpicture}[remember picture, overlay]
    \node[rotate=45, shift={(0, -12em)}] at (current page.north west) {
    \begin{tikzpicture}[remember picture, overlay]
    \node[draw, fill=red!60, text centered, minimum width=50em, minimum height=3.0em, blur shadow, shadow yshift=0pt, shadow xshift=0pt, shadow blur radius=.4em, shadow opacity=50](fmogh) at (0pt, 0pt) { \fontfamily{phv}\selectfont\bfseries Fork me on GitHub};
    \draw[gray, dashed, line width=.08em, dash pattern=on .5em off 1.5\pgflinewidth] (-25em,1.2em) rectangle (25em,-1.2em);
    \end{tikzpicture}
    };
    \end{tikzpicture}


    Variables include:
    \begin{itemize}
    \item \texttt{west} and \texttt{rotate=45} or \texttt{east} and \texttt{rotate=-45}
    \item shift offset
    \item node fill color
    \item line color
    \end{itemize}
    \end{document}