Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
Which document class Thesis do you use? Line 2 and 3 of your MWE are wrong. \usepackage{booktabs} is missing. What should normal and outlier be? Please make your question more clear ... –  Kurt Jan 22 '13 at 14:11
    
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 '13 at 14:18
    
square is an option of package natbib: \usepackage[square]{natbib}. booktabs is an package and can't be used within []. So call it with \usepackage{booktabs}. For your given MWE you can use documentclass article or scrartcl and call booktabs only. –  Kurt Jan 22 '13 at 14:31
    
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. –  xfoo Jan 22 '13 at 14:32
    
@Kurt, It is a preprepared format for the thesis, and if I modify that I may face with other problems. By applying your comments, I came up with lots of errors. –  ali amidi Jan 22 '13 at 14:39
show 5 more comments

1 Answer 1

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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