Last active
June 1, 2016 07:33
-
-
Save evacchi/754988add09e34b714a39323f117b5ba to your computer and use it in GitHub Desktop.
lecturer.tex playground
This file contains 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 characters
\documentclass{article} | |
\usepackage{luatex85} | |
\usepackage{luaotfload} | |
\usepackage{fontspec} | |
\usepackage{lecturer} | |
\usepackage{xcolor} | |
\setmainfont{Gill Sans} | |
\font\maintitlefont = {name: Gill Sans} at 100pt | |
\font\slidetitlefont = {name: Gill Sans} at 30pt | |
\font\subtitlefont = {name: Gill Sans} | |
\font\mainsubtitlefont = {name: Gill Sans} at 50pt | |
\font\titlefont = {name: Gill Sans} | |
% palette: fresh cut day http://www.colourlovers.com/palette/46688/fresh_cut_day | |
\definecolor{tropiteal}{HTML}{00A8C6} | |
\definecolor{tealdrop}{HTML}{40C0CB} | |
\definecolor{whitetrash}{HTML}{F9F2E7} | |
\definecolor{atomicbikini}{HTML}{AEE239} | |
\definecolor{feebleweek}{HTML}{8FBE00} | |
% the following works | |
% \newcolor{maintitlebackground}{rgb}{.0 .66 .78} % tropiteal | |
% \newcolor{maintitleforeground}{rgb}{.97 .94 .90} % whitetrash | |
% \newcolor{mainsubtitleforeground}{rgb}{.97 .94 .90} % whitetrash | |
% \newcolor{titleforeground}{rgb}{.68 .89 .22} % atomic bikini | |
% \newcolor{slidebackground}{rgb}{.97 .94 .90} % whitetrash | |
% \newcolor{itemcolor}{rgb}{.0 .66 .78} % tropiteal | |
% the following does not | |
\colorlet{maintitlebackground}{tropiteal} | |
\colorlet{maintitleforeground}{whitetrash} | |
\colorlet{mainsubtitleforeground}{whitetrash} % whitetrash | |
\colorlet{titleforeground}{atomicbikini} % atomic bikini | |
\colorlet{slidebackground}{whitetrash} % whitetrash | |
\colorlet{itemcolor}{tropiteal} % tropiteal | |
\setparameter job: | |
mode = presentation | |
author = Author | |
title = "Title" | |
date = "Some centuries B.C." | |
fullscreen = true | |
autofullscreen = true | |
\setparameter slide: | |
everyslide = \everyslide | |
% hsize = ".6\pdfpagewidth" | |
top = 76pt | |
bottom = 42pt | |
areas* = "title subtitle date" | |
bookmarkstyle = italic | |
baselineskip = 12pt | |
topskip = \baselineskip | |
width = 16cm | |
height = 9cm | |
background = slidebackground | |
% left = 1cm % default 2cm | |
% right = 1cm | |
\def\everyslide{% | |
\position{titlebar}\slidetitle | |
} | |
\setarea{topleft topright bottomleft bottommiddle bottomright} | |
height = 18pt | |
\setarea{titlebar} | |
vshift = 35pt | |
left = 3em | |
height = 40pt | |
foreground = titleforeground | |
topskip = 30pt | |
hpos = fr | |
font = \slidetitlefont | |
\setslide{titleslide} | |
areas = "title subtitle" | |
bookmark = false | |
hpos = rr | |
everyslide = {} | |
background = maintitlebackground | |
\setarea{title} | |
hshift* = 1cm | |
vshift = 2.5cm | |
height = 45pt | |
topskip = 50pt | |
foreground = maintitleforeground | |
top = 1em | |
%frame = "width=.2em, corner=round, color=darkgrey" | |
hpos = rr | |
font = \maintitlefont | |
\setarea{date} | |
hshift* = 5.5cm | |
vshift = 9cm | |
height = 22pt | |
topskip = 10pt | |
background = white | |
foreground = black | |
top = 5pt | |
frame = "width=.5em, corner=bevel, color=lightgrey" | |
hpos = rr | |
% | |
% Default step. | |
% | |
\setparameter step: | |
everyvstep = "\quitvmode\llap{\itemsymbol\kern.5em}" | |
vskip = 18pt | |
% | |
% Item symbols. | |
% | |
\newsymbol\itemsymbol[.6em,padding=0pt] | |
{color itemcolor, + 1 0, + 0 1, + -1 0, fill,} | |
\newsymbol\mathsym[.5em,padding=0pt] | |
{color itemcolor, | |
+ 1 .5, + -1 .5, fill,} | |
\newsymbol\backsym[.5em,padding=0pt] | |
{color itemcolor, move 1 0, + -1 .5, + 1 .5, fill,} | |
\def\section#1{% | |
\def\sectiontitle{#1}% | |
\createbookmark[nosubmenutext,open]{.5}{#1}% | |
} | |
% \endinput | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% % | |
% UNCOMMENT THE PREVIOUS LINE TO USE THIS FILE AS A TEMPLATE, % | |
% OR REMOVE EVERYTHING BELOW. % | |
% % | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\begin{document} | |
\titleslide | |
\position{title}\Title | |
\position{date}\Date | |
\endtitleslide | |
\section{Main} | |
\slide[First Slide] | |
\step Hello world! | |
\step This is an example! | |
\endslide | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment