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 2465 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

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

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