I've been continuing the work of developing a modern SAE class, and have found previous helps on this forum extremely useful. The next thing I am trying to accomplish is underlining the DOI in the bibliography to meet the SAE guidelines for the article class (for starters).

See here for the previous answers. For context, I'd like to provide a preamble that seems to work relatively well for this SAE class, as well as the latest *.cls file. This is the result of work by myself but also of a number of other people that I am building on.


% This package provides a handy way to deal with page number handling (fancy headers and footers)
\lfoot{Page \thepage \hspace{1pt} of \pageref{LastPage}}
\widowpenalty 10000
\clubpenalty 10000

% This package allows for footnoting within tables
\setlist[tablenotes]{label=\tnote{\alph*}, ref=\alph*, itemsep=\z@, topsep=\z@skip, partopsep=\z@skip,parsep=\z@,itemindent=\z@,labelindent=\tabcolsep,labelsep=.2em,leftmargin=*,align=left,before={\footnotesize}}

% This package is used for language localization. SAE uses American English!

% This package is used for advanced context-sensitive quotes. It is strongly recommended by the biblatex package, especially for writing in languages other than American English.

% This package provides some more advanced formatting of DOI within the document and for the bibliography.

% This package allows detailed control over the usage of underscores within a document 

% This package allows detailed control of spacing around other environments (i.e. enumitem, glossary, appendix)

% This package allows the use of color within the document.

% This package allows for detailed control of urls within the document and in the bibliography.

% This package is the latest and greatest used for inserting graphics into your document.
\graphicspath{{figures/}} % Provide a path to the document's figures.

% This package is for multi-figure usage (deprecated, but still useful here)

% This package is used to get more control over the positioning of floating objects (graphics, tables, etc.)

% This package is highly recommended by the biblatex package and extends the patching capability of the etoolbox package to biblatex macros, drivers, and formatting directives.

% For setting bibliography styles, this is the master package. Note: the following packages are NOT compatible with the biblatex package and should NOT be loaded: babelbib, backref, bibtopic, bibunits, chapterbib, cite, citeref, inlinebib, jurabib, mcite, mciteplus, multibib, natbib, splitbib, titlesec, ucs.
\usepackage[style=numeric, maxbibnames=4, minbibnames=3, sorting=none,firstinits=true, url=false, doi=true, backend=biber]{biblatex}

% This command will put a comma after the author list, before the title in the bibliography.

% This command will reformat the pages field to remove the "pp." prior to the pages listing in the bibliography.

% This command will remove the ", " prior to pages, and replace it with a colon.

% Show author names by last name for all classes.


% Remove the "in:" text prior to the "journaltitle" field in the bibliography






\DefineBibliographyStrings{american}{urlseen = {accessed}}

% Remove the default italics in the "journaltitle" field in the bibliography

% This block will help with the formatting of the DOI in the references. It will put the DOI on a new line (rather than split across two lines), and makes a lowercase "doi:" rather than "DOI:"

