سلام، لطفا وارد شوید یا عضو شوید.

دیدن ارسال ها

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - afsaneh1370

صفحه: [1]
1
سلام

\documentclass{article}
\usepackage{fontspec}
\usepackage{xcolor}
\usepackage{xepersian}

\def\MyColor{black}
\def\MyDarkness{80}
\newcommand{\MyLightColor}[1]{{\color{\MyColor!\MyDarkness}#1}}

\begin{document}

\lr{\noindent
This is a test, \\
\MyLightColor{This is a test A,} \\
\def\MyColor{black}
\def\MyDarkness{60}
\MyLightColor{This is a test B,} \\
\def\MyColor{black}
\def\MyDarkness{40}
\MyLightColor{This is a test C,} \\
\def\MyColor{black}
\def\MyDarkness{20}
\MyLightColor{This is a test D,} \\
}

\lr{\noindent
\def\MyColor{blue} \\
\def\MyDarkness{80} \\
\MyLightColor{This is a test A,} \\
\def\MyColor{blue}
\def\MyDarkness{60}
\MyLightColor{This is a test B,} \\
\def\MyColor{blue}
\def\MyDarkness{40}
\MyLightColor{This is a test C,} \\
\def\MyColor{blue}
\def\MyDarkness{20}
\MyLightColor{This is a test D,} \\
}

\def\MyColor{black}
\def\MyDarkness{50}
این یک آزمایش است.%
\LTRfootnote{\MyLightColor{This is a test.}}
این یک آزمایش است.%
\footnote{\MyLightColor{
این یک آزمایش است.
}}

\def\MyColor{blue}
\def\MyDarkness{95}
{\color{\MyColor}
این یک آزمایش است.%
\LTRfootnote{\MyLightColor{This is a test.}}
این یک آزمایش است.%
\footnote{\MyLightColor{
این یک آزمایش است.
}}

\def\MyColor{blue}
\def\MyDarkness{50}
{\color{\MyColor!\MyDarkness}
این یک آزمایش است.%
\LTRfootnote{\MyLightColor{This is a test.}}
این یک آزمایش است.%
\footnote{\MyLightColor{
این یک آزمایش است.
}}

\end{document}

بخشین اگر این کد خیلی خلاصه و تمیز نیست. علت اینه که من از ConTeXt استفاده می‌کنم. شما اگر از
 زیپرشین استفاده می‌کنین باید بتونین اونو خیلی بهتر بازنویسی کنین.

اینم امضای من که نمی‌دونم چرا کار نمی‌کنه (اگه مدیران پارسی لاتک اونو درست کنن ممنون می‌شم.):

====================================================================

Any five year old kid can tell the truth, but it requires a man of sense to know how to lie well.


صفحه: [1]