If I understood your question correctly, the text in the columns is stretching and the inter-word spacing is uneven; the problem is caused by the presence of too long words for the width of the columns declared. One possible solution would be to set each column to be \raggedright
, this will cause the text to be ragged right but will prevent hyphenation.
Another option would be to load the ragged2e package ans set each column to be \justifying
; long words will still cause problems if LaTeX doesn't know how to hyphenate them so you will have to manually introduce hyphenation point for these cases (see the fictitious hyphenation point that I manually used in someLongerWo\-rd
):
\documentclass[twoside]{article}
\usepackage[utf8]{inputenc}
\usepackage[MeX]{polski}
\usepackage{array}% http://ctan.org/pkg/array
\usepackage{booktabs}
\usepackage{ragged2e}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{xcolor}
\usepackage[left=4.50cm, right=4.50cm, top=3.50cm, bottom=3.50cm]{geometry}
\frenchspacing
\makeatletter
\renewcommand\@seccntformat[1]{\csname the#1\endcsname.\quad}
\renewcommand\numberline[1]{#1.\hskip0.7em}
\renewcommand\quote{\list{}{\leftmargin=10pt\rightmargin=0pt}\item[]} {\endlist}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\newcommand{\rr}{\raggedright}
\newcommand{\tn}{\tabularnewline}
\makeatother
\begin{document}
\begin{table}[!ht]
\ra{2}
\setlength\tabcolsep{3pt}
\ignorespaces
{\setlength{\extrarowheight}{5pt}%
\begin{tabular}{>{\justifying\arraybackslash\noindent}m{\dimexpr.25\textwidth-2\tabcolsep-0.8pt}
>{\justifying\arraybackslash\noindent}m{\dimexpr.35\textwidth-2\tabcolsep-0.4pt}
>{\justifying\arraybackslash\noindent}m{\dimexpr.35\textwidth-2\tabcolsep-0.4pt}}\toprule
\textbf{Item 1} &\textbf{Item2}& \textbf{Item3 someLongerWo\-rd}\\ \midrule
\noindent\textbf{SubItem1 some text someLongerWord} & Lorem Ipsum jest tekstem stosowanym jako przykładowy wypełniacz w przemyśle poligraficznym. Został po raz pierwszy użyty w XV w. przez nieznanego drukarza do wypełnienia tekstem próbnej książki. & Lorem Ipsum jest tekstem stosowanym jako przykładowy wypełniacz w przemyśle poligraficznym. Został po raz pierwszy użyty w XV w. przez nieznanego drukarza do wypełnienia tekstem próbnej książki. Pięć wieków później zaczął być używany przemyśle elektronicznym, pozostając praktycznie niezmienionym.
\\
\addlinespace[4pt] \midrule
\textbf{SubItem2 some text} & Przeciwstawne wyobrażenia i~pojęcia występują razem i~mogą wzajemnie siebie zastępować. & Pogardzany nauczyciel wychowania fizycznego reprezentuje w~pamięci uwielbianego nauczyciela sztuki.\\
\addlinespace[4pt] \midrule
\textbf{Reprezentacja przez analogię bądź aluzję}\rr& Części obiektu bądź pamięci reprezentują całość. Podobne wyobrażenia są~wzajemnie swobodnie wymienianie. & Wyobrażenie huśtawki reprezentuje czas spędzony w dzieciństwie na zabawie z~ojcem.
\\\addlinespace[14pt] \midrule
\textbf{Płynność form}\rr& Wyobrażenia wrażeń zmysłowych odpowiadają słowom czy pojęciom. & Uczucie dreszczy z zimna reprezentuje gniew mężczyzny, który umówił się na randkę w ciemno i~czeka w padającym śniegu na~kobietę, która nie przychodzi.
\\ \addlinespace[4pt]\midrule
\textbf{No Time At All someLongerWord}\rr& Brak logicznego czy czasowego następstwa. Przeszłość, teraźniejszość a~nawet przyszłość stanowią jedną całość. & Obecny mąż pojawia się we~śnie odnoszącym się do~wcześniejszego etapu życia żony.
\\
\bottomrule
\addlinespace[10pt]
%
\end{tabular}}
\small\caption{\small Charakterystyczne cechy poznawcze procesu pierwotnego}
\end{table}
\end{document}
belowskip=0pt
of caption
package seems to do the job. Also, the table
environment is adding whitespace between text and the table
. You can use \captionof
command instead.
Code
\documentclass[xcolor=svgnames]{beamer}
\usetheme{Stockton}
\usepackage{epsfig} %for figures
\usepackage{xcolor} %for color
\definecolor{hughesblue}{rgb}{.9,.9,1} %A blue I like to use for highlighting, matches Hughes Hallet's book
%\logo{\includegraphics[height=2cm]{Seal_Cream.pdf}} % comment out this line if you do not have the pacific-seal file}
\title[Short Title \hspace{4em}\insertframenumber/
\inserttotalframenumber]{~ \\ Long Title: A Sample Using \\ Stockton Beamer Theme \\~}
\author[short author name or speaker]{Sarah Merz, The University of the Pacific }
\date{January, 2010}
\usepackage{caption}
\captionsetup{skip=0pt,belowskip=0pt}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\begin{frame}
\frametitle{INPUT SELECTION}
\begin{itemize}
\item The load is influenced by many factors.:
\end{itemize}
%\begin{table}[!htbp]
\captionof{table}{Factors that may influence electricity demand\label{table:1}}
%\captionof{table}{Factors that may influence electricity demand}
%\label{table:1}
\resizebox{\linewidth}{!}{%
\begin{tabular}{|l|p{15cm}|}\hline
Calendar data & hour of the day, day of the week, holidays, 'bridge days', daylight saving time, school holidays\\\hline
Meteorological data & temperature, humidity, cloud cover, luminosity, earth's position in the eclipse, sun's altitude, wind speed, solar radiation, climate change\\\hline
Economic data & GDP, per capita GDP, consumer price index, average salary earnings, production plans of companies, electricity price, industrial expansion\\\hline
Demographic data & number of households, population growth, local area development\\\hline
\end{tabular}}
%\end{table}
\begin{itemize}
\item The importance of horizon:
\begin{itemize}
\item For very short-term forecast (up to 6 hours) $\longrightarrow$ inputs based on past load values
\end{itemize}
\item Engineering judgment or human experience as well as some statistical/graphical analysis
\end{itemize}
\end{frame}
\end{document}
Output
Best Answer
\abovetopsep
is a length macro. Use\setlength
to modify it, place that in your preamble. For example:This space would be added above the line made with
\toprule
. If you specify the length in your preamble, no change within a table environment is required. Jut put the caption above, the space by\abovetopsep
will follow automatically, then comes the toprule. A\midrule
, also if placed at the top, would ignore this space.