Skip to content

Posts from the ‘LaTeX’ Category

Handling of the author prefix in Bibtex


In the reference list, references are often ordered based on the surname of the first author alphabetically (A to Z). However some of author names contain prefix such as van or de. This is normally treated as the first letter of the author name in LaTeX. To retain this prefix in the reference but ignored by LaTeX, there is a need to do something more in the LaTeX script. Here is how to do it.

Assume we would like to deal with the reference whose first author name is Arjan van Weele, there are four steps to deal with this issue.

1. In preamble, add the following code.

\DeclareRobustCommand{\VAN}[3]{#2}

2. Just before declare \bibliography{}, add the following code.

\DeclareRobustCommand{\VAN}[3]{#3}

3. In the BibTeX, record author name as follows.

{\VAN{Weele}{Van}{van}} Weele, Arjan

4. Compile LaTeX as usual

Source: Tex.stackexchange.com

Rename Bibliography to References in LaTeX


If the Babel package is used,

For book or report class, add the following code in the preamble.

\addto\captionsenglish{\renewcommand{\bibname}{References}}

For article class, add the following code in the preamble.

\addto\captionsenglish{\renewcommand{\refname}{References}}

If the Babel package is NOT used,

For book or report class, add the following code in the preamble.

\renewcommand{\bibname}{References}

For article class, add the following code in the preamble.

\renewcommand{\refname}{References}

 

Common error in technical writting


Today I found a useful information on common error in technical writing especially with LaTeX by John Owens from UC Davis.

Here is the link

How to licence your thesis using Creative Commons


One of the main objectives of PhD thesis (dissertation) is to advance the subject by making a contribution. Traditionally theses have been licensed under the copyright where all rights are reserved. And I also did put “All rights reserved” on the cover page of my thesis when I first drafted it. But just today when I realised that I should replace it by a “Creative Commons” one which could enhance the contributions and the impacts of my thesis.

Therefore I adopted the CC BY-NC-ND licence.  Then others are free to copy, distribute and transmit the work with some conditions.

To do so, I inserted the artwork of the By-NC-ND licence and put the sentence ” This thesis is licensed under a Creative Commons Attribution-Non Commercial-No Derivs 3.0 Unported License.” with the link to Creative Commons site that explain the licence.

1. Choose a licence you will use for your thesis here

2. Download the button of the licence you here and save the image in the LaTeX script folder of your thesis. I named my image as cc-by-nc-nd.png

3. Put the following LaTeX code on the title page of your thesis

line 06: Place your licence file name. Mine is “cc-by-nc-nd.png”.
line 10: Place the URL link to your licence and its description.

LaTeX code:

%Insert Creative Commons Artwork
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\begin{center}
\leavevmode
%Insert image file name below "cc-by-nc-nd.png"
\includegraphics[width=1in]{cc-by-nc-nd.png}
\end{center}
\label{fig:cc}
%insert a link to the licence and its description below
\scriptsize{This thesis is licensed under a \href{http://creativecommons.org/licenses/by-nc-nd/3.0/}{Creative Commons Attribution-Non Commercial-No Derivs 3.0 Unported License.}}

4. Finally you will get the following on the title page of your thesis.

Back to LaTeX tips

แนะนำ Softwares สำหรับ LaTeX


Softwares สำหรับ LaTeX นั้นมีมากมาย (ลองดู list ใน Wikipedia ได้)
จากประสบการณ์ผมเองที่ใช้ LaTeX ทั้งบน MacBook ส่วนตัว และ Window PC ของโรงเรียน
และจากการที่ได้ลองใช้หลายๆ Softwares มาแล้วนั้น ขอแนะนำ Softwares ดังนี้ครับ
1. Texmaker
Advantages: Free, Cross-Platform, Modern view, quick error identification
Platforms: Window, Mac & Linux

Download Texmaker here

 

 

2. MacTeX
Advantages: Providing all you need to make a great LaTeX document in Mac (from my experience) including alternatives of LaTeX softwares for Mac + bibliography management softwares
Platform: Mac only
Download MacTeX here
More about MacTeX Click

More about LaTeX in Wikibook
<span>%d</span> bloggers like this: