Generalsubsection includes mathematical symbols - a warning

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

subsection includes mathematical symbols - a warning

Post by pallav »

The below line gives a warning in latex:

Code: Select all

\subsection{Global stability of $E^*(x^*,y^*,z^*)$.}
I want to remove the warning. I want to get a subsection where its heading includes mathematical symbols.

Recommended reading 2024:

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

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

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Re: subsection includes mathematical symbols - a warning

Post by php1ic »

What are the warnings? I get non with report class using your subsection title.

Can you post an MWE and the warning message.
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

subsection includes mathematical symbols - a warning

Post by pallav »

Code: Select all

\documentclass[12pt]{article}
\usepackage{psfrag}
%\usepackage{parskip}
\usepackage[parfill]{parskip} 
\usepackage{float, graphicx}
\usepackage[]{epsfig}
\usepackage{amsmath}
%\usepackage{amssymb}
\usepackage{stmaryrd}
\usepackage{verbatim}
\usepackage{multicol}
\usepackage{url}
\usepackage{latexsym}
\usepackage[backref,colorlinks, bookmarks=true]{hyperref}
\usepackage{easybmat}
\usepackage{amsmath}
\usepackage{hyperref}
\allowdisplaybreaks[1]
\hypersetup{colorlinks = true,linkcolor = blue, anchorcolor = blue, citecolor = blue, filecolor = red,urlcolor = red}
%\usepackage[dvipdf]{hyperref}
%\usepackage[backref]{hyperref}
\usepackage{hypcap}
%\usepackage{natbib}
%\setcitestyle{aysep={,},citesep={;}}
\topmargin -0.6in \textwidth  6.5in \textheight 9in
\addtolength{\oddsidemargin}{-0.55in}
\numberwithin{equation}{section}%\begin{document}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newenvironment{proof}[1][Proof]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{definition}[1][Definition]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{example}[1][Example]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{remark}[1][Remark]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}

\newcommand{\qed}{\nobreak \ifvmode \relax \else
      \ifdim\lastskip<1.5em \hskip-\lastskip
      \hskip1.5em plus0em minus0.5em \fi \nobreak
      \vrule height0.75em width0.5em depth0.25em\fi}%\newtheorem{definition}{Definition}
\def\h{\hspace{0.25cm}}
\def\sh{\hspace{0.1cm}}
\begin{document}
\section{Global stability of $E^*(x^*,y^*,z^*)$.}
\end{document}
I got 6 warning for this.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

subsection includes mathematical symbols - a warning

Post by localghost »

pallav wrote:I got 6 warning for this.
This is a trivial statement. Be more specific. The exact wording can be retrieved from the log file.

The warnings are caused by the hyperref package, which doesn't like math expressions in headings when generating the bookmarks for the document. Search the manual for the \texorpdfstring command to fix this problem.


Best regards
Thorsten
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Re: subsection includes mathematical symbols - a warning

Post by pallav »

^^

Thank you very much.
Post Reply