Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manual: use the underscore package #9987

Merged
merged 1 commit into from Oct 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 1 addition & 4 deletions manual/manual/library/Makefile
Expand Up @@ -25,7 +25,7 @@ STDLIB_INTF = $(STDLIB_MODs:%=%.tex)

COMPILER_LIBS_PLUGIN_HOOKS = Pparse.tex Typemod.tex

COMPILER_LIBS_INTF = Asthelper.tex Astmapper.tex Asttypes.tex \
COMPILER_LIBS_INTF = Ast_helper.tex Ast_mapper.tex Asttypes.tex \
Lexer.tex Location.tex Longident.tex Parse.tex Pprintast.tex Printast.tex \
$(COMPILER_LIBS_PLUGIN_HOOKS)

Expand Down Expand Up @@ -63,9 +63,6 @@ ocamldoc.out: $(DOC_ALL)
-latex-module-prefix "" \
-latex-module-type-prefix "" \
-latex-value-prefix ""
mv Ast_helper.tex Asthelper.tex
mv Ast_mapper.tex Astmapper.tex
mv Ocaml_operators.tex Ocamloperators.tex

%.tex: %.etex
$(TEXQUOTE) < $< > $*.texquote_error.tex
Expand Down
4 changes: 2 additions & 2 deletions manual/manual/library/compilerlibs.etex
Expand Up @@ -45,8 +45,8 @@ type\\*"#load \"compiler-libs/ocamlcommon.cma\";;".
% Ast_helper is excluded from the PDF and text manuals.
% It is over 20 pages long and does not have doc-comments. It is expected
% that Ast_helper will be only useful in the HTML manual (to look up signatures).
% \input{Asthelper.tex}
\input{Astmapper.tex}
% \input{Ast_helper.tex}
\input{Ast_mapper.tex}
\input{Asttypes.tex}
% \input{Lexer.tex}
\input{Location.tex}
Expand Down
2 changes: 1 addition & 1 deletion manual/manual/library/stdlib-blurb.etex
Expand Up @@ -217,6 +217,6 @@ be called from C \\
\input{Uchar.tex}
\input{Unit.tex}
\input{Weak.tex}
\input{Ocamloperators.tex}
\input{Ocaml_operators.tex}
}
\fi
5 changes: 0 additions & 5 deletions manual/manual/macros.tex
Expand Up @@ -41,11 +41,6 @@
\setcounter{tocdepth}{1} % Pour ne pas mettre les \subsection
% dans la table des matieres

% Pour avoir "_" qui marche en mode math et en mode normal
\catcode`\_=13
\catcode`\=8
\def\_{\hbox{\tt\char95}}
\def_{\ifmmode\else\_\fi}

\def\ttstretch{\tt\spaceskip=5.77pt plus 1.83pt minus 1.22pt}
% La fonte cmr10 a normalement des espaces de 5.25pt non extensibles.
Expand Down
5 changes: 5 additions & 0 deletions manual/manual/manual.tex
Expand Up @@ -119,6 +119,11 @@
\fi

\usepackage[colorlinks,linkcolor=blue]{hyperref}

% Make _ a normal character in text mode
% it must be the last package included
\usepackage[strings,nohyphen]{underscore}

%\makeatletter \def\@wrindex#1#2{\xdef \@indexfile{\csname #1@idxfile\endcsname}\@@wrindex#2||\\}\makeatother
\def\th{^{\hbox{\scriptsize th}}}

Expand Down