Math & ScienceToo much space in squared trigonometric functions

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Too much space in squared trigonometric functions

Post by Cham »

I'm having a small glitch with trigonometric functions to some exponent (say squared). There's too much space before its argument, as shown with this simple MWE:

Code: Select all

\documentclass[11pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}
\usepackage{nccmath,amsmath}
\usepackage{amsfonts}
\usepackage{mathtools}

\begin{document}

Blabla bla:
	\begin{equation}
		\sin^2 \vartheta = \sin^2 \! \vartheta
	\end{equation}

\end{document}
Preview:
trig.jpg
trig.jpg (8.81 KiB) Viewed 10947 times
Adding the command \! (a negative space) before the argument almost solves the spacing issue, but it's not exactly "right". What would you do in such a situation?

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

Too much space in squared trigonometric functions

Post by Johannes_B »

I wouldn't do anything. Looks ok to me.
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
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Too much space in squared trigonometric functions

Post by Cham »

Which one? With the space, or using \! before the argument?
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Too much space in squared trigonometric functions

Post by Ijon Tichy »

The first one. As I've already told: You are spending a lot of time to change things, you should not change.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Too much space in squared trigonometric functions

Post by Cham »

I'm changing my code to improve it (as a purist) and to improve the output.

This huge document is a major project for me. The 12pt version is very nice and satisfying, but the font is too big. It feels a bit "amateur" (it has a kind of "MS Word look"). I reduced it to 11pt, and I now have to fix a large amount of mistakes I made when I started that project almost 9 years ago. I was learning LaTeX at that time (and still learning new tricks!).

Also, the new version could be useful since I could copy/paste some parts in new documents. So the code need to be polished.
Post Reply