Can You Take Batteries In Your Hand Luggage. But there are rules regarding the toothpaste you can take in carry on. The batteries must be protected from damage and short circuit or installed in a device.

Each passenger is limited to a maximum of 15 Portable electronic devices PED. If the battery is a spare - that is the battery is by itself and not contained in equipment - it must be in your carry-on baggage only. Laptop Batteries are recommended to be removed and carried in the hand baggage Laptop more than 2.
This applies to whatever type of battery they contain whether rechargeable lithium or NiMH or standard non-rechargeable batteries.
Its only uninstalled batteries that are prohibited. However we recommend that you pack them in your carry-on bag whenever possible. Portable battery chargers power banks or spare lithium batteries over certain wattage depending on the airline must not be put in. If you do this you should be OK.
