
짧은 질문이 있습니다. Fixme 주석의 제목을 제거하거나 조정하는 것이 어떻게 가능합니까? 나는 이미 다음과 같은 것을 시도했습니다.
\renewcommand*\FXLayoutMargin[3]{%
{\@fxuseface{margin}\ignorespaces[#3 \fxnotename{#1}: #2]}}
하지만 #3 또는 #2 변수를 제거하면 라텍스 빌드 프로세스가 중단됩니다.
다음은 최소한의 예입니다.
\documentclass{scrartcl}
\usepackage{graphicx}
\usepackage[status=draft]{fixme}
\fxsetface{margin}{\tiny}
\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
\fxnote{Im the content - i dont like the title}
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{document}
원하는 출력은 다음과 같습니다.
답변1
여전히 제목을 원하는 경우 로고와 노트 텍스트를 변경할 수 있습니다(언어가 영어로 설정된 경우).
\renewcommand\fixmelogo{\textsf{MyLogo}}
\renewcommand\fxenglishnotename{MyNoteName}
둘 다 설정하는 것이 가능하더라도 정의에 {}
a가 있으므로 제목을 완전히 제거하려는 경우에는 실제로 도움이 되지 않습니다 .:
\FXLayoutMargin
내 정의가 귀하가 지정한 것과 동일하지 않기 때문에 동일한 버전의 sty 파일이 있는지 확신할 수 없습니다 . 세 가지 입력이 있는데, 여기에는 #1
노트 이름, #2
노트 텍스트, #3
로고가 있습니다. 따라서 제거하면 안 됩니다 #2
. 귀하의 버전에서 #3 \fxnotename{#1}:
. 내부 명령을 엉망으로 만들고 있으므로 \makeatletter
앞과 뒤에 넣어야 합니다 \makeatother
. 내 버전에서는 이전에 다음을 포함했습니다 \begin{document}
.
\makeatletter
\renewcommand*\FXLayoutMargin[3]{%
\marginpar[%
%\raggedleft\@fxuseface{margin}\ignorespaces#3 \fxnotename{#1}: #2]{%
\raggedleft\@fxuseface{margin} #2]{%
%\raggedright\@fxuseface{margin}\ignorespaces#3 \fxnotename{#1}: #2}}
\raggedright\@fxuseface{margin} #2}}
\makeatother
답변2
StefanH 솔루션의 가능한 대안으로 다음을 사용할 수 있습니다.
\fxsetup{theme=color}
(= 다양한 종류의 메모 간의 차이점: fxnote
, fxwarning
, fxerror
,는 fxfatal
"Note"라는 명시적인 이름이 없는 색상입니다.)
다음과 함께:
author=
(= FiXme가 삽입되지 않았습니다)
패키지 옵션 fixme
.
색상이 있는 노트가 마음에 들지 않으면 다음과 같이 색상을 정의할 수 있습니다.
\definecolor{fxnote}{rgb}{0.0000,0.0000,0.0000}
\definecolor{fxwarning}{rgb}{0.0000,0.0000,0.0000}
\definecolor{fxerror}{rgb}{0.0000,0.0000,0.0000}
\definecolor{fxfatal}{rgb}{0.0000,0.0000,0.0000}
(이 줄은 MWE에 주석 처리되어 있습니다.)
\documentclass{scrartcl}
\usepackage{graphicx}
\usepackage[status=draft,author=]{fixme}
\fxsetup{theme=color}
\fxsetface{margin}{\tiny}
%\definecolor{fxnote}{rgb}{0.0000,0.0000,0.0000}
%\definecolor{fxwarning}{rgb}{0.0000,0.0000,0.0000}
%\definecolor{fxerror}{rgb}{0.0000,0.0000,0.0000}
%\definecolor{fxfatal}{rgb}{0.0000,0.0000,0.0000}
\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
\fxnote{Im the content - i dont like the title}
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{document}