On 17/11/2021 11:04, Marcel Fabian Krüger wrote:

Looking at the code again I realized that the quotes actually *do* make
a difference: If the name is quoted XeTeX will first look for a system
font and use a TFM font only if no system font is found, if the name is
not quoted it will forst look for a TFM font.

If you want a IMO clearer syntax, you can use LuaTeX with luaotfload.
There we still emulate the XeTeX like syntax, but additionally allow you
explicitly state how the font should be looked up, e.g.

\font \cmr {name:cmr10} \cmr % Untested, LuaTeX with luaotfload only.
                            % Quotes would work too.
                            % So would omitting both in this case.

Sadly failed at first hurdle :  \input luaotfload -> "I can't find file 
'luaotfload'".

Ignoring that, zillions of other errors which do not occur when using XeTeX 
(see attachments).  To the best of your belief, is there a standard LuaTeX file 
which can be input that will then cause LuaTeX to faithfully emulate the 
behaviour of XeTeX ?  I ask because all of my work is predicated on the use of 
XeTeX and the assumption that it can exploit any and all of XeTeX's documented 
features.

Well, if the same happens in luaotfload please write a bug report. If
you want someone to tell you that XeTeX's font lookup rules are nice,
consistent or intuitive you are talking with the wrong person...

Fair enough !
--
** Phil.

This email, its contents and any attachments are intended solely for the 
addressee and may contain confidential information. In certain circumstances, 
it may also be subject to legal privilege. Any unauthorised use, disclosure, or 
copying is not permitted. If you have received this email in error, please 
notify us and immediately and permanently delete it. Any views or opinions 
expressed in personal emails are solely those of the author and do not 
necessarily represent those of Royal Holloway, University of London. It is your 
responsibility to ensure that this email and any attachments are virus free.
This is LuaTeX, Version 1.13.2 (TeX Live 2021/W32TeX) 
 restricted system commands enabled.
