ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Something usefull?
@ 2009-01-24 12:46 Cecil Westerhof
  2009-01-25  9:04 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Cecil Westerhof @ 2009-01-24 12:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]

I made something usefull and share it with you. Maybe it is usefull
for other people also.

Sometimes I switch a lot from tasks. Still I need to keep a good log
of time spend on the different tasks. For this I made the first table.
When I switch I can now log easily the new task and the time of the
switch. And at the end of the day I can easily get a running total pro
task.

The second task is for writing down short notes. I used a table to get
lined A7 paper.

I have still some work to do on it. For example the tables are to
close to edge and the tables stop to soon. But I think it is good
enough to 'publish'.

I also have some questions. ;-}
At the moment there are the same number of the timesheet and the lined
paper printed. That is not always what you want I think. The one time
you need more timesheets, the other time you need more lined paper. Is
there a way to ask for the number of timesheets, print those, and let
the rest be printed as lined? (I can offcourse also switch to two
different documents.)
At the moment the lined paper starts counting from 9. Is there a way
to reset it to 1?

-- 
Cecil Westerhof

[-- Attachment #2: tableHoursToDo.tex --]
[-- Type: application/x-tex, Size: 1456 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Something usefull?
  2009-01-24 12:46 Something usefull? Cecil Westerhof
@ 2009-01-25  9:04 ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2009-01-25  9:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: tableHoursToDo.tex --]
[-- Type: application/octet-stream, Size: 1466 bytes --]

\usemodule[defaults]
\setuppagenumbering[location={footer,right}]
\setupbodyfont[roman, 12pt]
\setuppapersize[A7][A4]
\setuplayout[
  backspace=5mm,      footer=1.5\bodyfontsize,                header=5mm,
  height=96.5mm,      margin=5mm,         width=63.5mm,       topspace=4mm,
]
\setuparranging[2*8,rotated]

\def\getTableHours#1%
  {\dorecurse{#1}
     {\setupTABLE[c][each][align=middle,height=\lineheight]
      \setupTABLE[r][1][background=color,backgroundcolor=darkyellow]
      \setupTABLE[c][each][width=0.20\textwidth]
      \setupTABLE[c][2,4][width=0.30\textwidth]
      \dontleavehmode\vskip-\dimexpr\lineheight+\topskip\relax\par
      \startalignment[middle]
      \bTABLE
        \bTR
        \dorecurse{2}{\bTH Type \eTH \bTH Tijd \eTH}
        \eTR
        \getnoflines{\dimexpr\pagegoal-\pagetotal-3\lineheight\relax}
        \dorecurse{\noflines}{\bTR\dorecurse{4}{\bTD \eTD}\eTR}
      \eTABLE
      \stopalignment
      \page}}

% \def\getTableToDo
%   {\dorecurse{\number\numexpr16-\realpageno+1\relax}
%      {\dontleavehmode\vskip-\dimexpr\lineheight+\topskip\relax\par
%       \vbox to \vsize{\leaders\vbox{\thinrule}\vfill}\page}}

\def\getTableToDo
  {\dorecurse{\number\numexpr16-\realpageno+1\relax}
     {\dontleavehmode\vskip-\dimexpr\lineheight+\topskip\relax\par
      \getroundednoflines\textheight
      \thinrules[n=\noflines]\page}}


\starttext

  \getTableHours{8}

  \setuppagenumber[number=1]

  \getTableToDo

\stoptext

[-- Attachment #2: Type: text/plain, Size: 706 bytes --]


Am 24.01.2009 um 13:46 schrieb Cecil Westerhof:

> I made something usefull and share it with you. Maybe it is usefull
> for other people also.

[...]

> I also have some questions. ;-}
> At the moment there are the same number of the timesheet and the lined
> paper printed. That is not always what you want I think. The one time
> you need more timesheets, the other time you need more lined paper. Is
> there a way to ask for the number of timesheets, print those, and let
> the rest be printed as lined? (I can offcourse also switch to two
> different documents.)
> At the moment the lined paper starts counting from 9. Is there a way
> to reset it to 1?

Take a look at the attached file.

Wolfgang


[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Something usefull?
  2009-01-25 12:14     ` Something usefull? Alan BRASLAU
@ 2009-01-25 18:13       ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2009-01-25 18:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.01.2009 um 13:14 schrieb Alan BRASLAU:

> > Take a look at the attached file.
> missing:
> \setupcolors[state=start]

This wasn't in the original file and it's possible Cecil enables
color in his default module.

Wolfgang


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Something usefull?
  2009-01-20 23:07   ` Wolfgang Schuster
@ 2009-01-25 12:14     ` Alan BRASLAU
  2009-01-25 18:13       ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Alan BRASLAU @ 2009-01-25 12:14 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 72 bytes --]

> Take a look at the attached file.

missing:
\setupcolors[state=start]

[-- Attachment #1.2: Type: text/html, Size: 1155 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-25 18:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-24 12:46 Something usefull? Cecil Westerhof
2009-01-25  9:04 ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2008-11-04 11:16 backgrounds: help needed Peter Münster
2009-01-20 22:51 ` Alan BRASLAU
2009-01-20 23:07   ` Wolfgang Schuster
2009-01-25 12:14     ` Something usefull? Alan BRASLAU
2009-01-25 18:13       ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).