# Force figure placement in text doesn't work in 'gji' document class

I have a problem with placing the figure. It is placed differently than in the code. In the article document class I use [h] specifier from the float package, but in the gji class it doesn't work. (The file gji.cls is available online at this website; scroll to the paragraph that begins with "LaTeX Class File and Documentation" and click on the link 'gji-latex.zip' to download the zip file.) I also tried the way with minipage.

Code:

\documentclass{gji}
\usepackage{lmodern}
\usepackage{mathtools}
\usepackage{amssymb,amsmath,amsfonts}
\usepackage{graphicx}
\usepackage[caption=false]{subfig}
\usepackage{float}

\begin{document}
\begin{abstract}
Theoretical fundamentals of the mechanism of electromagnetic field emission from rock samples subjected to destructive axial load are presented. The paper describes the construction of a measuring system designed for testing the nature of electromagnetic emission from rock samples subjected to axial load, giving the sensitivity of receivers required for recording weak electrical and magnetic signals. Time courses and spectra of electromagnetic fields emitted from selected rock samples, such as hard coal, sandstone, dolomite and magnesite, under conditions of destructive load on the studied objects were presented. These studies can be used to develop and implement an early warning system for mine bumps, rock formation break downs and landslide movements.
\end{abstract}

\section{Introduction}

\section{The mechanism of electromagnetic emission from rock samples under load}

...

We can express (Plewa and Plewa 1992):
$$\label{eq1} \vec{P}=Z_p\cdot d_p+\varepsilon_0\cdot \chi_r\cdot\vec{E}$$
$$\label{eq2} e_s=Z_p\cdot s+d_p\cdot\vec{E}$$
where:\\

...

The process of emission of electromagnetic fields, mainly from rocks without quartz crystals in their structure, which include, among others, hard coal, is explained on the example of a network of micro-cracks formed under the influence of compressive force, whose fractures are performed by oscillatory vibrations (Gong et al 2006, Krumbholz et al 2012, Rabinovitch et al 2000, Rabinovitch et al 2003, Rabinovitch et al 2007). This mechanism concerns micro-cracks of sizes from hundredths to several millimetres (Takeuchi and Nagahama 2006). An electric diagram of a single micro-crack is shown in figure 1 (Koktavy and Sikula 2004). As you can see, the system is composed of a capacitor with a capacity of C, the covers of which perform vibrations damped around the stable position $d$. One cover is grounded and the other one is loaded with
resistance $R$.\\

\begin{figure}[H]
\includegraphics[width=\columnwidth,keepaspectratio]{fig/fig1}
\caption{Electrical schematics of micro-cracks (Koktavy and Sikula 2004)}
\end{figure}

Assuming that the edges of micro-cracks are endowed with an heteronymous electrical charge (Sharma et al 2018) and starting from the law of conservation of energy, we can write (Koktavy and Sikula 2004) for the micro-cracks formed in the rock structure:


\end{document}

• Off-topic: You should really drop the nasty habit of ending paragraphs with \ line-break directives. – Mico Apr 20 at 15:11
• [h] is a standard option not from the float package (you intended [H]) . As the main effect of using [h] is to prevent page and bottom floats, its most likely result is always to send a float to the end of the document. – David Carlisle Apr 20 at 15:16
• The class redefines floats so [H] will not work. As the only reason to use a publisher class is to remove choice from the author and enforce the publisher style then i would simply allow the float to float to the top of the column as the style intends. – David Carlisle Apr 20 at 15:21
• What I need to modify to be able to use [h] option? – bartzmc Apr 20 at 15:23
• The gji document class was last updated more than 20 years ago. As David Carlisle has already noted in a comment, the document class file applies extensive modifications to the way LaTeX normally handles and places floats. Undoing this work, just so you can start using the [H] placement specifier, is unlikely to elicit applause from the editorial staff of the journal to which you are considering submitting a paper. The upshot: Let the journal have it their way, as far as the placement of figure and table floats is concerned -- and don't use [H] or [h]. – Mico Apr 20 at 15:48