A last-gasp Kyle Jacobs strike saw Livingston leapfrog Partick and move up to third in the First Division.
Kenny Deuchar stooped low to meet Jonathan Brown's cross on the half-hour to head Livi in front.
Partick responded strongly and David Rowson was denied twice in quick succession by keeper Andrew McNeil.
Christie Elliot levelled after a scramble but Jacobs secured the victory with a stunning long-range volley that dipped past Scott Fox.
McNeil, Kyle Jacobs, Brown (Travis 67), Craig Barr, Talbot, Ross Docherty, Fox, Scougall, Bobby Barr, Russell, Deuchar (McNulty 72). Subs Not Used: Jamieson, Boulding, Ross Gray.
Deuchar 29,Kyle Jacobs 90.
Fox, Paton, Balatoni, Archibald, Sinclair, Cairney, Hutton, Rowson, Erskine (O'Donnell 76), Elliot, Doolan (Stewart 84). Subs Not Used: Scully, Lindsay, Flannigan.