LaTeX forum ⇒ Fonts & Character Setsbbding Error Topic is solved

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
kurttodoroff
Posts: 12
Joined: Thu Feb 07, 2019 4:25 pm

bbding Error

Postby kurttodoroff » Thu Mar 21, 2019 5:09 pm

I have been processing my LaTeX document without issue.

I added \usepackage{bbding} to my package list, this morning. I have have not attempted to use a bbding symbol in my document.

  1. \usepackage{bookmark,hyperref} % add HyperTeX links
  2. \usepackage{verbatim} % KRT 1997-12-27 for using \begin-end{comment}
  3. \usepackage{multicol} % KRT 1999-01-12 for using multicolumn environment
  4. \usepackage{lscape} % KRT 1999-03-19
  5. \usepackage{fancyhdr} % KRT 1999-10-03
  6. \usepackage{textcomp} % KRT 2001-07-22
  7. \usepackage{latexsym} % KRT 2001-08-18
  8. \usepackage{amsmath} % KRT 2011-06-23
  9. \usepackage{amssymb} % KRT 2001-08-18
  10. \usepackage{marvosym} % KRT 2010-12-15
  11. \usepackage{wasysym} % KRT 2010-12-15
  12. \usepackage{eurosym} % KRT 2010-12-15
  13. \usepackage{lastpage} % KRT 2003-09-10
  14. \usepackage{graphicx} % KRT 2004-07-31
  15. \usepackage{xr} % KRT 1997-08-04
  16. \usepackage{makeidx} % KRT 2007-09-26
  17. \usepackage[normalem]{ulem} % KRT 2009-11-28
  18. \usepackage{color} % KRT 2011-01-18
  19. \usepackage{tikz} % KRT 2011-05-03
  20. \usepackage{calc} % KRT 2011-05-03
  21. \usepackage{slantsc} % KRT 2011-05-03
  22. \usepackage[sc]{mathpazo} % KRT 2011-05-03
  23. \usepackage{framed} % KRT 2011-05-18
  24. \usepackage{datenumber} % KRT 2011-06-04
  25. \usepackage{fp} % KRT 2011-06-04
  26. \usepackage{datetime} % KRT 2011-06-20
  27. \usepackage{lineno} % KRT 2012-06-03
  28. \usepackage{dcolumn} % KRT 2012-06-03
  29. \usepackage{siunitx} % KRT 2012-06-04
  30. \usepackage{cancel} % KRT 2012-06-08
  31. \usepackage{spreadtab} % KRT 2013-05-27
  32. \usepackage{numprint} % KRT 2013-05-27
  33. \usepackage{tabularx} % KRT 2013-05-27
  34. \usepackage{hyperxmp} % KRT 2013-10-13
  35. \usepackage{changebar} % KRT 2013-12-18
  36. \usepackage{textcase} % KRT 2014-04-23
  37. \usepackage{ifpdf} % KRT 2015-02-10
  38. \usepackage{clipboard} % KRT 2019-02-08
  39. \usepackage{titlesec} % KRT 2019-03-16
  40. \usepackage{minitoc} % KRT 2019-03-16
  41. \usepackage{bbding} % KRT 2019-03-16


