Text FormattingParagraphs to flashcards

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Harunkucuk
Posts: 1
Joined: Tue Feb 21, 2017 3:42 pm

Paragraphs to flashcards

Post by Harunkucuk »

Hi,

I am new to this community. I have been using latex since 2012, but, as a humanties person, I am not well-acquainted with the page layout in Latex. I basically used templates for everything I did. For what I want now, there is no template that I am aware of. I want to go through all of my draft text (about 200k words) for the book that I am writing and I have received advice about physically cutting and arranging my writing. One thing that I do want to do is to print out each paragraph, preferably numbered, on a separate sheet (large flashcard size would be great) and work with it physically in the last stage. Physical cut and paste would be a problem because I would lose the footnotes. I think this would be a piece of cake for some people on this forum. I would appreciate any help.

Harun

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Paragraphs to flashcards

Post by Stefan Kottwitz »

Hi Harun,

welcome to the forum!

You could simply force a page break after each paragraph.
So you would have
  • one paragraph per page
  • page numbers as the paragraph numbers
  • footnotes per page, so per paragraph now
I thought about using \everypar for that, but that may result in an infinite loop as there's a new paragraph at each page break, executing \everypar again.

Manual way: you could search/replace all empty lines (\par) by \mypar:

Code: Select all

\documentclass[a6paper,landscape]{article}
\usepackage{geometry}
\usepackage{blindtext}
\newcommand*{\mypar}{\clearpage}
\begin{document}
\blindtext\footnote{One}
\mypar
\blindtext\footnote{Two}\footnote{Three}
\mypar
\blindtext\footnote{Four}
\mypar
\end{document}
Stefan
LaTeX.org admin
Post Reply