GeneralNew float, font problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jean88
Posts: 12
Joined: Sat Jan 09, 2010 10:52 pm

New float, font problem

Post by jean88 »

I created a new float for graphs. (Maybe there's a package for?)
I'm using this code:

Code: Select all

\floatstyle{plain}
\newfloat{graph}{thpb}{logr}[chapter]
\floatname{graph}{Graph}
\newcommand{\listofgraphs}{\listof{graph}{List of Graphs}}
There seems to be something wrong. I declared also this:

Code: Select all

\usepackage[T1]{fontenc}
\usepackage[scaled]{uarial}
\renewcommand*\familydefault{\sfdefault}
But latex produces this caption:
Graph 1.3: Test
The red text is not the same font as the caption. Does someone know a way to fix this?

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

New float, font problem

Post by localghost »

jean88
Posts: 12
Joined: Sat Jan 09, 2010 10:52 pm

New float, font problem

Post by jean88 »

All files in attachment. As seen in pdf: Graph 0.1: Sample
the red text is another font and while displaying big it got pixelised.

PDF viewer: foxit reader
Creator: MikTeX 1.4

Code: Select all

\documentclass[a4paper,11pt,oneside,fleqn]{book}
%\usepackage[bold]{bookmark}
\usepackage[a4paper,top=3cm,left=4cm,right=2cm,bottom=3cm]{geometry}
\usepackage{fancyhdr}
\usepackage{soul} % \hl{text}
\usepackage[dutch]{babel}
\usepackage[latin1]{inputenc}
\usepackage[nosectionbib,tocbib]{apacite}
\usepackage[final]{graphicx}
\usepackage{pstricks}
\usepackage{wrapfig}

\usepackage[]{epstopdf}
\usepackage{float}
\usepackage{subfloat}
\usepackage[TABBOTCAP]{subfigure}
\usepackage{amssymb}
\usepackage{array}
\usepackage{url}
\usepackage{fnbreak}
\usepackage{fancyhdr}

\floatstyle{plain}
\newfloat{graph}{thpb}{logr}[chapter]
\floatname{graph}{Graph}
\newcommand{\listofgraphs}{\listof{graph}{List of Graphs}}

\usepackage[T1]{fontenc}
\usepackage[scaled]{uarial}
\renewcommand*\familydefault{\sfdefault}


\begin{document}

\begin{graph}[H]
	\centering
		\includegraphics[width=0.9\textwidth]{test}
	\caption{Sample}
	\label{fig:SampleGraph}
\end{graph}

\end{document}
Attachments
test.png
test.png (4.22 KiB) Viewed 2249 times
thesis.tex
(1012 Bytes) Downloaded 251 times
thesis.pdf
(12.43 KiB) Downloaded 233 times
Post Reply