From dd2f6ae50505c71e578435d734890a48b2f460cd Mon Sep 17 00:00:00 2001 From: milde Date: Fri, 20 Oct 2017 22:00:02 +0000 Subject: Rename files to care for case-insensitive file systems. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8189 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- .../expected/latex_literal_block_Verbatim.tex | 172 --------------------- .../expected/latex_literal_block_fancyvrb.tex | 172 +++++++++++++++++++++ 2 files changed, 172 insertions(+), 172 deletions(-) delete mode 100644 docutils/test/functional/expected/latex_literal_block_Verbatim.tex create mode 100644 docutils/test/functional/expected/latex_literal_block_fancyvrb.tex (limited to 'docutils/test/functional/expected') diff --git a/docutils/test/functional/expected/latex_literal_block_Verbatim.tex b/docutils/test/functional/expected/latex_literal_block_Verbatim.tex deleted file mode 100644 index 689c652ce..000000000 --- a/docutils/test/functional/expected/latex_literal_block_Verbatim.tex +++ /dev/null @@ -1,172 +0,0 @@ -\documentclass[a4paper]{article} -% generated by Docutils -\usepackage{cmap} % fix search and cut-and-paste in Acrobat -\usepackage{ifthen} -\usepackage[T1]{fontenc} -\usepackage[utf8]{inputenc} -\usepackage{amsmath} -\usepackage{graphicx} -\usepackage{fancyvrb} -\usepackage{longtable,ltcaption,array} -\setlength{\extrarowheight}{2pt} -\newlength{\DUtablewidth} % internal use in tables - -%%% Custom LaTeX preamble -% PDF Standard Fonts -\usepackage{mathptmx} % Times -\usepackage[scaled=.90]{helvet} -\usepackage{courier} - -%%% User specified packages and stylesheets - -%%% Fallback definitions for Docutils-specific commands - -% class handling for environments (block-level elements) -% \begin{DUclass}{spam} tries \DUCLASSspam and -% \end{DUclass}{spam} tries \endDUCLASSspam -\ifx\DUclass\undefined % poor man's "provideenvironment" - \newenvironment{DUclass}[1]% - {\def\DocutilsClassFunctionName{DUCLASS#1}% arg cannot be used in end-part of environment. - \csname \DocutilsClassFunctionName \endcsname}% - {\csname end\DocutilsClassFunctionName \endcsname}% -\fi -% numeric or symbol footnotes with hyperlinks -\providecommand*{\DUfootnotemark}[3]{% - \raisebox{1em}{\hypertarget{#1}{}}% - \hyperlink{#2}{\textsuperscript{#3}}% -} -\providecommand{\DUfootnotetext}[4]{% - \begingroup% - \renewcommand{\thefootnote}{% - \protect\raisebox{1em}{\protect\hypertarget{#1}{}}% - \protect\hyperlink{#2}{#3}}% - \footnotetext{#4}% - \endgroup% -} - -% inline markup (custom roles) -% \DUrole{#1}{#2} tries \DUrole#1{#2} -\providecommand*{\DUrole}[2]{% - % backwards compatibility: try \docutilsrole#1{#2} - \ifcsname docutilsrole#1\endcsname% - \csname docutilsrole#1\endcsname{#2}% - \else - \csname DUrole#1\endcsname{#2}% - \fi% -} - -% text mode subscript -\ifx\textsubscript\undefined - \usepackage{fixltx2e} % since 2015 loaded by default -\fi - -% titlereference role -\providecommand*{\DUroletitlereference}[1]{\textsl{#1}} - -% character width in monospaced font -\newlength{\ttemwidth} -\settowidth{\ttemwidth}{\ttfamily M} - -% hyperlinks: -\ifthenelse{\isundefined{\hypersetup}}{ - \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} - \usepackage{bookmark} - \urlstyle{same} % normal text font (alternatives: tt, rm, sf) -}{} - -%%% Body -\begin{document} - -In LaTeX, literal blocks can be customized with the \textquotedbl{}literal-block-env\textquotedbl{} -setting. This test file exists to check the latex writer output compiles and -looks as expected. Start with a plain literal block: - -\begin{quote} -\begin{Verbatim} -$\sin^2(x)$ and $\cos^2(x)$ equals one: - -\[ - \sin^2(x) + \cos^2(x) = 1 % for all x -\] -\end{Verbatim} -\end{quote} - -A latex \textquotedbl{}code-block\textquotedbl{} (set with \textquotedbl{}literal-block-env\textquotedbl{}, if syntax -highlight is \textquotedbl{}none\textquotedbl{}): - -\begin{DUclass}{code} -\begin{DUclass}{latex} -\begin{quote} -\begin{Verbatim} -$\sin^2(x)$ and $\cos^2(x)$ equals one: - -\[ - \sin^2(x) + \cos^2(x) = 1 % for all x -\] -\end{Verbatim} -\end{quote} -\end{DUclass} -\end{DUclass} - -A literal block in a table: - -\setlength{\DUtablewidth}{\linewidth} -\begin{longtable*}[c]{|p{0.063\DUtablewidth}|p{0.145\DUtablewidth}|p{0.063\DUtablewidth}|} -\hline - -test - & -\begin{minipage}{8\ttemwidth} -\begin{Verbatim} -\sin^2 x -\end{Verbatim} -\end{minipage} - & -test - \\ -\hline -\end{longtable*} - -A literal block in a table with auto-width columns: - -\begin{longtable*}[c]{|l|l|l|} -\hline -test & -\ttfamily\raggedright -\textbackslash{}sin\textasciicircum{}2~x - & test \\ -\hline -\end{longtable*} - -Parsed literal block with inline markup and leading whitespace: - -\begin{quote} -\ttfamily\raggedright -~~~\emph{emphasis},~\textbf{strong~emphasis},~\texttt{inline~literals},\\ -standalone~hyperlinks~(\url{http://www.python.org}),\\ -\hyperref[internal]{internal}~and~\href{http://www.python.org/}{external}~hyperlinks,\\ -% -\phantomsection\label{internal}internal~hyperlink~targets,\\ -images~via~substitution~references~(\includegraphics{../../../docs/user/rst/images/biohazard.png}),\\ -footnote~references\DUfootnotemark{id1}{id3}{*},\\ -citation~references~(\hyperlink{cit2002}{[CIT2002]}),~and~more.\\ -~\\ -~~~Here~are~some~explicit~interpreted~text~roles:\\ -a~PEP~reference~(\href{http://www.python.org/dev/peps/pep-0287}{PEP~287}),\\ -an~RFC~reference~(\href{http://tools.ietf.org/html/rfc2822.html}{RFC~2822}),\\ -an~abbreviation~(\DUrole{abbreviation}{abb.}),~an~acronym~(\DUrole{acronym}{reST}),\\ -code~(\texttt{\DUrole{code}{print~\textquotedbl{}hello~world\textquotedbl{}}}),\\ -maths~$\sin^2(x)$,\\ -\textsubscript{subscript}~and~\textsuperscript{superscript},\\ -\DUrole{custom}{custom}~\DUrole{custom-role}{roles},~and~explicit~roles~for\\ -\DUroletitlereference{Docutils}'~\emph{standard}~\textbf{inline}~\texttt{markup}. -\end{quote} -% -\DUfootnotetext{id3}{id1}{*}{% -This footnote is referenced in a \DUroletitlereference{parsed literal} block. -} -\begin{figure}[b]\raisebox{1em}{\hypertarget{cit2002}{}}[CIT2002] -Sample Citation, 2017. -\end{figure} - -\end{document} diff --git a/docutils/test/functional/expected/latex_literal_block_fancyvrb.tex b/docutils/test/functional/expected/latex_literal_block_fancyvrb.tex new file mode 100644 index 000000000..689c652ce --- /dev/null +++ b/docutils/test/functional/expected/latex_literal_block_fancyvrb.tex @@ -0,0 +1,172 @@ +\documentclass[a4paper]{article} +% generated by Docutils +\usepackage{cmap} % fix search and cut-and-paste in Acrobat +\usepackage{ifthen} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{amsmath} +\usepackage{graphicx} +\usepackage{fancyvrb} +\usepackage{longtable,ltcaption,array} +\setlength{\extrarowheight}{2pt} +\newlength{\DUtablewidth} % internal use in tables + +%%% Custom LaTeX preamble +% PDF Standard Fonts +\usepackage{mathptmx} % Times +\usepackage[scaled=.90]{helvet} +\usepackage{courier} + +%%% User specified packages and stylesheets + +%%% Fallback definitions for Docutils-specific commands + +% class handling for environments (block-level elements) +% \begin{DUclass}{spam} tries \DUCLASSspam and +% \end{DUclass}{spam} tries \endDUCLASSspam +\ifx\DUclass\undefined % poor man's "provideenvironment" + \newenvironment{DUclass}[1]% + {\def\DocutilsClassFunctionName{DUCLASS#1}% arg cannot be used in end-part of environment. + \csname \DocutilsClassFunctionName \endcsname}% + {\csname end\DocutilsClassFunctionName \endcsname}% +\fi +% numeric or symbol footnotes with hyperlinks +\providecommand*{\DUfootnotemark}[3]{% + \raisebox{1em}{\hypertarget{#1}{}}% + \hyperlink{#2}{\textsuperscript{#3}}% +} +\providecommand{\DUfootnotetext}[4]{% + \begingroup% + \renewcommand{\thefootnote}{% + \protect\raisebox{1em}{\protect\hypertarget{#1}{}}% + \protect\hyperlink{#2}{#3}}% + \footnotetext{#4}% + \endgroup% +} + +% inline markup (custom roles) +% \DUrole{#1}{#2} tries \DUrole#1{#2} +\providecommand*{\DUrole}[2]{% + % backwards compatibility: try \docutilsrole#1{#2} + \ifcsname docutilsrole#1\endcsname% + \csname docutilsrole#1\endcsname{#2}% + \else + \csname DUrole#1\endcsname{#2}% + \fi% +} + +% text mode subscript +\ifx\textsubscript\undefined + \usepackage{fixltx2e} % since 2015 loaded by default +\fi + +% titlereference role +\providecommand*{\DUroletitlereference}[1]{\textsl{#1}} + +% character width in monospaced font +\newlength{\ttemwidth} +\settowidth{\ttemwidth}{\ttfamily M} + +% hyperlinks: +\ifthenelse{\isundefined{\hypersetup}}{ + \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} + \usepackage{bookmark} + \urlstyle{same} % normal text font (alternatives: tt, rm, sf) +}{} + +%%% Body +\begin{document} + +In LaTeX, literal blocks can be customized with the \textquotedbl{}literal-block-env\textquotedbl{} +setting. This test file exists to check the latex writer output compiles and +looks as expected. Start with a plain literal block: + +\begin{quote} +\begin{Verbatim} +$\sin^2(x)$ and $\cos^2(x)$ equals one: + +\[ + \sin^2(x) + \cos^2(x) = 1 % for all x +\] +\end{Verbatim} +\end{quote} + +A latex \textquotedbl{}code-block\textquotedbl{} (set with \textquotedbl{}literal-block-env\textquotedbl{}, if syntax +highlight is \textquotedbl{}none\textquotedbl{}): + +\begin{DUclass}{code} +\begin{DUclass}{latex} +\begin{quote} +\begin{Verbatim} +$\sin^2(x)$ and $\cos^2(x)$ equals one: + +\[ + \sin^2(x) + \cos^2(x) = 1 % for all x +\] +\end{Verbatim} +\end{quote} +\end{DUclass} +\end{DUclass} + +A literal block in a table: + +\setlength{\DUtablewidth}{\linewidth} +\begin{longtable*}[c]{|p{0.063\DUtablewidth}|p{0.145\DUtablewidth}|p{0.063\DUtablewidth}|} +\hline + +test + & +\begin{minipage}{8\ttemwidth} +\begin{Verbatim} +\sin^2 x +\end{Verbatim} +\end{minipage} + & +test + \\ +\hline +\end{longtable*} + +A literal block in a table with auto-width columns: + +\begin{longtable*}[c]{|l|l|l|} +\hline +test & +\ttfamily\raggedright +\textbackslash{}sin\textasciicircum{}2~x + & test \\ +\hline +\end{longtable*} + +Parsed literal block with inline markup and leading whitespace: + +\begin{quote} +\ttfamily\raggedright +~~~\emph{emphasis},~\textbf{strong~emphasis},~\texttt{inline~literals},\\ +standalone~hyperlinks~(\url{http://www.python.org}),\\ +\hyperref[internal]{internal}~and~\href{http://www.python.org/}{external}~hyperlinks,\\ +% +\phantomsection\label{internal}internal~hyperlink~targets,\\ +images~via~substitution~references~(\includegraphics{../../../docs/user/rst/images/biohazard.png}),\\ +footnote~references\DUfootnotemark{id1}{id3}{*},\\ +citation~references~(\hyperlink{cit2002}{[CIT2002]}),~and~more.\\ +~\\ +~~~Here~are~some~explicit~interpreted~text~roles:\\ +a~PEP~reference~(\href{http://www.python.org/dev/peps/pep-0287}{PEP~287}),\\ +an~RFC~reference~(\href{http://tools.ietf.org/html/rfc2822.html}{RFC~2822}),\\ +an~abbreviation~(\DUrole{abbreviation}{abb.}),~an~acronym~(\DUrole{acronym}{reST}),\\ +code~(\texttt{\DUrole{code}{print~\textquotedbl{}hello~world\textquotedbl{}}}),\\ +maths~$\sin^2(x)$,\\ +\textsubscript{subscript}~and~\textsuperscript{superscript},\\ +\DUrole{custom}{custom}~\DUrole{custom-role}{roles},~and~explicit~roles~for\\ +\DUroletitlereference{Docutils}'~\emph{standard}~\textbf{inline}~\texttt{markup}. +\end{quote} +% +\DUfootnotetext{id3}{id1}{*}{% +This footnote is referenced in a \DUroletitlereference{parsed literal} block. +} +\begin{figure}[b]\raisebox{1em}{\hypertarget{cit2002}{}}[CIT2002] +Sample Citation, 2017. +\end{figure} + +\end{document} -- cgit v1.2.1