
최종 문서에 포함될 필요가 없는 모든 설명 메모와 작업 라인을 원활하게 포함/제외하는 명령이나 스위치를 내 문서 상단에 정의하고 싶습니다. 하지만 주제를 다시 검토해야 하는 경우 유용합니다. ). 이는 방정식 환경 내의 텍스트와 줄 모두에 적용됩니다(그리고 이상적으로는 캡션이나 개념을 확장하려는 다른 모든 위치). 하나의 명령으로 이를 달성할 수 없는 경우 다양한 방정식 환경(멀티라인, 분할, eqnarray)을 구체적으로 처리하는 새 명령을 정의할 수 있습니다.
환경이 변경되기 전에 명령을 닫아야 할 수도 있다는 생각에는 괜찮습니다. 물론 텍스트에서 방정식으로, 또는 그 반대로 지속되면 사용하기가 더 간단할 것입니다.
저널의 템플릿이 이러한 명령을 재정의/제외하기 때문에 \comment 또는 \note를 사용할 수 없습니다.
(컬러 텍스트와 보이지 않는 텍스트를 모두 지배하는 하나의 명령), 이것:
% define an environment for verbose notes
\newcommand{\verbose}[1]{\textcolor{blue}{#1}}
% and then when it’s time for the paper, you replace this with
%\newcommand{\verbose}[1]{}
&
일반 텍스트에는 잘 작동하지만 정렬 이나 분할 환경 에서 사용하면 \\
제대로 컴파일되지 않습니다.
명령을 다음으로 수정하면 \newcommand{\verbose}[1]{\textcolor{blue}{#1}\\}
(및 로 \verbose{...}\\
) \verbose...}
중간 방정식 줄이 보이지 않을 때 추가 캐리지 리턴이 발생하지만 주석 다음에 계속되는 텍스트 단락의 흐름이 중단되고 여전히 정렬 표시 \verbose{...}
에 문제가 있습니다 .&
남(N)WE
\documentclass{report}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{color}
% define an environment for verbose notes
%\newcommand{\verbose}[1]{\textcolor{blue}{#1}}
% and then when it’s time for the paper, you replace this with
\newcommand{\verbose}[1]{}
\begin{document}
Lorem ipsum... \verbose{LOREM IPSUM.} This text should follow on in the same paragraph.
\begin{equation}
\begin{split}
a&=b\\
b&=c\\
\therefore a&=c\\
&\verbose{by~some~logic}\\
c&=d\\
&\verbose{=d}
\end{split}
\end{equation}
continuing text; also
\begin{equation}
\begin{split}
a&=b\\
\verbose{c&=d}\\
e&=f
\end{split}
\end{equation}
final text; note the vertical separation above this compared to previous text.
\end{document}