Skip to content

Instantly share code, notes, and snippets.

View hasantahir's full-sized avatar

Hasan Tahir Abbas hasantahir

  • University of Glasgow
  • Glasgow, UK
  • 05:16 (UTC -12:00)
View GitHub Profile
@hasantahir
hasantahir / gist:748da201881c66b0edd13d0890ef2196
Created November 11, 2018 11:42
Inkspace command to export pdf with proper font structure
inkscape --file=e_diag.svg --export-area-drawing --without-gui --export-latex --export-pdf=e_diag.pdf
Tip to avoid multipage pdf generation headache:
Ensure text is always top of eerything
select text and then Object -> Raise to top
All text objects can be selected from the find command enabling the 'select by type -> text' option.
Open the pdf_tex file after compiling, and delete the lines that says \includegraphics for pages other than 1
@gangeli
gangeli / tikz2png.sh
Last active June 21, 2018 12:57
A script to convert Tikz images to PNG format
#!/bin/bash
#
# A quick and dirty bash script to convert a tikz image to a png.
# The necessary tweaks to the script to get it to work for your
# use case are as follows:
#
# 1. Change FIGURE_DEFINITIONS to point to your own figures.
# This file should contain a series of \newcommand definitions,
# one per figure.
#
@albertxing
albertxing / Indentation Rules.tmPreferences
Last active December 3, 2018 00:16
LaTeX indentation rules for Sublime Text. See usage in comments below.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Indentation Rules</string>
<key>scope</key>
<string>text.tex, sources.bib</string>
<key>settings</key>
<dict>