Skip to content
Snippets Groups Projects
Unverified Commit 65b59113 authored by xvrabcov's avatar xvrabcov Committed by GitHub
Browse files

Merge pull request #17 from xvrabcov/feature/terms-abbrv

Dictionary/Abbreviations
parents c9084f9b e61c016a
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,8 @@ MAKES=guide/mu/Makefile guide/mu/resources/Makefile \ ...@@ -24,7 +24,8 @@ MAKES=guide/mu/Makefile guide/mu/resources/Makefile \
style/mu/Makefile test/Makefile test/mu/blind/Makefile \ style/mu/Makefile test/Makefile test/mu/blind/Makefile \
test/mu/compare/Makefile test/mu/compare-example/Makefile test/mu/compare/Makefile test/mu/compare-example/Makefile
USEREXAMPLE_SOURCES=example/mu/Makefile example/mu/example.dtx \ USEREXAMPLE_SOURCES=example/mu/Makefile example/mu/example.dtx \
example/mu/*.ins example/mu/latexmkrc example/mu/*.ins example/mu/latexmkrc \
example/mu/example-terms-abbrs.tex
USEREXAMPLES=example/mu/econ-lualatex.pdf \ USEREXAMPLES=example/mu/econ-lualatex.pdf \
example/mu/econ-pdflatex.pdf example/mu/fi-lualatex.pdf \ example/mu/econ-pdflatex.pdf example/mu/fi-lualatex.pdf \
example/mu/fi-pdflatex.pdf example/mu/fsps-lualatex.pdf \ example/mu/fi-pdflatex.pdf example/mu/fsps-lualatex.pdf \
......
...@@ -21,7 +21,7 @@ all: $(OUTPUT) clean ...@@ -21,7 +21,7 @@ all: $(OUTPUT) clean
$(patsubst %-pdflatex.tex,%-,$(subst lua,pdf,$@))*.tex $(patsubst %-pdflatex.tex,%-,$(subst lua,pdf,$@))*.tex
# This target typesets a pdfLaTeX example. # This target typesets a pdfLaTeX example.
%-pdflatex.pdf: %-pdflatex.tex example.bib %-pdflatex.pdf: %-pdflatex.tex example.bib example-terms-abbrs.tex
$(PDFLATEX) $< # The initial typesetting. $(PDFLATEX) $< # The initial typesetting.
biber $(basename $<).bcf biber $(basename $<).bcf
$(PDFLATEX) $< # Update the index after the bibliography insertion. $(PDFLATEX) $< # Update the index after the bibliography insertion.
...@@ -30,7 +30,7 @@ all: $(OUTPUT) clean ...@@ -30,7 +30,7 @@ all: $(OUTPUT) clean
$(PDFLATEX) $< $(PDFLATEX) $<
# This target typesets a LuaLaTeX example. # This target typesets a LuaLaTeX example.
%-lualatex.pdf: %-lualatex.tex example.bib %-lualatex.pdf: %-lualatex.tex example.bib example-terms-abbrs.tex
$(LUALATEX) $< # The initial typesetting. $(LUALATEX) $< # The initial typesetting.
biber $(basename $<).bcf biber $(basename $<).bcf
$(LUALATEX) $< # Update the index after the bibliography insertion. $(LUALATEX) $< # Update the index after the bibliography insertion.
......
% These are examples for entries in Dictionary of Terms
% and List of Abbreviations
% Example of Dictionary entry
\newglossaryentry{Overleaf}
{
name=Overleaf,
description={is an online service for working with LaTex files.}
}
% Example of LoA entry
\newacronym{MUNI}{MUNI}{Masaryk University}
...@@ -510,8 +510,16 @@ ...@@ -510,8 +510,16 @@
%% assignment = assignment.pdf, %% assignment = assignment.pdf,
} }
%</sci> %</sci>
% \end{macrocode}
% \changes{v1.0.0}{2021/03/22}{Added \textsf{glossaries} package.
% [TV]}
% \begin{macrocode}
\usepackage{makeidx} %% The `makeidx` package contains \usepackage{makeidx} %% The `makeidx` package contains
\makeindex %% helper commands for index typesetting. \makeindex %% helper commands for index typesetting.
\usepackage[acronym]{glossaries} %% The `glossaries` package
\renewcommand*\glspostdescription{\hfill} %% contains helper commands
\loadglsentries{example-terms-abbrs.tex} %% for dict and loa
\makenoidxglossaries %% typesetting.
%% These additional packages are used within the document: %% These additional packages are used within the document:
\usepackage{paralist} %% Compact list environments \usepackage{paralist} %% Compact list environments
\usepackage{amsmath} %% Mathematics \usepackage{amsmath} %% Mathematics
...@@ -544,6 +552,18 @@ ...@@ -544,6 +552,18 @@
\makeatother \makeatother
%</econ> %</econ>
% \end{macrocode}
% \changes{v1.0.0}{2021/03/22}{Added \cs{printnoidxglossary} to print
% Dictionary and List of Abbreviations. [TV]}
% \begin{macrocode}
%% Uncomment the following lines (by removing the %% at the beginning)
%% and to print out List of Abbreviations and/or Dictionary in your
%% document. Titles for these tables can be changed by replacing the
%% titles `Abbreviations` and `Dictionary`, respectively.
%% \clearpage
%% \printnoidxglossary[title={Abbreviations}, type=\acronymtype]
%% \printnoidxglossary[title={Dictionary}]
\chapter*{Introduction} \chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction} \addcontentsline{toc}{chapter}{Introduction}
...@@ -885,7 +905,7 @@ proofs. ...@@ -885,7 +905,7 @@ proofs.
%<*econ> %<*econ>
\emph{Source: <<Image Source>>} \emph{Source: <<Image Source>>}
%</econ> %</econ>
\caption{The logo of the Masaryk University at $\frac23$ and \caption{The logo of the \acrlong{MUNI} at $\frac23$ and
$\frac13$ of text width} $\frac13$ of text width}
\label{fig:mulogo2} \label{fig:mulogo2}
\end{figure} \end{figure}
...@@ -947,7 +967,7 @@ run of ...@@ -947,7 +967,7 @@ run of
\texttt{lualatex \jobname.tex} \texttt{lualatex \jobname.tex}
%</luatex> %</luatex>
and a second run is going to be needed for the references to and a second run is going to be needed for the references to
resolve. With online services -- such as Overleaf -- this is resolve. With online services -- such as \Gls{Overleaf} -- this is
performed automatically. performed automatically.
\chapter{Mathematical equations} \chapter{Mathematical equations}
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
\usepackage{paralist} \usepackage{paralist}
\usepackage{multicol} \usepackage{multicol}
% Making paragraphs numbered % Making paragraphs numbered
\makeatletter \makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
...@@ -1260,6 +1261,7 @@ ...@@ -1260,6 +1261,7 @@
% When the |\thesis@assignmentFiles| macro is defined and % When the |\thesis@assignmentFiles| macro is defined and
% non-empty, the style files should take that as a cue that the % non-empty, the style files should take that as a cue that the
% user wishes to typeset the thesis assignment. % user wishes to typeset the thesis assignment.
% \begin{macro}{\thesis@bibFiles} % \begin{macro}{\thesis@bibFiles}
% \subsubsection{The \texttt{bib} key} % \subsubsection{The \texttt{bib} key}
% The \marg{\texttt{bib}=list} pair sets the comma-delimited % The \marg{\texttt{bib}=list} pair sets the comma-delimited
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment