NewsWorksSoftwareTextBioContact
background image

Blog archive for March 2014

Customising TexShop editor color scheme

March 17, 2014

Screen_shot_2014-03-17_at_08

I’m currently writing up submissions for upcoming conferences, preferring to use LaTex rather than regular word processors. However I find the default “black font on white background” colour scheme of the TexShop editor straining to the eye when at it for hours. The TexShop Preferences does not leave much options for customising its colours, but it seems like more can be done as a series of Terminal commands. So here are the commands required to use the Solaraized color scheme, retrieved from one of the issues in the Solarized repository:

	# solarized dark color scheme

	# background = solarized base03 = 0  43  54
	defaults write TeXShop background_R 0.00
	defaults write TeXShop background_G 0.169
	defaults write TeXShop background_B 0.212

	# commands = solarized red = 220  50  47
	defaults write TeXShop commandred 0.86
	defaults write TeXShop commandgreen 0.196
	defaults write TeXShop commandblue 0.184

	# comments = solarized base01 = 88 110 117
	defaults write TeXShop commentred 0.345
	defaults write TeXShop commentgreen 0.431
	defaults write TeXShop commentblue 0.459

	# foreground = solarized base0 = 131 148 150
	defaults write TeXShop foreground_R 0.514
	defaults write TeXShop foreground_G 0.580
	defaults write TeXShop foreground_B 0.589

	# index = solarized magenta = 211  54 130
	defaults write TeXShop indexred 0.83
	defaults write TeXShop indexgreen 0.21
	defaults write TeXShop indexblue 0.51

	# marker = solarized cyan = 42 161 152
	defaults write TeXShop markerred 0.165
	defaults write TeXShop markergreen 0.63
	defaults write TeXShop markerblue 0.596

	# insertionpoint = solarized base0 = 131 148 150
	defaults write TeXShop insertionpoint_R 0.514
	defaults write TeXShop insertionpoint_G 0.580
	defaults write TeXShop insertionpoint_B 0.589

And here are the commands required for the solarized light colour scheme:

	# solarized light color scheme

	# background = solarized base3 = 253 246 227
	defaults write TeXShop background_R 0.99
	defaults write TeXShop background_G 0.96
	defaults write TeXShop background_B 0.89

	# commands = solarized red = 220  50  47
	defaults write TeXShop commandred 0.86
	defaults write TeXShop commandgreen 0.196
	defaults write TeXShop commandblue 0.184

	# comments = solarized base1 = 147 161 161
	defaults write TeXShop commentred 0.58
	defaults write TeXShop commentgreen 0.63
	defaults write TeXShop commentblue 0.63

	# foreground = solarized base00 = 101 123 131
	defaults write TeXShop foreground_R 0.40
	defaults write TeXShop foreground_G 0.48
	defaults write TeXShop foreground_B 0.51

	# index = solarized magenta = 211  54 130
	defaults write TeXShop indexred 0.83
	defaults write TeXShop indexgreen 0.21
	defaults write TeXShop indexblue 0.51

	# marker = solarized cyan = 42 161 152
	defaults write TeXShop markerred 0.165
	defaults write TeXShop markergreen 0.63
	defaults write TeXShop markerblue 0.596

	# insertionpoint = solarized base00 = 101 123 131
	defaults write TeXShop insertionpoint_R 0.40
	defaults write TeXShop insertionpoint_G 0.48
	defaults write TeXShop insertionpoint_B 0.51

If you want to do further customisations, you might also want to check out DonSchado’s Ruby script. And while at it, let’s customise the distance between lines in the editor as well:

	defaults write TeXShop SourceInterlineSpace 10.0

According to documentation only values between .5 and 40.0 will be accepted. The standard line spacing is given by the default 1.0, and double spacing is given by the value 10.0.

Seminar on surround sound recordings

March 21, 2014

1921091_10152274473944326_787390053_o

Photo by Jana Winderen

Saturday March 29 I am participating in a one day seminar at Atelier Nord ANX in Oslo on surround sound recordings, alongside Jana Winderen and Gisle Tveito. This will be a hands-on sharing experience and thoughs kind of seminar, and in Norwegian, and I’m very much looking forward to it!

More info here