Advertisement
Guest User

Untitled

a guest
Oct 16th, 2012
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.83 KB | None | 0 0
  1. \documentclass[a4paper,12pt,oneside]{memoir}
  2. \usepackage{fontspec}
  3. \usepackage{xunicode}
  4. \usepackage{xltxtra}
  5. \usepackage{polyglossia}
  6. \setdefaultlanguage{russian}
  7. \defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase}
  8. \setmainfont{PT Serif}
  9. \setmonofont{PT Mono}
  10. \setmathrm{PT Serif}
  11. \newfontfamily{\cyrillicfont}{PT Serif}
  12. \newfontinstance\scshape[Letters=SmallCaps, Numbers=Uppercase]{PT Serif Caption}
  13. \usepackage{hyperref}
  14. \usepackage{indentfirst}
  15. \usepackage[cm]{fullpage}
  16. \usepackage{tabulary}
  17. \usepackage{ifthen}
  18. \pagestyle{empty}
  19. \setcounter{secnumdepth}{0}
  20. \setcounter{tocdepth}{2}
  21.  
  22. \newcommand{\weapon}[2]{
  23.  \subsubsection{#1}
  24.  #2\par
  25. }
  26. \newcommand{\calcminstrength}[1]{
  27.   0%\RoundNum{\pgfmathparse{#1/1.1}}
  28. }% or smth like that
  29. \newcommand{\minstrength}[1]{\ifthenelse{\calcminstrength{#1} < 1}{1}{\calcminstrength{#1}}}
  30. \newcommand{\weaponstats}[2]{%
  31.   \begin{table}[h] \begin{tabulary}{\textwidth}{CC}%
  32.   Price & #1 \\
  33.   Weight & #2 \\
  34.   Minimal Strength & \minstrength{#2}
  35.  \end{tabulary}\end{table}
  36. }
  37. \newcommand{\meleestats}[3]{
  38.  \begin{table}[h] \begin{tabulary}{\textwidth}{CC}
  39.   AP/hit & #1\\
  40.   AP/target hit & #2\\
  41.   Damage & #3\\
  42.   IUC (hit) & ???
  43.   % Inaccurate Universal Charateristic -- some sort of DPS for the balancing needs
  44.   % roughly is (10/AP per hit) * Damage, but really that's complicated
  45.   % you see, Damage is smth like 1d10 + A + N, where N is a number and A is a variable which depends on another variable.. And IUC is two numbers:
  46.   % minimal (10/AP per hit) * 1 + min(A) + N, maximal (10/AP per hit) * 10 + max(A) + N
  47.   % Moreover, for ranged weapons there are reloading APs...
  48.   \end{tabulary}\end{table}
  49. }
  50.  
  51. \begin{document}
  52. \chapter{Gear}
  53. ...
  54.  
  55. \weapon{Rock}{A common rock -- no more than 3\% of iron.}
  56. \weaponstats{0}{1}
  57. \meleestats{3}{4}{A}
  58.  
  59. ...
  60. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement