Some times I have to cite in my writings some file format using the "dot notation" e.g. .tiff or .dll.

So far I am using these formats:


Any guidelines or recommendation from the typography and publishing industry I am not aware of?

  • Well... CMS – Matsmath Aug 22 '16 at 17:49
  • 1
    You can use the \path command from url.sty, which offers the advantages that it is some kind of a standard, that it can do some reasonable line-breaking if you need that, and that you could change the definition later if a publisher wants something different. – Jim Hefferon Aug 22 '16 at 20:10

In general I think that a typewriter font is used for "computer code" but particular publishers (or thesis style checkers) may differ. I would use either \verb|.tag| or preferably \texttt{.tag}. Others may well disagree.

| improve this answer | |
  • In my understanding, the dot is not part of the filename extension. (See Wikipedia for example.)
  • If a file is named Letter.txt for example, then the filename extension is txt.
  • Therefore, I would classify the file as a TXT-file or txt-file using \texttt{}.

[...] usually the extension is the substring which follows the last occurrence, if any, of the dot character [...]

| improve this answer | |

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.