קוד:ראש: הבדלים בין גרסאות בדף

מתוך Math-Wiki
אין תקציר עריכה
אין תקציר עריכה
שורה 23: שורה 23:
\newtheorem{question}[thm]{\protect\questionname}
\newtheorem{question}[thm]{\protect\questionname}
\newtheorem{lem}[thm]{\protect\lemmaname}
\newtheorem{lem}[thm]{\protect\lemmaname}
\newtheorem{definition}[thm]{\protect\definitionname}




שורה 37: שורה 39:
   \addto\captionsenglish{\renewcommand{\questionname}{Question}}
   \addto\captionsenglish{\renewcommand{\questionname}{Question}}
   \addto\captionsenglish{\renewcommand{\theoremname}{Theorem}}
   \addto\captionsenglish{\renewcommand{\theoremname}{Theorem}}
  \addto\captionsenglish{\renewcommand{\definitionname}{Definition}}
   \addto\captionshebrew{\renewcommand{\questionname}{שאלה}}
   \addto\captionshebrew{\renewcommand{\questionname}{שאלה}}
   \addto\captionshebrew{\renewcommand{\theoremname}{משפט}}
   \addto\captionshebrew{\renewcommand{\theoremname}{משפט}}
   \addto\captionshebrew{\renewcommand{\lemmaname}{למה}}
   \addto\captionshebrew{\renewcommand{\lemmaname}{למה}}
  \addto\captionshebrew{\renewcommand{\definitionname}{הגדרה}}
   \providecommand{\questionname}{שאלה}
   \providecommand{\questionname}{שאלה}
   \providecommand{\theoremname}{משפט}
   \providecommand{\theoremname}{משפט}
   \providecommand{\lemmaname}{למה}
   \providecommand{\lemmaname}{למה}
  \providecommand{\definitionname}{הגדרה}


\begin{document}
\begin{document}

גרסה מ־16:03, 1 בספטמבר 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{definition}[thm]{\protect\definitionname}


\theoremstyle{definition} \newtheorem{quesh}{שאלה} \renewenvironment{question}{\begin{quesh}}{\end{quesh}}

\makeatother

\usepackage{xunicode} \usepackage{polyglossia} \setdefaultlanguage{hebrew} \setotherlanguage{english}

 \addto\captionsenglish{\renewcommand{\questionname}{Question}}
 \addto\captionsenglish{\renewcommand{\theoremname}{Theorem}}
 \addto\captionsenglish{\renewcommand{\definitionname}{Definition}}
 \addto\captionshebrew{\renewcommand{\questionname}{שאלה}}
 \addto\captionshebrew{\renewcommand{\theoremname}{משפט}}
 \addto\captionshebrew{\renewcommand{\lemmaname}{למה}}
 \addto\captionshebrew{\renewcommand{\definitionname}{הגדרה}}
 \providecommand{\questionname}{שאלה}
 \providecommand{\theoremname}{משפט}
 \providecommand{\lemmaname}{למה}
 \providecommand{\definitionname}{הגדרה}

\begin{document}