diff --git a/texmf/tex/latex/intridea/README b/texmf/tex/latex/intridea/README new file mode 100644 index 0000000..946886c --- /dev/null +++ b/texmf/tex/latex/intridea/README @@ -0,0 +1,7 @@ +Compile using xelatex on Mac. Font Gill Sans will be used. + +Oterwise edit sty file, comment lines under "For xelatex on Mac" and enable lines under "For pdflatex". + +Just add following line in preamble to use the theme + + \usetheme{intridea} \ No newline at end of file diff --git a/texmf/tex/latex/intridea/background.png b/texmf/tex/latex/intridea/background.png new file mode 100755 index 0000000..f5d8d97 Binary files /dev/null and b/texmf/tex/latex/intridea/background.png differ diff --git a/texmf/tex/latex/intridea/beamercolorthemesolarized.sty b/texmf/tex/latex/intridea/beamercolorthemesolarized.sty new file mode 100644 index 0000000..e5cb082 --- /dev/null +++ b/texmf/tex/latex/intridea/beamercolorthemesolarized.sty @@ -0,0 +1,60 @@ +\definecolor{beamer@solarized@base03}{HTML}{002B36} +\definecolor{beamer@solarized@base02}{HTML}{073642} +\definecolor{beamer@solarized@base01}{HTML}{586e75} +\definecolor{beamer@solarized@base00}{HTML}{657b83} +\definecolor{beamer@solarized@base0}{HTML}{839496} +\definecolor{beamer@solarized@base1}{HTML}{93a1a1} +\definecolor{beamer@solarized@base2}{HTML}{EEE8D5} +\definecolor{beamer@solarized@base3}{HTML}{FDF6E3} +\definecolor{beamer@solarized@yellow}{HTML}{B58900} +\definecolor{beamer@solarized@orange}{HTML}{CB4B16} +\definecolor{beamer@solarized@red}{HTML}{DC322F} +\definecolor{beamer@solarized@magenta}{HTML}{D33682} +\definecolor{beamer@solarized@violet}{HTML}{6C71C4} +\definecolor{beamer@solarized@blue}{HTML}{268BD2} +\definecolor{beamer@solarized@cyan}{HTML}{2AA198} +\definecolor{beamer@solarized@green}{HTML}{859900} + +\mode + +\setbeamercolor{normal text}{fg=beamer@solarized@base00,bg=beamer@solarized@base3} +\setbeamercolor{alerted text}{fg=beamer@solarized@orange} +\setbeamercolor{example text}{fg=beamer@solarized@green} + +\setbeamercolor{structure}{fg=beamer@solarized@green} + +\setbeamercolor{block title}{fg=beamer@solarized@base1,bg=beamer@solarized@base02} +\setbeamercolor{block title alerted}{parent={alerted text,block title}} +\setbeamercolor{block title example}{parent={example text,block title}} + +\setbeamercolor{block body}{parent=normal text,bg=beamer@solarized@base2} +\setbeamercolor{block body alerted}{parent={alerted text,block title},fg=alerted text.fg} +\setbeamercolor{block body example}{parent={example text,block title},fg=example text.fg} + +\setbeamercolor{palette primary}{fg=beamer@solarized@base00} +\setbeamercolor{palette secondary}{fg=beamer@solarized@base01} +\setbeamercolor{palette tertiary}{fg=beamer@solarized@base02} +\setbeamercolor{palette quaternary}{fg=beamer@solarized@base03} + +\setbeamercolor{palette sidebar primary}{fg=beamer@solarized@base3} +\setbeamercolor{palette sidebar secondary}{fg=beamer@solarized@base2} +\setbeamercolor{palette sidebar tertiary}{fg=beamer@solarized@base1} +\setbeamercolor{palette sidebar quaternary}{fg=beamer@solarized@base0} + +\setbeamercolor{sidebar}{bg=beamer@solarized@base03,fg=beamer@solarized@base1} + +\setbeamercolor{separation line}{bg=beamer@solarized@base03,fg=beamer@solarized@base03} + +\setbeamercolor{section number projected}{bg=beamer@solarized@base03,fg=beamer@solarized@base1} +\setbeamercolor{item projected}{fg=beamer@solarized@base1,bg=beamer@solarized@base03} + +%\setbeamercolor{subsection in sidebar shaded}{use=subsection in sidebar,fg=subsection in sidebar.fg!40!bg} +%\setbeamercolor{button}{use=local structure,bg=local structure.fg!50!bg,fg=white} +%\setbeamercolor{navigation symbols}{use=structure,fg=structure.fg!40!bg} +%\setbeamercolor{navigation symbols dimmed}{use=structure,fg=structure.fg!20!bg} +%\setbeamercolor{bibliography entry location}{use=structure,fg=structure.fg!65!bg} +%\setbeamercolor{bibliography entry note}{use=structure,fg=structure.fg!65!bg} +%\setbeamercolor{page number in head/foot}{fg=fg!50!bg} + +\mode + diff --git a/texmf/tex/latex/intridea/beamerinnerthemeinmargin-with-block-body-bg.sty b/texmf/tex/latex/intridea/beamerinnerthemeinmargin-with-block-body-bg.sty new file mode 100644 index 0000000..229c6f8 --- /dev/null +++ b/texmf/tex/latex/intridea/beamerinnerthemeinmargin-with-block-body-bg.sty @@ -0,0 +1,159 @@ +\mode + +\setbeamercolor*{sidebar}{parent=block title} +\setbeamercolor{local structure}{parent=sidebar} +\setbeamercolor{section in toc}{parent=sidebar} + +\setbeamercolor{button}{use=structure,bg=structure.fg!50!bg,fg=white} + +\setbeamercolor{block title alerted}{use=sidebar,fg=sidebar.fg!25!red} +\setbeamercolor{block title example}{use=sidebar,fg=sidebar.fg!50!green} + +\setbeamercolor*{title}{parent=structure} + +\setbeamersize{text margin left=1.5ex} +\setbeamersize{text margin right=1.5ex} +\setbeamersize{sidebar width left=.25\paperwidth} +\setbeamersize{description width=0pt} +\setlength\leftmargini{0pt} +\setlength\leftmarginii{1.5ex} +\setlength\leftmarginiii{1.5ex} + +\newenvironment{beamer@nomargin}{% + \hskip-.20\paperwidth% + \begin{beamercolorbox}[wd=0.9\paperwidth]{sidebar}% + \setlength{\linewidth}{0.88\paperwidth}% +}{% + \end{beamercolorbox}% +} + +\newcommand\beamer@putleft[2]{% + \hbox to 0pt{\hss\vtop{% + \normalsize% + \@tempdima=.25\paperwidth% + \advance\@tempdima by-3ex% + \hsize=\@tempdima% + \leftskip=0pt plus 1fill% + \rightskip=0pt\relax% + \leavevmode#1}\kern#2}% +} +\newenvironment{beamer@putright}{\vtop\bgroup\leavevmode}{\egroup} + +\defbeamertemplate*{section in toc}{inmargin} +{ + \leavevmode% + \beamer@putleft{\usebeamercolor[fg]{section in sidebar}\inserttocsectionnumber\strut}{2.5ex}% + \beamer@putright% + \inserttocsection% + \endbeamer@putright +} + +\defbeamertemplate*{subsection in toc}{inmargin} +{\leavevmode% + \inserttocsubsection\par\vskip.5ex} + +\defbeamertemplate*{subsubsection in toc}{inmargin} +{\leavevmode% + \inserttocsubsubsection\par\vskip.5ex} + + +\def\inserttitleindicator{} +\def\insertauthorindicator{Who?} +\def\insertinstituteindicator{From?} +\def\insertdateindicator{When?} + +\defbeamertemplate*{title page}{inmargin} +{ + \begin{block}{\inserttitleindicator} + \usebeamercolor[fg]{title}\usebeamerfont{title}\inserttitle\par + \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\insertsubtitle + \end{block} + \vfill + \ifx\insertauthor\@empty + \else + \begin{block}{\insertauthorindicator} + \usebeamercolor[fg]{author}\usebeamerfont{author}\insertauthor\par + \end{block} + \fi + \ifx\insertinstitute\@empty + \else + \begin{block}{\insertinstituteindicator} + \usebeamercolor[fg]{institute}\usebeamerfont{institute}\insertinstitute\par + \end{block} + \fi + \ifx\insertdate\@empty + \else + \begin{block}{\insertdateindicator} + \usebeamercolor[fg]{date}\usebeamerfont{date}\insertdate\par + \end{block} + \fi +} + +\defbeamertemplate*{block begin}{inmargin} +{ + \par\vskip\medskipamount% + \leavevmode% + \beamer@putleft{\normalfont{\usebeamercolor[fg]{block title}\usebeamerfont*{block title}\insertblocktitle}}{2.5ex}% + \beamer@putright\usebeamercolor[fg]{block body}% + \usebeamerfont{block body}% + \ifbeamercolorempty[bg]{block body}{\vskip-1.75ex}{\vskip-2ex}% + \begin{beamercolorbox}[colsep*=.70ex,vmode]{block body}% + \ifbeamercolorempty[bg]{block body}{}{\vskip-.25ex}% +} + +\defbeamertemplate*{block end}{inmargin} +{ + \ifbeamercolorempty[bg]{block body}{}{\vskip-.25ex}% + \end{beamercolorbox}% + \endbeamer@putright\vskip\smallskipamount% +} + +\defbeamertemplate*{block alerted begin}{inmargin} +{ + \par\vskip\medskipamount% + \leavevmode% + \beamer@putleft{\normalfont{\usebeamercolor[fg]{block title alerted}\usebeamerfont*{block title alerted}\insertblocktitle}}{2.5ex}% + \beamer@putright\usebeamercolor{block body alerted}% + \usebeamerfont{block body alerted}% + \ifbeamercolorempty[bg]{block body alerted}{\vskip-1.75ex}{\vskip-2ex}% + \begin{beamercolorbox}[colsep*=.70ex,vmode]{block body alerted}% + \ifbeamercolorempty[bg]{block body alerted}{}{\vskip-.25ex}% +} +\defbeamertemplate*{block alerted end}{inmargin} +{ + \ifbeamercolorempty[bg]{block body}{}{\vskip-.25ex}% + \end{beamercolorbox}% + \endbeamer@putright\vskip\smallskipamount% +} + +\defbeamertemplate*{block example begin}{inmargin} +{ + \par\vskip\medskipamount% + \leavevmode% + \beamer@putleft{\normalfont{\usebeamercolor[fg]{block title example}\usebeamerfont*{block title example}\insertblocktitle}}{2.5ex}% + \beamer@putright\usebeamercolor{block body example}% + \usebeamerfont{block body example}% + \ifbeamercolorempty[bg]{block body example}{\vskip-1.75ex}{\vskip-2ex}% + \begin{beamercolorbox}[colsep*=.70ex,vmode]{block body example}% + \ifbeamercolorempty[bg]{block body example}{}{\vskip-.25ex}% +} +\defbeamertemplate*{block example end}{inmargin} +{ + \ifbeamercolorempty[bg]{block body}{}{\vskip-.25ex}% + \end{beamercolorbox}% + \endbeamer@putright\vskip\smallskipamount% +} + +\AtBeginDocument +{ + \addtobeamertemplate{enumerate item}{\llap\bgroup}{\normalsize\kern1.5ex\egroup} + \addtobeamertemplate{enumerate subitem}{\llap\bgroup}{\normalsize\kern1.5ex\kern\leftmarginii\egroup} + \addtobeamertemplate{enumerate subsubitem}{\llap\bgroup}{\normalsize\kern1.5ex\kern\leftmarginii\kern\leftmarginiii\egroup} + \addtobeamertemplate{itemize item}{\llap\bgroup}{\normalsize\kern1.5ex\egroup} + \addtobeamertemplate{itemize subitem}{\llap\bgroup}{\normalsize\kern1.125ex\kern\leftmarginii\egroup} + \addtobeamertemplate{itemize subsubitem}{\llap\bgroup}{\small\kern0.75ex\kern\leftmarginii\kern\leftmarginiii\egroup} + \addtobeamertemplate{description item}{\llap\bgroup\usebeamercolor[fg]{section in sidebar}\small}{\kern1.125ex\egroup} +} + +\mode + diff --git a/texmf/tex/latex/intridea/beamerthemeintridea.sty b/texmf/tex/latex/intridea/beamerthemeintridea.sty new file mode 100644 index 0000000..215c49d --- /dev/null +++ b/texmf/tex/latex/intridea/beamerthemeintridea.sty @@ -0,0 +1,48 @@ +\usetheme{default} +\useoutertheme{default} +\useinnertheme{circles} +\usefonttheme{professionalfonts} + +%%% For xelatex on Mac +%\usepackage{fontspec} +%\usepackage{xunicode} +%\usepackage{xltxtra} +%\setmainfont{Gill Sans} +%\setmonofont[Scale=0.86]{Andale Mono} + +%%% For pdflatex +\renewcommand\sfdefault{phv} +\renewcommand\familydefault{\sfdefault} +\usepackage{texnansi} +\usepackage{marvosym} + +\setbeamerfont{title}{size={\fontsize{48}{52}}} +\setbeamerfont{frametitle}{size=\huge} +\setbeamerfont{copyright in head/foot}{size=\Tiny} +\setbeamerfont{framenumber in head/foot}{size=\Tiny} + +\setbeamertemplate{background canvas}{\includegraphics + [width=\paperwidth,height=\paperheight]{background.png}} +\setbeamertemplate{frametitle}[default][center] +\setbeamertemplate{navigation symbols}{} %no nav symbols + +\usepackage{color} +\usecolortheme[RGB={34,139,34}]{structure} +\setbeamercolor{normal text}{fg=black} +\setbeamercolor{copyright in head/foot}{fg=gray} +\setbeamercolor{framenumber in head/foot}{fg=gray} + +\defbeamertemplate*{footline}{infolines theme} +{ + \leavevmode% + \hbox{% + \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=2ex,center]{copyright in head/foot}% + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=2ex,center]{copyright in head/foot}% + \usebeamerfont{copyright in head/foot}Copyright \the\year, \insertinstitute All Rights Reserved. + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=2ex,right]{framenumber in head/foot}% + \usebeamerfont{framenumber in head/foot}\insertframenumber{} / \inserttotalframenumber\hspace*{2ex} + \end{beamercolorbox}}% + \vskip0pt% +} diff --git a/texmf/tex/latex/intridea/beamerthemeiywide.sty b/texmf/tex/latex/intridea/beamerthemeiywide.sty new file mode 100644 index 0000000..95b058f --- /dev/null +++ b/texmf/tex/latex/intridea/beamerthemeiywide.sty @@ -0,0 +1,16 @@ +\mode + +\useinnertheme{rectangles} + +\usecolortheme{solarized} + +\useinnertheme{inmargin-with-block-body-bg} + +\setbeamertemplate{navigation symbols}{} %no nav symbols + +\setbeamerfont{block title}{size={}} + +\setbeamercolor{item projected}{fg=beamer@solarized@base3,bg=beamer@solarized@base01} + +\mode + diff --git a/texmf/tex/latex/intridea/solarized-listings-sample.tex b/texmf/tex/latex/intridea/solarized-listings-sample.tex new file mode 100644 index 0000000..1d38fb6 --- /dev/null +++ b/texmf/tex/latex/intridea/solarized-listings-sample.tex @@ -0,0 +1,26 @@ +\lstset{ + language=Ruby, + upquote=true, + columns=fixed, + numbers=left, + numberstyle=\tiny\color{beamer@solarized@base01}, + numbersep=5pt, + tabsize=2, + extendedchars=true, + breaklines=true, + frame=single, + showspaces=false, + showtabs=false, + xleftmargin=0pt, + framexleftmargin=0pt, + framexrightmargin=0pt, + framextopmargin=0pt, + framexbottommargin=0pt, + showstringspaces=false, + basicstyle=\footnotesize\ttfamily, + keywordstyle=\color{beamer@solarized@green}, + stringstyle=\color{beamer@solarized@cyan}\ttfamily, + identifierstyle=\color{beamer@solarized@blue}, + commentstyle=\color{beamer@solarized@base01}, + emphstyle=\color{beamer@solarized@red} +} diff --git a/zsh/zprofile b/zsh/zprofile index 0d6e301..2740ba2 100644 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -106,5 +106,8 @@ fi # Arch Build system export ASPROOT=$HOME/aur/ABS/.asp +# LaTeX +export TEXMFHOME=$DOTFILES/texmf + # Local overrides [[ -e "$DOTFILES/zsh/zprofile.local" ]] && source "$DOTFILES/zsh/zprofile.local"