ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* documents inside documents
@ 2013-06-25 19:31 Pablo Rodríguez
  2013-06-25 19:55 ` Wolfgang Schuster
  2013-06-26 17:56 ` Aditya Mahajan
  0 siblings, 2 replies; 12+ messages in thread
From: Pablo Rodríguez @ 2013-06-25 19:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I need for a document explaining some ConTeXt features, to be able to
include a document inside (a page that includes the feature).

I know I can create another document and then insert the pages, but it
would be much easier for me to be able to have the code inside the main
the document.

Here is a sample of what I want to include scaled (the way an image is
included) within another document:

\mainlanguage[en]
\setuplanguage[en][patterns={en,agr}]
\definepapersize[mine][width=6in,height=2in]
\setuppapersize[mine]
\usemodule[simplefonts]
\setmainfont[Theano Didot]
\definelinenote[contxt]
\setupnote[contxt][paragraph=yes, inbetween=\hskip1.5em]
\setupnotation[contxt][numbercommand=,alternative=serried,distance=1em,compress=yes,compressseparator=]
\starttext

\startlinenumbering
οὐκ οἶσθ᾽\contxt{οἶσθ᾽: οἶσθα, 2nd sg.,
οἶσδα} ὅτι πολλῶν ἐτῶν\contxt{πολλῶν
ἐτῶν: for…; gen. time within} Ἀγάθων ἐνθάδε
οὐκ ἐπιδεδήμηκεν\contxt{ἐπιδεδήμηκεν: pf.
ἐπιδήμέω}, ἀφ᾽ οὗ\contxt{ἀφ᾽ οὗ: since;
“from which (time)”} δ᾽ ἐγὼ Σωκράτει
συνδιατρίβω\contxt{συνδιατρίβω: I have been
spending; pres. but pf. progressive in translation} καὶ
ἐπιμελὲς πεποίημαι\contxt{ἐπιμελὲς
πεποίημαι: I have made it my business; “have made it my
care,” pf.}
\stoplinenumbering

\stoptext

Is there a standard way to do it with ConTeXt?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 12+ messages in thread

* Re: documents inside documents
  2013-06-25 19:31 documents inside documents Pablo Rodríguez
@ 2013-06-25 19:55 ` Wolfgang Schuster
  2013-06-25 20:25   ` Pablo Rodríguez
  2013-06-26 17:56 ` Aditya Mahajan
  1 sibling, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2013-06-25 19:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.06.2013 um 21:31 schrieb Pablo Rodríguez <oinos@web.de>:

> Dear list,
> 
> I need for a document explaining some ConTeXt features, to be able to
> include a document inside (a page that includes the feature).
> 
> I know I can create another document and then insert the pages, but it
> would be much easier for me to be able to have the code inside the main
> the document.
> 
> Here is a sample of what I want to include scaled (the way an image is
> included) within another document:
> 
> \mainlanguage[en]
> \setuplanguage[en][patterns={en,agr}]
> \definepapersize[mine][width=6in,height=2in]
> \setuppapersize[mine]
> \usemodule[simplefonts]
> \setmainfont[Theano Didot]
> \definelinenote[contxt]
> \setupnote[contxt][paragraph=yes, inbetween=\hskip1.5em]
> \setupnotation[contxt][numbercommand=,alternative=serried,distance=1em,compress=yes,compressseparator=]
> \starttext
> 
> \startlinenumbering
> οὐκ οἶσθ᾽\contxt{οἶσθ᾽: οἶσθα, 2nd sg.,
> οἶσδα} ὅτι πολλῶν ἐτῶν\contxt{πολλῶν
> ἐτῶν: for…; gen. time within} Ἀγάθων ἐνθάδε
> οὐκ ἐπιδεδήμηκεν\contxt{ἐπιδεδήμηκεν: pf.
> ἐπιδήμέω}, ἀφ᾽ οὗ\contxt{ἀφ᾽ οὗ: since;
> “from which (time)”} δ᾽ ἐγὼ Σωκράτει
> συνδιατρίβω\contxt{συνδιατρίβω: I have been
> spending; pres. but pf. progressive in translation} καὶ
> ἐπιμελὲς πεποίημαι\contxt{ἐπιμελὲς
> πεποίημαι: I have made it my business; “have made it my
> care,” pf.}
> \stoplinenumbering
> 
> \stoptext
> 
> Is there a standard way to do it with ConTeXt?


http://www.ntg.nl/pipermail/ntg-context/2013/072963.html

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: documents inside documents
  2013-06-25 19:55 ` Wolfgang Schuster
