Text FormattingExtra character bug

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jokester01au
Posts: 3
Joined: Wed Jan 28, 2009 5:26 am

Extra character bug

Post by jokester01au »

Hi,

I have a problem where a "ý" character appears incorrectly in my paper. It appears above every footnote, as well as sometimes where I specify figures (where the figure environment is in the tex, not where the figure is placed).

I've attached a pdf showing the problem as well as an excerpt of the tex used to generate the pdf, but I dont think that the problem is in the tex source shown. It must be somewhere in the latex macros I think.

Has anyone dealt with this before? Alternatively, can anyone suggest how I can start fiddling with the underlying latex source to try to isolate where the problem is occurring?

Kind regards,
Joe.
Attachments
bugs.tex
(813 Bytes) Downloaded 257 times
bugs.pdf
(74.46 KiB) Downloaded 321 times

Recommended reading 2024:

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

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

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Extra character bug

Post by phi »

Hi,
please provide a minimum working example. Your code doesn't compile, and if I complete it in this way

Code: Select all

\documentclass{article}
\usepackage{varioref}

\begin{document}
Throughout the proceeding discussion, the example shown in Figure \vref{fig:semantics:ontologyEg} will be used to illustrate each concept. The example consists of a short Audio-Visual clip that forms part of a news article on events in the middle-east\footnote{This clip was used by permission from SBS World News Australia.}. The first part of the ...


  
\subsubsection{Data Units}        
\label{sec:semantics:dataUnits}

% something about some figures causes the ý
\begin{figure}{1}
\centering
%    \includegraphics[width=\textwidth, page=8]{semantics}
	\hbox to \textwidth{\hss\vrule height 5cm\hss}
    \caption{Example instances of semantic distortion classes describing the data units of a H.264/AVC bitstream}
    \label{fig:semantics:ontologyEg-DataUnits}
\end{figure}


For the purposes of R-D Optimization, Chou designates an atomic segment of ...
\end{document}
there is no ý anywhere.
Keta
Posts: 63
Joined: Tue Nov 25, 2008 1:00 pm

Extra character bug

Post by Keta »

Could be some encoding problem? Make sure to specify which encoding is your file written in by using:

Code: Select all

\usepackage[encoding]{inputenc}
Change "encoding" with the encoding you use, e.g. utf8 or latin9.

It happened once to me, in Linux I write my files using utf-8 encoding; when opened in TeXnicCenter weird characters appeared and couldn't really work with it because TeXnicCenter wasn't able to work in utf-8.
jokester01au
Posts: 3
Joined: Wed Jan 28, 2009 5:26 am

Extra character bug

Post by jokester01au »

phi wrote:Hi,
please provide a minimum working example.
Good point. sorry about that.

I've figured it out - it was an interaction between my document class and

Code: Select all

\usepackage[T1]{fontenc}
If I remove that package or if I change document class, the problem goes away.

Here's a minimal working example (class file is attached):

Code: Select all

\documentclass{snrcthesis}
\global\nonstopmode
\usepackage[T1]{fontenc}

\begin{document}    
..\footnote{xxxx}. 
\begin{figure}
.
\end{figure}
xx
\end{document}
Attachments
snrcthesis.cls
(17.31 KiB) Downloaded 255 times
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: Extra character bug

Post by phi »

And this compiles without error? When I try to compile it, I get the error "Something's wrong—perhaps a missing \item". If I remove the footnote, I get the warning "Please stop using fancyheadings".
jokester01au
Posts: 3
Joined: Wed Jan 28, 2009 5:26 am

Extra character bug

Post by jokester01au »

I get that error too. That's why I added

Code: Select all

 \global\nonstopmode 
It seems like your system doesn't honor that. There is also a command-line argument to set this mode (-interaction=nonstopmode in miktex).

As for the error itself, it doesn't make much sense to me. Clearly "a missing \item" is a wild stab in the dark. I suspect it is to do with the fact that the class file expects a whole lot of definitions (\title, \author, etc. etc.) and it isn't finding them. But for the purposes of the example, if you can run latex in non-stop mode then it should work.
Post Reply