("./Hoi-An main menu (combine pages, A3, unfolded, online).tex"
! I can't find file `luaotfload'.
l.3 \input luaotfload
                   
(Press Enter to retry, or Control-Z to exit)
Please type another input file name: s
(c:/TeX/Live/2021/texmf-dist/tex/latex/tools/s.tex File ignored
) ("./Hoi-An main menu (combine pages, A3, common).tex"
XeTeX "Hoi-An Main menu (separate pages).tex"
! Undefined control sequence.
l.62 \pdfpageheight
                  = \vsize
! Undefined control sequence.
l.63 \pdfpagewidth
                 = \hsize
! Font \Allergens=TeX Gyre Heros Bold Italic:color=FF0000 at 8.44814pt not load
able: metric data not found or bad.
l.72 ...Bold Italic:color=FF0000" at 82.5 \rootdimen
                                                  
! Font \allergens=TeX Gyre Heros Italic:color=FF0000 at 8.70415pt not loadable:
 metric data not found or bad.
l.73 ... Heros Italic:color=FF0000" at 85 \rootdimen
                                                  
! Font \introfont=Calibri at 11.8786pt not loadable: metric data not found or b
ad.
l.78 \font \introfont = "Calibri" at 116 \rootdimen
                                                 
! Undefined control sequence.
l.82 \setbox 1 = \vbox {\XeTeXpdffile
                                    \source page 1 width \dimexpr \hsize / 4...

! You can't use `\dimexpr' in horizontal mode.
l.82 ...{\XeTeXpdffile \source page 1 width \dimexpr
                                                   \hsize / 4 - \tuckloss - ...

! Missing number, treated as zero.
<to be read again> 
/
l.82 ...ffile \source page 1 width \dimexpr \hsize /
                                                   4 - \tuckloss - 0,666 \ru...

! Illegal unit of measure (pt inserted).
<to be read again> 
/
l.82 ...ffile \source page 1 width \dimexpr \hsize /
                                                   4 - \tuckloss - 0,666 \ru...


Overfull \hbox (43.61116pt too wide) in paragraph at lines 82--82
[]\tenrm "Hoi-|

Overfull \hbox (13.05559pt too wide) in paragraph at lines 82--82
\tenrm An|

Overfull \hbox (21.66673pt too wide) in paragraph at lines 82--82
\tenrm main|

Overfull \hbox (23.61116pt too wide) in paragraph at lines 82--82
\tenrm menu|

Overfull \hbox (21.16669pt too wide) in paragraph at lines 82--82
\tenrm (sep-|

Overfull \hbox (8.33334pt too wide) in paragraph at lines 82--82
\tenrm a-|

Overfull \hbox (17.25003pt too wide) in paragraph at lines 82--82
\tenrm rate|

Overfull \hbox (50.0557pt too wide) in paragraph at lines 82--82
\tenrm pages).pdf"|

Overfull \hbox (20.00005pt too wide) in paragraph at lines 82--82
\tenrm page|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 82--82
\tenrm 1|

Overfull \hbox (25.00006pt too wide) in paragraph at lines 82--82
\tenrm width|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 82--82
\tenrm /|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 82--82
\tenrm 4|

Overfull \hbox (3.33333pt too wide) in paragraph at lines 82--82
\tenrm - |
! Undefined control sequence.
l.83 \setbox 2 = \vbox {\XeTeXpdffile
                                    \source page 2 width \dimexpr \hsize / 4...

! You can't use `\dimexpr' in horizontal mode.
l.83 ...{\XeTeXpdffile \source page 2 width \dimexpr
                                                   \hsize / 4 - 0,666 \rulew...

! Missing number, treated as zero.
<to be read again> 
/
l.83 ...ffile \source page 2 width \dimexpr \hsize /
                                                   4 - 0,666 \rulewidth \rel...

! Illegal unit of measure (pt inserted).
<to be read again> 
/
l.83 ...ffile \source page 2 width \dimexpr \hsize /
                                                   4 - 0,666 \rulewidth \rel...

! Missing number, treated as zero.
<to be read again> 
\relax 
l.83 ...dimexpr \hsize / 4 - 0,666 \rulewidth \relax
                                                  }\relax
! Illegal unit of measure (pt inserted).
<to be read again> 
\relax 
l.83 ...dimexpr \hsize / 4 - 0,666 \rulewidth \relax
                                                  }\relax

Overfull \hbox (43.61116pt too wide) in paragraph at lines 83--83
[]\tenrm "Hoi-|

Overfull \hbox (13.05559pt too wide) in paragraph at lines 83--83
\tenrm An|

Overfull \hbox (21.66673pt too wide) in paragraph at lines 83--83
\tenrm main|

Overfull \hbox (23.61116pt too wide) in paragraph at lines 83--83
\tenrm menu|

Overfull \hbox (21.16669pt too wide) in paragraph at lines 83--83
\tenrm (sep-|

Overfull \hbox (8.33334pt too wide) in paragraph at lines 83--83
\tenrm a-|

Overfull \hbox (17.25003pt too wide) in paragraph at lines 83--83
\tenrm rate|

Overfull \hbox (50.0557pt too wide) in paragraph at lines 83--83
\tenrm pages).pdf"|

Overfull \hbox (20.00005pt too wide) in paragraph at lines 83--83
\tenrm page|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 83--83
\tenrm 2|

Overfull \hbox (25.00006pt too wide) in paragraph at lines 83--83
\tenrm width|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 83--83
\tenrm /|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 83--83
\tenrm 4|

Overfull \hbox (3.33333pt too wide) in paragraph at lines 83--83
\tenrm -|

Overfull \hbox (22.77785pt too wide) in paragraph at lines 83--83
\tenrm 0,666 |
! Undefined control sequence.
l.84 \setbox 3 = \vbox {\XeTeXpdffile
                                    \source page 3 width \dimexpr \hsize / 4...

! You can't use `\dimexpr' in horizontal mode.
l.84 ...{\XeTeXpdffile \source page 3 width \dimexpr
                                                   \hsize / 4 - 0,666 \rulew...

! Missing number, treated as zero.
<to be read again> 
/
l.84 ...ffile \source page 3 width \dimexpr \hsize /
                                                   4 - 0,666 \rulewidth \rel...

! Illegal unit of measure (pt inserted).
<to be read again> 
/
l.84 ...ffile \source page 3 width \dimexpr \hsize /
                                                   4 - 0,666 \rulewidth \rel...

! Missing number, treated as zero.
<to be read again> 
\relax 
l.84 ...dimexpr \hsize / 4 - 0,666 \rulewidth \relax
                                                  }\relax
! Illegal unit of measure (pt inserted).
<to be read again> 
\relax 
l.84 ...dimexpr \hsize / 4 - 0,666 \rulewidth \relax
                                                  }\relax

Overfull \hbox (43.61116pt too wide) in paragraph at lines 84--84
[]\tenrm "Hoi-|

Overfull \hbox (13.05559pt too wide) in paragraph at lines 84--84
\tenrm An|

Overfull \hbox (21.66673pt too wide) in paragraph at lines 84--84
\tenrm main|

Overfull \hbox (23.61116pt too wide) in paragraph at lines 84--84
\tenrm menu|

Overfull \hbox (21.16669pt too wide) in paragraph at lines 84--84
\tenrm (sep-|

Overfull \hbox (8.33334pt too wide) in paragraph at lines 84--84
\tenrm a-|

Overfull \hbox (17.25003pt too wide) in paragraph at lines 84--84
\tenrm rate|

Overfull \hbox (50.0557pt too wide) in paragraph at lines 84--84
\tenrm pages).pdf"|

Overfull \hbox (20.00005pt too wide) in paragraph at lines 84--84
\tenrm page|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 84--84
\tenrm 3|

Overfull \hbox (25.00006pt too wide) in paragraph at lines 84--84
\tenrm width|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 84--84
\tenrm /|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 84--84
\tenrm 4|

Overfull \hbox (3.33333pt too wide) in paragraph at lines 84--84
\tenrm -|

Overfull \hbox (22.77785pt too wide) in paragraph at lines 84--84
\tenrm 0,666 |
! Undefined control sequence.
l.85 \setbox 4 = \vbox {\XeTeXpdffile
                                    \source page 4 width \dimexpr \hsize / 4...

! You can't use `\dimexpr' in horizontal mode.
l.85 ...{\XeTeXpdffile \source page 4 width \dimexpr
                                                   \hsize / 4 - \tuckloss \r...

! Missing number, treated as zero.
<to be read again> 
/
l.85 ...ffile \source page 4 width \dimexpr \hsize /
                                                   4 - \tuckloss \relax}\relax
! Illegal unit of measure (pt inserted).
<to be read again> 
/
l.85 ...ffile \source page 4 width \dimexpr \hsize /
                                                   4 - \tuckloss \relax}\relax
! Missing number, treated as zero.
<to be read again> 
\relax 
l.85 ...width \dimexpr \hsize / 4 - \tuckloss \relax
                                                  }\relax
! Illegal unit of measure (pt inserted).
<to be read again> 
\relax 
l.85 ...width \dimexpr \hsize / 4 - \tuckloss \relax
                                                  }\relax

Overfull \hbox (43.61116pt too wide) in paragraph at lines 85--85
[]\tenrm "Hoi-|

Overfull \hbox (13.05559pt too wide) in paragraph at lines 85--85
\tenrm An|

Overfull \hbox (21.66673pt too wide) in paragraph at lines 85--85
\tenrm main|

Overfull \hbox (23.61116pt too wide) in paragraph at lines 85--85
\tenrm menu|

Overfull \hbox (21.16669pt too wide) in paragraph at lines 85--85
\tenrm (sep-|

Overfull \hbox (8.33334pt too wide) in paragraph at lines 85--85
\tenrm a-|

Overfull \hbox (17.25003pt too wide) in paragraph at lines 85--85
\tenrm rate|

Overfull \hbox (50.0557pt too wide) in paragraph at lines 85--85
\tenrm pages).pdf"|

Overfull \hbox (20.00005pt too wide) in paragraph at lines 85--85
\tenrm page|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 85--85
\tenrm 4|

Overfull \hbox (25.00006pt too wide) in paragraph at lines 85--85
\tenrm width|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 85--85
\tenrm /|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 85--85
\tenrm 4|

Overfull \hbox (3.33333pt too wide) in paragraph at lines 85--85
\tenrm - |
! Font \Algerian=Algerian:color=381808 at 66.3563pt not loadable: metric data n
ot found or bad.
l.87 ...numexpr 7000 * 925 / 10000 \relax \rootdimen
                                                  
! Font \algerian=Algerian:color=381808 at 54.9897pt not loadable: metric data n
ot found or bad.
l.88 ...numexpr 5800 * 925 / 10000 \relax \rootdimen
                                                  
! Font \SmallAlgerian=Algerian/I:color=381808;slant=0.2 at 33.1782pt not loadab
le: metric data not found or bad.
l.90 ...numexpr 3500 * 925 / 10000 \relax \rootdimen
                                                  
! Font \smallalgerian=Algerian/I:color=381808;slant=0.2 at 23.6548pt not loadab
le: metric data not found or bad.
l.91 ...numexpr 2500 * 925 / 10000 \relax \rootdimen
                                                  
! Font \SmallAlgerian=Algerian/I:color=381808;slant=0.2 at 20.7876pt not loadab
le: metric data not found or bad.
l.93 ...numexpr 2190 * 925 / 10000 \relax \rootdimen
                                                  
! Font \smallalgerian=Algerian/I:color=381808;slant=0.2 at 20.7876pt not loadab
le: metric data not found or bad.
l.94 ...numexpr 2190 * 925 / 10000 \relax \rootdimen
                                                  
! Undefined control sequence.
l.101 \setbox 0 = \hbox {\XeTeXpicfile
                                     "\groundleft" width 0,5 \hsize height \...

! Missing number, treated as zero.
<to be read again> 
h
l.101 ...TeXpicfile "\groundleft" width 0,5 \hsize h
                                                  eight \vsize}
! Illegal unit of measure (pt inserted).
<to be read again> 
h
l.101 ...TeXpicfile "\groundleft" width 0,5 \hsize h
                                                  eight \vsize}
! Missing number, treated as zero.
<to be read again> 
}
l.101 ...groundleft" width 0,5 \hsize height \vsize}
                                                  
