1. 程式人生 > >Latex公式文字插入空格

Latex公式文字插入空格

第一步,首先插入引用的包:

\usepackage{amsmath, amsfonts}
第二步,選擇合適的空格距離,參照下圖:

第三步,插入對應的程式設計指令:

% thin space
\,
\thinspace
 
% negative thin space
\!
 
% medium space
\:
 
% large space
\;
 
% 0.5em space
\enspace
 
% 1em space
\quad
 
% 2em space
\qquad
 
% custom space
\hspace{3em}
 
% fill empty space
\hfill

參考文獻:

[1] https://texblog.org/2014/04/09/whitespace-in-math-mode/