Unlike but, however is an adverb (NOT a conjunction) and is used only in formal styles: ‘I was hoping to deal with this matter quickly. However, the situation is more complicated than I thought.’ ‘The newspapers always carried stories of new advances and glorious victories. In reality, however, the war was not going well.’