! Illegal unit of measure (pt inserted).
<to be read again> 
}
l.101 ...groundleft" width 0,5 \hsize height \vsize}
                                                  
! Undefined control sequence.
l.102 \setbox 0 = \hbox {\box 0 \XeTeXpicfile
                                            "\groundright" width 0,5 \hsize ...

! Missing number, treated as zero.
<to be read again> 
h
l.102 ...eXpicfile "\groundright" width 0,5 \hsize h
                                                  eight \vsize}
! Illegal unit of measure (pt inserted).
<to be read again> 
h
l.102 ...eXpicfile "\groundright" width 0,5 \hsize h
                                                  eight \vsize}
! Missing number, treated as zero.
<to be read again> 
}
l.102 ...roundright" width 0,5 \hsize height \vsize}
                                                  
! Illegal unit of measure (pt inserted).
<to be read again> 
}
l.102 ...roundright" width 0,5 \hsize height \vsize}
                                                  
! Undefined control sequence.
l.118 \setbox 1 = \vbox {\XeTeXpdffile
                                     \source page 1 height 0,88 \vsize width...

! Missing number, treated as zero.
<to be read again> 
w
l.118 ...pdffile \source page 1 height 0,88 \vsize w
                                                  idth \dimexpr \hsize / 4 -...

! Illegal unit of measure (pt inserted).
<to be read again> 
w
l.118 ...pdffile \source page 1 height 0,88 \vsize w
                                                  idth \dimexpr \hsize / 4 -...

! You can't use `\dimexpr' in horizontal mode.
l.118 ...ce page 1 height 0,88 \vsize width \dimexpr
                                                   \hsize / 4 - \tuckloss - ...

! Missing number, treated as zero.
<to be read again> 
/
l.118 ... height 0,88 \vsize width \dimexpr \hsize /
                                                   4 - \tuckloss - 0,666 \ru...

! Illegal unit of measure (pt inserted).
<to be read again> 
/
l.118 ... height 0,88 \vsize width \dimexpr \hsize /
                                                   4 - \tuckloss - 0,666 \ru...


Overfull \hbox (43.61116pt too wide) in paragraph at lines 118--118
[]\tenrm "Hoi-|

Overfull \hbox (13.05559pt too wide) in paragraph at lines 118--118
\tenrm An|

Overfull \hbox (12.77779pt too wide) in paragraph at lines 118--118
\tenrm ve-|

Overfull \hbox (15.5556pt too wide) in paragraph at lines 118--118
\tenrm gan|

Overfull \hbox (23.61116pt too wide) in paragraph at lines 118--118
\tenrm menu|

Overfull \hbox (21.16669pt too wide) in paragraph at lines 118--118
\tenrm (sep-|

Overfull \hbox (8.33334pt too wide) in paragraph at lines 118--118
\tenrm a-|

Overfull \hbox (17.25003pt too wide) in paragraph at lines 118--118
\tenrm rate|

Overfull \hbox (50.0557pt too wide) in paragraph at lines 118--118
\tenrm pages).pdf"|

Overfull \hbox (20.00005pt too wide) in paragraph at lines 118--118
\tenrm page|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 118--118
\tenrm 1|

Overfull \hbox (26.9445pt too wide) in paragraph at lines 118--118
\tenrm height|

Overfull \hbox (17.77783pt too wide) in paragraph at lines 118--118
\tenrm 0,88|

Overfull \hbox (25.00006pt too wide) in paragraph at lines 118--118
\tenrm width|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 118--118
\tenrm /|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 118--118
\tenrm 4|

Overfull \hbox (3.33333pt too wide) in paragraph at lines 118--118
\tenrm - |
! Undefined control sequence.
l.119 \setbox 2 = \vbox {\XeTeXpdffile
                                     \source page 2 height 0,88 \vsize width...

! Missing number, treated as zero.
<to be read again> 
w
l.119 ...pdffile \source page 2 height 0,88 \vsize w
                                                  idth \dimexpr \hsize / 4 -...

! Illegal unit of measure (pt inserted).
<to be read again> 
w
l.119 ...pdffile \source page 2 height 0,88 \vsize w
                                                  idth \dimexpr \hsize / 4 -...

! You can't use `\dimexpr' in horizontal mode.
l.119 ...ce page 2 height 0,88 \vsize width \dimexpr
                                                   \hsize / 4 - 0,666 \rulew...

! Missing number, treated as zero.
<to be read again> 
/
l.119 ... height 0,88 \vsize width \dimexpr \hsize /
                                                   4 - 0,666 \rulewidth \rel...

! Illegal unit of measure (pt inserted).
<to be read again> 
/
l.119 ... height 0,88 \vsize width \dimexpr \hsize /
                                                   4 - 0,666 \rulewidth \rel...

! Missing number, treated as zero.
<to be read again> 
\relax 
l.119 ...imexpr \hsize / 4 - 0,666 \rulewidth \relax
                                                  }\relax
! Illegal unit of measure (pt inserted).
<to be read again> 
\relax 
l.119 ...imexpr \hsize / 4 - 0,666 \rulewidth \relax
                                                  }\relax

