Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rm MWE1.aux MWE1.bbl MWE1.bcf MWE1.blg MWE1.log MWE1.nav MWE1.out MWE1.pdf MWE1.snm MWE1.toc MWE1.run.xml ; xelatex MWE1.tex && biber MWE1 && xelatex MWE1.tex && xelatex MWE1.tex
- PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
- PassOptionsToPackage{hyphens}{url}
- %
- documentclass[10pt,ignorenonframetext,]{beamer}
- setbeamertemplate{caption}[numbered]
- setbeamertemplate{caption label separator}{: }
- setbeamercolor{caption name}{fg=normal text.fg}
- beamertemplatenavigationsymbolsempty
- usepackage{lmodern}
- usepackage{amssymb,amsmath}
- usepackage{ifxetex,ifluatex}
- usepackage{fixltx2e} % provides textsubscript
- ifnum 0ifxetex 1fiifluatex 1fi=0 % if pdftex
- usepackage[T1]{fontenc}
- usepackage[utf8]{inputenc}
- usepackage{textcomp} % provides euro and other symbols
- else % if luatex or xelatex
- usepackage{unicode-math}
- defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
- setmainfont[]{Times New Roman}
- ifxetex
- usepackage{xeCJK}
- setCJKmainfont[]{FangSong}
- fi
- ifluatex
- usepackage[]{luatexja-fontspec}
- setmainjfont[]{FangSong}
- fi
- fi
- usefonttheme{serif} % use mainfont rather than sansfont for slide text
- % use upquote if available, for straight quotes in verbatim environments
- IfFileExists{upquote.sty}{usepackage{upquote}}{}
- % use microtype if available
- IfFileExists{microtype.sty}{%
- usepackage[]{microtype}
- UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
- }{}
- IfFileExists{parskip.sty}{%
- usepackage{parskip}
- }{% else
- setlength{parindent}{0pt}
- setlength{parskip}{6pt plus 2pt minus 1pt}
- }
- usepackage{hyperref}
- hypersetup{
- pdftitle={Sample title},
- pdfauthor={Author},
- pdfborder={0 0 0},
- breaklinks=true}
- urlstyle{same} % don't use monospace font for urls
- newififbibliography
- usepackage{graphicx,grffile}
- makeatletter
- defmaxwidth{ifdimGin@nat@width>linewidthlinewidthelseGin@nat@widthfi}
- defmaxheight{ifdimGin@nat@height>textheighttextheightelseGin@nat@heightfi}
- makeatother
- % Scale images if necessary, so that they will not overflow the page
- % margins by default, and it is still possible to overwrite the defaults
- % using explicit options in includegraphics[width, height, ...]{}
- setkeys{Gin}{width=maxwidth,height=maxheight,keepaspectratio}
- % Prevent slide breaks in the middle of a paragraph:
- widowpenalties 1 10000
- raggedbottom
- setbeamertemplate{part page}{
- centering
- begin{beamercolorbox}[sep=16pt,center]{part title}
- usebeamerfont{part title}insertpartpar
- end{beamercolorbox}
- }
- setbeamertemplate{section page}{
- centering
- begin{beamercolorbox}[sep=12pt,center]{part title}
- usebeamerfont{section title}insertsectionpar
- end{beamercolorbox}
- }
- setbeamertemplate{subsection page}{
- centering
- begin{beamercolorbox}[sep=8pt,center]{part title}
- usebeamerfont{subsection title}insertsubsectionpar
- end{beamercolorbox}
- }
- AtBeginPart{
- frame{partpage}
- }
- AtBeginSection{
- ifbibliography
- else
- frame{sectionpage}
- fi
- }
- AtBeginSubsection{
- frame{subsectionpage}
- }
- setlength{emergencystretch}{3em} % prevent overfull lines
- providecommand{tightlist}{%
- setlength{itemsep}{0pt}setlength{parskip}{0pt}}
- setcounter{secnumdepth}{0}
- % set default figure placement to htbp
- makeatletter
- deffps@figure{htbp}
- makeatother
- usepackage{caption}captionsetup{labelformat=empty,labelsep=none,singlelinecheck=false,justification=centering}
- settowidth{leftmargini}{usebeamertemplate{itemize item}}
- addtolength{leftmargini}{labelsep}
- setlength{leftmarginii}{0.5em}
- makeatletter
- @ifpackageloaded{subfig}{}{usepackage{subfig}}
- @ifpackageloaded{caption}{}{usepackage{caption}}
- captionsetup[subfloat]{margin=0.5em}
- AtBeginDocument{%
- renewcommand*figurename{Figure}
- renewcommand*tablename{Table}
- }
- AtBeginDocument{%
- renewcommand*listfigurename{List of Figures}
- renewcommand*listtablename{List of Tables}
- }
- @ifpackageloaded{float}{}{usepackage{float}}
- floatstyle{ruled}
- @ifundefined{c@chapter}{newfloat{codelisting}{h}{lop}}{newfloat{codelisting}{h}{lop}[chapter]}
- floatname{codelisting}{Listing}
- newcommand*listoflistings{listof{codelisting}{List of Listings}}
- makeatother
- usepackage[backend=biber,bibencoding=utf8,citestyle=authortitle,bibstyle=authortitle]{biblatex}
- %renewcommand{footnotesize}{tiny}
- addbibresource{MWE1.bib}
- usepackage{xpatch}
- xpretobibmacro{cite}{printfield{year}setunit{nametitledelim}}{}{}
- title{Sample title}
- author{Author}
- date{}
- begin{document}
- {
- setbeamertemplate{footline}{} % no page number here
- frame{
- titlepage
- % Include a note for the title slide here, because we cannot do so in the
- % Pandoc markdown file. If you want the title note to contain actual text,
- % use the titlepage-note field in the YAML header. Otherwise, we use a
- % non-breaking space so that it is not empty.
- note{~}
- }
- }
- begin{frame}{Title of frame 1}
- protecthypertarget{title-of-frame-1}{}
- begin{columns}[T]
- begin{column}{0.50textwidth}
- begin{block}{Block title 1 on left}
- begin{itemize}
- item
- small Sentence 1.
- item
- small emph{textbf{Sentence 2.}}
- end{itemize}
- end{block}
- end{column}
- begin{column}{0.50textwidth}
- begin{figure}
- centering
- includegraphics[width=textwidth,height=0.8textheight]{example-image-a}
- caption{footnotesize emph{textbf{Example image}}}
- end{figure}
- end{column}
- end{columns}
- note{NOTES}
- end{frame}
- begin{frame}{Title of frame 2}
- protecthypertarget{title-of-frame-2}{}
- begin{columns}[T]
- begin{column}{0.50textwidth}
- begin{block}{Block title 1 on left}
- begin{itemize}
- item
- small Sentence 1. autocite{dijkstra1959note}
- item
- small emph{textbf{Sentence 2.}}
- end{itemize}
- end{block}
- end{column}
- begin{column}{0.50textwidth}
- begin{figure}
- centering
- includegraphics[width=textwidth,height=0.8textheight]{example-image-a}
- caption{footnotesize emph{textbf{Example image}}}
- end{figure}
- end{column}
- end{columns}
- note{NOTES}
- end{frame}
- begin{frame}{Title of frame 3}
- protecthypertarget{title-of-frame-3}{}
- begin{columns}[T]
- begin{column}{0.50textwidth}
- begin{block}{Block title 1 on left}
- begin{itemize}
- item
- small Sentence 1. autocite{dijkstra1959note}
- item
- small emph{textbf{Sentence 2.}}
- autocites{dijkstra1959note,zipf1946p1}
- end{itemize}
- end{block}
- end{column}
- begin{column}{0.50textwidth}
- begin{figure}
- centering
- includegraphics[width=textwidth,height=0.8textheight]{example-image-a}
- caption{footnotesize emph{textbf{Example image}}}
- end{figure}
- end{column}
- end{columns}
- note{NOTES}
- end{frame}
- end{frame}
- end{document}
- @article{dijkstra1959note,
- Author = {Dijkstra, Edsger W},
- Date-Added = {2014-04-28 19:35:12 +0000},
- Date-Modified = {2014-04-28 19:35:12 +0000},
- Journal = {Numerische mathematik},
- Number = {1},
- Pages = {269--271},
- Publisher = {Springer},
- Title = {A note on two problems in connexion with graphs},
- Volume = {1},
- Year = {1959}}
- @article{zipf1946p1,
- Author = {Zipf, George Kingsley},
- Date-Added = {2014-04-28 19:32:00 +0000},
- Date-Modified = {2014-04-28 19:32:00 +0000},
- Journal = {American sociological review},
- Pages = {677--686},
- Publisher = {JSTOR},
- Title = {The P1 P2/D hypothesis: On the intercity movement of persons},
- Year = {1946}}
Add Comment
Please, Sign In to add comment