[OS X TeX] Figures & Tables - Miscellaneous Issues

KHALID NADIRI khalid.nadiri at gmail.com
Wed Jan 26 21:39:18 CET 2011


Hi All,

I'm having a few issues with the figure and table contained in the minimum working example below.  Three questions:

1. How do I reduce the vertical distance between the figure and its caption? 

2. Is there a way to have the label wording stacked, one word over the other (e.g., "Independent" centered directly over "Variable")?

3. How does one adjust the table so that every row has the same height?  In this case, that would mean that every row would have the same height as the tallest row (i.e., the third and last rows).

Thanks so much in advance,

Khalid

___________________________________________________________________________________________

\documentclass[11pt,letterpaper,notitlepage]{article}
\usepackage{hyperref}
\usepackage{geometry}
\usepackage[T1]{fontenc}
%\usepackage{fullpage}
\usepackage{setspace}
\usepackage{array}
\usepackage{tabularx}
\usepackage{tabulary}
\usepackage{nccfoots}
\usepackage{natbib}
\usepackage{titling}
\usepackage{colortbl}
\usepackage{tikz}
\usepackage[font=bf]{caption}

\usetikzlibrary{arrows}
\tikzset{
%Define standard arrow tip
>=stealth',
%Define style for different line styles
help lines/.style={dashed, thick},
axis/.style={<->},
important line/.style={very thick},
connection/.style={thick, dotted},
}

\def\name{Khalid H. Nadiri}
\begin{document}



\section{Introduction}

Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah

%%%%%%%%%%%%%%%%%%GRAPH%%%%%%%%%%%%%%%%%%%%%%
\begin{figure}
\caption{Blah Blah Blah Blah Blah Blah Blah Blah}
\usetikzlibrary{calc,arrows}
\begin{center}
\begin{tikzpicture}[
        %We set the scale and define some styles
        scale=2.67,
        axis/.style={thick, ->, >=stealth'},
        important line/.style={thick},
        dashed line/.style={dashed, thick},
        every node/.style={color=black,}
     ]
    % Important coordinates are defined
    \coordinate (beg_1) at (0.1,0.1);
    \coordinate (beg_2) at (1.5,2.7);
    \coordinate (beg_3) at (1.6,0.1);
    \coordinate (beg_4) at (2.9,0.1);

    % Draw intersections
    \coordinate (int_1) at (0.45,0.675);
    \coordinate (int_2) at (1.16,1.25);
    \coordinate (int_3) at (2.3,0.305);
    \coordinate (dev_1) at ($(int_1)+(0,-.67)$);
    \coordinate (dev_2) at ($(int_2)+(0,-1.245)$);
    \coordinate (dev_3) at ($(int_3)+(0,-0.295)$);

    % Axis
    \draw[axis] (0,0)  -- (3.2,0) node(xline)[below right] {\emph{Independent Variable}};
    \draw[axis] (0,0) -- (0,1.7) node(yline)[above] {\emph{Dependent Variable}};

    % Curve is drawn
    \draw[important line]
        (beg_1) .. controls (beg_2) and (beg_3) .. (beg_4);

    % Coordinates are added
    \fill[black] (int_1) circle (0.6pt) node[above left] {$A$};
    \fill[black] (int_2) circle (0.6pt) node[above] {$B$};
    \fill[black] (int_3) circle (0.6pt) node[above right] {$C$};

    \fill[black] (dev_1) circle (0pt) node[below] {$SE_1$};
    \fill[black] (dev_2) circle (0pt) node[below] {$SE_2$};
    \fill[black] (dev_3) circle (0pt) node[below] {$SE_3$};

    % Dashes
    \draw[dashed line] (int_1) -- (dev_1);
    \draw[dashed line] (int_2) -- (dev_2);
    \draw[dashed line] (int_3) -- (dev_3);

\end{tikzpicture}
\end{center}
\end{figure}

%%%%%%%%%%%%%%%%%%GRAPH%%%%%%%%%%%%%%%%%%%%%%

\clearpage
\section{Research Schedule}

\begin{table}[thbp]
\begin{center}
\noindent\makebox[\textwidth]{%
\renewcommand{\arraystretch}{1.5}
\begin{tabularx}{1.18\textwidth}{| l | X |}
\hline
\rowcolor[gray]{.93}
\textbf{Time Period} & \textbf{Research Items} \\
\hline
January 2011 -- September 2011 & Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah \\
\hline
June 2011 -- December 2011 & Blah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah Blah \\
\hline
December 2011 -- January 2012 & Blah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah Blah \\
\hline
January 2012 -- March 2012 & Blah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah Blah\\
\hline
April 2012 & \emph{Blah Blah Blah Blah Blah Blah Blah Blah} \\
\hline
May 2012 -- December 2012 & Blah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah Blah \\
\hline
January 2013 -- May 2013 & Blah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah Blah \\
\hline
May 2013 & \emph{Blah Blah Blah Blah Blah Blah Blah Blah} \\
\hline
\end{tabularx}
}
\end{center}
\end{table}

\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20110126/74087f9c/attachment.html>


More information about the macostex-archives mailing list