• Welcome to تالار گفتگوی پارسی‌لاتک.
 
از تاریخ ۱۳۹۳/۸/۱۴ به دلیل ارائه خدمات بهتر به سایت جدید پرسش و پاسخ مهاجرت کرده‌ایم؛ از این رو امکان عضویت و ارسال پست در تالار غیرفعال شده است. لطفاً برای پرسیدن سوال‌های خود به سایت جدید مراجعه کنید.

ورود به سایت جدید

Menu

Show posts

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.

Show posts Menu

Messages - afsaneh1370

#1
قلم‌ها و حروف / پاسخ : کم رنگ کردن قلم پاورقی
آگوست 03, 2014, 08:22:20 بعد از ظهر
سلام


\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.