% This block will prevent biblatex from showing issns and other fields in the output for the article class. SAE prefers using DOI over ISSN. This code is cleaner than having to remove these things from your *.bib file(s). The lower block removes the publisher and editor in all classes except for books.
\AtEveryBibitem{% Clean up the bibtex rather than editing it

\ifentrytype{book}{}{% Remove publisher and editor except for books

% Typesets the URL (and DOI) in the same font as the document  

% This line defines which file(s) bibtex will look for your bib entries. 

% This package is used for hyperlinks within the document and to manage external hyperlinks in a final pdf. The biblatex package recommends loading this package after biblatex.

% Subfigure label control

% This should give a pretty decent compromise with hyphenation (as in reduce the amount of hyphenation in the paper without making things look bad).
\emergencystretch=1.4in%\maxdimen % Using \maxdim can cause too much spacing between the bibliography entries.

\AddAuthor{Author, co-author list ({\color{red}Do NOT enter this information. It will be pulled from participant tab in MyTechZone})}{Affiliation ({\color{red}Do NOT enter this information. It will be pulled from participant tab in MyTechZone})}

The following is the current SAE class, (work in progress, beta, based on class originally written by Axel Franke, and modified by others since, called SAERyan.cls in this example):

%% LaTeX document style `sae', for use with LaTeX2e
%% This is a style for typesetting an SAE technical paper.
%% COPYRIGHT 1999,2000 by Axel Franke, axel.franke@forbrf.lth.se
%% Copying of part or all of any file in the sae.cls style
%% is allowed under the following conditions only:
%% (1) You may freely distribute unchanged copies of the files. Please
%%     include the documentation when you do so.
%% (2) You may modify a renamed copy of any file, but only for personal
%%     use or use within an organization.
%% (3) You may copy fragments from the files, for personal use or for use
%%     in a macro package for distribution, as long as credit is given
%%     where credit is due.
%% You are NOT ALLOWED to take money for the distribution or use of
%% these files or modified versions or fragments thereof, except for
%% a nominal charge for copying etc.

% Identification
\ProvidesClass{saeRyan}[2000/06/28 SAE Technical paper format^^J
Copyright 1999,2000 Axel Franke (axel.franke@forbrf.lth.se)^^J]

  \typeout{^^JSetting document font to Times^^J}%
  \typeout{^^JSetting document font to Helvetica^^J}%

  \typeout{^^JPaper size: A4^^J}%
  \AtBeginDocument{ \columnsep 15mm }
  \typeout{^^JPaper size: Letter^^J}%
  \AtBeginDocument{ \columnsep .5in }



%% What we do not understand:
\DeclareOption*{\typeout{^^JOption [\CurrentOption] not %
supported by this style.^^J}}

%% default otions

% Using classes and packages

\RequirePackage{colortbl} % colored tables

% SAE color palette
%\definecolor{SAEblue}{cmyk}{0.86, 0.08, 0.04, 0.20}
\definecolor{SAEblue}{rgb}{0, .62, .91}
\definecolor{SAEdarkblue}{cmyk}{1.0, 0.6, 0.04, 0.19}
\definecolor{SAElightgreen}{cmyk}{0.69, 0, 0.97, 0}
\definecolor{SAEdarkgreen}{cmyk}{1.00, 0.02, 1.00, 0.1}
\definecolor{SAEyellow}{cmyk}{0, 0.31, 0.95, 0}
\definecolor{SAEorange}{cmyk}{0, 0.62, 0.95, 0}
\definecolor{SAEred}{cmyk}{0, 0.95, 1.00, 0}
\definecolor{SAElightgray}{cmyk}{0, 0, 0, 0.2}
\definecolor{SAEmediumgray}{cmyk}{0, 0, 0, 0.45}
\definecolor{SAEdarkgray}{cmyk}{0, 0, 0, 0.8}

% TexShop
% caption font


%% Declarations

% sections etc. not numbered

% LaTeX uses rubber length for \parskip
% SAE style seems to use fixed length
%\setlength{\parskip}{0 pt}

% distance between the preceding text and a list item (description
% list, enumerated list, etc.) was too large
%  This places floats where they should go (suggested by Ross Pursifull,
%  "Pursifull, Ross (R.)" <rpursifu@visteon.com>, 19991207)

%% Heading formats
%  {section}%
%  {1}%
%  {0mm}%
%  {-.1\baselineskip}%
%  {.1\baselineskip}%
%  {\large\bfseries\uppercase}%

%% Heading formats

%{-10\p@ \@plus -4\p@ \@minus -4\p@}
%{1\p@ \@plus 1\p@ \@minus 1\p@}




\renewcommand{\refname}{\flushleft\uppercase\bfseries REFERENCES}

%% Build title page
      \vskip 1 cm

% Boxes for the title


      Copyright {\copyright} #1 SAE International}%

You can use Leo Liu's solution from I cannot get a (properly) underlined hyperlink in blue




Or without packages

  • My reputation is still not quite high enough on this site to mark this as the answer, but this solution worked great. In fact, both options will come in handy as SAE for whatever reason wants DOIs for SAE technical papers and SAE journal articles to be underlined in black, but DOIs for non-SAE journal articles to be underlined in blue. This is very weird to me, but that is what they want. Next up will be dealing with how to manage SAE technical papers that did not make it into one of the SAE journals. I will have to formulate a question on the forum for that one shortly.
    – R.K.G.
    Feb 11 '16 at 16:12
  • @R.K.G. You should be able to accept the answer (using the green check mark) regardless of your reputation. (You can't up-vote as of now, I think.) Glad to be of service. (If you ask your new question you might want to consider watering down your mighty MWE a bit so it is easier to digest and understand by those trying to help.)
    – moewe
    Feb 11 '16 at 16:56
  • Got it... next time I'll reduce the MWE :)
    – R.K.G.
    Feb 12 '16 at 0:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.