* modife the style of taspresent
@ 2009-03-03 10:18 Bill Long
2009-03-03 10:27 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Bill Long @ 2009-03-03 10:18 UTC (permalink / raw)
To: ntg-context
Dear All,
anybody can help me on this problem?
As most of the ppt file's background are graphics, but I don't know
how to do it by modify the sytelefile. for example bellow style:
---------------------------------------------
%D \module
%D [ file=t-horizontalblue,
%D version=2007.07.17,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module horizontalblue,
%D author=Thomas A. Schmitz,
%D date=\currentdate,
%D copyright={Thomas A. Schmitz}]
%C
%C Copyright 2007 Thomas A. Schmitz.
%C This file may be distributed under the GNU General Public License v. 2.0.
%D This file provides the \quotation{horizontalblue} style for the presentation
%D module. It is loaded at runtime. The look of this style was inspired by the
%D \quotation{Copenhagen} theme of the \LaTeX\ {\tt beamer} package.
\writestatus{loading}{module newstyle}
\startmodule[newstyle]
\unprotect
%D The taspresentation module provides a skeleton into which different styles
%D can be hooked. It uses a number of variables and macros which have to be set
%D beforehand. Some parts are optional. We begin with the necessary definitions:
%D We start colors:
\setupcolors[state=start]
%D These macros are used for placing figures/pictures:
\define\NormalHeight{.97\textheight}
\define\NormalWidth{.476\textwidth}
\define\PictureFrameHeight{.97\textheight}
\define\PictureFrameWidth{.476\textwidth}
%D The page layout:
\setuplayout [width=fit,
margin=0cm,
height=14.7cm,
header=1.75cm,
footer=1.2cm,
topspace=1cm,
backspace=1cm,
location=singlesided]
%D The macro for typesetting the Slidetitle; this is adapted from a sample
%D document that Brooks Moses published on the wiki:
\definelayer[slidetitle]
[width=\paperwidth,
height=\paperheight,
x=10mm]
\define[1]\Slidetitle{\page\setlayer[slidetitle]%
{\framed[frame=off,width=\textwidth,height=2.2cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[c]{#1}}}}
%D The macro \tex{Maketitle} produces a default title page with the author, the
%D title of the presentation, and the date. Using it is not mandatory.
\define\Maketitle{%
\titback
\null
\vfill
\framed[frame=off,width=\textwidth,height=.75\textheight,top=\vss,bottom=\vss,align=middle]{\switchtobodyfont[\Titlesize]\color[c]{\bf \getvariable{taspresent}{title}}\switchtobodyfont[\Normalsize]\blank[line]\getvariable{taspresent}{author}\blank[2*line]\currentdate}
\vfill
\null}
%D The following parts are optional; if you don't use backgrounds and are
%D content with CONTEXT's default itemization, you don't have to set these
%D macros.
%D We define our colors:
\definecolor [a] [s=.95]
\definecolor [b] [r=.58,g=.58,b=.82]
\definecolor [c] [r=.2,g=.2,b=.73]
\definecolor [Item] [r=.2,g=.2,b=.73]
%D We let Metapost calculate the background:
\startuniqueMPgraphic{vertical}
StartPage ;
pair zd[] ;
path pb[] ;
fill Page withcolor \MPcolor{a} ;
z.d1 = ulcorner Page shifted (0,-5pt) ;
z.d2 = urcorner Page shifted (0,-5pt) ;
pb[1] = ulcorner Page -- z.d1 -- z.d2 -- urcorner Page -- cycle ;
z.d3 = llcorner Page shifted (0,5pt) ;
z.d4 = lrcorner Page shifted (0,5pt) ;
pb[3] = llcorner Page -- z.d3 -- z.d4 -- lrcorner Page -- cycle ;
pb[4] = pb[3] shifted (0,.75cm) ;
fill pb[1] withcolor \MPcolor{b} ;
fill pb[3] withcolor \MPcolor{b} ;
fill pb[4] withcolor \MPcolor{b} ;
StopPage ;
\stopuniqueMPgraphic
\startuniqueMPgraphic{horizontal}
StartPage ;
pair zd[] ;
path pb[] ;
z.d1 = ulcorner Page shifted (0,-5pt) ;
z.d2 = urcorner Page shifted (0,-5pt) ;
pb[1] = ulcorner Page -- z.d1 -- z.d2 -- urcorner Page -- cycle ;
pb[2] = pb[1] shifted (0,-2cm) ;
fill pb[2] withcolor \MPcolor{b} ;
StopPage ;
\stopuniqueMPgraphic
%D We define these backgrounds as overlays:
\defineoverlay
[lecbackground]
[\useMPgraphic{horizontal}]
\defineoverlay
[picbackground]
[\useMPgraphic{vertical}]
%D We define the footer
\setupfooter[color=c,style={\switchtobodyfont[10pt]},strut=yes]
\setupfootertexts[{\framed[frame=off,height=.45cm,width=\textwidth]{\getvariable{taspresent}{title}\hfill \pagenumber \ of \lastpage}}]
%D These are shortcuts to switch backgrounds:
\define\lecback{\setuplayout[header=1.75cm]\setupfooter[state=start]\setupbackgrounds[page][background={picbackground,lecbackground,slidetitle}]}
\define\titback{\setuplayout[header=1.75cm]\setupfooter[state=stop]\setupbackgrounds[page][background={picbackground,lecbackground}]}
\define\picback{\setuplayout[header=0cm]\setupfooter[state=start]\setupbackgrounds[page][background={picbackground}]}
\define\noback{\setupbackgrounds[page][background=nobackground]}
%D We use combinations for placing vertical pictures and text side by side, and
%D we want a distance of 1.1 cm between both.
\setupcombinations[distance=1.1cm]
%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{ItSquare}]
\setupitemize[1][color=c]
\protect
\stopmodule
\endinput
-----------------------------------------------------------
I try to modify
\defineoverlay
[lecbackground]
[\useMPgraphic{horizontal}]
to something like
\defineoverlay
[lecbackground]
[\externalfigure[figure]]
but it doesn't work. any idea? I need for example a.png on right
top. and b.png bottom.
--
卷548_80 【送沈单作尉江都(一作许浑诗)】薛逢
炀帝都城春水边,笙歌夜上木兰船。三千宫女自涂地,
十万人家如洞天。焰焰花枝官舍晚,重重云影寺墙连。
少年作尉须矜慎,莫向楼前坠马鞭。
___________________________________________________________________________________
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] 7+ messages in thread
* Re: modife the style of taspresent
2009-03-03 10:18 modife the style of taspresent Bill Long
@ 2009-03-03 10:27 ` Wolfgang Schuster
2009-03-09 2:36 ` Bill Long
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2009-03-03 10:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 03.03.2009 um 11:18 schrieb Bill Long:
> Dear All,
>
> anybody can help me on this problem?
> As most of the ppt file's background are graphics, but I don't know
> how to do it by modify the sytelefile. for example bellow style:
>
>
> I try to modify
>
> \defineoverlay
> [lecbackground]
> [\useMPgraphic{horizontal}]
>
> to something like
>
> \defineoverlay
> [lecbackground]
> [\externalfigure[figure]]
[{\externalfigure[figure]}]
> but it doesn't work. any idea? I need for example a.png on right
> top. and b.png bottom.
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] 7+ messages in thread
* Re: modife the style of taspresent
2009-03-03 10:27 ` Wolfgang Schuster
@ 2009-03-09 2:36 ` Bill Long
2009-03-09 9:53 ` Thomas A. Schmitz
0 siblings, 1 reply; 7+ messages in thread
From: Bill Long @ 2009-03-09 2:36 UTC (permalink / raw)
To: ntg-context
Thanks!
The grammar is right, but it still can't work.
On Tue, Mar 03, 2009 at 11:27:53AM +0100, Wolfgang Schuster wrote:
>
> Am 03.03.2009 um 11:18 schrieb Bill Long:
>
>> Dear All,
>>
>> anybody can help me on this problem?
>> As most of the ppt file's background are graphics, but I don't know
>> how to do it by modify the sytelefile. for example bellow style:
>>
>>
>> I try to modify
>>
>> \defineoverlay
>> [lecbackground]
>> [\useMPgraphic{horizontal}]
>>
>> to something like
>>
>> \defineoverlay
>> [lecbackground]
>> [\externalfigure[figure]]
>
> [{\externalfigure[figure]}]
>
>> but it doesn't work. any idea? I need for example a.png on right
>> top. and b.png bottom.
>
> 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
> ___________________________________________________________________________________
--
卷672_51 【咸通中始闻褚河南归葬阳翟是岁上平徐方…成二十韵】唐彦谦
册府藏馀烈,皇纲正本朝。不听还笏谏,几覆缀旒祧。
咫尺言终直,怆惶道已消。泪心传位日,挥涕授遗朝。
飞燕潜来赵,黄龙岂见谯。既迷秦帝鹿,难问贾生雕。
穆卜缄縢秘,金根辙迹遥。北军那夺印,东海漫难桥。
罗织黄门讼,笙簧白骨销。炎方无信息,丹旐竟沦漂。
邂逅江鱼食,凄凉楚客招。文忠徒谥议,子卯但箫韶。
未见公侯复,寻伤嗣续凋。流年随水逝,高谊薄层霄。
柱石林公远,缣缃故国饶。奇踪天骥活,遗轴锦鸾翘。
近者淮夷戮,前年归马调。始闻移北葬,兼议荫山苗。
圣泽覃将溥,贞魂喜定飘。异时穷巷客,怀古漫成谣。
___________________________________________________________________________________
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] 7+ messages in thread
* Re: modife the style of taspresent
2009-03-09 2:36 ` Bill Long
@ 2009-03-09 9:53 ` Thomas A. Schmitz
2009-03-11 2:59 ` Bill Long
2009-03-12 1:02 ` Jesse Alama
0 siblings, 2 replies; 7+ messages in thread
From: Thomas A. Schmitz @ 2009-03-09 9:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mar 9, 2009, at 3:36 AM, Bill Long wrote:
> Thanks!
>
> The grammar is right, but it still can't work.
Since I wrote that module... Your description is not very descriptive.
What do you mean "it can't work"? Any error messages, what's going
wrong?
Moreover: taspresent was my first attempt at providing something;
Aditya and I have now been working towards a better module called
"simpleslides." So if you're really thinking about doing presentations
in ConTeXt, better get the git repository at http://github.com/adityam/simple-slides/tree/master
. The module is functional; it's lacking documentation...
Thomas
___________________________________________________________________________________
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] 7+ messages in thread
* Re: modife the style of taspresent
2009-03-09 9:53 ` Thomas A. Schmitz
@ 2009-03-11 2:59 ` Bill Long
2009-03-12 1:02 ` Jesse Alama
1 sibling, 0 replies; 7+ messages in thread
From: Bill Long @ 2009-03-11 2:59 UTC (permalink / raw)
To: ntg-context
On Mon, Mar 09, 2009 at 10:53:08AM +0100, Thomas A. Schmitz wrote:
>
> On Mar 9, 2009, at 3:36 AM, Bill Long wrote:
>
>> Thanks!
>>
>> The grammar is right, but it still can't work.
I just can't make a photo as my background.
>
> Since I wrote that module... Your description is not very descriptive.
> What do you mean "it can't work"? Any error messages, what's going
> wrong?
>
> Moreover: taspresent was my first attempt at providing something; Aditya
> and I have now been working towards a better module called
> "simpleslides." So if you're really thinking about doing presentations
> in ConTeXt, better get the git repository at
> http://github.com/adityam/simple-slides/tree/master . The module is
> functional; it's lacking documentation...
I will take a try.
>
> Thomas
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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] 7+ messages in thread
* Re: modife the style of taspresent
2009-03-09 9:53 ` Thomas A. Schmitz
2009-03-11 2:59 ` Bill Long
@ 2009-03-12 1:02 ` Jesse Alama
2009-03-12 4:50 ` Aditya Mahajan
1 sibling, 1 reply; 7+ messages in thread
From: Jesse Alama @ 2009-03-12 1:02 UTC (permalink / raw)
To: ntg-context
"Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de> writes:
> On Mar 9, 2009, at 3:36 AM, Bill Long wrote:
>
>> Thanks!
>>
>> The grammar is right, but it still can't work.
>
> Since I wrote that module... Your description is not very
> descriptive. What do you mean "it can't work"? Any error messages,
> what's going wrong?
>
> Moreover: taspresent was my first attempt at providing something;
> Aditya and I have now been working towards a better module called
> "simpleslides." So if you're really thinking about doing presentations
> in ConTeXt, better get the git repository at
> http://github.com/adityam/simple-slides/tree/master . The module is
> functional; it's lacking documentation...
I've got the git repository. How do I install this module? (I'm using
the minimals.)
Thanks,
Jesse
--
Jesse Alama (alama@stanford.edu)
___________________________________________________________________________________
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] 7+ messages in thread
* Re: modife the style of taspresent
2009-03-12 1:02 ` Jesse Alama
@ 2009-03-12 4:50 ` Aditya Mahajan
0 siblings, 0 replies; 7+ messages in thread
From: Aditya Mahajan @ 2009-03-12 4:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 11 Mar 2009, Jesse Alama wrote:
> "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de> writes:
>
>> On Mar 9, 2009, at 3:36 AM, Bill Long wrote:
>>
>>> Thanks!
>>>
>>> The grammar is right, but it still can't work.
>>
>> Since I wrote that module... Your description is not very
>> descriptive. What do you mean "it can't work"? Any error messages,
>> what's going wrong?
>>
>> Moreover: taspresent was my first attempt at providing something;
>> Aditya and I have now been working towards a better module called
>> "simpleslides." So if you're really thinking about doing presentations
>> in ConTeXt, better get the git repository at
>> http://github.com/adityam/simple-slides/tree/master . The module is
>> functional; it's lacking documentation...
>
> I've got the git repository. How do I install this module? (I'm using
> the minimals.)
Copy everything to a texmf tree. If you created TEXMFLOCAL or TEXMFHOME
using minimals, then these files can go there. If you did not set these,
the easiest way is to create texmf-project in the same directory as
texmf-context; copy the tex/ directory and all its sub directories from
the simple slides modules to the texmf-project (or TEXMFLOCAL or
TEXMFHOME) directory. Then run "mktexlsr" for using with MKII or XeTeX and
run "luatools --generate" for using with MKIV.
We will be releasing an official version "soon", so the module will be on
the garden and installing it will be as simple as passing
--module=simple-slides to first-setup.sh
There is a small example in the github wiki.
Aditya
___________________________________________________________________________________
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] 7+ messages in thread
end of thread, other threads:[~2009-03-12 4:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-03 10:18 modife the style of taspresent Bill Long
2009-03-03 10:27 ` Wolfgang Schuster
2009-03-09 2:36 ` Bill Long
2009-03-09 9:53 ` Thomas A. Schmitz
2009-03-11 2:59 ` Bill Long
2009-03-12 1:02 ` Jesse Alama
2009-03-12 4:50 ` Aditya Mahajan
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).