Jump to content

File:Hanging punctuation.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 380 × 227 pixels, file size: 52 KB)

Summary

Description
English: An example of hanging punctuation.

From the XeLaTeX code copied below, I generated a PDF, then added vertical coloured lines to the PDF in macOS Preview 10, then cropped and converted to SVG in Inkscape, then halved the file size with SVGO.

The intermediate stage with Preview was because I was initially just going to make a PNG screenshot, before deciding that I could keep it as vectors.

% !TEX program = xelatex
\documentclass[a4paper, 12pt]{letter}
	\usepackage{fontspec}
	\usepackage[left=60mm, right=60mm, top=30mm, bottom=40mm]{geometry}
	\usepackage[latin]{babel}
	% Expansion is good, but doesn't work with XeLaTeX yet.
	\usepackage[protrusion=true, expansion=false, factor=1000]{microtype}
	\SetProtrusion{encoding={*},family={*},series={*},size={12}}
		{
			{“}={1000,1000}, {,}={1000,1000}, {-}={1000,1000}, 
			{.}={1000,1000}, {*}={1000,1000}, {;}={1000,1000},
			{(}={1000,1000}, {)}={1000,1000}
		} 
	
\begin{document}
	
	``Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi.
	Morbi auctor lorem 	non justo. 
	Nam lacus libero, pretium at, lobortis vit\ae, ultricies et, tellus. 
	Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, vit\ae\
	ornare odio metus a mi. 
	Morbi ac orci et nisl hendrerit* mollis.
	Suspendisse ut massa. Cras nec ante. Pellentesque a nulla. 
	Cum sociis natoque penatibus;
	(et magnis dis parturient montes, nascetur ridiculus) mus.
	Aliquam tincidunt urna.''

\end{document}

I hereby release the above source code into the public domain.

The XeLaTeX code uses the Microtype package, which improves typography and allows fine control of it. By default, Microtype wouldn't be as zealous as this, but instead allow characters to hang into the margin only as much as they need to in order for the edges to feel straight. I, however, pumped the setting up to 1000.

The font is Latin Modern Roman 12pt; the text is Lorem ipsum nonsense, with added punctuation.

Created to replace File:Hanging_quotation.png, which was a raster image, small, only showing one hanging punctuation mark (only on the left), poorly justified on the right-hand side, &c.
Date
Source Own work
Author Correctrix

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

9 June 2018

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current03:53, 9 June 2018Thumbnail for version as of 03:53, 9 June 2018380 × 227 (52 KB)CorrectrixAdded 10px padding around the outside.
03:42, 9 June 2018Thumbnail for version as of 03:42, 9 June 2018354 × 201 (52 KB)CorrectrixUser created page with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata