-
The installation instructions assume that you have already installed the TeX Live distribution available from https://www.tug.org/texlive/ for
Linux
andWindows
or the MacTeX distribution available from https://www.tug.org/mactex/ forMacOS
. A minimal TeX Live distribution, sufficient for the Univers Condensed font library and USGS style files, can also be installed for manyLinux
distros usingsudo apt install texlive-latex-extra texlive-science
These installation installation instructions may work for other TeX distributions but this has not been tested.
-
Clone the
usgslatex
repository to a location of your choice on your computer. OnWindows
, theusgslatex
repository should be cloned to yourC:
drive for the installation file to work correctly. -
Install the Univers Condensed font library and USGS style files
-
To install the Univers Condensed font library and USGS style files on
MacOS
orLinux
open a terminal in theusgsLaTeX
subdirectory in your local clone of theusgslatex
repository and typesudo ./install.sh
sudo
is required to modified system files (for example,/usr/local/texlive/2021/texmf-var/fonts/
) for a specific TeX Live distribution. -
To install the Univers Condensed font library and USGS style files on
Windows
, runinstall.bat
in theusgsLaTeX
subdirectory in your local clone of theusgslatex
repository as an Adminstrator by right-clicking on the file and selecting "Run as administration". Similar to installing the Univers Condensed font library andUSGS style files onMacOS
andLinux
,install.bat
is run asan Administrator so that system files can be modified.
-
-
If the USGS style files have been correctly installed you should see something like the following on the last three lines of the output from
install.sh
andinstall.bat
.-
On
MacOS
andLinux
you should see something likeEvaluate if USGS style files are available Location of USGS LaTeX style files: /Users/jdhughes/Library/texmf/tex/latex/usgs/usgsreporta.sty
-
On
Windows
you should see something likeEvaluate if USGS style files are available Location of USGS LaTeX style files: c:/texlive/texmf-local/tex/latex/usgs/usgsreporta.sty
-
-
Test the Installation of the Univers Condensed font library installation can be tested using the
testunivers.tex
TeXfile in thetest
subdirectory. The filetestunivers.tex
is self contained in its definition of the Univers family, and does not use a separate package file. Try runningtestunivers.tex
file through LaTeX by typingpdflatex testunivers.tex
in a terminal open in thetest
subdirectory (or your preferred method of compiling TeX files). Inspect thetestunivers.pdf
file. Compare the content of the generated [pdf]{.sans-serif} file totestuniversPROOF.pdf
. If these two [pdf]{.sans-serif} files appear different the Univers font family was not installed correctly.Refer to William Asquith's original font installation document (
README_FontLibraryInstallation.pdf
) in thedoc
subdirectory for more details on installing the Univers Condensed Font Library if it was not successfully installed byinstall.sh
andinstall.bat
. -
The file
USGSLaTeXReport.tex
is a more complicated test of successful installation of the USGS Style files. Try runningUSGSLaTeXReport.tex
file through LaTeX using your preferred method of compiling TeX files. Inspect theUSGSLaTeXReport.pdf
file. Compare the content of the generated [pdf]{.sans-serif} file toUSGSLaTeXReportPROOF.pdf
. If these two [pdf]{.sans-serif} files appear different then there is a problem with your installation. Confirm that the USGS style files (in the$TEXROOT/tex/latex/usgs
) subdirectory.$TEXROOT
can be determined onMacOS
andlinux
by typing the following in a terminal:kpsewhich -var-value TEXMFHOME
$TEXROOT
can be determined onWindows
by typing the following in a terminal:kpsewhich -var-value TEXMFLOCAL
A simple example for using the LaTeX USGS style files is included in
doc/README_USGSstyFILES.pdf
. Individual style files in the package are
also listed and described in doc/README_USGSstyFILES.pdf
.
On MacOS
, an existing installation can be updated by:
-
Moving the existing installation (for example,
/usr/local/texlive/2014/
) to the trash. -
Move all existing LaTeX software (for example,
TeXShop
) to the trash. -
Empty trash
-
Install the new distribution
-
Open the TeXLive Utility and
-
Update the TeXLive Utility and allow any infrastructure updates
-
Install the
graphics-def
package if it is not installed -
Update all installed packages
-
-
Open a terminal in
$TEXROOT/dvips/funivers/
directory and type the following withsudo
privileges to allow the new version of LaTeX to access the Univers Condensed Font library-
texhash
-
updmap -sys –enable Map=funivers.map
-
updmap-sys
-
The USGS Style files and instructions for installing the Univers Condensed Font library were originally developed by William H. Asquith in the Texas Water Science Center. The USGS style files have been subsequently modified by Michael N. Fienen (Wisconsin Water Science Center), Christian D. Langevin (Water Resources Mission Area), and Joseph D. Hughes (Water Resources Mission Area) to add additional functionality and maintain consistency with SPN guidelines.