-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes inappropriate commenting out of \label s already in comments, w…
…hich led to spurious closing braces. ( see issue #90 )
- Loading branch information
Showing
3 changed files
with
243 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere | ||
\PassOptionsToPackage{hyphens}{url} | ||
% | ||
\documentclass[]{article} | ||
\usepackage{lmodern} | ||
\usepackage{amssymb,amsmath} | ||
\usepackage{ifxetex,ifluatex} | ||
\usepackage{fixltx2e} % provides \textsubscript | ||
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex | ||
\usepackage[T1]{fontenc} | ||
\usepackage[utf8]{inputenc} | ||
\usepackage{textcomp} % provides euro and other symbols | ||
\else % if luatex or xelatex | ||
\usepackage{unicode-math} | ||
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} | ||
\fi | ||
% use upquote if available, for straight quotes in verbatim environments | ||
\IfFileExists{upquote.sty}{\usepackage{upquote}}{} | ||
% use microtype if available | ||
\IfFileExists{microtype.sty}{% | ||
\usepackage[]{microtype} | ||
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts | ||
}{} | ||
\IfFileExists{parskip.sty}{% | ||
\usepackage{parskip} | ||
}{% else | ||
\setlength{\parindent}{0pt} | ||
\setlength{\parskip}{6pt plus 2pt minus 1pt} | ||
} | ||
\usepackage{hyperref} | ||
\hypersetup{ | ||
pdftitle={This is a modified test document}, | ||
pdfauthor={Sean Lanigan}, | ||
pdfborder={0 0 0}, | ||
breaklinks=true} | ||
\urlstyle{same} % don't use monospace font for urls | ||
\setlength{\emergencystretch}{3em} % prevent overfull lines | ||
\providecommand{\tightlist}{% | ||
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} | ||
\setcounter{secnumdepth}{0} | ||
% Redefines (sub)paragraphs to behave more like sections | ||
\ifx\paragraph\undefined\else | ||
\let\oldparagraph\paragraph | ||
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} | ||
\fi | ||
\ifx\subparagraph\undefined\else | ||
\let\oldsubparagraph\subparagraph | ||
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} | ||
\fi | ||
|
||
% set default figure placement to htbp | ||
\makeatletter | ||
\def\fps@figure{htbp} | ||
\makeatother | ||
|
||
|
||
\title{This is a modified test document} | ||
\providecommand{\subtitle}[1]{} | ||
\subtitle{I'm making some more changes to it} | ||
\author{Sean Lanigan} | ||
\date{} | ||
|
||
\begin{document} | ||
\maketitle | ||
|
||
\hypertarget{extra-heading-section-1}{% | ||
\section{Extra Heading Section 1}\label{extra-heading-section-1}} | ||
|
||
In this section I write some things. | ||
|
||
\hypertarget{heading-sub-section-1.1}{% | ||
\subsection{Heading Sub-Section 1.1}\label{heading-sub-section-1.1}} | ||
|
||
This is a sub-heading section. | ||
|
||
\hypertarget{section-1.2}{% | ||
\subsection{Section 1.2}\label{section-1.2}} | ||
|
||
This is not a sub-heading. | ||
|
||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere | ||
\PassOptionsToPackage{hyphens}{url} | ||
% | ||
\documentclass[]{article} | ||
\usepackage{lmodern} | ||
\usepackage{amssymb,amsmath} | ||
\usepackage{ifxetex,ifluatex} | ||
\usepackage{fixltx2e} % provides \textsubscript | ||
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex | ||
\usepackage[T1]{fontenc} | ||
\usepackage[utf8]{inputenc} | ||
\usepackage{textcomp} % provides euro and other symbols | ||
\else % if luatex or xelatex | ||
\usepackage{unicode-math} | ||
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} | ||
\fi | ||
% use upquote if available, for straight quotes in verbatim environments | ||
\IfFileExists{upquote.sty}{\usepackage{upquote}}{} | ||
% use microtype if available | ||
\IfFileExists{microtype.sty}{% | ||
\usepackage[]{microtype} | ||
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts | ||
}{} | ||
\IfFileExists{parskip.sty}{% | ||
\usepackage{parskip} | ||
}{% else | ||
\setlength{\parindent}{0pt} | ||
\setlength{\parskip}{6pt plus 2pt minus 1pt} | ||
} | ||
\usepackage{hyperref} | ||
\hypersetup{ | ||
pdftitle={This is a test document}, | ||
pdfauthor={Sean}, | ||
pdfborder={0 0 0}, | ||
breaklinks=true} | ||
\urlstyle{same} % don't use monospace font for urls | ||
\setlength{\emergencystretch}{3em} % prevent overfull lines | ||
\providecommand{\tightlist}{% | ||
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} | ||
\setcounter{secnumdepth}{0} | ||
% Redefines (sub)paragraphs to behave more like sections | ||
\ifx\paragraph\undefined\else | ||
\let\oldparagraph\paragraph | ||
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} | ||
\fi | ||
\ifx\subparagraph\undefined\else | ||
\let\oldsubparagraph\subparagraph | ||
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} | ||
\fi | ||
|
||
% set default figure placement to htbp | ||
\makeatletter | ||
\def\fps@figure{htbp} | ||
\makeatother | ||
|
||
|
||
\title{This is a test document} | ||
\providecommand{\subtitle}[1]{} | ||
\subtitle{I'm making some changes to it} | ||
\author{Sean} | ||
\date{} | ||
|
||
\begin{document} | ||
\maketitle | ||
|
||
\hypertarget{heading-section-1}{% | ||
\section{Heading Section 1}\label{heading-section-1}} | ||
|
||
In this section I write some things. | ||
|
||
\hypertarget{heading-section-1.1}{% | ||
\subsection{Heading Section 1.1}\label{heading-section-1.1}} | ||
|
||
This is a sub-heading. | ||
|
||
\hypertarget{heading-section-1.2}{% | ||
\subsection{Heading Section 1.2}\label{heading-section-1.2}} | ||
|
||
This is another sub-heading. | ||
|
||
\hypertarget{heading-2}{% | ||
\section{Heading 2}\label{heading-2}} | ||
|
||
I thought I wanted some things in this section, but I decided to remove | ||
them instead. | ||
|
||
\end{document} |