GeneralProblem with the Color package

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ggran
Posts: 13
Joined: Fri May 09, 2008 9:16 pm

Problem with the Color package

Post by ggran »

Hey there,

I've encountered a very odd problem.
I have a paper I work on. When I added the color package, a strange "OT1OT1" is added to the text as the first thing in the first page of the PDF.
This happens with xcolor as well.
I tried removing packages (except for the babel) but couldn't find the one that conflicts.

Some bits of data:
I use Miktex 2.7, compiling with pdflatex.
The header of my tex file is (this is partial header. If needed I'll send the full header, But I think the rest is irrelevant)

Code: Select all

\documentclass[12pt,a4paper]{report}
\usepackage{color}  
\usepackage{amsmath,amssymb}
\usepackage{float}
\usepackage[hebrew,english]{babel}
\usepackage{hebfont}

\restylefloat{figure}
\restylefloat{table}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Many needed configurations and commands
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Preamble
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{definition}[theorem]{Definition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{example}[theorem]{Example}


%%%\begin{proof} .. \end{proof}
\makeatletter
\def\proof{\@ifnextchar[{\@opargbeginproof}{\@beginproof}}
\def\@beginproof{\rm\parskip\z@\trivlist \item[\hskip \labelsep{\bf Proof}]}
\def\@opargbeginproof[#1]{\rm\parskip\z@\trivlist
      \item[\hskip \labelsep{\bf Proof\ #1}]}
\def\endproof{\hfill \vrule height6pt depth0pt width6pt \endtrivlist}
\makeatother


%%% Quotations below chapters
\usepackage{epigraph}   % allows the nice Quotes using \epigraph
Thanks!

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Problem with the Color package

Post by gmedina »

Please post some useful code (in the sense of a minimal working example) that clearly shows the undesired behaviour.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
ggran
Posts: 13
Joined: Fri May 09, 2008 9:16 pm

Problem with the Color package

Post by ggran »

Here:

Code: Select all

\documentclass[12pt,a4paper,thesis]{report}
\usepackage{color}  
\usepackage{amsmath,amssymb}
\usepackage{float}
\usepackage[hebrew,english]{babel}
\begin{document}
test
\end{document}
So now I'm sure it's the babel. Now I'll ask a different question - How to avoid this?
can't I use both colors and babel?
Attachments
test.pdf
My output of the "test" code .
(4.13 KiB) Downloaded 432 times
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Problem with the Color package

Post by gmedina »

ggran wrote:Here:

Code: Select all

\documentclass[12pt,a4paper,thesis]{report}
\usepackage{color}  
\usepackage{amsmath,amssymb}
\usepackage{float}
\usepackage[hebrew,english]{babel}
\begin{document}
test
\end{document}
So now I'm sure it's the babel. Now I'll ask a different question - How to avoid this?
can't I use both colors and babel?
thesis is not a standard document class option. This will be responsible for a message:

Code: Select all

Unused global option(s):[thesis].
Removing this class option and processing your example code, I only got the following warning

Code: Select all

 No hyphenation patterns were loaded for(babel) the language `Hebrew'(babel) I will use the patterns loaded for \language=0 instead.
which means that (of course) i haven't installed the approriate hyphenation patterns.

However, I still do not see that "OT1OT1" extra code you mentioned in your first post.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Problem with the Color package

Post by Stefan Kottwitz »

Hi ggran,

if I compile this test code it does not show the problem you described, just the warnings gmedina mentioned.
You may consider to update the used packages (color, babel). Or post your logfile as attachment, perhaps we will find the cause by reading that.

Stefan
LaTeX.org admin
ggran
Posts: 13
Joined: Fri May 09, 2008 9:16 pm

Problem with the Color package

Post by ggran »

"thesis" can be omitted, without changing the effect.
Can it be a problem in my installation?
Is there an option to check it up? (without formatting the windows and installing linux :) )

Logfile:

Code: Select all

This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7)
entering extended mode
(test.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
("C:\Program Files\MiKTeX 2.7\tex\latex\base\report.cls"
Document Class: report 2005/09/16 v1.4f Standard LaTeX document class
("C:\Program Files\MiKTeX 2.7\tex\latex\base\size12.clo"))
("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\color.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\00miktex\color.cfg")
("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\pdftex.def"))
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsmath.sty"
For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amstext.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsgen.sty"))
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsbsy.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsopn.sty"))
("C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amssymb.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amsfonts.sty"))
("C:\Program Files\MiKTeX 2.7\tex\latex\float\float.sty")
("C:\Program Files\MiKTeX 2.7\tex\generic\babel\babel.sty"
*************************************
* Local config file bblopts.cfg used
*
("C:\Program Files\MiKTeX 2.7\tex\latex\00miktex\bblopts.cfg")
(C:\localtexmf\tex\latex\heblatex\rlbabel.def)
(C:\localtexmf\tex\latex\heblatex\hebrew.ldf
("C:\Program Files\MiKTeX 2.7\tex\generic\babel\babel.def")

Package babel Warning: No hyphenation patterns were loaded for
(babel)                the language `Hebrew'
(babel)                I will use the patterns loaded for \language=0 instead.

) ("C:\Program Files\MiKTeX 2.7\tex\generic\babel\english.ldf"))
(C:\localtexmf\tex\latex\heblatex\lheenc.def)
("C:\Program Files\MiKTeX 2.7\tex\latex\base\inputenc.sty"
(C:\localtexmf\tex\latex\heblatex\8859-8.def))
No file test.aux.
(C:\localtexmf\tex\latex\heblatex\lhecmr.fd)
("C:\Program Files\MiKTeX 2.7\tex\context\base\supp-pdf.tex"
[Loading MPS to PDF converter (version 2006.09.02).]
) [1{D:/Documents and Settings/All Users.WINDOWS/Application Data/MiKTeX/2.7/pd
ftex/config/pdftex.map}] (test.aux) )<C:/Program Files/MiKTeX 2.7/fonts/type1/b
luesky/cm/cmr12.pfb>
Output written on test.pdf (1 page, 4225 bytes).
Transcript written on test.log.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem with the Color package

Post by Stefan Kottwitz »

Hi ggran,

perhaps it could help to update your babel version.
If you write \listfiles into your preamble you can see what files are used and their versions.

Stefan
LaTeX.org admin
ggran
Posts: 13
Joined: Fri May 09, 2008 9:16 pm

Re: Problem with the Color package

Post by ggran »

Hey,

My installation was quite update, nevertheless I updated it again, but that caused no change.
Babel version is <3.8j>.

The pdflatex updated as well, but I think its not the problem, since performing latex gives the same result.

If this doesn't happen at your place - than maybe it is some specific configuration I have in this machine. Can you refer me where I can check machine-specific configurations?

Attached the new log, after performing update.
Attachments
test.log
log of pdflatex
(5.36 KiB) Downloaded 331 times
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Problem with the Color package

Post by Juanjo »

I've also tried the minimal example you provided without showing the undesired behaviour reported in the first post. It works on a Mac and on a virtual machine running Windows with MikTeX 2.7. Here I mention things to try:
* Rewrite the minimal example from scratch. Perhaps there is a hidden character in your actual file causing the writing of OT1OT1.
* Load fontenc with T1 encoding. It is highly odd that the unexpected text is precisely "OT1".
* Change the order in which the packages are loaded.
* Remove the hebrew option.
* Check your files with an on-line compiler. There are several of them out there:
http://nirvana.informatik.uni-halle.de/ ... /latex.php
http://dev.baywifi.com/latex/
http://sciencesoft.at/flashlatex.jsp?lang=en
http://tex.mendelu.cz/
http://tezcatl.fciencias.unam.mx/latex/ ... Editor.jsp
ggran
Posts: 13
Joined: Fri May 09, 2008 9:16 pm

Problem with the Color package

Post by ggran »

Hey all.
I finally resolved it.

The synopsis is this:
The hebrew babel requires some fonts mapping file (that from some reason are not installed automatically)
see: http://www.mail-archive.com/lyx-devel@l ... 02851.html.

In order to fix this, I downloaded a package named MiktexHeb (which is a specific localtex directory) and added it manualy to the miktex roots.
This happened quite a while ago, so I didn't remember it...
I guess that on of the files in that localtex is conflicting. (maybe it is not updated, and it gets priority
over the updated packages installed by the MikTex package manager)

The remedy - I copied the "font" directory of the MIktexHeb and added it to the miktex setting. This solved the missing fonts,
and once I disabled the localtex from being a root - the OT1OT1 problem disappeared.
[maybe its more a detour than a solution, however, it works.]

Thanks to all of you - you certainly guided me to the solution! :)
Post Reply