I am not 100% sure if this is the best forum to post this question in but none of them fit perfectly.
I have the following problem. I would like to assemble a document with a bunch of variables and equations. In that document I would like to:
1) use dummy names for variables rather than typing symbols and 2) be able to adjust symbols later and have them change consistently in the entire document.
What I tried to do is make a list at the beginning of the document with \newcommand{\dumyname}{symbol} (c.f. MWE below). Then have a section with all the symbols in a table. The example is here:
Code: Select all
\documentclass[12pt]{article}
% define the title
\usepackage{amsmath}
%load math package
\author{NA. Bufe}
\title{Some equations}
\begin{document}
% generates the title
\maketitle
% insert the table of contents
\tableofcontents
\newpage
%% -------define new comands--------
\newcommand{\waterheight}{$h_w$}
\newcommand{\sediheight}{$h_s$}
%% -------Section 1 - Symbols--------
\section*{Symbols}
\begin{tabular}{l l}
\waterheight &Water depth ($m$)\\
\sediheight &Sediment thickness ($m$)\\
\end{tabular}
\end{document}
Code: Select all
\begin{equation}
x+y = \sediheight
\end{equation}
I was just wondering whether 1) there is some way to get methematical expressions into an equation or 2) there is another smart way around this.
The reason for this setup is as I said, that I would like to be able to change the symbology later in one place (at the beginning of the document) and then it consistently changes the symbol in all the equations that contain it and in the list of symbols. In addition I find it sometimes faster to type the dummy names then to type complicated symbols (those examples aren't very complicated but others might be).
I hope that this question is somewhat clear. Thanks for the help already!
Best wishes