Expression isn't shown entirely

  • Context: MHB 
  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Expression
Click For Summary
SUMMARY

The discussion centers on the issue of LaTeX expressions being cut off due to long lines in the code. The user is attempting to display the function $\epsilon_p(a+b)$, which involves modular arithmetic, but encounters formatting problems. Solutions suggested include using the \bmod command instead of \pmod and employing the equivalence symbol $\equiv$ for clarity. The context of $p$-adic integers is also highlighted as relevant to the discussion.

PREREQUISITES
  • Familiarity with LaTeX typesetting
  • Understanding of modular arithmetic
  • Knowledge of $p$-adic integers
  • Experience with mathematical notation and formatting
NEXT STEPS
  • Research LaTeX line breaking techniques to prevent cut-off expressions
  • Learn about the use of \bmod and $\equiv$ in LaTeX for improved clarity
  • Explore the properties of $p$-adic integers and their applications
  • Investigate MathJax settings for better rendering of mathematical expressions
USEFUL FOR

This discussion is beneficial for mathematicians, LaTeX users, and educators who are working with modular arithmetic and $p$-adic integers, particularly those seeking to improve their LaTeX formatting skills.

evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hello! (Wave)

I am writing a text in LATEX and I wrote this:

Code:
\begin{align*} 
\epsilon_p(a+b)&=((a+b)\pmod p, (a+b)\pmod{p^2}, (a+b)\pmod{p^3}, \dots )\\ 
&=(a\pmod p+b\pmod p, a\pmod{p^2}+b\pmod{p^2}, a\pmod{p^3}+ b \pmod{p^3}, \dots) \\ 
&=(a\pmod p, a\pmod{p^2},a\pmod{p^3}, \dots)+(b\pmod p, b\pmod{p^2}, b\pmod{p^3}, \dots) \\ 
&=\epsilon_p(a)+\epsilon_p(b) 
\end{align*}

but the expression is cut off and isn't shown entirely... Why does this happen? :( What could I do?
 
Physics news on Phys.org
Apparently it is cut off because the lines are too long. By the way, your notation does not make much sense to me. The only context I saw where [m]\pmod[/m] is used is $a\equiv b\pmod{p}$. Of course, I don't know your context, so maybe it's OK.
 
Hey! ;)

\begin{align*}
\epsilon_p(a+b)&=((a+b)\pmod p, (a+b)\pmod{p^2}, (a+b)\pmod{p^3}, \dots )\\
&=(a\pmod p+b\pmod p, a\pmod{p^2}+b\pmod{p^2}, a\pmod{p^3}+ b \pmod{p^3}, \dots) \\
&=(a\pmod p, a\pmod{p^2},a\pmod{p^3}, \dots)+(b\pmod p, b\pmod{p^2}, b\pmod{p^3}, \dots) \\
&=\epsilon_p(a)+\epsilon_p(b)
\end{align*}

No problem here, in mathjax, apparently.
So presumably you have indeed a context that sets a paper size or some such.
 
Evgeny.Makarov said:
The only context I saw where [m]\pmod[/m] is used is $a\equiv b\pmod{p}$. Of course, I don't know your context, so maybe it's OK.

It is a property of $p$-adic integers.
$\epsilon_p: \mathbb{Z} \to \mathbb{Z}_p$ is the function :

$$\epsilon_p(x)=(x \mod p, x \mod{p^2}, x \mod{p^3}, \dots)$$
 
evinda said:
It is a property of $p$-adic integers.
$\epsilon_p: \mathbb{Z} \to \mathbb{Z}_p$ is the function :

$$\epsilon_p(x)=(x \mod p, x \mod{p^2}, x \mod{p^3}, \dots)$$

I suggest using \bmod (bare mod).
Oh, and perhaps using $\equiv$.
$$\epsilon_p(x)\equiv(x \bmod p,\ x \bmod{p^2},\ x \bmod{p^3}, \dots)$$
(Thinking)
 
I like Serena said:
I suggest using \bmod (bare mod).
Oh, and perhaps using $\equiv$.
$$\epsilon_p(x)\equiv(x \bmod p,\ x \bmod{p^2},\ x \bmod{p^3}, \dots)$$
(Thinking)

Ok... (Nod) Thank you! (Smile)
 

Similar threads

Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
908
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 26 ·
Replies
26
Views
4K