] Re: Local alternative to \input
With a single environment it seems to work, though when I expand it to
multiple, it does not seem to work anymore
\starttext
SomeText \\
\environment aaa \\
SomeText \\
\environment bbb \\
SomeText \\
\startenvironment aaa
\samplefile{lorem}
\stopenvironment
With a single environment it seems to work, though when I expand it to
multiple, it does not seem to work anymore
\starttext
SomeText \\
\environment aaa \\
SomeText \\
\environment bbb \\
SomeText \\
\startenvironment aaa
\samplefile{lorem}
\stopenvironment
\startenvironment bbb
\samplefile
\environment foo
\environment bar
\startenvironment foo
this is a lot of text
\stopenvironment
\startenvironment bar
and this is another piece of text
\stopenvironment
\stoptext
An environment is a separate file.
\environment is like \input with a few more checks, e.g. it loads the
file only once.
e.g
el 7, order 59, name 'pgfmoduleshapes.code.tex'
> close source> level 7, order 59, name 'pgfmoduleshapes.code.tex'
> close source> level 6, order 59, name 'pgfmodulematrix.code.tex'
> open source > level 6, order 60, name 'tikzlibrarytopaths.code.tex'
> close source
s.code.tex'
close source> level 5, order 62, name 'pgfmoduledecorations.code.tex'
close source> level 4, order 62, name
'/home/fabrice/LMTX/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
modules > 'pgfplots' is not found
tex error > tex error on line 8 in fi
\startproject *
\usepath [{ Metadata }]
\environment Environment.tex
\stopproject
% /MainFolder/Metadata/Environment.tex
\startenvironment *
% Test if setup is applied.
\setupbodyfont[ebgaramond]
\stopenvironment
% /MainFolder/SubFolder/SubSubFolder/Doc.tex
\startproduct *
\project Meta
\startcomponent
:
\startenvironment env_corrige.mkiv
\startluacode
userdata = userdata or {}
function userdata.Critere (commentaire,note,notemax)
context.startxcell {"width=11cm","height=2.75cm"}
context(Eleve[commentaire])
context.stopxcell ()
context.star
Hi,
I am used to giving very extensive feedbacks to my pupils.
These are buffers with xtables flushing lua vectors.
Here is their basic structures:
* an environment that stores xtables. Turned into MWE, look like:
\startenvironment env_corrige.mkiv
\startluacode
userdata
ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
\starten
the \mainlanguage[es] command in the
environment file was ignored. In the end I have come to the conclusion
that this was because I had written in it
\startenvironment
instead of
\startenvironment environment_name
What I do not understand is why, when not putting the name of the
environment
]
...
\endcomponent
end component
begin environment
\startenvironment[terminale-style]
...
\startsetups [section:chapter]
\setuphead
[chapter]
[align=flushright,
textcommand=\groupedcommand{\blank[medium]}{},
numbercolor=darkgray,
textstyle=ChapterTextStyle,
numberstyle
component
\startcomponent [*]
\environment [...]
...
\stopcomponent
end component
begin environment
\startenvironment [*]
\startsetups [section:chapter]
\setuphead
[chapter]
[...]
\stopsetups
\startsectionblockenvironment [bodypart]
\directsetup{section:chapter
\stopproduct
end document.tex
begin document-environment.tex
\startenvironment [*]
% sub directory for images
%
% \setupexternalfigures
% [directory=...]
%
% sub directories for components
%
% \usepath
% [...]
% put you setups here
\stopenvironment
end document-environment.tex
]
[3mm]
\stopmode\startenvironment env-colors
%% Hostsharing corporate colors
%% Für RGB-Medien wie zum Beispiel Präsentationen
%% definieren wir RGB-Farben.
%% Wenn context ohne mode=fogra39 und ohne mode=isocoated aufgerufen wird,
%% werden diese RGB-Farben benutzt.
\startnotmode[fogra39,is
%%%% end product begin environment\startenvironment env-WA \setuppagenumbering [alternative=doublesided, location=right] \defineconversionset [frontpart:pagenumber] [] [romannumerals] \setupexternalfigures [directory={External PDF}] \startsectionblockenvironment [frontpart] \setu
\component co-01
\component co-02
\stopbodymatter
\startappendices
\component co-ap-01
\component co-ap-02
\stopappendices
\startbackmatter
\copypages[app1.pdf][n=4]
\stopbackmatter
\stopproduct
end product
begin environment
\startenvironment env-WA
\setuppagenumbering
Alan Braslau schrieb am 23.07.2020 um 00:21:
Hello,
I have put the following in an environment
\startenvironment MYENVIRONMENT
\setupdocument
[metadata:title={\documentvariable{title}},
metadata:subtitle={\documentvariable{subtitle}},
metadata:author={\documentvariable{author
Hello,
I have put the following in an environment
\startenvironment MYENVIRONMENT
\setupdocument
[metadata:title={\documentvariable{title}},
metadata:subtitle={\documentvariable{subtitle}},
metadata:author={\documentvariable{author}},
metadata:keywords={\documentvariable{keywords
to adjust it. Who can
help me out?
Best Regards,
Jeroen
\startenvironment mkivcnotesenv
\setuppapersize[A4,portrait]
[A4,portrait]
\setuplayout[backspace=20mm,
width=175mm,
topspace=20mm,
header=0mm,
footer=2mm,
height
Hi,
I am just testing out the project structure. Let's suppose I have these
files:
- test_env.tex
```
\startenvironment *
\setuphead
[section]
[textstyle=\bf]
\stopenvironment
```
- test_project
```
\startproject *
\environment test_env
\product test_prod
\stopproject
On Thu, 29 Nov 2018 20:30:53 +0100
Wolfgang Schuster wrote:
> Below is a improved version of the token method which works with the
> new beta.
>
> \startenvironment [*]
>
> \definetokenlist [english] % optional because \starttokenlist
> \definetokenlist [swedish] % chec
.
Below is a improved version of the token method which works with the new
beta.
\startenvironment [*]
\definetokenlist [english] % optional because \starttokenlist
\definetokenlist [swedish] % checks if the token lists exists
\starttokenlist [english]
\setupitemgroup [itemize] [i
}{\mainlanguage[\documentvariable{language}]}%
\to \everysetupdocument
That's basically what I've done in my project file (te-proj.tex). At
least the code is supposed to do exactly that.
But even your solution doesn't work here. Did you try it in the
example project file?
\startenvironment
Marco Patzer schrieb am 27.11.18 um 22:23:
On Tue, 27 Nov 2018 22:05:27 +0100
Wolfgang Schuster wrote:
But even your solution doesn't work here. Did you try it in the
example project file?
\startenvironment [*]
\startsetups [itemgroup:en]
\setupitemgroup [itemize] [i]
\stopsetups
On Tue, 27 Nov 2018 22:05:27 +0100
Wolfgang Schuster wrote:
> > But even your solution doesn't work here. Did you try it in the
> > example project file?
>
> \startenvironment [*]
>
> \startsetups [itemgroup:en]
> \setupitemgroup [itemize] [i]
> \stopsetups
&
}]}%
\to \everysetupdocument
That's basically what I've done in my project file (te-proj.tex). At
least the code is supposed to do exactly that.
But even your solution doesn't work here. Did you try it in the
example project file?
\startenvironment [*]
\startsetups [itemgroup:en]
\setupitemgroup [itemize
root/openstack_doc/project-openstack-source-analysis.tex: ! Argument of
\titlecmd has an extra }".
I don't know the reason of this error.How to fix this error? Many thanks for
your help!
the evn-plain.tex file content is below:
\startenvironment env-plain
% C ??
in a particular
mode (if that makes any sense at all).
Is this possible?
The long version:
What I think I want is something like:
--- begin foo.tex ---
\startenvironment foo
\definemode[showexamples][keep]
% Can I add some magic here in the following setup to automagically
% wrap these sections
##
\startenvironment MyLayout
\setupbodyfont[12pt,pagella]
\definelayout
[noheader]
[header=2\lineheight,
headerdistance=\lineheight,
backspace=2cm,
width=middle,
topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
footer=\lineheight,
height=middle
r me if I compile the Aditya file.
>>> I have another problem with a simple structure. I created the file
>>> MyLayout.tex containing the macro and I want to call this macro in the
>>> dm1.tex file, but it does not work.
>>> Thank you
>>> Fabrice
>>&g
call this macro in the dm1.tex file, but it does not work.
Thank you
Fabrice
#
MyLayout.tex
#
% macros=mkvi
\startenvironment MyLayout
\setuplayout
[header=3\lineheight,
he
gt;>> I have another problem with a simple structure. I created the file
>>> MyLayout.tex containing the macro and I want to call this macro in the
>>> dm1.tex file, but it does not work.
>>> Thank you
>>> Fabrice
>>>
>>> #
>>
Hello,
>> It's ok for me if I compile the Aditya file.
>> I have another problem with a simple structure. I created the file
>> MyLayout.tex containing the macro and I want to call this macro in the
>> dm1.tex file, but it does not work.
>> Thank you
>> Fabric
macros=mkvi
\startenvironment MyLayout
\setuplayout
[header=3\lineheight,
headerdistance=\lineheight]
\setupbackgrounds
[header]
[text]
[
frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt,
]
\
e. I created the file
> MyLayout.tex containing the macro and I want to call this macro in the
> dm1.tex file, but it does not work.
> Thank you
> Fabrice
>
> #
> MyLayout.tex
> #
>
> % macros=mkvi
>
> \startenvironment MyLayout
>
> \setuplay
#
MyLayout.tex
#
% macros=mkvi
\startenvironment MyLayout
\setuplayout
[header=3\lineheight,
headerdistance=\lineheight]
\setupbackgrounds
[header]
[text]
[
frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt,
]
\defineframed
\startenvironment MyLayout
\setuplayout
[header=3\lineheight,
headerdistance=\lineheight]
\setupbackgrounds
[header]
[text]
[
frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt,
]
\defineframed[headerframed]
[
frame=off
Hello,
my "how-I-do-it" used for typesetting a large book was:
styles.sty
% Styles, settings etc.; never compiled individually, thus ".sty"; the file
also doesn't use '\startenvironment' ... '\stopenvironment' commands (I even don't know
whether such commands exist; a
compile
a component or a product.
My solution:
envi_thesis.tex -
\startenvironment envi_thesis
%% PATHS
\usepath[{comp_chapter1,comp_chapter2}]
blah blah blah
\stopenvironment
prod_thesis.tex --
\startproduct prod_thesis
/
/table1b.tex
/table2b.tex
(...)
(...)
envi_chap1.tex has:
\startenvironment envi_chap1
\product prod_thesis
\usepath[images]
\usepath[tables]
\stopenvironment
comp_chap1.tex
.)
Here's a working example
% engine=luajittex
\startenvironment env_trap
\enableregime[utf-8]
\setupcolors[state=start]
\setupreferencing[autofile=yes]
\setupinteraction[state=start, color=blue, contrastcolor=blue, style={\tf}]
\usemodule[simplefonts]
\usemodule[database]
% Enable hyperlinks
On 8/25/2015 8:18 PM, Xan wrote:
Hi,
I have this environment:
\startenvironment processadorxml
% Activitat: defineix \Activitat{activitat-id}
\def\Activitat#1%
{\xmlfilter{rebost}
{/activitats/activitat[@id=='#1']/command(xml:list)}
}
% Simplement llistam totes les presentacions
Hi,
I have this environment:
\startenvironment processadorxml
% Activitat: defineix \Activitat{activitat-id}
\def\Activitat#1%
{\xmlfilter{rebost}
{/activitats/activitat[@id=='#1']/command(xml:list)}
}
% Simplement llistam totes les presentacions.
\startxmlsetups xml:list
env_xref
\product prd_xref
\stopproject
% environment
\startenvironment env_xref
\setupinteraction
[state=start,
style=,
color=blue,
contrastcolor=,
menu=on,
title=Cross referencing Test File,
author=Gerard Verhaag]
\stopenvironment
% component1 [xref1]
\project
\product prd_xref
\stopproject
% environment
\startenvironment env_xref
\setupinteraction
[state=start,
style=,
color=blue,
contrastcolor=,
menu=on,
title=Cross referencing Test File,
author=Gerard Verhaag]
\stopenvironment
% component1 [xref1]
\project project_xref
\startcomponent
\startenvironment envA
% the definitions
\stopenvironment
# EnvironmentB
\startenvironment envB
% the definitions
\stopenvironment
# ComponentA
\environment envA
\product MyProduct
\startcomponent ComponentA
\starttext
…
\stoptext
# ComponentB
\environment envB
\product MyProduct
\item la blava recorre
\stopitemize
/presentacio
/activitat
/activitats
is interpreted? I want that {\start,\stop}itemize is processed.
\xmlflushcontext
My setup is:
\startenvironment processadorxml
\xmlloadonly{rebost}{dades/activitats.xml}{}
\def\Activitat#1%
{\xmlfilter
/presentacio
/activitat
/activitats
is interpreted? I want that {\start,\stop}itemize is processed.
My setup is:
\startenvironment processadorxml
\xmlloadonly{rebost}{dades/activitats.xml}{}
\def\Activitat#1%
{\xmlfilter{rebost}
{/activitats/activitat[@id=='#1']/presentacio
Hi,
In my project, there is an env-03.tex file that contains this :
\startenvironment env-03
\defineenumeration
[def]
[text={Définition},
headstyle={\bf\feature[+][f:smallcaps]},
width=fit,
alternative=left,
stopper={.}]
\stopenvironment
If I compile, I get this :
open
Fabrice Couvreur mailto:fabrice1.couvr...@gmail.com
30. Juli 2015 15:21
Hi,
In my project, there is an env-03.tex file that contains this :
\startenvironment env-03
\defineenumeration
[def]
[text={Définition},
headstyle={\bf\feature[+][f:smallcaps]},
width=fit,
alternative=left
the \definesomething commands as for example
http://wiki.contextgarden.net/Command/definetyping
Context has also
http://wiki.contextgarden.net/Command/startenvironment
but I suppose it's not what you mean.
--
luigi
{Environment}{typingmore}%
{code}{code«typing·args}%
{·typing»code}{code}
I think, to make specializations.
Context has also
http://wiki.contextgarden.net/Command/startenvironment
but I suppose it's not what you mean.
It looks like just adding a series of command names, rather than a stacked
, it doesn't seem to work.
Here is a minimal (not) working example:
% env.tex
\startenvironment env
\setuppapersize[A5]
\appendtoks
Title page
\to \everystarttext
\stopenvironment
% prj.tex
\startproject prj
\environment env
\stopproject
(not) working example:
% env.tex
\startenvironment env
\setuppapersize[A5]
\appendtoks
Title page
\to \everystarttext
\stopenvironment
% prj.tex
\startproject prj
\environment env
\stopproject
% prd.tex
\startproduct prd
\project prj
\starttext
=
\startenvironment env_cataoia
\project project_cataoia
%
\definedescription [description]
[location=serried, width=broad, hang=fit, margin=standard,
headstyle=bold]
\definestartstop [descriptions] [before=\startpacked
Hallo,
I am trying to start a new project with the following test files:
--env-medizin.tex---
\startenvironment env-medizin
\mainlanguage[deo]
\enableregime[utf]
\setupbodyfont[sans,11pt]
\setuplanguage[deo][leftquote=\guilsingleright
Am 12.03.2015 um 13:35 schrieb Wolfgang Werners-Lucchini w...@musensturm.de:
Hallo,
I am trying to start a new project with the following test files:
--env-medizin.tex---
\startenvironment env-medizin
\mainlanguage[deo]
\enableregime
:
--env-medizin.tex---
\startenvironment env-medizin
\mainlanguage[deo]
\enableregime[utf]
\setupbodyfont[sans,11pt]
\setuplanguage[deo][leftquote=\guilsingleright,
rightquote=\guilsingleleft
environment file fonts.tex:
\startenvironment fonts
\starttypescript [math] [fonts]
\loadfontgoodies[baskervald-math]
\definefontsynonym[MathRoman][file:texgyrepagella-math@baskervald-math]
\stoptypescript
\definetypeface
that the following files produced effects:
Extract from environment file fonts.tex:
\startenvironment fonts
\starttypescript [math] [fonts]
\loadfontgoodies[baskervald-math]
\definefontsynonym[MathRoman][file:texgyrepagella-math@baskervald
-env file containing only
-
\startenvironment simple-env
\setuppagenumbering[alternative=doublesided]
\setuphead
[chapter] [page=right]
\stopenvironment
-
The text
{}
This is an example
\stoptext
with simple-env file containing only
-
\startenvironment simple-env
\setuppagenumbering[alternative=doublesided]
\setuphead
[chapter] [page=right
this :
--
\environment simple-env
\starttext
\chapter{}
This is an example
\stoptext
with simple-env file containing only
-
\startenvironment simple-env
}{3}{2014}{{\ss \tfd \bf Correction du devoir
maison de Mathématiques} }{{\ss \bf \tfd 9}}
\startex
\input knuth
\stopex
\stoptext
##
\startenvironment environ-2
\loadtypescriptfile[mathdesign]
\definetypeface [mainface] [rm] [serif
}... or
\startenvironment ...)
I know a lot of computer languages now and I really don't want to learn
Lua or Haskell -- I'm retired! :)
--
Bill Meahan, Westland, Michigan
“Writing is like getting married. One should never
commit oneself until one is amazed at one's luck
to Textile as well such as local styling
(CSS or \begin{environment}... or \startenvironment ...)
I know a lot of computer languages now and I really don't want to learn
Lua or Haskell -- I'm retired! :)
--
Bill Meahan, Westland, Michigan
“Writing is like getting married. One should never
for the math settings.
\startenvironment liberty
\starttypescript [liberty]
\definefontsynonym [Serif] [file:LinLibertine_R_G]
\definefontsynonym [SerifCaps] [Serif] [features=smallcaps]
\definefontsynonym [SerifItalic] [file:LinLibertine_RI_G]
\definefontsynonym [SerifSlanted
Has something changed recently on how product-component structure is supposed to
be used? I have three files:
1. prd.tex
\environment env
\startproduct prd
\component cmp
\stopproduct
2. env.tex
\startenvironment env
\define\testing{This is a test
? I have three files:
1. prd.tex
\environment env
\startproduct prd
\component cmp
\stopproduct
2. env.tex
\startenvironment env
\define\testing{This is a test}
\stopenvironment
3. cmp.tex
\product prd
\startcomponent cmp
\startenvironment env
\define\testing{This is a test}
\stopenvironment
3. cmp.tex
\product prd
\startcomponent cmp
Testing \testing
\stopcomponent
When I compile cmp.tex, I get:
%--%-
[…]
mtx
cmp
\stopproduct
2. env.tex
\startenvironment env
\define\testing{This is a test}
\stopenvironment
3. cmp.tex
\product prd
\startcomponent cmp
Testing \testing
\stopcomponent
When I compile cmp.tex, I get
\environment env
\startproduct prd
\component cmp
\stopproduct
2. env.tex
\startenvironment env
\define\testing{This is a test}
\stopenvironment
3. cmp.tex
\product prd
\startcomponent cmp
Testing \testing
\stopcomponent
When I compile cmp.tex, I get
[titlefont][MyriadPro-Bold*default at 70bp]
\definefont [subtitle][MyriadPro-Bold*default at 25bp]
\definefont [gauthor][MinionPro-Regular*default at 25bp]
---
\startenvironment[formatting]
\usemodule [simplefonts]
\definefont [titlefont][MyriadPro-Bold
%% end
an environment file e.tex
%% e.tex
\startenvironment e
% style commands...
\stopenvironment
%% end
and two component files c.tex and d.tex
%% c.tex (d.tex is the same file, except content part)
\setupreferencing[autofile=yes]
\setupinteraction[state=start]
\startcomponent c
\product p
Hallo,
I use:
ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.25 int: english/english
Problem:
\product do not work:
Main-file a.tex:
\startproject a
\environment e
1
\product b
3
\stopproject
Environment-file e.tex
\startenvironment e
\setupbodyfont[sans,12pt]
\stopenvironment
Sub-file
-file e.tex
\startenvironment e
\setupbodyfont[sans,12pt]
\stopenvironment
Sub-file b
\startproduct b
\project a
2
\stopproduct
gives as a ressult: 1 3
The environment-file works fine, but the sub-file seems to be ignored.
What is the matter?
Use the product file as main file
environment file is causing my
difficulties, I attach it below:
\startenvironment Formattierung
\setuppapersize[letter][letter]
\setuplayout[backspace=1.5in,
topspace=1in,
bottomspace=1in,
cutspace=1in]
\setupinterlinespace[line=5.6ex]
\setupindenting[.5in
-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
\startenvironment env2bookk
\setuppapersize [A5][A4
component files below (I tried
attaching them but then realised the attachments Hans sent me were off list)
Thanks again
Andrew
Here's my environment file
\startenvironment env2bookk
\setuppapersize [A5][A4]
\setuparranging [2UP,rotated,doublesided]
\setuppagenumbering [alternative
\stopproject
* environment file ausgewaehlte_environment.tex
\startenvironment ausgewaehlte_environment
\usemodule[typo-krn]
\usemodule[letterspace]
\setupoutput[pdftex]
\enableregime[utf]
\mainlanguage[cz
...
\stopbodymatter
\stopproject
* environment file ausgewaehlte_environment.tex
\startenvironment ausgewaehlte_environment
\usemodule[typo-krn]
[…]
Could anyone explain me what happened? Why the new context version complains
about duplicate core namespace
with diacritics
t-Env.mkiv - Environment file - just load macros
%\enableregime[cp1250]
\input t-M.mkiv
\startenvironment *
\stopenvironment
t-Comp.mkiv - Component - this file is to be compiled
%\enableregime[cp1250]
\environment t-Env.mkiv
\startcomponent
]
\input t-M.mkiv
\startenvironment *
\stopenvironment
t-Comp.mkiv - Component - this file is to be compiled
%\enableregime[cp1250]
\environment t-Env.mkiv
\startcomponent *
Comp
\stopcomponent
I tried to place \enableregime[cp1250] statement to all places where it is
marked
Hi John,
mcommon.tex is an environment file used by mreadme.tex. (If you look
inside mcommon.tex, you'll see it starts with \startenvironment) This
is why it produces no pages of output. For more on environment files,
see
http://wiki.contextgarden.net/Command/startenvironment
http
On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen pra...@wxs.nl wrote:
in the current beta you can say
\startcomponent *
Hans
Wikified at http://wiki.contextgarden.net/Command/startcomponent. This
trick also works for startproject, startenvironment, and startproduct,
I assume
for startproject, startenvironment, and startproduct,
I assume?
And for the general case, what about
`\ctxlua{commands.processedfile}`? That looks like it should print the
current filename, as long as any inclusions use the ConTeXt commands
and not \input.
You can use \currentcomponent
()
local fp = io.open(env.tex, w)
fp:write([[
\startenvironment env
\def\ColumnDistance{1cm}
\startmode[columns]
\definepapersize[columns][
width=\dimexpr (\textwidth - \ColumnDistance) / 2 \relax,
height=\textheight]
\setuppapersize[columns]
\setuplayout[page]
\setuppagenumbering
-file):
--8---cut here---start-8---
local C = context
local format = string.format
local function create_environment()
local fp = io.open(env.tex, w)
fp:write([[
\startenvironment env
\def\ColumnDistance{1cm}
\startmode[columns]
\definepapersize
:
\startenvironment myquotation
\setuplayout[leftmargin=1.5in,backspace=1.5in,rightmargin=1.5in]
\stopenvironment
...and then the slide:
\SlideTitle{An exception: Lotus Improv, an exceptional spreadsheet}
\blank
%\setupquotation[leftmargin=1.5in]
{\environment env-myquotation.tex
\quotation
an environment file env-myquotation.tex, which has as its
contents:
\startenvironment myquotation
\setuplayout[leftmargin=1.5in,backspace=1.5in,rightmargin=1.5in]
\stopenvironment
...and then the slide:
\SlideTitle{An exception: Lotus Improv, an exceptional spreadsheet}
\blank
unique to this
particular document I often only use environments.
template file in some directory on the system: \startenvironment
myreport ... \setupexternalfigures[directory=???]
\setupfootertexts[{\externalfigure[mypic]}] ... \stopenvironment
External figures are also found in the local texmf
path in document file? Is enviroment
good aproach to define templates? I have read Han's document about project
structure, but it does something a bit different I think.
template file in some directory on the system:
\startenvironment myreport
...
\setupexternalfigures[directory
, it hangs..
A minimal environment test file:
\startenvironment env_ms_blackletter
\definetypeface[mainface][rm][specserif] [Lucida Blackletter
OT][default][features=default]
\setupbodyfont[mainface]
\stopenvironment
There are two ways to get around this:
1. Load the environment before
[mainface]
\definebodyfontenvironment[default][em=cg]
\starttext
\input knuth
roman {\cg calligraphic} roman {\em emphasized} roman
\stoptext
Works fine in a single file, but as soon as I try using it in a
project environment, it hangs..
A minimal environment test file:
\startenvironment
\environment env-fonts-simplefonts
\product prd-test1
\stopproject
prd-test1.tex:
\startproduct prd-test1
\project proj-test
\input knuth
\stopproduct
env-fonts-simplefonts:
\startenvironment env-fonts-simplefonts
% FONT related setups
\usemodule[simplefonts] % to get access to Calibri Cambria, win
simplefonts to load the font you have to change your
environment file to this:
\startenvironment env-fonts-simplefonts
\usemodule[simplefonts] % to get access to Calibri Cambria, win ttf fonts
\setmainfont[Cambria]
\setsansfont[Calibri]
\setupbodyfont[10pt,sans]
\stopenvironment
BTW: I can give
, it seems to me that I refer to file names (as with \input) when
working with components rather than their ids assigned by \startcomponent or
\startproduct.
What would be a situation when I'd need to use ids CCC or PPP (or later, those assigned by
\startproduct PROD and \startenvironment ENV)?
Best
(as with \input)
when working with components rather than their ids assigned by
\startcomponent or \startproduct.
What would be a situation when I'd need to use ids CCC or PPP (or
later, those assigned by \startproduct PROD and \startenvironment
ENV)?
Best regards,
Lukas
Dear ConTeXt folks,
I am using the project layout [1] and have a file `env.tex` which gets
loaded.
\startenvironment env
\mainlanguage[de]
\setupinteraction
[title=Titel,
author=John Doe,
keyword={keyword
Am 13.11.2011 um 20:05 schrieb Paul Menzel:
Dear ConTeXt folks,
I am using the project layout [1] and have a file `env.tex` which gets
loaded.
\startenvironment env
\mainlanguage[de]
\setupinteraction
[title=Titel,
author=John
1 - 100 of 195 matches
Mail list logo