동사/lstinline 텍스트는 라인에서 라인 브레이크없이 라인 마진 밖으로 나옵니다.

StackOverflow https://stackoverflow.com/questions/1524289

문제

그만큼 listings 패키지는 내부의 라인 브레이크를 지원합니다 lstlisting 환경. 그러나 자동 라인 브레이크를 생성하지 않습니다 lstinline 환경. 예를 들어, 다음 단락에서 첫 번째 줄은 여백에서 나옵니다.

The parameters \lstinline|base_rmr_brain|, \lstinline|base_rmr_fat|, and \lstinline|baseline_basal_rmr_of_lean_tissues| are metabolic rates of brain, fat, and lean tissues in kcal/(kg*day). The parameter \lstinline|mass_brain| denotes the mass of the brain in gram.

이 문제에 대한 해결책이 있습니까?

도움이 되었습니까?

해결책

그만큼 교양 있는 목록의 기능은 도움이 될 수 있습니다.

\lstset{
  literate={\_}{}{0\discretionary{\_}{}{\_}}%
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top