File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1414 * (enclosed in the file GPL).
1515 *)
1616
17- (* i $Id: main.ml,v 1.57 2004-09-02 07:22:36 filliatr Exp $ i*)
17+ (* i $Id: main.ml,v 1.58 2004-09-16 09:39:16 filliatr Exp $ i*)
1818
1919(* s Main module of bibtex2html. *)
2020
@@ -316,6 +316,7 @@ Usage: bibtex2html <options> [filename]
316316 -single produce a single page (with BibTeX input and output)
317317 -nodoc only produces the body of the HTML documents
318318 -nokeys do not print the BibTeX keys
319+ -nolinks do not print any web link
319320 -rawurl print URL instead of file type
320321 -heveaurl use HeVeA's \\ url macro
321322 -noabstract
@@ -376,6 +377,8 @@ let parse () =
376377 print_abstract := false ; parse_rec rem
377378 | ("-nokeywords" | "-no-keywords" | "--no-keywords" ) :: rem ->
378379 print_keywords := false ; parse_rec rem
380+ | ("-nolinks" | "-no-links" | "--no-links" ) :: rem ->
381+ print_links := false ; parse_rec rem
379382 | ("-nokeys" | "-no-keys" | "--no-keys" ) :: rem ->
380383 nokeys := true ; parse_rec rem
381384 | ("-usekeys" | "-use-keys" | "--use-keys" ) :: rem ->
Original file line number Diff line number Diff line change 1414 * (enclosed in the file GPL).
1515 *)
1616
17- (* i $Id: translate.ml,v 1.66 2004-06-30 07:05:35 filliatr Exp $ i*)
17+ (* i $Id: translate.ml,v 1.67 2004-09-16 09:39:16 filliatr Exp $ i*)
1818
1919(* s Production of the HTML documents from the BibTeX bibliographies. *)
2020
@@ -31,6 +31,7 @@ let title = ref ""
3131let title_spec = ref false
3232let print_abstract = ref true
3333let print_keywords = ref true
34+ let print_links = ref true
3435let print_header = ref true
3536let print_footer = ref true
3637let multiple = ref false
@@ -216,7 +217,9 @@ let display_links ch links =
216217 if r <> [] then output_string ch " | \n " ;
217218 display r
218219 in
219- if links <> [] then begin output_string ch " [ " ; display links end
220+ if ! print_links && links <> [] then begin
221+ output_string ch " [ " ; display links
222+ end
220223
221224exception Caught
222225
Original file line number Diff line number Diff line change 1414 * (enclosed in the file GPL).
1515 *)
1616
17- (* i $Id: translate.mli,v 1.7 2003 -09-30 15:50:44 filliatr Exp $ i*)
17+ (* i $Id: translate.mli,v 1.8 2004 -09-16 09:39:16 filliatr Exp $ i*)
1818
1919(* s Production of the HTML documents from the BibTeX bibliographies. *)
2020
@@ -32,6 +32,7 @@ val title : string ref
3232val title_spec : bool ref
3333val print_abstract : bool ref
3434val print_keywords : bool ref
35+ val print_links : bool ref
3536val print_header : bool ref
3637val print_footer : bool ref
3738val multiple : bool ref
You can’t perform that action at this time.
0 commit comments