我怎麼能讓這麼大的數字適合我的乳膠文件?

我怎麼能讓這麼大的數字適合我的乳膠文件?

我嘗試使用不同的程式碼來適應這個大數字,但它超出了頁面範圍。它不適合。我對 LaTex 相當陌生,所以你的幫助將會非常有幫助。

下面是號碼以及我嘗試過但沒有成功的方法。

\hspace{-4.5cm}$114381625757888867669235779976146612010218296721
204236256256184293576935245733897830597123563958705058989075147599290026879543541$
$= 3490529510847650949147849619903898133417764638493387843990820577
\times
3276913299326670954996198819083446141317764296
7992942539798288533$

答案1

https://tex.stackexchange.com/a/15914/75284根據您的情況進行調整:

\documentclass{article}
\usepackage{numprint}
\begin{document}
\npthousandsep{\ensuremath\,\allowbreak}
\begingroup
\par\noindent\parindent=0pt
\numprint{114381625757888867669235779976146612010218296721
204236256256184293576935245733897830597123563958705058989075147599290026879543541}

\(=\) \numprint{3490529510847650949147849619903898133417764638493387843990820577}

\(\times\)

\numprint{3276913299326670954996198819083446141317764296
7992942539798288533}
\endgroup
\end{document}

螢幕截圖

那裡\npthousandsep{\ensuremath\,\allowbreak}有薄薄的空間作為千組分隔符號。

相關內容