Skip to content

Commit

Permalink
Pandoc 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bmschmidt committed May 3, 2018
1 parent 2b20341 commit 8c6de2c
Show file tree
Hide file tree
Showing 9 changed files with 377 additions and 150 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
all: lectureToOutline lectureToSlidedeck clean
DEST=/usr/local/bin

%: %.hs
ghc $@
all: $(DEST)/lectureToOutline $(DEST)/lectureToSlidedeck $(DEST)/shuffleAllLists $(DEST)/convertOldFormat clean

$(DEST)/%: src/%.hs
ghc $<
mv src/$* $@

clean:
rm *.hi *.o
rm -f src/*.hi src/*.o
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Convert a single markdown file into lectures, slides, and outlines.

An explanation of the project is [here](http://benschmidt.org/2014/11/07/building-outlines-for-markdown-documents-with-pandoc/).

This repo is periodically updated to work with the latest build of pandoc. As of Pandoc 2.0, it uses the new fenced divs syntax instead of codes blocks to delineate slides.



Some potentially useful lines from my Makefile are below.

```
Expand Down
201 changes: 201 additions & 0 deletions lecture.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
---
title: The Californians
date: 2017-11-30
author: HIST 1031
...

This is some lecture text. It won't appear in the presentation in any way.

Here's an introductory slide outside of the outline that shows Reagan and Nixon together.

:::slide
![Reagan and Nixon](https://cdn.theatlantic.com/assets/media/old_wire/img/upload/2013/08/21/AP070321015839/lead_large.jpg?1473252773)
:::

# Ronald Reagan

Who Was Reagan?
---------------

We should really have an image of Reagan in a cowboy hat.

He has an image: but a presented one.

Here's slide of that.

:::slide
![Reagan and Nixon](https://cdn.theatlantic.com/assets/media/old_wire/img/upload/2013/08/21/AP070321015839/lead_large.jpg?1473252773)
:::

:::slide
![Ronald Reagan](https://upload.wikimedia.org/wikipedia/commons/6/6a/Ronald_Reagan_with_cowboy_hat_12-0071M_edit.jpg)
:::

Have you ever seen King's Row? Did you know that John Williams ripped off the score for *both* Star Wars *and* Superman from it? And Ronnie only gets third billing, because he's not a big star!

::: {.slide}
![King's Row](>https://www.youtube.com/embed/DavgzfxQBZc?start=21)
:::

You can't talk about Reagan without this cover.

::: {.slide}
![Record, 1961](https://upload.wikimedia.org/wikipedia/commons/b/b2/Reagan-LPcover.jpg)
:::

But his political rise was linked with a new feature in US politics after 1975.

The Tax Revolt
--------------

Reagan's rise and success had a lot to do with the sudden emergence of *taxes* as a key issue in state and local politics.

The key event was **California Proposition 13**. (This will show up as an ID in the outline, because it's bolded in the markdown.

::: {.slide}
![.](https://tropicsofmeta.files.wordpress.com/2011/05/12462790872889-1.jpg)
:::

Before the late 1970s, income taxes had not been a defining issue in
national politics. Kennedy campagined on cutting them.

::: {.slide}
![.](https://si.wsj.net/public/resources/images/RV-AB458B_TAXID_NS_20110128190801.jpg)
:::

### Supply-side Economics

The New Deal had been predicated on generating *consumer* spending.

The idea of Supply-side economics was that rather than promoting
consumers, you should promote spenders to spend and invest more money.

(Note that I've tacked the class 'red' on the end of the slide here: I use a stylesheet in my particular version of revealjs so that the text doesn't get washed out.)

The **Laffer Curve** was written on a napkin. This is the man!

::: {.slide}
![The "Laffer Curve"](https://qzprod.files.wordpress.com/2017/04/art-laffer-with-curve-ap-photo.jpg?quality=80&strip=all&w=3000){.red}
:::

:::slide
> You could only make four pictures and then you were in the top
> bracket. So we all quit working after four pictures and went off to
> the country.

--Reagan on high marginal taxes.
:::


The Religious Right
-------------------

::: {.slide}
Major Christian issues in 1978-1980

* Prayer
* Abortion (only later in the decade)
* Tax-exempt status for churches and religious schools.
:::

1978 off-year elections demonstrated that the right could organize
around abortion as well. Brought catholics on board as well.

Tax exemption especially important because many evangelical schools had
emerged in the South as ways to avoid segregation.

Christian Academies with explicitly racist policies, created to
circumvent

Reagan had signed the most liberal abortion bill in the nation in 1970.
George Bush, his VP, had only recently come around to pro-life.

- So here's a video of the end of his convention speech.

:::slide
![Reagan's Convention Speech, 1980](>https://www.youtube.com/embed/SBP2gvZTnwM?start=2685)
:::

Even more famously, met with Jerry Falwell and other leaders of the
right. "I know you can't endorse me," he was quoted as saying. "But . . . I want you to know that I endorse you."

**Lee Atwater**

::: {.slide}
You start out in 1954 by saying, "Nigger, nigger, nigger." By 1968 you can't say "nigger" — that hurts you. Backfires. So you say stuff like forced busing, states' rights and all that stuff. You're getting so abstract now [that] you're talking about cutting taxes, and all these things you're talking about are totally economic things and a byproduct of them is [that] blacks get hurt worse than whites. And subconsciously maybe that is part of it. I'm not saying that. But I'm saying that if it is getting that abstract, and that coded, that we are doing away with the racial problem one way or the other. You follow me — because obviously sitting around saying, "We want to cut this," is much more abstract than even the busing thing, and a hell of a lot more abstract than "Nigger, nigger."

Lee Atwater, 1981
:::

## Reagan in office

::: {.slide}
Reagan in Office

* Tax Cuts and Tax Reform
* Increase in Military Spending
* Continued fight against unions (Air Traffic Controllers' Strike)
* Deregulation of Various Industries.
:::

Relatively popular president in office; like Nixon, hobbled by scandals
at the end.

Iran Contra: secretly selling missiles to Iran, which was the United
States' primary foe in the middle east at the time; using the money to
fund a right-wing paramilitary insurgency in Nicaragua against a
socialist.

# US Politics, 1980-2008

::: {.slide}
Some Contested issues, 1980 - 2008:

* Health Care (Dems want)
* Tax Cuts (Reps want)
* Cutting New Deal and Great Society Programs.
* Abortion
* Gay Rights
:::


::: {.slide}
Some uncontested Issues, 1980 - 2008:

* Free trade (it's good!)
* Deregulation
* Immigration
:::

::: {.slide}
Some dead issues, 1980 - 2008:

* Unions (they're going away)
* Segregation (it's over)
:::

Paradoxically, presidents are evaluated more and more in their effects
on the economy even as the levers they have to affect jobs are taken
more and more away.

::: {.slide}
![.](https://fred.stlouisfed.org/graph/fredgraph.png?g=fXYV)
:::

::: {.slide}
Major Deregulatory Moves:

* Airlines (1978)
* Railroads (1980)
* AT&T Antitrust breakup (1982)
* Removal of Equal Time doctrines for TV, 1987
* Repeal and circumvention of rules about banking sector (1998-1999)
:::

**Bill Clinton**

**The Third Way**

::: {.slide}
![Clinton on Government](>https://www.youtube.com/embed/GXRLW1KEtvo?start=460)
:::
104 changes: 0 additions & 104 deletions lectureToSlidedeck.hs

This file was deleted.

17 changes: 17 additions & 0 deletions src/convertOldFormat.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Text.Pandoc.Error
import Text.Pandoc
import Text.Pandoc.Walk (walk,query)
import Text.Pandoc.Shared (stringify)
import Text.Pandoc.JSON
import Data.String

-- Converts from the old format to the new one.

reformat :: Block -> Block
reformat (CodeBlock (id,classes,attr) string) =
Div (id, "slide":classes, attr) [RawBlock (Format "markdown") string]
reformat x = x


main :: IO()
main = toJSONFilter reformat
Loading

0 comments on commit 8c6de2c

Please sign in to comment.