Reputation
Top tag
Next privilege 75 Rep.
Set bounties
Badges
6
Impact
~5k people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
May
20
awarded  Autobiographer
May
18
comment Which internal TeX macro stores the MediaBox string, and how can I read it?
@egreg That's possible. My openSuSe 13.2 package manager says the kernel is 2013.84-svn4469svn29409-16.1.7. I realize that I might be able to get newer stuff via direct TexLive, but I won't do that: My efforts are directed to writers who cannot write (much) code and would simply follow no-brainer instructions from the easiest sources, whether on Linux or via Miktex. Again, I get code via prayers to Cargo.
May
18
comment Which internal TeX macro stores the MediaBox string, and how can I read it?
Oh: When I used the answer code, I had to remove \dim_to_decimal_in_bp:n and use the multiplier 0.99626401 in front of argument #1 there. Don't know why my setup did not grasp the \dim code. Also, I added \pdfcompresslevel=0 sothat I could read the result in an editor. Indeed, the MediaBox (tested with a4paper) is exactly the result described. I tried a few random non-standard sizes, and all came out correct. Now, when A4 PDF is exported from LibreOffice, it rounds to integers 595 and 842. Scribus does not round, showing to hundredths precision (with added zeroes to make 5 decimal digits).
May
18
comment Which internal TeX macro stores the MediaBox string, and how can I read it?
"PDF has a stange way to..." No kidding! I am busy writing an improved package for PDF/X. Existing pdfx cannot do it. Mine requires pdflatex, so full microtype can be used. Intent is US (and Western European) novelists (not mathematicians) who want POD with SWOP output intent, bleed, trim, etc. I am at the debugging stage, using Acrobat Pro. One possible bug would be if calculated TrimBox exceeded TeX MediaBox, due to roundoff error.
May
17
awarded  Scholar
May
17
awarded  Supporter
May
17
accepted Which internal TeX macro stores the MediaBox string, and how can I read it?
May
17
comment Which internal TeX macro stores the MediaBox string, and how can I read it?
Gotcha. I was misled by a Google search result, which said: "In PostScript, its dimensions [A4 paper] are rounded off to 595 × 842 points." Thought that might cause calculations to fail. As long as TrimBox does not exceed MediaBox, all is well. Doesn't matter if TrimBox is a fraction of a point smaller.
May
17
awarded  Student
May
17
asked Which internal TeX macro stores the MediaBox string, and how can I read it?
May
7
awarded  Teacher
May
7
revised MiKTeX 2.9 Package Manager and Updater crash - problem with repositories?
Follow-up
May
7
answered MiKTeX 2.9 Package Manager and Updater crash - problem with repositories?
May
7
awarded  Editor
May
7
revised MiKTeX 2.9 portable issue
added 3 characters in body
May
7
answered MiKTeX 2.9 portable issue