summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hvfloat/doc/examples/preamble.ltx
blob: 525725c6c02026626e7eeee433919ffff711f830 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
\PassOptionsToPackage{silent}{fontspec}
\usepackage{libertinus}
\setmonofont[Scale=MatchLowercase,FakeStretch=0.9]{DejaVu Sans Mono}
\usepackage{microtype}
\usepackage[english]{babel}

\usepackage{listings}
\usepackage{xcolor}
\usepackage[automark]{scrlayer-scrpage}
\pagestyle{scrheadings}
%
\lstset{%
    language=[LaTeX]TeX,%
    showstringspaces=false,%
    tabsize=5,%
%    frame={tb},%
%    lineskip=-1pt,%
    extendedchars=true,%
    basicstyle={\small\ttfamily},%
%    numbers=left,%
%    stepnumber=1,%
%    numberstyle=\tiny,%
%    xleftmargin=2em,%
%    backgroundcolor=black!20,
    breaklines=true}
%

%\usepackage{marginnote}
%newcommand\Float[1][]{\ifx\relax#1\relax\marginnote{\fbox{float}}\else
%  \marginnote{\fbox{\shortstack{float\\#1}}}\fi
%

\newcommand\Float[1][]{\centerline{\fbox{Float #1}}}

\usepackage{graphicx}
\usepackage{varioref}
\usepackage{nameref}
\usepackage[hyperref]{hvfloat}
\DeclareCaptionFont{red}{\color{red}}
\DeclareCaptionFont{white}{\color{white}}
\captionsetup{labelfont={red,sf},font={red,sf},format=plain}

\usepackage{blindtext}

\def\hvblindtext{\textcolor{black!30}{Hello, here is some text without a meaning. This text should show what a 
printed text will look like at this place. If you read this text, you will get no information. Really? 
Is there no information? Is there a difference between this text and some nonsense like “Huardest gef- burn”? 
Kjift – not at all! A blind text like this gives you information about the selected font, how the letters 
are written and an impression of the look. This text should contain all letters of the alphabet and it 
should be written in of the original language. There is no need for spe- cial contents, but the length 
of words should match the language.}\par\normalcolor}

\def\Blindtext{\hvblindtext
\textcolor{black!30}{Hello, here is the second paragraph.}
\hvblindtext
\textcolor{black!30}{Hello, here is the third paragraph.}
\hvblindtext
\textcolor{black!30}{Hello, here is the forth paragraph.}
\hvblindtext
\textcolor{black!30}{Hello, here is the fifth paragraph.}
\hvblindtext}



\let\hvBlinddocument\blinddocument
\def\blinddocument{\par\color{black!30}\hvBlinddocument\par\normalcolor}




\flushbottom