Friday, April 7, 2023

Latex - Comments and Strikethrough

Commands for placing comments and strikethrough words in PDF text created by Latex.

Comandos para colocar comentários e tachar palavras nos texto gerados pelo Latex.

\usepackage{xcolor}

% strikethrough words - tachar palavras
\usepackage[normalem]{ulem}
\newcommand\Riscafora{\bgroup\markoverwith
{\textcolor{red}{\rule[.5ex]{2pt}{1pt}}}\ULon}

% comments - colocar comentarios
\newcommand{\Comentarios}[1]{
    \noindent\centerline{\fcolorbox{red}{pink}{\begin{minipage}[t]{\textwidth}\underline{\textbf{Comentário:}}\\ #1\end{minipage}}}
}
% ---

Usage examples:


 







Font: StackExchange

No comments:

Post a Comment