اذهب إلى المحتوى
  • 0

كيف أغيّر لون نص على LaTeX بشكلٍ مؤقّت؟

محمد بوسكوري

السؤال

Recommended Posts

  • 0

سنقوم بتعريف conditional  -شرط- عن طريق ifproofread\ وَ hangemarker/.

بطريقة أخرى يمكننا استعمال color{red} some text \normalcolor\ حيث تمكّننا هذه الخاصية من تغيير لون النّص بشكل مؤقت، وهذه هي شفرة الكود:

 

\documentclass{article}

\usepackage[x11names]{xcolor}

\newif\ifproofread




\newcommand{\changemarker}[1]{%
\ifproofread
\textcolor{red}{#1}%
\else
#1%
\fi
}

\begin{document}
\proofreadfalse  % All is accepted so far

Here is something. \changemarker{And this is added by me}

\proofreadtrue  % From now one, this is not yet confirmed. 


Here is something. \changemarker{And this is added by me and was not yet accepted}

\end{document}

 هذه نتيجة عملنا:

7LQ3m.thumb.jpg.3bb435673b59beeb0e3986bc

تم التعديل في بواسطة E.Nourddine
رابط هذا التعليق
شارك على الشبكات الإجتماعية

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...