New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 11124 for NEMO/trunk/doc/latex/NEMO/main/ametsoc.bst – NEMO

Ignore:
Timestamp:
2019-06-17T14:49:53+02:00 (5 years ago)
Author:
nicolasmartin
Message:

Editing of ametsoc.bst to generate hyperlinks for DOIs or URLs
New version of bibtool resource file:

  • Braces as entries delimiter
  • All entry types in lowercase (^@...)
  • Normalisation of pages field ([0-9]+--[0-9])
  • Deletion of url field if doi is here
  • Definition of fields order
    sort.order =
    { * =
          # title     # chapter     # pages
          # journal   # booktitle   # edition # editor # series 
          # volume    # number      
          # author    # institution # school
          # year      # month
          # publisher # issn        # isbn
          # doi       # url
    }
    
  • coding the format of citations keys
    key.format =
    { %s(bibkey) # %-2n(author)_
         {   
              %+5.1W(journal)
                 # %0s(@book         ) { bk   } # %0s(@inbook       ) { ibk  }
                 # %0s(@incollection ) { icol } # %0s(@inproceedings) { iprc }
                 # %0s(@phdthesis    ) { phd  } # %0s(@techreport   ) { rpt  }
         }
      %2d(year)                    
    }
    
File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/doc/latex/NEMO/main/ametsoc.bst

    r10146 r11124  
    519519  duplicate$ empty$ 'skip$ 
    520520    { 
    521       "\doi{" swap$ * "}" * 
     521      "\href{http://dx.doi.org/" swap$ * "}{DOI}" * 
    522522    } 
    523523  if$ 
     
    527527  url empty$ 
    528528    'skip$ 
    529     { "\urlprefix\url{" url * "}" * output } 
     529    { "\href{" url * "}{URL}" * output } 
    530530  if$ 
    531531 note empty$ 
     
    16371637  "\providecommand{\natexlab}[1]{#1}" 
    16381638  write$ newline$ 
    1639   "\providecommand{\url}[1]{\texttt{#1}}" 
    1640   write$ newline$ 
    1641   "\providecommand{\urlprefix}{URL }" 
    1642   write$ newline$ 
    1643   "\expandafter\ifx\csname urlstyle\endcsname\relax" 
    1644   write$ newline$ 
    1645   "  \providecommand{\doi}[1]{doi:\discretionary{}{}{}#1}\else" 
    1646   write$ newline$ 
    1647   "  \providecommand{\doi}{doi:\discretionary{}{}{}\begingroup \urlstyle{rm}\Url}\fi" 
    1648   write$ newline$ 
    1649   "\providecommand{\eprint}[2][]{\url{#2}}" 
    1650   write$ newline$ 
     1639%  "\providecommand{\url}[1]{\texttt{#1}}" 
     1640%  write$ newline$ 
     1641%  "\providecommand{\urlprefix}{URL }" 
     1642%  write$ newline$ 
     1643%  "\expandafter\ifx\csname urlstyle\endcsname\relax" 
     1644%  write$ newline$ 
     1645%  "  \providecommand{\doi}[1]{doi:\discretionary{}{}{}#1}\else" 
     1646%  write$ newline$ 
     1647%  "  \providecommand{\doi}{doi:\discretionary{}{}{}\begingroup \urlstyle{rm}\Url}\fi" 
     1648%  write$ newline$ 
     1649%  "\providecommand{\eprint}[2][]{\url{#2}}" 
     1650%  write$ newline$ 
    16511651} 
    16521652EXECUTE {begin.bib} 
Note: See TracChangeset for help on using the changeset viewer.