I want to type some text with XeLaTeX like this picture on one page. Sorry I don't have any good minimal code.
\documentclass{report}
\usepackage{xepersian}
\settextfont{Yas}
\begin{document}
تقدیم به بهترین همنشینم حضرت مولوی
\end{document}
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI want to type some text with XeLaTeX like this picture on one page. Sorry I don't have any good minimal code.
\documentclass{report}
\usepackage{xepersian}
\settextfont{Yas}
\begin{document}
تقدیم به بهترین همنشینم حضرت مولوی
\end{document}
Like this?
\documentclass{report}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{xepersian}
\settextfont{Yas}
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
\node [fill, rectangle, top color=yellow, bottom color=white, anchor=north, minimum width=\paperwidth, minimum height=\paperheight] (box) at (current page.north){};
\end{tikzpicture}
تقدیم به بهترین همنشینم حضرت مولوی
تقدیم به بهترین همنشینم حضرت مولوی
تقدیم به بهترین همنشینم حضرت مولوی
تقدیم به بهترین همنشینم حضرت مولوی
\newpage
تقدیم به بهترین همنشینم حضرت مولوی
تقدیم به بهترین همنشینم حضرت مولوی
تقدیم به بهترین همنشینم حضرت مولوی
تقدیم به بهترین همنشینم حضرت مولوی
\end{document}
If you want the gradient on every page then you can use the everypage
package.
MWE, adapted from Background color gradient for entire document:
\documentclass[x11names]{report}
\usepackage{everypage}
\usepackage{tikz}
\usepackage{xepersian}
\AddEverypageHook{%
\begin{tikzpicture}[remember picture,overlay]%
\path [top color = Gold2,middle color = Gold2!30, bottom color = white] (current page.north east)rectangle (current page.south west);%
\end{tikzpicture}%
}%
\settextfont{Amiri}
\begin{document}\Huge
تقدیم به بهترین همنشینم حضرت مولوی
\end{document}
\begin{document}
Result:
top color
, middle color
, bottom color
. If you want a 'stronger' color then you can set the top color to be darker. If you want a faster fade then you can set the middle color to be lighter. See the xcolor manual for explanation on how to mix colors like Gold2!30
, particularly section 2.3.2 Meaning of standard color expressions on page 16 and the examples in Figure 5 Standard color expressions on page 37.