
|
|
worklog
This version, which is no longer maintained, has some workarounds for oddities in WinEdt's macro language prior to v. 5.2. It is tested on WinEdt 5.1, but may also work on previous versions. It's just not tested.
If you run WinEdt 5.2, get the new version of worklog.
Description
The purpose of this package of macros is to keep track of your working hours and minutes with WinEdt.
It gets the time when you open WinEdt and when you close it, and asks you on what you've been working.
This information is written into a table (the worklog): One file for every month, and another one containing the summary.
(Also, it calculates the average per day and week.)
The package consists of the following files:
00worklog.README |
this file in text format |
main macros: |
worklog_open.edt |
gets the current time and writes the table; invoked at WinEdt's Startup. |
worklog_close.edt |
gets closing time and completes the table; invoked when you exit WinEdt |
|
additional macros: |
wl_chart.edt |
generates a tex-file that uses schedule.sty and produces a nice looking chart. |
wl_status.edt |
can be used to include the actual Open Time
in the Status Line's Custom Info. |
wl_month.edt |
use this to get the total Open Time and average till now. |
wl_open.edt |
gets the worklog with one shortcut. |
wl_read.edt |
lets you choose which month to read. |
|
data files: |
(some are provided to avoid 'File Not Found'-Errors) |
$month$.worklog |
the generated worklog for the respective month |
total.worklog |
containing the monthly summaries |
month.worklog |
keeping the total hours for the month |
day.worklog |
keeping the hours for the day |
wl_$week$.tex |
generated tex-file containing the chart for the week (only if wanted) |
wl_$week$.data |
the raw data, will be created by worklog |
wl_chart.data |
the base file for the LaTeX chart |
Installation Instructions
If you are using WinEdt v5.2, you can get this package in two ways. Check out here.
To use this package, you will want to follow these steps:
- Unzip the files into a newly created directory %B\Macros\worklog.
(%B stands for WinEdt's directory (e.g. C:\Programs\WinEdt).)
-
Tell WinEdt to execute worklog_open.edt on Startup and worklog_close.edt on Exit.
To do this,
-
include the following line:
Exe('%B\Macros\worklog\worklog_open.edt');
in your Startup Macro (probably %B\config\Startup.edt; if not see Options | Preferences | Events), and
-
include the line
Exe('%B\Macros\worklog\worklog_close.edt');
in %B\config\Exit.edt.
(If you cannot find this file, look in your Startup Macro for the line beginning with SetOnExit(). The name in the brackets denotes the file
you're looking for.
If you cannot find this line either, put this:
SetOnExit(!"[Exe('%B\Macros\worklog\worklog_close.edt')]");
in your Startup Macro.)
- That's (probably) it.
-
Some customization might be needed:
- If you use the Global Register %1 you need to replace all instances of this in worklog_open.edt and worklog_close.edt with some other, unused Global Register
(if you are using all Global Registers for yourself then you can either think of a different solution or you can't use the worklog-macros).
- If you want a chart to be automatically generated AND your computer's language is not english, you have to translate the names of the days (Monday, Tuesday, etc.) in
wl_chart.edt to your language (NB: it depends on Windows' language, not WinEdt's).
-
Some customization might be wanted:
- By default, the new day starts at midnight. If you don't want this (if you work at nights, for example), uncomment some lines and delete some others in
'worklog_open.edt'. You will find them.
Additional Macros:
You might find these extras useful:
Download
/worklog51.zip (for WinEdt 5.1)
schedule.sty (from CTAN)
Macro contributed by Robert <w.m.l gmx.net>
|