@ 2013-06-25 20:25   ` Pablo Rodríguez
  2013-06-25 20:59     ` Wolfgang Schuster
  2013-06-25 21:28     ` Peter Münster
  0 siblings, 2 replies; 12+ messages in thread
From: Pablo Rodríguez @ 2013-06-25 20:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 25/06/13 21:55, Wolfgang Schuster wrote:
> Am 25.06.2013 um 21:31 schrieb Pablo Rodríguez <oinos@web.de>:
>> Dear list,
>>
>> I need for a document explaining some ConTeXt features, to be able to
>> include a document inside (a page that includes the feature).
>>
>> I know I can create another document and then insert the pages, but it
>> would be much easier for me to be able to have the code inside the main
>> the document.
>>
>> Is there a standard way to do it with ConTeXt?
> 
> http://www.ntg.nl/pipermail/ntg-context/2013/072963.html

Many thanks for your fast reply, Wolfgang.

I'm afraid I cannot get it working with the sample file I provided. I do
need to be able to get a complete document, not a TEXpage.

Is that possible?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 12+ messages in thread

* Re: documents inside documents
  2013-06-25 20:25   ` Pablo Rodríguez
@ 2013-06-25 20:59     ` Wolfgang Schuster
  2013-06-25 21:28     ` Peter Münster
  1 sibling, 0 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2013-06-25 20:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.06.2013 um 22:25 schrieb Pablo Rodríguez <oinos@web.de>:

> On 25/06/13 21:55, Wolfgang Schuster wrote:
>> Am 25.06.2013 um 21:31 schrieb Pablo Rodríguez <oinos@web.de>:
>>> Dear list,
>>> 
>>> I need for a document explaining some ConTeXt features, to be able to
>>> include a document inside (a page that includes the feature).
>>> 
>>> I know I can create another document and then insert the pages, but it
>>> would be much easier for me to be able to have the code inside the main
>>> the document.
>>> 
>>> Is there a standard way to do it with ConTeXt?
>> 
>> http://www.ntg.nl/pipermail/ntg-context/2013/072963.html
> 
> Many thanks for your fast reply, Wolfgang.
> 
> I'm afraid I cannot get it working with the sample file I provided. I do
> need to be able to get a complete document, not a TEXpage.
> 
> Is that possible?

\startbuffer[extract:before]

  \mainlanguage[en]
  \setuplanguage[en][patterns={en,agr}]
  \definepapersize[mine][width=6in,height=2in]
  \setuppapersize[mine]
  \usemodule[simplefonts]
  \setmainfont[Theano Didot]
  \definelinenote[contxt]
  \setupnote[contxt][paragraph=yes, inbetween=\hskip1.5em]
  \setupnotation[contxt][numbercommand=,alternative=serried,distance=1em,compress=yes,compressseparator=]

\stopbuffer

% \startbuffer[extract:after]
%   % empty
% \stopbuffer

\def\startextract
  {\dosingleempty\dostartextract}

