Math & Science\varkappa - which package

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
tpokala
Posts: 21
Joined: Wed Nov 10, 2010 6:13 pm

\varkappa - which package

Post by tpokala »

Hi, I have to use

Code: Select all

\varkappa(G)
in my document, but have an error undefined control sequence. I was try use amssymb and amsmath packages in my header but with no luck
Last edited by tpokala on Wed Jan 12, 2011 5:29 pm, 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

\varkappa - which package

Post by frabjous »

\varkappa is defined by amssymb. I had no trouble compiling this:

Code: Select all

\documentclass{article}
\usepackage{amssymb}
\begin{document}
$\varkappa(G)$ 
\end{document}
Are you sure your undefined control sequence error isn't coming from somewhere else?
tpokala
Posts: 21
Joined: Wed Nov 10, 2010 6:13 pm

\varkappa - which package

Post by tpokala »

I have checked it one more time and now when I have above package in header stil doesn't work but now error is:

Code: Select all

command '\lll' already defined
If I remove

Code: Select all

\usepackage{amssymb}
have still mentioned previous error
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

\varkappa - which package

Post by frabjous »

There's a conflict between two packages you're using, most likely. But only knowing one of them makes it pretty hard to diagnose it or suggest fixes. I'd try loading the AMS packages prior to any others. If that doesn't solve the issue, then reduce it to a minimal working example and post it here.
tpokala
Posts: 21
Joined: Wed Nov 10, 2010 6:13 pm

\varkappa - which package

Post by tpokala »

Still with no luck.

I had disble unused package and now have the same error. Line above it is:

Code: Select all

...\amsfonts\amsfonts.sty
My header:

Code: Select all

\documentclass[12pt,a4paper,titlepage,twoside]{report}

\usepackage[polish]{babel}
\usepackage[cp1250]{inputenc}
\usepackage{polski}
\usepackage{fancyhdr}
\usepackage{graphicx}
%\usepackage{multirow}
%\usepackage{booktabs}
\usepackage[OT4]{fontenc}
\usepackage[bindingoffset=1.5cm,centering,includeheadfoot,margin=3cm]{geometry}
\usepackage[pdftex,plainpages=false,pdfpagelabels,pdfstartpage=1,pdfstartview=FitH]{hyperref}
\usepackage{tikz}
\usetikzlibrary{arrows,automata,positioning,snakes,backgrounds}
\usepackage{chngcntr}
%\usepackage{pgf}
%\usepackage{verbatim}
%\usepackage{algorithm2e}
%\usepackage{tocloft}
%\usepackage{dot2texi}
%\usepackage{pst-node}
\usepackage{amssymb}
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: \varkappa - which package

Post by frabjous »

The amssymb package loads amsfonts so there's no need to load both separately.

Anyway, the problem goes away for me if I do what I suggested earlier: load the AMS package first. In particular, load amssymb before the babel package.
tpokala
Posts: 21
Joined: Wed Nov 10, 2010 6:13 pm

Re: \varkappa - which package

Post by tpokala »

Ok, now it is working corectly
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\varkappa - which package

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (and not the last post) accordingly as clearly written in Section 3 of the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Thorsten
Post Reply