Re: [XeTeX] Σχετ: Plain XeTeX, pdftitle, pdfinfo

2016-07-13 Thread Ross Moore

On Jul 11, 2016, at 7:59 PM, Zdenek Wagner 
> wrote:

Especially this one, it depends on a lot of files. I wanted to extract ideas 
how to build the XMP, how to include the ICC but I gave up.

XMP is done via a template file; e.g.  pdfx.xmp  or  pdfa.xmp .
There are many places where information can be supplied, via macros
such as  \xmp@Subject  and  \xmp@Author .
Much of the  pdfx  package is about supplying values for these, in UTF8 
encoding.


I know, writing XMP is easy, I do not know how to include it. I do not like to 
use hyperref for a document that will only be pronted and never will be online.

Using pdfTeX it is done like this in  pdfx.sty :

   \def\pdfx@numcoords{/N 4}% for CMYK colors
   \immediate\pdfobj stream attr{\pdfx@numcoords} file %
 {\pdfx@CMYKcolorprofiledir\pdfx@cmyk@profile}%
   \edef\OBJ@CMYK{\the\pdflastobj\space 0 R}%

Then that object reference in \OBJ@CMYK  is required for the  OutputIntent .
viz.

  \def\pdfx@outintent@dict{%
/Type/OutputIntent
/S/GTS_PDFX^^J
/OutputCondition (\pdfx@cmyk@intent)^^J
/OutputConditionIdentifier (\pdfx@cmyk@identifier)^^J
/Info(\pdfx@cmyk@intent)^^J
/RegistryName(\pdfx@cmyk@registry)
/DestOutputProfile \OBJ@CMYK
   }%

which is linked to the PDF Catalog via:

 \immediate\pdfobj{<<\pdfx@outintent@dict>>}%
  \edef\pdfx@outintents{[\the\pdflastobj\space 0 R]}%
 \def\pdfx@outcatalog@dict{%
  /ViewerPreferences <>
  /OutputIntents \pdfx@outintents % needs appropriate expansion
 }%
 \pdfcatalog{\pdfx@outcatalog@dict}%


Of course you need to supply all the information for the macros:
  \pdfx@cmyk@….
and  \pdfx@CMYKcolorprofiledir  (possibly empty).


Using XeTeX there is similar coding using  \special s,
including symbolic names for object references.
e.g.

\def\OBJ@CMYK{@colorprofile}%
\special{pdf:fstream @colorprofile %
  (\pdfx@CMYKcolorprofiledir\pdfx@cmyk@profile) <<\pdfx@numcoords >>}
   \def\pdfx@outintents{ @outintentsarray }%
   \def\pdfx@outintentref{ @outintent@dict }%
   \immediate\special{pdf:obj \pdfx@outintentref << \pdfx@outintent@dict >>}
   \immediate\special{pdf:obj \pdfx@outintents [ ]}%
   \immediate\special{pdf:put \pdfx@outintents \pdfx@outintent@dict}%

with \pdfcatalog defined appropriately:

 \def\pdfx@catalog@xetex#1{\special{pdf:put @catalog <<#1>>}}


You should be able to put all the pieces together now.

Cheers,

Ross


Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz


Dr Ross Moore

Mathematics Dept | Level 2, S2.638 AHH
Macquarie University, NSW 2109, Australia

T: +61 2 9850 8955  |  F: +61 2 9850 8114
M:+61 407 288 255  |  E: 
ross.mo...@mq.edu.au

http://www.maths.mq.edu.au


[cid:image001.png@01D030BE.D37A46F0]


CRICOS Provider Number 2J. Think before you print.
Please consider the environment before printing this email.

This message is intended for the addressee named and may
contain confidential information. If you are not the intended
recipient, please delete it and notify the sender. Views expressed
in this message are those of the individual sender, and are not
necessarily the views of Macquarie University.



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] [tex-live] Seemingly inexplicable shift in page origin between TL 2014 and TL 2016

2016-07-13 Thread Philip Taylor


