Headers and footers in LaTeX can be customized using the fancyhdr package or by modifying the pagestyle.