On Mon, 27 Jan 2020 at 06:18, Virgil Stokes <v...@it.uu.se> wrote:

> Thanks again George,
>
> On 2020-01-27 00:26, George N. White III wrote:
>
>
>
> On Sun, 26 Jan 2020 at 18:18, Virgil Stokes <v...@it.uu.se> wrote:
>
>> A better question I hope :-P
>> -------- Forwarded Message --------
>> Subject: Installation of my own *.cls or *.sty file -- How?
>> Date: Sun, 26 Jan 2020 22:08:37 +0100
>> From: Virgil Stokes <v...@it.uu.se> <v...@it.uu.se>
>> To: miktex-users@lists.sourceforge.net
>> <miktex-users@lists.sourceforge.net> <miktex-users@lists.sourceforge.net>
>>
>> I recently submitted an email with subject: Installation of my own
>> Package -- How?
>> Before submitting this new email, I tried both suggestions by Paul
>> Thompson and George N. White III. Unfortunately, the links and suggestions
>> given were not applicable to my problem it seems. I also tried many other
>> approaches and none of these solved my problem. I now believe that I asked
>> the wrong question.:-[
>>
>> Perhaps I need to go into more detail on my installation of MikTeX 2.9.
>>
>> Here is the complete path to my LaTeX packages:  C:\Program Files\MiKTeX
>> 2.9\tex\latex
>> I would like to add the following *.cls file to my MikTeX 2.9
>> installation:  elsarticleC.cls
>>
>> I have attached an image of my miktex-console_admin because some of the
>> suggestions given just do not apply as you can see from the attached images.
>> I would appreciate a 2nd look by Paul and George.
>>
>
> If you select the "Settings" panel and then the "Directories" tab, you
> should see a link "Which is the best directory to keep my .sty files?"
> This link shows you how to create the TDS structure for a LaTeX class.
> You need to do this is a location outside the MiKTeX package directories.
>
> Yes, I have looked at this when trying different methods:
>
> Example (Mac/Linux):
>
>    1. Create a new TEXMF root: mkdir ~/mytexmf
>    2. Create a sub directory: mkdir -p ~/mytexmf/tex/latex/mystuff
>    3. Copy your .cls and/or .sty files to ~/mytexmf/tex/latex/mystuff
>    4. Register the TEXMF root directory ~/mytexmf
>
> But, I have windows 10 not Mac/Linux
>

The steps on Windows are the same, but the examples are for the bash
command line (it is much easier to write documentation using text
commands for the examples).  You are expected to know how to create
a folder/directory, then create the nested sub-directories inside that,
copy files, and use the MiKTeX Utility to register your new TEXMF root.
Note that the "~" character, is just a shorthand notation for the user's
"home" directory.  On Windows it is common to put a personal
user's own Documents folder.

If you have trouble with one of these steps you need to provide more
details of the step giving you problems.


-- 
George N. White III

_______________________________________________
Q: How can I leave the mailing list?
A: See https://miktex.org/faq/how-can-i-leave-the-mailing-list

Reply via email to