2016-06-13 2 views
0

현재 논문을 작성 중이며 많은 표가 포함됩니다. 나는 그 테이블에서 필자의 테이블을 채울 수 있도록 내 테이블 '스크립트'에 모든 코드가 없도록 .table과 같은 확장이 있는지 궁금해했다..table과 같은 것이 있습니까?

\begin{table} 
\begin{tabular}{cc} 
    3 3 
\end{tabular} 
\end{table} 

예를 들어 별도의 문서에 나와 있습니다.

나는 몇 가지 제안을 기다리고 있습니다!

+2

'.tex'의 문제점은 무엇입니까? 예 : 테이블을'table1.tex'에 놓고'\ input {table1}'을 사용하십시오. – Biffen

답변

1

예, \input을 사용하여 본체의 일부로 외부 파일을 포함 할 수 있습니다. 예를 들어, 당신은 지금은 여기 \include를 사용하지 것이다

enter image description here

\documentclass{article} 

\begin{document} 

Look at Table~\ref{tab:mytable}. 

\input{mytable.table} 

\end{document} 

을 사용할 수 있습니다 당신은

\begin{table}[ht] 
    \centering 
    \begin{tabular}{cc} 
    3 3 
    \end{tabular} 
    \caption{A table}\label{tab:mytable} 
\end{table} 

포함 mytable.table을 가정합니다. When should I use \input vs. \include?

관련 문제