\def\dostartextract[#1]%
  {\edef\extractfilename{#1}%
   \grabbufferdata[extract:content][startextract][stopextract]}

\def\stopextract
  {\doifsomething\extractfilename
     {\savebuffer[list={extract:before,extract:content,extract:after},file=\extractfilename.tex,prefix=no]%
      \typesetfile[\extractfilename][]}}

\starttext

\startextract[dummy]
\startlinenumbering
οὐκ οἶσθ᾽\contxt{οἶσθ᾽: οἶσθα, 2nd sg.,
οἶσδα} ὅτι πολλῶν ἐτῶν\contxt{πολλῶν
ἐτῶν: for…; gen. time within} Ἀγάθων ἐνθάδε
οὐκ ἐπιδεδήμηκεν\contxt{ἐπιδεδήμηκεν: pf.
ἐπιδήμέω}, ἀφ᾽ οὗ\contxt{ἀφ᾽ οὗ: since;
“from which (time)”} δ᾽ ἐγὼ Σωκράτει
συνδιατρίβω\contxt{συνδιατρίβω: I have been
spending; pres. but pf. progressive in translation} καὶ
ἐπιμελὲς πεποίημαι\contxt{ἐπιμελὲς
πεποίημαι: I have made it my business; “have made it my
care,” pf.}
\stoplinenumbering
\stopextract

\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: documents inside documents
  2013-06-25 20:25   ` Pablo Rodríguez
  2013-06-25 20:59     ` Wolfgang Schuster
@ 2013-06-25 21:28     ` Peter Münster
  2013-06-25 22:07       ` Pablo Rodríguez
  1 sibling, 1 reply; 12+ messages in thread
From: Peter Münster @ 2013-06-25 21:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jun 25 2013, Pablo Rodríguez wrote:

>> http://www.ntg.nl/pipermail/ntg-context/2013/072963.html
>
> I'm afraid I cannot get it working with the sample file I provided.

Hi,

Why not?

This works here:

--8<---------------cut here---------------start------------->8---
\startbuffer[sample-document]
  \mainlanguage[en]
  \setuplanguage[en][patterns={en,agr}]
  \definepapersize[mine][width=6in,height=2in]
  \setuppapersize[mine]
  \usemodule[simplefonts]
  \setmainfont[Theano Didot]
  \definelinenote[contxt]
  \setupnote[contxt][paragraph=yes, inbetween=\hskip1.5em]
  \setupnotation[contxt][numbercommand=,alternative=serried,distance=1em,compress=yes,compressseparator=]
  \starttext
  \startlinenumbering
  οὐκ οἶσθ᾽\contxt{οἶσθ᾽: οἶσθα, 2nd sg.,
  οἶσδα} ὅτι πολλῶν ἐτῶν\contxt{πολλῶν
  ἐτῶν: for…; gen. time within} Ἀγάθων ἐνθάδε
  οὐκ ἐπιδεδήμηκεν\contxt{ἐπιδεδήμηκεν: pf.
  ἐπιδήμέω}, ἀφ᾽ οὗ\contxt{ἀφ᾽ οὗ: since;
  “from which (time)”} δ᾽ ἐγὼ Σωκράτει
  συνδιατρίβω\contxt{συνδιατρίβω: I have been
  spending; pres. but pf. progressive in translation} καὶ
  ἐπιμελὲς πεποίημαι\contxt{ἐπιμελὲς
  πεποίημαι: I have made it my business; “have made it my
  care,” pf.}
  \stoplinenumbering
  \stoptext
\stopbuffer
\savebuffer[list=sample-document, file=sample-document.tex, prefix=no]
\starttext
bla bla bla
\typesetfile[sample-document.tex][width=10cm, frame=on]
bla bla bla
\stoptext
--8<---------------cut here---------------end--------------->8---

-- 
           Peter
___________________________________________________________________________________
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] 12+ messages in thread

* Re: documents inside documents
  2013-06-25 21:28     ` Peter Münster
@ 2013-06-25 22:07       ` Pablo Rodríguez
  2013-06-26  2:47         ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: Pablo Rodríguez @ 2013-06-25 22:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 25/06/13 23:28, Peter Münster wrote:
> On Tue, Jun 25 2013, Pablo Rodríguez wrote:
> 
>>> http://www.ntg.nl/pipermail/ntg-context/2013/072963.html
>>
>> I'm afraid I cannot get it working with the sample file I provided.
> 
> Hi,
> 
> Why not?
> 
> This works here:

Many thanks, Peter, it works also here.

One more question, the file belongs in the following code:

\startstandardmakeup[align=middle]
\typesetfile[sample-document.tex][width=10cm, frame=on]
\stopstandardmakeup

How can I get this horizontally centered It is vertically centered, and
it should be also horizontally aligned, but I don't know why doesn't it
work.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 12+ messages in thread

* Re: documents inside documents
  2013-06-25 22:07       ` Pablo Rodríguez
@ 2013-06-26  2:47         ` Wolfgang Schuster
  2013-06-26 17:16           ` Pablo Rodríguez
  0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2013-06-26  2:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 26.06.2013 um 00:07 schrieb Pablo Rodríguez <oinos@web.de>:

> On 25/06/13 23:28, Peter Münster wrote:
>> On Tue, Jun 25 2013, Pablo Rodríguez wrote:
>> 
>>>> http://www.ntg.nl/pipermail/ntg-context/2013/072963.html
>>> 
>>> I'm afraid I cannot get it working with the sample file I provided.
>> 
>> Hi,
>> 
>> Why not?
>> 
>> This works here:
> 
> Many thanks, Peter, it works also here.
> 
> One more question, the file belongs in the following code:
> 
> \startstandardmakeup[align=middle]
> \typesetfile[sample-document.tex][width=10cm, frame=on]
> \stopstandardmakeup
> 
> How can I get this horizontally centered It is vertically centered, and
> it should be also horizontally aligned, but I don't know why doesn't it
> work.

You need \dontleavehmode, i.e. \dontleavehmode\typesetfile[…].

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: documents inside documents
  2013-06-26  2:47         ` Wolfgang Schuster
@ 2013-06-26 17:16           ` Pablo Rodríguez
  2013-06-26 18:01             ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: Pablo Rodríguez @ 2013-06-26 17:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 26/06/13 04:47, Wolfgang Schuster wrote:
> Am 26.06.2013 um 00:07 schrieb Pablo Rodríguez <oinos@web.de>:
>> One more question, the file belongs in the following code:
>>
>> \startstandardmakeup[align=middle]
>> \typesetfile[sample-document.tex][width=10cm, frame=on]
>> \stopstandardmakeup
>>
>> How can I get this horizontally centered It is vertically centered, and
>> it should be also horizontally aligned, but I don't know why doesn't it
>> work.
> 
> You need \dontleavehmode, i.e. \dontleavehmode\typesetfile[…].

Many thanks for your reply, Wolfgang.

From what I understand, the command is basically telling ConTeXt: “don’t
make a new paragraph break after the inserted float”, isn‘t it?


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 12+ messages in thread

* Re: documents inside documents
  2013-06-25 19:31 documents inside documents Pablo Rodríguez
  2013-06-25 19:55 ` Wolfgang Schuster
@ 2013-06-26 17:56 ` Aditya Mahajan
  2013-06-26 18:18   ` Pablo Rodríguez
  1 sibling, 1 reply; 12+ messages in thread
From: Aditya Mahajan @ 2013-06-26 17:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2319 bytes --]

