C:\Program Files\MikTex
C:\Program Files\MikTexLocal
Everywhere I look says you should install new files (sty files) in the
local folder, in my case:
C:\Program Files\MikTexLocal\tex\latex\{packagename}\
But this folder doesn't exist! The only folder in C:\Program Files
\MikTexLocal\tex is one called 'generic'. I have tried to install a
package using the other root to put .sty files, but it doesn't work.
I am trying to install the textcomp package. I can't find anything in
the unpacked documentation about where to put the files.
> I am trying to install the textcomp package. I can't find anything in
> the unpacked documentation about where to put the files.
The textcomp package is already installed on your system. Why do you want
to install it manually?
--
Morten
1. you don't need to install textcomp.
2. if you can't create your own folder to install the file, you
probably couldn't install the file anyway.
how should miktex know, when creating your local tree, that some day
you were going to install the fubar package from your friend? if it
tried to do that sort of thing, it would need to create subdirectories
with names covering all conceivable letter/digit combinations; most
people wouldn't have a large enough disc to support that... :-}
--
Robin Fairbairns, Cambridge
I thought it wasn't installed because \textrightarrow didn't work.
Plus, when I try to run the test.tex file that was extracted during
the attempted installation of textcomp, it doesn't recognise any of
the commands in there either.
Well, textcomp clearly isn't working on my system. I'm giving serious
thought to reinstalling protext from scratch. Maybe that would fix it.
i would be surprised if it did.
it might be better (given that _two_ people have told you it doesn't
work) to investigate the problem. i note that you've told us nothing
more than textcomp "doesn't work" ... this puts us in the position of
magic meg with her crystal ball ... we're trying to guess what went
wrong, and at best can only offer plausible explanations.
anyway, my guess is that your test files compile ok, but that viewing
or printing complains that it can't find fonts. if this is indeed the
case, the problem is nothing to do with textcomp, and reinstalling
protext won't help at all.
i would recommend installing the latin modern fonts from the miktex
installer; the alternative would be the ec and the cm-super fonts, but
they're huge (lm is merely "rather large").
anyway, on my system, the code
\documentclass{article}
\usepackage[T1]{fontenc} % set font environment
\usepackage{lmodern} % use latin modern
\usepackage{textcomp} % what we're really after
\begin{document}
A \textrightarrow\ B
\end{document}
works, using the latin modern text symbols. if you've installed the
ec fonts, the first two \usepackage commands aren't necessary.
--
Robin Fairbairns, Cambridge
sorry, by 'doesn't work' I mean that it doesn't compile. In other
words, running latex on any .tex file which contains textcomp markup
such as \textrightarrow, \textacute, \textarrowdown etc causes the
compiler (i think that's what it is) to pause and come up with the '!
undefined control sequence' complaint.
Still can't handle \textarrowdown, \textacute, or \textcenteredstar.
\usepackage[T1]{fontenc} % set font environment
\usepackage{lmodern} % use latin modern
has had the effect of making it work. I have no idea why. Clearly I
have to investigate the meanings of fontenc and lmodern.
Does your file contain \usepackage{textcomp}?
>From a later post:
> no, correction. \textrightarrow has started working, but the other
> stuff like \textarrowdown still doesn't
That command is a misspelling of \textdownarrow.
The two commands \textrightarrow and \textdownarrow both
should work (compile) without any font packages (neither fontenc
nor lmodern). Such fonts may be needed to actually display
the correct symbol in pdf.
Dan
> no, correction. \textrightarrow has started working, but the other
> stuff like \textarrowdown still doesn't.
As other people said, it is \textdownarrow.
MiKTeX requires your roots to be TDS-style directories, and files must
be in the correct folders for MiKTeX to register them. For example,
files with a .sty extension must be located in
$ROOT/tex/latex/<package-name>, so you should place rsc.sty in
$ROOT/tex/latex/rsc. You should place it in your local root to avoid
MiKTeX overwriting it, losing it during an upgrade, etc.
I strongly suggest you read section 6 of the MiKTeX manual (assuming
you're using MiKTeX 2.5). You might also find the following links helpful:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=wherefiles
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds
Alan
you can install rcs using the miktex package manager. why don't you try
this method instead?
> This is driving me crazy. I have just tried to install the 'rsc'
> package. The compiler says 'file rsc.sty' not found. I created a
> folder called 'rsc' and put the rsc.sty in it (having run LaTeX on
> the .ins and .dtx like you're supposed to). The rsc folder went in one
> of my two roots (not the local one because as I said above, there are
> no folders in there bearing any resemblance to folders containing .sty
> files).
You must create the subfolders (e.g. <local root>/tex/latex/).
> I refreshed the fndb (start -> miktex -> options as I am using
> windows).
> Please can someone tell me where to put the .sty file?? There seems to
> be something fundamentally different about my setup to everyone else's.
Probably you put rsc.sty in the wrong place. It must go in
<(local) root>/tex/latex/rsc/rsc.sty.
--
Ulrike Fischer