Bruno Le Floch wrote:
> ! Undefined control sequence. l.29 \ifcropmarks ? 
Ah, yes, sorry about that Bruno.  I thought I had stripped out all external 
dependencies, but clearly I had not.  The "cropmarks.tex" is my own, written 
over 20 years ago for Kaveh and/or Dominik -- somewhere on CTAN, but I no 
longer remember where.  Anyhow, I have (sort of) tracked down the issue -- two 
things are affecting the displacements (both vertical /and/ horizontal, as it 
turned out) :

1) The PDF/X-1A specials;
2) The \usepackage {color} within an Eplain \beginpackages ... \endpackages 
sequence.

More research needed on my part to identify the exact cause in both cases.
** Phil.
-- 

Philip Taylor


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Seemingly inexplicable shift in page origin between TL 2014 and TL 2016

2016-07-13 Thread Bruno Le Floch
On 7/12/16, Philip Taylor  wrote:
> I have just installed TeX Live 2016 for the first time, using the "small"
> scheme and a couple of additional options, but I find when I try to
> re-generate /The Oral History of Horsmonden/ that the entire page image has
> been displaced vertically upwards by about 1 true in.  I append the code
> that does the necessary computation of dimensions, and wonder whether anyone
> can identify what has changed between the two releases.
>
> % !TeX Program=XeTeX
> % !TeX Root = Oral-History.TeX
>
> \magnification 1000
>
> \special {pdf: docview << /PageLayout /TwoPageRight >>}
> \special {pdf: docview << /OpenAction [0 /Fit] >>}
>
> \newdimen \innermargin
> \newdimen \outermargin
> \newdimen \uppermargin
> \newdimen \lowermargin
> \newdimen \cropwidth
> \newdimen \cropheight
> \newdimen \cropmark
> \newdimen \cropmitre
> \newdimen \Knuthoffset
>
> \innermargin = 0,618 true in
> \outermargin = 1,0 true in
> \uppermargin = \dimexpr (\innermargin + \outermargin) / 2 \relax
> \lowermargin = \uppermargin
> \Knuthoffset = 1 in
>
> \def \imagepath {}
>
> \hsize = 176 true mm
> \vsize = 250 true mm
> \ifcropmarks
> \pdfpagewidth = 210 true mm
> \pdfpageheight = 297 true mm
> \else
> \pdfpagewidth = \hsize
> \pdfpageheight = \vsize
> \fi
> \advance \hsize by -1.618 true in
> \advance \vsize by -1.618 true in
> \parindent = 0 pt
>
> \advance \hoffset by \dimexpr -0.382 true in / 2 \relax
> \advance \voffset by \dimexpr -0.382 true in / 2 \relax
>
> \ifcropmarks
> \advance \hoffset by \dimexpr (210 true mm - 176 true mm) / 2 \relax
> \advance \voffset by \dimexpr (297 true mm - 250 true mm) / 2 \relax
> \fi
>
> \ifcropmarks
> \input Cropmarks
> \rvcropmarkstrue
>
> \rectotopcropmark = \dimexpr 1.618 true in / 2 \relax plus 1 cm minus -1
> mm
> \rectobottomcropmark = \dimexpr 250 true mm - \rectotopcropmark \relax
> plus 1 cm minus -1 mm
> \rectoleftcropmark = 0,618 true in plus 1 cm minus -1 mm
> \rectorightcropmark = \dimexpr 176 true mm - \rectoleftcropmark  \relax
> plus 1 cm minus -1 mm
>
> \versotopcropmark = \rectotopcropmark
> \versobottomcropmark =\rectobottomcropmark
> \versoleftcropmark = 1,0 true in plus 1 cm minus -1 mm
> \versorightcropmark = \dimexpr 176 true mm - \versoleftcropmark  \relax
> plus 1 cm minus -1 mm
> \fi
>
> *\advance \voffset by 1 true in % REQUIRED ONLY F**OR **TL 2016*
>
> --
>
> Philip Taylor
>

! Undefined control sequence.
l.29 \ifcropmarks

?


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Σχετ: Plain XeTeX, pdftitle, pdfinfo

