Automatic cross referencing in LaTeX

In technical and scientific writing it is common to references figures, tables and equations in the text. The figure, for example, would have a caption that reads “Figure 1: Robot at the beach”. In the text we then want to reference this figure as (see Figure 1). For far too long I made my own life too difficult by not taking advantage of some of the more advanced featurs of LaTeX. Here are some leasons I learned.

It would be possible to hard code the reference in the text by writing (see Figure 1), but this is not recommendet since the numbering might change when you add more figure or tables . Hence we use dynamic referencing by giving each figure or table a label which we reference using the \ref{label} command. In the text we would write (see Figure \ref{fig:robot}). Here is a complete example:

\documentclass[a5paper]{article}
\usepackage{graphicx}
\usepackage{lipsum}
\begin{document}

\lipsum[2] (see Figure \ref{fig:robot})

\begin{figure}[h]
\includegraphics[width=0.5\linewidth]{robot.jpg}
\caption{Robot at the beach}
\label{fig:robot}
\end{figure}

\end{document}

This will be rendered to PDF as:

Cross_referencing_documentation_01

The first, and possibly most effective time safer, is to use the \autoref{label} feature of the hyperref package. You should probably always use this package anyway for other reasons by adding \usepackage{hyperref}.

\documentclass[a5paper]{article}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{hyperref}
\begin{document}

\lipsum[2] (see \autoref{fig:robot})

\begin{figure}[h]
\includegraphics[width=0.5\linewidth]{robot.jpg}
\caption{Robot at the beach}
\label{fig:robot}
\end{figure}

\end{document}

This will automatically add the appropriate type of reference. For the figure type, it will add “Figure” to the text for you. This will be rendered to:

Cross_referencing_documentation_02

This also works for tables and equation. I wished I had know this little feature much earlier.

Adjustable nose bridge for swimming goggles

Pierre Magadur from the French Polytech Angers Engineering School worked on an internship project at the University of Canterbury. His goal was to find a better solution for adjusting the nose bridge for swimming goggles. Somehow they never seem to fit perfectly. Some manufacturers supply 3-4 sizes while others use a simple string. Still, adjusting them to individual needs remains difficult.

Pierre designed a solution that can be fitted to any goggles. The prototype is a proof of concept and focuses on the mechanical solution.  Here is a little video on how the design works:

Continue reading “Adjustable nose bridge for swimming goggles”

The Dorian Gray Refutation

The limitations of theories

I finally published an article with a title that could be from The Big Bang Theory: The Dorian Gray Refutation. It is an open peer commentary for the article “Social robots as depictions of social agents” in the Behavioral and Brain Sciences journal. Here is the abstract:

Theories are an integral part of the scientific endeavour. The target article proposes interesting ideas for a theory on human–robot interaction but lacks specificity that would enable us to properly test this theory. No empirical data are yet available to determine its predictive power.

New Zealanders respond to strict regulation of artificial intelligence

What a national survey reveals about AI in New Zealand

We just published the article “Personality and demographic correlates of support for regulating artificial intelligence” in the AI and Ethics journal. We analysed data from the New Zealand Attitudes and Values Study survey that collected around 48 thousand responses from New Zealanders. The survey asked them if they support the strict regulation limiting the development and use of Artificial Intelligence. We analysed if the response to this question is related to the respondent’s personality and social economic indicators.

Data revealed that support for strict regulation of AI is positively related with agreeableness, neuroticism, and honesty–humility. However, it is negatively related to openness to experiences. Being female, older, non-European, religious, being single, a parent, living rural, being born in NZ, and living in a more economically deprived region were all related to support for strict regulation of AI. However, how secure one felt in their current job and one’s level of education were not significantly related to their support for the strict regulation of AI.

This study will inform policy makers and technology companies on how New Zealanders feel about AI. You can read the full article for free from this address: https://doi.org/10.1007/s43681-023-00279-4