
tabular
두 번째 열에 일부 참조( )가 포함된 를 작성하려고 합니다 \cite{}
. 얻은 결과는 각 셀에 대한 고유한 선이며, 다른 것과 비슷한 길이를 갖기 위해 참조를 2개의 선에 맞추고 싶습니다.
어떻게 해야 하나요?
코드는 다음과 같고 사진은 내가 얻은 것입니다.
\documentclass[a4paper,twoside,12pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
\usepackage{fancyhdr}
\usepackage{caption,setspace}
\usepackage{quoting}
\usepackage[version=3]{mhchem}
\usepackage{booktabs, array}
\usepackage{tabularx}
\usepackage{tikz}
\usetikzlibrary{arrows}
\quotingsetup{font=small}
\captionsetup{font={small,stretch=1}}
\begin{document}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1cm}}
\newcolumntype{M}[1]{>{\small\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1cm}}
\begin{tabular}{C{1.7} M{2} C{2.5} C{2.2} C{1.6} C{2}}
\toprule
{\bf Type of crop} & {\bf Reference} & {\bf Location}\\
\midrule
{\bf Rice} & {\cite{Lugato:2013}} & {Northern Italy}\\
{\bf Maize} & {\cite{Uzoma:2011}} & {Tottori, Japan}\\
{\bf Maize} & {\cite{Oguntunde:2004}} &{Ejura, Ghana}\\
{\bf Soyabean} & {\cite{Tagoe:2008}} & {Gifu, Japan}\\
\bottomrule
\end {tabular}
\include{biblio}
\bibliographystyle{apalike}
\bibliography{Tesi}
\end{document}
답변1
m
테이블에 지정자를 사용하지 않는 것이 좋습니다 . 이런 레이아웃은 어때요? 또한 테이블 헤드에 6개의 열을 지정합니다.
\documentclass[a4paper,twoside,12pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{booktabs, array, tabularx}
\usepackage{lmodern, natbib, ragged2e}
\begin{document}
\newcolumntype{P}[1]{>{\small\hspace{0pt}\RaggedRight}p{#1cm}}
\newcolumntype{B}[1]{>{\small\hspace{0pt}\RaggedRight\bfseries}p{#1cm}}
\newcolumntype{L}{>{\small\hspace{0pt}\RaggedRight}l}
\begin{tabular}{@{}B{1.7} P{2} L@{}}
\toprule
\mdseries Type of crop & Reference & Location \\ \midrule
Rice & \citet{Lugato:2013} & Northern Italy \\
Maize & \citet{Uzoma:2011} & Tottori, Japan \\
Maize & \citet{Oguntunde:2004} & Ejura, Ghana \\
Soyabean & \citet{Tagoe:2008} & Gifu, Japan \\
\bottomrule
\end{tabular}
\begin{thebibliography}{}
\bibitem[Lugato et al.(2013)]{Lugato:2013} Lugato et al.(2013).
\bibitem[Uzoma et al.(2011)]{Uzoma:2011} Uzoma et al.(2011).
\bibitem[Oguntunde et al.(2014)]{Oguntunde:2004} Oguntunde et
al. (2014).
\bibitem[Tagoe et al.(2008)]{Tagoe:2008} Tagoe et al.(2008).
\end{thebibliography}
\end{document}