
MWE:
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\begin{document}
\section{Some Section}
First (long) paragraph. \\
Second (long) paragraph. \\
\input{some_figure}
Third (long) paragraph. \\
Fourth (long) paragraph.
\end{document}
어디에 some_figure.txt
다음이 포함되어 있습니까 ?
\begin{figure}[t]
\includegraphics[width=3cm]{example-image}
\end{figure}
\\
"두 번째 (긴) 단락" 뒤의 줄바꿈 입니다. 다음 줄 "세 번째 (긴) 문단"에 자동으로 들여쓰기가 적용됩니다. 다음 그림에서 볼 수 있듯이.
이러한 들여쓰기를 (자동으로) 방지/비활성화하는 방법이 있습니까?
나는 보통 \input{some_figure}
이 문제를 피하기 위해 섹션의 시작/끝 부분으로 이동합니다. 그러나 텍스트가 너무 커지면 실제로는 선택 사항이 아닙니다.
답변1
실제 "단락"을 의미하는 경우 egreg의 조언을 따르십시오(" \\
단락을 끝내는 데 사용하지 말고 빈 줄을 사용하십시오"). 그러나 단순히 줄 바꿈을 강제하는 경우 문제는 들여쓰기 문제가 아니라 공백 공백 문제입니다.
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx,filecontents}
\begin{filecontents*}{some_figure}
\begin{figure}[t]
\includegraphics[width=3cm]{example-image}
\end{figure}
\end{filecontents*}
\begin{document}
\section{Some Section}
First (long) paragraph. \\
Second (long) paragraph. \\
\input some_figure \unskip
Third (long) paragraph. \\
Fourth (long) paragraph.
\end{document}
번갈아,
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx,filecontents}
\begin{filecontents*}{some_figure}
\begin{figure}[t]
\includegraphics[width=3cm]{example-image}
\end{figure}
\end{filecontents*}
\begin{document}
\section{Some Section}
First (long) paragraph. \\
Second (long) paragraph.
\input some_figure \\
Third (long) paragraph. \\
Fourth (long) paragraph.
\end{document}