Skip to content

Commit

Permalink
Microtype can be turned off in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainhalle committed Apr 25, 2016
1 parent 5c27dce commit b26687c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ another `\input` line to uncomment and recompile. Voilà!
Quick Use
---------

0. [Download and unzip](https://github.com/sylvainhalle/PaperShell/releases/latest),
or clone the contents of this repository in a folder of your choice.
0. [Download and unzip](https://github.com/sylvainhalle/PaperShell/releases/latest)
the PaperShell empty project in a folder of your choice.

1. Modify `article.txt` with the desired title, authors and institutions.
The file is self-documented and tells you how to do it.
Expand Down
36 changes: 18 additions & 18 deletions generate-preamble.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
**************************************************************************/

// Version
$version_string = "1.5.2";
$version_string = "1.5.3";
$autogen_comment = "%% This file was autogenerated by PaperShell v$version_string on ".date("Y-m-d H:i:s")."\n%% https://github.com/sylvainhalle/PaperShell\n%% DO NOT EDIT!";

// Read author-title file
Expand Down Expand Up @@ -46,7 +46,8 @@
"fix-acm" => false,
"use-times" => false,
"bib-style" => "",
"graphicspath" => array("fig/")
"graphicspath" => array("fig/"),
"microtype" => true
);
if (file_exists("settings.inc.php"))
{
Expand Down Expand Up @@ -103,6 +104,13 @@
$point_size_string = $config["point-size"] === null ? "" : $config["point-size"]."pt";
$point_size_string_comma = $config["point-size"] === null ? "" : ",".$config["point-size"]."pt";

// Microtype enabled?
$microtype_string ="";
if ($config["microtype"])
{
$microtype_string = "\n\usepackage{microtype} % Better handling of typo";
}

{ // Springer LNCS {{{

// Preamble
Expand All @@ -117,8 +125,7 @@
% Usual packages
\usepackage[utf8]{inputenc} % UTF-8 input encoding
\usepackage[T1]{fontenc} % Type1 fonts
\usepackage{microtype} % Better handling of typo
\usepackage[T1]{fontenc} % Type1 fonts{$microtype_string}
\usepackage[english]{babel} % Hyphenation
\usepackage{graphicx} % Import graphics
\usepackage{cite} % Better handling of citations
Expand Down Expand Up @@ -208,8 +215,7 @@
% Usual packages
\usepackage[utf8]{inputenc} % UTF-8 input encoding
\usepackage[T1]{fontenc} % Type1 fonts
\usepackage{mathptmx} % Times with math support
\usepackage{microtype} % Better handling of typo
\usepackage{mathptmx} % Times with math support{$microtype_string}
\usepackage[english]{babel} % Hyphenation
\usepackage{graphicx} % Import graphics
\usepackage{cite} % Better handling of citations
Expand Down Expand Up @@ -304,8 +310,7 @@
% Usual packages
\usepackage[utf8]{inputenc} % UTF-8 input encoding
\usepackage[T1]{fontenc} % Type1 fonts
\usepackage{lmodern} % Improved Computer Modern
\usepackage{microtype} % Better handling of typo
\usepackage{lmodern} % Improved Computer Modern{$microtype_string}
\usepackage[english]{babel} % Hyphenation
\usepackage{graphicx} % Import graphics
\usepackage{cite} % Better handling of citations
Expand Down Expand Up @@ -425,8 +430,7 @@
% Usual packages
\usepackage[utf8]{inputenc} % UTF-8 input encoding
\usepackage[T1]{fontenc} % Type1 fonts
\usepackage{lmodern} % Improved Computer Modern font
\usepackage{microtype} % Better handling of typo
\usepackage{lmodern} % Improved Computer Modern font{$microtype_string}
\usepackage[english]{babel} % Hyphenation
\usepackage{graphicx} % Import graphics
\usepackage{hyperref} % Better handling of references in PDFs
Expand Down Expand Up @@ -513,8 +517,7 @@
% Usual packages
\usepackage[utf8]{inputenc} % UTF-8 input encoding
\usepackage[T1]{fontenc} % Type1 fonts
\usepackage{mathptmx} % Times font with math support
\usepackage{microtype} % Better handling of typo
\usepackage{mathptmx} % Times font with math support{$microtype_string}
\usepackage[english]{babel} % Hyphenation
\usepackage{graphicx} % Import graphics
\usepackage{hyperref} % Better handling of references in PDFs
Expand Down Expand Up @@ -620,8 +623,7 @@
\usepackage{courier}
\\frenchspacing
\setlength{\pdfpagewidth}{8.5in}
\setlength{\pdfpageheight}{11in}
\usepackage{microtype} % Better handling of typo
\setlength{\pdfpageheight}{11in}{$microtype_string}
\usepackage[english]{babel} % Hyphenation
\usepackage{graphicx} % Import graphics
\usepackage{cite} % Better handling of citations
Expand Down Expand Up @@ -721,8 +723,7 @@
\documentclass[prodmode,{$config["journal-name"]}{$point_size_string_comma}]{acmsmall}
% Usual packages
\usepackage[utf8]{inputenc} % UTF-8 input encoding
\usepackage{microtype} % Better handling of typo
\usepackage[utf8]{inputenc} % UTF-8 input encoding{$microtype_string}
\usepackage[english]{babel} % Hyphenation
\usepackage{graphicx} % Import graphics
\usepackage{comment} % To comment out blocks of text
Expand Down Expand Up @@ -821,8 +822,7 @@
% Usual packages
\usepackage[utf8]{inputenc} % UTF-8 input encoding
\usepackage[T1]{fontenc} % Type1 fonts
\usepackage{lmodern} % Improved Computer Modern font
\usepackage{microtype} % Better handling of typo
\usepackage{lmodern} % Improved Computer Modern font{$microtype_string}
\usepackage[english]{babel} % Hyphenation
\usepackage{graphicx} % Import graphics
\usepackage{cite} % Better handling of citations
Expand Down
6 changes: 6 additions & 0 deletions settings.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@
*/
//"graphicspath" => array("fig/", "whatever/"),

/*
* Set whether to use the microtype package. No good reason to
* turn it off unless it clashes with some other package.
*/
//"microtype" => false,

/*
* A dummy parameter, just so you don't bother about removing
* the comma from the last uncommented parameter above. Leave this
Expand Down

0 comments on commit b26687c

Please sign in to comment.