Overfull \hbox (43.61116pt too wide) in paragraph at lines 119--119
[]\tenrm "Hoi-|

Overfull \hbox (13.05559pt too wide) in paragraph at lines 119--119
\tenrm An|

Overfull \hbox (12.77779pt too wide) in paragraph at lines 119--119
\tenrm ve-|

Overfull \hbox (15.5556pt too wide) in paragraph at lines 119--119
\tenrm gan|

Overfull \hbox (23.61116pt too wide) in paragraph at lines 119--119
\tenrm menu|

Overfull \hbox (21.16669pt too wide) in paragraph at lines 119--119
\tenrm (sep-|

Overfull \hbox (8.33334pt too wide) in paragraph at lines 119--119
\tenrm a-|

Overfull \hbox (17.25003pt too wide) in paragraph at lines 119--119
\tenrm rate|

Overfull \hbox (50.0557pt too wide) in paragraph at lines 119--119
\tenrm pages).pdf"|

Overfull \hbox (20.00005pt too wide) in paragraph at lines 119--119
\tenrm page|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 119--119
\tenrm 2|

Overfull \hbox (26.9445pt too wide) in paragraph at lines 119--119
\tenrm height|

Overfull \hbox (17.77783pt too wide) in paragraph at lines 119--119
\tenrm 0,88|

