diff options
author | Karl Berry <karl@freefriends.org> | 2021-09-06 21:16:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-09-06 21:16:58 +0000 |
commit | c436984614539aca09069bca93601eb10a989422 (patch) | |
tree | 14c26e259fc4b9074ce3ee38a076b91650b15488 /Master/texmf-dist/doc/latex | |
parent | 737305d6530f920e571d83209f4bf897a277e5ec (diff) |
beamertheme-trigon (6sep21)
git-svn-id: svn://tug.org/texlive/trunk@60439 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-trigon/README.md | 35 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-trigon/frames.tex | 280 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-trigon/trigon_demo.pdf | bin | 417185 -> 418373 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-trigon/trigon_demo.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-trigon/trigontheme.pdf | bin | 356603 -> 362222 bytes |
5 files changed, 314 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/beamertheme-trigon/README.md b/Master/texmf-dist/doc/latex/beamertheme-trigon/README.md index 649600b1875..5a98084061e 100644 --- a/Master/texmf-dist/doc/latex/beamertheme-trigon/README.md +++ b/Master/texmf-dist/doc/latex/beamertheme-trigon/README.md @@ -19,14 +19,16 @@ high degree of customization. The main design focuses on triangular shapes for major layout elements and noise minimization for the main body of the work. -The theme will be made available directly from CTAN and Overleaf once finished -(hopefully). +The theme is now available on [CTAN](https://ctan.org/pkg/beamertheme-trigon) +and will be shared as a template on [Overleaf](https://www.overleaf.com) +shortly. Feature requests, issues and pull requests are welcome. ## Features - Multiple style variations for title, section and regular slides +- Dark theme - Many convenient options (numbering style, toggle section slides, title font changes,...) - Looks better on 16:9 format, but supports 4:3 as well - Lightweight (does not require lots of additional packages) @@ -52,6 +54,35 @@ Default Style | Example alternative style ## Installation +To install a stable version of this theme, please refer to update instructions +of your TeX distribution. Trigon has been on +[CTAN](https://ctan.org/pkg/beamertheme-trigon) since March 2021. For users of +typical TeX distributions (TexLive, MacTeX, MikTeX), simply updating your +package list should install trigon on your system. + +If you want to use the cutting-edge development version of Trigon, you can +install it manually by following these steps: +1. **Download the source** using a `git clone` of the [Trigon + repository](https://gitlab.com/thlamb/beamertheme-trigon) or as a [zip + archive](https://gitlab.com/thlamb/beamertheme-trigon/-/archive/master/beamertheme-trigon-master.zip) +2. **Compile the style files** by running `make sty` inside the downloaded + directory. (Or run LaTeX directly on `source/trigontheme.ins`.) +3. **Move the resulting `*.sty` files** to the folder containing your + presentation. To use Trigon with many presentations, run `make install` or + move the `*.sty` files to a folder in your TeX path instead. +4. **Use the theme** by declaring `\usetheme{trigon}` in the preamble of your + document. + +### Overleaf +Trigon is not yet included in default TexLive installations. Therefore, it is +not natively available on [Overleaf](https://overleaf.com) (it should be +included at the end of Q3 2021). In the meantime, a template project was made +and will be kept updated with the current master version. To use it, follow +[this link](https://www.overleaf.com/read/dvbnhdcbfknk), copy the project +(menu/copy project) and modify it to your needs. + +Once the theme will be properly included to Overleaf, a basic template will be +added to the Overleaf theme gallery. ## Usage diff --git a/Master/texmf-dist/doc/latex/beamertheme-trigon/frames.tex b/Master/texmf-dist/doc/latex/beamertheme-trigon/frames.tex new file mode 100644 index 00000000000..5c38f0636d9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/beamertheme-trigon/frames.tex @@ -0,0 +1,280 @@ +%-------------------------------------- +% Create title frame +\titleframe + +%-------------------------------------- +% Table of contents +\begin{frame}{Overview} + \setbeamertemplate{section in toc}[sections numbered] + \tableofcontents[hideallsubsections] +\end{frame} + + +%============================================== +\section{Introduction} +%============================================== +\begin{frame}{\insertsectionhead} + \framesubtitle{A short introduction to Trigon} + \themename is a modern, elegant and versatile theme for Beamer, inspired by + the + \href{https://github.com/matze/mtheme}{\textsc{metropolis} theme} from Matthias + Vogelgesang. + \vfill + \themename comes with lots of nice extra features + \begin{itemize} + \item Multiple style variations for title, section and normal slides + \item Simple customization of theme colors + \item Lots of convenient options to tweak the design + \end{itemize} +\end{frame} + + +%============================================== +\section{Layout} +%============================================== + +\subsection{Layout variations} + +\begin{frame}[fragile=singleslide]{\insertsectionhead} + \framesubtitle{\insertsubsectionhead} + The general style for the title, section and regular frames can be changed + easily with simple options. Here are some examples for the title page + \begin{figure}[ht!] + \begin{subfigure}[b]{0.3\textwidth} + \frame{\includegraphics[width=\textwidth]{screenshots/layout_example-03.jpg}} + \caption*{plain} + \end{subfigure} + \hspace{\fill} + \begin{subfigure}[b]{0.3\textwidth} + \frame{\includegraphics[width=\textwidth]{screenshots/layout_example-02.jpg}} + \caption*{style1} + \end{subfigure} + \hspace{\fill} + \begin{subfigure}[b]{0.3\textwidth} + \frame{\includegraphics[width=\textwidth]{screenshots/layout_example-01.jpg}} + \caption*{style2 (default)} + \end{subfigure} + \end{figure} +\end{frame} + +%-------------------------------------- +\subsection{Fonts} + +\begin{frame} + \frametitle{\insertsectionhead} + \framesubtitle{\insertsubsectionhead} + This theme is using \textit{Source Sans Pro} font for all elements by default. + This can be disabled by providing the option \texttt{usesourcefonts=false}. + \vfill + Emphasis can be added by using \textbf{bold} typeface, \textit{italic}, + \alert{alert} or {\color{tPrim}{simple colors}}. + \vfill + Equations are typsetted with this font as well + \begin{equation*} + F(x|\mu,s) = \int_{-\infty}^x s^{-1}\left(1+e^{-\frac{v-\mu}{s}}\right)^{-2} e^{-\frac{v-\mu}{s}}\;\mathsf{d}v = \frac{1}{1+e^{-\frac{x-\mu}{s}}} + \end{equation*} +\end{frame} + + +%============================================== +\section{Elements} +%============================================== +\subsection{Charts} +\begin{frame}{\insertsectionhead} + \framesubtitle{\insertsubsectionhead} + \begin{columns}[c, onlytextwidth] + \column{0.47\textwidth} + Use the theme color \texttt{tPrim}, \texttt{tSec}, \texttt{tGrey} and + \texttt{tAccent} to have charts directly fit the main theme of presentation. + \vfill + \begin{itemize} + \item Easy variants using \texttt{color!x} to lighten or darken the colors + \end{itemize} + \hfill + \column{0.47\textwidth} + \center + \resizebox{0.9\textwidth}{!}{% + \begin{tikzpicture} + \pie[color={tPrim, tPrim!75, tPrim!50, tPrim!25}, + rotate=90, hide number, text= legend] + {50/tPrim, 32/tPrim!75, 16/tPrim!50, 2/tPrim!25} + \end{tikzpicture} + } + \end{columns} +\end{frame} + +\subsection{Lists} +\begin{frame}{\insertsectionhead} + \framesubtitle{\insertsubsectionhead} + \begin{columns}[T,onlytextwidth] + \column{0.28\textwidth} + Items + \begin{itemize} + \item Item 1 + \begin{itemize} + \item Subitem 1 + \item Subitem 2 + \end{itemize} + \item Item 2 + \item Item 3 + \end{itemize} + + \column{0.42\textwidth} + Enumerations + \begin{enumerate} + \item The Fellowship of the Ring, + \item The Two Towers, + \item The Return of the King. + \end{enumerate} + + \column{0.30\textwidth} + Descriptions + \begin{description} + \item[Trigon] Modern. \item[Default] Outdated. + \end{description} + \end{columns} +\end{frame} + +%-------------------------------------- +\subsection{Figures} +\begin{frame} + \frametitle{\insertsectionhead} + \framesubtitle{\insertsubsectionhead} + + \begin{figure} + \newcounter{density} + \setcounter{density}{20} + \begin{tikzpicture} + \def\couleur{tAccent} + \def\color{tSec} + \path[coordinate] (0,0) coordinate(A) + ++( 60:5cm) coordinate(B) + ++(-60:5cm) coordinate(C); + \path[coordinate] (0,0) coordinate(D) + ++(60:5cm) coordinate(E) + ++(180:5cm) coordinate(F); + \draw[fill=\couleur!\thedensity] (A) -- (B) -- (C) -- cycle; + \draw[fill=\color!\thedensity] (D) -- (E) -- (F) -- cycle; + \foreach \x in {1,...,15}{% + \pgfmathsetcounter{density}{\thedensity+10} + \setcounter{density}{\thedensity} + \path[coordinate] coordinate(X) at (A){}; + \path[coordinate] (A) -- (B) coordinate[pos=.15](A) + -- (C) coordinate[pos=.15](B) + -- (X) coordinate[pos=.15](C); + \draw[fill=\couleur!\thedensity] (A)--(B)--(C)--cycle; + } + \setcounter{density}{20} + \foreach \x in {1,...,15}{% + \pgfmathsetcounter{density}{\thedensity+10} + \setcounter{density}{\thedensity} + \path[coordinate] coordinate(X) at (D){}; + \path[coordinate] (D) -- (E) coordinate[pos=.15](D) + -- (F) coordinate[pos=.15](E) + -- (X) coordinate[pos=.15](F); + \draw[fill=\color!\thedensity] (D)--(E)--(F)--cycle; + } + \end{tikzpicture} + \caption{Rotated triangles from + \href{http://www.texample.net/tikz/examples/rotated-triangle/}{texample.net}.} + \end{figure} +\end{frame} + +%-------------------------------------- +\subsection{Tables} +\begin{frame} + \frametitle{\insertsectionhead} + \framesubtitle{\insertsubsectionhead} + \begin{table}[H] + \centering + \caption{A nice table example} + \begin{tabular}{@{} lccc @{}} + \toprule + & \textbf{Velocity} & \textbf{Angle} & \textbf{Vertical force} \\ + & $U$ & $\alpha$ & $F_z$ \\ + & [m/s] & [$^\circ$] & [N] \\ + \midrule + 2D simulation & 9 & 2 & 9.23 \\ + 3D simulation & 10.0 & 3 & 15.039 \\ + Experiment A & 11.31 & 2.5 & 13.2 \\ + Experiment B & 11.26 & 2.7 & 12.6 \\ + Experiment C & 11.33 & 2.47 & 13.6 \\ + \bottomrule + \end{tabular} + \end{table} + +\end{frame} + +%-------------------------------------- +\subsection{Blocks} +\begin{frame} + \frametitle{\insertsectionhead} + \framesubtitle{\insertsubsectionhead} + \begin{block}{Regular block} + Just a regular block + \end{block} + \begin{alertblock}{Alert block} + Some important thing + \end{alertblock} + \begin{exampleblock}{Example block} + No difference with regular block to avoid excessive distraction + \end{exampleblock} +\end{frame} + +%-------------------------------------- +\subsection{Frame footer} +{ +\setbeamertemplate{frame footer}{My custom footer} +\begin{frame}[fragile] + \frametitle{\insertsectionhead} + \framesubtitle{\insertsubsectionhead} + \themename defines a custom beamer template to add a text to the footer. It can be set via + \begin{verbatim}\setbeamertemplate{frame footer}{My custom footer}\end{verbatim} +\end{frame} +} + +\begin{frame}{References} + Some references to showcase [allowframebreaks] \cite{knuth92,ConcreteMath,Simpson,Er01,greenwade93} +\end{frame} + +%============================================== +\section{Conclusion} +%============================================== +\begin{frame}{Summary} + + Get the source of this theme and the demo presentation from + + \begin{center}\url{gitlab.com/thlamb/beamertheme-trigon}\end{center} + + As for \textsc{metropolis}, \themename is licensed under a + \href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons + Attribution-ShareAlike 4.0 International License}. + + \begin{center}\ccbysa\end{center} + +\end{frame} + +%============================================== +%\begin{frame}[standout] +% Questions? +%\end{frame} + +\appendix + +\begin{frame}[fragile]{Backup slides} + Sometimes, it is useful to add slides at the end of your presentation to + refer to during audience questions. + + The best way to do this is to include the \verb|appendixnumberbeamer| + package in your preamble and call \verb|\appendix| before your backup slides. + + \themename will automatically turn off slide numbering and progress bars for + slides in the appendix. +\end{frame} + +\begin{frame}[allowframebreaks]{References} + + \bibliography{demo} + \bibliographystyle{abbrv} + +\end{frame} diff --git a/Master/texmf-dist/doc/latex/beamertheme-trigon/trigon_demo.pdf b/Master/texmf-dist/doc/latex/beamertheme-trigon/trigon_demo.pdf Binary files differindex 5ba9ff31ded..b68674e1b73 100644 --- a/Master/texmf-dist/doc/latex/beamertheme-trigon/trigon_demo.pdf +++ b/Master/texmf-dist/doc/latex/beamertheme-trigon/trigon_demo.pdf diff --git a/Master/texmf-dist/doc/latex/beamertheme-trigon/trigon_demo.tex b/Master/texmf-dist/doc/latex/beamertheme-trigon/trigon_demo.tex index 9ac49cfa97c..8b9e68a4baa 100644 --- a/Master/texmf-dist/doc/latex/beamertheme-trigon/trigon_demo.tex +++ b/Master/texmf-dist/doc/latex/beamertheme-trigon/trigon_demo.tex @@ -10,7 +10,7 @@ % Image for the title page (use includegraphics option to properly size/place it) \titlegraphic{\includegraphics[height=\paperheight]{library.jpg}} -\usetheme[sectionstyle=style2]{trigon} +\usetheme[background=light,sectionstyle=style2]{trigon} % Define logos to use (comment if no logo) \biglogo{trigon_full.pdf} % Used on titlepage only diff --git a/Master/texmf-dist/doc/latex/beamertheme-trigon/trigontheme.pdf b/Master/texmf-dist/doc/latex/beamertheme-trigon/trigontheme.pdf Binary files differindex 417c09721a4..9e7a19cc6cc 100644 --- a/Master/texmf-dist/doc/latex/beamertheme-trigon/trigontheme.pdf +++ b/Master/texmf-dist/doc/latex/beamertheme-trigon/trigontheme.pdf |