1
قلمها و حروف / پاسخ : کم رنگ کردن قلم پاورقی
« : اوت 03, 2014, 08:22:20 pm »
سلام
بخشین اگر این کد خیلی خلاصه و تمیز نیست. علت اینه که من از ConTeXt استفاده میکنم. شما اگر از
زیپرشین استفاده میکنین باید بتونین اونو خیلی بهتر بازنویسی کنین.
اینم امضای من که نمیدونم چرا کار نمیکنه (اگه مدیران پارسی لاتک اونو درست کنن ممنون میشم.):
\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}
\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.
Any five year old kid can tell the truth, but it requires a man of sense to know how to lie well.