Overfull \hbox (25.00006pt too wide) in paragraph at lines 119--119
\tenrm width|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 119--119
\tenrm /|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 119--119
\tenrm 4|

Overfull \hbox (3.33333pt too wide) in paragraph at lines 119--119
\tenrm -|

Overfull \hbox (22.77785pt too wide) in paragraph at lines 119--119
\tenrm 0,666 |
! Font \white=Calibri:color=FEFEFE scaled 1732 not loadable: metric data not fo
und or bad.
l.149 ...\white = "Calibri":color=FEFEFE scaled 1732
                                                  
! Undefined control sequence.
\cover ->\XeTeXpicfile 
                       \coversource .jpg 
l.188 \setbox 4 = \vbox {\cover
                              width \dimexpr \hsize / 2 - 0,666 \rulewidth h...

! You can't use `\dimexpr' in horizontal mode.
l.188 \setbox 4 = \vbox {\cover width \dimexpr
                                             \hsize / 2 - 0,666 \rulewidth h...

! Missing number, treated as zero.
<to be read again> 
/
l.188 ...x 4 = \vbox {\cover width \dimexpr \hsize /
                                                   2 - 0,666 \rulewidth heig...

! Illegal unit of measure (pt inserted).
<to be read again> 
/
l.188 ...x 4 = \vbox {\cover width \dimexpr \hsize /
                                                   2 - 0,666 \rulewidth heig...

! Missing number, treated as zero.
<to be read again> 
h
l.188 ...th \dimexpr \hsize / 2 - 0,666 \rulewidth h
                                                  eight \vsize}\relax
! Illegal unit of measure (pt inserted).
<to be read again> 
h
l.188 ...th \dimexpr \hsize / 2 - 0,666 \rulewidth h
                                                  eight \vsize}\relax
! Missing number, treated as zero.
<to be read again> 
}
l.188 ...hsize / 2 - 0,666 \rulewidth height \vsize}
                                                  \relax
! Illegal unit of measure (pt inserted).
<to be read again> 
}
l.188 ...hsize / 2 - 0,666 \rulewidth height \vsize}
                                                  \relax

Overfull \hbox (69.88902pt too wide) in paragraph at lines 188--188
[]\tenrm "../../Front|

Overfull \hbox (22.5278pt too wide) in paragraph at lines 188--188
\tenrm cover|

Overfull \hbox (31.66673pt too wide) in paragraph at lines 188--188
\tenrm (metal-|

Overfull \hbox (10.00002pt too wide) in paragraph at lines 188--188
\tenrm lic|

Overfull \hbox (18.61115pt too wide) in paragraph at lines 188--188
\tenrm Hoi-|

Overfull \hbox (38.33345pt too wide) in paragraph at lines 188--188
\tenrm An)".jpg|

Overfull \hbox (25.00006pt too wide) in paragraph at lines 188--188
\tenrm width|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 188--188
\tenrm /|

Overfull \hbox (5.00002pt too wide) in paragraph at lines 188--188
\tenrm 2|

Overfull \hbox (3.33333pt too wide) in paragraph at lines 188--188
\tenrm -|

Overfull \hbox (22.77785pt too wide) in paragraph at lines 188--188
\tenrm 0,666|

Overfull \hbox (26.9445pt too wide) in paragraph at lines 188--188
\tenrm height |
! Undefined control sequence.
l.191 \setbox 0 = \hbox {\XeTeXpicfile
                                     "\groundright" width 0,5 \hsize height ...

! Missing number, treated as zero.
<to be read again> 
h
l.191 ...eXpicfile "\groundright" width 0,5 \hsize h
                                                  eight \vsize}
! Illegal unit of measure (pt inserted).
<to be read again> 
h
l.191 ...eXpicfile "\groundright" width 0,5 \hsize h
                                                  eight \vsize}
! Missing number, treated as zero.
<to be read again> 
}
l.191 ...roundright" width 0,5 \hsize height \vsize}
                                                  
! Illegal unit of measure (pt inserted).
<to be read again> 
}
l.191 ...roundright" width 0,5 \hsize height \vsize}
                                                  
