Text Formattinghdashrule with vspace inconsistency

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jefflesueur
Posts: 2
Joined: Mon Nov 04, 2024 4:51 pm

hdashrule with vspace inconsistency

Post by jefflesueur »

I am using hdashrule with vspace to create the separater in a weekly calendar, and only Monday comes out correct, with the line under the weekday.

Tuesday thru Saturday the line and vspace action is swapped, see picture.

I use "\hfill\break" for line terminator on the hdashrule.

\begin{center}\textbf{December}
\VerbatimInput{cal_25_trip_12.txt}
\end{center}
\vspace{12mm}
30 Monday\\
\hdashrule[0.5ex][c]{8cm}{1pt}{8mm 1pt}
\hfill\break
\vspace{18mm}
31 Tuesday\\
\hdashrule[0.5ex][c]{8cm}{1pt}{8mm 1pt}
\hfill\break
\vspace{18mm}
01 Wednesday\\
\hdashrule[0.5ex][c]{8cm}{1pt}{8mm 1pt}
\hfill\break
\vspace{18mm}
Attachments
Screenshot 2024-11-04 at 9.12.05 AM.png
Screenshot 2024-11-04 at 9.12.05 AM.png (107.5 KiB) Viewed 2734 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Bartman
Posts: 366
Joined: Fri Jan 03, 2020 2:39 pm

hdashrule with vspace inconsistency

Post by Bartman »

Please try to provide a Infominimal working example with marked code.

Without such an example, it could help if you replace the \hfill and \break commands by a blank line or the equivalent \par command.

The parskip package can be useful for indentation.
jefflesueur
Posts: 2
Joined: Mon Nov 04, 2024 4:51 pm

hdashrule with vspace inconsistency

Post by jefflesueur »

replacing \hfill\break with blank line works, thanks very much.
Attachments
Screenshot 2024-11-14 at 7.35.23 PM.png
Screenshot 2024-11-14 at 7.35.23 PM.png (85.4 KiB) Viewed 2537 times
Post Reply