Text FormattingDescription Doesn't Format Newcommand Argument Content

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
kurttodoroff
Posts: 27
Joined: Thu Feb 07, 2019 4:25 pm

Description Doesn't Format Newcommand Argument Content

Post by kurttodoroff »

I use the following two macros:

Code: Select all

\newcommand{\pfcc}{p\index{p (Roll Rate)}}
\newcommand{\pdotfcc}{$\dot{\textnormal{p}}$\index{p@$\dot{\textnormal{p}}$ (Roll Acceleration)}}
I use them, as follows:

Code: Select all

\begin{description}
\item [N$_\textbf{z}$] Normal Acceleration
\item [p] Ambient Air Pressure
\item [\pfcc] Roll Rate
\item [\textbf{\pdotfcc}] Roll Angular Acceleration
\end{description}
LaTeX (TeXShop) produces the following:
Screen Shot 2020-02-22 at 19.55.53.jpg
Screen Shot 2020-02-22 at 19.55.53.jpg (25.54 KiB) Viewed 2795 times
Dot-p is not boldface formatted in the description argument. How can I retain boldface formatting for dot-p?

Thank you.

Kurt
Last edited by cgnieder on Sun Mar 01, 2020 5:00 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Description Doesn't Format Newcommand Argument Content

Post by Johannes_B »

You explicitly avoid bold by using textnormal.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
kurttodoroff
Posts: 27
Joined: Thu Feb 07, 2019 4:25 pm

Description Doesn't Format Newcommand Argument Content

Post by kurttodoroff »

Johannes_B,

I use textnormal to remove math mode text formatting. I use the macro "\pdotfcc" throughout the document.

Subsequently, I reapplied bold formatting within the description argument.

Kurt
Last edited by cgnieder on Sun Mar 01, 2020 5:01 pm, edited 1 time in total.
kurttodoroff
Posts: 27
Joined: Thu Feb 07, 2019 4:25 pm

Description Doesn't Format Newcommand Argument Content

Post by kurttodoroff »

I replaced a with \text within the macro (and within all similar macros)

Code: Select all

\newcommand{\pdotfcc}{$\dot{\textnormal{p}}$\index{p@$\dot{\textnormal{p}}$ (Roll Acceleration)}}.
This solved the problem.

Kurt
Last edited by cgnieder on Sun Mar 01, 2020 5:01 pm, edited 1 time in total.
Post Reply