! Undefined control sequence.
l.192 \setbox 0 = \hbox {\box 0 \XeTeXpicfile
                                            "\groundleft" width 0,5 \hsize h...

! Missing number, treated as zero.
<to be read again> 
h
l.192 ...TeXpicfile "\groundleft" width 0,5 \hsize h
                                                  eight \vsize}
! Illegal unit of measure (pt inserted).
<to be read again> 
h
l.192 ...TeXpicfile "\groundleft" width 0,5 \hsize h
                                                  eight \vsize}
! Missing number, treated as zero.
<to be read again> 
}
l.192 ...groundleft" width 0,5 \hsize height \vsize}
                                                  
! Illegal unit of measure (pt inserted).
<to be read again> 
}
l.192 ...groundleft" width 0,5 \hsize height \vsize}
                                                  

Underfull \hbox (badness 10000) in paragraph at lines 203--206
 []Onthedaysofthefullandnewmoons,theoldtownofHô[]iAnislitbylanterns,whilelocal
sandvisitorsalikeareencouragedtoeatvegetarianorveganfoodandreleasecaptivebirdso
rfish.Withthisinmind,ourHô[]i-Anrestaurantoffers‘VeganThursday’everyweekto
encouragemoreveganeatingbyofferinga20%discountonourwholeVeganrange.Wehopethatyo
uwillenjoythesespecialdishes,whichareuniquetoourrestaurant;ifyoulikethem,doplea
sesharenewsofthemwithothersinyourvegancommunity[] 

Underfull \hbox (badness 10000) in paragraph at lines 221--223
 []ALLERGENS—PLEASENOTE:WhilstwemakeeveryefforttopreventALLERGENSfromcreeping
intodishesofwhichtheyarenotanintegralpart,theverynatureofourbusinessmeansthatwe
cannotoffera100%guaran-teethatthesearenotpresent[] 

Underfull \hbox (badness 10000) in paragraph at lines 224--225
 []PleaseinformyourwaiterorwaitressatthetimeoforderingifyouareALLERGICtoanyknow
nALLERGENSorotheringredients[] 
! Font \Algerian=Algerian:color=008000 at 66.3563pt not loadable: metric data n
ot found or bad.
l.229 ...umexpr 7000 * 925 / 10000 \relax \rootdimen
                                                  
! Font \algerian=Algerian:color=008000 at 54.9897pt not loadable: metric data n
ot found or bad.
l.230 ...umexpr 5800 * 925 / 10000 \relax \rootdimen
                                                  

Underfull \vbox (badness 10000) has occurred while \output is active [1{c:/TeX/
Live/2021/TeX-MF/Var/fonts/map/pdftex/updmap/pdftex.map}] [2
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!] [3
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!]))
(see the transcript file for additional information)<c:/TeX/Live/2021/texmf-dis
t/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on Hoi-An main menu (combine pages, A3, unfolded, online).pdf (3
 pages, 19987 bytes).

SyncTeX written on Hoi-An main menu (combine pages, A3, unfolded, 
online).synctex.gz.
Transcript written on "Hoi-An main menu (combine pages, A3, unfolded, online).l
og".
% !TeX Program=XeTeX

\newif \iffolded
\newif \ifprint
\newif \iffulldate

\input "Hoi-An main menu (combine pages, A3, common)"

\immediate \write 18 {XeTeX "Hoi-An Main menu (separate pages).tex"}

\def \images {../..}
%\def \images {..}

\def \coversource {"\images/Front cover (metallic Hoi-An)"}

\ifprint
        \def \cover {\XeTeXpdffile \coversource.pdf }   
        \def \groundleft {\images/Trang doi (left, linear fade).jpg}
        \def \groundright {\images/Trang doi (right, linear fade).jpg}
\else
        \def \cover {\XeTeXpicfile \coversource.jpg }   
        \def \groundleft {\images/null.jpg}
        \def \groundright {\images/null.jpg}
\fi

\newdimen \rulewidth
\newdimen \tuckloss

\tuckloss = 1 mm
\rulewidth = 0 \tuckloss
\rulewidth = 0,5 pt 
\tuckloss = 0 mm

\hsize = 420 mm
\vsize = 297 mm

%\hsize = 500 mm
%\vsize = 353 mm

\def \rule
        {%
                \raise 0,0485 \vsize
                \hbox to -1 em
                \bgroup
                        \hskip 0 pt minus 1 fill
                        \special {color push rgb 0 0 0 }%
                        \vrule width \rulewidth height 0,75 \vsize
                        \special {color pop}%           
                        \relax
                        \hskip 0 pt plus 1 fill
                \egroup
        }
        
\def \norule
        {%
                \raise 0,07 \vsize
                \hbox to 0 pt
                \bgroup
                        \hss
                        \special {color push rgb 1 1 1 }%
                        \vrule width \rulewidth height 0,765 \vsize
                        \special {color pop}%           
                        \relax
                        \hss
                \egroup
        }
                                                                                
           
\pdfpageheight = \vsize
\pdfpagewidth = \hsize
\newdimen \dekoffset
\dekoffset = 1 true in
\hoffset = \dimexpr \hoffset - \dekoffset \relax
\voffset = \dimexpr \voffset - \dekoffset \relax

