Skip to content

Commit d4a38da

Browse files
committed
fixed ligature issue
1 parent 65fdaf6 commit d4a38da

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lammps-tutorials.tex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
\usepackage[title]{appendix}
4040
\usepackage{csquotes}
4141

42+
% \usepackage{inconsolata} % Load a font with no ligatures
43+
4244
\usepackage[
4345
type={CC},
4446
modifier={by-nc-sa},
@@ -62,7 +64,6 @@
6264
\definecolor{listing}{rgb}{0.95,0.95,0.95}
6365
\definecolor{command}{rgb}{0.15,0.15,0.15}
6466
\definecolor{download}{rgb}{0.039,0.616,0.851}
65-
%\definecolor{note}{rgb}{0.92,0.98,1.00}
6667
\definecolor{note}{rgb}{1,0.988,0.93}
6768
\definecolor{note_listing}{rgb}{0.94,0.925,0.86}
6869

@@ -90,16 +91,16 @@
9091
bottom=5pt, % Extra bottom padding
9192
}
9293

94+
\DisableLigatures{encoding = *, family = *} % Deal with ligature problem when copy-pasting "fi"
95+
9396
\renewcommand{\floatpagefraction}{0.8} % At least 80% of a page must be used by floats
9497
\renewcommand{\textfraction}{0.1} % At least 10% of a page must contain text
9598

96-
% \renewcommand{\emph}[1]{\underline{#1}} % make \emph{} use underline instead of italic
97-
% S.G.: I went back to italic since all the other italic commands were replaced
9899
\newcommand{\lmpcmd}[1]{\hspace{0pt}\colorbox{listing}{\textcolor{command}{\small{#1}}}\hspace{0pt}} % lammps command
100+
% \newcommand{\lmpcmd}[1]{\hspace{0pt}\colorbox{listing}{\textcolor{command}{\texttt{#1}}}\hspace{0pt}} % lammps command
99101
\newcommand{\lmpcmdnote}[1]{\hspace{0pt}\colorbox{note_listing}{\textcolor{command}{\small{#1}}}\hspace{0pt}} % lammps command inside note
100102
\newcommand{\flrcmd}[1]{\textcolor{command}{\texttt{#1}}} % folder in monopace
101103
\newcommand{\flecmd}[1]{\textcolor{command}{\texttt{#1}}} % files name in monopace
102-
%\newcommand{\guicmd}[1]{\textcolor{command}{\texttt{\enquote{#1}}}} % LAMMPS-GUI commands in quotation monopace
103104
\newcommand{\guicmd}[1]{\textcolor{command}{\texttt{«#1»}}} % LAMMPS-GUI commands in French quotation monopace
104105
\newcommand{\dwlcmd}[1]{\textcolor{download}{\texttt{#1}}} % downloadable files in monopace blue
105106

0 commit comments

Comments
 (0)