Tag Info

Hot answers tagged

11

The LaTeX2e kernel defines usepackage to be exactly the same as RequirePackage in the ltclass.dtx. \if@compatibility\else\let\usepackage\RequirePackage\fi So the fact that you use RequirePackage makes no difference and you still get an error. If the same package is requested more than once, nothing happens, unless the package has been requested with ...


9

The french language sets the ; as an active character: use \shorthandoff{;} before the picture and \shorthandon{;} after the picture to not have problems. \documentclass{article} \usepackage[frenchb]{babel} \usepackage{pgfplots} \usetikzlibrary{spy} \begin{document} \shorthandoff{;} \begin{tikzpicture}[spy using outlines= {circle, magnification=6, ...


8

Well, since Herbert provide a general solution for option clash, here is another solution: \usepackage[dvipsnames]{xcolor} \usepackage{tikz} Just put xcolor package before tikz package. Explanation: In LaTeX, you cannot load a package through \usepackage twice or more. If a package has been loaded, another \usepackage without any options will be safely ...


7

You could pass the option explicitely to the package, which you could do even before \documentclass. Note, we use the full theme package name here: \PassOptionsToPackage{subsection=false}{beamerouterthememiniframes} \documentclass{beamer} \usetheme{Szeged} % implicitely loads miniframes \begin{document} \section{A section} \subsection{A subsection} ...


7

TikZ is usually intelligent with regard to active characters and so does not normally need the \shorthandon, \shorthandoff pair. However, the spy library did not include the checks that TikZ uses when matching its command and only defines a variant for whatever catcode semi-colon has at load-time. Since babel shifts its catcode changes to \begin{document}, ...


6

Update: moderncv loads the package hyperref by itself with its own hypersetup. From moderncv.cls, Hence, you need not load hyperref again. But load the hypersetup using \AfterPreamble (or \AtBeginDocument) hook as in this code: \documentclass[11pt,a4paper]{moderncv} \moderncvtheme[green]{classic} \usepackage[scale=0.8]{geometry} ...


6

In this case this can be solved by: \usepackage{hyperref} \hypersetup{ pdfauthor={...}, pdftitle={...}, pdfsubject={...}, urlcolor=blue, } The entries for the PDF information dictionary should be better set after the package is loaded. Also the other entries (urlcolor) can be set afterwards. pdftex is not needed, hyperref detects pdfTeX in PDF ...


5

The option clash error requires that the same package is loaded twice. The second time with at least one new option that was not given at the time, when the package was loaded first (LaTeX loads a package the first time, at subsequent loading requests it only checks the options). Only one package is specified by the example file, thus the second load ...


4

In the above linked question Ahmed Musa quotes the LaTeX error help on an option clash: ? h The package 'xcolor' has already been loaded with options: [cmyk]. There has now been an attempt to load it with no options. Adding the global options: 'cmyk' to your \documentclass declaration may fix this. It solves my problem if I set the options for xcolor ...


3

Your example includes several packages twice. Usually that is not a good idea and will cause problems. Anyway, to address your specific question, you need to use the mechanisms of the CJK package; your system should include a useful example file CJKutf8.tex under the CJK documentation directory. Additionally, you ought to tell latex which language ...


3

It is not completely clear what your problem is. The scrreprt class does not load the graphicx package so \documentclass[draft]{scrreprt} \usepackage[final]{graphicx} \begin{document} \includegraphics{mill.png} \end{document} should work without problems. It is likely that you are loading another package that loads the graphicx package. For example, you ...


2

There is indeed an option clash for xcolor package in your code. It is easy to see that in your two (actually three) loading rounds of xcolor. Here is the error help: ? h The package 'xcolor' has already been loaded with options: [cmyk]. There has now been an attempt to load it with no options. Adding the global options: 'cmyk' to your \documentclass ...


1

Following @egreg comment The package pdfx already loads hyperref; if you need to set other options for this one, use \hypersetup{options here} I removed this code in the class file \RequirePackage{ifpdf} \ifpdf \RequirePackage[pdfpagelabels]{hyperref} \else \RequirePackage{hyperref} \fi and in .tex file I did the following ...


1

\documentclass[11pt,table,a4paper]{article} \usepackage[T1,T2A]{fontenc} \usepackage{lmodern} \usepackage[koi8-r,utf8]{inputenc} \usepackage{CJKutf8} \usepackage[russian]{babel} \newenvironment{SChinese}{% \CJKfamily{gbsn}% \CJKtilde \CJKnospace}{} \begin{document} Это мой первый многоязычный докладе. This is my first multilingual report. ...


1

It is possible to delay the loading of catoptions with etoolbox’ \AtEndPreamble but this doesn’t wokr in the real world since I need some functions of catoptions in my1 (i.e. menukeys) \documentclass{scrartcl} \usepackage{filecontents} \begin{filecontents}{my1.sty} \RequirePackage{etoolbox} \RequirePackage{xcolor} ...


1

I believe that the problem is in the fact that \foreach does everything inside a group and this, for some reason, conflicts with the card production of flacards; indeed just the last card in each page is actually printed. In order to see if my assertion is right, I ran the following test: \documentclass{minimal} \usepackage{tikz} \begin{document} \foreach ...


1

Running \documentclass[10pt]{article} \usepackage[normalem]{ulem} \usepackage[all]{xy} \usepackage[dvipsnames]{xcolor} \begin{document} abcdefgh \end{document} does not produce any warnings or errors on a current TeXlive 2011 installation. If you are using additional packages (hyperref is one that this problem is seen with, for example) here may well be ...



Only top voted, non community-wiki answers of a minimum length are eligible