\newdimen \rootdimen
\rootdimen = 0,1 \dimexpr \hsize / \numexpr \dimexpr 410 mm \relax / 65536 
\relax \relax

\font \Allergens = "TeX Gyre Heros Bold Italic:color=FF0000" at 82.5 \rootdimen
\font \allergens = "TeX Gyre Heros Italic:color=FF0000" at 85 \rootdimen 

\def \ALLERGENS {{\Allergens \hyphenchar \font = -1 ALLERGENS\/} }
\def \ALLERGIC {{\Allergens  \hyphenchar \font = -1 ALLERGIC\/} }

\font \introfont = "Calibri" at 116 \rootdimen

\def \source {"Hoi-An main menu (separate pages).pdf" }

\setbox 1 = \vbox {\XeTeXpdffile \source page 1 width \dimexpr \hsize / 4 - 
\tuckloss - 0,666 \rulewidth \relax}\relax
\setbox 2 = \vbox {\XeTeXpdffile \source page 2 width \dimexpr \hsize / 4 - 
0,666 \rulewidth \relax}\relax
\setbox 3 = \vbox {\XeTeXpdffile \source page 3 width \dimexpr \hsize / 4 - 
0,666 \rulewidth \relax}\relax
\setbox 4 = \vbox {\XeTeXpdffile \source page 4 width \dimexpr \hsize / 4 - 
\tuckloss \relax}\relax

\font \Algerian = "Algerian:color=381808" at \numexpr 7000 * 925 / 10000 \relax 
\rootdimen
\font \algerian = "Algerian:color=381808" at \numexpr 5800 * 925 / 10000 \relax 
\rootdimen

\font \SmallAlgerian = "Algerian/I:color=381808;slant=0.2" at \numexpr 3500 * 
925 / 10000 \relax \rootdimen
\font \smallalgerian = "Algerian/I:color=381808;slant=0.2" at \numexpr 2500 * 
925 / 10000 \relax \rootdimen

\font \SmallAlgerian = "Algerian/I:color=381808;slant=0.2" at \numexpr 2190 * 
925 / 10000 \relax \rootdimen
\font \smallalgerian = "Algerian/I:color=381808;slant=0.2" at \numexpr 2190 * 
925 / 10000 \relax \rootdimen
\let \SmallAlgerian = \smallalgerian


\catcode `\ộ = \active
\def ộ{{ô}\llap {\lower 0,2 em \hbox to 0,6 em {\hss .\hss}}}

\setbox 0 = \hbox {\XeTeXpicfile "\groundleft" width 0,5 \hsize height \vsize}
\setbox 0 = \hbox {\box 0 \XeTeXpicfile "\groundright" width 0,5 \hsize height 
\vsize}
\setbox 0 = \vbox to \vsize
        \bgroup
                \copy 0 
                \vss
                \toks 0 = {\hbox to 0,5 \hsize {\algerian \kern 0,4 em 
{\Algerian H}ội-\kern -0,1 em {\Algerian A}n $\,${\Algerian R}est\kern -0,1 em 
a\kern -0,055 em urant\hss }\hss \raise 2 ex \hbox to 0,5 \hsize 
{\smallalgerian \kern 0,2 em \llap {— }{\SmallAlgerian S}erving {\SmallAlgerian 
C}ontemporary {\SmallAlgerian O}riental \& {\SmallAlgerian W}estern 
{\SmallAlgerian C}uisine\hss}}
                \setbox 0 = \hbox to \hsize {\the \toks 0}
                \centerline {\hbox to \wd 0 {\raise 0,975 \vsize \box 0 \hss}}
                \vss
                \vskip -5 ex
                \hbox to \hsize {\hss \box 1 \rule \box 2 \rule \box 3 \rule 
\box 4 \hss}\relax
                \vskip 5 ex
        \egroup
\box 0 

\def \source {"Hoi-An vegan menu (separate pages).pdf" }
\setbox 1 = \vbox {\XeTeXpdffile \source page 1 height 0,88 \vsize width 
\dimexpr \hsize / 4 - \tuckloss - 0,666 \rulewidth \relax}\relax
\setbox 2 = \vbox {\XeTeXpdffile \source page 2 height 0,88 \vsize width 
\dimexpr \hsize / 4 - 0,666 \rulewidth \relax}\relax

\def \rule
        {%
                \raise 0,155 \vsize
                \hbox to -3 em
                \bgroup
                        \hss \hss \hss \hss
                        \special {color push rgb 0 0 0 }%
                        \vrule width \rulewidth height 0,72 \vsize
                        \special {color pop}%           
                        \relax
                        \hss
                \egroup
        }
        
\def \norule
        {%
                \raise 0,07 \vsize
                \hbox to 0 pt
                \bgroup
                        \hss
                        \special {color push rgb 1 1 1 }%
                        \vrule width \rulewidth height 0,765 \vsize
                        \special {color pop}%           
                        \relax
                        \hss
                \egroup
        }
        
\font \white = "Calibri":color=FEFEFE scaled 1732

\let \sentinel = \relax
\def \lasttwo #1#2#3\sentinel{\ifx \relax #3\relax #1#2\else #2#3\fi}
\def \zeropad #1#2{\expandafter \expandafter \expandafter \lasttwo \expandafter 
0#1#2\sentinel}

\newcount \hours
\newcount \minutes

\hours = \time \divide \hours by 60 \relax
\minutes = \numexpr \time - \hours * 60 \relax

\def \fullmonth
        {%
                \ifcase \the \month 
                        Gawdaboveknows
                        \or January
                        \or February
                        \or March
                        \or April
                        \or May
                        \or June
                        \or July
                        \or August
                        \or September
                        \or October
                        \or November
                        \or December
                \else
                        Gawdaboveknows
                \fi
        }

\iffulldate
        \def \timestamp {\zeropad \the \hours:\zeropad \the \minutes~\zeropad 
\the \day-\zeropad \the \month-\the \year}
\else
        \def \timestamp {\fullmonth~\the \year}
\fi

\setbox 4 = \vbox {\cover width \dimexpr \hsize / 2 - 0,666 \rulewidth height 
\vsize}\relax
\setbox 4 = \vbox {\offinterlineskip \copy 4 \smash {\hbox {\raise 0,0835 \ht 4 
\hbox to \wd 4 {\white \hss \timestamp \hss}}}}

\setbox 0 = \hbox {\XeTeXpicfile "\groundright" width 0,5 \hsize height \vsize}
\setbox 0 = \hbox {\box 0 \XeTeXpicfile "\groundleft" width 0,5 \hsize height 
\vsize}
\setbox 3 = \vbox to 0,9 \vsize 
\bgroup
        \hsize = 0,5 \hsize 
        \hbox to \hsize
        \bgroup
                \vbox
                \bgroup
                        \parindent = 0 pt \introfont \leftskip 0,055 \hsize 
\rightskip = 1,2 \leftskip 
                        \vskip 1 ex 
                        \baselineskip = 2,2 ex \tolerance = 499 \hyphenchar 
\font = -1
                        On the days of the full and new moons, the old town of 
Hội An is lit by lanterns, while locals and visitors alike are encouraged to eat
                        vegetarian or vegan food and release captive birds or 
fish.   With this in mind, our Hội-An restaurant offers ‘Vegan Thursday’ every 
week to            
                        encourage more vegan eating by offering a~20\% discount 
on our whole Vegan range.   We hope that you will enjoy these special dishes,
                        which are unique to our restaurant; if~you like them,  
do please share news of them with others in your vegan community{\rlap 
{.}\parfillskip = 0 pt \par}
                \egroup
        \egroup
        \kern -6 ex 
        \line {\hss \hss \raise 0,05 \vsize \box 1 \rule \raise 0,05 \vsize 
\box 2 \hss}
        \kern -28 ex 
        \baselineskip = 0,9 \baselineskip 
        \parindent = 0 pt 
        \parfillskip = 0 pt 
        \leftskip = 3.95 em plus 0\hsize 
        \rightskip = \leftskip 
        \newdimen \hadjustment
        \hadjustment = 0,3 em
        \advance \leftskip by    -\hadjustment
        \advance \rightskip by +\hadjustment
        \Allergens \ALLERGENS — PLEASE NOTE: \allergens  Whilst we make every 
effort to prevent  \ALLERGENS from creeping into dishes of which they are
         not an integral  part,  the very nature of our business means that we 
cannot offer a~100\%~guaran\-tee that these are not present%
         {\rlap {.}\parfillskip = 0 pt \par}
         Please inform your waiter or waitress at the time of ordering if you 
are \ALLERGIC  to any known \ALLERGENS or other ingredients%
         {\rlap {.}\parfillskip = 0 pt \par}
         \vss
\egroup

\font \Algerian = "Algerian:color=008000" at \numexpr 7000 * 925 / 10000 \relax 
\rootdimen
\font \algerian = "Algerian:color=008000" at \numexpr 5800 * 925 / 10000 \relax 
\rootdimen

\iffolded
        \def \leftmasthead {\hss \the \toks 0 \hss}
        \def \rightmasthead {}
        \def \leftbox {\box 3 }
        \def \rightbox {\box 4 }
\else
        \def \leftmasthead {}
        \def \rightmasthead {\hss \the \toks 0 \hss}
        \def \leftbox {\box 4 }
        \def \rightbox {\box 3 }
\fi

\setbox 0 = \vbox to \vsize
        \bgroup
                \copy 0 
                \vss
                \toks 0 = {\raise 0,875 \vsize \hbox {\algerian {\Algerian 
V}egan {\Algerian M}enu}}
                \centerline {\hbox to 0,5 \hsize {\leftmasthead}\hbox to 0,5 
\hsize {\rightmasthead}}
                \vss
                \hbox to \hsize {\leftbox \hss \norule \hss \rightbox}\relax
        \egroup
\box 0 

\end

Reply via email to