Naked Rambler Stephen Gough has been jailed for two months for appearing naked in the dock from custody.
Gough was arrested several times on his journey
Mr Gough, from Eastleigh in Hampshire, completed his second naked trek from Lands End to John O'Groats last week.
He had been arrested on Wednesday for walking naked into Edinburgh Sheriff Court to face previous charges.
On Thursday, he again refused to cover himself and Sheriff Derrick McIntyre found him in contempt of court, telling him he was "offensive".
Mr Gough and his partner Melanie Roberts, 34, from Bournemouth, reached the north coast of Caithness last Monday after an 874-mile trek which began in June.
He was arrested and jailed on several occasions during his naked walk.
The 46-year-old ex-marine said he wanted to challenge public attitudes to nudity.