word-count.tex 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. \documentclass{article}
  2. \usepackage{graphicx}
  3. \usepackage{amsmath}
  4. \title{The Title} % 2 in headers
  5. \author{An Author} % 0
  6. \date{May 2025} % 0
  7. \begin{document}
  8. \maketitle % 0
  9. \thanks{bleep bloop}
  10. \begin{abstract}
  11. Word word % 2 in abstract
  12. \end{abstract}
  13. \section{plain text}
  14. Word word % 2
  15. \section{accents}
  16. w\'ard w\`erd w\"ird w\~ord w\.urd w\^ord % 6
  17. \section{accents with groups}
  18. % w\'{a}rd w\`{e}rd w\"{i}rd w\~{o}rd w\.{u}rd w\^{o}rd w\c{o}rd w\u{o}rd % 8 % TODO
  19. \section{grouped single character command}
  20. % w{\o}rd w\~{\o}rd % 2 % TODO
  21. \section{commands that create characters}
  22. \o\oe\aa\AE % 1
  23. \subsection{with braces}
  24. w\o{}rd w\oe{}rd w\aa{}rd w\AE{}rd % 4
  25. \subsection{with spaces}
  26. w\o rd w\oe rd w\ae rd w\AE rd % 4
  27. \section{symbols}
  28. \S{} \P{} % 0
  29. \section{formatting}
  30. \textit{italic} \textbf{bold} \textit{\textbf{bold italic}} % 4
  31. \texttt{teletype} \textsf{sans-serif} \textsc{small caps} % 4
  32. \textsf{-} % 0
  33. \section{formatting inside word}
  34. % wo\textit{italic}rd %1 % TODO
  35. \section{commands that create text}
  36. \textbackslash{}word \LaTeX{} % 2
  37. \section{special characters}
  38. word\&word \$word word\% \#word wo\_rd \{word\} % 7
  39. \section{footnote}
  40. \footnote{word word} % 2 in footnote
  41. \section{headers}
  42. \part{word} % 1
  43. \chapter{word} % 1
  44. \section{word} % 1
  45. \subsection{word} % 1
  46. \subsubsection{word} % 1
  47. \paragraph{word} % 1
  48. \section{verbatim}
  49. \verb|word word word| % 0
  50. \section{list}
  51. \begin{itemize}
  52. \item word % 1
  53. \item word % 1
  54. \end{itemize}
  55. \section{figure}
  56. \begin{figure}
  57. \includegraphics[width=0.5\linewidth]{example.png} %0
  58. \caption{Word word} %2 in captions
  59. \end{figure}
  60. \section{table}
  61. \begin{table}
  62. \begin{tabular}{c|c}
  63. word & word \\ % 2
  64. word & word % 2
  65. \end{tabular}
  66. \caption{Word word} % 2 in captions
  67. \end{table}
  68. \section{line break}
  69. word\\word % 2
  70. \section{inline math}
  71. $2+3=5$ % 0
  72. \section{display math}
  73. \[2+3=5\]
  74. \begin{equation}
  75. 2+3=5
  76. \end{equation}
  77. \begin{equation*}
  78. 2+3=5
  79. \end{equation*}
  80. \begin{align*}
  81. 2x - 5y &= 8 \\
  82. 3x + 9y &= -12
  83. \end{align*}
  84. \section{text in math}
  85. $ 2+3 \text{ is equal to } 5 $
  86. \section{citations}
  87. \cite[two words]{example2025} % 2 in text (citekey ignored)
  88. % no extension
  89. \input{extra-words}
  90. \input{subfolder/extra-words}
  91. % .tex extension
  92. \input{extra-words.tex}
  93. \input{subfolder/extra-words.tex}
  94. % .tex extension, in subfolder
  95. \include{extra-words.tex}
  96. \include{subfolder/extra-words.tex}
  97. \end{document}