이것은 나를 미치게합니다.센터 라텍스 lstlisting
저는 LaTeX에서 lstlisting을 중심으로하고 싶습니다. 그 오른쪽으로 이동,
\lstset{ %
caption=Descriptive Caption Text,
label=lst:descr_capti_text,
basicstyle=\ttfamily\footnotesize\bfseries,
frame=tb,
linewidth=0.6\textwidth
}
\centering\begin{tabular}{c}
\begin{lstlisting}
printf("this should be centered!");
\end{lstlisting}
\end{tabular}
이것은 캡션을 중심에 lstlisting을 가하고 것이 아니라 : 여기에 시도
3 후 시간이 몇 가지 코드입니다. 표를 꺼내면 캡션이 가운데에 오게되지만 코드는 왼쪽으로갑니다! :(
감사합니다.
이
그냥 내가 [LaTeX의 StackExchange 제안]을 말할 줄 알았는데 (http://area51.stackexchange.com/proposals/2148/tex-latex-and- : 다음 코드는 센터 나의 미니 환경없이 작동 friends? referrer = 5z6F4dAmVScN5QfMOt5KEg2) 일단 이륙하면이 같은 질문에 가장 적합 할 것입니다. –