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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
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