Some organic compounds are known to self-assemble into nanotubes in solutions, but the packing of the molecules into the walls of the tubes is known only in a very few cases. Herein, we study two compounds forming nanotubes in alkanes. They bear a secondary alkanamide chain linked to a benzoic acid propyl ester (HUB-3) or to a butyl ester (HUB-4). They gel alkanes for concentrations above 0.2 wt.%. The structures of these gels, studied by freeze fracture electron microscopy, exhibit nanotubes: for HUB-3 their external diameters are polydisperse with a mean value of 33.3 nm; for HUB-4, they are less disperse with a mean value of 25.6 nm. The structure of the gel was investigated by small- and wide-angle X-ray scattering. The evolution of the intensities show that the tubes are metastable and transit slowly toward crystals. The intensities of the tubes of HUB-4 feature up to six oscillations. The shape of the intensities proves the tubular structure of the aggregates, and gives a measurement of 20.6 nm for the outer diameters and 11.0 nm for the inner diameters. It also shows that the electron density in the wall of the tubes is heterogeneous and is well described by a model with three layers.