The answers to your three questions are
- Yes!: a dot in beetween no spaces does not mark a new sentence,
- No!: "DivX Mpeg-4" forms a closed unit and should not be separated but there is a better way - using
\mbox - shown in the example, and
- Yes!: mark-up is an important typographical feature.
In addition to the third point you have to remember that LaTeX is meant to use logical mark-up. So, as the comments say you should define something like \newcommand{\Htwosixfour}{\texttt{H.264}}. Or even better:
\newcommand{\markcodec}{\texttt}
\newcommand{\Htwosixfour}{\markcodec{H.264}}
This gives you the possibility to change the mark-up for all codec macros by redefining only one macro, which can be crucial if you are dealing with many codecs. For instance, if for some reasons you want to have no mark-up at all in the end you would say
\newcommand{\markcodec}{\relax}
You should also make use of the xspace package which is specially designed for those kinds of macros: \newcommand{\Htwosixfour}{\markcodec{H.264}\xspace}.
In the complete example additionally I defined a wrapper for this whole process in order to not be repetative while defining the control words for your codecs.
\documentclass{article}
\usepackage{xspace}
\newcommand{\markcodec}{\texttt}
\newcommand{\NewCodecMarkup}[2]{%
\providecommand#1{}
\def#1{\mbox{\markcodec{#2}}\xspace}
}
\NewCodecMarkup{\Htwosixfour}{H.264}
\NewCodecMarkup{\DivXmpegfour}{DivX\,Mpeg-4}
%\newcommand\Htwosixfour{\markcodec{H.264}\xspace}
%\newcommand\DivXmpegfour{\markcodec{DivX\nobreakspace Mpeg-4}\xspace}
\begin{document}
I used \Htwosixfour and \DivXmpegfour.
\end{document}
Update
You could also use this light-weight method (thank you egreg!):
\documentclass{article}
\newcommand{\codec}[1]{\mbox{\ttfamily #1}}
\begin{document}
I used \codec{H.264} and \codec{DivX\,Mpeg-4}.
\end{document}
Now, it is a matter of taste if you want write \Htwosixfour or \codec{H.264}. It's up to you to decide. If you are an indecisive person (:-)) and want to use both methods at the same time you could declare
\newcommand{\codec}[1]{\mbox{\ttfamily #1}}
\newcommand{\NewCodecMarkup}[2]{%
\providecommand#1{}
\def#1{\codec{#2}\xspace}
}
<lowercase letter> plus space. So no worries there. ForDivX Mpeg 4I'd use~. – daleif May 14 '14 at 14:14\newcommand{\Htwosizefour}{\texttt{H.264}}) and use that in your document:I also used \Htwosixfour{} and \Htwosixfive. I also ...That way, if you change your mind later, you only have to change a single macro. See Consistent typography. – Werner May 14 '14 at 14:19.) has special handling only when it is preceded by a capital letter and followed by space. And even then it has no special handling if\frenchspacingis in use. – morbusg May 14 '14 at 14:54.followed by space (marks a new sentence I assume). But what aboutdotbeing preceded by a capital letter? Can you make me an example about your statement above? Moreover, what is\frenchspacingexactly? Thanks:)– Pouya May 14 '14 at 16:27\frenchspacing, see [tag:frenchspacing]. So you shouldn't have any issues withh.264. – morbusg May 14 '14 at 16:38\textsf{\small ...}is preferable to\texttt{...}for highlighting the codecs, or maybe even\textsc{...}. I also would tend to put hard spaces in the name, but I'd have to reevaluate that choice on a case-by-case basis. – Steven B. Segletes May 19 '14 at 03:14