”’ Created on May 10, 2014 @author: thomas ”’ import fnmatch import os”’ Created on May 10, 2014 @author: thomas ”’ import fnmatch import os import re if __name__ == ‘__main__’: directory = ‘/home/thomas/Ph.D/Projekter/057 2014-03-10 Database paper/latex-version/databasepaper’ matches = [] for root, dirnames, filenames in os.walk(directory): for filename in fnmatch.filter(filenames, ‘*.tex’): matches.append(os.path.join(root, filename)) print(matches) pattern= […]
Archive for the ‘latex’ Category
adding formulas to google docs and presentations workaround
By thomas in google docs, latexA far from optimal workaround for adding formulas to google presentations and properly also google docs is to use http://www.codecogs.com/latex/eqneditor.php to construct the formula with latex syntax and load it as an image by adding an image from an URL E.g.: The ugly drawback is that, AFAIK, you are not able to recall the link […]
Tags: equation, google docs, latex, presentation
install missing latex packages
By thomas in latex, texworksOne way to install missing latex-packages is to find another package in the package repositories that contains the needed .sty file. According to this post (Easy package installation) one approach is to use apt-file the following way: apt-file -x search ‘/textcomp.sty$’ This will report which package contain the needed file and that package can then […]
Tags: apt-file, latex, package management
adding Henriks texworks scripts
By thomas in latex, texworksAdding henriks texworks scripts Go to the directory: cd ~/.Texworks checkout henriks git repo (https://github.com/henrikmidtiby/TeXworks-scripts) git clone https://github.com/henrikmidtiby/TeXworks-scripts.git rename/delete existing scripts folder and rename the created folder “TeXworks-scripts” to “scripts” in texworks choose scripts->Scripting texworks-> reload script list Soem of the scripts may not work if texworks isnt the newest version
Getting pgfplots from ppa on ubuntu newer than lucid
By thomas in latex, ubuntu, Ubuntu 12.04To get pgfplots you can use the ppa by johannes Reinhardt ppa:johannes-reinhardt/ppa but the newers build of pgfplots is for lucid so if you are on a newer ubuntu you need to change the release name from e.g. precise to lucid in the software manager. Another way is to manually add deb http://ppa.launchpad.net/johannes-reinhardt/ppa/ubuntu lucid main […]
Tags: pgfplots
Thousand separator in latex when using pgfplot
By thomas in latexSet thousand separator in latex. \pgfkeys{/pgf/number format/set thousands separator={}}
Tags: pgfplot