Skip to content

Instantly share code, notes, and snippets.

@wcaleb
Last active April 4, 2022 15:36
Show Gist options
  • Select an option

  • Save wcaleb/9fe0116169754763a3c2 to your computer and use it in GitHub Desktop.

Select an option

Save wcaleb/9fe0116169754763a3c2 to your computer and use it in GitHub Desktop.

Revisions

  1. wcaleb revised this gist Dec 3, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions getbibs.py
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@

    from pandocfilters import toJSONFilter, CodeBlock
    # https://github.com/sciunto/python-bibtexparser
    from bibtexparser.bparser import BibTexParser
    import bibtexparser

    def bibtex(key, value, format, meta):
    if key != 'CodeBlock':
    @@ -17,7 +17,7 @@ def bibtex(key, value, format, meta):
    with open('/tmp/chunk.bib', 'w') as bibfile:
    bibfile.write(s)
    with open('/tmp/chunk.bib', 'r') as bibfile:
    bp = BibTexParser(bibfile)
    bp = bibtexparser.load(bibfile)
    for record in bp.get_entry_list():
    longtitle = record['title']
    abbrtitle = longtitle.partition(':')[0]
  2. wcaleb renamed this gist May 5, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. wcaleb revised this gist May 5, 2014. 1 changed file with 1116 additions and 0 deletions.
    1,116 changes: 1,116 additions & 0 deletions gitit.bib
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,1116 @@
    ~~~~ {.bib}
    @Article{ addington1950,
    author = {Wendell Addington},
    title = {Slave Insurrections in {T}exas},
    journal = {Journal of Negro History},
    volume = 35,
    number = 4,
    month = {October},
    pages = {408--434},
    year = 1950,
    note = {Slave Insurrections in {T}exas},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ baker1997,
    editor = {T. Lindsay Baker and Julie P. Baker},
    title = {Till Freedom Cried Out: Memories of Texas Slave Life},
    address = {College Station},
    publisher = {Texas A\&M University Press},
    year = 1997,
    note = {Till Freedom Cried Out},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ baum2008,
    author = {Dale Baum},
    editor = {Charles D. Grear},
    title = {Slaves Taken to {T}exas for Safekeeping during the {C}ivil {W}ar},
    booktitle = {The Fate of Texas: The Civil War and the Lone Star State},
    address = {Fayetteville},
    publisher = {University of Arkansas Press},
    pages = {83--103},
    year = 2008,
    note = {Slaves Taken to {T}exas for Safekeeping during the {C}ivil {W}ar},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ baum2012,
    crossref = {howell2012},
    author = {Dale Baum},
    title = {'The Old Hero of Many Cowardly and Bloody Murders': Scalawag Gang Leader {B}en {B}rown},
    pages = {153--186},
    year = 2012,
    note = {'The Old Hero of Many Cowardly and Bloody Murders'},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ bean2009,
    author = {Christopher B. Bean},
    title = {The {F}reedmen's {B}ureau and Logistical Problems in {T}exas, 1865--1868},
    journal = {Military History of the West},
    volume = 39,
    pages = {1--20},
    year = 2009,
    note = {The {F}reedmen's {B}ureau and Logistical Problems in {T}exas, 1865--1868},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ bean2012,
    crossref = {howell2012},
    author = {Christopher Bean},
    title = {The Post of Greatest Peril?: The {F}reedmen's {B}ureau {S}ubassistant {C}ommissioners and {R}econstruction Violence in {T}exas, 1865-1869},
    pages = {36--62},
    year = 2012,
    note = {The Post of Greatest Peril?},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ bergeron2004,
    editor = {Arthur W. Bergeron, Jr.},
    title = {The Civil War in Louisiana, Part B: The Home Front},
    address = {Lafayette},
    publisher = {University of Louisiana at Lafayette},
    year = 2004,
    note = {The Civil War in Louisiana, Part B},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ berlin1985,
    editor = {Ira Berlin and Barbara J. Fields and Thavolia Glymph and Joseph P. Reidy and Leslie S. Rowland},
    title = {The Destruction of Slavery},
    address = {Cambridge},
    publisher = {Cambridge University Press},
    year = 1985,
    note = {The Destruction of Slavery},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ butler1989,
    author = {Anne M. Butler},
    title = {Still in Chains: Black Women in Western Prisons, 1865-1910},
    journal = {Western Historical Quarterly},
    volume = 20,
    number = 1,
    month = {February},
    pages = {18--35},
    year = 1989,
    note = {Still in Chains},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ campbell1988,
    author = {Randolph B. Campbell},
    title = {Slave Hiring in {Texas}},
    journal = {American Historical Review},
    volume = 93,
    number = 1,
    month = {February},
    pages = {107-114},
    year = 1988,
    note = {Slave Hiring in {Texas}},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ campbell1989,
    author = {Randolph B. Campbell},
    title = {An Empire for Slavery: The Peculiar Institution in Texas},
    address = {Baton Rouge},
    publisher = {Louisiana State University Press},
    year = 1989,
    note = {An Empire for Slavery},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ campbell1997,
    author = {Randolph B. Campbell},
    title = {Grass-Roots Reconstruction in Texas, 1865--1880},
    address = {Baton Rouge},
    publisher = {Louisiana State University Press},
    year = 1997,
    note = {Grass-Roots Reconstruction in Texas, 1865--1880},
    }
    ~~~~
    ~~~~ {.bib}
    @PhDThesis{ carlson1929,
    author = {Avery Luvere Carlson},
    title = {A Monetary and Banking History of Texas: From the Mexican Regime to the Present Day, 1821-1929},
    school = {University of Iowa},
    year = 1929,
    note = {A Monetary and Banking History of Texas},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ crisp2005,
    author = {James E. Crisp},
    title = {Sleuthing the Alamo: Davy Crockett's Last Stand and Other Mysteries of the Texas Revolution},
    address = {New York},
    publisher = {Oxford University Press},
    year = 2005,
    note = {Sleuthing the Alamo},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ crouch2007,
    author = {Barry A. Crouch},
    title = {"All the Vile Passions": the {Texas Black Code of 1866}},
    pages = {134-158},
    editor = {Larry Madaras},
    booktitle = {Dance of Freedom: Texas African Americans during Reconstruction},
    address = {Austin},
    publisher = {University of Texas Press},
    year = 2007,
    note = {"All the Vile Passions"},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ crouch2007a,
    author = {Barry A. Crouch},
    title = {The Fetters of Justice: Black Texans and the Penitentiary during Reconstruction},
    pages = {159-180},
    editor = {Larry Madaras},
    booktitle = {Dance of Freedom: Texas African Americans during Reconstruction},
    address = {Austin},
    publisher = {University of Texas Press},
    year = 2007,
    note = {The Fetters of Justice},
    }
    ~~~~
    ~~~~ {.bib}
    @PhDThesis{ crow1961,
    author = {Herman L. Crow},
    title = {A Political History of the {Texas} Penal System, 1829-1951},
    school = {University of Texas at Austin},
    year = 1961,
    note = {A Political History of the {Texas} Penal System, 1829-1951},
    }
    ~~~~
    ~~~~ {.bib}
    @MastersThesis{ derbes2011,
    author = {Brett J. Derbes},
    title = {Prison Productions: Textiles and Other Military Supplies from State Penitentiaries in the {Trans-Mississippi} theater during the {American Civil War}},
    school = {University of North Texas},
    year = 2011,
    note = {Prison Productions},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ downs2011,
    author = {Gregory P. Downs},
    title = {Declarations of Dependence: The Long Reconstruction of Popular Politics in the South, 1861-1908},
    address = {Chapel Hill},
    publisher = {University of North Carolina Press},
    year = 2011,
    note = {Declarations of Dependence},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ downs2012,
    author = {Jim Downs},
    title = {Sick from freedom: African-American illness and suffering during the Civil War and Reconstruction},
    address = {New York},
    publisher = {Oxford University Press},
    year = 2012,
    note = {Sick from freedom},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ drake1966,
    author = {W. Magruder Drake},
    title = {Two Letters of H. Winbourne Drake, Civil War Refugee in Northwest Louisiana},
    journal = {Louisiana History},
    volume = 7,
    number = 1,
    month = {Winter},
    pages = {71-76},
    year = 1966,
    note = {Two Letters of H. Winbourne Drake, Civil War Refugee in Northwest Louisiana},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ eiss1998,
    author = {Paul K. Eiss},
    title = {A Share in the Land: Freedpeople and the Government of Labour in Southern {L}ouisiana, 1862-1865},
    journal = {Slavery and Abolition},
    volume = 19,
    number = 1,
    month = {April},
    pages = {46-89},
    year = 1998,
    note = {A Share in the Land},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ fett2002,
    author = {Sharla M. Fett},
    title = {Working Cures: Healing, Health, and Power on Southern Slave Plantations},
    address = {Chapel Hill},
    publisher = {University of North Carolina Press},
    year = 2002,
    note = {Working Cures},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ follett2005,
    author = {Richard Follett},
    title = {The Sugar Masters: Planters and Slaves in Louisiana's Cane World, 1820-1860},
    address = {Baton Rouge},
    publisher = {Louisiana State University Press},
    year = 2005,
    note = {The Sugar Masters},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ gallaway1994,
    editor = {B. P. Gallaway},
    title = {Texas, the Dark Corner of the Confederacy: Contemporary Accounts of the Long Star State in the Civil War},
    address = {Lincoln},
    publisher = {University of Nebraska Press},
    year = 1994,
    note = {Texas, the Dark Corner of the Confederacy},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ gilbert1972,
    author = {Loy J. Gilbert},
    title = {Salt of the Earth: Making Salt at the {N}eches {S}aline},
    journal = {Chronicles of Smith County, Texas},
    volume = 11,
    number = 2,
    month = {Fall},
    pages = {1--12},
    year = 1972,
    note = {Salt of the Earth},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ glymph2008,
    author = {Thavolia Glymph},
    title = {Out of the House of Bondage: the Transformation of the Plantation Household},
    address = {New York},
    publisher = {Cambridge University Press},
    year = 2008,
    note = {Out of the House of Bondage},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ goodwin2012,
    crossref = {howell2012},
    author = {Ronald E. Goodwin},
    title = {Into Freedom's Abyss: Reflections of {R}econstruction Violence in {T}exas},
    pages = {286--303},
    year = 2012,
    note = {Into Freedom's Abyss},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ gorman2012,
    author = {John Gorman},
    title = {Reconstruction Violence in the Lower {B}razos {R}iver Valley},
    pages = {387--420},
    crossref = {howell2012},
    year = 2012,
    note = {Reconstruction Violence in the Lower {B}razos {R}iver Valley},
    }
    ~~~~
    ~~~~ {.bib}
    @Book { guterl2008,
    author = {Matthew Pratt Guterl},
    title = {American Mediterranean: Southern Slaveholders in the Age of Emancipation},
    publisher = {Harvard University Press},
    address = {Cambridge, Mass.},
    year = 2008,
    note = {American Mediterranean},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ hahn2003,
    author = {Steven Hahn},
    title = {A Nation Under Our Feet: Black Political Struggles in the Rural South from Slavery to the Great Migration},
    address = {Cambridge, Mass.},
    publisher = {Harvard University Press},
    year = 2003,
    note = {A Nation Under Our Feet},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ hahnetal2008,
    editor = {Steven Hahn and Steven F. Miller and Susan E. O'Donovan and John C. Rodrigue and Leslie S. Rowland},
    title = {Land and Labor, 1865},
    address = {Chapel Hill},
    publisher = {University of North Carolina Press},
    year = 2008,
    note = {Land and Labor, 1865},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ howell2012,
    editor = {Kenneth W. Howell},
    title = {Still the Arena of Civil War: Violence and Turmoil in Texas, 1865--1874},
    address = {Denton},
    publisher = {University of North Texas Press},
    year = 2012,
    note = {Still the Arena of Civil War},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ howell2012b,
    author = {Kenneth W. Howell},
    title = {Governor {J}ames {T}hrockmorton and the Question of Frontier Violence in {R}econstruction {T}exas, 1866--1867},
    pages = {354--369},
    crossref = {howell2012},
    year = 2012,
    note = {Governor {J}ames {T}hrockmorton and the Question of Frontier Violence in {R}econstruction {T}exas, 1866--1867},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ jach2005,
    author = {Theresa R. Jach},
    title = {Reform versus Reality in the Progressive Era Texas Prison},
    journal = {Journal of the Gilded Age and Progressive Era},
    volume = 4,
    number = 1,
    month = {January},
    pages = {53-67},
    year = 2005,
    note = {Reform versus Reality in the Progressive Era Texas Prison},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ johnson2013,
    author = {Walter Johnson},
    title = {River of Dark Dreams: Slavery and Empire in the Cotton Kingdom},
    address = {Cambridge, Mass.},
    publisher = {Harvard University Press},
    year = 2013,
    note = {River of Dark Dreams},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ jung2006,
    author = {Moon-Ho Jung},
    title = {Coolies and Cane: Race, Labor, and Sugar in the Age of Emancipation},
    address = {Baltimore},
    publisher = {Johns Hopkins University Press},
    year = 2006,
    note = {Coolies and Cane},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ kelley2010,
    author = {Sean M. Kelley},
    title = {Los Brazos de Dios: a Plantation Society in the Texas Borderlands, 1821--1865},
    address = {Baton Rouge},
    publisher = {Louisiana State University Press},
    year = 2010,
    note = {Los Brazos de Dios},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ kerby1972,
    author = {Robert L. Kerby},
    title = {Kirby Smith's Confederacy: The Trans-{M}ississippi South, 1863--1865},
    address = {New York},
    publisher = {Columbia University Press},
    year = 1972,
    note = {Kirby Smith's Confederacy},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ kilbourne1995,
    author = {Kilbourne, Jr., Richard Holcombe},
    title = {Debt, Investment, Slaves: Credit Relations in East Feliciana Parish, Louisiana 1825--1885},
    address = {Tuscaloosa},
    publisher = {University of Alabama Press},
    year = 1995,
    note = {Debt, Investment, Slaves},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ kosary2012,
    author = {Rebecca A. Kosary},
    title = {'To Punish and Humiliate the Entire Community': White Violence Perpetrated against African-American Women in Texas, 1865--1868},
    pages = {327--351},
    crossref = {howell2012},
    year = 2012,
    note = {'To Punish and Humiliate the Entire Community'},
    }
    ~~~~
    ~~~~ {.bib}
    @PhDThesis{ lathrop1945,
    author = {Barnes F. Lathrop},
    title = {The Pugh Plantations, 1860--1865: A Study of Life in Lower Louisiana},
    school = {University of Texas},
    year = 1945,
    note = {The Pugh Plantations, 1860--1865},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ lathrop1958,
    author = {Barnes F. Lathrop},
    title = {Disaffection in {C}onfederate {L}ouisiana: The Case of {W}illiam {H}yman},
    journal = {The Journal of Southern History},
    volume = 24,
    number = 3,
    month = {August},
    pages = {308-318},
    year = 1958,
    note = {Disaffection in {C}onfederate {L}ouisiana},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ lathrop1960,
    author = {Barnes F. Lathrop},
    title = {The {L}afourche District in 1862: Militia and Partisan Rangers},
    journal = {Louisiana History},
    volume = 1,
    number = 3,
    month = {Summer},
    pages = {230-244},
    year = 1960,
    note = {The {L}afourche District in 1862},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ lathrop1960a,
    author = {Barnes F. Lathrop},
    title = {The {L}afourche District in 1861-1862: A Problem in Local Defense},
    journal = {Louisiana History},
    volume = 1,
    number = 2,
    month = {Spring},
    pages = {99-129},
    year = 1960,
    note = {The {L}afourche District in 1861-1862},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ lathrop1960b,
    author = {Barnes F. Lathrop},
    title = {The {L}afourche District in 1862: Confederate Revival},
    journal = {Louisiana History},
    volume = 1,
    number = 4,
    month = {Autumn},
    pages = {300-319},
    year = 1960,
    note = {The {L}afourche District in 1862},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ lathrop1961,
    author = {Barnes F. Lathrop},
    title = {The {L}afourche District in 1862: Invasion},
    journal = {Louisiana History},
    volume = 2,
    number = 2,
    month = {Spring},
    pages = {175-201},
    year = 1961,
    note = {The {L}afourche District in 1862},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ levengood1998,
    author = {Paul A. Levengood},
    title = {In the Absence of Scarcity: The Civil War Prosperity of Houston, Texas},
    journal = {Southwestern Historical Quarterly},
    volume = 101,
    number = 4,
    month = {April},
    pages = {401--426},
    year = 1998,
    note = {In the Absence of Scarcity},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ litwack1979,
    author = {Leon F. Litwack},
    title = {Been in the Storm So Long: The Aftermath of Slavery},
    address = {New York},
    publisher = {Alfred A. Knopf},
    year = 1979,
    note = {Been in the Storm So Long},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ lonn1965,
    author = {Ella Lonn},
    title = {Salt as a Factor in the Confederacy},
    address = {University},
    publisher = {University of Alabama Press},
    year = 1965,
    note = {Salt as a Factor in the Confederacy},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ mancini1996,
    author = {Matthew J. Mancini},
    title = {One Dies, Get Another: Convict Leasing in the American South, 1866-1928},
    address = {Columbia},
    publisher = {University of South Carolina},
    year = 1996,
    note = {One Dies, Get Another},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ marten1990,
    author = {James Marten},
    title = {Texas Divided: Loyalty and Dissent in the Lone Star State, 1856--1874},
    address = {Lexington},
    publisher = {University Press of Kentucky},
    year = 1990, note = {Texas Divided},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ martin1965,
    author = {Charles Young Martin},
    editor = {Virginia Martin Carmouche},
    title = {The Ancestors and Descendants of General Robert Campbell Martin and his Wife, Mary Winifred Hill Pugh},
    address = {Lake Charles, LA},
    publisher = {Anderson Printing},
    year = 1965,
    note = {The Ancestors and Descendants of General Robert Campbell Martin and his Wife, Mary Winifred Hill Pugh},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ martinez2013,
    author = {Jaime Amanda Martinez},
    title = {Confederate Slave Impressment in the Upper South},
    address = {Chapel Hill},
    publisher = {University of North Carolina Press},
    year = 2013,
    note = {Confederate Slave Impressment in the Upper South},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ massey1964,
    author = {Mary Elizabeth Massey},
    title = {Refugee Life in the Confederacy},
    address = {Baton Rouge},
    publisher = {Louisiana State University Press},
    year = 1964,
    note = {Refugee Life in the Confederacy},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ matt2007,
    author = {Susan J. Matt},
    title = {You Can't Go Home Again: Homesickness and Nostalgia in U. S. History},
    journal = {Journal of American History},
    volume = 94,
    number = 2,
    month = {September},
    pages = {469-497},
    year = 2007,
    note = {You Can't Go Home Again},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ mccaslin2012,
    crossref = {howell2012},
    author = {Richard B. McCaslin},
    title = {William Longworth, Republican Villain},
    pages = {133--151},
    year = 2012,
    note = {William Longworth, Republican Villain},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ mccaslinetal2013,
    editor = {Richard B. McCaslin and Donald E. Chipman and Andrew Torget},
    title = {This Corner of Canaan: Essays on Texas in Honor of Randolph B. Campbell},
    address = {Denton},
    publisher = {University of North Texas Press},
    year = 2013,
    note = {This Corner of Canaan},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ mccurry2010,
    author = {Stephanie McCurry},
    title = {Confederate Reckoning: Power and Politics in the Civil War South},
    address = {Cambridge, Mass.},
    publisher = {Harvard University Press},
    year = 2010,
    note = {Confederate Reckoning},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ mcilhenny1933,
    author = {E. A. McIlhenny},
    title = {Befo' de War Spirituals},
    address = {Boston},
    publisher = {Christopher Publishing House},
    year = 1933,
    note = {Befo' de War Spirituals},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ meadows2000,
    author = {Meadows, R. Darrell},
    title = {Engineering Exile: Social Networks and the {French Atlantic} Community, 1789-1809},
    journal = {French Historical Studies},
    volume = 23,
    number = 1,
    month = {},
    pages = {67-102},
    year = 2000,
    note = {Engineering Exile},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ menn1964,
    author = {Joseph Karl Menn},
    title = {The Large Slaveholders of Louisiana, 1860},
    address = {New Orleans},
    publisher = {Pelican Pub. Co.},
    year = 1964,
    note = {The Large Slaveholders of Louisiana, 1860},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ messner1975,
    author = {William F. Messner},
    title = {{The Vicksburg Campaign of 1862: A Case Study in the Federal Utilization of Black Labor}},
    journal = {Louisiana History},
    volume = 16,
    number = 4,
    month = {Autumn},
    pages = {371--381},
    year = 1975,
    note = {The Vicksburg Campaign of 1862},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ moneyhon1980,
    author = {Carl H. Moneyhon},
    title = {Republicanism in Reconstruction Texas},
    address = {Austin},
    publisher = {University of Texas Press},
    year = 1980,
    note = {Republicanism in Reconstruction Texas},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ moneyhon2012,
    crossref = {howell2012},
    author = {Carl H. Moneyhon},
    title = {The Democratic Party, the Ku Klux Klan, and the Politics of Fear},
    pages = {243--265},
    year = 2012,
    note = {The Democratic Party, the Ku Klux Klan, and the Politics of Fear},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ moneyhon2013,
    author = {Carl H. Moneyhon},
    title = {Landholding in {Brazos County, Texas}: Frontier, War, and {R}econstruction},
    pages = {131-155},
    crossref = {mccaslinetal2013},
    year = 2013,
    note = {Landholding in {Brazos County, Texas}},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ morgan2005,
    author = {Chad Morgan},
    title = {Planters' Progress: Modernizing Confederate Georgia},
    address = {Gainesville},
    publisher = {University Press of Florida},
    year = 2005,
    note = {Planters' Progress},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ nelson1946,
    author = {Bernard H. Nelson},
    title = {Confederate Slave Impressment Legislation, 1861--1865},
    journal = {Journal of Negro History},
    volume = 31,
    number = 4,
    month = {October},
    pages = {392--410},
    year = 1946,
    note = {Confederate Slave Impressment Legislation, 1861--1865},
    }
    ~~~~
    ~~~~ {.bib}
    @Book { oakes1982,
    author = {James Oakes},
    title = {The Ruling Race: A History of American Slaveholders},
    publisher = {W. W. Norton},
    address = {New York},
    year = 1982,
    note = {The Ruling Race},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ oakes2013,
    author = {James Oakes},
    title = {Freedom National: The Destruction of Slavery in the United States, 1861--1865},
    address = {New York},
    publisher = {W. W. Norton},
    year = 2013, note = {Freedom National},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ orear2012,
    crossref = {howell2012},
    author = {Mary Jo O'Rear},
    title = {'A Free and Outspoken Press': Coverage of Reconstruction Violence and Turmoil in Texas Newspapers, 1866--1868},
    pages = {267--284},
    year = 2012,
    note = {'A Free and Outspoken Press'},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ oshinsky1996,
    author = {David M. Oshinsky},
    title = {"Worse than Slavery": Parchman Farm and the Ordeal of Jim Crow Justice},
    address = {New York},
    publisher = {Free Press},
    year = 1996,
    note = {"Worse than Slavery"},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ pace1998,
    author = {Robert F. Pace},
    title = {'It was {Bedlam} Let Loose': The {Louisiana} sugar country and the {Civil War}},
    journal = {Louisiana History},
    volume = 39,
    number = 4,
    month = {Autumn},
    pages = {389-409},
    year = 1998,
    note = {'It was {Bedlam} Let Loose'},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ perrin1891,
    editor = {William Henry Perrin},
    title = {Southwest Louisiana: Biographical and Historical},
    address = {New Orleans},
    publisher = {Gulf Publishing Company},
    year = 1891,
    note = {Southwest Louisiana},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ pierce2008,
    author = {Michael Pierce},
    title = {The Mechanics of {Little Rock}: Free Labor Ideas in Antebellum {Arkansas}, 1845-1861},
    journal = {Arkansas Historical Quarterly},
    volume = 67,
    number = 3,
    month = {Autumn},
    pages = {221--244},
    year = 2008,
    note = {The Mechanics of {Little Rock}},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ pitre1985,
    author = {Merline Pitre},
    title = {Through Many Dangers, Toils, and Snares: the Black Leadership of Texas, 1868--1900},
    address = {Austin},
    publisher = {Eakin Press},
    year = 1985,
    note = {Through Many Dangers, Toils, and Snares},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ ramsdell1910,
    author = {Charles William Ramsdell},
    title = {Reconstruction in Texas},
    address = {New York},
    publisher = {Columbia University Press},
    year = 1910,
    note = {Reconstruction in Texas},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ ramsdell1924,
    author = {Charles W. Ramsdell},
    title = {The Texas State Military Board, 1862--1865},
    journal = {The Southwestern Historical Quarterly},
    volume = 27,
    number = 4,
    month = {April},
    pages = {253--275},
    year = 1924,
    note = {The Texas State Military Board, 1862--1865},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ rice1971,
    author = {Lawrence D. Rice},
    title = {The Negro in Texas, 1874--1900},
    address = {Baton Rouge},
    publisher = {Louisiana State University Press},
    year = 1971,
    note = {The Negro in Texas, 1874--1900},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ richter2012,
    crossref = {howell2012},
    author = {William L. Richter},
    title = {"Shoot or Get Out of the War!": The Murder of Texas Freedmen's Bureau Agent William G. Kirkman by Cullen Baker---and the Historians},
    pages = {63--111},
    year = 2012,
    note = {"Shoot or Get Out of the War!"},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ rothfeder2007,
    author = {Jeffrey Rothfeder},
    title = {McIlhenny's Gold: How a Louisiana Family Built the Tabasco Empire},
    address = {New York},
    publisher = {HarperCollins},
    year = 2007,
    note = {McIlhenny's Gold},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ sacher2007,
    author = {John M. Sacher},
    title = {'{A} Very Disagreeable Business': {C}onfederate Conscription in {L}ouisiana},
    journal = {Civil War History},
    volume = 53,
    number = 2,
    month = {June},
    pages = {141-169},
    year = 2007,
    note = {'{A} Very Disagreeable Business'},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ scarborough2003,
    author = {William Kauffman Scarborough},
    title = {Masters of the Big House: Elite Slaveholders of the Mid-Nineteenth-Century South},
    address = {Baton Rouge},
    publisher = {Louisiana State University Press},
    year = 2003,
    note = {Masters of the Big House},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ scott1990,
    author = {James C. Scott},
    title = {Domination and the Arts of Resistance: Hidden Transcripts},
    address = {New Haven},
    publisher = {Yale University Press},
    year = 1990, note = {Domination and the Arts of Resistance},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ simpson1964,
    author = {Amos E. Simpson and Vincent Cassidy},
    title = {The Wartime Administration of {Governor Henry W. Allen}},
    journal = {Louisiana History},
    volume = 5,
    number = 3,
    month = {Summer},
    pages = {257-269},
    year = 1964,
    note = {The Wartime Administration of {Governor Henry W. Allen}},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ smallwood1981,
    author = {James Smallwood},
    title = {Time of Hope, Time of Despair: Black Texans during Reconstruction},
    address = {Port Washington, N.Y.},
    publisher = {National University Publications},
    year = 1981,
    note = {Time of Hope, Time of Despair},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ smallwood2012,
    author = {James M. Smallwood},
    editor = {editors separated by "and"},
    title = {When the Klan Rode: Terrorism in Reconstruction Texas},
    booktitle = {book title},
    address = {city},
    publisher = {publisher},
    pages = {214--242},
    year = 2012,
    note = {When the Klan Rode},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ spurlin2012,
    crossref = {howell2012},
    author = {Charles D. Spurlin},
    title = {The World Turned Upside Down?: The Military Occupation of Victoria and Calhoun Counties, 1865--1867},
    pages = {113--131},
    year = 2012,
    note = {The World Turned Upside Down?},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ sternhell2012,
    author = {Yael A. Sternhell},
    title = {Routes of War: The World of Movement in the Confederate South},
    address = {Cambridge, Mass.},
    publisher = {Harvard University Press},
    year = 2012,
    note = {Routes of War},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ stone1995,
    editor = {John Q. Anderson},
    title = {Brokenburn: The Journal of Kate Stone, 1861--1868},
    address = {Baton Rouge},
    publisher = {Louisiana State University Press},
    year = 1995,
    note = {Brokenburn},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ strobel1926,
    author = {Abner J. Strobel},
    title = {The Old Plantations and their Owners of Brazoria County Texas},
    address = {Houston},
    publisher = {Union National Bank},
    year = 1926,
    note = {The Old Plantations and their Owners of Brazoria County Texas},
    }
    ~~~~
    ~~~~ {.bib}
    @article{ sutherland1980,
    title = {{Looking for a Home: Louisiana Emigrants during the Civil War and Reconstruction}},
    volume = {21},
    shorttitle = {Looking for a Home},
    number = {4},
    journal = {Louisiana History},
    author = {Daniel E. Sutherland},
    month = {October},
    year = {1980},
    pages = {341--359},
    note = {Looking for a Home},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ taylor1967,
    author = {Joe Gray Taylor},
    title = {Slavery in Louisiana during the Civil War},
    journal = {Louisiana History},
    volume = 8,
    number = 1,
    month = {Winter},
    pages = {27-33},
    year = 1967,
    note = {Slavery in Louisiana during the Civil War},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ thoms2008,
    author = {Alston V. Thoms},
    title = {Obscured in the Midst of the {Civil War}: Enslaved {African Americans} at {Camp Ford}},
    journal = {Journal of History and Culture},
    volume = 1,
    number = 1,
    month = {},
    pages = {25-49},
    year = 2008,
    note = {Obscured in the Midst of the {Civil War}},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ tijerina2012,
    author = {Andrés Tijerina},
    title = {Foreigners in Their Native Land: The Violent Struggle between Anglos and Tejanos for Land Titles in South Texas during Reconstruction},
    pages = {305--325},
    crossref = {howell2012},
    year = 2012,
    note = {Foreigners in Their Native Land},
    }
    ~~~~
    ~~~~ {.bib}
    @InCollection{ turner2007,
    author = {Elizabeth Hayes Turner},
    editor = {Gregg Cantrell and Elizabeth Hayes Turner},
    title = {{Juneteenth: Emancipation and Memory}},
    booktitle = {Lone Star Pasts: Memory and History in Texas},
    address = {College Station},
    publisher = {Texas A\&M University Press},
    pages = {143--175},
    year = 2007,
    note = {Juneteenth},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ usner2013,
    author = {Usner, Jr., Daniel H.},
    title = {From {Bayou Teche} to {Fifth Avenue}: Crafting a New Market for {Chitimacha Indian} Baskets},
    journal = {Journal of Southern History},
    volume = 79,
    number = 2,
    month = {May},
    pages = {339--374},
    year = 2013,
    note = {From {Bayou Teche} to {Fifth Avenue}},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ wade1998,
    author = {Michael G. Wade},
    title = {'{I} Would Rather Be Among the {C}omanches': The Military Occupation of Southwest {L}ouisiana, 1865},
    journal = {Louisiana History},
    volume = 39,
    number = 1,
    month = {Winter},
    pages = {45-64},
    year = 1998,
    note = {'{I} Would Rather Be Among the {C}omanches'},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ walker1988,
    author = {Donald R. Walker},
    title = {Penology for Profit: A History of the Texas Prison System, 1867-1912},
    address = {College Station},
    publisher = {Texas A&M University Press},
    year = 1988,
    note = {Penology for Profit},
    }
    ~~~~
    ~~~~ {.bib}
    @Article{ williams1909,
    author = {G. Mott Williams},
    title = {Letters of {General Thomas Williams}, 1862},
    journal = {American Historical Review},
    volume = 14,
    number = 2,
    month = {January},
    pages = {304--328},
    year = 1909,
    note = {Letters of {General Thomas Williams}, 1862},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ wilson2002,
    author = {Harold S. Wilson},
    title = {Confederate Industry: Manufacturers and Quartermasters in the Civil War},
    address = {Jackson},
    publisher = {University of Mississippi Press},
    year = 2002,
    note = {Confederate Industry},
    }
    ~~~~
    ~~~~ {.bib}
    @Book{ winters1963,
    author = {John D. Winters},
    title = {The Civil War in Louisiana},
    address = {Baton Rouge},
    publisher = {Louisiana State University Press},
    year = 1963,
    note = {The Civil War in Louisiana},
    }
    ~~~~
  4. wcaleb created this gist May 5, 2014.
    28 changes: 28 additions & 0 deletions getbibs.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    #!/usr/bin/python
    # -*- coding: utf-8 -*-
    # Pandoc filter that grabs the BibTeX code block from each note file
    # and then uses bibtexparser to add a "short title" entry in the "note" field,
    # appending finished BibTeX entry to a bibliography file.

    from pandocfilters import toJSONFilter, CodeBlock
    # https://github.com/sciunto/python-bibtexparser
    from bibtexparser.bparser import BibTexParser

    def bibtex(key, value, format, meta):
    if key != 'CodeBlock':
    return []
    else:
    format, s = value
    s = s.encode('utf-8')
    with open('/tmp/chunk.bib', 'w') as bibfile:
    bibfile.write(s)
    with open('/tmp/chunk.bib', 'r') as bibfile:
    bp = BibTexParser(bibfile)
    for record in bp.get_entry_list():
    longtitle = record['title']
    abbrtitle = longtitle.partition(':')[0]
    note = ' note = {' + abbrtitle + '},\n}'
    value[1] = s.rstrip('\}') + note.encode('utf-8')

    if __name__ == "__main__":
    toJSONFilter(bibtex)
    13 changes: 13 additions & 0 deletions gititbib.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/bin/sh

    > $HOME/gitit.bib

    # Find all the notes whose name is a string followed by four digits,
    # then send that file through the getbibs.py pandoc filter.

    PAGES=$(basename -s .page -a /Users/wcm1/Dropbox/wikidata/*.page | grep '^[a-z]\+[0-9]\{4\}')

    echo "$PAGES" | while read -r page
    do
    pandoc --filter=$HOME/.pandoc/filters/getbibs.py -t markdown /Users/wcm1/Dropbox/wikidata/"$page".page >> $HOME/gitit.bib
    done