간단한 질문입니다. 노트의 배경색을 변경할 수 있나요?
이것이 제가 fixme를 설정하는 방법입니다
\usepackage{fixme}
\fxsetup{
status=draft,
author=,
layout=inline, % also try footnote or pdfnote
theme=color
}
\definecolor{fxnote}{rgb}{0.8000,0.0000,0.0000}
이제 예를 들어 배경색을 파란색으로 설정하고 싶습니다.
고마워
답변1
이건 어때:
\documentclass{article}
\usepackage{xcolor}% provides \colorlet
\usepackage{fixme}
\fxsetup{
status=draft,
author=,
layout=inline,
theme=color
}
\definecolor{fxnote}{rgb}{0.8000,0.0000,0.0000}
% define the background colour:
\colorlet{fxnotebg}{yellow}
% refedine the layout macro:
\makeatletter
\renewcommand*\FXLayoutInline[3]{%
\@fxdocolon {#3}{%
\@fxuseface {inline}%
\colorbox{fx#1bg}{\color {fx#1}\ignorespaces #3\@fxcolon #2}}}
\makeatother
\begin{document}
Some text \fxnote{other text} \fxnote*{blub}{blah}
\end{document}
편집하다:다음 \hl
은soul
패키지:
\documentclass{article}
\usepackage{xcolor}% provides \colorlet
\usepackage{soul}% provides \hl
\usepackage{fixme}
\fxsetup{
status=draft,
author=,
layout=inline,
theme=color
}
\definecolor{fxnote}{rgb}{0.8000,0.0000,0.0000}
% define the background colour:
\colorlet{fxnotebg}{yellow}
% refedine the layout macro:
\makeatletter
\renewcommand*\FXLayoutInline[3]{%
\@fxdocolon {#3}{%
\@fxuseface {inline}%
\begingroup
\sethlcolor{fx#1bg}%
\color {fx#1}\ignorespaces \hl{#3\@fxcolon #2}%
\endgroup}}
\makeatother
\begin{document}
Some text \fxnote{other text} \fxnote*{blub}{blah}
Some Text \fxnote{A somewhat longer note that is long enough to break into the next line
for demonstration purposes} and some more text.
\end{document}