On Tue, 25 Jun 2013, Pablo Rodríguez wrote:

> Dear list,
>
> I need for a document explaining some ConTeXt features, to be able to
> include a document inside (a page that includes the feature).
>
> I know I can create another document and then insert the pages, but it
> would be much easier for me to be able to have the code inside the main
> the document.
>
> Is there a standard way to do it with ConTeXt?

Another option is to use the filter module (it takes care of caching and 
naming of temporary files, and you can specify an output directory for 
all auxillary files)

https://github.com/adityam/filter

\usemodule[filter]

\traceexternalfilters

\defineexternalfilter
   [CONTEXT]
   [
     output=\externalfilterbasefile.pdf,
     filter={context --batch --result=\externalfilteroutputfile \space},
     readcommand=\ShowPDF,
     cache=yes,
     bufferbefore={context:before},
     bufferafter={context:after},
   ]

\define[1]\ShowPDF
     {\midaligned{\externalfigure[#1][frame=on]}}

\startbuffer[context:before]
   \mainlanguage[en]
   \setuplanguage[en][patterns={en,agr}]
   \definepapersize[mine][width=6in,height=2in]
   \setuppapersize[mine]
   \usemodule[simplefonts]
   \setmainfont[Dejavu]
   \definelinenote[contxt]
   \setupnote[contxt][paragraph=yes, inbetween=\hskip1.5em]
   \setupnotation[contxt][numbercommand=,alternative=serried,distance=1em,compress=yes,compressseparator=]

   \starttext
\stopbuffer

\startbuffer[context:after]
   \stoptext
\stopbuffer

\starttext

\startCONTEXT
\startlinenumbering
οὐκ οἶσθ᾽\contxt{οἶσθ᾽: οἶσθα, 2nd sg.,
οἶσδα} ὅτι πολλῶν ἐτῶν\contxt{πολλῶν
ἐτῶν: for…; gen. time within} Ἀγάθων ἐνθάδε
οὐκ ἐπιδεδήμηκεν\contxt{ἐπιδεδήμηκεν: pf.
ἐπιδήμέω}, ἀφ᾽ οὗ\contxt{ἀφ᾽ οὗ: since;
“from which (time)”} δ᾽ ἐγὼ Σωκράτει
συνδιατρίβω\contxt{συνδιατρίβω: I have been
spending; pres. but pf. progressive in translation} καὶ
ἐπιμελὲς πεποίημαι\contxt{ἐπιμελὲς
πεποίημαι: I have made it my business; “have made it my
care,” pf.}
\stoplinenumbering
\stopCONTEXT

\stoptext

[-- 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] 12+ messages in thread

* Re: documents inside documents
  2013-06-26 17:16           ` Pablo Rodríguez
@ 2013-06-26 18:01             ` Wolfgang Schuster
  2013-06-26 18:20               ` Pablo Rodríguez
  0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2013-06-26 18:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 26.06.2013 um 19:16 schrieb Pablo Rodríguez <oinos@web.de>:

> On 26/06/13 04:47, Wolfgang Schuster wrote:
>> Am 26.06.2013 um 00:07 schrieb Pablo Rodríguez <oinos@web.de>:
>>> One more question, the file belongs in the following code:
>>> 
>>> \startstandardmakeup[align=middle]
>>> \typesetfile[sample-document.tex][width=10cm, frame=on]
>>> \stopstandardmakeup
>>> 
>>> How can I get this horizontally centered It is vertically centered, and
>>> it should be also horizontally aligned, but I don't know why doesn't it
>>> work.
>> 
>> You need \dontleavehmode, i.e. \dontleavehmode\typesetfile[…].
> 
> Many thanks for your reply, Wolfgang.
> 
> From what I understand, the command is basically telling ConTeXt: “don’t
> make a new paragraph break after the inserted float”, isn‘t it?

No, the command tells TeX to go into horizontal mode.

\starttext

\ruledvbox
  {\ruledhbox{One}
   \ruledhbox{Two}}

\ruledvbox
  {\dontleavehmode
   \ruledhbox{One}
   \ruledhbox{Two}}

\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: documents inside documents
  2013-06-26 17:56 ` Aditya Mahajan
@ 2013-06-26 18:18   ` Pablo Rodríguez
  0 siblings, 0 replies; 12+ messages in thread
From: Pablo Rodríguez @ 2013-06-26 18:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 26/06/13 19:56, Aditya Mahajan wrote:
> On Tue, 25 Jun 2013, Pablo Rodríguez wrote:
>> Dear list,
>>
>> I know I can create another document and then insert the pages, but it
>> would be much easier for me to be able to have the code inside the main
>> the document.
>>
>> Is there a standard way to do it with ConTeXt?
> 
> Another option is to use the filter module (it takes care of caching and 
> naming of temporary files, and you can specify an output directory for 
> all auxillary files)
> 
> https://github.com/adityam/filter

Many thanks, Aditya, for your reply.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 12+ messages in thread

* Re: documents inside documents
  2013-06-26 18:01             ` Wolfgang Schuster
@ 2013-06-26 18:20               ` Pablo Rodríguez
  0 siblings, 0 replies; 12+ messages in thread
From: Pablo Rodríguez @ 2013-06-26 18:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 26/06/13 20:01, Wolfgang Schuster wrote:
>>> You need \dontleavehmode, i.e. \dontleavehmode\typesetfile[…].
>>
>> Many thanks for your reply, Wolfgang.
>>
>> From what I understand, the command is basically telling ConTeXt: “don’t
>> make a new paragraph break after the inserted float”, isn‘t it?
> 
> No, the command tells TeX to go into horizontal mode.

Many thanks for your reply, Wolfgang.

I understand now what horizontal mode is.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 12+ messages in thread

end of thread, other threads:[~2013-06-26 18:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-25 19:31 documents inside documents Pablo Rodríguez
2013-06-25 19:55 ` Wolfgang Schuster
2013-06-25 20:25   ` Pablo Rodríguez
2013-06-25 20:59     ` Wolfgang Schuster
2013-06-25 21:28     ` Peter Münster
2013-06-25 22:07       ` Pablo Rodríguez
2013-06-26  2:47         ` Wolfgang Schuster
2013-06-26 17:16           ` Pablo Rodríguez
2013-06-26 18:01             ` Wolfgang Schuster
2013-06-26 18:20               ` Pablo Rodríguez
2013-06-26 17:56 ` Aditya Mahajan
2013-06-26 18:18   ` Pablo Rodríguez

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