Skip to content

Last line on title page breaks xelatex #72

@timsueberkrueb

Description

@timsueberkrueb

To reproduce, make the following minimal changes to the template:

Details
diff --git a/example-programming.tex b/example-programming.tex
index 82d272b..56f9dd9 100644
--- a/example-programming.tex
+++ b/example-programming.tex
@@ -1,6 +1,6 @@
 % -*- coding: utf-8; -*-
 % vim: set fileencoding=utf-8 :
-\documentclass[english,submission]{programming}
+\documentclass[english]{programming}
 %% First parameter: the language is 'english'.
 %% Second parameter: use 'submission' for initial submission, remove it for camera-ready (see 5.1)
 
@@ -39,6 +39,12 @@
 %%%%%%%%%%%%%%%%%%
 %% These data MUST be filled for your submission. (see 5.3)
 \paperdetails{
+  submitted=1970-01-01,
+  published=1970-01-01,
+  year=1970,
+  volume=10,
+  issue=1,
+  articlenumber=10,
   %% perspective options are: art, sciencetheoretical, scienceempirical, engineering.
   %% Choose exactly the one that best describes this work. (see 2.1)
   perspective=art,
diff --git a/latexmkrc b/latexmkrc
new file mode 100644
index 0000000..1e19115
--- /dev/null
+++ b/latexmkrc
@@ -0,0 +1 @@
+$pdf_mode = 1;

Rendering the PDF with latexmk using pdflatex, I receive the following output:

Image

I added the gray bars to the screenshot to give some visual reference on the horizontal position. They do not indicate the page boundaries! Notice how the last line on the title page is very close to the page boundaries.

Now, switch the PDF engine to xelatex.

Details
diff --git a/example-programming.tex b/example-programming.tex
index 82d272b..56f9dd9 100644
--- a/example-programming.tex
+++ b/example-programming.tex
@@ -1,6 +1,6 @@
 % -*- coding: utf-8; -*-
 % vim: set fileencoding=utf-8 :
-\documentclass[english,submission]{programming}
+\documentclass[english]{programming}
 %% First parameter: the language is 'english'.
 %% Second parameter: use 'submission' for initial submission, remove it for camera-ready (see 5.1)
 
@@ -39,6 +39,12 @@
 %%%%%%%%%%%%%%%%%%
 %% These data MUST be filled for your submission. (see 5.3)
 \paperdetails{
+  submitted=1970-01-01,
+  published=1970-01-01,
+  year=1970,
+  volume=10,
+  issue=1,
+  articlenumber=10,
   %% perspective options are: art, sciencetheoretical, scienceempirical, engineering.
   %% Choose exactly the one that best describes this work. (see 2.1)
   perspective=art,
diff --git a/latexmkrc b/latexmkrc
new file mode 100644
index 0000000..1e19115
--- /dev/null
+++ b/latexmkrc
@@ -0,0 +1 @@
+$pdf_mode = 5;

The result is the following broken title page:

Image

Note that decreasing the page or volume number to single digits fixes the issue. It seems like there is some tiny difference in spacing behavior in xelatex that makes this line no longer fit within the boundaries. You can reproduce the same issue with pdflatex by increasing the volume number to 3 digits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions