General'flowfram' text position in columns

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ZacharyRann
Posts: 6
Joined: Thu Feb 27, 2025 12:51 am

'flowfram' text position in columns

Post by ZacharyRann »

Hello all!

Could anyone lend any context on this behavior? The 1st column seems to add a line before the text, while the 2nd column's text meets with the top of the frame.
Screenshot 2025-03-19 112201.png
Screenshot 2025-03-19 112201.png (158.73 KiB) Viewed 13710 times
I'm slowly learning how to change the various parameters I need with the 3 columns and margins set up as frames in the flowfram package - https://ctan.org/pkg/flowfram?lang=en.

In my MWE, I am seeing text in the first column not quite reach the top of the column, like the 2nd column is able to. I am not certain how to resolve that.
I have an idea it may be because they're different frame types, but I'm having difficulty finding out how I can determine the frame type, or if the behavior is even related to the frame's type.

Code: Select all

\documentclass[12pt,a4paper]{article}
\usepackage[landscape]{geometry}
\usepackage{fontspec}
\usepackage[draft]{flowfram}
\usepackage{expex}

\geometry{
	top=25mm,
	bottom=36mm,
	left=25mm,
	right=25mm,
}

\headsep = 0pt
\marginparsep = 0pt
\marginparwidth = 25pt


\ffvadjustfalse

\setlength{\columnsep}{2.5cm}



\Ncolumn{3}

\setallflowframes{margin=left}
\setallflowframes{width=7.8cm}


\defineglwlevels{lit}


\begin{document}\emergencystretch 3em
	
\newcommand{\verseone}{\begingl[glhangstyle=none, extraglskip=6pt, aboveglbskip=-2pt, aboveglcskip=-3pt, abovegllitskip=1pt, everygla=\bfseries \normalsize, everyglb=\itshape \scriptsize, everyglc=\itshape \tiny, everygllit=\small, glwordalign=center, glspace=!.15em] 
		\gla All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy.//
		\glb all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy//
		\glc 1 2 3 4 5 6 7 8 9 1 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40//
		\gllit All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy.//
	\endgl}
	
\newcommand{\versetwo}{\begingl[glhangstyle=none, extraglskip=6pt, aboveglbskip=-2pt, aboveglcskip=-3pt, abovegllitskip=1pt, everygla=\bfseries \normalsize, everyglb=\itshape \scriptsize, everyglc=\itshape \tiny, everygllit=\small, glwordalign=center, glspace=!.15em] 
	\gla All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy.//
	\glb all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy all work and no play makes jack a dull boy//
	\glc 1 2 3 4 5 6 7 8 9 1 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40//
	\gllit All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy.//
	\endgl}

%only doing this to make it easier to add a marginpar, and call the gloss in the same line	
\marginpar{\centering\vspace{.08em}1:1}\verseone
\framebreak\marginpar{\centering\vspace{.08em}1:2}\versetwo
	

	
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10319
Joined: Mon Mar 10, 2008 9:44 pm

Re: 'flowfram' text position in columns

Post by Stefan Kottwitz »

Hi Zachary,

it's great that you posted a compilable example! So I could test it, and I see that the text is positioned as desired when you move the \marginpar positioning in the code:

Code: Select all

\verseone\marginpar{\centering\vspace{.08em}1:1}
output.jpg
output.jpg (44.74 KiB) Viewed 13669 times
Does this help?

Stefan
LaTeX.org admin
ZacharyRann
Posts: 6
Joined: Thu Feb 27, 2025 12:51 am

Re: 'flowfram' text position in columns

Post by ZacharyRann »

Hi Stefan!

Beautiful, that did it exactly! Thank you!

I was also able to remove \vspace{} from those lines after noticing I had only needed it because I hadn't noticed that the first line was a bit lower until the 2nd column was used:
\verseone\marginpar{\centering\vspace{.08em}1:1}

Not sure if I should do anything to close this out... ^_^
Attachments
Screenshot 2025-03-20 073254.png
Screenshot 2025-03-20 073254.png (141.36 KiB) Viewed 13609 times
Post Reply