format reference text