2

I have a table and I wanted to replace 2 variables with appropriate symbols:

Code:

\documentclass[11pt, a4paper, oneside]{Thesis}
\usepackage[square, numbers,rotating, comma, fancyhdr,here, sort&compress,caption,epsfig,subfig ,enumitem,array,subcaption, cleveref,subfigure ,booktabs,tabularx, textcomp, placeins,graphicx, url, blindtext,verbose{placeins} ]
\usepackage{natbib}
\begin{document}
\begin{table}
\caption{Temporal Outliers that are detected with respect to the MetoSwiss Forecasts in $2007-09-29$}
\label{tod29f}
\centering
                \footnotesize\setlength{\tabcolsep}{2.5pt}
    \begin{tabular}{r@{:}l*{5}c}
\toprule
\multicolumn{1}{c}{}&              & \multicolumn{5}{c}{Node ID}\\ \cmidrule{3-7}
\multicolumn{2}{c}{Date | Time} & 25      & 28      & 29      & 31      & 32      \\ \toprule

9/29/2007 00&00 & Normal & Normal & Normal & Normal & Normal \\
9/29/2007 01&00 & Outlier & Outlier & Outlier & Outlier & Outlier \\
9/29/2007 02&00 & Normal & Normal & Normal & Normal & Normal \\
9/29/2007 03&00 & Normal & Normal & Normal & Normal & Normal \\
9/29/2007 22&00 & Normal & Normal & Normal & Normal & Normal \\
9/29/2007 23&00 & Normal & Normal & Normal & Normal & Normal \\
 \bottomrule
    \end{tabular}
\end{table}
\end{document}

I would like to replace the Normal and Outlier with proper symbols, that made the table more readable.

4
  • Actually, I am using preprepared pckage. What is the problem with line 2 and 3? I have used booktabs in packages list. I want to use something like \FilledCircle and \SmallCircle
    – ali amidi
    Jan 22, 2013 at 14:18
  • You should work on your example, I don't see the need for alot of the code. The idea is to make a minimal working example as a representation of your problem. Is this even about tables? It seems your just looking for 2 symbols. On that matter I recommend this site.
    – rtzll
    Jan 22, 2013 at 14:32
  • Are you looking for Weather Symbols? In the affirmative case see Table 297: ifsym Weather Symbols of The Comprehensive LATEX Symbol List by Scott Pakin. Jan 22, 2013 at 16:02
  • @AméricoTavares, the problem is that I cannot fit the symbols to the current document that I am using.
    – ali amidi
    Jan 22, 2013 at 16:11

1 Answer 1

7

Please have a look to question minimal working example (MWE) to learn to build a MWE. Important is to reduce the MWE to only really needed packages to show the problem. Package natbib for example does not make a problem with your table ...

For your problem a compiling MWE could be (I used package pifont to create the two symbols (\ding{108} and \ding{109}) for the table, package textcomp with \textbullet and \textopenbullet and package amssymb with \blacksquare and \square):

%http://tex.stackexchange.com/questions/94861/using-symbols-in-tables
\documentclass[11pt, a5paper, oneside]{scrartcl} % Thesis
\usepackage{booktabs}             % for pretty tables
\usepackage{pifont}               % symbols: \ding{108},   \ding{109}
\usepackage{textcomp}             % symbols: \textbullet,  \textopenbullet
\usepackage{amsmath,amssymb}      % Symbols: \blacksquare, \square
%\usepackage[square,numbers,sort&compress]{natbib} % natbib with several options

\begin{document}
\begin{table}
\caption{Temporal Outliers that are detected with respect to the MetoSwiss Forecasts in 2007/09/29}
\label{tod29f}
\centering
\footnotesize\setlength{\tabcolsep}{2.5pt}
\begin{tabular}{r@{:}l*{5}c}
\toprule
\multicolumn{1}{c}{}    &       & \multicolumn{5}{c}{Node ID}                     \\ 
\cmidrule{3-7}
\multicolumn{2}{c}{Date | Time} & 25      & 28      & 29      & 31      & 32      \\ 
\midrule
9/29/2007 00&00 & \ding{108} & \ding{108} & \ding{108} & \ding{108} & \ding{108}  \\
9/29/2007 01&00 & \ding{109} & \ding{109} & \ding{109} & \ding{109} & \ding{109}  \\
9/29/2007 23&00 & \ding{108} & \ding{108} & \ding{109} & \ding{108} & \ding{109}  \\
\midrule
9/29/2007 23&00 & \textbullet & \textbullet & \textbullet & \textopenbullet & \textopenbullet \\
\midrule
9/29/2007 23&00 & $\blacksquare$ & $\blacksquare$ & $\blacksquare$ & $\square$ & $\square$ \\
\bottomrule
\end{tabular}
\end{table}
\end{document}

The result should be:

compiled pdf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.