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

Dictionary/Abbreviations #17

Merged
merged 18 commits into from
Mar 22, 2021
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ MAKES=guide/mu/Makefile guide/mu/resources/Makefile \
style/mu/Makefile test/Makefile test/mu/blind/Makefile \
test/mu/compare/Makefile test/mu/compare-example/Makefile
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 \
example/mu/econ-pdflatex.pdf example/mu/fi-lualatex.pdf \
example/mu/fi-pdflatex.pdf example/mu/fsps-lualatex.pdf \
Expand Down
4 changes: 2 additions & 2 deletions example/mu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ all: $(OUTPUT) clean
$(patsubst %-pdflatex.tex,%-,$(subst lua,pdf,$@))*.tex

# 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.
biber $(basename $<).bcf
$(PDFLATEX) $< # Update the index after the bibliography insertion.
Expand All @@ -30,7 +30,7 @@ all: $(OUTPUT) clean
$(PDFLATEX) $<

# 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.
biber $(basename $<).bcf
$(LUALATEX) $< # Update the index after the bibliography insertion.
Expand Down
12 changes: 12 additions & 0 deletions example/mu/example-terms-abbrs.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
% 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}
24 changes: 22 additions & 2 deletions example/mu/example.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,16 @@
%% assignment = assignment.pdf,
}
%</sci>
% \end{macrocode}
% \changes{v1.0.0}{2021/03/22}{Added \textsf{glossaries} package.
% [TV]}
% \begin{macrocode}
\usepackage{makeidx} %% The `makeidx` package contains
\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:
\usepackage{paralist} %% Compact list environments
\usepackage{amsmath} %% Mathematics
Expand Down Expand Up @@ -544,6 +552,18 @@
\makeatother

%</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}
\addcontentsline{toc}{chapter}{Introduction}

Expand Down Expand Up @@ -885,7 +905,7 @@ proofs.
%<*econ>
\emph{Source: <<Image Source>>}
%</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}
\label{fig:mulogo2}
\end{figure}
Expand Down Expand Up @@ -947,7 +967,7 @@ run of
\texttt{lualatex \jobname.tex}
%</luatex>
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.

\chapter{Mathematical equations}
Expand Down
2 changes: 2 additions & 0 deletions fithesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
\usepackage{paralist}
\usepackage{multicol}


% Making paragraphs numbered
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
Expand Down Expand Up @@ -1260,6 +1261,7 @@
% When the |\thesis@assignmentFiles| macro is defined and
% non-empty, the style files should take that as a cue that the
% user wishes to typeset the thesis assignment.

% \begin{macro}{\thesis@bibFiles}
% \subsubsection{The \texttt{bib} key}
% The \marg{\texttt{bib}=list} pair sets the comma-delimited
Expand Down