A great welcome to the new year — wnarifin has agreed to take up the maintenance of usmthesis! Please follow new updates at https://github.com/wnarifin/usmthesis. The old repo is now archived.
Thank you again wnarifin!
A great welcome to the new year — wnarifin has agreed to take up the maintenance of usmthesis! Please follow new updates at https://github.com/wnarifin/usmthesis. The old repo is now archived.
Thank you again wnarifin!
I’ll cut to the chase: Cuti-cuti Malaysia calendar for 2023!
PDF for Penang version: download here.
For other states download the .zip or clone this Overleaf project to your own Overleaf account. Change
\def\mylocation{Penang} |
to e.g.
\def\mylocation{Selangor} |
If you would just like a calendar without the Malaysian holidays and/or Chinese lunisolar calendars, see this Github repo or this Overleaf template.
See this post for instructions on how to customise your calendar.
The calendar data used in this sample were obtained from the following sources, and I cannot guarantee their accuracy and correctness.
\\
for line breaks.Following up from the previous post Using APA7 with umalayathesis, but about usmsthesis. Likewise, I am hoping (against hope?) that one day, apacite
package will be updated to support APA7, so that usmthesis.cls
won’t need to undergo overhauling either.
But until that day comes, if you need to use APA7 with usmthesis
now, then it may actually be easier to make the following changes within usmthesis.tex
itself (don’t modify usmthesis.cls
).
Add these lines before \documentclass
.
\RequirePackage{scrlfile} \PreventPackageFromLoading{apacite,multibib} \AfterClass{book}{ \RequirePackage[style=apa,natbib]{biblatex} \let\bibsep\bibitemsep \addbibresource{mybib.bib} } |
Remove these lines from usmthesis.tex: (They may be far away from each other; look carefully for each line in your .tex)
\newcites{own}{List of Publications} \bibliographystyle{apacite} \bibliographystyleown{apacite} \bibliography{mybib} |
Where you had \bibliography{mybib}
, write instead:
\printbibliography[heading=bibintoc] |
If you have lists of your own publications, remove these lines too:
\nociteown{lim:2007,lim:latextypesetting} \bibliographyown{mybib} |
and write instead:
\begin{refsection} \nocite{lim:2007,lim:latextypesetting} \printbibliography[title={List of Publications},heading=bibintoc] \end{refsection} |
After making these changes, delete the previously generated .bbl files (if any) in the directory.
Then run pdflatex
, biber
, pdflatex
, pdflatex
. Note that the biber
processor must be used instead of bibtex
now.
(If compiling on Overleaf, it should all “just work” because the build tool knows which processor to use.)
Currently the umalayathesis
class uses apacite
to implement the bibliography style, but apacite
supports only APA6. For full APA7 it would be necessary to use biblatex-apa
; no BibTeX style for full APA7 exists yet.
I’m still hoping (against hope?) that one day, the apacite
package will be updated to support APA7, so that umalayathesis.cls
won’t need to undergo overhauling…
But for now, if you want to use full APA7, it may actually be easier to make the following changes within thesis.tex
itself.
Add these lines before \documentclass
:
\RequirePackage{scrlfile} \PreventPackageFromLoading{multibib} \providecommand{\newcites}[2]{} |
Make sure to add the custombib
option in the \documentclass
declaration:
\documentclass[english,singlespacedlisttitles,custombib]{umalayathesis} |
And then add these lines after \documentclass
:
\usepackage[natbib,style=apa]{biblatex} \addbibresource{myrefs.bib} \setlength\bibitemsep{2\onelineskip} \setlength\bibhang{0.5in} \renewcommand{\bibfont}{\SingleSpacing} |
Next remove or comment out these lines:
\bibliography{myrefs} \nociteown{Lim:2009,Bond:etal:WordNetBahasa:2014} \bibliographyown{myrefs} |
Add instead:
\cftinserthook{toc}{PlainChapTocLines} \cftinserthook{toc}{disableuppercase} \printbibliography[heading=bibintoc,title=\refname] \begin{refsection} \nocite{Lim:2009,Bond:etal:WordNetBahasa:2014} \printbibliography[heading=bibintoc,title=\listpubname] \end{refsection} |
If you are using the splitpubs
environment to separate your publication list for journal articles and conference proceedings, then change your splitpubs
in your .tex file to be:
\begin{splitpubs} \begin{refsection} \nocite{Bond:etal:WordNetBahasa:2014} \printbibliography[heading=subbibintoc,title={List of Publications:}] \end{refsection} \begin{refsection} \nocite{Lim:2009} \printbibliography[heading=subbibintoc,title={Papers Presented:}] \end{refsection} \end{splitpubs} |
After making these changes, delete the previously generated .bbl files (if any) in the directory.
Then run pdflatex
, biber
, pdflatex
, pdflatex
. Note that the biber
processor must be used instead of bibtex
now.
(If compiling on Overleaf, it should all “just work” because the build tool knows which processor to use.)
OK, time for another Cuti-cuti Malaysia calendar for 2022… and yes I’m shamelessly reusing text wholesale from last year’s post 🙂
You can download the PDF customised for Penang here. If you would just like a calendar without the Malaysian holidays and/or Chinese lunisolar calendars, see this Github repo or this Overleaf template.
Federal public holidays are highlighted in solid shaded pink circles, as in 1–2 February. Public holidays that are applicable for your home state (Penang in the above example) would be highlighted in solid shaded purple circles, as in 1 January. Public holidays in other states (relative to your home state) are also highlighted, but only in a hollow purple circle. See e.g. 14 January (Birthday of Yang di-Pertuan Besar) which is a public holiday in Negeri Sembilan, but not in Penang. School holidays are highlighted in light orange.
If you’d like to generate your own calendar for your own home state, or to change the illustrations/fonts/colours/etc, you can download the source code and compile with XeLaTeX. If you have an Overleaf account, you can also visit my read-only project and clone it to your own Dashboard. See this post for instructions on how to customise your calendar.
The calendar data used in this sample were obtained from the following sources, and I cannot guarantee their accuracy and correctness.
\\
for line breaks.Happy New Year 2022!
Stefan has published the 2nd edition of the LaTeX Beginner’s Guide. For this edition, I had the honour of being a technical reviewer while the book contents were being developed; and now that the updated edition is released I had also written a short book review. Read my review here, and get the book here.
So you’re writing your thesis, and you’ve made very sure to use \bibliographystyle{IEEEtran}
, or another style that numbers your citations sequentially throughout your thesis. Of course you would then expect that the first citation in your first chapter is [1], right? Right? So why does it not start from [1] in your own thesis; the first citation is some random number [16] or something??
The most likely cause is that you’ve used a \cite{...}
somewhere in your \section
, \subsection
etc., or in a \caption{...}
. So the compiler would see these \cite
first when they appear in the table of contents, list of figures and tables: and you would likely see your citations [1], … [16] appearing in those lists.
\usepackage{notoccite}
in your preamble: this would ensure that the sequential numbering of citations will not start in \tableofcontents
, \listoffigures
, \listoftables
.
Happy LaTeXing!
Dr Rizauddin Saian has released a LaTeX document class for writing Universiti Teknologi MARA theses! You can find it on Github and on Overleaf.
For other Malaysian university thesis LaTeX templates see our list here.
Another year, another Cuti-cuti Malaysia customisable calendar created with LaTeX! (Well at least this year my updates are quarterly)
You can download the PDF customised for Penang here. If you would just like a calendar without the Malaysian holidays and/or Chinese lunisolar calendars, see this Github repo or this Overleaf template.
Federal public holidays are highlighted in solid shaded pink circles, as in 12–13 February. Public holidays that are applicable for your home state (Penang in the above example) would be highlighted in solid shaded purple circles, as in 1 January. Public holidays in other states (relative to your home state) are also highlighted, but only in a hollow purple circle. See e.g. 1 February (Federal Territory Day) which is a public holiday in Kuala Lumpur, Putrajaya and Labuan, but not in Penang. School holidays are highlighted in light orange.
If you’d like to generate your own calendar for your own home state, or to change the illustrations/fonts/colours/etc, you can download the source code and compile with XeLaTeX. If you have an Overleaf account, you can also visit my read-only project and clone it to your own Dashboard. See this post for instructions on how to customise your calendar.
The calendar data used in this sample were obtained from the following sources, and I cannot guarantee their accuracy and correctness.
\\
for line breaks.Happy New Year 2021!
BibTeX files are quite amazing when you think about it: It’s a plain text file, acting as a format-independent database, holding information about various types of published (or unpublished) artifacts, to support the generation of citations in LaTeX documents.
BibTeX styles typically ignore fields that it doesn’t support, so you can add arbitrary field names to hold whatever additional information you want about each item, e.g. “annote
“, “keywords
“, “abstract
“, etc. Some reference management software even take to embed an entire PDF file as a binary string as a field (e.g. “bdsk-file-1
“) right inside the .bib file.
While this means you can use your .bib as a completely standalone reference library, it does mean that the .bib’s physical file size can get quite bloated, even to many MBs: bibliography processors like bibtex
or biber
would then take a much longer time reading and parsing the .bib file, even if they’re just going discard these field values. And if these fields contain special characters, like %
, then bibtex
/biber
will likely choke and fail to process the entire .bib file correctly.
It may therefore make sense to prune your .bib file to remove these fields, to export a leaner .bib. Several Python scripts have been written for such purposes (e.g. this one), but if you happen to have a copy of JabRef it’s pretty nifty too, especially if you prefer a GUI tool.