I ran my document. LaTeX returned the following error:

  1. LaTeX Error:
  2. Command \Cross already defined.
  3. Or name \end... illegal, see p.192 of the manual.
  4. See the LaTeX manual or LaTeX Companion for explanation.
  5. Type H <return> for immediate help.
  6. ...
  7. l.73 \newcommand{\Cross}{\@chooseSymbol{'052}}
  8. ?
  9. /usr/local/texlive/2018/texmf-dist/tex/latex/bbding/bbding.sty:133: LaTeX Error
  10. : Command \Square already defined.
  11. Or name \end... illegal, see p.192 of the manual.
  12. See the LaTeX manual or LaTeX Companion for explanation.
  13. Type H <return> for immediate help.
  14. ...
  15. l.133 \newcommand{\Square}{\@chooseSymbol{'146}}
  16. ?

Does bbding conflict with any of the packages that are loading?

Thank you.

Kurt

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Mar 22, 2019 8:21 am

You are loading 4 or 5 different packages, that provide more or less the same symbols and command names. A clash is expected.

Are you using all those packages? They seem to be quite random.

Package hyperref should normally be loaded last. You load it almost at the beginning.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9413
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Mar 22, 2019 9:30 am

Hi Kurt!

In case of such a name clash (Command ... already defined.) you can undefine the affected macro or symbol, before you load the other package that contains a macro or symbol with the same name. This fixes your document:

  1. % before you load bbding
  2. \let\Cross\relax
  3. \let\Square\relax
  4. % now you can load it
  5. \usepackage{bbding}


Stefan
Site admin

User avatar
Stefan Kottwitz
Site Admin
Posts: 9413
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Mar 22, 2019 9:42 am

Regarding hyperref: indeed, it should be loaded at the end, because hyperref redefines a lot of macros of other package in order to add hyperlink capability to the macros.

There are exceptions though: packages that actually rely on hyperref or add something to its capabilities. Stephen wrote on TeX.SE a summary:


geometry
robustindex
hypdestopt, hypcap, hypbmsec
attachfile
showframe, showidx
uri, pageslts, regstats
refcheck

and probably also further packages with \RequirePackage{hyperref}. A quick search in TeX Live 2011 resulted in this list:

amsrefs
attachfile2
bugtracker (part of pgfplots)
classicthesis
doi
dtx-style (part of thuthesis)
eforms
exerquiz
hypgotoe
insdljs
ltxdockit
opcit
prerex
rec-thy
tdclock
toptesi
ydoc-code and ydoc-desc

Packages with \RequirePackage[<some option(s)>]{hyperref}:

beamerbasearticle
bidituftehyperref
chextras
cmpj
dtk-pdf
easy-todo
hep
hrefhide
ifmslide
lstdoc
ocgtools
pdfcomment
pdfscreen
pdfx
rvdtx
strukdoc
ucshyper


That's a lot but many are rarely used anyway.

Stefan
Site admin

kurttodoroff
Posts: 12
Joined: Thu Feb 07, 2019 4:25 pm

Postby kurttodoroff » Fri Mar 22, 2019 8:53 pm

Johannes,

I moved hyperref to the end of the list. I reran my document, with bbding in the list, on the small chance that this would remedy the problem. The problem remains.

I am not using all of these symbols packages in my current four LaTeX projects. I have used them in previous projects. I store all of my preamble commands in a single file, which, each document uses (\input{file}). I'm not certain how you concluded that they are random. I added them to the file, as each new need arose.



Johannes and Stefan,

I want to use:

\ArrowBoldRightShort (which I would modify as \scalebox{1.5}[0.7]\ArrowBoldRightShort)

in one of my current LaTeX projects. I located it in the bbding list, only, in The Comprehensive LATEX Symbol List. Do you know if it exists in a package that I am already loading?

I use the TeX Live Utility to update the packages in my system, once a week. I don't review the documentation for each of the updates. I am wondering if, during the past two decades, some of the symbols packages have become supersets of other symbol packages. If so, perhaps I could remove some of the symbols packages from my file. That being said, does a single superset symbols package exist?

Your thoughts?

Thank you.

Regards,

Kurt

User avatar
Stefan Kottwitz
Site Admin
Posts: 9413
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Mar 22, 2019 9:46 pm

Hi Kurt,

there is no superset.

Did you try what I wrote above? This fixes the bbding clash.

Stefan
Site admin

kurttodoroff
Posts: 12
Joined: Thu Feb 07, 2019 4:25 pm

Postby kurttodoroff » Sat Mar 23, 2019 2:33 am

Hi, Stefan.

Your code worked well. The arrow appears exactly as I had wanted it.

Regards,

Kurt

kurttodoroff
Posts: 12
Joined: Thu Feb 07, 2019 4:25 pm

Postby kurttodoroff » Sun Mar 24, 2019 4:51 am

Hi, Stefan.

I am using the minitoc package in one of my current documents. I am generally pleased with the results, however:

1: I am unable to change the chapter toc font to match the document font Helvetica (phv). I have searched the minitoc documentation for this, unsuccessfully.

2: I am unable to increase the chapter toc width. Again, I have been unable to find this in the documentation.

I am reproducing a table from an old document (nearly sixty years). I have used the tabular environment to reproduce all of the complex table, with the exception of the rectangular box in the top left corner, as displayed here. This is eluding me. I welcome your suggestions.

Screen Shot 2019-03-23 at 22.44.47.jpg
Screen Shot 2019-03-23 at 22.44.47.jpg (46.45 KiB) Viewed 487 times


Regards,

Kurt

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Mar 24, 2019 8:32 am

Please start a new thread for every issue you are facing. One for the minitoc thing, one for the tables (they seem to be unrelated).

Don't forget to post a minimal working example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9413
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Mar 24, 2019 11:18 am

Hi Kurt,

indeed, I and others rarely read later posts in older already solved topics. It's better to open a new topic, for each single thingy or question. That makes reading and archiving easier.

And, having a code sample helps us to test and to give you code for a fix. You post code, you get code. ;)

Thanks,

Stefan
Site admin


Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 5 guests