From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Subject: Re: What’s your favorite command?
Date: Tue, 31 Jan 2012 10:42:41 +0100 [thread overview]
Message-ID: <4F27B791.4010809@wxs.nl> (raw)
In-Reply-To: <CALBOmsZNkxgw2i+qCHzagh9O2WBSAPM=EDkZ5eg_Pz_QhdvWYg@mail.gmail.com>
On 31-1-2012 00:23, Mojca Miklavec wrote:
> On Mon, Jan 30, 2012 at 19:55, Wolfgang Schuster wrote:
>>
>> I guess many have *one* favorite command (maybe also functionality).
>
> \simplethesis
>
> (Sadly it is a bit buggy, else I would be finished already ;)
As I don't want to bre responsiible for you not passing an examn ...
here's a fix (actually the random args were always swapped but the mkii
code is not sensitive for wrong random ranges)
\unexpanded\def\fakefigure
{\dodoubleempty\dofakefigure}
\def\dofakefigure[#1][#2]#3#4#5#6%
{\getvalue{\e!place\v!figure}
[#1][#2]%
{\freezerandomseed
\let\endstrut\relax
\let\begstrut\relax
\doifinsetelse{#1}{\v!left,\v!right}
{\fakewords{2}{4}}
{\fakewords{4}{10}}}%
{\doifinset{#1}{\v!left,\v!right}
{\dimen0=.75\dimen0
\ifdim\dimen0>.6\hsize \dimen0=.5\hsize\fi
\ifdim\dimen0<.3\hsize \dimen0=.3\hsize\fi}%
\framed
[\c!width=\dimen0,
\c!height=\dimen2,
\c!frame=\v!off,
\c!background=\v!color,
\c!backgroundcolor=fakeparindentcolor]
{\bf\white#1}}%
\defrostrandomseed}
I'll upgrade that module anyhow (e.g we need random footnotes for thomas
and random font features for idris) ... then we can have a competition
for the smallest set of commands that generates the nicest thesis.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2012-01-31 9:42 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-30 18:55 Wolfgang Schuster
2012-01-30 19:08 ` Marco
2012-01-30 23:10 ` Aditya Mahajan
2012-01-31 11:39 ` Marco
2012-01-30 19:12 ` Thomas A. Schmitz
2012-01-30 23:08 ` Hans Hagen
2012-01-30 21:37 ` Otared Kavian
2012-01-30 22:43 ` Steffen Wolfrum
2012-01-30 23:13 ` Aditya Mahajan
2012-01-30 23:23 ` Mojca Miklavec
2012-01-31 8:48 ` Hans Hagen
2012-01-31 9:42 ` Hans Hagen [this message]
2012-01-31 5:45 ` Mikael P. Sundqvist
2012-01-31 8:11 ` Mari Voipio
2012-01-31 8:34 ` Alan Braslau
2012-01-31 8:50 ` Hans Hagen
2012-01-31 8:44 ` luigi scarso
2012-01-31 15:15 ` Philipp Gesang
2012-01-31 15:31 ` Hans Hagen
2012-01-31 15:33 ` Wolfgang Schuster
2012-01-31 16:23 ` Philipp Gesang
2012-01-31 15:38 ` Wolfgang Schuster
2012-01-31 16:45 ` Marco Pessotto
2012-01-31 18:34 ` Christian Neukirchen
[not found] <mailman.2016.1327999702.4232.ntg-context@ntg.nl>
2012-01-31 10:03 ` What?s " S Barmeier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F27B791.4010809@wxs.nl \
--to=pragma@wxs.nl \
--cc=mojca.miklavec.lists@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).