הבדלים בין גרסאות בדף "קוד:ראש"
מ (31 גרסאות יובאו) |
|||
(26 גרסאות ביניים של 3 משתמשים אינן מוצגות) | |||
שורה 1: | שורה 1: | ||
− | \documentclass[ | + | \documentclass[english,hebrew]{article} |
− | \usepackage | + | \usepackage{amsthm} |
− | + | ||
\usepackage{hyperref} | \usepackage{hyperref} | ||
\usepackage{amssymb} | \usepackage{amssymb} | ||
\usepackage{amsmath} | \usepackage{amsmath} | ||
+ | \usepackage{enumerate} | ||
+ | \usepackage{array} | ||
+ | \usepackage{fontspec} | ||
− | \usepackage{ | + | \setmainfont[ |
− | \usepackage{ | + | Extension=.ttf, |
+ | UprightFont= *-Regular, | ||
+ | BoldFont=*-Bold, | ||
+ | ItalicFont=NachlieliCLM-LightOblique, | ||
+ | BoldItalicFont=*-Bold, | ||
+ | ]{Alef} | ||
+ | |||
+ | \makeatletter | ||
+ | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. | ||
+ | \theoremstyle{plain} | ||
+ | \newtheorem{thm}{\protect\theoremname} | ||
+ | \theoremstyle{plain} | ||
+ | \newtheorem{question}[thm]{\protect\questionname} | ||
+ | \newtheorem{lem}[thm]{\protect\lemmaname} | ||
+ | \newtheorem{cor}[thm]{\protect\corollaryname} | ||
+ | \newtheorem{prop}[thm]{\protect\propositionname} | ||
+ | |||
+ | |||
+ | |||
+ | \theoremstyle{definition} | ||
+ | \newtheorem{definition}{\protect\definitionname} | ||
+ | \newtheorem{example}{\protect\examplename} | ||
+ | \newtheorem{quesh}{שאלה} | ||
+ | \renewenvironment{question}{\begin{quesh}}{\end{quesh}} | ||
+ | |||
+ | |||
+ | |||
+ | \theoremstyle{remark} | ||
+ | \newtheorem{remark}{\protect\remarkname} | ||
+ | |||
+ | \makeatother | ||
+ | |||
+ | \usepackage{xunicode} | ||
+ | \usepackage{polyglossia} | ||
+ | \setdefaultlanguage{hebrew} | ||
+ | \setotherlanguage{english} | ||
+ | \addto\captionsenglish{\renewcommand{\questionname}{Question}} | ||
+ | \addto\captionsenglish{\renewcommand{\theoremname}{Theorem}} | ||
+ | \addto\captionsenglish{\renewcommand{\corollaryname}{Corollary}} | ||
+ | \addto\captionsenglish{\renewcommand{\propositionname}{Proposition}} | ||
+ | \addto\captionsenglish{\renewcommand{\definitionname}{Definition}} | ||
+ | \addto\captionsenglish{\renewcommand{\examplename}{Example}} | ||
+ | \addto\captionsenglish{\renewcommand{\remarkname}{Remark}} | ||
+ | \addto\captionshebrew{\renewcommand{\questionname}{שאלה}} | ||
+ | \addto\captionshebrew{\renewcommand{\theoremname}{משפט}} | ||
+ | \addto\captionshebrew{\renewcommand{\corollaryname}{מסקנה}} | ||
+ | \addto\captionshebrew{\renewcommand{\propositionname}{טענה}} | ||
+ | \addto\captionshebrew{\renewcommand{\lemmaname}{למה}} | ||
+ | \addto\captionshebrew{\renewcommand{\definitionname}{הגדרה}} | ||
+ | \addto\captionshebrew{\renewcommand{\examplename}{דוגמה}} | ||
+ | \addto\captionshebrew{\renewcommand{\remarkname}{הערה}} | ||
+ | \providecommand{\questionname}{שאלה} | ||
+ | \providecommand{\theoremname}{משפט} | ||
+ | \providecommand{\corollaryname}{מסקנה} | ||
+ | \providecommand{\propositionname}{טענה} | ||
+ | \providecommand{\lemmaname}{למה} | ||
+ | \providecommand{\definitionname}{הגדרה} | ||
+ | \providecommand{\examplename}{דוגמה} | ||
+ | \providecommand{\remarkname}{הערה} | ||
\begin{document} | \begin{document} |
גרסה אחרונה מ־20:22, 4 באוקטובר 2014
\documentclass[english,hebrew]{article} \usepackage{amsthm} \usepackage{hyperref} \usepackage{amssymb} \usepackage{amsmath} \usepackage{enumerate} \usepackage{array} \usepackage{fontspec}
\setmainfont[
Extension=.ttf, UprightFont= *-Regular, BoldFont=*-Bold, ItalicFont=NachlieliCLM-LightOblique,
BoldItalicFont=*-Bold, ]{Alef}
\makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \theoremstyle{plain} \newtheorem{thm}{\protect\theoremname}
\theoremstyle{plain}
\newtheorem{question}[thm]{\protect\questionname} \newtheorem{lem}[thm]{\protect\lemmaname} \newtheorem{cor}[thm]{\protect\corollaryname} \newtheorem{prop}[thm]{\protect\propositionname}
\theoremstyle{definition} \newtheorem{definition}{\protect\definitionname} \newtheorem{example}{\protect\examplename} \newtheorem{quesh}{שאלה} \renewenvironment{question}{\begin{quesh}}{\end{quesh}}
\theoremstyle{remark} \newtheorem{remark}{\protect\remarkname}
\makeatother
\usepackage{xunicode} \usepackage{polyglossia} \setdefaultlanguage{hebrew} \setotherlanguage{english}
\addto\captionsenglish{\renewcommand{\questionname}{Question}} \addto\captionsenglish{\renewcommand{\theoremname}{Theorem}} \addto\captionsenglish{\renewcommand{\corollaryname}{Corollary}} \addto\captionsenglish{\renewcommand{\propositionname}{Proposition}} \addto\captionsenglish{\renewcommand{\definitionname}{Definition}} \addto\captionsenglish{\renewcommand{\examplename}{Example}} \addto\captionsenglish{\renewcommand{\remarkname}{Remark}} \addto\captionshebrew{\renewcommand{\questionname}{שאלה}} \addto\captionshebrew{\renewcommand{\theoremname}{משפט}} \addto\captionshebrew{\renewcommand{\corollaryname}{מסקנה}} \addto\captionshebrew{\renewcommand{\propositionname}{טענה}} \addto\captionshebrew{\renewcommand{\lemmaname}{למה}} \addto\captionshebrew{\renewcommand{\definitionname}{הגדרה}} \addto\captionshebrew{\renewcommand{\examplename}{דוגמה}} \addto\captionshebrew{\renewcommand{\remarkname}{הערה}} \providecommand{\questionname}{שאלה} \providecommand{\theoremname}{משפט} \providecommand{\corollaryname}{מסקנה} \providecommand{\propositionname}{טענה} \providecommand{\lemmaname}{למה} \providecommand{\definitionname}{הגדרה} \providecommand{\examplename}{דוגמה} \providecommand{\remarkname}{הערה}
\begin{document}