
Hebrew Latex Beamer
Author:
Yuval Itzhaki
Last Updated:
6日前
License:
Creative Commons CC BY 4.0
Abstract:
Hebrew Latex Beamer presentations.

\begin
Discover why over 20 million people worldwide trust Overleaf with their work.

\begin
Discover why over 20 million people worldwide trust Overleaf with their work.
%! TEX program = lualatex
\RequirePackage{luatex85}
\PassOptionsToPackage{luatex}{hyperref}
\documentclass[luatex]{beamer}
\input{config}
%%%%%%%%%%%%
% DOCUMENT %
%%%%%%%%%%%%
\begin{document}
\newenvironment{switch}[1]{\renewcommand{\case}{\ifequals{#1}}}{}
% Example: Pick color by ID
\newcommand{\incolor}[2]{
\begin{switch}{#1}
\case{1}{A}
\case{2}{}
#2
\end{switch}
}
\renewcommand{\thefootnote}{\alph{footnote}}
\title{מצגות לאטך בעברית}
\subtitle{שבלונה למשתמש המתחיל}
% \author{}
\date{}
\titlegraphic{
\selectlanguage{english}
\vspace{1.5cm}
\begin{figure}[H]
\hspace*{-11.5cm}
\scalebox{.5}{
\begin{tikzpicture}
\begin{scope}[every node/.style={circle,thick,draw,text=black,fill=yellow!50,minimum size =.7cm}]
\node[fill=orange!50] (s) at (-.5,-1) {\Large s};
\node[fill=yellow!50] (2) at (2.75,1.75) {\Large 2};
\node[fill=yellow!50] (1) at (.75,1.25) {\Large 1};
\node[fill=yellow!50] (3) at (-1.5,2.5) {\Large 3};
\node[fill=yellow!50] (4) at (-4,1) {\Large 4};
\node[fill=yellow!50] (6) at (-4,4.5) {\Large 6};
\node[fill=yellow!50] (7) at (-1,6) {\Large 7};
\node[fill=yellow!50] (5) at (1.5,4) {\Large 5};
\node[fill=yellow!50] (8) at (-2,8) {\Large 8};
\node[fill=yellow!50] (9) at (3,7) {\Large 9};
\end{scope}
% [bend left=40]
\begin{scope}[>={Stealth[mytextcolor]},
every node/.style={},
% every node/.style={fill=white,circle},
% every edge/.style={draw=myblue,very thick}
% every edge/.style={}
]
\onslide<1>{
\path [->,draw=mytextcolor,line width = .75mm] (s) edge node {} (1);
\path [->,draw=mytextcolor,line width = .75mm] (s) edge node {} (2);
\path [->,draw=mytextcolor,line width = .75mm] (s) edge node {} (3);
\path [->,draw=mytextcolor,line width = .75mm] (s) edge node {} (4);
\path [->,draw=mytextcolor,line width = .75mm] (1) edge node {} (5);
\path [->,draw=mytextcolor,line width = .75mm] (1) edge node {} (7);
\path [->,draw=mytextcolor,line width = .75mm] (2) edge node {} (5);
\path [->,draw=mytextcolor,line width = .75mm] (2) edge node {} (6);
\path [->,draw=mytextcolor,line width = .75mm] (3) edge node {} (4);
\path [->,draw=mytextcolor,line width = .75mm] (3) edge node {} (7);
\path [->,draw=mytextcolor,line width = .75mm] (4) edge node {} (6);
\path [->,draw=mytextcolor,line width = .75mm] (6) edge node {} (7);
\path [->,draw=mytextcolor,line width = .75mm] (6) edge node {} (8);
\path [->,draw=mytextcolor,line width = .75mm] (7) edge node {} (8);
\path [->,draw=mytextcolor,line width = .75mm] (7) edge node {} (9);
\path [->,draw=mytextcolor,line width = .75mm] (5) edge node {} (6);
\path [->,draw=mytextcolor,line width = .75mm] (5) edge node {} (9);
\path [->,draw=mytextcolor,line width = .75mm] (9) edge node {} (2);
}
\onslide<2>{
\path [->,>={Stealth[myblue]},draw=myblue, ultra thick] (s) edge node {} (1);
\path [->,>={Stealth[gray!50]},draw=gray!50,line width = .75mm] (s) edge node {} (2);
\path [->,>={Stealth[myblue]},draw=myblue, line width = 1mm] (s) edge node {} (3);
\path [->,>={Stealth[gray!50]},draw=gray!50,line width = .75mm] (s) edge node {} (4);
\path [->,>={Stealth[myblue]},draw=myblue, line width = 1mm] (1) edge node {} (5);
\path [->,>={Stealth[gray!50]},draw=gray!50,line width = .75mm] (1) edge node {} (7);
\path [->,>={Stealth[gray!50]},draw=gray!50,line width = .75mm] (2) edge node {} (5);
\path [->,>={Stealth[gray!50]},draw=gray!50,line width = .75mm] (2) edge node {} (6);
\path [->,>={Stealth[myblue]},draw=myblue, line width = 1mm] (3) edge node {} (4);
\path [->,>={Stealth[gray!50]},draw=gray!50,line width = .75mm] (3) edge node {} (7);
\path [->,>={Stealth[myblue]},draw=myblue, line width = 1mm] (4) edge node {} (6);
\path [->,>={Stealth[myblue]},draw=myblue, line width = 1mm] (6) edge node {} (7);
\path [->,>={Stealth[gray!50]},draw=gray!50,line width = .75mm] (6) edge node {} (8);
\path [->,>={Stealth[myblue]},draw=myblue, line width = 1mm] (7) edge node {} (8);
\path [->,>={Stealth[myblue]},draw=myblue, line width = 1mm] (7) edge node {} (9);
\path [->,>={Stealth[gray!50]},draw=gray!50,line width = .75mm] (5) edge node {} (6);
\path [->,>={Stealth[gray!50]},draw=gray!50,line width = .75mm] (5) edge node {} (9);
\path [->,>={Stealth[myblue]},draw=myblue, line width = 1mm] (9) edge node {} (2);
}
\end{scope}
\end{tikzpicture}
}
\end{figure}
\selectlanguage{hebrew}
}
\frame[plain]{\titlepage}
\begin{frame}[plain,t]{מצגות בלאטך}
אם הגעתם לכאן מהשבלונה ״פרוייקט לאטך בעברית״ ברוכים השבים!
אחרת, אמליץ לכם לבדוק גם אותו
\href{https://www.overleaf.com/latex/templates/hebrew-latex-template/rjkfxyhmmqfm}{\textbf{בקישור הזה}}.
הפרוייקט הזה משתמש במהדר
\text{LuaLaTex}
ולכן הוחלט להפריד אותו מפרוייקט המסמכים הרגיל שמשתמש במהדר
\text{XeLaTex}.
כן, זה לא מושלם אבל כאלה החיים.
מקווה שאפתור את הבעיה הזו בקרוב.
עד אז אני מקווה שהשבלונה הזאת תעזור למתחילים.
\end{frame}
\begin{frame}[plain,t]{ מה אפשר לעשות?}
מומלץ להשתמש בהנפשות
\onslide<2->{
\begin{enumerate}[label = \arabic*.]
\item \alt<2>{\textbf{כדי לחשוף טקסט}}{\color{gray} \textbf{כדי לחשוף טקסט}\color{mytextcolor}}
\item \alt<3>{\textbf{שורה אחר שורה}}{\color{gray} \textbf{שורה אחר שורה}\color{mytextcolor}}
\item \alt<4>{ \textbf{וכדי להדגיש את מה שמעניין באותו רגע
}}{\color{gray}\textbf{\textbf{וכדי להדגיש את מה שמעניין באותו רגע
}}
\color{mytextcolor}}
\end{enumerate}
}
\onslide<2->{
טקסט \alt<4>{\textbf{כמו}}{כמו} זה.
}
\onslide<3->{
או משוואות כמו זו:
\begin{align*}
\frac{\partial \mathbf{u}}{\partial t} + (\mathbf{u} \cdot \nabla) \mathbf{u} &= -\nabla p + \nu \nabla^2 \mathbf{u} + \mathbf{f}
\end{align*}
}
\onslide<4->{
כמו שפתאום המילה ״כמו״ למעלה מודגשת.
}
\only<5>{
\selectlanguage{english}
\begin{tikzpicture}[overlay]
\pgftransformshift{\pgfpointanchor{current page}{center}}
\node (img2) at (-1.,-1.0)
{
\begin{tikzpicture}[background rectangle/.style={fill=yellow!20, draw=mytextcolor, line width =.15cm}, show background rectangle]
\begin{axis}[
scale=.7,
ybar interval,
xmajorgrids=false,
ticks=none,
yticklabels={,,},
xticklabels={,,},
axis lines=middle,
enlargelimits,
xlabel={\color{black}$m$},
xmax=10*.9,ymax=55,
axis line style = {black},
% xlabel near ticks,
% x label style={at={(1.2,-.2)}},
y label style={
% rotate=90,
at={(-.05,.95)}},
ylabel={\color{black}$y$},
]
\addplot[fill=orange] plot coordinates
{(0,15) (1*.8,50) (2*.8,30) (3*.8,20) (4*.8,40) (5*.8,10)
(6*.8,30) (7*.8,20) (8*.8,40) (9*.8,30)};
\addplot[smooth,ultra thick, dashed, red] plot coordinates {
(0,50)
(9.25*.8,50)
};
\node[] at (250,450) {\color{red}$\bigO(\max\limits_i f_i(n))$};
\end{axis}
\node at (6,4) {\color{black}
\textbf{ניתוח נאיבי}
};
\node at (6,3) {\color{black}
$m \cdot \bigO(\max\limits_i f_i(n))$
};
\node at (6,2) {\color{black}
\textbf{ניתוח גלובלי }
};
\node at (6,1) {\color{black}
$\sum\limits_{i\leq m} f_i(n)$
};
\node at (7,1) {};
\node at (3.5,5) {\color{black}
\textbf{אפשר גם ליצור חלון קופצים}
};
\end{tikzpicture}
};
\end{tikzpicture}
}
\selectlanguage{hebrew}
\end{frame}
\begin{frame}[plain,t]{סימולציה של אלגוריתם}
\begin{columns}
\begin{column}{0.5\textwidth}
\selectlanguage{english}
\begin{tikzpicture}
[
scale = 0.4,
level 1/.style ={sibling distance=5.5cm, level distance=3cm},
level 2/.style ={sibling distance=6cm},
level 3/.style ={sibling distance=4cm},
every node/.style = {
text=black,
circle,thick,draw
},
every path/.style = {
line width=.75mm,
mytextcolor
}
]
\node[fill=red!50, visible on=<2->] (root) {$I$}
child[visible on=<3->] {
node[fill=orange!50] {$A$}
child[visible on=<4->] {
node[fill=orange!25] {$B$}
child[visible on=<6->] {
node[fill=yellow!50] {$E$}
}
child[visible on=<7->] {
node[fill=yellow!50] {$C$}
child[visible on=<9->] {
node[fill=blue!25] {$D$}
child[visible on=<10->] {
node[alt={<10->{fill=blue!50}}] {$H$}
}
}
}
}
child[visible on=<5->] {
node[fill=orange!25] {$F$}
child[visible on=<8->] {
node[fill=yellow!50] {$G$}
}
}
}
;
\begin{scope}[every node/.style={right}]
\onslide<11->{
\node at (4.5,0) {$d=0$};
\node at (4.5,-3) {$d=1$};
\node at (4.5,-6) {$d=2$};
\node at (4.5,-9) {$d=3$};
\node at (4.5,-12) {$d=4$};
\node at (4.5,-15) {$d=5$};
}
\end{scope}
\end{tikzpicture}
\end{column}
\begin{column}{0.5\textwidth}
\selectlanguage{english}
\begin{figure}[T]
\vspace{-1.cm}
\scalebox{0.7}{
\begin{minipage}{1.5\linewidth}
\begin{algorithm}[H]
\caption*{\text{BFS($G=(V,E),v)$}}\label{alg:BFS}
\begin{algorithmic}[1]
% \State Mark all vertices \textit{non-visited}.
\State Create empty list $L$.
\State Add $v$ to the tail of $L$.
\While{$L \neq \varnothing$ }
\State Let $u$ be the head of $L$.
\State Mark $u$ \textit{visited} and remove it from $L$.
\For{$w \in N(u)$}
\If{$w$ is \textit{non-visited} }
\State Add $w$ to the tail of $L$.
\EndIf
\EndFor
\EndWhile
\end{algorithmic}
\end{algorithm}
% \caption{Caption}
\end{minipage}
}
% \label{fig:enter-label}
\end{figure}
\begin{figure}[H]
\centering
\scalebox{0.7}{
\begin{tikzpicture}
\begin{scope}[every node/.style={circle,thick,draw}]
\node[alt={<3->{text=black,fill=orange!50}}] (A) at (2,4) {A};
\node[alt={<4->{text=black,fill=orange!25}}] (B) at (5,4) {B};
\node[alt={<7->{text=black,fill=yellow!50}}] (C) at (6,3) {C};
\node[alt={<9->{text=black,fill=blue!25}}] (D) at (7,2) {D};
\node[alt={<6->{text=black,fill=yellow!50}}] (E) at (4,3) {E};
\node[alt={<5->{text=black,fill=orange!25}}] (F) at (3,1) {F};
\node[alt={<8->{text=black,fill=yellow!50}}] (G) at (5,2) {G};
\node[alt={<10->{text=black,fill=blue!50}}] (H) at (8,3) {H};
\node[alt={<2->{text=black,fill=red!50}}] (I) at (1,2) {I};
\end{scope}
\begin{scope}[>={Stealth[black]},
every node/.style={circle},
every edge/.style={draw=mytextcolor,line width=1mm}]
\path [-] (A) edge[alt={<4->{draw=myblue}}] node {} (B);
\path [-] (A) edge[alt={<3->{draw=myblue}}] node {} (I);
\path [-] (A) edge[alt={<5->{draw=myblue}}] node {} (F);
\path [-] (B) edge[alt={<7->{draw=myblue}}] node {} (C);
\path [-] (B) edge[alt={<6->{draw=myblue}}] node {} (E);
\path [-] (C) edge[alt={<9->{draw=myblue}}] node {} (D);
\path [-] (D) edge[] node {} (G);
\path [-] (D) edge[alt={<10->{draw=myblue}}] node {} (H);
\path [-] (E) edge[] node {} (C);
\path [-] (E) edge[] node {} (G);
\path [-] (G) edge[alt={<8->{draw=myblue}}] node {} (F);
\end{scope}
\end{tikzpicture}
}
% \caption{Caption}
\label{fig:enter-label}
\end{figure}
\end{column}
\end{columns}
\end{frame}
% % UNCOMMENT TO TURN ON DARK MODE
\definecolor{mybackgroundcolor}{rgb}{0.05,0.1,0.125} % Dark blue/black
\definecolor{mytextcolor}{rgb}{0.8,0.8,0.8} % Grey
\definecolor{mysolutioncolor}{rgb}{1,1,0} % yellow
\definecolor{mysecondsolutioncolor}{rgb}{1,.5,.4} % orange
\definecolor{myblue}{rgb}{.56,.84,1} % blue
\definecolor{myred}{rgb}{1,.28,.3} % red
\definecolor{mygreen}{rgb}{0,1,0} % green
\setbeamercolor{background canvas}{bg=mybackgroundcolor}
\setbeamercolor{section title}{fg=white,bg=red!50!black}
\setbeamercolor{normal text}{fg=mytextcolor}
\definecolor{mPurple}{RGB}{91,48,105}
\setbeamercolor{palette primary}{bg=mybackgroundcolor}
% % % END OF DARKMODE CODE BLOCK
\end{document}