I'm fairly new to LaTeX and I'm struggling with something apparently simple, but for which I can't find a fair solution. The problem (simplified) is as follows (please take care terms used may not have the traditional meaning in LaTeX):
I need to references to files (many) throughout a text. As example, the files:
So, now I would like to create an "alias" to each directory and each name file so I can reference them. A "pseudocode" could be:
% Definition \alias \c_dir = C:/Work/ \alias \d_dir = D:/MoreWork/ \alias \file1 = this_file1.c \alias \file2 = another_file2.h % Reference in text \c_dir\file1 % For referencing C:/Work/this_file1.c \d_dir\file1 % For referencing D:/MoreWork/this_file1.c \c_dir\file2 % For referencing C:/Work/another_file2.h
My first approach was using
\newcommand, but that caused numerous problems due to naming limitations. (I also tried other methods like
pgfkeys, but it always gets stuck somewhere!)
Can you suggest a method?