ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* New header
@ 2014-01-21 19:02 Fabrice Couvreur
  2014-01-21 22:41 ` Joshua Krämer
  0 siblings, 1 reply; 11+ messages in thread
From: Fabrice Couvreur @ 2014-01-21 19:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
Thank you for your reply. I do not understand all of the code, even if I use
MetaPost but with Asymptote.
I would also fit the dimensions of my papers as I used to do (\usepackage [
a4paper, hmargin = 1.5cm, vmargin =1.5cm] {geometry})
Thank you.

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

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

[-- Attachment #3: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread
* New header
@ 2014-01-18 10:52 Fabrice Couvreur
  2014-01-18 10:58 ` Wolfgang Schuster
  2014-01-20  9:34 ` Fabrice Couvreur
  0 siblings, 2 replies; 11+ messages in thread
From: Fabrice Couvreur @ 2014-01-18 10:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,
I use the following header to my statements made with tittlesec package.

\makeatletter

    \newcommand{\@classe}[1]{}
    \newcommand{\classe}[1]{\gdef\@classe{#1}}
    \newcommand{\@typedevoir}[1]{}
    \newcommand{\typedevoir}[1]{\gdef\@typedevoir{#1}}
    \newcommand{\@numerodevoir}[1]{}
    \newcommand{\numerodevoir}[1]{\gdef\@numerodevoir{#1}}
    \AtBeginDocument{\section{\@typedevoir\space\no\@numerodevoir}}
    \titleformat{\section}[frame]
      {\normalfont}
      {\footnotesize\enspace\itshape\@classe\enspace--\enspace Le
\@date\enspace}
      {10pt}
      {\Large\scshape\bfseries\filcenter}
  \makeatother

I want to gradually move to ConTeXt and I tried to create the same header.
But I do not yet know all the commands to do with ConTeXt.

\setuptextrules
[style=\it,location=top]
\define[6]\MyHeader{%

\textrule[top]{#1\space--\space\date[d=#2,m=#3,y=#4]}{\startlinealignment[middle]{\cap
\bf #5 \space n\high{{o}}\space {#6}}\stoplinealignment\blank\textrule}}

\starttext
\MyHeader{Seconde GTA}{11}{1}{2014}{Devoir de Mathématiques}{7}
\stoptext
Thank you.

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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2014-01-23 17:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-21 19:02 New header Fabrice Couvreur
2014-01-21 22:41 ` Joshua Krämer
2014-01-22 17:08   ` Fabrice Couvreur
2014-01-22 18:10     ` Wolfgang Schuster
2014-01-22 19:14       ` Fabrice Couvreur
2014-01-22 19:19         ` Aditya Mahajan
2014-01-23 17:08           ` Fabrice Couvreur
  -- strict thread matches above, loose matches on Subject: below --
2014-01-18 10:52 Fabrice Couvreur
2014-01-18 10:58 ` Wolfgang Schuster
2014-01-20  9:34 ` Fabrice Couvreur
2014-01-20 17:44   ` Hans Hagen

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).