\documentclass{beamer}
أنشئ شرائح أكاديمية احترافية باستخدام LaTeX Beamer. يغطي بنية الإطارات والسمات والمعادلات الرياضية وتأثيرات التراكب (overlays) وعرضًا تجريبيًا كاملًا من 5 شرائح جاهزًا للتجميع في متصفحك.
\begin{frame}
كل شريحة هي بيئة frame. وبداخلها يمكنك استخدام أي شيفرة LaTeX: فقرات وitemize وأعمدة ومعادلات وبيئات block الخاصة بـ Beamer.
\begin{frame}{Your Slide Title}
% Plain text paragraph
Beamer compiles your \LaTeX{} source to a PDF slide deck.
Each \texttt{frame} environment produces one slide.
\bigskip
% Bullet list
\begin{itemize}
\item First bullet point
\item Second bullet point
\item Third bullet point — with \textbf{bold} or \emph{italic}
\end{itemize}
\bigskip
% Two columns
\begin{columns}[T]
\column{0.5\textwidth}
Left column content here.
\column{0.5\textwidth}
Right column content here.
\end{columns}
\end{frame}\usetheme{ThemeName}
يأتي Beamer مع 26 سمة مضمَّنة. إليك أكثرها فائدة ومتى تختار كلًا منها. اضبطها باستخدام \usetheme{ThemeName} .
شريط رأس مع تنقل بين الأقسام. المظهر الأكاديمي الكلاسيكي للمؤتمرات. يعمل جيدًا مع سمة الألوان seahorse أو dolphin.
شجرة الأقسام في الرأس، وتذييل يتضمن المؤلف والعنوان ورقم الصفحة. كثافة معلومات عالية للعروض الأطول.
شريط رأس متدرج مع بيئات block ذات زوايا مستديرة. مظهر أنيق وحديث مقارنةً بالإعدادات الافتراضية الأقدم لـ Beamer.
لمسة حمراء وطباعة نظيفة بخط sans-serif. تنقل بسيط دون ازدحام. مناسب للعروض المؤسسية أو الصناعية.
سمة من جهة خارجية (تتطلب تثبيتًا). تصميم مسطح وخطوط كبيرة وتذييل بشريط تقدم. شائعة جدًا في شرائح arXiv.
دون زخرفة: شرائح بيضاء عادية. مثالية للتصاميم ذات التحكم الكامل حيث تبني مظهرك الخاص باستخدام tikz أو أوامر مخصصة.
\begin{equation}
يدعم Beamer حزمة amsmath بالكامل. استخدم block وalertblock وexampleblock لتأطير المعادلات والتعريفات الأساسية.
\begin{frame}{Self-Attention Equation}
Attention maps each token to a weighted sum of all others:
\begin{equation}
\text{Attention}(Q, K, V)
= \text{softmax}\!\left(\frac{QK^\top}{\sqrt{d_k}}\right) V
\end{equation}
\begin{block}{Complexity note}
Standard self-attention is $\mathcal{O}(n^2)$ in sequence
length~$n$. Our approach reduces this to $\mathcal{O}(n\log n)$.
\end{block}
\begin{alertblock}{Important}
Large $d_k$ causes vanishing gradients in the softmax —
hence the $\sqrt{d_k}$ scaling factor.
\end{alertblock}
\begin{exampleblock}{Example}
For $n = 512$, $d_k = 64$: scaling factor $= 8$.
\end{exampleblock}
\end{frame}blockمربع مؤطر محايد بعنوان مخصص
alertblockمربع بلمسة حمراء للتحذيرات أو النتائج الأساسية
exampleblockمربع بلمسة خضراء للأمثلة
\pause
يتيح نظام التراكب في Beamer إظهار المحتوى خطوة بخطوة داخل إطار واحد. ينتج الإطار ذو 3 خطوات تراكب 3 صفحات PDF.
\pauseقسّم الإطار عند هذه النقطة، وهو الأكثر شيوعًا
\item<2->أظهر العنصر من التراكب 2 فصاعدًا
\only<3>أظهر المحتوى في التراكب 3 فقط
\uncover<2->احجز المساحة؛ وأظهر المحتوى من التراكب 2
% \pause — reveal each item one at a time
\begin{frame}{Incremental List}
\begin{itemize}
\item<1-> Always visible from slide 1
\item<2-> Appears on slide 2
\item<3-> Appears on slide 3
\end{itemize}
\end{frame}
% \only — content shown on specific slides only
\begin{frame}{Conditional Content}
\only<1>{This text is shown on the first overlay only.}
\only<2>{This text replaces it on the second overlay.}
\only<2>{
\begin{alertblock}{Key Takeaway}
\only{} is useful for revealing conclusions dramatically.
\end{alertblock}
}
\end{frame}
% \uncover — space is always reserved; content revealed progressively
\begin{frame}{Reserved Space}
Line A is always here.\\
\uncover<2->{Line B appears on slide 2 but its space was reserved.}\\
\uncover<3->{Line C appears on slide 3.}
\end{frame}
% \alert — highlight text on a specific overlay
\begin{frame}{Highlighting}
The \alert<2>{attention mechanism} (slide 2 highlight)
drives modern NLP architectures.
\end{frame}\include{presentation}
عرض من 5 إطارات يغطي محاضرة بحثية كاملة: العنوان، ومقدمة مع تراكبات، ورياضيات مع كتل، وجدول نتائج، وخاتمة. يُجمَّع بـ pdfLaTeX.
\documentclass[aspectratio=169, 12pt]{beamer}
% ---- Theme & colours ----
\usetheme{Madrid}
\usecolortheme{seahorse}
\usefonttheme{professionalfonts}
% ---- Encoding ----
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
% ---- Math ----
\usepackage{amsmath, amssymb}
% ---- Graphics ----
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{tikz}
% ---- Metadata ----
\title{Deep Learning for NLP}
\subtitle{A Gentle Introduction}
\author{Jane Researcher}
\institute{University of Example}
\date{\today}
\begin{document}
% ---- Title frame ----
\begin{frame}
\titlepage
\end{frame}
% ---- Table of contents ----
\begin{frame}{Outline}
\tableofcontents
\end{frame}
% ---- Section 1 ----
\section{Introduction}
\begin{frame}{What is Deep Learning?}
Deep learning trains multi-layer neural networks to learn
hierarchical representations from data.
\bigskip
\textbf{Key building blocks:}
\begin{itemize}
\item<1-> Linear layers: $\mathbf{y} = W\mathbf{x} + \mathbf{b}$
\item<2-> Activation functions: ReLU, sigmoid, GELU
\item<3-> Optimisation: stochastic gradient descent
\end{itemize}
\end{frame}
% ---- Section 2 ----
\section{Attention Mechanism}
\begin{frame}{Self-Attention}
Attention maps each token to a weighted sum of all others:
\begin{equation}
\text{Attention}(Q, K, V)
= \text{softmax}\!\left(\frac{QK^\top}{\sqrt{d_k}}\right) V
\end{equation}
\pause
\begin{block}{Complexity}
Standard self-attention is $\mathcal{O}(n^2)$ in sequence length $n$.
\end{block}
\end{frame}
% ---- Section 3 ----
\section{Results}
\begin{frame}{Benchmark Results}
\begin{center}
\begin{tabular}{lcc}
\toprule
Model & BLEU & ROUGE-L \\
\midrule
Baseline & 28.4 & 41.2 \\
Transformer & 41.0 & 52.3 \\
\textbf{Ours} & \textbf{44.2} & \textbf{55.1} \\
\bottomrule
\end{tabular}
\end{center}
\only<2>{
\begin{alertblock}{Key Takeaway}
Our model improves BLEU by 3.2 points over the transformer baseline.
\end{alertblock}
}
\end{frame}
% ---- Conclusion ----
\begin{frame}{Conclusion}
\begin{itemize}
\item Introduced a sub-quadratic attention mechanism
\item Demonstrated gains on BLEU and ROUGE benchmarks
\item Code available at \texttt{github.com/example/repo}
\end{itemize}
\bigskip
\centering
\Large\textbf{Thank you!}\\[6pt]
\normalsize\texttt{[email protected]}
\end{frame}
\end{document}عرض Beamer التقديمي الكامل، بتراكباته وكتل الرياضيات وجدول النتائج، محمَّل مسبقًا وجاهز للتجميع. دون الحاجة إلى تثبيت.
\section{FAQ}
ما نسبة الأبعاد التي يجب أن أستخدمها في Beamer؟
Use aspectratio=169 (16:9) for modern widescreen displays and conference projectors. Use aspectratio=43 (4:3) only if your venue explicitly requires it. Set the aspect ratio in the \documentclass options: \documentclass[aspectratio=169]{beamer}.
كيف أغيّر سمة Beamer وألوانه؟
Use \usetheme{ThemeName} and \usecolortheme{ColorName} in the preamble. Themes control the layout (header, footer, sidebar) while color themes apply a color scheme. Popular combinations: Madrid + seahorse, Berlin + beaver, Warsaw + orchid. You can also define custom colors with \definecolor.
How do overlays and \pause work in Beamer?
\pause is the simplest overlay — it splits a frame into sub-slides, revealing content sequentially. For fine-grained control, use overlay specifications like \item<2-> (visible from slide 2), \only<3>{…} (shown only on slide 3), and \uncover<2->{…} (space reserved, content revealed on slide 2+).
هل يمكنني وضع معادلات في شرائح Beamer؟
نعم، يدعم Beamer حزمة amsmath بالكامل. استخدم بيئات equation وalign وgather كالمعتاد. وللمعادلات العريضة جدًا في الشرائح الضيقة، فكّر في استخدام split أو multline. وتفيد بيئات block وalertblock وexampleblock في تأطير المعادلات الأساسية.
كيف أنشئ شرائح بعمودين؟
Use the columns environment: \begin{columns}[T] \column{0.5\textwidth} left content \column{0.5\textwidth} right content \end{columns}. The [T] option aligns column tops. You can also use minipage if you need more control over spacing.
يحتوي ملف PDF الخاص بـ Beamer على صفحات كثيرة جدًا، كيف أخفي إطارات التراكب؟
When sharing PDFs for reading (not presenting), use \documentclass[handout]{beamer}. This collapses all overlays of each frame into a single page. Combine with the pgfpages package to print 2-up or 4-up handouts: \pgfpagesuselayout{2 on 1}[a4paper].
افتح قالب Beamer في FormaTeX وجمّع شرائحك إلى PDF في ثوانٍ، دون تثبيت TeX Live ودون أي إعداد لـ LaTeX.