#LaTeX users of mastadon - I'm spending some time putting handwritten family recipes from a book into a digital format, and using this as an excuse to learn #LaTeX.

Is it possible to have a custom section type (i.e. ingredients) where every new line is placed into an unordered list without me having to type \item etc. for every entry?

@russell I am not sure, but if you perhaps wrote a style to do this, then maybe yes.

Can anyone from help with please ?

@zleap Thanks! I think I've figured out a relatively straightforward solution - I'm putting different recipes in different .tex files and then use a bash script to concatenate these (allowing me to write recipes up separately and then render them alphabetically) - and when I'm doing this I can just use sed to replace e.g. * with \item :)

Forgive a second newbie #LaTeX question - is there an easy way to have custom styles for different "classes" of sections as I would do with css in html?

Follow

@russell

You can include multiple .tex files in one with an include statement,

The main file is set out as normal, e.g preamble and begin and end document statements

the included files just have the required text and latex code e.g \chapter{title}

\include{Team}

The first line of team.tex for me contains

\chapter{The Team}
\index{Team}

The advantage with this is that you can reorder the includes and reorder the final document chapters

@zleap This is pretty much what I am doing - thanks :) I'm now looking into formatting title classes using titlesec - this is a fun learning curve!

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.