I want to be able to calculate the maximum point size I can use for a phrase in a serif font so that it fits within \textwidth. For the calculation, there would be two inputs:
Phrase
\textwidth
The output would be the point size of the font. In a simple way, I'm thinking it would go something like ...
Search found 19 matches
- Sun Feb 02, 2025 11:03 pm
- Forum: General
- Topic: Calculating max point size to fit textwidth
- Replies: 1
- Views: 13258
- Mon Sep 02, 2024 11:23 pm
- Forum: General
- Topic: Entries in a custom table are also going into the Table of Contents
- Replies: 1
- Views: 7276
Entries in a custom table are also going into the Table of Contents
I found the solution. I needed to change \poemtitle{To the Lighthouse} to a starred version: \poemtitle*{To the Lighthouse} to stop it putting entries into the table of contents.
- Mon Sep 02, 2024 9:30 pm
- Forum: General
- Topic: Entries in a custom table are also going into the Table of Contents
- Replies: 1
- Views: 7276
Entries in a custom table are also going into the Table of Contents
I'm using this code to define a list of poems:
\documentclass[11pt,raggedbottom]{book}
\usepackage{lipsum}
\usepackage{tocloft}
\usepackage{verse}
% For the package verse
\newcommand{\attribution}[1]{%
\nopagebreak{\raggedleft\footnotesize #1\par}}
\renewcommand{\listfigurename}{Photos ...
\documentclass[11pt,raggedbottom]{book}
\usepackage{lipsum}
\usepackage{tocloft}
\usepackage{verse}
% For the package verse
\newcommand{\attribution}[1]{%
\nopagebreak{\raggedleft\footnotesize #1\par}}
\renewcommand{\listfigurename}{Photos ...
- Tue Jul 02, 2024 10:04 am
- Forum: Page Layout
- Topic: Control positioning of elements
- Replies: 3
- Views: 12575
Control positioning of elements
Got it!
I needed to read the tcolorbox manual to figure it out. Here is the code to set up the box to take three parameters:
Left indicator (heart)
Recipe title
Right indicator (check)
\makeindex
% Define custom gray colors
\definecolor{mylightgray}{RGB}{220, 220, 220} % RGB example ...
I needed to read the tcolorbox manual to figure it out. Here is the code to set up the box to take three parameters:
Left indicator (heart)
Recipe title
Right indicator (check)
\makeindex
% Define custom gray colors
\definecolor{mylightgray}{RGB}{220, 220, 220} % RGB example ...
- Tue Jul 02, 2024 8:10 am
- Forum: Page Layout
- Topic: Control positioning of elements
- Replies: 3
- Views: 12575
Control positioning of elements
I discovered the reason for the varying vertical between the bottom of the grey band and the "Prep/Servings/Rating_Stars/Cook/Temp" line. If the recipe title has descenders, i.e, g, j, p, q, and y, then the band adjusts by widening to accommodate them. The top of the band stays exactly where it is ...
- Tue Jul 02, 2024 7:29 am
- Forum: Page Layout
- Topic: Control positioning of elements
- Replies: 3
- Views: 12575
Control positioning of elements
I have some success with this code using a tabularx environment to reposition my two indicators:
\vspace{-20pt}
\begin{tabularx}{\textwidth}{p{0.43\textwidth}p{0.44\textwidth}}
\hspace{0pt}\ding{164} & \hfill\ding{52}\hspace{0pt}
\end{tabularx}
\vspace{20pt}
I still have to test it out through ...
\vspace{-20pt}
\begin{tabularx}{\textwidth}{p{0.43\textwidth}p{0.44\textwidth}}
\hspace{0pt}\ding{164} & \hfill\ding{52}\hspace{0pt}
\end{tabularx}
\vspace{20pt}
I still have to test it out through ...
- Tue Jul 02, 2024 6:51 am
- Forum: Page Layout
- Topic: Control positioning of elements
- Replies: 3
- Views: 12575
Control positioning of elements
I'm creating a simple cookbook for my wife and I to use in our kitchen. A typical page output looks like this:
https://i.postimg.cc/mrQLg03F/Screenshot-from-2024-07-01-20-50-43.png
The problem I'm having is to get consistency in the vertical positioning of elements. The order in which I apply ...
https://i.postimg.cc/mrQLg03F/Screenshot-from-2024-07-01-20-50-43.png
The problem I'm having is to get consistency in the vertical positioning of elements. The order in which I apply ...
- Tue May 21, 2024 1:48 am
- Forum: General
- Topic: Using datatool to structure a book of recipes
- Replies: 2
- Views: 12238
Using datatool to structure a book of recipes
I just tested the code and it fails to find Recipes.csv. How do I connect it so the code finds it? ~ Peter
- Tue May 21, 2024 1:45 am
- Forum: General
- Topic: Using datatool to structure a book of recipes
- Replies: 2
- Views: 12238
Using datatool to structure a book of recipes
I’m using the datatool package to structure a book of family recipes for my wife and I to use. I plan to divide it into three parts:
Common (recipes that we both use)
Mary (recipes that only she likes)
Peter (recipes that only I like)
To define the book structure, I’m starting simply using an ...
Common (recipes that we both use)
Mary (recipes that only she likes)
Peter (recipes that only I like)
To define the book structure, I’m starting simply using an ...
- Mon Nov 13, 2023 1:49 am
- Forum: Graphics, Figures & Tables
- Topic: Hide the caption in a custom tocloft "List of" system
- Replies: 2
- Views: 19403
Hide the caption in a custom tocloft "List of" system
Thanks you, Stefan! Not understanding the code meant I was not experimenting for fear of breaking it. Wonderful!