2010-03-04 16 views
9

मैं लाटेक्स में 7 पंक्तियों और 4 कॉलम के साथ कुछ जटिल तालिका (किनारेदार) को डिजाइन करने की कोशिश कर रहा हूं। तालिका में टेक्स्ट, बिबटेक्स-उद्धरण, और सबसे महत्वपूर्ण रूप से कोशिकाओं के भीतर आंकड़े होते हैं (वर्तमान में आंकड़े परीक्षण उद्देश्यों के लिए जेपीजी हैं, अंततः मैं उन्हें पीडीएफ में बदलना चाहता हूं)। आंकड़े बहुत बारीकी से फसल (उद्देश्य पर) हैं।तालिका कक्षों में लंबवत रूप से आंकड़े संरेखित करें?

मेरे पास टेबल टेबल का अधिकांश भाग है जैसा कि मैं चाहता हूं, लेकिन आंकड़े कोशिकाओं के शीर्ष पर गठबंधन हैं! यह बदसूरत लग रहा है और मुझे उनकी कोशिकाओं के भीतर लंबवत और क्षैतिज रूप से संरेखित करने की आवश्यकता है।

मैंने कई चीजों की कोशिश की (पैराबॉक्स, मैन्युअल रूप से सरणी पैकेज के लिए एक नया स्तंभ टाइप परिभाषित कर रहा है ...) लेकिन यह पता नहीं लगा सकता कि इसे कैसे किया जाए।

यहाँ है कि मेरे तालिका के लेटेक्स-sourcecode मूल रूप से (mockup पाठ के साथ प्रतिस्थापित पाठ) की तरह दिखता है:

% THE TABLE 
\begin{sidewaystable}\footnotesize 
    \begin{tabular}{| p{3cm} | c | p{6cm} | p{4cm} |} 
    \hline 
    column1description & column2description & TypeOfOrganism & column4description\\ \hline 
    \hline 
    Diagram1title & \includegraphics[scale=0.25]{vector_figures/mockup_001.jpg} & description1 & {\em S.\ cerevisiae, E.\ coli}\\ \hline 
    Diagram2title & \includegraphics[scale=0.25]{vector_figures/mockup_002.jpg} & description2 & {\em S.\ cerevisiae, E.\ coli}\\ \hline 
    Diagram3title & \includegraphics[scale=0.25]{vector_figures/mockup_003.jpg} & description3 & {\em S.\ cerevisiae, E.\ coli}\\ \hline 
    Diagram4title & \includegraphics[scale=0.25]{vector_figures/mockup_004.jpg} & description4 & {\em S.\ cerevisiae}\\ \hline 
    Diagram5title & \includegraphics[scale=0.25]{vector_figures/mockup_005.jpg} & description5 & {\em S.\ cerevisiae}\\ \hline 
    Diagram6title & \includegraphics[scale=0.25]{vector_figures/mockup_006.jpg} & description6 & {\em S.\ cerevisiae}\\ \hline 

    \end{tabular} 

    \caption[Diagrams and their descriptions]{\textbf{ Diagrams and their descriptions} Some diagrams with interesting descriptions}\label{tab:table2}. 

\end{sidewaystable} 

मैं अगर कोई मुझे कैसे आंकड़े संरेखित करने के लिए पर कुछ जानकारी दे सकता है बहुत आभारी होगा लंबवत रूप से क्षैतिज रूप से उनके कोशिकाओं के भीतर।

आईई। आंकड़े प्रत्येक सेल में होने की आवश्यकता है ताकि आकृति के ऊपर और नीचे की स्थिति संबंधित सेल सीमाओं तक हो, और संबंधित सेल सीमाओं के बाएं और दाएं समान हों।

(मैं इस या संबंधित तालिका लेआउट समस्याओं के बारे में कुछ पन्नों पाया, लेकिन नहीं समझ सकता है क्या वास्तव में क्या करना है।)

उत्तर

1

आप खड़ी सभी कोशिकाओं के लिए tabularx पैकेज (या array packge) का उपयोग कर सकते गठबंधन। यह आपको शुरू कर सकते हैं:

\usepackage{tabularx} 
\begin{document} 

\renewcommand{\tabularxcolumn}[1]{>{\arraybackslash}m{#1}} 
\begin{tabularx}{\textwidth}{XXXX} 
    \hline 
    column1description & column2description & TypeOfOrganism & column4description\\ \hline 
    \hline 
    Diagram1title & the graphics & I would be very thankful if someone 
    could give me some information on how to align the figures vertically 
    as well as horizontally within their cells.I would be very thankful if someone could give me some information on how to align the figures vertically as well as horizontally within their cells. & {\em S.\ cerevisiae, E.\ coli}\\ 
    \hline\\ 
    Diagram1title & the graphics & I would be very thankful if someone 
    could give me some information on how to align the figures vertically 
    as well as horizontally within their cells.I would be very thankful if 
    someone could give me some information on how to align the figures 
    vertically as well as horizontally within their cells. & {\em S.\ 
    cerevisiae, E.\ coli}\\ 
    \hline 
\end{tabularx} 

\end{document} 
1

आप आप के बजाय subfig पैकेज का उपयोग कर एक table पर्यावरण की सोच सकते हैं आंकड़े की एक जोड़ी संरेखित करने के लिए कोशिश कर रहे हैं। यह आपको अधिक विकल्प देता है और यदि आप आंकड़ों से निपट रहे हैं तो इसे संभालना आसान है। एक परिचय के रूप में आप latex wiki और विशेष रूप से अनुभाग Floats, Figures and Captions 75 पर एक नज़र डाल सकते हैं। वास्तविक पैकेज सीटीएएन साइट पर अतिरिक्त दस्तावेज, subfig के साथ उपलब्ध है।

यह केवल आप एक अलग दृष्टिकोण दे देंगे और अपनी समस्या को सुलझाने है नहीं अभी, हालांकि, अपने प्रश्न पढ़ने फिर से यह लग रहा है यदि आपके मन में कुछ इस सवाल के समान हो रही है की तरह:

Vertical alignment of subfigures LATEX

इसके अतिरिक्त यह थोड़ा सा निर्भर करता है कि आपका 'वर्णन 1' भाग कितना समय होगा। यदि यह एक संपूर्ण पाठ है तो आप इसे minipage वातावरण में करना चाहेंगे।

संबंधित मुद्दे