2016-07-13 Thread Philip Taylor
Hallo Zdeněk --
> It is strange, you should complain for poor connection. My ADSL speed
> is nominally 8 Mbps. Since the line is overloaded, the real speed is
> usually 6 Mbps. Installation of scheme full from the neares mirror
> takes about one hour. You wrote your speed is 2.7 Mbps, so it should
> complete withint two or three hours. The problem may be cause by loss
> of too many packets due to some noise. So you probably pay for very
> low quality and the provider should fix it. Many companies provide
> free service for measurement the real speed, you just connect to a web
> page of such a company and it measures the speed of download and
> upload and stability. If it is too different from what you pay, you
> should complain.
In fact, run against (e.g., the HTML 5 speed tester), I get quite good download 
speed normally, but TeX Live installation always takes forever.  I know from 
past experience that Rsynch is much faster, but that no longer works for TeX 
Live 2016 (reported a couple of days ago), so I have little option but to sit 
it out ...

Repost of Rsynch problem, in case anyone can shed light on it :

> E:\TeX\Live\2016\TLnet>rsync -a --delete 
> rsync://ftp.heanet.ie/mirrors/ctan.org/tex/systems/texlive/tlnet/ .
>
> (also rsync -a --delete 
> rsync://mirror.physik-pool.tu-berlin.de/ctan/systems/texlive/tlnet/ .)
>
> rsync: symlink "/e/TeX/Live/2016/TLnet/update-tlmgr-latest.exe" -> 
> "update-tlmgr-r41476.exe" failed: Bad file number (9)
> rsync: symlink "/e/TeX/Live/2016/TLnet/update-tlmgr-latest.exe.sha512" -> 
> "update-tlmgr-r41476.exe.sha512" failed: Bad file number (
> 9)
> rsync: symlink "/e/TeX/Live/2016/TLnet/update-tlmgr-latest.exe.sha512.asc" -> 
> "update-tlmgr-r41476.exe.sha512.asc" failed: Bad file
> number (9)
> rsync: symlink "/e/TeX/Live/2016/TLnet/update-tlmgr-latest.sh" -> 
> "update-tlmgr-r41476.sh" failed: Bad file number (9)
> rsync: symlink "/e/TeX/Live/2016/TLnet/update-tlmgr-latest.sh.sha512" -> 
> "update-tlmgr-r41476.sh.sha512" failed: Bad file number (9)
>
> rsync: symlink "/e/TeX/Live/2016/TLnet/update-tlmgr-latest.sh.sha512.asc" -> 
> "update-tlmgr-r41476.sh.sha512.asc" failed: Bad file nu
> mber (9)
> rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at 
> /usr/src/rsync/rsync-3.0.8/rsync.c(549) [generator=3.0.8]
>
> E:\TeX\Live\2016\TLnet>rsync error: received SIGUSR1 (code 19) at 
> /usr/src/rsync/rsync-3.0.8/main.c(1298) [receiver=3.0.8]
>
** Phil.
-- 

Philip Taylor


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Σχετ: Plain XeTeX, pdftitle, pdfinfo

2016-07-13 Thread Zdenek Wagner
It is strange, you should complain for poor connection. My ADSL speed
is nominally 8 Mbps. Since the line is overloaded, the real speed is
usually 6 Mbps. Installation of scheme full from the neares mirror
takes about one hour. You wrote your speed is 2.7 Mbps, so it should
complete withint two or three hours. The problem may be cause by loss
of too many packets due to some noise. So you probably pay for very
low quality and the provider should fix it. Many companies provide
free service for measurement the real speed, you just connect to a web
page of such a company and it measures the speed of download and
upload and stability. If it is too different from what you pay, you
should complain.

Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz


2016-07-13 9:49 GMT+02:00 Philip Taylor :
>
>
> Philip Taylor wrote:
>> Understood, Zdeněk -- that will be tonight's overnight run.
> Sadly I exaggerated; 10 hours later, still at 1983/2981 :-(
>
>
> --
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Σχετ: Plain XeTeX, pdftitle, pdfinfo

2016-07-13 Thread Philip Taylor


Philip Taylor wrote:
> Understood, Zdeněk -- that will be tonight's overnight run.  
Sadly I exaggerated; 10 hours later, still at 1983/2981 :-(


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex