URI: 
       tscibeamer.sty - scibeamer - quickly create scientific presentations using LateX and Beamer
  HTML git clone git://src.adamsgaard.dk/scibeamer
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       tscibeamer.sty (4592B)
       ---
            1 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
            2 \ProvidesPackage{scibeamer}[2016/07/13 scibeamer]
            3 
            4 %\RequirePackage{lmodern}
            5 
            6 % for \movie* commands
            7 \RequirePackage{hyperref}
            8 
            9 % Do not show horizontal line above footnotes
           10 \renewcommand\footnoterule{}
           11 
           12 
           13 %% Citation commands
           14 
           15 % \icite{<author and year>}{<journal>}
           16 % Add an inline citation. Author and year will be stylized as regular text, followed by the journal name in emphasized style.
           17 \newcommand{\icite}[2]{%
           18 \let\thefootnote\relax\footnotetext{\footnotesize{#1 \emph{#2}}}%
           19 }
           20 
           21 % \fcite{<author and year>}{<journal>}
           22 % Add a citation as a small footnote in the current slide. Author and year will be stylized as regular text, followed by the journal name in emphasized style.
           23 \newcommand{\fcite}[2]{%
           24 \let\thefootnote\relax\footnotetext{\footnotesize{#1 \emph{#2}}}%
           25 }
           26 
           27 %% Frame templates
           28 
           29 % \titleframe{<title text>}
           30 % Add a frame with large centered text.
           31 \newcommand{\titleframe}[1]{%
           32 \begin{frame}
           33         \begin{center}
           34                 \huge{#1}
           35         \end{center}
           36 \end{frame}
           37 }
           38 
           39 % \plainimageframe{<image file>}{<scale factor>}
           40 % Add a plain frame with a single full-frame image, scaled relative to frame width.
           41 \newcommand{\plainimageframe}[2]{%
           42 \begin{frame}[plain]
           43         \begin{center}
           44                 \centering
           45                 \includegraphics[width=#2\textwidth]{#1}
           46         \end{center}
           47 \end{frame}
           48 }
           49 
           50 % \plainimageframeheight{<image file>}{<scale factor>}
           51 % Add a plain frame with a single full-frame image, scaled relative to frame height.
           52 \newcommand{\plainimageframeheight}[2]{%
           53 \begin{frame}[plain]
           54         \begin{center}
           55                 \centering
           56                 \includegraphics[height=#2\textheight]{#1}
           57         \end{center}
           58 \end{frame}
           59 }
           60 
           61 % \imageframe{<title>}{<image file>}{<scale factor>}
           62 % Add a frame with title, containing a single full-frame image, scaled relative to frame width.
           63 \newcommand{\imageframe}[3]{%
           64 \begin{frame}{#1}
           65         \begin{center}
           66                 \centering
           67                 \includegraphics[width=#3\textwidth]{#2}
           68         \end{center}
           69 \end{frame}
           70 }
           71 
           72 % \imageframeheight{<title>}{<image file>}{<scale factor>}
           73 % Add a frame with title, containing a single full-frame image, scaled relative to frame height.
           74 \newcommand{\imageframeheight}[3]{%
           75 \begin{frame}{#1}
           76         \begin{center}
           77                 \centering
           78                 \includegraphics[height=#3\textheight]{#2}
           79         \end{center}
           80 \end{frame}
           81 }
           82 
           83 % \plainimageframe{<title>}{<image file>}
           84 % Add a frame with title, containing a single full-frame image that is not scaled relative to the frame size.
           85 \newcommand{\imageframenoscale}[2]{%
           86 \begin{frame}{#1}
           87         \begin{center}
           88                 \centering
           89                 \includegraphics{#2}
           90         \end{center}
           91 \end{frame}
           92 }
           93 
           94 % \imageframecite{<title>}{<image file>}{<scale factor>}{<author and year>}{<journal>}
           95 % Add a frame with title, containing a single image, scaled relative to frame width, including a citation to a publication.
           96 \newcommand{\imageframecite}[5]{%
           97 \begin{frame}{#1}
           98         \begin{center}
           99                 \centering
          100                 \includegraphics[width=#3\textwidth]{#2}
          101         \end{center}
          102         \fcite{#4}{#5}
          103 \end{frame}
          104 }
          105 
          106 % \imageframeciteheight{<title>}{<image file>}{<scale factor>}{<author and year>}{<journal>}
          107 % Add a frame with title, containing a single image, scaled relative to frame height, including a citation to a publication.
          108 \newcommand{\imageframeciteheight}[5]{%
          109 \begin{frame}{#1}
          110         \begin{center}
          111                 \centering
          112                 \includegraphics[height=#3\textheight]{#2}
          113         \end{center}
          114         \fcite{#4}{#5}
          115 \end{frame}
          116 }
          117 
          118 % \plainmovieframe{<movie file>}{<placeholder text>}
          119 % Add a plain frame with a single full-frame movie accessible through placeholder text.
          120 \newcommand{\plainmovieframe}[3]{%
          121 \begin{frame}[plain]
          122         \begin{center}
          123                 \centering
          124                 \href{#1}{#2}\\
          125                 \footnotesize{\texttt{#1}}
          126         \end{center}
          127 \end{frame}
          128 }
          129 
          130 % \movieframe{<title>}{<movie file>}{<placeholder text>}
          131 % Add a titled frame with a single full-frame movie accessible through placeholder text.
          132 \newcommand{\movieframe}[3]{%
          133 \begin{frame}{#1}
          134         \begin{center}
          135                 \centering
          136                 \href{#2}{#3}
          137         \end{center}
          138 \end{frame}
          139 }
          140 
          141 % \movieframepreview{<title>}{<movie file>}{<preview image>}
          142 % Add a titled frame with a single full-frame movie accessible through a preview image.
          143 \newcommand{\movieframepreview}[3]{%
          144 \begin{frame}{#1}
          145         \begin{center}
          146                 \centering
          147                 \href{#2}{%
          148                         \includegraphics[width=0.8\textwidth]{#3}\\
          149                         \footnotesize{\texttt{#2}}%
          150                 }
          151         \end{center}
          152 \end{frame}
          153 }
          154 
          155 % \plainmovieframepreview{<title>}{<movie file>}{<preview image>}
          156 % Add a plain titled frame with a single full-frame movie accessible through a preview image.
          157 \newcommand{\plainmovieframepreview}[3]{%
          158 \begin{frame}{#1}[plain]
          159         \begin{center}
          160                 \centering
          161                 \href{#2}{%
          162                         \includegraphics[width=0.8\textwidth]{#3}\\
          163                         \footnotesize{\texttt{#2}}%
          164                 }
          165         \end{center}
          166 \end{frame}
          167 }
          168 
          169 \endinput