Last active
November 17, 2021 05:08
-
-
Save jnothman/0729018fc39b2c30f082 to your computer and use it in GitHub Desktop.
Revisions
-
jnothman revised this gist
Jun 11, 2014 . 1 changed file with 63 additions and 0 deletions.There are no files selected for viewing
LoadingSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed. -
jnothman revised this gist
Jun 10, 2014 . 2 changed files with 8 additions and 6 deletions.There are no files selected for viewing
Binary file not shown.This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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{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, 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] {\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 text and line color (color: \texttt{forkmefg}) \item text size: inherited from surrounding context \end{itemize} \end{document} -
jnothman revised this gist
Jun 10, 2014 . 2 changed files with 0 additions and 1882 deletions.There are no files selected for viewing
Binary file not shown. -
jnothman revised this gist
Jun 10, 2014 . 1 changed file with 1882 additions and 0 deletions.There are no files selected for viewing
-
jnothman revised this gist
Jun 10, 2014 . 1 changed file with 23 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,25 +1,38 @@ \documentclass{article} \usepackage{tikz} \usepackage{ifthen} \usetikzlibrary{shadows.blur} \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[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); \end{tikzpicture} }; \end{tikzpicture} } \begin{document} \forkme[west] \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}) \end{itemize} \end{document} -
jnothman created this gist
Jun 10, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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}