Skip to content

Commit

Permalink
Fix error free compiling with XeLaTeX
Browse files Browse the repository at this point in the history
  • Loading branch information
becknik committed Dec 21, 2022
1 parent 8965900 commit 3749702
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 29 deletions.
Binary file modified presentation.pdf
Binary file not shown.
7 changes: 4 additions & 3 deletions presentation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
\def\tutNR{X}
%\setbeameroption{show notes on second screen}

\usefonttheme{professionalfonts}
\usebeamerfont{firacode}
\input{src/packages.tex}
\usepackage{./src/beamertheme}

\usebeamerfont{firacode}

\title[Übungsgr. 14 - Tutorium \tutNR]{Tutorium \tutNR}
\subtitle[PSE]{Programmierung und Softwareentwicklung}
\author{Jannik Becker}
Expand Down Expand Up @@ -43,7 +43,8 @@



\section*{Abschluss}\makethanks
\section*{Abschluss}
\makethanks
\end{document}


Expand Down
4 changes: 2 additions & 2 deletions src/beamertheme.sty
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@
\begin{beamercolorbox}[shadow=true,rounded=true,sep=0.5cm,center]{palette primary}
{
\Large
ありがとうございました\\
ありがとう~ございました\\
\vskip2pt
\textbf{Noch Fragen?}
}
\end{beamercolorbox}
\vskip 0.25cm
\hspace*{\fill}
\begin{beamercolorbox}[shadow=true,rounded=true,sep=0.1cm,center,wd=0.66\hsize]{palette tertiary}
Mein \href{\github}{GitHub}:\quad\color{black}\qrcode[color=black,height=2cm,level=Q]{\github}
Mein \href{\github}{GitHub}:\quad\color{black}\qrcode[height=2cm,level=Q]{\github}
\end{beamercolorbox}
\hspace*{\fill}
\end{frame}
Expand Down
6 changes: 4 additions & 2 deletions src/packages.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
\usepackage[ngerman]{babel}
\usepackage[style=german]{csquotes}

% Japanese font support, works only with otf-ipafont installed
\usepackage{xeCJK} % CJK package is automatically loaded in beamer?
% Japanese font support, works only with my local font otf-ipafont installed
% Futhermore, this seems to fix the ß being printed as SS (just accepting it...)
\usepackage{xeCJK}
\setCJKsansfont{IPAGothic} % for \sffamily
%\setCJKmainfont{IPAMincho} % for \rmfamily

Expand All @@ -24,6 +25,7 @@
%% Beamer specific:
\usepackage{qrcode}
\usepackage{pgfpages} % For handout generation & notes support
\usepackage{bookmark} % XeLaTeX recommendation for better compliance?

%% Testing:
\usepackage{lipsum}
Expand Down
43 changes: 21 additions & 22 deletions src/sample.tex
Original file line number Diff line number Diff line change
Expand Up @@ -95,36 +95,35 @@ \subsection{Advanced}
\centering
\begin{table}
\begin{tabular}{c c c}
\toprule
\hline
\textbf{Treatments} & \textbf{Response 1} & \textbf{Response 2} \\
\midrule
\hline
Treatment 1 & 0.0003262 & 0.562 \\
Treatment 2 & 0.0015681 & 0.910 \\
Treatment 3 & 0.0009271 & 0.296 \\
\bottomrule
\hline
\end{tabular}
\caption{Table caption}
\end{table}
\end{frame}

\subsection{Citation}

\begin{frame}[Citation]
\frametitle{Citation}
An example of the \enquote{cite} command to cite within the presentation:\\~

This statement requires citation \cite{p1}.
\end{frame}

\begin{frame}{References}
% Beamer does not support BibTeX so references must be inserted manually as below
\footnotesize{
\begin{thebibliography}{99}
\bibitem[Smith, 2012]{p1} John Smith (2012)
\newblock Title of the publication
\newblock \emph{Journal Name} 12(3), 45 -- 678.
\end{thebibliography}
}
\end{frame}
% \subsection{Citation}

% \begin{frame}{Citation}
% An example of the \enquote{cite} command to cite within the presentation:\\~
%
% This statement requires citation \cite{p1}.
% \end{frame}
%
% \begin{frame}{References}
% % Beamer does not support BibTeX so references must be inserted manually as below
% \footnotesize{
% \begin{thebibliography}{99}
% \bibitem[Smith, 2012]{p1} John Smith (2012)
% \newblock Title of the publication
% \newblock \emph{Journal Name} 12(3), 45 -- 678.
% \end{thebibliography}
% }
% \end{frame}

\section[Test]{Proof that there is no mistake in table of contents}

0 comments on commit 3749702

Please sign in to comment.