ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: Re: Django: using ConTeXT mkiv to output PDF
Date: Sun, 28 Jan 2018 18:59:59 +0100	[thread overview]
Message-ID: <89e77952-638d-25e4-954b-b76509592336@gmx.es> (raw)
In-Reply-To: <CAL7_PC7nT0zXsZpkntnvmrtxQSDbQmePGWOb8PGm7xXsfZDF4A@mail.gmail.com>

On 01/26/2018 07:41 PM, kaddour kardio wrote:
> [...]
> i tried this without success :(
> the only workaround u've found for now is to render a tex file and
> copile it manually.

I don’t know how to invoke ConTeXt using Django, but to create booklets
with my favourite text editor (Geany, https://geany.org/).

While --result could handle path in it, my command to create booklets was:

contextjit --purgeall --path="%d" --arguments=filename=%e.pdf
--result=/home/ousia/"%e-2UP.pdf" /home/ousia/A5-to-A4_landscape-booklet.tex

"%d" and %e" stand for directory and file name without extension.

After --path was introduced (or it was mandatory to use it, since
--result cannot handle path in it), my command reads:

cd && contextjit --purgeall --path="%d" --arguments=filename=%d/%e.pdf
--result="%e-2UP.pdf" /home/ousia/A5-to-A4_landscape-booklet.tex

I wonder whether my previous comment might help you to improve your
ConTeXt in Django.

Best wishes,

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2018-01-28 17:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24 14:15 kaddour kardio
2018-01-25 10:47 ` Henning Hraban Ramm
2018-01-25 13:58   ` kaddour kardio
2018-01-25 14:19     ` Hans Hagen
2018-01-26 18:41       ` kaddour kardio
2018-01-27 10:18         ` Hans Hagen
2018-01-28 17:59         ` Pablo Rodriguez [this message]
2018-01-28 23:33           ` kaddour kardio
2018-02-02 12:22             ` kaddour kardio
2018-02-02 12:49               ` Hans Hagen

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=89e77952-638d-25e4-954b-b76509592336@gmx.es \
    --to=oinos@gmx.es \
    --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).