TeXnicCenter 2.0 Alpha 1 Released
TeXnicCenter 2.0 Alpha 1 has been released with much better looking editor window and unicode support.
In addition, I could start compiling with TexLive with minimal effort, and once I set my PDF viewer as SumatraPDF, forward search started working without any setting.
Since it is still Alpha, there are many glitches, but it looks very promising.
LaTeX handwritten symbol recognition – Detexify
Detexify is a LaTeX handwritten symbol recognition tool. You can just draw a symbol on the white box and Detexify will show you possible matched LaTeX symbols with their tags.
This can come in handy when you try to find out what is the tag for a certain symbol.
SlickEdit macro for passing line number and column number to user tools
SlickEdit does not have built-in line number and column number argument to pass to User Tools. The following Slick-C macro will make the Sumatrafowardsearch work.
In SlickEdit, save this macro to any .e file, and load the macro from Macro -> Load Module menu.
Use it with %M current-line-number% and %M current-col-number% in the Tool definitions.
#include "slick.sh"
_str current_line_number()
{
if (_no_child_windows()) {
return 0;
}
return _mdi.p_child.p_line;
}
_str current_col_number()
{
if (_no_child_windows()) {
return 0;
}
return _mdi.p_child.p_col;
}
Python Script: Send email using GMail SMTP
Here is a Python script which uses Gmail SMTP to send an email.
#!/usr/bin/env python
# Gmail SMTP script by joon
# Snippets from the following codes were used:
# http://www.go4expert.com/forums/showthread.php?t=7567
# http://docs.python.org/library/email-examples.html?highlight=sendmail
# http://djkaos.wordpress.com/2009/04/08/python-gmail-smtp-send-email-script/
import smtplib
from email.mime.text import MIMEText
sender = 'sender@gmail.com'
recipients = 'toEmailAddress'
msg = MIMEText('Email Contents')
msg['Subject'] = 'Email Subject'
msg['From'] = sender
msg['To'] = recipients
smtpserver = 'smtp.gmail.com'
smtpuser = 'ID' # set SMTP username here
smtppass = 'Password' # set SMTP password here
session = smtplib.SMTP("smtp.gmail.com", 587)
session.ehlo()
session.starttls()
session.ehlo()
session.login(smtpuser, smtppass)
smtpresult = session.sendmail(sender, [recipients], msg.as_string())
if smtpresult:
errstr = ""
for recip in smtpresult.keys():
errstr = """Could not delivery mail to: %s
Server said: %s
%s
%s""" % (recip, smtpresult[recip][0], smtpresult[recip][1], errstr)
raise smtplib.SMTPException, errstr
session.close()
SumatraPDF inverse search options for various Text Editors
I recommend using this version of SumatraPDF at william.famille-blum.org. It has “Set inverse search command-line” menu at File menu, so it is much easier to set the option. (I have had problems with updating the option with Original version.)
Options for various text editors are: (“C:\Program Files ..\” part may vary depending your system)
SlickEdit
C:\Program Files\SlickEditV14.0.1\win\vs.exe "%f" –#%l
UltraEdit
"C:\Program Files\IDM Computer Solutions\UltraEdit\Uedit32.exe"^s "%f/%l/%c"
EditPlus
C:\Program Files\EditPlus 3\editplus.exe "%f" -cursor %l
TexMaker
C:\Program Files\Texmaker\texmaker.exe "%f" -line %l
TeXnicCenter
TeXnicCenter with Sumatra PDF has nice explanation.
*. This post will be updated as I come to know more settings.
SumatraPDF command line forwardsearch
In order to use forwardsearch in SumatraPDF, one needs a text editor with DDE protocol such as WinEdt. Hence with editors without the protocole, for example UltraEdit, one cannot use forwardsearch without other DDE utility.
Here is simple compiled AutoHotKey script, SumatraForwardsearch.exe for the forwardsearch functionality.
The format of the command is:
SumatraForwardsearch “pdf file path and name” “tex file path and name” “line number” “column number”
For example,
SumatraForwardsearch.exe “D:\test.pdf” “D:\test.tex” “182″ “1″
You can save this file to wherever you want, and customize your favorite text editor (usually through User Tool) to give those arguments to this script.
It seems work well. Let me know if you have any issues with this script.
Download: SumatraForwardsearch
See Read more to see user tool setting information for SumatraForwardsearch in various text editors. (EditPlus, UltraEdit, SlickEdit)

2 comments