How To Define And Use Macros In LaTeX

Поделиться
HTML-код
  • Опубликовано: 10 фев 2025

Комментарии • 5

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 2 года назад

    It would be nice to see a video dedicated to asymptotes and how to deal with rational functions. I found a LaTeX package called asymptote but it is rather terse and the documentation is not very useful. It is not clear if the package works with tikz/pgf either. I do realize that we will still have to find the asymptotes using regular algebra techniques before we can include them in our plots.

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 3 года назад

    Midway through the video these questions arose in my mind.
    1) There is another command \bar{} that produces overstrike. It is a bit shorter 'strike' than \overline{} uses. Does it matter which one is used?
    2) In the preamble I put mathmode inside the macros definition. For example:
    ewcommand{\mean}[1]{$ \overline{#1}$}.
    Then I just call the macro with \mean{} rather than $\mean{x}$. You seem to prefer the latter. Why?
    Thanks.

    • @PiTVmaths
      @PiTVmaths  3 года назад

      (1) I think \bar vs \overline is a matter of taste more than anything. See: tex.stackexchange.com/questions/22100/the-bar-and-overline-commands.
      (2) I prefer my way because maths will generally surround my macro, e.g. $x + \mean{x} = y$.

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 2 года назад

    Learning LaTeX and it's associated "add-ons" is a truly humiliating experience. Every time I think I have learnt something well and my chest is starting to puff up along comes another package like tikz/pgf with its massive manual I am feel as if I am back to square one! Is anyone actually a complete LaTeX expert?

    • @PiTVmaths
      @PiTVmaths  2 года назад +1

      I know what you mean-pgf/TikZ is a very humbling experience! If the genie granted me three wishes, one would go on making me a pgf expert.