1

I want to write following in latex -

Nosé–Hoover thermostat

I tried this but it didn't work -

Nos$\ {\prime} e$--Hoover thermostat
  • Welcome to tex.sx. This isn't math. It's an accented letter in text. This can be input either as Nos`e--Hoover or directly as Nosé–Hoover if your input is encoded as utf-8. – barbara beeton May 25 at 23:42
  • 1
    Why an endash between two names instead of a simple hyphen? – Bernard May 25 at 23:45
  • @barbarabeeton yours didn't work, but I tried "Nos\'{e}--Hoover thermostat" and it worked. – Raghav May 25 at 23:58
  • 2
    @Bernard -- An en dash is used when multiple authors are involved. For relevant examples, see the AMS Style Guide for Journals, page 93. – barbara beeton May 26 at 0:33
  • 1
    @Bernard A Nose-Hoover (with a hyphen) is a device for cleaning up after you use a nose hair trimmer, not a type of thermostat :) – alephzero May 26 at 1:38
3

In the main text, just write, “Nosé–Hoover thermostat” (with a Unicode en-dash) and save the file as UTF-8. Then add to your preamble either the line

\usepackage{fontspec}

if you’re compiling in LuaLaTeX or XeLaTeX, or

\usepackage[T1]{fontenc}

If you need to use the legacy toolchain.

You can enable a few more symbols that aren’t in the T1 encoding with \usepackage{textcomp}, such as the copyright and Euro symbols. (You don’t need to do that if you’re already using the first method, with fontspec.)

You can still write this the old-fashioned way as Nos\'{e}--Hoover, and with some bibliography packages you might need to.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.