Text Formattingxthesis and color packages

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Champ
Posts: 2
Joined: Mon Feb 20, 2012 4:39 am

xthesis and color packages

Post by Champ »

I use following package for my thesis as I understand originally created/used by Aleksander Simoni later Modified by Steven Matheson,

Code: Select all

\usepackage{xthesis} %DAL Thesis Style
but when I use \usepackage[dvips]{xcolor}, it gives errors, and I am unable to use \textcolor in the document.
Last edited by Stefan Kottwitz on Mon Feb 20, 2012 7:52 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

xthesis and color packages

Post by Stefan Kottwitz »

Hi,

welcome to the board!
Champ wrote:but when I use \usepackage[dvips]{xcolor}, it gives errors
Perhaps tell us the error messages, that would make it easier to help. For example, errors would occur if color or xcolor has already been loaded with a different option, perhaps implicitly.

Stefan
LaTeX.org admin
Champ
Posts: 2
Joined: Mon Feb 20, 2012 4:39 am

xthesis and color packages

Post by Champ »

Code: Select all

1) 	Too many }’s.
\color@endbox->color@endgroup \egroup
1.87 \end{figure}

2) 	\begin{document} ended by \end{figure}.
1.87 \end{figure}

3)	Extra \endgroup
1.87 \end{figure}
Statements giving error:

Code: Select all

\begin{figure}[!h]
    \centering
        \includegraphics[width=3in]{bionetics/kNpfout3.eps}
\caption[kNpfout]{The effect of fanout ratio ($f$) on the onset of IEs ($N_+/N$) in a WCSN with a regular grid topology in the presence of a chemical tracer field. The range of values used for the $f$ are: $f$ = 0.0 (\textcolor[rgb]{0.0784,0.1686,0.5490}{$\circ$}), $f$ = 0.6 (\textcolor{black}{$\diamond$}),  $f$ = 1.0 (\textcolor[rgb]{0,0.5,0.4}{$\Box$}). The analytical fitted curves are shown in solid lines.  $\kappa = t/\tau_*$ is the normalised time where $\tau_*$ is the detection period of a sensor.}
\label{fig:mvR}%
\end{figure}
It gives errors only when xthesis.sty is used.
Last edited by Stefan Kottwitz on Tue Feb 21, 2012 9:02 am, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

xthesis and color packages

Post by Stefan Kottwitz »

With all the code you gave, it worked. You should provide a Infominimal working example, which produces the error, as the error is caused somewhere else.

It could look like this, and this code works, containing your code lines and using this xthesis file:

Code: Select all

\documentclass{report}
\usepackage{xthesis}
\usepackage[demo]{graphicx}
\usepackage[dvips]{xcolor}
\usepackage{amssymb}
\begin{document}
\begin{figure}[!h]
    \centering
    \includegraphics[width=3in]{bionetics/kNpfout3.eps}
    \caption[kNpfout]{The effect of fanout ratio ($f$) on the onset of IEs ($N_+/N$) in a WCSN with a regular grid topology in the presence of a chemical tracer field. The range of values used for the $f$ are: $f$ = 0.0 (\textcolor[rgb]{0.0784,0.1686,0.5490}{$\circ$}), $f$ = 0.6 (\textcolor{black}{$\diamond$}),  $f$ = 1.0 (\textcolor[rgb]{0,0.5,0.4}{$\Box$}). The analytical fitted curves are shown in solid lines.  $\kappa = t/\tau_*$ is the normalised time where $\tau_*$ is the detection period of a sensor.}
    \label{fig:mvR}%
\end{figure}
\end{document}
Stefan
LaTeX.org admin
Post Reply