Text Formatting'Undefined control sequence Strong text \strong' issue

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
astenix
Posts: 2
Joined: Thu Oct 02, 2014 8:48 pm

'Undefined control sequence Strong text \strong' issue

Post by astenix »

Hi all,
can anyone get me an idea about what is happened with my LaTeX document?

My enviromnent:
  • Debian: jessie
  • Kile: 2.1.3
  • Qt: 4.8.6
  • KDE: 4.14.0
  • TeX Live 2014/Debian
  • pdfTeX: 3.14159265-2.6-1.40.15
My very simple document:

Code: Select all

Code, edit and compile here:
\documentclass[a4paper,10pt]{book}
\usepackage[utf8]{inputenc}
\begin{document}
Strong text \strong{1}
Textbf text \textbf{2}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Compilation result with following:
[PDFLaTeX] finished with exit code 1
./test.tex:6:Undefined control sequence Strong text \strong

I'm sorry, but WAT? :shock:
How it can be possible?
Am I wrong about it, or '\strong' doesn't exist?

The log:

Code: Select all

This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014/Debian) (preloaded format=pdflatex 2014.9.20) 2 OCT 2014 21:53
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e <2014/05/01>
Babel <3.9k> and hyphenation patterns for 9 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/book.cls
Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/bk10.clo
File: bk10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@chapter=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2014/04/30 v1.2b Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
(/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
File: utf8.def 2008/04/05 v1.1m UTF-8 support for inputenc
Now handling font encoding OML ...
... no UTF-8 mapping file for font encoding OML
Now handling font encoding T1 ...
... processing UTF-8 mapping file for font encoding T1
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu
File: t1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc
defining Unicode char U+00A1 (decimal 161)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Last edited by Johannes_B on Sat Oct 04, 2014 8:17 pm, edited 2 times 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.

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

'Undefined control sequence Strong text \strong' issue

Post by Johannes_B »

The KOMA-script author provides a search that gives you the name of the package(s) providing a command. -> LaTeX commands (sorry, the site is a bit multilingual)

I was using this, because i don't know a command strong.

Searching a bit further leads me to Does LaTeX define a semantic equivalent of \textbf?. Again, no direct hit, but Martin Scharrer provides a new macro similar to \emph but using \textbf. You can use it in your documents.

Here is his code which you can run directly by clicking on »Open in writelatex«

Code: Select all

Code, edit and compile here:
\documentclass{article}
\makeatletter
\newcommand{\strong}[1]{\@strong{#1}}
\newcommand{\@@strong}[1]{\textbf{\let\@strong\@@@strong#1}}
\newcommand{\@@@strong}[1]{\textnormal{\let\@strong\@@strong#1}}
\let\@strong\@@strong
\makeatother
\begin{document}
Text \strong{strong text \strong{strong2 \strong{st-\strong{st}-st} yyy } xxxx} after
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Let's ask ourself, why doesn't LaTeX provide this command in the first place? \emph is the short form of emphasize. Another possibility to highlight something is to use small caps (uppercase letters at lowercase letters size). Please look at the attached pdf, what catches your eye when looking at the pages in full? Bold face words are always a bit like screaming »Look at me, look at me now!« ;-)
Or in other words, a reader turning the page will see some Klecks on the page and immediately look down at it, as there is something disturbing the greyness of the page.
Attachments
astenixStrong.pdf
(47.39 KiB) Downloaded 501 times
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
astenix
Posts: 2
Joined: Thu Oct 02, 2014 8:48 pm

Re: 'Undefined control sequence Strong text \strong' issue

Post by astenix »

Thank you, Johannes!
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: 'Undefined control sequence Strong text \strong' issue

Post by Johannes_B »

I added some remarks in between, not sure if you catched those. If you want to, take a look.
And by the way, welcome to our little community. ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply