[latex3-commits] [l3svn] branch master updated: Add a font to the format (closes #231)

noreply at latex-project.org noreply at latex-project.org
Tue Nov 3 15:53:30 CET 2015


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

The following commit(s) were added to refs/heads/master by this push:
       new  80cbab1   Add a font to the format (closes #231)
80cbab1 is described below

commit 80cbab1ca91afc6bb62aad40ae917db072f54d05
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Nov 3 14:50:28 2015 +0000

    Add a font to the format (closes #231)
    
    This is 'just enough' code to get some kind of output in format
    mode. Most notably, there are no hyphenation patterns nor any output
    routine. The latter is therefore covered by TeX's default OR which
    at least gets some typesetting done.
    
    Note that the 'classical' font is loaded even with XeTeX/LuaTeX at
    present. For the latter we'd need a full font loader to use LM in
    OpenType format, and how to handle that is still complex (will likely
    need some glue between the format and luaoftload). Thus we stick at
    present to soemthing that will at least work in isolation. Also
    notice that the font is not loaded during format building so there
    is no impact on sandboxing.
---
 l3kernel/l3final.dtx |   37 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/l3kernel/l3final.dtx b/l3kernel/l3final.dtx
index f9d3f33..f60dfbb 100644
--- a/l3kernel/l3final.dtx
+++ b/l3kernel/l3final.dtx
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-%% File: l3final.dtx Copyright (C) 1990-2014 The LaTeX3 Project
+%% File: l3final.dtx Copyright (C) 1990-2015 The LaTeX3 Project
 %%
 %% It may be distributed and/or modified under the conditions of the
 %% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -77,6 +77,41 @@
 %<*initex>
 %    \end{macrocode}
 %
+% \subsection{Temporary hacks}
+%
+% \begin{macro}{\T1/lmr/m/n/10}
+%   For \emph{testing only} provide some kind of output: for that we
+%   need a font. At present, select Latin Modern Roman at 10\,pt:
+%   entirely arbitrary but at least usable.
+%    \begin{macrocode}
+\tex_everypar:D \exp_after:wN
+  {
+    \exp_after:wN \tex_font:D \cs:w T1/lmr/m/n/10 \cs_end:
+      = ec-lmr10 \scan_stop:
+    \use:c { T1/lmr/m/n/10 }
+  }
+%    \end{macrocode}
+% \end{macro}
+%
+%  Produce PDF output if possible (easier testing) and set some kind of
+%  horizontal width: the one here is the \LaTeXe{} default. A parfill is
+%  also useful so we get some kind of sensible paragraphs.
+%    \begin{macrocode}
+\dim_set:Nn \tex_hsize:D { 345pt }
+\skip_set:Nn \tex_parfillskip:D { 0pt plus 1fil }
+\cs_if_exist:NT \pdftex_pdfoutput:D
+  { \int_set:Nn \pdftex_pdfoutput:D { 1 } }
+%    \end{macrocode}
+%
+% \begin{macro}{\stop}
+%   A way out of the run without needing to switch to the code environment.
+%    \begin{macrocode}
+\cs_set_eq:NN \stop \tex_end:D
+%    \end{macrocode}
+% \end{macro}
+%
+% \subsection{Final tasks}
+%
 % \begin{macro}{\par}
 %   \TeX{} has a nasty habit of inserting a command with the name \cs{par}
 %   so we had better make sure that \cs{par} has a definition.

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list