Pattern recognition and order transition of the smectogenic trans-4- hexylcyclohexane carboxylic acid in nematic phase