From: Tobias Burnus <tobias.burnus@physik.fu-berlin.de>
Cc: NTG-ConTeXt <ntg-context@ntg.nl>
Subject: TeXExec patch
Date: Mon, 25 Aug 2003 11:59:21 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.44.0308251155210.8004-200000@g25.physik.fu-berlin.de> (raw)
[-- Attachment #1: Type: TEXT/PLAIN, Size: 372 bytes --]
Hi,
I played a bit around with --pdfarrange and found out that I couldn't do:
texexec --pdfarrange --paper=a5*a4,landscape --print='2UP,doublesided' file.pdf
Since: paper becomes [A5][A4,LANDSCAPE] and /.*2UP.*/ becomes
[2UP,doublesided,rotated] and I don't want to have it rotated.
The attached patch makes TeXExec a bit more flexiable.
Hans, please apply.
Tobias
[-- Attachment #2: Type: TEXT/plain, Size: 1275 bytes --]
--- /tmp/foo/texexec.pl Thu Aug 7 00:00:00 2003
+++ context/perltk/texexec.pl Mon Aug 25 11:47:58 2003
@@ -1135,7 +1135,7 @@
{ print OPT "\\setuppapersize[A5][A4]\n" }
elsif (!/standard/)
{ s/x/\*/io ;
- if (/\w+\d+/) { $_ = uc $_ }
+ $_ =~ s/(\w+\d+)/\u$1\E/g;
my ($from,$to) = split (/\*/) ;
if ($to eq "") { $to = $from }
print OPT "\\setuppapersize[$from][$to]\n" } }
@@ -1156,11 +1156,11 @@
{$DupStr = ",\\v!dubbelzijdig" }
if ($PrintFormat == '')
{ print OPT "\\setuparranging[\\v!normaal]\n" }
- elsif ($PrintFormat =~ /.*up/goi)
+ elsif ($PrintFormat =~ /^\dup$/goi)
{ print OPT "\\setuparranging[2UP,\\v!geroteerd$DupStr]\n" }
- elsif ($PrintFormat =~ /.*down/goi)
+ elsif ($PrintFormat =~ /^\ddown$/goi)
{ print OPT "\\setuparranging[2DOWN,\\v!geroteerd$DupStr]\n" }
- elsif ($PrintFormat =~ /.*side/goi)
+ elsif ($PrintFormat =~ /^\dside$/goi)
{ print OPT "\\setuparranging[2SIDE,\\v!geroteerd$DupStr]\n" }
else
{ print OPT "\\setuparranging[$PrintFormat]\n" } }
reply other threads:[~2003-08-25 9:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=Pine.LNX.4.44.0308251155210.8004-200000@g25.physik.fu-berlin.de \
--to=tobias.burnus@physik.fu-berlin.de \
--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).