Hebrew template
Author
Gil ben-shachar
Last Updated
9年前
License
Creative Commons CC BY 4.0
Abstract
A template for Hebrew documents, just some settings and title page.
A template for Hebrew documents, just some settings and title page.
\documentclass[12pt]{article}
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{a4paper} % ... or a4paper or a5paper or
%\geometry{landscape} % Activate for for rotated page
%Mathmatics symbols lybraries
\usepackage{amssymb}
\usepackage{amsmath}
%Hebrew packges
\usepackage{fontspec,xltxtra,xunicode}
\usepackage{polyglossia}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{H.W. \#1}
\usepackage{bidi}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[iso,english]{isodate}
%Font declaration
\newfontfamily {\H}[Scale=1]{David CLM}
\newfontfamily {\Hb}[Scale=1]{David CLM Bold}
\newfontfamily {\E}[Scale=0.9]{Courier}
\newfontfamily {\Eb}[Scale=0.9]{Courier Bold}
\H
\setdefaultlanguage{english}
\setotherlanguage{hebrew}
\DeclareMathOperator{\Span}{Span}
\DeclareMathOperator{\ra}{\rightarrow}
\DeclareMathOperator{\st}{\; | \;}
\newcommand{\qed}{\blacksquare}
\def\quo#1#2{
\raise0.5ex\hbox{$#1$}/\lower0.8ex\hbox{$#2$}
}
\newcommand{\per}[1]{\left(#1\right)}
\newcommand{\set}[1]{\lbrace #1 \rbrace}
\newcommand{\ang}[1]{\langle #1 \rangle}
\newcommand{\limn}{\lim_{n \rightarrow \infty}}
\newcommand{\pset}[1]{\mathcal{P}\left(#1\right)}
\newcommand{\bsls}{\backslash}
%set default item symbol to be bullet
\def\labelitemi{$\bullet$}
\defaultfontfeatures{Mapping=tex-text}
\begin{document}
\begin{titlepage}
\begin{center}
\setRL
\H
% Upper part of the page. The '~' is needed because \\
% only works if a paragraph has started.
\textsc{\LARGE כותרת 1}
\\[1.5cm]
% Title
{ \huge \bfseries כותרת 2
\\[0.4cm] }
% Author and supervisor
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
שם
\end{flushleft}
\end{minipage}
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
123456789
\end{flushright}
\end{minipage}
\vfill
% Bottom of the page
{\large \today}
\end{center}
\end{titlepage}
\setRL
\H
\begin{enumerate}
\item[.1]
\begin{enumerate}
\item[א.]
\end{enumerate}
\end{enumerate}
\unsetRL
\end{document}